> Second question: Suppose I have two motes and two instances of > SerialForwarder running, one for each mote. If I have a program which > wants to communicate with one of the motes, how does the program know > which of the SerialForwarders to use? For the case of a single > SerialForwarder, I have always done:
On this testbed: http://enl.usc.edu/projects/tutornet/index.html We maintain a mapping of USB port and mote ID (that you can get from motelist). Then you can maintain either an explicit (another mapping file) or an implicit mapping (lookup the mote/usbport mapping file and always make sure a given serial forwarder is always launched for mote x) of serial forwarder instance and moteID. These two mapping can be merged into a single file if you wish. Your program can figure out the serial forwarder to which it needs to connect by looking at these mappings. Make sure you rerun mapping scripts (potentially restart serial forwarder depending on your configuration) every time port assignment changes. _______________________________________________ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help