Take a look at the TinyOS Tutorial Lesson 6 if you haven't already.
http://www.tinyos.net/tinyos-1.x/doc/tutorial/lesson6.html
I recommend you study the TinyOS Java classes MoteIF, BuildSource, and
PhoenixSource. You basically want to do something like this
source = BuildSource.makePhoenix( motecomstr, PrintStreamMessenger.err );
mote = new MoteIF( source, groupid );
and do that for each connection you want to open.
Best of luck,
Cory
On 4/4/06, Jose L. Ponce <[EMAIL PROTECTED]> wrote:
> On Thu, 2006-03-30 at 10:21 -0700, Michael Schippling wrote:
> > You can skip the SerialForwarder part and connect local programs
> > directly to the USB ports by using a MOTECOM envvar like
> > [EMAIL PROTECTED]:mica2 for each specific COM port. The Listen tool
> > and anything that uses BuildPacketSource does this.
>
> I see... Well, what I want is to have some kind of "bridge" so that a
> program on the PC can listen simultaneously to all USB-connected motes
> and send and receive messages from them and to them, kind of like an
> USB-equivalent to TOSBase... I guess this is not all that uncommon... I
> guess it should have been used already, for example when you are trying
> a protocol you've programmed and you want the motes to send information
> through the USB to the PC when something happens, to be able to conduct
> performance experiments and such...
>
> Has anyone done something of this kind? I would appreciate some tips or
> examples...
>
> Thanks,
>
> - Jose.
>
> > Jose L. Ponce wrote:
> > > Hello all,
> > >
> > > Usually, to be able to communicate with a mote which is connected to the
> > > pc, one opens serialforwarder and a bridge between the mote and the pc
> > > is built, so that a java program or something can send and receive
> > > messages from the mote. For me, until now, this also means that one can
> > > communicate with only one mote connected to the pc.
> > >
> > > In my experiment, I have several motes connected to my pc per USB, and I
> > > would like to be able to communicate with all of them per USB, not using
> > > the radio, to establish some kind of time sync so to build later a
> > > sampling system controlled by the computer.
> > >
> > > Any ideas of how I could do this? I find opening one SerialForwarder per
> > > mote is not the most efficient solution...
> > >
> > > Thanks in advance,
> > >
> > > - Jose.
> > >
> > >
> > > _______________________________________________
> > > Tinyos-help mailing list
> > > [email protected]
> > > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
>
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help