I'm with Michael on this one. If your mote hardware has what it takes to hook up to a PC (serial, USB, etc) or a Gateway (Tmote Connect, etc) then it doesn't matter what application you run on it.
Some T2 application sends data over the serial to a serial forwarder. Your application hooks up to this SF via a MoteIF. Your application can have as many MoteIFs up as you want. I just had 52 up without breaking a sweat. Lightly covered here: http://www.tinyos.net/tinyos-2.x/doc/html/tutorial/lesson4.html Now if your problem is with the SF then maybe you should look at at a different SF, like the C or C++ one. Or maybe your problem is elsewhere. Cheers Chad On 9/18/07, Michael Schippling <[EMAIL PROTECTED]> wrote: > Lets run this back to the help list, since I don't fully understand the > question.... > > If you want a physical connection between mote and PC you need one > MIB5x0 (or whatever) and one USB or serial 'port' per mote. Aside > from expense, I don't know that there is any limit to the number > of any of those you may use (well, maybe 256 ports or something...). > > I'm not sure why you want so many base-stations. We may have > a terminology problem because your use of "server" and "client" > has me confused. But if what you really want is a bunch of motes > hardwired to a PC, then the approach metcalfc and I have outlined > should do you fine. Each PacketSource is directly mapped to a single > port, and thus a single mote, and keeping track of which is which is > just, as they say, a matter of software... > > MS > > [EMAIL PROTECTED] wrote: > > I'm using tinyos-2.0,I think that that will work as > > Michael proposed but it still limits the number of > > base station that I can connect and also all theses BS's > > should be physically connected to the pc. > > > > The whole idea is that I have several base stations as clients > > and one sever.Each client wants to connect to the sever in > > order to send sensing messages to its table in a data base. > > In the other words, the application is just a datalogger. > > So if my server receives a sensing message it should know > > to which table should send it. > > For instance,I have a single client version of this application > > (one BS communicates with one application)but I try to create > > a multiclient version. > > BB. > > > > En réponse à [EMAIL PROTECTED]: > > > >> Granted I'm using T2 but I do this all the time w/ the Java sdk (not > >> much is different then the T1 ver). > >> > >> You create a MoteIF per sf and keep track of which is which (map?). > >> > >> I'm guessing you have a separate problem. Config or otherwise. > >> > >> > >> On 9/18/07, Michael Schippling <[EMAIL PROTECTED]> wrote: > >>> Perhaps Urs's advice has helped the initial problem but I would > >>> recommend that you just skip the SF processes and go directly to the > >>> serial ports. You could start a java thread to wait on each port and > >>> deliver the data for whatever processing you wish... > >>> > >>> Anyway there is indication in the T1 tools that you can do something > >>> like this: > >>> > >>> PacketSource ps = BuildSource.makePacketSource( > >> "<motecom-value>" ); > >>> ps.open(PrintStreamMessenger.err); > >>> > >>> while( (packet = ps.readPacket()) != null ) > >>> // do stuff > >>> > >>> where "<motecom-value>" is what you would normally put in the > >> MOTECOM > >>> environment variable, e.g.: [EMAIL PROTECTED]:mica2 > >>> > >>> MS > >>> > >>> > >>> [EMAIL PROTECTED] wrote: > >>>> The problem is that I would like to connect several base stations to > >> a > >>>> juste one pc in the way that they can communicate to the java > >>>> application which is running on this pc. > >>>> > >>>> My idea was to have a SerialForwarder for each base station in the > >> way > >>>> that they can communicate to my application on diffrent ports. > >>>> That's why I need to use SerialForwarder rather than any other > >> packet > >>>> source. > >>>> Does anybody have an idea about how can I handel the problem > >> below: > >>>> Cheers, > >>>> B. > >>>> > >>>> "I create a SerialForwarder and I try to associate it to moteIF > >> object > >>>> as below: > >>>> > >>>> PhoenixSource source = > >>>> > >> BuildSource.makePhoenix(BuildSource.makeSF > > (this.hostname,9002),PrintStreamMessenger.err); > >>>> MoteIF mote=new MoteIF(source); > >>>> > >>>> When I run the programe I get this: > >>>> > >>>> [EMAIL PROTECTED]:9002 died - exiting (java.net.ConnectException: > >> Connection > >>>> refused) > >>>> > >>>> I've checked there is no other SerialForwarder or another > >> application > >>> which > >>>> is running on this port .I've tried to unset MOTECOM but it's > >> useless" > >>>> _______________________________________________ > >>>> Tinyos-help mailing list > >>>> [email protected] > >>>> > >> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > >>> -- > >>> Platform: WinXP/Cygwin > >>> TinyOS version: 1.x, Boomerang > >>> Programmer: MIB510 > >>> Device(s): Mica2, MicaZ, Tmote > >>> Sensor board: homebrew > >>> > >>> _______________________________________________ > >>> Tinyos-help mailing list > >>> [email protected] > >>> > >> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > >> > >> -- > >> Chad @ Home > >> > -- Chad @ Home _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
