I am currently developing a mote testbed management software. Here are some hints:
1. Use udev to detect when motes are attached or detached. 2. Through udev you can set up an instance of serial forwarder to listen to that mote - local address is taken to mean the serial/COM port. 3. For each instance of sf, use a different TCP port; devise some mapping scheme for consistency - if you have multiple machines, perhaps use some unique part of the machine/host name. In other words, use a global naming scheme. If you are not on Linux i.e. you are using Windows, Google for a udev equivalent, or poke around 'Control Panel'. Best regards, --- Darren Bishop -----Original Message----- From: José L. Ponce [mailto:[EMAIL PROTECTED] Sent: 24 August 2006 10:36 To: Michael Schippling Cc: [email protected] Subject: Re: [Tinyos-help] Serial Forwarder Problem Hello, > All the messages to and from your 50 re-Motes go through one > TOSBase mote on the MIB adapter to get to the host computer > where SerialForwarder (or any other client program) is running. > The messages are distinguished by a destination address (e.g., > the addr field in the TOS_Msg struct in ...tos/types/AM.h), and > sometimes contain a source address so you can tell where they > came from. To send a message to a specific mote you put it's > moteID in the destination address. > > Was that the question? > MS For the case of using a single mote with TOSBase which forwards messages it is clear. But, say we got two motes connected per USB to the computer. We would need two instances of SerialForwarder, each associated to one of the motes, and if a program on the computer wants to communicate with one of the motes, it would have to know which SerialFowarder to connect to. How would I have to do that? And going a bit further. The ideal case would be to have a program which automatically checks USB ports, gets the mote address of each mote connected and creates a SerialForwarder association with each mote, so that if a program wants to send a message to a mote, it only needs to know its local address. I am sure something similar already exists. I would like to know is it done. Thanks, - J. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.11.3/423 - Release Date: 18/08/2006 _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
