CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

what happen if same id transmitting at same time on CAN bus

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
prabu



Joined: 29 Jan 2015
Posts: 8
Location: india chennai

View user's profile Send private message

what happen if same id transmitting at same time on CAN bus
PostPosted: Fri Jan 30, 2015 1:11 am     Reply with quote

what happen 2 same ids transmitting at same time on CAN bus
Ttelmah



Joined: 11 Mar 2010
Posts: 19224

View user's profile Send private message

PostPosted: Fri Jan 30, 2015 1:45 am     Reply with quote

Look at:

<http://can-bus.996267.n3.nabble.com/Unique-ID-amp-Acknowledgement-in-CAN-td3106.html>

The bus designer is meant to ensure that ID's are unique, but if it happened, this gives the error sequence that would be seen. Unless the data packet is also identical at some point one device will send a '1' while the other sends a '0', and this device will see a bit error first, and send an error, so the devices will automatically move fractionally 'out of sync' in terms of when they retry.

If you have the terrible design, that the message being sent, is also 'standard', so is identical between the two devices, they would possibly recover at some point because of clock drifting, but there is no guarantee of this. This is why the bus specifications forbid identical ID's.

The condition is listed in the spec as 'irresolvable'...

There are ways of designing to try to handle this, by adding a random element to retry times, and/or a random element to the data (stick a reading for temperature etc., into the otherwise identical messages for example).
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group