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.

[ARM] How to handle if more than two slaves sends their data to master at the same time?

Status
Not open for further replies.

santukatke

Newbie level 3
Joined
Aug 22, 2014
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
19
Greetings,

I am trying to communicate four ARM controllers by using modbus protocol.Everything is working properly but when two or more slaves sends their data to the master then only one slave's data is receiving at master.

Thanx in advance.
 

Code:
 when two or more slaves sends their data to the master

so, they are not realy slaves !
A slave must give a response WHEN the master requier some datas.
The master send a modbus request wich contains a slave adresse, and wait the response within a timeout delay..
except when send a broadcast adress ..for all slaves.
 

You need to address the slave devices one by one and then need to read the data
 

The MODBUS protocol normally has only 1 master, and the rest is slaves. The master asks each slave in sequence, and the slave asked, reply with whatever status or info asked for.

The master ask every slave active in the net, in an everlasting sequence.

The slave will always answer an enquiry!
 
Thanks for reply,

These posts are really useful for me.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top