I'm still presuming that you want to send messages from the host machine, through the base station to Re-moteS. To do that look at: C:\cygwin\opt\tinyos-1.x\apps\SimpleCmd C:\cygwin\opt\tinyos-1.x\tools\java\net\tinyos\tools\Send.java
The Send.java program is fairly opaque so look at SimpleCmd first. My code contains a full impl of a command/reply system targeted at testing the message rates between host and motes. I hand generated java classes for the messages, but you can also use the MIG utility to make, IMHO, higher overhead versions of the same classes. See parts of the doc/tutorial for a bit more info. MS ma. pratama wrote: > Yes..i want to send the source from the sink that connected to the PC to > other motes.. > Where can i find the send and simplecmd examples in TinyOS 1?? i dont > get what you mean..? > > Thx,. > > --- On *Thu, 5/7/09, Michael Schippling /<[email protected]>/* wrote: > > > From: Michael Schippling <[email protected]> > Subject: Re: [Tinyos-help] Ask how to make sink as a sender on > tinyos 1.1.10? > To: "ma. pratama" <[email protected]> > Cc: [email protected] > Date: Thursday, May 7, 2009, 1:53 AM > > You can certainly change the base station code to use the Send > interface just like the re-Motes, but I suspect you want to > use the PC host as a message source. In that case see the Send > and SimpleCmd examples in the T1 java code, or TestSerial which > I think is only in T2. > > You can also look at my posted code for bi-directional messaging: > http://www.etantdonnes.com/Motes/robocode.tar.gz > > MS > > ma. pratama wrote: > > Hi all.. > > > > I want to ask all of you how to make a sink / base station act as > a sender that could send information to other nodes? are there any > interface or component that could do that sort of thing? please help > me.. > > > > Thx.. > > > > -Arif- > > > > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Tinyos-help mailing list > > [email protected] > </mc/[email protected]> > > > https://www..millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > <https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help> > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
