[Tinyos-help] FTSP with MicaZ Problem
Hello everybody, I’ve tested the FTSP Protocol into my MicaZ Motes. After I used PrintDiagMsgs and first, it starts printing the messages: NodeId | SeqPolling | GlobalTime | LocalTime | Skew | Synched? | Rootid | Seq | Msgstored 2 1 0 0 0.0 0 65536 0 0 3 1 0 0 0.0 0 65536 0 0 4 1 0 0 0.0 0 65536 0 0 2 3 0 0 0.0 0 65536 0 0 3 3 0 0 0.0 0 65536 0 0 4 3 0 0 0.0 0 65536 0 0 2 6 0 0 0.0 0 65536 0 0 3 6 0 0 0.0 0 65536 0 0 4 6 0 0 0.0 0 65536 0 0 2 9 0 0 0.0 0 65536 0 0 3 9 0 0 0.0 0 65536 0 0 4 9 0 0 0.0 0 65536 0 0 … And After 2 minutes, the regression lines are built and it became synchronised, I obtained: 2 243 0 0 0.0 1 4 1 1 3 243 0 0 0.0 1 4 1 2 4 243 0 0 0.0 1 4 1 1 2 245 0 0 0.0 1 4 2 0 3 245 0 0 0.0 1 4 1 1 4 245 0 0 0.0 1 4 1 2 ……. So it's strange because my LocalTime = GlobalTime = and motes seems perfectly synchronised (the motes are able to obtain the SeqPolling and “synched?” bit = 1) So, I’m searching into the program files why the values of LocalTime from receiver Motes are not displayed and don’t change… (GlobalTime = LocalTime)? Somebody have any idea about the no value of LocalTime??? Perhaps Problem using interface TimeStamp when call the function ( call TimeStamping.getStamp() ) in the timesyncdebuggerm.nc file? or incompatibility with MicaZMotes?? Somebody have a Vu directory with the good TimeStamp interface or TestTimeSync Application tested on MicaZ? Thanks for your reply and your helps Sincerely Matt ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] SimpleCmdMsg format
Hello Julia, Your output should be laid out as: // SimpleCmd message structure typedef struct SimpleCmdMsg { int8_t seqno;.0 (int8_t=1byte) int8_t action;1 (int8_t=1byte) uint16_t source;...00 (uint16_t=2bytes) uint8_t hop_count;...0 (int8_t=1byte) union { start_sense_args ss_args;...00 (int=2bytes, uint32_t=4bytes) OR read_log_args rl_args;...00 (uint16_t=2bytes) OR uint8_t untyped_args[0];..0 (int8_t=1byte) } args; } SimpleCmdMsg;" Notice that there is a union in the structure. What that means is that you want to interpret the same portion of memory in different ways. So, start_sense_args ss_args; read_log_args rl_args; uint8_t untyped_args[0]; refer to the same memory space that is accessible as either ss_args, rl_args or untyped_args[0]. The size of the common memory space is the size of the largest element of the union, which in this case, is ss_args with 6 bytes. If you use rl_args or untyped_args[0], the rest of the memory space beyond that defined by their size will be filled with 0s for a total of 6 bytes. In your example of LED_ON, the output should be: 0 1 0 0 0 0 0 0 0 0 0 with 9 zeros after the 1. Adesola -- Message: 1 Date: Wed, 14 Jun 2006 23:07:14 -0600 From: Michael Schippling <[EMAIL PROTECTED]> Subject: Re: [Tinyos-help] SimpleCmdMsg format To: [EMAIL PROTECTED] Cc: tinyos-help@Millennium.Berkeley.EDU Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed I'm not sure that I'm even capable of following your zero counting logic, but it may be that what is being printed in your "It just shows:" line has a single zero for each element, regardless of byte,int,long size, whereas it seems that you are counting each byte in your structure analysis... MS [EMAIL PROTECTED] wrote: > Hi, > > I have a question concerning the format of the SimpleCmdMsg found in > C:\tinyos\cygwin\opt\tinyos-1.x\apps\simpleCmd...In SimpleCmdMsg.h, > "typedef struct { > int nsamples; > uint32_t interval; > } start_sense_args; > > typedef struct { > uint16_t destaddr; > } read_log_args; > > // SimpleCmd message structure > typedef struct SimpleCmdMsg { > int8_t seqno;.0 > int8_t action;1 > uint16_t source;...00 > uint8_t hop_count;...0 > union { > start_sense_args ss_args;...0 > read_log_args rl_args;...00 > uint8_t untyped_args[0];..0 > } args; > } SimpleCmdMsg;" > > So if the command is LED_ON, We should have: 0 1 00 0 0 00 0 but > after running the BcastInject code found in > tinyos\cygwin\opt\tinyos-1.x\tools\java\net\tinyos\tools...It just shows: > sending payload: 0 1 0 0 0 0 0 0 0 0 0 (9 zeros after the one...and it > should be 11 zeros).. > > Am I right in analyzing the payload for the LED_ON commad > > Thanks in advance, > > Julia. > ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] could not open port: (5, 'CreateFile', 'Access is denied.')
When trying to install a program on my TelosB mote, I get the following error: could not open port: (5, 'CreateFile', 'Access is denied.') I know that this means the com port is busy, but how do I free it up. The mote currently has a program on it that I think is using the port, but I am unable to erase that program. Any help would be greatly appreciated. Thanks, Angelina The entire error message: $ make telosb install mkdir -p build/telosb compiling TelosADC2C to a telosb binary ncc -o build/telosb/main.exe -O -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-al l -target=telosb -fnesc-cfile=build/telosb/app.c -board= -I%T/lib/Deluge -Wl,--s ection-start=.text=0x4800,--defsym=_reset_vector__=0x4000 -DIDENT_PROGRAM_NAME=\ "TelosADC2C\" -DIDENT_USER_ID=\"SERF501\" -DIDENT_HOSTNAME=\"DATAPACK\" -DIDENT_ USER_HASH=0x7e5bf602L -DIDENT_UNIX_TIME=0x44908becL -DIDENT_UID_HASH=0xed0b3b54L -mdisable-hwmul -I/opt/tinyos-1.x/tos/lib/CC2420Radio TelosADC2C.nc -lm compiled TelosADC2C to build/telosb/main.exe 8684 bytes in ROM 285 bytes in RAM msp430-objcopy --output-target=ihex build/telosb/main.exe build/telosb/main.ihex writing TOS image cp build/telosb/main.ihex build/telosb/main.ihex.out found mote on COM6 (using bsl,auto) installing telosb bootloader using bsl msp430-bsl --telosb -c 5 -r -e -I -p C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/l ib/Deluge/TOSBoot/build/telosb/main.ihex MSP430 Bootstrap Loader Version: 1.39-telos-7 An error occoured: could not open port: (5, 'CreateFile', 'Access is denied.') make: *** [program_bl] Error 1 ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] could not open port: (5, 'CreateFile', 'Access is denied.')
Angelina, You are correct that the port cannot be opened because some program has claimed access to it. A quick and easy way to regain access for programming would be to restart your computer. Otherwise, you must find out what is using the COM port and cause that program to release it. Out of curiousity, are you using LabVIEW to communicate with your motes??? If so, make sure that you include the subvi that closes the COM port in your application. I suppose that goes for any software you are using to communicate with the motes though. Regards,Matt[EMAIL PROTECTED] wrote: -To: tinyos-help@Millennium.Berkeley.EDUFrom: abensong <[EMAIL PROTECTED]>Sent by: [EMAIL PROTECTED]Date: 06/15/2006 09:41AMSubject: [Tinyos-help] could not open port: (5, 'CreateFile', 'Access is denied.')When trying to install a program on my TelosB mote, I get the following error: could not open port: (5, 'CreateFile', 'Access is denied.') I know that this means the com port is busy, but how do I free it up. The mote currently has a program on it that I think is using the port, but I am unable to erase that program. Any help would be greatly appreciated.Thanks,AngelinaThe entire error message:$ make telosb installmkdir -p build/telosb compiling TelosADC2C to a telosb binaryncc -o build/telosb/main.exe -O -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board= -I%T/lib/Deluge -Wl,--section-start=.text=0x4800,--defsym=_reset_vector__=0x4000 -DIDENT_PROGRAM_NAME=\"TelosADC2C\" -DIDENT_USER_ID=\"SERF501\" -DIDENT_HOSTNAME=\"DATAPACK\" -DIDENT_USER_HASH=0x7e5bf602L -DIDENT_UNIX_TIME=0x44908becL -DIDENT_UID_HASH=0xed0b3b54L-mdisable-hwmul -I/opt/tinyos-1.x/tos/lib/CC2420Radio TelosADC2C.nc -lm compiled TelosADC2C to build/telosb/main.exe 8684 bytes in ROM 285 bytes in RAMmsp430-objcopy --output-target=ihex build/telosb/main.exe build/telosb/main.ihex writing TOS imagecp build/telosb/main.ihex build/telosb/main.ihex.out found mote on COM6 (using bsl,auto) installing telosb bootloader using bslmsp430-bsl --telosb -c 5 -r -e -I -p C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/lib/Deluge/TOSBoot/build/telosb/main.ihexMSP430 Bootstrap Loader Version: 1.39-telos-7An error occoured:could not open port: (5, 'CreateFile', 'Access is denied.')make: *** [program_bl] Error 1___Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDUhttps://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Getting BatteryVoltage from mica2mote
Hi, Is there a possibility to use the voltagM.nc with make pc? As far as i can see it is only usable with make mica2. If i compile it with make pc i get following output. /opt/opt/tinyos-1.x/tos/lib/Eatr/EatrRouter.nc: At top level: /opt/tinyos-1.x/tos/lib/Eatr/EatrRouter.nc:66: component VoltageM not found As i want to test my programm with tinyviz and powertossim this is a problem. mfg, Mike -- "Feel free" – 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] tinyos-2.x TOSSIM with gdb?
dont understand how tossim is working yet, the best I can work out is that you compile with make micaz sim and in the ./build/micaz/ directory are some object files, and a few python files in the application directory. is it possible to use the new tossim with gdb? so i can step though app and find problems with code before uploading?? is there any documentation written on the subject yet? (i appreciate tinyos2.x is still in beta stage) found an old help digest > There is no TinyViz in 2.0; TOSSIM, however, is briefly introduced in a > tutorial. The high-level difference is that TOSSIM in 2.0 is a Python > interpreter, so you can script simulations: > > http://cvs.sourceforge.net/viewcvs.py/*checkout*/tinyos/tinyos-2.x/doc/html/tutorial/Attic/lesson-t.html?rev=1.1.2.6 > > Phil but that link doesnt work for me. all the best Cormac ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] tossim in tinyos-2.x
Thanks. But I installed rpm for tinyos-2.x and could not find the TOSSIM code. Any idea where I can find it? And any doc for the new TOSSIM?Regards,HaibinOn 6/15/06, Philip Levis <[EMAIL PROTECTED] > wrote:On Jun 14, 2006, at 2:41 AM, Liu Haibin wrote:> Hi,> > According to tossim manual, tossim in tinyos-1.x only implemented> mica platform. How about the tossim in tinyos-2.x? Any newer> platforms are implemented in the simulator? I realized that there's > no directory tos/platforms/pc in tinyos-2.x, then where can I find> the tossim implementation in tinyos-2.x?>TOSSIM in 2.x is designed to be able to simulate multiple platforms.Currently, it only supports the micaz platform. It simulates atm128 timers at the hardware level, and simulates the radio at a packetlevel. It does not simulate the ADC. The goal is to be able tosimulate each chip, and then when you compile for a platform youcompile the simulation version of each of its chips. Phil ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Tmote Sky:CRYSTAL FREQUENCY MEASUREMENT
Hi all, i'm trying to get precise timestamping measurement on Tmote Sky. I get a 32 bit timestamp based on my 32Khz timer. I acquire data and, in Java, divide the 32 bit value by the 32768 value (the nominal frequency of crystal). I would like to measure the clock based on the crystal (to see how it follow the nominal value), but how can i do? Is there a method to drive the clock signal to an external pin? I've tryed to use an alarm32 module with a startNow(1) command, but it seems to be using all the Mote resources (nothing else work) and when the mote is in a stand-by state (not tx or rx) the oscilloscope connected to the pin shows a clock signal of about 5 Khz (not 16 KHz like i expected) with a large jigger. Thank you very much Giovanni ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] could not open port: (5, 'CreateFile', 'Access is denied.')
I'm using cygwin to communicate with my motes. How do I find out what is using my COM port? I tried restarting my computer several times and that did not work. >= Original Message From Matthew J Whelan <[EMAIL PROTECTED]> = >Angelina, You are correct that the port cannot be opened because some program has claimed access to it. A quick and easy way to regain access for programming would be to restart your computer. Otherwise, you must find out what is using the COM port and cause that program to release it. Out of curiousity, are you using LabVIEW to communicate with your motes??? If so, make sure that you include the subvi that closes the COM port in your application. I suppose that goes for any software you are using to communicate with the motes though. Regards,Matt[EMAIL PROTECTED] wrote: -To: tinyos-help@Millennium.Berkeley.EDUFrom: abensong <[EMAIL PROTECTED]>Sent by: [EMAIL PROTECTED]Date: 06/15/2006 09:41AMSubject: [Tinyos-help] could not open port: (5, 'CreateFile', 'Access is denied.')When trying to install a program on my TelosB mote, I get the following error: could not open port: (5, 'CreateFile', 'Access is denied.') I know that this means the com port is busy, but how do I free it up. The mote currently has a program on it that I think is using the port, but I am unable to erase that program. Any help would be greatly appreciated.Thanks,AngelinaThe entire error message:$ make telosb installmkdir -p build/telosb compiling TelosADC2C to a telosb binaryncc -o build/telosb/main.exe -O -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board= -I%T/lib/Deluge -Wl,--section-start=.text=0x4800,--defsym=_reset_vector__=0x4000 -DIDENT_PROGRAM_NAME=\"TelosADC2C\" -DIDENT_USER_ID=\"SERF501\" -DIDENT_HOSTNAME=\"DATAPACK\" -DIDENT_USER_HASH=0x7e5bf602L -DIDENT_UNIX_TIME=0x44908becL -DIDENT_UID_HASH=0xed0b3b54L-mdisable-hwmul -I/opt/tinyos-1.x/tos/lib/CC2420Radio TelosADC2C.nc -lm compiled TelosADC2C to build/telosb/main.exe 8684 bytes in ROM 285 bytes in RAMmsp430-objcopy --output-target=ihex build/telosb/main.exe build/telosb/main.ihex writing TOS imagecp build/telosb/main.ihex build/telosb/main.ihex.out found mote on COM6 (using bsl,auto) installing telosb bootloader using bslmsp430-bsl --telosb -c 5 -r -e -I -p C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/lib/Deluge/TOSBoot/build/tel osb/main.ihexMSP430 Bootstrap Loader Version: 1.39-telos-7An error occoured:could not open port: (5, 'CreateFile', 'Access is denied.')make: *** [program_bl] Error 1___Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDUhttps://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-hel p" target=blank >https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] CVS issues with build-mspgcc
When using the build-mspgcc script the CVS servers are rejecting me. Anyone know what's going on? Thanks in advance, Dan ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] CVS issues with build-mspgcc
This has been asked a couple of times. Cory has committed to CVS a fix for the servers. There is no fix for using gcc 3.4 to build msp430-gcc 3.2.3. Contributions are welcome. -Joe On 6/15/06, Dan Steingart <[EMAIL PROTECTED]> wrote: When using the build-mspgcc script the CVS servers are rejecting me. Anyone know what's going on? Thanks in advance, Dan ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Tmote Sky:CRYSTAL FREQUENCY MEASUREMENT
See the MSP430x1xx User's Guide. You can output ACLK, the 32768Hz clock, to a pin on the microcontroller. -Joe On 6/15/06, giovanni gamba <[EMAIL PROTECTED]> wrote: Hi all, i'm trying to get precise timestamping measurement on Tmote Sky. I get a 32 bit timestamp based on my 32Khz timer. I acquire data and, in Java, divide the 32 bit value by the 32768 value (the nominal frequency of crystal). I would like to measure the clock based on the crystal (to see how it follow the nominal value), but how can i do? Is there a method to drive the clock signal to an external pin? I've tryed to use an alarm32 module with a startNow(1) command, but it seems to be using all the Mote resources (nothing else work) and when the mote is in a stand-by state (not tx or rx) the oscilloscope connected to the pin shows a clock signal of about 5 Khz (not 16 KHz like i expected) with a large jigger. Thank you very much Giovanni ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] could not open port: (5, 'CreateFile', 'Access is denied.')
I finally figured out that it was my computer mouse using the port. Thanks so much for your help!!! Angelina >= Original Message From Matthew J Whelan <[EMAIL PROTECTED]> = >Angelina, You are correct that the port cannot be opened because some program has claimed access to it. A quick and easy way to regain access for programming would be to restart your computer. Otherwise, you must find out what is using the COM port and cause that program to release it. Out of curiousity, are you using LabVIEW to communicate with your motes??? If so, make sure that you include the subvi that closes the COM port in your application. I suppose that goes for any software you are using to communicate with the motes though. Regards,Matt[EMAIL PROTECTED] wrote: -To: tinyos-help@Millennium.Berkeley.EDUFrom: abensong <[EMAIL PROTECTED]>Sent by: [EMAIL PROTECTED]Date: 06/15/2006 09:41AMSubject: [Tinyos-help] could not open port: (5, 'CreateFile', 'Access is denied.')When trying to install a program on my TelosB mote, I get the following error: could not open port: (5, 'CreateFile', 'Access is denied.') I know that this means the com port is busy, but how do I free it up. The mote currently has a program on it that I think is using the port, but I am unable to erase that program. Any help would be greatly appreciated.Thanks,AngelinaThe entire error message:$ make telosb installmkdir -p build/telosb compiling TelosADC2C to a telosb binaryncc -o build/telosb/main.exe -O -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board= -I%T/lib/Deluge -Wl,--section-start=.text=0x4800,--defsym=_reset_vector__=0x4000 -DIDENT_PROGRAM_NAME=\"TelosADC2C\" -DIDENT_USER_ID=\"SERF501\" -DIDENT_HOSTNAME=\"DATAPACK\" -DIDENT_USER_HASH=0x7e5bf602L -DIDENT_UNIX_TIME=0x44908becL -DIDENT_UID_HASH=0xed0b3b54L-mdisable-hwmul -I/opt/tinyos-1.x/tos/lib/CC2420Radio TelosADC2C.nc -lm compiled TelosADC2C to build/telosb/main.exe 8684 bytes in ROM 285 bytes in RAMmsp430-objcopy --output-target=ihex build/telosb/main.exe build/telosb/main.ihex writing TOS imagecp build/telosb/main.ihex build/telosb/main.ihex.out found mote on COM6 (using bsl,auto) installing telosb bootloader using bslmsp430-bsl --telosb -c 5 -r -e -I -p C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/lib/Deluge/TOSBoot/build/tel osb/main.ihexMSP430 Bootstrap Loader Version: 1.39-telos-7An error occoured:could not open port: (5, 'CreateFile', 'Access is denied.')make: *** [program_bl] Error 1___Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDUhttps://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-hel p" target=blank >https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] tinyos-2.x TOSSIM with gdb?
If you download the latest code from the dev branch of tinyos-2.x. You should find a tutorial under tinyos-2.x/docs/html/tutorial/lesson-t.html. Not sure if this tutorial is complete at this point. But it has the specifics to give you an insight into how to use TOSSIM to run with python scripts. I am not sure how to use gdb with TOSSIM-2.x as yet though.-AvinashOn 6/15/06, Cormac Duffy <[EMAIL PROTECTED] > wrote:dont understand how tossim is working yet,the best I can work out is that you compile with make micaz simand in the ./build/micaz/ directory are some object files, and a fewpython files in the application directory.is it possible to use the new tossim with gdb? so i can step though app and find problems with code before uploading??is there any documentation written on the subject yet? (i appreciatetinyos2.x is still in beta stage)found an old help digest> There is no TinyViz in 2.0; TOSSIM, however, is briefly introduced ina> tutorial. The high-level difference is that TOSSIM in 2.0 is a Python> interpreter, so you can script simulations:>> http://cvs.sourceforge.net/viewcvs.py/*checkout*/tinyos/tinyos-2.x/doc/html/tutorial/Attic/lesson-t.html?rev=1.1.2.6>> Philbut that link doesnt work for me.all the bestCormac___ Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDUhttps://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- Phd Dept. of Electrical EngineeringUniversity of Southern Californiahttp://www-scf.usc.edu/~asridhar ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] tinyos-2.x TOSSIM with gdb?
If you download the latest code from the dev branch of tinyos-2.x. You should find a Where can I find the latest code? Is the rpm the latest code, or any code on cvs. I found no tinyos-2.x code on the sourceforge cvs server. tutorial under tinyos-2.x/docs/html/tutorial/lesson-t.html. Not sure if this tutorial is I installed the rpm but could not find any relevant doc. However I found some tinyos-2.x doc at http://www.tinyos.net/tinyos-2.x/doc/html/tutorial/lesson[1-5].html but none of them talks about tossim. Any idea where I can find the doc you referred to?Regards,Haibin ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Cannot compile TOSSIM 2.0!!
On Jun 14, 2006, at 1:16 PM, Frigging wrote: What you have posted show only warning message. These aren't so important. These warnings generally mean that you have a variable declared as a global variable and compiler doesn't know which one to use. One issue in the pre-beta2 TOSSIM makefile is the version of python used. The beta2 makefile separates this out into a variable so that you can easily change it. Ultimately, having some kind of auto- detection would be great, but it's not there yet. Phil ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] tinyos-2.x TOSSIM with gdb?
>From the cvs you need to get the code from the branch with label tinyos-2_0_devel-BRANCH. And you should find the tutorial under docs/html/tutorial/lesson-t.html. Although I am not sure how stable this branch is since it is the dev branch for tinyos-2.x . You could work of the beta-rel3 branch and get the tutorial from the dev branch. Thanks, AvinashOn 6/15/06, Liu Haibin <[EMAIL PROTECTED]> wrote: If you download the latest code from the dev branch of tinyos-2.x. You should find a Where can I find the latest code? Is the rpm the latest code, or any code on cvs. I found no tinyos-2.x code on the sourceforge cvs server. tutorial under tinyos-2.x/docs/html/tutorial/lesson-t.html. Not sure if this tutorial is I installed the rpm but could not find any relevant doc. However I found some tinyos-2.x doc at http://www.tinyos.net/tinyos-2.x/doc/html/tutorial/lesson[1-5].html but none of them talks about tossim. Any idea where I can find the doc you referred to?Regards, Haibin -- Phd Dept. of Electrical EngineeringUniversity of Southern Californiahttp://www-scf.usc.edu/~asridhar ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] parallel port problem on Gentoo when running "make mica2 install"
Jonathan Sprinkle was able to get "make mica2 install" to work by enabling support for user-space parallel port device drivers in the kernel on Gentoo. He says the following: === I got it to work with gentoo, and the application downloaded...successfully. I had to rebuild the kernel with the option of Device Drivers -> Character Devices -> Support for user-space parallel port device drivers make && make modules_install After copying the old kernel as cp /boot/2.6.15-gentoo-r1 /boot/2.6.15-gentoo-r1-noparport I copied the new kernel in /usr/src/linux/arch/i386/boot/bzImageTo /boot/2.6.15-gentoo-r1 I then added the module to /etc/modules.autoload.d/kernel-2.6 As ppdev then running the make mica2 install works. == Elaine On 6/14/06, Elaine Cheong <[EMAIL PROTECTED]> wrote: We have an IBM T40 with Gentoo (kernel 2.6.15-gentoo-r1), and we are unable to get "make mica2 install" to work. We ran "COMPILE" and "make install" in tinyos-1.x/tools/src/uisp. We tried: mknod /dev/parport0 c 99 0 chmod 666 /dev/parport0 But we get: -- [EMAIL PROTECTED] ~/tinyos-1.x/apps/Blink $ make mica2 install mkdir -p build/mica2 compiling Blink to a mica2 binary ncc -o build/mica2/main.exe -Os -finline-limit=10 -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=mica2 -fnesc-cfile=build/mica2/app.c -board=micasb -I%T/lib/Deluge -DIDENT_PROGRAM_NAME=\"Blink\" -DIDENT_USER_ID=\"htaylor\" -DIDENT_HOSTNAME=\"ransom-urquell\" -DIDENT_USER_HASH=0x39c1918cL -DIDENT_UNIX_TIME=0x44907e9aL -DIDENT_UID_HASH=0x91f5e321L Blink.nc -lm compiled Blink to build/mica2/main.exe 1502 bytes in ROM 49 bytes in RAM avr-objcopy --output-target=srec build/mica2/main.exe build/mica2/main.srec avr-objcopy --output-target=ihex build/mica2/main.exe build/mica2/main.ihex writing TOS image cp build/mica2/main.srec build/mica2/main.srec.out installing mica2 binary with dapa uisp -dprog=dapa --wr_fuse_h=0xd8 -dpart=ATmega128 --wr_fuse_e=ff --erase /dev/parport0: No such device or address Failed to open ppdev. make: *** [program] Error 2 ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] How does event implemented in tinyos?
When we say "signal Send.sendDone(...)", does this put an event in an event queue - like windows mechnism? Or it will excute the event handler "event result_t SendMsg.sendDone()" function body immediately? Thanks. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] getting the source address from message_t in tinyos-2.x
Hi All, I was going through the various interfaces provided in tinyos-2.x AMPacket,AMSend, Receive and in any of these interfaces I was not able to find a command that could return the source of a given message. In AMPacket we have the ability to get the destination but no the source. Is it that there is no way to retrieve the source of a message from the packet ? Currently I have to send the source as part of the payload. If I could retrieve it directly from the message I could save valuable bytes in the payload. Thanks for the help, Avinash-- Phd Dept. of Electrical EngineeringUniversity of Southern Californiahttp://www-scf.usc.edu/~asridhar ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Tmote Sky:CRYSTAL FREQUENCY MEASUREMENT
Trying doing it in start(). P2DIR |= 1; P2SEL |= 1; It should be the equivalent of the above two lines, which I know do work. -Joe On 6/15/06, giovanni gamba <[EMAIL PROTECTED]> wrote: I found in the datasheet that i have to use port 20. I have to select the ACLK and then to selesct the direction. How i do this? I try to use the General IO component on port 20 and write in the init of my application : call CLK_PIN.selectModuleFunc(); call CLK_PIN.makeOutput(); But nothing appens... What can i do? 2006/6/15, giovanni gamba <[EMAIL PROTECTED]>: > > Ok thank you very much... i'm gonna try it > > > > 2006/6/15, Joe Polastre <[EMAIL PROTECTED]>: > > > See the MSP430x1xx User's Guide. You can output ACLK, the 32768Hz > > clock, to a pin on the microcontroller. > > > > -Joe > > > > On 6/15/06, giovanni gamba < [EMAIL PROTECTED] > wrote: > > > Hi all, i'm trying to get precise timestamping measurement on Tmote Sky. > > > I get a 32 bit timestamp based on my 32Khz timer. > > > I acquire data and, in Java, divide the 32 bit value by the 32768 value > > > (the nominal frequency of crystal). > > > I would like to measure the clock based on the crystal (to see how it > > > follow the nominal value), but how can i do? > > > Is there a method to drive the clock signal to an external pin? > > > I've tryed to use an alarm32 module with a startNow(1) command, but it > > > seems to be using all the Mote resources (nothing else work) and when the > > > mote is in a stand-by > > > state (not tx or rx) the oscilloscope connected to the pin shows a clock > > > signal of about 5 Khz (not 16 KHz like i expected) with a large jigger. > > > Thank you very much > > > Giovanni > > > > > > ___ > > > Tinyos-help mailing list > > > Tinyos-help@Millennium.Berkeley.EDU > > > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > > > > > > > > > > > > > ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] TOSSIM
Hello folks, I want to perform the following simulation: 1. Each node knows its location information (Random number % NUMBER_OF_NODES) 2. Then each node broadcasts this information along with its id 3. When other nodes hear a broadcast, they record this node as a neighbor, along with the information being sent. Problems: When I do this in TOSSIM, the location information I generate is not useful, that is the layout is different from the locations I generate. The question I have is: Is there a way I generate the location information which is then reflected in the TinyViz layout. Any help would be greatly appreciated. Thanks Kn ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] TinyViz
Hello, I generated the locations for sensor nodes using LossyBuilder. The question I have is whether I would be able to use that as the location of the sensor nodes. In other words how can I use the .nss file I generated in my code. Thanks for the help Kn ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Setting mote id
Hi everyone, I'm programing my motes through serial port, and not parallel. So, I'm using 'uisp' directly instead of 'make install' or 'make reinstall'. My question is: how can I set mote id without use 'make'? Thanks! José __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Micaz Hardware used?
Hello, Some colleages and myself are working on a project using MicaZ motes and tinyOS 1.1.15, and I'm having difficulties finding a listing or at least verifying that certain pins are unused by micaZ or tinyOS. In particular, there's a digital signal we'd like to capture using one of the TimerCapture devices, but we're not certain which ones are free on the device. Timer/Capture1 had a nice interface defined but it appears to be reserved for the CC2420 radio. Any advice? Justin Dugger ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Setting mote id
See the script named either tos-set-symbols or set-mote-id, depending. To see how it's used in the make system, look at a rules file, such as tools/make/avr/avr.rules. Cory On 6/15/06, jose m <[EMAIL PROTECTED]> wrote: Hi everyone, I'm programing my motes through serial port, and not parallel. So, I'm using 'uisp' directly instead of 'make install' or 'make reinstall'. My question is: how can I set mote id without use 'make'? Thanks! José __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] TOSSIM
Quoting Keyan Mahadevan <[EMAIL PROTECTED]>: Try using Tython or equivalent in TOSSIM 2.0. --dasarath > Hello folks, > I want to perform the following simulation: > 1. Each node knows its location information (Random number % > NUMBER_OF_NODES) > 2. Then each node broadcasts this information along with its id > 3. When other nodes hear a broadcast, they record this node as a neighbor, > along with the information being sent. > > Problems: When I do this in TOSSIM, the location information I generate is > not useful, that is the layout is different from the locations I generate. > > The question I have is: Is there a way I generate the location information > which is then reflected in the TinyViz layout. Any help would be greatly > appreciated. > Thanks > Kn > ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] TinyViz
Sorry I should have phrased my question better. I have the nss file. How can I use it in my program. Say for example the nss file has the location of node 4 as (2,6). How can I access it programmatically. That is when node 4 broadcasts a message, I want the location (2,6) sent out. Thanks again for the helpOn 6/15/06, Liu Haibin <[EMAIL PROTECTED]> wrote: build/pc/main.exe -rf loss.nssOn 6/16/06, Keyan Mahadevan < [EMAIL PROTECTED]> wrote: Hello, I generated the locations for sensor nodes using LossyBuilder. The question I have is whether I would be able to use that as the location of the sensor nodes. In other words how can I use the .nss file I generated in my code. Thanks for the help Kn ___Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] How does event implemented in tinyos?
in tinyos, events can be preempted by other events. So i think the event sendone() is called immediately,On 6/15/06, Shiyuan < [EMAIL PROTECTED]> wrote:When we say "signal Send.sendDone(...)", does this put an event in an event queue - like windows mechnism? Or it will excute the event handler "eventresult_t SendMsg.sendDone()" function body immediately?Thanks.___Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDUhttps://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- regards,Aditya Bhave ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help