You were right! No longer gives me the error of Null Pointer. However, there are new errors:
$java net.tinyos.tools.Listen -comm ser...@com3:icstick Invalid packet source (check your MOTECOM environment variable) $echo $MOTECOM ser...@com3:icstick I also tried to run to the micaz mote, and the result was: $java net.tinyos.tools.Listen -comm ser...@comm3:micaz The toscomm JNI library was not found. Check that your tinyos-tools package is installed and try rerunnig tos-install.jni. Aborting. $tos-install-jni Installing 32-bit Java JNI code in /cygdrive/c/Program Files/Java/jdk1.6.0_16/jre/bin ... install: cannot stat `/usr/lib/tinyos/*-32.dll`: No such file or directory I've done a search and didn't found any *. dll. :s On Wed, Sep 30, 2009 at 5:16 PM, Michael Schippling <[email protected]>wrote: > The usual format for the MOTECOM setting is something like > export MOTECOM="ser...@com7:tmote" > where the last field specifies what kind of mote is used. > That might be what's causing the null pointer. > MS > > > Ricardo . wrote: > >> Hello everyone, >> >> I'm going to start programming in tinyos, and I am now interested in >> knowing how to debug this kind of devices. >> I am working with the "ICradio stick 2.4", and I'm trying to run the >> application TestSerial. >> >> I can compile and flash .hex the mote, but when I try to run the java >> application gives me an error NullPointerException. >> >> I am working with the cygwin and tinyos-2.0.2-2. I am running the >> application with the command $java TestSerial -comm COM3. I confirmed that >> the mote is connected to COM3. >> >> $ java TestSerial -comm ser...@com3 >> Exception in thread "main" java.lang.NullPointerException >> at java.util.Hashtable.get(Unknown Source) >> at net.tinyos.packet.Platform.get(Platform.java:23) >> at net.tinyos.packet.BuildSource.decodeBaudrate(BuildSource.java:201) >> at net.tinyos.packet.BuildSource.makeArgsSerial(BuildSource.java:227) >> at net.tinyos.packet.BuildSource.makePacketSource(BuildSource.java:138) >> at net.tinyos.packet.BuildSource.makePhoenix(BuildSource.java:87) >> at TestSerial.main(TestSerial.java:97) >> >> >> Does anyone know the cause of the problem and/or how to solve it? >> >> Thank you very much, >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> 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
