Best way to communicate with multiple BS2 on the same serial line
Curtis Brooks
Posts: 38
Hi all,
I'm trying to figure out the best way to communicate with multiple stamps on the same serial line to the PC. Each stamp will be setup as a slave configuration with the PC as the master. I'm trying to figure out the best way to only have a selected device respond on the network and the rest to ignore commands.
Some ideas I had:
1.·Assign a unique ID to each device and use that ID in the serin routine
2. Assign a major ID indicating device group and minor ID indicating specific device and use that in the serin routine
3. Assign a unique ID and all devices will receive a command but only selected device with matching ID will be enabled. All other devices will be disabled until a command is sent to enable them for communication by send an enable command along with the device ID.
I'm pretty sure all listed ways would work but I'm not sure of the best approach to take. Any suggestions?
Thanks in advance!
I'm trying to figure out the best way to communicate with multiple stamps on the same serial line to the PC. Each stamp will be setup as a slave configuration with the PC as the master. I'm trying to figure out the best way to only have a selected device respond on the network and the rest to ignore commands.
Some ideas I had:
1.·Assign a unique ID to each device and use that ID in the serin routine
2. Assign a major ID indicating device group and minor ID indicating specific device and use that in the serin routine
3. Assign a unique ID and all devices will receive a command but only selected device with matching ID will be enabled. All other devices will be disabled until a command is sent to enable them for communication by send an enable command along with the device ID.
I'm pretty sure all listed ways would work but I'm not sure of the best approach to take. Any suggestions?
Thanks in advance!
Comments
·· The following links may help, although with a PC as the master, not sure how you're going to do that.
http://www.parallax.com/dl/docs/cols/nv/vol2/col/nv55.pdf
http://www.parallax.com/dl/docs/cols/nv/vol2/col/nv56.pdf
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Thanks for the links, I'll check them out...
I'm trying to figure out the best method to implement the communications protocal between the stamps and the PC so that I can run them all from a common bus but only have the requested stamp respond at any given time.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Thanks guys, you have been a lot of help to me.