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.
 

paulfjujo

Advanced Member level 4
Joined
Jun 9, 2008
Messages
1,435
Helped
290
Reputation
580
Reaction score
275
Trophy points
1,363
Location
France 01800
Activity points
10,081
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.
 

hobbyckts

Advanced Member level 1
Joined
Mar 12, 2015
Messages
481
Helped
88
Reputation
176
Reaction score
85
Trophy points
28
Activity points
2,457
You need to address the slave devices one by one and then need to read the data
 

Gorgon

Full Member level 6
Joined
Nov 10, 2005
Messages
345
Helped
75
Reputation
150
Reaction score
67
Trophy points
1,308
Location
Norway
Activity points
3,642
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!
 

santukatke

Newbie level 3
Joined
Aug 22, 2014
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
19
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

Top