Home/Support/Support Forum/Broadcasting a message to all nodes and get their response messages

Broadcasting a message to all nodes and get their response messages

0 votes
I'd like to know, can I broadcast a message from a coordinator to all other nodes that each of them has been connected to a device in the line and then the coordinator receive their response messages?

Thank you in advance
asked Apr 3, 2016 in RF Solutions and XBee by hamidnaghi New to the Community (0 points)

Please log in or register to answer this question.

1 Answer

0 votes
Yes you can send a broadcast message to all nodes within the network and have them respond.
answered Apr 4, 2016 by mvut Veteran of the Digi Community (15,408 points)
Thank you mvut, Is there any document or example how to figure it out?
I would suggest reading over http://knowledge.digi.com/articles/Knowledge_Base_Article/XBee-802-15-4-Addressing/?q=16+bit+addressing&l=en_US&fs=Search&pn=1

It explains the addressing functions that the XBee modules support.
Thank you, I have one more question. Assume I have 1000 router, end device plus one coordinator. Also, assume each router or end device is connected to a electrical meter. If I send a command to read the energy from the electrical meter then I will receive 1000 respond from all devices in order? If so, how long does it take to receive the all responses? for example if there is 25 bytes in response message and the baud rate is 250kbit/s(25kbytes/s) then it will take about 1 second?
You are not going to get all 1000 nodes to respond to a blind broadcast poll request.  Especially within 1 second. There are data collisions and random back-offs that need to be accounted for. Not to mention any retries that will occur.

To collect data from 1000 nodes, you really need to poll each one, one at a time.
Thank you very much mvut,