[Tinyos-help] Tinyviz/TOSSIM Problems in Tutorial 5

Toby Allen tobyallen at yahoo.com
Fri Sep 2 19:32:10 PDT 2005


Hi All,

I am working my way through the Introductory lessons
for TinyOS, so that I will be able to do some
programming of crickets for a project. Everything was
going fine until Lesson 5. I can not get TinyViz to
work despite my best efforts. When first opened it
Pauses at 0 simulation time and when unpaused nothing
happens. I am using cygwin under WindowsXP with the
TinyOS install that arrived with the Motes from Xbow.

Below is the output when I run it. Any ideas would be
much appreciated.

Thanks, Toby

The Output:
$ tinyviz -run ./build/pc/main.exe 30
java -Dpython.cachedir=/tmp/jython.cache -DDBG=usr1
-DSIMDBG= -jar C:/tinyos/cygwin/opt/tinyos-1.x/t
ools/java/net/tinyos/sim/simdriver.jar -gui -run
./build/pc/main.exe 30
Starting SimDriver...
Simulation random seed 1272059385
Initializing simulator objects...
Could not find a platform specific version of TOSMsg
java.lang.ClassNotFoundException:
net.tinyos.message.avrmote.TOSMsg
java.lang.ClassNotFoundException:
net.tinyos.message.avrmote.TOSMsg
        at
java.net.URLClassLoader$1.run(URLClassLoader.java:199)
        at
java.security.AccessController.doPrivileged(Native
Method)
        at
java.net.URLClassLoader.findClass(URLClassLoader.java:187)
        at
java.lang.ClassLoader.loadClass(ClassLoader.java:289)
        at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
        at
java.lang.ClassLoader.loadClass(ClassLoader.java:235)
        at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:141)
        at
net.tinyos.message.MessageFactory.instantiateTOSMsg(MessageFactory.java:122)
        at
net.tinyos.message.MessageFactory.createTOSMsg(MessageFactory.java:44)
        at
net.tinyos.sim.SimCommands.<init>(SimCommands.java:64)
        at
net.tinyos.sim.SimDriver.<init>(SimDriver.java:244)
        at
net.tinyos.sim.SimDriver.main(SimDriver.java:539)
Loading simulator plugins...
Creating TinyViz GUI...


Welcome to Tython. Type 'quit' to exit.
ESC on a line by itself will pause/resume the
simulator.

>>> AUTORUN: Initializing simulation.
AUTORUN: Running simulation: ./build/pc/main.exe -gui
-r=lossy -seed=1272059385 -nodbgout 30
AUTORUN: Connecting...
SF enabled, 0 clients, 0 packets read, 0 packets
written Could not find a platform specific version
SF enabled, 0 clients, 0 packets read, 0 packets
written
java.lang.ClassNotFoundException:
net.tinyos.message.avrmote.TOSMsg
java.lang.ClassNotFoundException:
net.tinyos.message.avrmote.TOSMsg
        at
java.net.URLClassLoader$1.run(URLClassLoader.java:199)
        at
java.security.AccessController.doPrivileged(Native
Method)
        at
java.net.URLClassLoader.findClass(URLClassLoader.java:187)
        at
java.lang.ClassLoader.loadClass(ClassLoader.java:289)
        at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
        at
java.lang.ClassLoader.loadClass(ClassLoader.java:235)
        at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:141)
        at
net.tinyos.message.MessageFactory.instantiateTOSMsg(MessageFactory.java:122)
        at
net.tinyos.message.MessageFactory.createTOSMsg(MessageFactory.java:36)
        at
net.tinyos.packet.BrokenPacketizer.<init>(BrokenPacketizer.java:58)
        at
net.tinyos.sim.packet.TossimSource.<init>(TossimSource.java:44)
        at
net.tinyos.sim.packet.TossimSerialSource.<init>(TossimSerialSource.java:32)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorIm
pl.java:27)
        at
java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        at
net.tinyos.packet.BuildSource.makeTossimSource(BuildSource.java:503)
        at
net.tinyos.packet.BuildSource.makeTossimSerial(BuildSource.java:472)
        at
net.tinyos.packet.BuildSource.makeArgsTossimSerial(BuildSource.java:463)
        at
net.tinyos.packet.BuildSource.makePacketSource(BuildSource.java:151)
        at
net.tinyos.packet.BuildSource.makePhoenix(BuildSource.java:87)
        at
net.tinyos.sf.SFListen.run(SFListen.java:84)
Could not find a platform specific version of TOSMsg
java.lang.ClassNotFoundException:
net.tinyos.message.avrmote.TOSMsg
java.lang.ClassNotFoundException:
net.tinyos.message.avrmote.TOSMsg
        at
java.net.URLClassLoader$1.run(URLClassLoader.java:199)
        at
java.security.AccessController.doPrivileged(Native
Method)
        at
java.net.URLClassLoader.findClass(URLClassLoader.java:187)
        at
java.lang.ClassLoader.loadClass(ClassLoader.java:289)
        at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
        at
java.lang.ClassLoader.loadClass(ClassLoader.java:235)
        at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:141)
        at
net.tinyos.message.MessageFactory.instantiateTOSMsg(MessageFactory.java:118)
        at
net.tinyos.message.MessageFactory.createTOSMsg(MessageFactory.java:44)
        at
net.tinyos.packet.AbstractSource.open(AbstractSource.java:81)
        at
net.tinyos.packet.PhoenixSource.run(PhoenixSource.java:167)
java.lang.NullPointerException
        at
net.tinyos.packet.AbstractSource.open(AbstractSource.java:82)
        at
net.tinyos.packet.PhoenixSource.run(PhoenixSource.java:167)
SimComm: TossimInitEvent received (30 motes)...
initializing system.
SimComm: Pausing system for TossimInitEvent
AUTORUN: Simulation running.

>>>
>>>

<-: TOBY ALLEN :->

"But, you're forgetting one thing - rock crushes scissors...but, paper covers rock, and scissors cuts paper! Kif, we have a conundrum!"


	
		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail


More information about the Tinyos-help mailing list