sergio masci wrote: >> - Avoid "vague" commands ("toggle") in favor of more specific ones ("turn >> off") >> - Have the transmitter request the status before issuing the command >> again > > This implies that comms between two nodes is "serial" i.e. commands and > responses must ping pong back and fore between two nodes (say A and B) > before comms between other nodes can be accepted by either A or B > otherwise things start getting really hairy. > > The other thing to consider is what happens if the "turn off" command is > sent before the "turn on" command but arrives AFTER the "turn on" command. > Here "toggle" actually is an advantage. Yes packet sequence numbers are > definiately very useful for deciding what to do here. Well, yes. We weren't talking about some abstract protocol where you could get messages out of sequence. Vitaliy -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist