Further to my previous email, I just had a quick fiddle with TOSSIM. I'm actually fairly impressed ;)
Good little guide here: http://www.tinyos.net/nest/doc/tutorial/tossim-lesson.html So with Blink I did: cd /opt/tinyos-1.x/apps/Blink make pc build/pc/main 1 This resulted in following output: [EMAIL PROTECTED] /opt/tinyos-1.x/apps/blink $ build/pc/main 1 SIM: EEPROM system initialized. SIM: event queue initialized. SIM: Random seed is 250000 SIM: Initializing sockets SIM: Created server socket listening on port 10584. SIM: Created server socket listening on port 10585. SIM: Time for mote 0 initialized to 34044789. 0: BOOT: Scheduling for boot at 0:0:8.51119725. 0: Popping event for mote 0 with time 0:0:8.51119725. 0: Setting TOS_LOCAL_ADDRESS to 0 0: BOOT: Mote booting at time 0:0:8.51119725. 0: CLOCK: Setting clock rate to interval 231, scale 3 0: malloc data entry for clock event: 0xa04fd38 0: LEDS: initialized. SIM: commandReadThreadFunc: error in select(): Interrupted system call Exiting on SIGINT at 0:0:8.51119725. Goes a bit nuts when the clock starts up though ;) HTH, Alex. > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:tinyos-help- > [EMAIL PROTECTED] On Behalf Of Alex Mason > Sent: 21 November 2005 19:07 > To: [email protected] > Subject: RE: [Tinyos-help] problem using TOSSIM > > Hi, > > I get a similar message: > > [EMAIL PROTECTED] /opt/tinyos-1.x/apps/blink > $ make pc > mkdir -p build/pc > compiling Blink to a pc binary > ncc -o build/pc/main.exe -g -O0 -board=micasb -pthread -target=pc -Wall > -Wshado > w -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -fnesc-nido-tosnodes=1000 > -fnesc-cfile=buil > d/pc/app.c Blink.nc -lm > gcc: unrecognized option `-pthread' > C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/pc/PowerStateM.nc: In > function > `__n > esc_nido_initialise': > C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/pc/PowerStateM.nc:478: > warning: > pas > sing arg 1 of `memset' discards qualifiers from pointer target type > compiled Blink to build/pc/main.exe > 48128 bytes in ROM > 648912 bytes in RAM > > > The important thing is that the compilation was successful - the messages > are really just warnings as far as I can see. Whilst they *may* be > significant, it is probably unlikely with an app like Blink. In my > experience, read the warnings and then keep them in mind if you discover > problems when a program is running. > > I can't help much further as I haven't used TOSSIM - generally I just > program the motes. However a good guide can be found here: > > http://www.cs.berkeley.edu/~pal/pubs/nido.pdf > > HTH, > > Alex. > > > > > ________________________________________ > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > multimedia2004 > Sent: 21 November 2005 17:51 > To: [email protected] > Subject: [Tinyos-help] problem using TOSSIM > > Hey all, > > I am kind of newbie in tinyos, nesC and sensor networks and i am trying to > build my very first app in TOSSIM using the make pc command.... but i get > the following error... > > [EMAIL PROTECTED]@spoon /opt/tinyos-1.x/apps/Blink > $ make pc > mkdir -p build/pc > compiling Blink to a pc binary > ncc -o build/pc/main.exe -g -O0 -pthread -fnesc-nido-tosnodes=1000 -Wall > -Wsha > dow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=pc > -fnesc-cfile=build/pc/app.c -b > oard=micasb -DIDENT_PROGRAM_NAME="Blink" > -DIDENT_PROGRAM_NAME_BYTES="66,108,105, > 110,107,0" -DIDENT_USER_ID="[EMAIL PROTECTED]" > -DIDENT_USER_ID_BYTES="80,64,110,111,115,0" - > DIDENT_HOSTNAME="spoon" -DIDENT_HOSTNAME_BYTES="115,112,111,111,110,0" > -DIDENT_U > SER_HASH=0x4ca96e68L -DIDENT_UNIX_TIME=0x438207c3L Blink.nc -lm > gcc: unrecognized option `-pthread' > C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/pc/PowerStateM.nc: In > function > `__n > esc_nido_initialise': > C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/pc/PowerStateM.nc:360: > warning: > pas > sing arg 1 of `memset' discards qualifiers from pointer target type > compiled Blink to build/pc/main.exe > > What do you think is the problem? How can i fix that? i ve tried to build > the Blink app for the mica2 platform using the make mica2 and i didn't > have > a problem. (allthough i dont have any platform a all..;-p). I also tried > to > compile a different app (CntToLedsAndRfm) but i still have the same > problem.. anyone here willing to help me? > > Thanks a lot > [EMAIL PROTECTED] > > ps.i am using tinyos 1.1.11 > > > > ____________________________________________________________________ > http://www.freemail.gr - d??e?? ?p??es?a ??e?t??????? ta??d??µe???. > http://www.freemail.gr - free email service for the Greek-speaking. > > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
