Got it

Controller Area Network (CAN)

Latest reply: Nov 23, 2021 17:25:24 917 67 25 0 0

Hi Folks,

    Couple of weeks ago, I asked a question about the networking and security in Vehicle networking. Colleagues answered my question thankfully, but after some digging in the subject deeply, I found it something new to me and now I would like to share a sum of what I had read these last days.

In automotive engineering, a vehicle bus is a specialized internal communications network that interconnects components inside a vehicle (e.g., automobile, bus, train, industrial or agricultural vehicle, ship, or aircraft). ... Protocols include Controller Area Network (CAN), Local Interconnect Network (LIN) and others. We will focus on CAN FD protocol in this post.


CAN


 Today's vehicles include a complex symbiosis of intelligent electronic systems and integrated mechanical structures. Today, electronic components and systems account for over 20% of the cost of a high-end passenger car, and this percentage figure is increasing rapidly. Electronic systems now provide the technology to enable the manufacturer to deliver new features and to meet the mandatory regulation requirements in a cost-effective manner. Vehicle electronic systems are now commonplace and are growing in terms of both quantity and complexity. In this paper, we will provide an insight into the In Vehicle Network Systems, Overview and the emerging Vehicle Networking Standards.

 

 

CAN Bus


 

CAN FD “CAN Flexible date-rate”

The idea behind the CAN FD protocol is to increase the cycle-rate between network arbitration and the acknowledgment field of a CAN frame. Since at this stage only one node is able to send on the network the maximum data rate only depends on the internal delay time of the CAN transceiver and the data signal (about 5 ns/m). In this way, it is possible to realize data-rates up to 15 Mbit/s with network lengths up to 40 m.

In CAN FD, the frame/message ID uses the 29-bits format used in the Extended ID version of classic CAN (Standard ID is 11 bits long). The message payload size has been increased to 64 bytes of data in each CAN-frame / message, compared to only 8-bytes in the classic CAN frame.

CAN Frame

The CAN FD frame is backwards compatible and quite similar to the Classical CAN frame. A new feature is the bit BRS (bit-rate-switch) in the arbitration field, which is used to recognize the higher data rate. There is also the ESI (error state indicator) which is related to the control panel and displays the error-mode. In order to verify the data-field length the bit FDF (FD format) was defined as well as a three-bit wide stuff bit counter. The sender counts the number of stuff bit and transmits the result as gray-coded 3-bit-value. The recipient also counts the incoming stuff bit and compares their values. The transmission reliability is increased by a parity bit attached to the sequence and by a fixed stuff bit in the CRC field. The RTR bit, however, is being ignored, since the CAN FD protocol does not support any remote frames. With correction of the error detection mechanism of the CAN FD standard (ISO 11989-1/2015) such as adding the stuff bit counter the protocol reaches a Hamming distance of six. It is possible to distinguish up to five arbitrarily distributed bit errors leading to an automatic-repeated message. This makes the protocol an interesting option for safety-related areas.

CAN Frame 2


 

Why CAN FD?

The CAN protocol has been around since 1986 and it's popular: Practically any machine that moves utilizes CAN today - whether it's cars, trucks, boats, planes or robots. But with the rise of modern technology, the "Classical" CAN protocol (official term used in ISO 11898-1:2015) is pressured: A rise in vehicle functionality is driving an explosion in data Networks are increasingly limited by the 1-Mbit/s bandwidth to cope, OEMs create complex & costly workarounds Specifically, Classical CAN struggles with substantial overhead (>50%) as each CAN data frame can only contain 8 data bytes. Further, the network speed is limited to 1 Mbit/s, restricting the implementation of data-producing features. CAN FD resolves these issues - making it future-proof.

 

How does CAN FD work?

During arbitration, a "bit time" provides sufficient delay between each bit to allow every node on the network to react. To be certain that every node is reached within the bit time, a CAN network running at 1 Mbit/s needs to have a maximum length of 40 meters (in practice 25 meters). Speeding up the arbitration process would reduce the maximum length to unsuitable levels. On the other hand, after arbitration there's an "empty highway" - enabling high speed during the data transmission (when there is just one node driving the bus-lines). Before the ACK slot - when multiple nodes acknowledge the correct reception of the data frame - the speed needs to be reduced to the nominal bit-rate.

