[Tinyos-help] Timer not firing in TOSSIM

Tom Davies mynameismoof at yahoo.com
Tue May 1 17:51:52 PDT 2007


Hello,

I am trying to get TinyOS working for the first time, particularly with TOSSIM. I am running it on Ubuntu. I can compile just fine, and all debug statements for the motes booting etc. show up no problem. However when I call runNextEvent() from my Python file, the timer does not fire as it should (although runNextEvent() does return 1 if I step through it manually). 

For example, with the Blink app, none of the debug statements ever show up. I am adding the channel correctly, and it compiles and runs fine otherwise. Here is the output of make micaz sim for the Blink app:

mkdir -p build/micaz
  placing object files in build/micaz
  writing XML schema to app.xml
  compiling BlinkAppC to object file sim.o
ncc -c -shared -fPIC -o build/micaz/sim.o -g -O0 -tossim -fnesc-nido-tosnodes=1000 -fnesc-simulate -fnesc-nido-motenumber=sim_node\(\)   -finline-limit=100000 -Wall -Wshadow -Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c -board=micasb  -Wno-nesc-data-race BlinkAppC.nc   -fnesc-dump=components -fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs -fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml
  compiling Python support and C libraries into pytossim.o, tossim.o, and c-support.o
g++ -c  -shared -fPIC -o build/micaz/pytossim.o -g -O0  /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx -I/usr/include/python2.5 -I/opt/tinyos-2.x/tos/lib/tossim -DHAVE_CONFIG_H 
g++ -c  -shared -fPIC -o build/micaz/tossim.o -g -O0  /opt/tinyos-2.x/tos/lib/tossim/tossim.c -I/usr/include/python2.5 -I/opt/tinyos-2.x/tos/lib/tossim
g++ -c  -shared -fPIC -o build/micaz/c-support.o -g -O0  /opt/tinyos-2.x/tos/lib/tossim/hashtable.c -I/usr/include/python2.5 -I/opt/tinyos-2.x/tos/lib/tossim
  linking into shared object ./_TOSSIMmodule.so
g++ -shared -fPIC  build/micaz/pytossim.o build/micaz/sim.o build/micaz/tossim.o build/micaz/c-support.o -lstdc++  -o _TOSSIMmodule.so
  copying Python script interface TOSSIM.py from lib/tossim to local directory
 
*** Successfully built micaz TOSSIM library. 

Any help is really appreciated, thank you.




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070501/72a548e2/attachment.htm


More information about the Tinyos-help mailing list