Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CAN Network With Single Node (CAN protocol)

Tags:

can-bus

I am new to CAN protocol, going through the Robert Bosch's CAN Specification ver2.0 Part B. I can't understand the following lines on page 63

" Note: Start up / Wake up: if during startup only one node is online, and if this node transmits some message, it will get no acknowledgement, detect an error and repeats the message. It can become 'error passive' but not 'bus off' due to this reason."

As far as I understand when a transmitter detects an error(like Acknowledgement error) it retransmits the message and also increments the transmit error count (TEC) by 8. So if there is only one node then its TEC should increase by 8 everytime it transmits a message and should go into 'bus off' condition once TEC goes above 255.

Can someone please explain why the specification says it can only go 'Error Passive' but not 'Bus off'?

like image 563
Jagdish Avatar asked Mar 19 '23 21:03

Jagdish


1 Answers

I think you missed this part of the specification:

"Exception 1:

If the TRANSMITTER is 'error passive' and detects an ACKNOWLEDGEMENT ERROR because of not detecting a 'dominant' ACK and does not detect a 'dominant' bit while sending its PASSIVE ERROR FLAG. "

In this case, the TEC is not changed!

So, in your case, when the only node in the network re-transmits every time and the TEC becomes >= 128, it becomes 'error passive'. Then the above exception case becomes valid! And the TEC is no more changed! Hence no 'bus off'.

like image 102
CinCout Avatar answered Mar 22 '23 23:03

CinCout