Re: [Tinyos-help] net.tinyos.tools.Listen and Micaz
Hello Andris, Indeed. I'm using a MIB520. I tried ttyUSB1 and it works! Thank you very much for your help. With best regards, Nouha 2011/10/11 Bíró András bband...@gmail.com Hell Sghaier, You're probably using a mib520 programming board, which has two virtual serial port, the first one for programming, the second one for communicating. If you have no other usb serial device, then you should listen on ttyUSB1. Andris On Tue, Oct 11, 2011 at 6:24 PM, Nouha Sghaier nouha.sgha...@gmail.com wrote: Hello, I'm using Xubuntos on Vmware for programming my micaz with TinyOS2.x applications. I followed instructions in lesson 4 about Mote-PC serial communication and SerialForwarder ( http://www.tinyos.net/dist-2.0.0/tinyos-2.0.0/doc/html/tutorial/lesson4.html ) and I'm facing a problem with java net.tinyos.tools.Listen command. I installed BaseStation application on a mote and BlinkToRadio application on another and when I type java net.tinyos.tools.Listen, the screen is stuck in: Serial@/dev/ttyUSB0:57600:resynchronising and no data is displayed!!! Could someone help me please resolve this problem? Thank you. Nouha SGHAIER ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- Nouha SGHAIER ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] net.tinyos.tools.Listen and Micaz
Hell Sghaier, You're probably using a mib520 programming board, which has two virtual serial port, the first one for programming, the second one for communicating. If you have no other usb serial device, then you should listen on ttyUSB1. Andris On Tue, Oct 11, 2011 at 6:24 PM, Nouha Sghaier nouha.sgha...@gmail.com wrote: Hello, I'm using Xubuntos on Vmware for programming my micaz with TinyOS2.x applications. I followed instructions in lesson 4 about Mote-PC serial communication and SerialForwarder (http://www.tinyos.net/dist-2.0.0/tinyos-2.0.0/doc/html/tutorial/lesson4.html) and I'm facing a problem with java net.tinyos.tools.Listen command. I installed BaseStation application on a mote and BlinkToRadio application on another and when I type java net.tinyos.tools.Listen, the screen is stuck in: Serial@/dev/ttyUSB0:57600:resynchronising and no data is displayed!!! Could someone help me please resolve this problem? Thank you. Nouha SGHAIER ___ 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
Re: [Tinyos-help] net.tinyos.tools.Listen
Please send messages to the help list to keep a record of my mistakes. The problem here is that Java doesn't know from /opt/tinyos-2.x... because that's a cygwin thing. So your CLASSPATH should have a real widows directory name, like C:/cygwin/opt/tinyos-2.x/... If you have compiled Listen as well you should be able to run it from the top java tools directory (from where you compiled). Then the . in the CLASSPATH should find the newly compiled class. MS Nimish Kale wrote: Hi Thanks for the reply, I complied the Listen.java, but still nothing. I keep on getting the same errors. This is what i have put in my .bashrc file export TOSROOT=/opt/tinyos-2.x export TOSDIR=$TOSROOT/tos export TOSDIR=$TOSROOT/tos export CLASSPATH=$TOSROOT/support/sdk/java/tinyos.jar:. export PYTHONPATH=$TOSROOT/support/sdk/python export MAKERULES=$TOSROOT/support/make/Makerules export PATH=/opt/msp430/bin:$PATH Please help me debug this problem On Thu, Jul 14, 2011 at 11:59 AM, Michael Schippling sc...@santafe.edu mailto:sc...@santafe.edu wrote: First make sure your CLASSPATH contains the tools jar file. You shouldn't need to build everything, but if you have to you can compile the files needed by Listen by going to the /opt/tinyos-2.x/support/sdk/__java directory and typing: javac net/tinyos/tools/Listen.java Then the argument -comm serial@/dev/tty/USB0; telosb is wrong. The semi-colon ';' is a command separator so the shell thinks telosb is a new command. It should be a colon ':' with no space, ala: -comm serial@/dev/tty/USB0:telosb MS Nimish Kale wrote: Hi I am new to tinyos and running it on ubuntu. I am having problems with the net.tinyos.tools.Listen. I need to check the data from a mote I am getting the following error: VPCEB23FM:/opt/tinyos-2.x/__apps/BaseStation$ java net.tinyos.tools.Listen -comm serial@/dev/tty/USB0; telosb Exception in thread main java.lang.__NoClassDefFoundError: net/tinyos/tools/Listen Caused by: java.lang.__ClassNotFoundException: net.tinyos.tools.Listen at java.net.URLClassLoader$1.run(__URLClassLoader.java:217) at java.security.__AccessController.doPrivileged(__Native Method) at java.net.URLClassLoader.__findClass(URLClassLoader.java:__205) at java.lang.ClassLoader.__loadClass(ClassLoader.java:__321) at sun.misc.Launcher$__AppClassLoader.loadClass(__Launcher.java:294) at java.lang.ClassLoader.__loadClass(ClassLoader.java:__266) Could not find the main class: net.tinyos.tools.Listen. Program will exit. telosb: command not found when i use the 'make' command in opt/tinyos-2.x/support/sdk/__java I get the following errors: failed to parse message file /opt/tinyos-2.x/tos/lib/__printf/printf.h make[3]: *** [PrintfMsg.java] Error 1 make[3]: Leaving directory `/opt/tinyos-2.x/support/sdk/__java/net/tinyos/tools' make[2]: *** [subdirs] Error 2 make[2]: Leaving directory `/opt/tinyos-2.x/support/sdk/__java/net/tinyos' make[1]: *** [subdirs] Error 2 make[1]: Leaving directory `/opt/tinyos-2.x/support/sdk/__java/net' make: *** [subdirs] Error 2 Please help me out --__--__ _ Tinyos-help mailing list Tinyos-help@millennium.__berkeley.edu mailto:Tinyos-help@millennium.berkeley.edu https://www.millennium.__berkeley.edu/cgi-bin/mailman/__listinfo/tinyos-help https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- Nimish Kale MS CS student University of Texas at Dallas ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] net.tinyos.tools.Listen MIB600 No data is seen on theDisplay
The port 10001 of MIB600 is used to program the Mote and port 10002 is used to read data from the base Mote. You need to set the MOTECOM variable to port 10002 of your MIB600 for the PC tools to read data. Regards, Giri From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Giovanni Abu-Aita Sent: Monday, February 11, 2008 9:29 PM To: tinyos-help@millennium.berkeley.edu Subject: [Tinyos-help] net.tinyos.tools.Listen MIB600 No data is seen on theDisplay hello everybody, I am running the Oscilloscope Application on the mote that is connected to MIB600. I am trying to read the packets and display them on the screen using net.tinyos.tools.Listen but nothing seems to appear on the screen. with MIB510 everything goes fine. with MIB600 I set the value of MOTECOM: export MOTECOM:[EMAIL PROTECTED]:10001 but still the Listen gives me: [EMAIL PROTECTED]:10001: resynchronising and stops there. anybody can help in this. P.S. : 1) I had this problem before and I have changed the settings of the MIB600 by browsing it: I set the Speed of channel 1 to 115200 and the speed of channel 2 57600 and i made sure the ports are 10001 and 10002 respectively. Fortunately It worked. But now I don;t know what I did wrong; I even restored to factory settings plus the changes above but it did;t work. 2) I also tried the SerialForwarder but it seemed it doesn't read the packets. Any help??? Thanks in advance Never miss a thing. Make Yahoo your homepage. http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] net.tinyos.tools.Listen MIB600 No data is seen on theDisplay
Thank you very much. I did try the port 10002 first and it did not work; but after playing with the data rate (Speed=57600) it worked fine. Thanks again. Giri Baleri [EMAIL PROTECTED] wrote: The port 10001 of MIB600 is used to program the Mote and port 10002 is used to read data from the base Mote. You need to set the MOTECOM variable to port 10002 of your MIB600 for the PC tools to read data. Regards, Giri - From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Giovanni Abu-Aita Sent: Monday, February 11, 2008 9:29 PM To: tinyos-help@millennium.berkeley.edu Subject: [Tinyos-help] net.tinyos.tools.Listen MIB600 No data is seen on theDisplay hello everybody, I am running the Oscilloscope Application on the mote that is connected to MIB600. I am trying to read the packets and display them on the screen using net.tinyos.tools.Listen but nothing seems to appear on the screen. with MIB510 everything goes fine. with MIB600 I set the value of MOTECOM: export MOTECOM:[EMAIL PROTECTED]:10001 but still the Listen gives me: [EMAIL PROTECTED]:10001: resynchronising and stops there. anybody can help in this. P.S. : 1) I had this problem before and I have changed the settings of the MIB600 by browsing it: I set the Speed of channel 1 to 115200 and the speed of channel 2 57600 and i made sure the ports are 10001 and 10002 respectively. Fortunately It worked. But now I don;t know what I did wrong; I even restored to factory settings plus the changes above but it did;t work. 2) I also tried the SerialForwarder but it seemed it doesn't read the packets. Any help??? Thanks in advance - Never miss a thing. Make Yahoo your homepage. - Looking for last minute shopping deals? Find them fast with Yahoo! Search.___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help