Sorry, but I can't help much further. My assumption is that Listen should be able to connect to external network ports, because it can do that with SerialForwarder. I know that SF has a "quirky" message format that needs a preamble character of some kind -- I think more like Telnet.
First I would make sure that the leds are blinking on both your motes. Blink does exactly that, and most basestations blink when sending or receiving. Then I'd look for _something_ supplied by your net adapter that reads messages to see if you get anything. MS 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:[email protected]] Sent: Thursday, November 03, 2011 9:30 AM > To: Modi, Jenis Ashokkumar Cc: [email protected] > 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: "[email protected].**.***: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:[email protected]] Sent: Wednesday, November 02, 2011 9:08 >> AM To: Modi, Jenis Ashokkumar Cc: >> [email protected] 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 [email protected].**.***:10002 >>> >>> This throws me "Error on >>> [email protected].**.***: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 [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
