Welcome to the Parallax Discussion Forums, sign-up to participate.
DiverBob wrote: »
I can set up a dedicated cog just for sending data back to the master over a single wire that connects to all the legs. This is a trickier process than the master sending out to the individual legs as all 6 legs could transmit back to the master and interfere with each other. ...........
So what I’m trying to do is figure out if this is the best way to approach this problem or if there is a better way I haven’t seen yet. I hope that explains the process better, I kind of clouded the issue earlier when talking about some of the difficulties running parallel processes.
kwinn wrote: »
This type of communication has been done many times in the past using one of several protocols. Typically it goes like this:
A single half duplex line goes from the master to all the slaves.
All slaves listen for a command addressed to them from the master.
When a slave receives a command it sends back data and/or acknowledgement to the slave and then goes back to listening.
Most commonly used protocol is probably csma/cd, which is the method used by ethernet.