Andrew,

as you are using MICA2 probably with MIB-520, the listening (debug) port is
the second one (ttyUSB1).
Try this command:

"$ java net.tinyos.tools.Listen -comm serial@/dev/ttyUSB1:mica2"

Regards,

Agnelo Rocha da Silva
Research Assistant - Wireless Sensor Networks Laboratory
University of Nebraska-Lincoln (UNL)

2009/2/5 Andrew C. Jung <[email protected]>

> Hello...  I am new to use TinyOS.  I am following the lesson4 which is
> "Mote-PC serial communication and SerialForwarder".  TinyOS 2.0.2 is
> installed on ubuntu 8.10. system and I am working with Mica2.  when I type "
> $ java net.tinyos.tools.Listen -comm serial@/dev/ttyUSB0:mica2", I got
> following errors:
>
> **************************************
>  java net.tinyos.tools.Listen -comm serial@/dev/ttyUSB0:mica2
> 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:200)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> Could not find the main class: net.tinyos.tools.Listen.  Program will exit.
> *******************************************
>
> Also, I couldn't install TestSerial application on a mote.
>
> If anyone knows how to fix it, please help me.
>
> Sincerely,
>
> Andrew C. Jung
>
> _______________________________________________
> 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

Reply via email to