[Tinyos-help] List in nesc
Hello, a list of items in nesc is equal to a list of element in C ? An example is very appreciated! Thanks Paolo ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Mote serial numbers and dynamic mote id allocation
Hi list. When I run motelist, I get output like this: M4AOCF87 /dev/ttyUSB0 Moteiv tmote sky M4AOCFBE /dev/ttyUSB1 Moteiv tmote sky M4AOCFAT /dev/ttyUSB2 Moteiv tmote sky Can tinyos apps fetch their serial number? I have an application where I want to dynamically allocate mote ids (and possibly group IDs) over serial. Intended logic goes something like this: 1) Motes without a mote id transmit their serial number 2) Software on PC (connected to basestation) allocates a mote id, and sends it to the mote over radio 3) Motes use the new number as their mote id. 4) Mote's new id should persist across mote resets Any suggestions? Pointers to docs/code I should look at are appreciated. With my current knowledge, I'd probably (try to) implement it like this: * Mote apps ae compiled with an unusual ID, and have their serial number stored in a config volume in flash (an initial 'setup' script on the server reads this ID from motelist and then sends it over serial to the mote). * When motes get the updated mote id over serial, they reprogram themselves. I'll need to take a look at Deluge to see how it preserves mote id numbers. David. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] List in nesc
On Mon, May 12, 2008 at 10:42 AM, Paolo [EMAIL PROTECTED] wrote: Hello, a list of items in nesc is equal to a list of element in C ? Strictly speaking there is no 'list' type in C or nesc. Regular arrays work the same in C and nesc however. Just declare and use them like you would in C. Here's an example implementation module (I haven't tested it): CODE module TestModuleP { uses interface Boot; } implementation { int test_array[100]; event Boot.booted() { int i; for (i=0; i100; i++) { test_array[i] = i; } } } /CODE David. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Sending Data from PC to Tmote
Dear All, I wanted to send data from my PC to the mote connected to him and then the mote should be able to send this data to another mote in the network. I tried to look on the documentation but I was not able to find anything. The objective was to have the mote listening to its serial port and just forward the packet. This has to be fully autonomous since I dont want to have any interaction with the PC to send the data i.e. the PC has to periodically generate the data and forward it to the mote. Thanks for your help, Best, José ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] lost acks
Hi, I just want to know how much node retransmit a not acked msg and how long? for exemple A sends msg to B B receive the msg and sends Ack :( ack is lost. 1. How long A wait the msg ack? 2. How much A retransmit the not acked msg ? Thank you very much. Cheers, Nahr Elk ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Writing code for Receiver
Hi all, I designed Transmitter application.Now, I want to make it Receiver also.What are the various ways to accomplish this? Any precautions while doing this? I took TOSBase and embedded my already designed transmitter in it. But, it kicked off. Any help. Thanks in advance, Kishore ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Mote serial numbers and dynamic mote id allocation
(re-ccing the list, in case others have some info). On Mon, May 12, 2008 at 1:44 PM, Marco Antonio Lopez Trinidad [EMAIL PROTECTED] wrote: The mote ID is assigned at compile time with the command make mote_type install,id mib520,port where: mote_type can be either the mica2, micaz, etc. id the mote id. port is serial, usb or network. On the other hand, the mote id can be loaded on each packet transmission and you have to define and retrieve it in you program code. In the following link there are some explanations. http://docs.tinyos.net/index.php/Mote-mote_radio_communication cheers up. --marco. Thanks for the info. I dug a bit deeper, and found doc/txt/porting.txt, where a distinction is made between TOS_NODE_ID (hardcoded) and AMPacket.localAddress() (defaults to TOS_NODE_ID, but can be updated at runtime). It sounds like AMPacket.localAddress() is exactly what I want. I can set TOS_NODE_ID to the same value for all motes (where I want to dynamically set the mote ID, and then get the 'runtime' mote ID from flash). My remaining problem - what about networking libraries which use TOS_NODE_ID instead of AMPacket.localAddress()? (Deluge, Drip, etc, a few others, according to a 'grep'). My apps use those, so they won't work properly. Is this a bug in those libraries? Should they be using AMPacket.localAddress() instead of TOS_NODE_ID? Maybe a developer can answer this question (I'm going to ask Razvan offlist). David. Hi list. When I run motelist, I get output like this: M4AOCF87 /dev/ttyUSB0 Moteiv tmote sky M4AOCFBE /dev/ttyUSB1 Moteiv tmote sky M4AOCFAT /dev/ttyUSB2 Moteiv tmote sky Can tinyos apps fetch their serial number? I have an application where I want to dynamically allocate mote ids (and possibly group IDs) over serial. Intended logic goes something like this: 1) Motes without a mote id transmit their serial number 2) Software on PC (connected to basestation) allocates a mote id, and sends it to the mote over radio 3) Motes use the new number as their mote id. 4) Mote's new id should persist across mote resets Any suggestions? Pointers to docs/code I should look at are appreciated. With my current knowledge, I'd probably (try to) implement it like this: * Mote apps ae compiled with an unusual ID, and have their serial number stored in a config volume in flash (an initial 'setup' script on the server reads this ID from motelist and then sends it over serial to the mote). * When motes get the updated mote id over serial, they reprogram themselves. I'll need to take a look at Deluge to see how it preserves mote id numbers. David. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] MultiHop Neighbors - something I dont understand
My Moteiv MultiHop application displays its parent and neighbors 10 --- 9 --- 1 (Base) 10 shows its parent and neighbor as node #9 9 shows its parent and neighbor as node #1, it does not show #10 as a neighbor. My difficulty is how does the hop work? Messages from #10 get to base and must do that via #9. BUT #9 claims not to see #10. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] problem in compiling blink application
Respected Sir, I have successfully installed tinyos2.x environment on windowsXP platform.On compiling the blink application i am getting this kind of an error: $ make mica2make: Warning: File `/opt/tinyos-2.x/support/make/avr/dapa.extra' has modification time 1.9e+08 s in the futuremkdir -p build/mica2 compiling BlinkAppC to a mica2 binaryncc -o build/mica2/main.exe -Os -finline-limit=10 -Wall -Wshadow -Wnesc-all-target=mica2 -fnesc-cfile=build/mica2/app.c -board=micasb -DIDENT_PROGRAM_NAME=\"BlinkAppC\" -DIDENT_USER_ID=\"khursheed\" -DIDENT_HOSTNAME=\"khan-bd8264dc86\"-DIDENT_USER_HASH=0x9f05bdecL -DIDENT_UNIX_TIME=0x3a4fdb98L -DIDENT_UID_HASH=0xcc03256fL -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs, components)' -fnesc-dumpfile=build/mica2/wiring-check.xml BlinkAppC.nc -lmCouldn't execute avr-gccmake: *** [exe0] Error 2 I can't really figure out what this means.My tinyos2x.sh file in etc\profile.d looks like this: export TOSROOT='/opt/tinyos-2.x' export TOSROOT="$TOSROOT" export TOSDIR='/opt/tinyos-2.x/tos' export TOSDIR="$TOSDIR" export CLASSPATH='/opt/tinyos-2.x/support/sdk/java/tinyos.jar' export CLASSPATH="$CLASSPATH;." export MAKERULES='/opt/tinyos-2.x/support/make/Makerules' export MAKERULES="$MAKERULES" export PYTHONPATH=”$/opt/tinyos-2.x/support/sdk/python” I have installed all the avr,nesc,tinyostree and tinyosnoarch tools in opt/tinyos-2.x/tools in D-drive and JDK1.5 in C:/program files directory.Am i suppose to include path for JDK and tools as well in tinyos2.x.sh file. I even tried upgrading new avr-gcc tool but it didn't solve my problem,it gives back the same error. I will be glad if you can help me out with some suggetion. Thanking you. Mariya. Meet people who discuss and share your passions. Join them now. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Fwd: redefining AM.h
Hi, I am creating a new platform, and I need to change the types in AM.h (like AM_BROADCAST_ADDR = 0xfff*e*,) I guess directly changing the types in AM.h would not be clean, how can I override it so that my fooAM.h be included before AM.h? the directory is already included in my .platform but it does not work. Thanks ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Nesc option
What is the function of -fnesc-no-debug in .platform file? It is not describe in the nesc man page. Thanks, Fred ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] About Packet Timestamps and Storage of results
I would like to get timestamps according to : date hour/minute/seconds.I should mention that I 'm loading the Oscilloscope application which exists in cygwin\opt\tinyos-1.x\contrib\moteiv\apps\Oscilloscope folder ,on my telos motes. How can I achieve that? 2008/5/2, Paul Stickney [EMAIL PROTECTED]: On Fri, May 2, 2008 at 9:46 AM, Maria Taramigkou [EMAIL PROTECTED] wrote: Hi there! I'm using cygwin and telosb motes.I have loaded Oscillocope on the motes ,I'm receiving the packet sequence of bytes 1A 01 08 82 FF FF FF FF 0A 7D 01 00 8A 02 01 00 52 1A 52 1A 52 1A 52 1A 51 1A 50 1A 50 1A 4F 1A 4E 1A 4D 1A What about timestamps?How can I get them? Timestamps are synthetic -- associate the current time with each packet/message as you first encounter it. I would likely stay at the Message-level (e.g. just subclass OscilloscopeMsg and fill-in the data on messageReceived). One more question:is there any way for permanent storage of the packets/results?I mean when i'm running Listen.java ,i have to stop it in order to have the results in a txt.I need to have on ongoing connection to the motes and the results. Would simply using serialforwarder as a 1-n proxy work for you? Paul ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Setting and Clearing GIO3 Pin
Dear All, I need to set and clear GIO3 pins to control RS485 hardware. I am using the following commands : TOSH_SET_GIO3_PIN(); TOSH_CLR_GIO3_PIN(); But when I use the SET command, I do not see high at the GIO3 pin. Do the above commands work or do I need to use anything else? Please advise.. Thanks, Vaasu ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] How to control the radio power in iris platform?
Dan, Currently the rf230 stack does not support reading the RSSI. According to the rf230 datasheet (page 52.): Note, it is not recommended to read the RSSI value when using the Extended Operating Mode. (the radio stack is using the extended operating mode) Depending on what you want to do, you might want to use the LQI value instead. Or, you can try reading the RSSI value from the register directly, but keep your fingers crossed... Janos -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dan Sent: Sunday, May 11, 2008 8:14 PM To: tinyos-help@millennium.berkeley.edu Subject: Re: [Tinyos-help] How to control the radio power in iris platform? Thanks for your info. Actually I'm also doing the same stuff. I have another question: how to get RSSI value of received packets? It's easy to get this info for micaz(cc2420), but I can't find related functions in the directory RF230. Do I have to read the register directly? Thanks! ~Dan On 5/11/08, Janos Sallai [EMAIL PROTECTED] wrote: In my previous mail I meant: If you _always_ want to send with some predefined transmit power, you need to define the RF230_DEF_RFPOWER preprocessor variable (e.g. by adding PFLAGS+=-DRF230_DEF_RFPOWER=9 to your Makefile). Janos From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Janos Sallai Sent: Sunday, May 11, 2008 3:23 PM To: Xiaojun Zhu; tinyos-help@millennium.berkeley.edu Subject: Re: [Tinyos-help] How to control the radio power in iris platform? Xiaojun, If you _always_ want to send with some predefined transmit power, you need to define the RF230_DEF_RFPOWER preprocessor variable (e.g. by adding -DRF230_DEF_RFPOWER=9). This defines the TX_PWR field of the PHY_TX_PWR register. Please see pp 59-60 of the rf230 data sheet for the supported power values (0:most power, 0xf: least power, http://www.atmel.com/dyn/resources/prod_documents/doc5131.pdf ) Alternatively, you can set the transmit power on a per packet basis through the PacketTransmitPower interface of DefaultPacketC. That is, you need to set the transmit power every time before calling AMSend.send. You need to add this wiring to your configuration (assuming the module where you set the transmit power is called MyAppC.nc): components DefaultPacketC; DefaultPacketC.PacketTransmitPower - MyAppC.PacketTransmitPower; Then, your module: uses interface PacketFielduint8_t as PacketTransmitPower; //... implementation { //... call PacketTransmitPower.set(my_message_t, /* some small value here, see the rf230 datasheet*/); call AMSend.send(addr, my_message_t, len); Janos From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Xiaojun Zhu Sent: Friday, May 09, 2008 11:46 PM To: tinyos-help@millennium.berkeley.edu Subject: [Tinyos-help] How to control the radio power in iris platform? Hi all, I want to make the mote not so powerful so that the message can reach the destination only by multi-hop in a limited area,like in a room. The reason is that I want to study the behavior of MULTI-HOP in my lab. I search this list and find some one posted a question similar to this without replying. Is that possible? I'm using Iris platform. Please let me know if my expression is not so clearly. Thanks, Regards, Xiaojun Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] How to control the radio power in iris platform?
Janos, Thank you so much. I did something to measure the distance by RSSI on MICAZ and now I wanna do the same thing on IRIS. LQI seems prone to err compared with RSSI. ~Dan On 5/12/08, Janos Sallai [EMAIL PROTECTED] wrote: Dan, Currently the rf230 stack does not support reading the RSSI. According to the rf230 datasheet (page 52.): Note, it is not recommended to read the RSSI value when using the Extended Operating Mode. (the radio stack is using the extended operating mode) Depending on what you want to do, you might want to use the LQI value instead. Or, you can try reading the RSSI value from the register directly, but keep your fingers crossed... Janos -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dan Sent: Sunday, May 11, 2008 8:14 PM To: tinyos-help@millennium.berkeley.edu Subject: Re: [Tinyos-help] How to control the radio power in iris platform? Thanks for your info. Actually I'm also doing the same stuff. I have another question: how to get RSSI value of received packets? It's easy to get this info for micaz(cc2420), but I can't find related functions in the directory RF230. Do I have to read the register directly? Thanks! ~Dan On 5/11/08, Janos Sallai [EMAIL PROTECTED] wrote: In my previous mail I meant: If you _always_ want to send with some predefined transmit power, you need to define the RF230_DEF_RFPOWER preprocessor variable (e.g. by adding PFLAGS+=-DRF230_DEF_RFPOWER=9 to your Makefile). Janos From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Janos Sallai Sent: Sunday, May 11, 2008 3:23 PM To: Xiaojun Zhu; tinyos-help@millennium.berkeley.edu Subject: Re: [Tinyos-help] How to control the radio power in iris platform? Xiaojun, If you _always_ want to send with some predefined transmit power, you need to define the RF230_DEF_RFPOWER preprocessor variable (e.g. by adding -DRF230_DEF_RFPOWER=9). This defines the TX_PWR field of the PHY_TX_PWR register. Please see pp 59-60 of the rf230 data sheet for the supported power values (0:most power, 0xf: least power, http://www.atmel.com/dyn/resources/prod_documents/doc5131.pdf ) Alternatively, you can set the transmit power on a per packet basis through the PacketTransmitPower interface of DefaultPacketC. That is, you need to set the transmit power every time before calling AMSend.send. You need to add this wiring to your configuration (assuming the module where you set the transmit power is called MyAppC.nc): components DefaultPacketC; DefaultPacketC.PacketTransmitPower - MyAppC.PacketTransmitPower; Then, your module: uses interface PacketFielduint8_t as PacketTransmitPower; //... implementation { //... call PacketTransmitPower.set(my_message_t, /* some small value here, see the rf230 datasheet*/); call AMSend.send(addr, my_message_t, len); Janos From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Xiaojun Zhu Sent: Friday, May 09, 2008 11:46 PM To: tinyos-help@millennium.berkeley.edu Subject: [Tinyos-help] How to control the radio power in iris platform? Hi all, I want to make the mote not so powerful so that the message can reach the destination only by multi-hop in a limited area,like in a room. The reason is that I want to study the behavior of MULTI-HOP in my lab. I search this list and find some one posted a question similar to this without replying. Is that possible? I'm using Iris platform. Please let me know if my expression is not so clearly. Thanks, Regards, Xiaojun Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Fwd: redefining AM.h
As long as you create the file with the same name, it should shadow it properly. Rename your file to simply AM.h instead of fooAM.h and see what happens. Kevin On Mon, May 12, 2008 at 6:21 AM, Jack Travis [EMAIL PROTECTED] wrote: Hi, I am creating a new platform, and I need to change the types in AM.h (like AM_BROADCAST_ADDR = 0xfffe,) I guess directly changing the types in AM.h would not be clean, how can I override it so that my fooAM.h be included before AM.h? the directory is already included in my .platform but it does not work. Thanks ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- ~Kevin ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] TelosB UART bug
Greetings all, I am currently using TinyOS 2.x and TelosB motes, I tried to write data to the UART pins on the expansion header which gets converted to RS232 through a conversion kit I have so that I can see the data output on hyperterminal. However, I am not seeing anything on hyperterminal. I used UartStream.send to send data to my UART pins, when it is idle (not sending) UART TX pin showed constant 0V. When signal sent, 0V to 3V square waves are shown. Correct me if I am wrong, when UART is at idle stage, shouldn't it be constant 3V? Another question...I measured voltage at the UART pins using the scope, I see square wave signals, then I probe pin 2 of the female DB9 conenctor on my conversion kit, I am seeing 8V to 0V square waves, so I conclude that I am getting signals through hardware but for some reason I am not seeing anything not even garbage on hyperterminal, any hints?? This is urgent and any help will be appreciated... Thanks! -Oliver _ With Windows Live for mobile, your contacts travel with you. http://www.windowslive.com/mobile/overview.html?ocid=TXT_TAGLM_WL_Refresh_mobile_052008___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Setting and Clearing GIO3 Pin
it works!! I was checking wrong pin... :) but i am seeing only data 00 at the receiving end (RS 485)... what might be the reason.. can it be that mote is sending data at high speed or very low speed (it is set to 115200 baudrate) On Mon, May 12, 2008 at 4:27 PM, vaasu [EMAIL PROTECTED] wrote: Dear All, I need to set and clear GIO3 pins to control RS485 hardware. I am using the following commands : TOSH_SET_GIO3_PIN(); TOSH_CLR_GIO3_PIN(); But when I use the SET command, I do not see high at the GIO3 pin. Do the above commands work or do I need to use anything else? Please advise.. Thanks, Vaasu ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] TelosB UART bug
Usually when I have problems with RS232, it's because I have messed up the connectors or cables somehow, so that's what I check first. I've never had to get down to voltages while troubleshooting RS232, but 0 to 8 volts isn't standard RS232, I'm thinking it should work, but logic high is supposed to be a negative voltage. I thought all the converters out there generated their own negative supply. Windows will discard bytes on the serial port if they aren't well-formed. My guess is that's why Hyperterminal is ignoring you, it set things up to ignore badly formed bytes. There is always the possiblility that your setup on the mote end aren't quite right. Eric On Mon, May 12, 2008 at 12:25 PM, olly yuen [EMAIL PROTECTED] wrote: Greetings all, I am currently using TinyOS 2.x and TelosB motes, I tried to write data to the UART pins on the expansion header which gets converted to RS232 through a conversion kit I have so that I can see the data output on hyperterminal. However, I am not seeing anything on hyperterminal. I used UartStream.send to send data to my UART pins, when it is idle (not sending) UART TX pin showed constant 0V. When signal sent, 0V to 3V square waves are shown. Correct me if I am wrong, when UART is at idle stage, shouldn't it be constant 3V? Another question...I measured voltage at the UART pins using the scope, I see square wave signals, then I probe pin 2 of the female DB9 conenctor on my conversion kit, I am seeing 8V to 0V square waves, so I conclude that I am getting signals through hardware but for some reason I am not seeing anything not even garbage on hyperterminal, any hints?? This is urgent and any help will be appreciated... Thanks! -Oliver With Windows Live for mobile, your contacts travel with you. Connect on the go. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Mote serial numbers and dynamic mote id allocation
Although this won't work as-is with Deluge/OTA, I created a simple serial-ID mapping that changed the TOS_NODE_ID symbol in the binary and then uploaded that binary to each mote. It also programmed in parallel (in my case, all motes were connected to USB at the same time) which saved me a bunch of time. It's a simple shell script (worked for my in cygwin), let me know if this sounds like something you could use and I'll dig it out. And yes, I'd consider it a bug in TOS 2.x to use TOS_NODE_ID instead of localAddress() when dealing with, well, net addresses. Although, I wonder how much this issue comes up in practice... ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Mote serial numbers and dynamic mote id allocation
Paul, I was on the verge of writing something to do exactly that, so I would appreciate seeing your script. I have my motes connected to linux boxes, and they don't always end up on the same comm port, does your script handle that? I was going to track down the source to motelist, since my script writing capabilities are pretty limited. Eric On Mon, May 12, 2008 at 2:13 PM, Paul Stickney [EMAIL PROTECTED] wrote: Although this won't work as-is with Deluge/OTA, I created a simple serial-ID mapping that changed the TOS_NODE_ID symbol in the binary and then uploaded that binary to each mote. It also programmed in parallel (in my case, all motes were connected to USB at the same time) which saved me a bunch of time. It's a simple shell script (worked for my in cygwin), let me know if this sounds like something you could use and I'll dig it out. And yes, I'd consider it a bug in TOS 2.x to use TOS_NODE_ID instead of localAddress() when dealing with, well, net addresses. Although, I wonder how much this issue comes up in practice... ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Error compiling blink app while switching back to tinyos-1.x
Hello all, Iam trying to compile blink in tinyos-1.x, but its strange to see the following error. I haven't faced this error before. [EMAIL PROTECTED] /cygdrive/c/tinyos/cygwin/opt/tinyos-1.x/apps/blink $ make 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 /opt/tinyos-1.x/tos/system/tos.h:57: redefinition of `uint8_t' /usr/include/stdint.h:24: previous declaration of `uint8_t' /opt/tinyos-1.x/tos/system/tos.h:62: redefinition of `uint16_t' /usr/include/stdint.h:25: previous declaration of `uint16_t' In file included from /opt/tinyos-1.x/tos/platform/pc/hardware.h:43, from /opt/tinyos-1.x/tos/system/tos.h:132: /opt/tinyos-1.x/tos/platform/pc/nido.h:63: `TOSH_NUM_NODES' undeclared here (not in a function) /opt/tinyos-1.x/tos/platform/pc/nido.h:63: enumerator value for `TOSNODES' not i nteger constant make: *** [build/pc/main.exe] Error 1 Actually, im switching back from tinyos-2.x to tinyos-1.x. All the required environmental variables are set proparly as mentioned in the tutorials in order to switch back. Well, i have seen the same problem too in the previous posts, but that is related to cricket software and it is of no help to me. Could anyone please suggest me how to get over with this Error. Thanks in advance. Vijay. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Mote serial numbers and dynamic mote id allocation
On May 12, 2008, at 5:44 AM, David wrote: (re-ccing the list, in case others have some info). On Mon, May 12, 2008 at 1:44 PM, Marco Antonio Lopez Trinidad [EMAIL PROTECTED] wrote: The mote ID is assigned at compile time with the command make mote_type install,id mib520,port where: mote_type can be either the mica2, micaz, etc. id the mote id. port is serial, usb or network. On the other hand, the mote id can be loaded on each packet transmission and you have to define and retrieve it in you program code. In the following link there are some explanations. http://docs.tinyos.net/index.php/Mote-mote_radio_communication cheers up. --marco. Thanks for the info. I dug a bit deeper, and found doc/txt/porting.txt, where a distinction is made between TOS_NODE_ID (hardcoded) and AMPacket.localAddress() (defaults to TOS_NODE_ID, but can be updated at runtime). It sounds like AMPacket.localAddress() is exactly what I want. I can set TOS_NODE_ID to the same value for all motes (where I want to dynamically set the mote ID, and then get the 'runtime' mote ID from flash). My remaining problem - what about networking libraries which use TOS_NODE_ID instead of AMPacket.localAddress()? (Deluge, Drip, etc, a few others, according to a 'grep'). My apps use those, so they won't work properly. Is this a bug in those libraries? Should they be using AMPacket.localAddress() instead of TOS_NODE_ID? Maybe a developer can answer this question (I'm going to ask Razvan offlist). TOS_NODE_ID and localAddress() are not the same thing. The former is a unique identifier for a node. The latter is the address associated with the AM interface. The former should not change across reprogrammings, etc., while the latter can be easily changed at runtime. For example, one could have two radios, with two different AM addresses, but the TOS_NODE_ID would remain unchanged. In practice, the two often have the same value. But they represent different things, just as an IP address and a MAC address do. That being said, I'm not surprised that protocols break when the two are no longer the same; net2 should test for this and fix them. Phil ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] about send interface and address in cc2420
On May 12, 2008, at 12:24 AM, Paolo wrote: Hello, Tinyos 2.0 and telosb platfrom. When i send a packet by Send interface (not AMSend), the dest field of the cc2420_header_t is FF, while the src is node's id (both in the payload): its rigth ? Now, what address informations will append the chip cc24240 (via HW) ? No. Send is usually a network-layer API. The link-layer destination address of the packet will depend on what protocol you're using that provides the Send interface. For example, in MultihopLqi and CTP, the destination will likely be the next hop in a route to a tree root. Unless you're poking inside the CC2420 stack itself. It's important to note that you should not be directly wiring to components ending with P; they're intended to be private and not necessarily functional by themselves. Phil ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Collection ack retransmission
Hi, I just want to know how much a node retransmit a not acked msg and how long? for exemple A sends msg to B B receive the msg and sends Ack :( ack is lost. 1. How long A wait the msg ack? 2. How much A retransmit the not acked msg ? Thank you very much. Cheers, Nahr Elk ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] question aout the TOSBootM
Hi! On Sun, 11 May 2008, jiwen zhang wrote: Hello Razvan ME: 2008/5/9 Razvan Musaloiu-E. [EMAIL PROTECTED]: Hi! On Wed, 7 May 2008, jiwen zhang wrote: Hello all : when i read the file TOSBootM.nc , there are some things i can' t understand ! 1. The external flash is divided into three slots , *i want to know the size of every slot ? are they identical ?* from reading the TOSBootM , i think the *structure of every slot *is that: for example , slot 0 : DELUGE_IDENT_SIZE (128 Bytes) DELUGE_CRC_BLOCK_SIZE(256 Bytes) - PAGE 0 PAGE 1 ... ... and *PAGE structure* is that : - Internal flash Address (4 Bytes) - Page length(4 Byte) Effective Image data() --- Am i right ? i am not sure the page structure , if i am not right , can someone give me an explain ? You are almost right: what you call pages are called sections. 2. Question about the function of programImage(ex_flash_addr_t startAddr) . . while ( secLength ) { pageAddr = newPageAddr = intAddr / TOSBOOT_INT_PAGE_SIZE; call ExtFlash.startRead(curAddr); // fill in ram buffer for internal program flash sector do { // check if secLength is all ones if ( secLength == 0x ) { call ExtFlash.stopRead(); return FAIL; } buf[(uint16_t)intAddr % TOSBOOT_INT_PAGE_SIZE] = call ExtFlash.readByte(); intAddr++; curAddr++; if ( --secLength == 0 ) { intAddr = extFlashReadAddr(); secLength = extFlashReadAddr(); curAddr = curAddr + 8; } newPageAddr = intAddr / TOSBOOT_INT_PAGE_SIZE; } while ( pageAddr == newPageAddr secLength ); call ExtFlash.stopRead(); call Leds.set(pageAddr); // write out page if (call ProgFlash.write(pageAddr*TOSBOOT_INT_PAGE_SIZE, buf, TOSBOOT_INT_PAGE_SIZE) == FAIL) { return R_PROGRAMMING_ERROR; } } i don't know *how the programme jump out the while cycle*. because the condition of jumping out the while cycle is that secLength = 0 , but in the while , there is some sentences : if ( --secLength == 0 ) { intAddr = extFlashReadAddr(); secLength = extFlashReadAddr(); curAddr = curAddr + 8; } *so when secLength == 0 , it will be given a new value (which is the next page size ?) , how does it jump out ?* *is it possible that it jump out from here ? :* if ( secLength == 0x ) { call ExtFlash.stopRead(); return FAIL; } i am not sure, can someone give me an explain ? The secLength will be zero because the image is padded with zeros. If the image is an exact number of pages the reprogramming might fail. I'll try to reproduce this bug tomorrow. is it to say that when reading to the end of the image , the secLength of the page is setted to zero , so the programme can jump out ? what is the meaning of If the image is an exact number of pages the reprogramming might fail ? and what is the bug you say in your emial ? i can't find the bug :-) In order to generate the bug you need to craft an image which doesn't need any padding. These happens in lines 177-179 in tos-build-deluge-image: 171 all_data = [] 172 for (addr, data) in all: 173all_data += encode(addr, 4) + \ 174encode(len(data), 4) + \ 175data 176 all_data += encode(0, 4) + encode(0, 4) # Add the marker for the end of an image 177 padding = [0] * (DELUGE_BYTES_PER_PAGE - len(all_data) % DELUGE_BYTES_PER_PAGE) 178 if len(padding) DELUGE_BYTES_PER_PAGE: 179all_data += padding 180 all_data = deluge_crc(all_data) 181 ident['size'] = DELUGE_IDENT_SIZE + len(all_data) 182 sys.stdout.write(int2byte(deluge_ident(all_data)) + int2byte(all_data)) I did exactly that and, as expected, the programImage failed. The exit from that loop was on the secLength == 0x condition. In just committed a fix for this case in deluge branch from here: git://hinrg.cs.jhu.edu/git/deluge/tinyos-2.x.git http://hinrg.cs.jhu.edu/git/?p=deluge/tinyos-2.x.git (gitweb) Thanks for finding this bug! :-) Razvan ME 2008/5/7, jiwen zhang [EMAIL PROTECTED]: Hello : thank you very much for your reply, Razvan ME. i have found it . 2008/5/7, Razvan Musaloiu-E. [EMAIL PROTECTED]: Hi! On Tue, 6
Re: [Tinyos-help] problem with AntiTheft with iris
Peng, Just an update: I have verified that low-power listening works on the IRIS mote as expected. Drip and CTP, however, do not appear to be compatible with LPL (as described in TEP 105) at the moment, that’s why AntiTheft stopped working on the IRIS after the LPL-capable RF230 radio stack was introduced to the CVS. I will be checking in a fix to the CVS soon. Thanks for pointing out this bug. Janos From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ?? Sent: Friday, May 09, 2008 12:34 PM To: tinyos-help@millennium.berkeley.edu Subject: [Tinyos-help] problem with AntiTheft with iris Hi There, When do AntiTheft tutorial. I install root in one basestation (iris+mib520) and nodes two nodes with mts310. and use the java net.tinyos.sf.SerialForwarder -comm [EMAIL PROTECTED]:57600 in one cygwin window and I open another cygwin window and go to the ../AntiTheft/java file ./run in the java GUI window. When I press Update button in AntTheft GUI, the yellow LED on the basestation Toggled, the Pckts Wrttn in the serial Forwarder increase one everytime. But the Green LEDs of nodes in the networks do not blink. When one node's light is below the threshold,only this node 's red LED on the other node does not. And there is nothing on the AntiTheft left text area, the number of Pckts Read in Serial Forwarder GUI does not increase either I choose all check box in AntiTheft Anyone has an idea on that? Do anyone have done Antitheft using iris? It seems that the nodes below the threshold do not send message at all and so does the Root. Need your help sincerely yours Peng ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] compile and install - tinyos 2.x
Hi All, I have just upgraded my tinyos to 2.x. After that, I'm facing a problem to install applications. Look at what happens after upload. Anu suggestion what is happing? $ make micaz install mib520,/dev/ttyS3 Atmel AVR ATmega128 is found. Erasing device ... pulse Reinitializing device Atmel AVR ATmega128 is found. Fuse High Byte set to 0xd9 Fuse Extended Byte set to 0xff sleep 1 uisp -dprog=dapa --wr_fuse_h=0xd9 -dpart=ATmega128 --wr_fuse_e=ff --upload if=build/micaz/main.srec.out pulse Atmel AVR ATmega128 is found. Uploading: flash Fuse High Byte set to 0xd9 Fuse Extended Byte set to 0xff sleep 1 uisp -dprog=dapa --wr_fuse_h=0xd9 -dpart=ATmega128 --wr_fuse_e=ff --verify if=build/micaz/main.srec.out pulse Atmel AVR ATmega128 is found. Verifying: flash flash error at address 0x0: file=0x0c, mem=0xff flash error at address 0x1: file=0x94, mem=0xff flash error at address 0x2: file=0x49, mem ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] compile and install - tinyos 2.x
Daniel, make micaz install mib520,/dev/ttyS3 will only work with a relatively recent CVS checkout. You might want to use make micaz install mib510,/dev/ttyS3, which is equivalent, but works with older T2 code as well (yes, you need to specify mib510, even if you have a mib520). If this does not help, then please check your environment variables if they point to the T2 installation (MAKERULES, TOSDIR, etc.). Also, check your Makelocal, if any, for leftovers from the old T1 installation. Janos -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Pereira Sent: Monday, May 12, 2008 4:20 PM To: tinyos-help@millennium.berkeley.edu Subject: [Tinyos-help] compile and install - tinyos 2.x Hi All, I have just upgraded my tinyos to 2.x. After that, I'm facing a problem to install applications. Look at what happens after upload. Anu suggestion what is happing? $ make micaz install mib520,/dev/ttyS3 Atmel AVR ATmega128 is found. Erasing device ... pulse Reinitializing device Atmel AVR ATmega128 is found. Fuse High Byte set to 0xd9 Fuse Extended Byte set to 0xff sleep 1 uisp -dprog=dapa --wr_fuse_h=0xd9 -dpart=ATmega128 --wr_fuse_e=ff --upload if=build/micaz/main.srec.out pulse Atmel AVR ATmega128 is found. Uploading: flash Fuse High Byte set to 0xd9 Fuse Extended Byte set to 0xff sleep 1 uisp -dprog=dapa --wr_fuse_h=0xd9 -dpart=ATmega128 --wr_fuse_e=ff --verify if=build/micaz/main.srec.out pulse Atmel AVR ATmega128 is found. Verifying: flash flash error at address 0x0: file=0x0c, mem=0xff flash error at address 0x1: file=0x94, mem=0xff flash error at address 0x2: file=0x49, mem ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Mote serial numbers and dynamic mote id allocation
Ahh, I new I shouldn't have looked at that code (it's ugly) ... oh, well. It's attached (program.tgz), adv-program.sh is bulk of the code. adv-prog/id-lookup maps serials to TOS_NODE_ID. All the other adv-prog/* files are for some extra uhh... data I was programming. You can remove all the prepare_config_syms nonsense (you'll need to to keep tos-set-symbols from dying). Not guarantee over correct (of approach or implementation) and I'm sure your mileage will very. Paul program.tgz Description: GNU Zip compressed data ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Writing code for Receiver
Just wire the correct interfaces. A more specific detail of the problem (e.g. exactly what isn't working) would yield more useful answers. Paul ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] problem with AntiTheft with iris
On May 12, 2008, at 1:59 PM, Janos Sallai wrote: Peng, Just an update: I have verified that low-power listening works on the IRIS mote as expected. Drip and CTP, however, do not appear to be compatible with LPL (as described in TEP 105) at the moment, that’s why AntiTheft stopped working on the IRIS after the LPL-capable RF230 radio stack was introduced to the CVS. I will be checking in a fix to the CVS soon. Thanks for pointing out this bug. Well, they are compatible, they just don't ever try to send packets low power. Om and David Moss are looking into incorporating this. Phil ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Sending Data from PC to Tmote
Hi Jose, If you look at the BaseStation application (Tinyos-2.0.2) or BaseStationCC2420 application (in earlier versions), you will find that it does what you want. It will take in serial input and send it on Radio OR vice-versa it can send packets received on Radio to the serial port (UART). I have used this application and it works perfectly fine. -VJ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jose Araujo Sent: Monday, May 12, 2008 9:39 PM To: tinyos-help@millennium.berkeley.edu Subject: [Tinyos-help] Sending Data from PC to Tmote Dear All, I wanted to send data from my PC to the mote connected to him and then the mote should be able to send this data to another mote in the network. I tried to look on the documentation but I was not able to find anything. The objective was to have the mote listening to its serial port and just forward the packet. This has to be fully autonomous since I don't want to have any interaction with the PC to send the data i.e. the PC has to periodically generate the data and forward it to the mote. Thanks for your help, Best, José ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] default mac protocol in TOSSIM
CC2420 and recent CC100 use CSMA B-MAC standard, afaik. http://www.cs.berkeley.edu/~polastre/papers/sensys04-bmac.pdf ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] default mac protocol in TOSSIM
Hmm, it'd help if I read the message carefully :( Philip Levis' work is pretty well documented (but I can't find the link I'm looking for ATM.) Anyway, http://docs.tinyos.net/index.php/TOSSIM has a little section on the TOSSIM/T2 MAC layer. By default, the MAC object is configured to act like the standard TinyOS 2.0 CC2420 stack... ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Collection ack retransmission
On Mon, May 12, 2008 at 12:27 PM, Nahr ... [EMAIL PROTECTED] wrote: Hi, I just want to know how much a node retransmit a not acked msg and how long? for exemple A sends msg to B B receive the msg and sends Ack :( ack is lost. 1. How long A wait the msg ack? Collection does not send an ack - it relies on link layer ack. 2. How much A retransmit the not acked msg ? CTP will usually retransmit 5-7 times before it switches the parent. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Micaz and Transmit Power
Apparently I haven't looked so carefully in p.52 of cc2420 datasheet.. Yiannis Yiannis Yiakoumis wrote: Hi all, I want to change the transmission power of micaz. When setting the value for transmit power through Command (java), does this correspond to the absolute value in dBm? Thanks, Yiannis ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] default mac protocol in TOSSIM
What is Standard TinyOS 2.0 CC2420 stack ? is it the B-MAC without LPL? Is there anyway that I can enable and Simulate LPL using TOSSIM? ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] enumerator problem in tinyos-1.x at compilation
Hello all, Iam trying to compile blink in tinyos-1.x, but its strange to see the following error. I haven't faced this error before. [EMAIL PROTECTED] /cygdrive/c/tinyos/cygwin/opt/tinyos-1.x/apps/blink $ make 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 /opt/tinyos-1.x/tos/system/tos.h:57: redefinition of `uint8_t' /usr/include/stdint.h:24: previous declaration of `uint8_t' /opt/tinyos-1.x/tos/system/tos.h:62: redefinition of `uint16_t' /usr/include/stdint.h:25: previous declaration of `uint16_t' In file included from /opt/tinyos-1.x/tos/platform/pc/hardware.h:43, from /opt/tinyos-1.x/tos/system/tos.h:132: */opt/tinyos-1.x/tos/platform/pc/nido.h:63: `TOSH_NUM_NODES' undeclared here (not in a function) /opt/tinyos-1.x/tos/platform/pc/nido.h:63: enumerator value for `TOSNODES' not i nteger constant make: *** [build/pc/main.exe] Error 1* ** And my nido.h file looks like this with the 63rd line highlighted below. #ifndef NIDO_H_INCLUDED #define NIDO_H_INCLUDED /* in nesc/nesc-cpp.c, the TOSH_NUM_NODES macro is defined, so that TOSNODES is set to the value specified to the nesc compiler by the flag -fnesc-nido-tosnodes=___ */ enum { * TOSNODES = TOSH_NUM_NODES, * DEFAULT_EEPROM_SIZE = (512 * 1024) // 512 KB }; #include event_queue.h #include adjacency_list.h #include rfm_model.h #include adc_model.h #include spatial_model.h #include nido_eeprom.h #include events.h #include sys/time.h typedef struct TOS_node_state{ long long time; // Time at which mote booted int pot_setting; } TOS_node_state_t; typedef struct TOS_state { long long tos_time; int radio_kb_rate; short num_nodes; short current_node; TOS_node_state_t node_state[TOSNODES]; event_queue_t queue; rfm_model* rfm; adc_model* adc; spatial_model* space; bool moteOn[TOSNODES]; /* Synchronization */ bool paused; pthread_mutex_t pause_lock; pthread_cond_t pause_cond; pthread_cond_t pause_ack_cond; } TOS_state_t; #define NODE_NUM (tos_state.current_node) #define THIS_NODE (tos_state.node_state[tos_state.current_node]) #define TOS_queue_insert_event(event) \ queue_insert_event((tos_state.queue), event); extern TOS_state_t tos_state; int notifyTaskPosted(char* name); int notifyEventSignaled(char* name); int notifyCommandCalled(char* name); static void __nesc_nido_initialise(int mote); #include dbg_modes.h static void dbg_clear(TOS_dbg_mode mode, const char *format, ...); /* This function is here because it uses function pointers */ void tos_state_model_init(void) { dbg_clear(DBG_SIM|DBG_BOOT, SIM: spatial model initialized.\n); tos_state.space-init(); dbg_clear(DBG_SIM|DBG_BOOT, SIM: RFM model initialized at %i kbit/sec.\n, tos_state.radio_kb_rate); tos_state.rfm-init(); dbg_clear(DBG_SIM|DBG_BOOT, SIM: ADC model initialized.\n); tos_state.adc-init(); } #endif Actually, im switching back from tinyos-2.x to tinyos-1.x. All the required environmental variables are set proparly as mentioned in the tutorials. Well, i have seen the same problem too in the previous posts, but that is related to cricket software and it is of no help to me. Could anyone please suggest me how to get over with this Error. Thanks a lot in advance. Vijay. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] problem in compiling blink application
Listen to the error: Couldn't execute avr-gcc make: *** [exe0] Error 2 Try to run `which avr-gcc` from the cygwin shell. If that tells you it can't find anything, then the avr toolchain is NOT visible on the PATH. Maybe it was installed somewhere funny; or not correctly installed. Or maybe your PATH is wonkers. Follow the instruction at: http://www.tinyos.net/tinyos-2.x/doc/html/install-tinyos.html If any of the steps fail, troubleshoot it before continuing. You should get rid of all the extra lines in your variable configuration and fix PYTHONPATH. I would define TOSDIR, CLASSPATH and MAKERULES in relation to TOSROOT. The above link covers this too. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] tmote invent sleep
Hello , I am trying to make a tmoteinvent sleep for a certain amount of time , using a timer. These are my queries : 1. I looked around and did not find any HPLPowerManagement for tmoteinvent. Neither was there any RadioControlC to switch the radio off. Looking at the RadioControlC.radioOff() command , it is just switching off the oscillator using CC2420.OscillatorOff(). But the CC24220Control found in the moteiv library has a command like OscillatorOfffile:///C:/cygwin/opt/tinyos-1.x/apps/ptest/doc/tmoteinvent/ihtml/CC2420Control.html#OscillatorOff(uint8_t rh) . My query : What do I pass as the argument rh ? 2. So I used the StdControl interface of the LinkRadio component , to switch the radio on and off. But it doesn't seem to work. What are the methods to switch off the radio in tmote invent ? 3. If I want to make the whole mote to sleep , not just the radio what should i do for tmote invent - moteiv . Thanks in Advance , Somnath ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Writing code for Receiver
Hi Paul, Thanks for reply. To the existing TOSBase(Rx) application, I add the components GenericComm,CC1000ControlM and Timer to make it Transmit also. I start the timer.when it fires, I will send message.when the senddone() event is generated, I start the timer again.Thus, transmit 100 times and stop.Ironically,the Timer doesn't even start.I get the following warnings. calls to Receive.receive in CC1000RadioIntM are uncombined calls to ReceiveMsg.receive in FramerM are uncombined calls to TokenReceiveMsg.receive in FramerM are uncombined secondly,what happens if we JUST receive a message when we are JUST about to transmit.What is the order of happening? Many Thanks in Advance, Kishore ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help