Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

71%
+3 −0
Q&A Why is the ACK (acknowledge bit) in the CAN bus frames dominant? What could have been the rationale behind that design decision?

[I’m asking this question out of curiosity. I understand that this aspect of the CAN bus specification is what it is, and can not change.] The ACK bit in any CAN data frame is dominant. Each rece...

2 answers  ·  posted 4y ago by Nick Alexeev‭  ·  last activity 4y ago by Olin Lathrop‭

Question CAN-bus
#2: Post edited by user avatar Nick Alexeev‭ · 2020-10-30T01:59:33Z (about 4 years ago)
  • Why is the ACK (acknowledge bit) in the CAN bus frames dominant? What was the rationale behind this spec?
  • Why is the ACK (acknowledge bit) in the CAN bus frames dominant? What could have been the rationale behind that design decision?
#1: Initial revision by user avatar Nick Alexeev‭ · 2020-10-29T22:35:29Z (about 4 years ago)
Why is the ACK (acknowledge bit) in the CAN bus frames dominant?  What was the rationale behind this spec?
_[I’m asking this question out of curiosity.  I understand that this aspect of the CAN bus specification is what it is, and can not change.]_

The ACK bit in any CAN data frame is dominant.  Each receiving node sets the ACK dominant when it receives a data frame, and doesn’t detect errors.  Dominant ACK acts as a wired NOR.  When the transmitting node sees the ACK in the dominant state, it knows that _at least one other node_ had received the frame without errors.
  
From the ACK bit alone, the transmitting node can’t determine if all nodes have received the message.  From the ACK bit alone, the transmitting node can’t determine if the nodes to whom it may concern have received  the message.

If this ambiguity needs to be resolved, then a higher level protocol which runs on top of CAN should have acknowledge frames.  These would be CAN data frames with acknowledge information.

<h3>Was there another option?</h3>

I think that the other option was to make the ACK bit recessive.  Each receiving node on the bus sets ACK recessive when it receives the data frame, and doesn’t detect errors.  Recessive ACK acts as wired AND.  The sending node sees the recessive ACK and concludes that its message have been sent successfully and every node on the bus had received it.  If one node detects an error, then it drives the ACK bit dominant.  The sender sees the dominant bit, and re-transmits, or takes other measures.