ahha....

I guess you are using a network base-station/programming adapter.
I'm afraid you'll have to find documentation for that adapter.
If you send the name and number of that beast maybe someone
will know how to use it correctly. I only use serial or USB
devices.

It will probably boil down to figuring out the network address
and port number to use with the -comm argument. I notice that
the value you sent: "network@192.168.**.***:10002" has those
wild-card *'s which is probably not correct. 192.168... is
usually a locally routed net, so that part could be right.
Presuming that you used it for programming you should have
the right IP address someplace, I just don't know about
the :port #.

MS

Modi, Jenis Ashokkumar wrote:
> Hi Michael,
> 
> Thanks for the reply. I have installed both my motes using RJ 45(or say using 
> IP address) cable only. I cannot use the Serial cable connection to my motes 
> as it can be just connected using RJ 45 cable. I am confused about the below 
> lines which is there on 
> http://docs.tinyos.net/tinywiki/index.php/Mote-PC_serial_communication_and_SerialForwarder#BaseStation_and_net.tinyos.tools.Listen
>  . which says that,
> "BaseStation is receiving your BlinkToRadio packets and sending them to the 
> serial port, so if it is plugged into a PC we can view these packets. The 
> Java tool Listen is a basic packet sniffer: it prints out the binary contents 
> of any packet it hears."
> 
> So, my question is that, "is it necessary for me to have my mote connected to 
> PC (via serial com port) ? or Is there any mechanism via which I can sniff 
> this packets as I am using RJ 45 cable to connect to my motes? I don't have 
> serial port connection to my motes. "
> 
> Waiting for your kind reply. 
> 
> Thanks & Regards,
> Jenis
> 
> -----Original Message-----
> From: Michael Schippling [mailto:sc...@santafe.edu] 
> Sent: Wednesday, November 02, 2011 9:08 AM
> To: Modi, Jenis Ashokkumar
> Cc: tinyos-help@millennium.berkeley.edu
> Subject: Re: [Tinyos-help] Error while running net.tinyos.tools.Listen -- 
> URGENT
> 
> 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