Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How two nodes are communicating in CAN bus protocol?

Status
Not open for further replies.

dhakeparag81

Full Member level 2
Full Member level 2
Joined
Jun 6, 2012
Messages
142
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,298
Location
INDIA
Activity points
2,469
hello,

I need some clarification or say some knowledge which i didnt able find out.
Lets say there are two node in can bus having id 101 and 102, when node 101 communicating it sending its id 101 right? and same for the node 102. i mean unlike MODBUS, in modbus master sending the slave id for communication,there is no slave in CAN bus.
now if node 101 having temperature data which is require by node 102, then when 101 is communicating it will send the id of its own 101 then DLC then data which contain temperature data then other stuff, in node 102 it received the data form 101 and act on it accordingly.
 
Last edited:

Re: how two nodes are communicating in CAN bus protocol?

No I believe in this regard CAN is like I2C (also multi-master). Any node can be a master and to initiate a transaction it broadcasts the ID of the node it wants to talk too where the ID also doubles as the priority (technically the same in I2C though usually less relevant).
 

Thanks Klausst,

yes there are so many but i didnt find the proper one i guess, where i get the detail explanation about talking/sharing info two nodes.

- - - Updated - - -

Thanks FvM, you mean i m explaining the situation correct?

also if node 101 wants some information from lets say third node 103 it generate the Remote frame right?
and can you please explain how that frame will be?

what i understood is node 101 generate remote frame with 103 id, please correct me if im wrong.
 

also if node 101 wants some information from lets say third node 103 it generate the Remote frame right?
and can you please explain how that frame will be?

what i understood is node 101 generate remote frame with 103 id, please correct me if im wrong.

That was the intention when the CAN bus was designed, but that functionality is normally handled by software, so you can design your system in other ways.
There are several ways to use the CAN id bits. The only requirement is that two nodes never try to send data frames with the same id at the same time. Two nodes can send remote frames with the same id since all bits in the frames will be identical.

For an example about how to use the CAN id bits, look at CANOpen.
 
thanks std_match,

im using MCP2515 module along with tja1050, i have read the datasheet of mcp2515, the configuration registers are so confusing.
The module has 8Mhz crystal and i want to configure the CAN with 125kbps what will be the configuration and how do you calculate it.
 

thanks std_match,

im using MCP2515 module along with tja1050, i have read the datasheet of mcp2515, the configuration registers are so confusing.
The module has 8Mhz crystal and i want to configure the CAN with 125kbps what will be the configuration and how do you calculate it.

Use a CAN bit timing calculator.
Online: http://www.kvaser.com/support/calculators/bit-timing-calculator/
Windows program: http://www.intrepidcs.com/products/free-tools/mb-time-calculator/
More info:
http://www.cnblogs.com/shangdawei/p/4716784.html
http://www.bittiming.can-wiki.info/
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top