[Tinyos-help] (T2-cvs) Bug in tossim-sf ?
Chad Metcalf
metcalfc at gmail.com
Wed Dec 5 13:42:46 PST 2007
So the most important thing about using the new TOSSIM-sf is that you have
to have to be using the serial stack and using it correctly. Please see
http://www.tinyos.net/tinyos-2.x/doc/html/tutorial/lesson4.html or
apps/test/TestSerial for an example.
Cheers
Chad
On Dec 4, 2007 3:33 PM, Van der Haegen Mathieu <dwarfy.lenain at gmail.com>
wrote:
> Hey everybody
>
> I've got a strange problem here :
> I'm trying to use tossim-sf with a nesc application i developped
> (AnchorApp)
> So when I try to compile it using : * make micaz sim-sf*
> I get the following errors :
>
> > dwarfy at dwarfy-laptop :/media/LACIE/MLG/piman/demo/v1/t2cvs/tinyos-
> > 2.x-contrib/ulb/mlg/apps/alts/anchor$ make micaz sim-sf
> > mkdir -p build/micaz
> > mig java -DIDENT_PROGRAM_NAME=\"AnchorAppC\" -DIDENT_USER_ID=\"dwarfy\"
> > -DIDENT_HOSTNAME=\"dwarfy -laptop\" -DIDENT_USER_HASH=0xae717420L
> > -DIDENT_UNIX_TIME=0x47556c5fL -DIDENT_UID_HASH=0xe52eb359L -java-classname=
> > net.tinyos.alts.engine.LAMsg anchor.h LAMsg -o LAMsg.java
> > mig java -DIDENT_PROGRAM_NAME=\"AnchorAppC\" -DIDENT_USER_ID=\"dwarfy\"
> > -DIDENT_HOSTNAME=\"dwarfy -laptop\" -DIDENT_USER_HASH=0xae717420L
> > -DIDENT_UNIX_TIME=0x47556c5fL -DIDENT_UID_HASH=0xe52eb359L -java-classname=
> > net.tinyos.alts.engine.LRMsg anchor.h LRMsg -o LRMsg.java
> > mv LAMsg.java ../../../support/sdk/java/src/net/tinyos/alts/engine/
> > mv LRMsg.java ../../../support/sdk/java/src/net/tinyos/alts/engine/
> > placing object files in build/micaz
> > writing XML schema to app.xml
> > compiling AnchorAppC 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\(\) -I/media/LACIE/MLG/piman/demo/v1/t2cvs/tinyos-
> > 2.x/tos/lib/tossim/sf -Wall -Wshadow -Wnesc-all -target=micaz
> > -fnesc-cfile=build/micaz/app.c -board=micasb -finline-limit=100000
> > -DIDENT_PROGRAM_NAME=\"AnchorAppC\" -DIDENT_USER_ID=\"dwarfy\"
> > -DIDENT_HOSTNAME=\"dwarfy -laptop\" -DIDENT_USER_HASH=0xae717420L
> > -DIDENT_UNIX_TIME=0x47556c5fL -DIDENT_UID_HASH=0xe52eb359L
> > -Wno-nesc-data-race AnchorAppC.nc -fnesc-dump=components
> > -fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs
> > -fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml
> > In component `SerialActiveMessageC':
> > /media/LACIE/MLG/piman/demo/v1 /t2cvs/tinyos- 2.x
> > /tos/lib/tossim/sf/sim/SerialActiveMessageC.nc: In function
> > `startDone.runTask':
> > /media/LACIE/MLG/piman/demo/v1/t2cvs/tinyos-2.x
> > /tos/lib/tossim/sf/sim/SerialAc tiveMessageC.nc:74:
> > SplitControl.startDone not connected
> > /media/LACIE/MLG/piman/demo/v1/t2cvs/tinyos-2.x
> > /tos/lib/tossim/sf/sim/SerialActiveMessageC.nc: In function
> > `stopDone.runTask':
> > /media/LACIE/MLG/piman/demo/v1 /t2cvs/tinyos-2.x
> > /tos/lib/tossim/sf/sim/SerialActiveMessageC.nc:75: SplitControl.stopDonenot connected
> > make: *** [sim-exe] Error 1
>
>
> I don't know what happend here ?
>
> Btw when I compile using : *make micaz sim *, I get :
>
> > dwarfy at dwarfy-laptop:/media/LACIE/MLG/piman/demo/v1/t2cvs/tinyos-
> > 2.x-contrib /ulb/mlg/apps/alts/anchor$ make micaz sim
> > mkdir -p build/micaz
> > mig java -DIDENT_PROGRAM_NAME=\"AnchorAppC\" -DIDENT_USER_ID=\"dwarfy\"
> > -DIDENT_HOSTNAME=\"dwarfy-laptop\" -DIDENT_USER_HASH=0xae717420L
> > -DIDENT_UNIX_TIME=0x4755dc0cL -DIDENT_UID_HASH=0xb631a11bL -java-classname=
> > net.tinyos.alts.engine.LAMsg anchor.h LAMsg -o LAMsg.java
> > mig java -DIDENT_PROGRAM_NAME=\"AnchorAppC\" -DIDENT_USER_ID=\"dwarfy\"
> > -DIDENT_HOSTNAME=\"dwarfy-laptop\" -DIDENT_USER_HASH=0xae717420L
> > -DIDENT_UNIX_TIME=0x4755dc0cL -DIDENT_UID_HASH=0xb631a11bL -java-classname=
> > net.tinyos.alts.engine.LRMsg anchor.h LRMsg -o LRMsg.java
> > mv LAMsg.java ../../../support/sdk/java/src/net/tinyos/alts/engine/
> > mv LRMsg.java ../../../support/sdk/java/src/net/tinyos/alts/engine/
> > placing object files in build/micaz
> > writing XML schema to app.xml
> > compiling AnchorAppC 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\(\) -Wall -Wshadow -Wnesc-all
> > -target=micaz -fnesc-cfile=build/micaz/app.c -board=micasb
> > -finline-limit=100000 -DIDENT_PROGRAM_NAME=\"AnchorAppC\"
> > -DIDENT_USER_ID=\"dwarfy\" -DIDENT_HOSTNAME=\"dwarfy-laptop\"
> > -DIDENT_USER_HASH=0xae717420L -DIDENT_UNIX_TIME=0x4755dc0cL
> > -DIDENT_UID_HASH=0xb631a11bL -Wno-nesc-data-race AnchorAppC.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
> > -DIDENT_PROGRAM_NAME=\"AnchorAppC\" -DIDENT_USER_ID=\"dwarfy\"
> > -DIDENT_HOSTNAME=\"dwarfy-laptop\" -DIDENT_USER_HASH=0xae717420L
> > -DIDENT_UNIX_TIME=0x4755dc0cL -DIDENT_UID_HASH=0xb631a11bL
> > /media/LACIE/MLG/piman/demo/v1/t2cvs/tinyos- 2.x/tos/lib/tossim/tossim_wrap.cxx
> > -I/usr/include/python2.5 -I/media/LACIE/MLG/piman/demo/v1/t2cvs/tinyos-
> > 2.x/tos/lib/tossim -DHAVE_CONFIG_H
> > g++ -c -shared -fPIC -o build/micaz/tossim.o -g -O0
> > -DIDENT_PROGRAM_NAME=\"AnchorAppC\" -DIDENT_USER_ID=\"dwarfy\"
> > -DIDENT_HOSTNAME=\"dwarfy-laptop\" -DIDENT_USER_HASH=0xae717420L
> > -DIDENT_UNIX_TIME=0x4755dc0cL -DIDENT_UID_HASH=0xb631a11bL
> > /media/LACIE/MLG/piman/demo/v1/t2cvs/tinyos- 2.x/tos/lib/tossim/tossim.c
> > -I/usr/include/python2.5 -I/media/LACIE/MLG/piman/demo/v1/t2cvs/tinyos-
> > 2.x/tos/lib/tossim
> > g++ -c -shared -fPIC -o build/micaz/c-support.o -g -O0
> > -DIDENT_PROGRAM_NAME=\"AnchorAppC\" -DIDENT_USER_ID=\"dwarfy\"
> > -DIDENT_HOSTNAME=\"dwarfy-laptop\" -DIDENT_USER_HASH=0xae717420L
> > -DIDENT_UNIX_TIME=0x4755dc0cL -DIDENT_UID_HASH=0xb631a11bL
> > /media/LACIE/MLG/piman/demo/v1/t2cvs/tinyos- 2.x/tos/lib/tossim/hashtable.c
> > -I/usr/include/python2.5 -I/media/LACIE/MLG/piman/demo/v1/t2cvs/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.
> >
>
> And using *make micaz* , It works too.
>
> So I don't know what fails ?
> I've been watching in tos/lib/tossim/sf/sim where SerialActiveMessageC is
> And the lines are :
>
> task void startDone() { signal SplitControl.startDone(SUCCESS); }
> task void stopDone() { signal SplitControl.stopDone(SUCCESS); }
>
> I've been searching for what component starts this one (and don't catch
> events) but I didn't find it ... (and it's late here :)
> Well by writing this line I tought about something :
> In AnchorApp I use those lines :
>
> #ifdef TOSSIM
> > return call TossimPacket.strength(m);
> > #else
> > return call CC2420Packet.getRssi(m);
> > #endif
>
> to get the rssi value of a packet.
>
> So maybe rssi isn't handled yet in tossim-sf ?
>
> Thanks for any help
> Mathieu
>
> Ps : I could post the complete sources of the app if necessary
> --
> Van der Haegen Mathieu
> http://www.ulb.ac.be/di/map/mavdhaeg/
> http://www.ulb.ac.be/di/labo/
> mavdhaeg at ulb.ac.be
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at Millennium.Berkeley.EDU
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
--
1ab2fc7cad95db6481460f90a4909870
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20071205/b83b4a7a/attachment-0001.html
More information about the Tinyos-help
mailing list