It's a little unclear, but I'm going to assume that your point 2 means
that you have installed Basestation on the mica2 that is plugged into
the host computer. And further that you are seeing leds blink as one
would hope...

Then, the error you are getting indicates that Listen is expecting to
connect to a network port, usually the SerialForwarder. This is the
default behavior, but I always recommend just forgetting about SF and
going direct, as it were. To connect Listen to the actual input port
you need to set use something like "-comm serial@COM1:mica2" where
COM1 is the I/O port your mica2 is plugged into. You can also
set the same string in a MOTECOM environment variable and not have
to bother with it on the command line.

Probably searching for MOTECOM will turn up some better advice.

MS


Modi, Jenis Ashokkumar wrote:
> 
> 
> Hi All,
> 
> Could you please help me for this part? I want to run Listen
> application and want to see the packet it sees. These are the steps
> which I am following.
> 
> This is what I did in steps. 1. Install mica2 motes on
> apps/tutorials/BlinkToRadio. (on 2 different motes) 2. Install mica2
> mote (one of the mote where BlinkToRadio is installed) on
> apps/Basestation application. 3. java net.tinyos.tools.Listen -comm
> network@192.168.**.***:10002
> 
> This throws me "Error on
> network@192.168.**.***:10002:java.net.ConnnectException: Connection
> refused". Please let me know If I am following wrong steps. I am
> following this link for getting output.
> 
> http://docs.tinyos.net/tinywiki/index.php/Mote-PC_serial_communication_and_SerialForwarder
> 
> 
> 
> 
> Thanks & Regards, Jenis
> 
> 
> 
> 
> 
> _______________________________________________ Tinyos-help mailing
> list Tinyos-help@millennium.berkeley.edu 
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to