[Tinyos-help] Re: Timer not firing in TOSSIM

Tom Davies mynameismoof at yahoo.com
Tue May 1 18:04:16 PDT 2007


My apologies, I found the solution in the archives. Editing the atm128_sim.h file fixed it :)

----- Original Message ----
From: Tom Davies <mynameismoof at yahoo.com>
To: tinyos-help at Millennium.Berkeley.EDU
Sent: Tuesday, May 1, 2007 5:51:52 PM
Subject: Timer not firing in TOSSIM

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.






      Ahhh...imagining that irresistible "new car" smell?
 Check out
new cars at Yahoo! Autos.





__________________________________________________
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/e3040712/attachment-0001.html


More information about the Tinyos-help mailing list