Hi Jenis,

 From what I have read in the documentation, this seems to be correct. I 
have never worked with the MIB600 before. I think I found one now and 
will be able to test it on Thursday.

Cheers,
Urs


On 11/8/11 8:50 PM, Modi, Jenis Ashokkumar wrote:
> Hi Urs,
>
> Yes, I am using MIB600 from Crossbow. I am able to install application on 
> both my motes properly. But when it comes to reading packets using java 
> Listen, it says that connection refused. I am giving commands like this.
>
> 1. "make mica2 install.1 eprb,192.168.10.500" for installing BlinkToRadio 
> application
> 2. "make mica2 install.2 eprb,192.168.10.500" for installing Basestation 
> application
> 3.  java net.tinyos.tools.Listen -comm network@192.168.10.500:10002
>
>
> Also, when I try to hit telnet command for 192.168.10.500:10002, it did not 
> open the window. It automatically terminated putty blank screen.
>
> Please let me know if I am doing something wrong.
>
> Thanks&  Regards,
> Jenis
>
>
> -----Original Message-----
> From: tinyos-help-boun...@millennium.berkeley.edu 
> [mailto:tinyos-help-boun...@millennium.berkeley.edu] On Behalf Of Urs Hunkeler
> Sent: Friday, November 04, 2011 12:10 AM
> To: tinyos-help@millennium.berkeley.edu
> Subject: Re: [Tinyos-help] Error while running net.tinyos.tools.Listen -- 
> URGENT
>
> Hi Jenis,
>
>   From what I read I think you are using the MIB600 programming board
> originally from Crossbow?
>
> The connection-refused message means that the program tried to establish
> a TCP connection to the given IP address and port number, and the device
> refused it. Maybe the programming of the second port didn't work
> properly and the MIB600 is somehow misconfigured (did you use 3 zeros
> everywhere?).
>
> Could you give us the exact commands and the exact output for
> programming the mote and then trying to communicate with it ("make
> install" and "java listen" commands)? Also what happens if you try the
> command "telnet 192.168.**.**** 10002"?
>
> By the way, just as a reference for other people who might be interested
> in the question, I found the user's manual here:
> http://www.cs.ucsb.edu/~nchohan/docs/moteManual.pdf
>
> Cheers,
> Urs
>
>
>
> On 11/3/11 7:18 PM, Modi, Jenis Ashokkumar wrote:
>> Hi Michael,
>>
>> I am trying to find stuff on internet, but it seems there are very
>> few places( or say application's document e.g. Readme.txt) where I
>> can get answer for my query. Most of the readme.txt in application
>> folder specifies syntax for serial/USB device.
>>
>> For the value which I sent which I specified as
>> "192.168.**.***:10002", I am not putting that as a wild card, I am
>> just specifying * here( in the e-mail). When I install application on
>> mote, I am specifying the actual IP address. For example,
>> 192.168.10.23 . If you know the Lantronix device installer, it says
>> that 10001 port is for input and 10002 is for output. Again, you can
>> modify the port number. I have set my port numbers as 10001 and 10002
>> respectively for i/p and o/p, but it does not show me output on that
>> port. :(
>>
>> FYI: I am using mica2 motes, and trying to install basestation and
>> blinktoradio application on motes. I am installing application using
>> this kind of command : make mica2 install.1 eprb,192.168.10.50
>>
>>
>> Thanks&   Regards, JEnis
>>
>> -----Original Message----- From: Michael Schippling
>> [mailto:sc...@santafe.edu] Sent: Thursday, November 03, 2011 9:30 AM
>> To: Modi, Jenis Ashokkumar Cc: tinyos-help@millennium.berkeley.edu
>> Subject: Re: [Tinyos-help] Error while running
>> net.tinyos.tools.Listen -- URGENT
>>
>> 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
>>
> _______________________________________________
> 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