In short, it is necessary to find a way to only increase the speed during the data transmission.

Solution: The CAN FD frame The CAN FD protocol introduces an adjusted CAN data frame to enable the extra data bytes and flexible bit-rates. Below we compare an 11-bit Classical CAN frame vs. an 11-bit CAN FD frame (29-bit is also supported):

 

 

CAN vs CAN FD Frame


 

In conclusion, CAN FD with high bit-rate will increase real-time performance, because the higher bit-rate makes the CAN-frames shorter in time, reducing latency in the communication. By sending more data in each frame it is possible to increase the data throughput, but this will lower the Realtime performance if not combined with the use of higher bit-rate. In many cases, long CAN frames with 64 bytes will be used during programming, which is normally done when a system is on pause and there are no real time controls running. Even without real-time demand, it is still of interest to use the higher bit-rate to increase data throughput and by that, reduce the download time.




I know the subject is much more complex than been wrote above, but I hope this been informative to you.




can fd

CAN vs. CAN FD

View more
  • x
  • convention:

hemin88
hemin88 Created Sep 22, 2021 08:10:43 (1) (0)
Yes, and there is a scenario Classical CAN and CAN FD can be mixed, CAN and CAN FD under certain conditions to allow migration towards CAN FD, rather than having to switch every ECU in one go,  
little_fish
little_fish Reply hemin88  Created Sep 23, 2021 00:45:31 (0) (0)
 
hemin88
Moderator Author Created Sep 21, 2021 14:47:58

  • x
  • convention:

zaheernew
zaheernew Created Sep 22, 2021 03:01:38 (1) (0)
done  
lucian2003
lucian2003 Created Sep 22, 2021 03:13:53 (1) (0)
 
smileymind
smileymind Created Sep 22, 2021 03:54:46 (1) (0)
 
little_fish
little_fish Created Sep 22, 2021 06:54:09 (1) (0)
 
sabahshahzad
sabahshahzad Created Oct 16, 2021 17:23:23 (0) (0)
 
AliBinHussain
AliBinHussain Created Oct 16, 2021 17:33:40 (0) (0)
 
Diego.Silva
MVE Author Created Sep 21, 2021 15:01:53

Good post!
View more
  • x
  • convention:

hemin88
hemin88 Created Sep 22, 2021 08:11:01 (0) (0)
Many thanks  
sabahshahzad
sabahshahzad Created Oct 16, 2021 17:23:34 (0) (0)
 
BAZ
MVE Author Created Sep 21, 2021 15:12:14

CAN can do magic :)
View more
  • x
  • convention:

zaheernew
zaheernew Created Sep 22, 2021 03:00:37 (1) (0)
 
smileymind
smileymind Created Sep 22, 2021 03:54:53 (1) (0)
 
hemin88
hemin88 Created Sep 22, 2021 08:15:19 (0) (0)
 
Excellent post on controller area network
View more
  • x
  • convention:

hemin88
hemin88 Created Sep 22, 2021 08:15:34 (0) (0)
Thank you  
Good
View more
  • x
  • convention:

hemin88
hemin88 Created Sep 22, 2021 08:15:42 (0) (0)
Thank you  
gzzz
Admin Created Sep 21, 2021 15:51:53

Nice sharing

View more
  • x
  • convention:

hemin88
hemin88 Created Sep 22, 2021 08:15:47 (0) (0)
Thank you  
Detailed explanation.
View more
  • x
  • convention:

hemin88
hemin88 Created Sep 22, 2021 08:15:56 (0) (0)
Thank you  
AliBinHussain
AliBinHussain Created Oct 16, 2021 17:34:09 (0) (0)
 
Good article and post
View more
  • x
  • convention:

hemin88
hemin88 Created Sep 22, 2021 08:16:04 (0) (0)
Thank you  
AliBinHussain
AliBinHussain Created Oct 16, 2021 17:34:04 (0) (0)
 
Vlada85
MVE Author Created Sep 21, 2021 20:26:00

Thank you!
View more
  • x
  • convention:

hemin88
hemin88 Created Sep 22, 2021 08:16:10 (0) (0)
Thank you  

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.