RE: [Tinyos-help] Multichannel Adc sampling and DMA
Hi phil, I just want to sample four channels. But to do it like you say: acquire resource sample 1 sample 2 sample 3 sample 4 sample 5 sample 6 release resource For each channel i need a seperate config (4 channels = 4 configs). So do i need one instance of the ADC interface and one of the resource interface, and reconfigure it during runtime to sample the different channels? Request() Configure(1) Sample1 Configure(2) Sample2 Etc.. Release() Or do i need 4 ADC instances and 4 resource instances? Or maybe 4 ADC instances and one resource instance? This is a bit confusing for me. Thank you, O.Chougna granted -Original Message- From: Philip Levis [mailto:[EMAIL PROTECTED] Sent: vrijdag 15 juni 2007 20:27 To: Oussama Chougna Cc: 'Nicolas Esteves'; tinyos-help@Millennium.Berkeley.EDU Subject: Re: [Tinyos-help] Multichannel Adc sampling and DMA On Jun 15, 2007, at 1:46 AM, Oussama Chougna wrote: Hi Phil, Are you sure about this: Timer.fired() { call Channe1One.read(); call ChannelTwo.read(); call ChannelThree.read(); call ChannelFour.read(); call ChannelFive.read(); call ChannelSix.read(); } Is the first approach only possible with the HIL ADC component ADCReadClientC? Because with the (msp430) HAL interfaces the client should do resource arbitration. (request() , configure() , getData(), dataReady() , release() ). So you cannot call getData() of each channel one after the other in the timer.fired() event? Ah, then what you what to do is acquire resource sample 1 sample 2 sample 3 sample 4 sample 5 sample 6 release resource Basically, for maximum efficiency you don't want the lock (resource) to go idle. That's why enqueueing all the requests as I showed with the HIL is desirable. The lock won't be released until the sixth channel is read. Which would you recommend for 100 Hz sampling? (HIL or HAL) You want to sample all 6 sensors at 100Hz? I'd say try using the HIL (it's simpler) and if it can't do the job use the HAL. The one thing to be careful of is that if you let the ADC go idle long enough, it might power down the voltage reference, which has a 17ms warmup time. Phil ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] RSSI measuring
Hello All, Could anybody explain how actually RSSI measured? I mean where source code in TinyOS for reading of the RSSI.RSSI_VAL register of the CC2420? I found only code: task void receiveDone_task() { cc2420_header_t* header = getHeader( m_p_rx_buf ); cc2420_metadata_t* metadata = getMetadata( m_p_rx_buf ); uint8_t* buf = (uint8_t*)header; uint8_t length = buf[ 0 ]; metadata-crc = buf[ length ] 7; metadata-rssi = buf[ length - 1 ]; metadata-lqi = buf[ length ] 0x7f; m_p_rx_buf = signal Receive.receive( m_p_rx_buf, m_p_rx_buf-data, length ); waitForNextPacket(); } Could you explain why buf[ length - 1 ]; means RSSI ? Thank you, Aleksandr. wbr, Sadkov Aleksandr [EMAIL PROTECTED] www.sumkino.com www.wl.unn.ru ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] [Makefile]
Hi , i ve got a question. I try to implement a new application : when i compile , a message error appears : it doesn't find the v ariable of referernce : incomplete referernce of a variable / STOP. Anyone can help me ? Thanks _ Avec Windows Live OneCare éliminez tous les virus de votre PC ! http://www.windowslive.fr/liveonecare/default.asp ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] CC2420 lossy module in TOSSIM
* Yang Peng: Does anyone use run -rf=yourlossyfile.nss nodeNUM ? It seems like my lossy.nss file does not work, seems like it is not read You also have to specify -r=lossy. Regards, Alexander ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] RSSI measuring
RSSI value is measured by the radio chip. CC2420 will append the rssi, crc and lqi to the last two bytes of the packet. You can refer to the CC2420 datasheet: http://www.chipcon.com/files/CC2420_Data_Sheet_1_3.pdf -Han Aleksandr N. Sadkov 提到: Hello All, Could anybody explain how actually RSSI measured? I mean where source code in TinyOS for reading of the RSSI.RSSI_VAL register of the CC2420? I found only code: /task void receiveDone_task() {/ // /cc2420_header_t* header = getHeader( m_p_rx_buf );/ /cc2420_metadata_t* metadata = getMetadata( m_p_rx_buf );/ ///uint8_t* buf = (uint8_t*)header;/ ///uint8_t length = buf[ 0 ];/ // /metadata-crc = buf[ length ] 7;/ /metadata-rssi = buf[ length - 1 ];/ /metadata-lqi = buf[ length ] 0x7f;/ /m_p_rx_buf = signal Receive.receive( m_p_rx_buf, m_p_rx_buf-data, / / length );/ / / /waitForNextPacket();/ / / / }/ Could you explain why /buf[ length - 1 ]; /means RSSI/ ?/ / / Thank you, Aleksandr. wbr, Sadkov Aleksandr [EMAIL PROTECTED] www.sumkino.com http://www.sumkino.com www.wl.unn.ru ___ 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] TinyOS on ATmega1281 and AT86RF230
Hi everyone. I'm a new user. I'm a student and I recently had some experience programming Crossbow Mica2. I worked with Gentoo Linux. Now I need to use Atmel AVR Z-link but I noticed that, in the version of TinyOS that I installed (2.0.1), there is no platform library for this device or any chip libraries for ATmega1281 and AT86RF230. There is only the chip library for ATmega128. I don't know how I can write my program for this devices if they are not supported by TinyOS. Anybody can help me? Thank you. _ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Multichannel Adc sampling and DMA
My last question is why Msp430Adc12DMAP dont provide Msp430Adc12MultiChannel? is this a DMA limitation? On msp430 the combination ADC MultiChannel + DMA has not been implemented yet (it's on my TODO list). I also found that no constant is available to use Msp430Adc12ClientAutoDMA_RVGC or Msp430Adc12ClientAutoDMAC in AdcReadClient/AdcReadNowClient/AdcReadStreamClient. Is it on purpose and why? The HIL interfaces are platform independent and by default the HIL clients use Msp430Adc12ClientAutoRVGC (because they don't know whether they will need the RVG). If you are sure that you don't need the internal reference voltage generator, you can save some code with the switch REF_VOLT_AUTO_CONFIGURE in the header file (it uses a Msp430Adc12ClientC on the HAL instead). Currently MultiChannel is provided by Msp430Adc12ClientC only - I will add the interface for Msp430Adc12ClientAutoRVGC (if I find time next week). Jan On 6/18/07, Oussama Chougna [EMAIL PROTECTED] wrote: Hi phil, I just want to sample four channels. But to do it like you say: acquire resource sample 1 sample 2 sample 3 sample 4 sample 5 sample 6 release resource For each channel i need a seperate config (4 channels = 4 configs). So do i need one instance of the ADC interface and one of the resource interface, and reconfigure it during runtime to sample the different channels? Request() Configure(1) Sample1 Configure(2) Sample2 Etc.. Release() Or do i need 4 ADC instances and 4 resource instances? Or maybe 4 ADC instances and one resource instance? This is a bit confusing for me. Thank you, O.Chougna granted -Original Message- From: Philip Levis [mailto:[EMAIL PROTECTED] Sent: vrijdag 15 juni 2007 20:27 To: Oussama Chougna Cc: 'Nicolas Esteves'; tinyos-help@Millennium.Berkeley.EDU Subject: Re: [Tinyos-help] Multichannel Adc sampling and DMA On Jun 15, 2007, at 1:46 AM, Oussama Chougna wrote: Hi Phil, Are you sure about this: Timer.fired() { call Channe1One.read(); call ChannelTwo.read(); call ChannelThree.read(); call ChannelFour.read(); call ChannelFive.read(); call ChannelSix.read(); } Is the first approach only possible with the HIL ADC component ADCReadClientC? Because with the (msp430) HAL interfaces the client should do resource arbitration. (request() , configure() , getData(), dataReady() , release() ). So you cannot call getData() of each channel one after the other in the timer.fired() event? Ah, then what you what to do is acquire resource sample 1 sample 2 sample 3 sample 4 sample 5 sample 6 release resource Basically, for maximum efficiency you don't want the lock (resource) to go idle. That's why enqueueing all the requests as I showed with the HIL is desirable. The lock won't be released until the sixth channel is read. Which would you recommend for 100 Hz sampling? (HIL or HAL) You want to sample all 6 sensors at 100Hz? I'd say try using the HIL (it's simpler) and if it can't do the job use the HAL. The one thing to be careful of is that if you let the ADC go idle long enough, it might power down the voltage reference, which has a 17ms warmup time. Phil ___ 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] Tinysec and TOSSIM
Hello All I am writing this after going through the mail archives, having not obtained an answer: 1. How can I use TinySec with TOSSIM - to verify the contents of the packets before encryption/decryption and after decryption/encryption ? 2. How can I run the SecureTOSbase and TOSBase (as per the instructions in TinySec manual) in TOSSIM without uploading the code into a mote ? Any help would be greatly appreciated - specifically 'cause I've noticed the queries with respect to TinySec often go unanswered on the lists ! TKS n RGDS DCJ ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] RSSI measuring
Does CC2420 check the RSSI_VALID register before appending the RSSI value to the last two bytes of the packet? Regards, Aleksandr. wbr, Sadkov Aleksandr [EMAIL PROTECTED] www.sumkino.com www.wl.unn.ru -Original Message- From: Tsung-Han Lin [mailto:[EMAIL PROTECTED] Sent: Monday, June 18, 2007 3:07 PM To: Aleksandr N. Sadkov Cc: tinyos-help@Millennium.Berkeley.EDU Subject: Re: [Tinyos-help] RSSI measuring RSSI value is measured by the radio chip. CC2420 will append the rssi, crc and lqi to the last two bytes of the packet. You can refer to the CC2420 datasheet: http://www.chipcon.com/files/CC2420_Data_Sheet_1_3.pdf -Han Aleksandr N. Sadkov ??: Hello All, Could anybody explain how actually RSSI measured? I mean where source code in TinyOS for reading of the RSSI.RSSI_VAL register of the CC2420? I found only code: /task void receiveDone_task() {/ // /cc2420_header_t* header = getHeader( m_p_rx_buf );/ /cc2420_metadata_t* metadata = getMetadata( m_p_rx_buf );/ ///uint8_t* buf = (uint8_t*)header;/ ///uint8_t length = buf[ 0 ];/ // /metadata-crc = buf[ length ] 7;/ /metadata-rssi = buf[ length - 1 ];/ /metadata-lqi = buf[ length ] 0x7f;/ /m_p_rx_buf = signal Receive.receive( m_p_rx_buf, m_p_rx_buf-data, / / length );/ / / /waitForNextPacket();/ / / / }/ Could you explain why /buf[ length - 1 ]; /means RSSI/ ?/ / / Thank you, Aleksandr. wbr, Sadkov Aleksandr [EMAIL PROTECTED] www.sumkino.com http://www.sumkino.com www.wl.unn.ru ___ 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] Problem about how one nesC file calls a function provided by another nesC file
Dear all, Suppose I got two nesC files, one is client.nc, and another is server.nc, and client.nc wanna call a function that is in server.nc. and for example, in server.nc file, I have a command that is written as this command result_t Foo(char *data) { return SUCCESS; } and then in client.nc file, I wanna implement it like this: int a=0; if( a3 ) call Foo(data) that's all what I wanna implement, however, I don't know what has to be included in server.nc and client.nc file, like use something, call something, include something, I don't know what is necessary for them. Could anyone help me out with how to write the essence of server.nc and client.nc please. I am new to nesC, any suggestion would be very appreciated. And thanks for your time reading it. -- Best wishes, Kenneth Chan Wish you have a good day! ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] How to restart a TOSSIM simulation TinyOS 2.x
Hi Philip, I think I found another problem concerning restart of Motes: I have a running simulation where I stop after not getting any debug message from my motes for a specified time and then restart all motes by doing : simt = tossim.time() for i in range(0,maxNodes): tossim.turnOff(i) for i in range(maxNodes-1,-1,-1): tossim.bootAtTime(simt+50) tossim.turnOn(i) This works for a couple of times and then I get another Segfault. I ran it throug gdb and appended the output. Can you tell a problem or do you need more information ? Marek Starting program: /usr/bin/python2.5 ./Mult.py (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread -1210767152 (LWP 11242)] (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) Creating parameters.h Compiling project mkdir -p build/micaz placing object files in build/micaz writing XML schema to app.xml compiling ProbAppC to object file sim.o ncc -c -shared -fPIC -o build/micaz/sim.o -g -O0 -tossim -fnesc-nido-tosnodes=1000 -fnesc-s imulate -fnesc-nido-motenumber=sim_node\(\) -finline-limit=10 -Wall -Wshadow -Wnesc-a ll -target=micaz -fnesc-cfile=build/micaz/app.c -board=micasb -Wno-nesc-data-race ProbAppC .nc -fnesc-dump=components -fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typede fs -fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml compiling Python support and C libraries into pytossim.o, tossim.o, and c-support.o g++ -c -shared -fPIC -o build/micaz/pytossim.o -g -O0 /data/hiwi/tinyos/tinyos-2.x/tos/li b/tossim/tossim_wrap.cxx -I/usr/include/python2.5 -I/data/hiwi/tinyos/tinyos-2.x/tos/lib/to ssim -DHAVE_CONFIG_H g++ -c -shared -fPIC -o build/micaz/tossim.o -g -O0 /data/hiwi/tinyos/tinyos-2.x/tos/lib/ tossim/tossim.c -I/usr/include/python2.5 -I/data/hiwi/tinyos/tinyos-2.x/tos/lib/tossim g++ -c -shared -fPIC -o build/micaz/c-support.o -g -O0 /data/hiwi/tinyos/tinyos-2.x/tos/l ib/tossim/hashtable.c -I/usr/include/python2.5 -I/data/hiwi/tinyos/tinyos-2.x/tos/lib/tossi m linking into shared object ./_TOSSIMmodule.so g++ -shared -fPIC build/micaz/pytossim.o build/micaz/sim.o build/micaz/tossim.o build/mica z/c-support.o -lstdc++ -o _TOSSIMmodule.so copying Python script interface TOSSIM.py from lib/tossim to local directory *** Successfully built micaz TOSSIM library. Starting new tossim instance Simulation: reloading TOSSIM module module 'TOSSIM' from '/data/hiwi/tinyos/tinyos-2.x/apps/ProbFlooding/TOSSIM.py' Simulation: TOSSIM module reloaded Starting new simulation Current parameters [[MoteParameter:0]] [MoteNumberParameter:10] [[ScriptParameter:1]] Simuation: Status set to Running [New Thread -1215095920 (LWP 11375)] [New Thread -1223484528 (LWP 11376)] checking status Running Simulation: Stopped due to lack of Events [Thread -1215095920 (LWP 11375) exited] Stopped Mult:resetting Mult:Simulation stopped Permutations left open file 'output-1', mode 'w' at 0xb7d06a40 Setoutputfile open file 'output-1', mode 'w' at 0xb7d06a40 here simtime 169829531 here ? Turning off 0 Turning off 1 Turning off 2 Turning off 3 Turning off 4 Turning off 5 Turning off 6 Turning off 7 Turning off 8 Turning off 9 Turning on 9 Turning on 8 Turning on 7 Turning on 6 Turning on 5 Turning on 4 Turning on 3 Turning on 2 Turning on 1 Turning on 0 finally here nothere Simulation resetted Starting new simulation Current parameters [[MoteParameter:0]] [MoteNumberParameter:10] [[ScriptParameter:2]] Simuation: Status set to Running [New Thread -1215095920 (LWP 11377)] [New Thread -1231877232 (LWP 11378)] checking status Running Running Running Running Running Running Running Running Running Running Running Running Running Running Running Running Running Running Running Running Running Running Running Running Watcher: stopping Simulation Simulation: Stopped by stop() [Thread -1215095920 (LWP 11377) exited] Stopped Mult:resetting Mult:Simulation stopped Permutations left open file 'output-2', mode 'w' at 0xb7d06ad0 Setoutputfile open file 'output-2', mode 'w' at 0xb7d06ad0 here simtime 6150475117943 here ? Turning off 0 Turning off 1 Turning off 2 Turning off 3 Turning off 4 Turning off 5 Turning off 6 Turning off 7 Turning off 8 Turning off 9 Turning on 9 Turning on 8 Turning on 7 Turning on 6 Turning on 5 Turning on 4 Turning on 3 Turning on 2 Turning on 1 Turning on 0 finally here nothere Simulation resetted Starting new simulation Current parameters [[MoteParameter:0]] [MoteNumberParameter:10] [[ScriptParameter:3]] Simuation: Status set to Running [New Thread -1215095920 (LWP 11379)] [New Thread -1240265840 (LWP 11380)] checking status Running Watcher: stopping Simulation Simulation: Stopped by stop() [Thread -1215095920 (LWP 11379) exited] Stopped Mult:resetting
[Tinyos-help] Can I call nesc funcs in C
Dear all, Is there a chance for me to call nesc funcs in program written in C? If yes, would you please tell me how to do it? Thank you:) Best Regards, Enric Y.H. Zheng___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] ADC external sensors
Hi i have a problem. I'm using a tmote sky with tinyos 1.1 and i must sample the voltage on a external capacitor. I set the ADC3 of the expansion connector but, when i see the value with the java Listen application, the tmote doesn't sample anything. The question is: all the channels are the same? The code i wrote to connect the external capacitor is: enum { TOS_ADC_SUPERCAP_PORT = unique(ADCPort), TOSH_ACTUAL_ADC_SUPERCAP_PORT = ASSOCIATE_ADC_CHANNEL( INPUT_CHANNEL_A3, REFERENCE_VREFplus_AVss, REFVOLT_LEVEL_2_5 ), }; which is the error? Is this the only part of code that i must change from the tutorial examples? Thanks ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Multichannel Adc sampling and DMA
Hi, Thanks for all your replies. I'll sample my channel with the multiple channel interface and see if i can have the frequence i need, around 1000 hz without dma. If i can't i'll try to add dma to improve speed. Jan Hauer wrote: My last question is why Msp430Adc12DMAP dont provide Msp430Adc12MultiChannel? is this a DMA limitation? On msp430 the combination ADC MultiChannel + DMA has not been implemented yet (it's on my TODO list). I also found that no constant is available to use Msp430Adc12ClientAutoDMA_RVGC or Msp430Adc12ClientAutoDMAC in AdcReadClient/AdcReadNowClient/AdcReadStreamClient. Is it on purpose and why? The HIL interfaces are platform independent and by default the HIL clients use Msp430Adc12ClientAutoRVGC (because they don't know whether they will need the RVG). If you are sure that you don't need the internal reference voltage generator, you can save some code with the switch REF_VOLT_AUTO_CONFIGURE in the header file (it uses a Msp430Adc12ClientC on the HAL instead). Currently MultiChannel is provided by Msp430Adc12ClientC only - I will add the interface for Msp430Adc12ClientAutoRVGC (if I find time next week). Jan ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] RSSI measuring
According to the datasheet, the RSSI_VALID status bit indicates when the RSSI value is valid, meaning that the receiver has been enabled for at least 8 symbol periods. Since receiving a packet will always be longer than 8 symbol periods, there's no need to check. I think this register should be checked when you're using CC2420 to sample background noise. -Han Aleksandr N. Sadkov 提到: Does CC2420 check the RSSI_VALID register before appending the RSSI value to the last two bytes of the packet? Regards, Aleksandr. wbr, Sadkov Aleksandr [EMAIL PROTECTED] www.sumkino.com www.wl.unn.ru -Original Message- From: Tsung-Han Lin [mailto:[EMAIL PROTECTED] Sent: Monday, June 18, 2007 3:07 PM To: Aleksandr N. Sadkov Cc: tinyos-help@Millennium.Berkeley.EDU Subject: Re: [Tinyos-help] RSSI measuring RSSI value is measured by the radio chip. CC2420 will append the rssi, crc and lqi to the last two bytes of the packet. You can refer to the CC2420 datasheet: http://www.chipcon.com/files/CC2420_Data_Sheet_1_3.pdf -Han Aleksandr N. Sadkov ??: Hello All, Could anybody explain how actually RSSI measured? I mean where source code in TinyOS for reading of the RSSI.RSSI_VAL register of the CC2420? I found only code: /task void receiveDone_task() {/ // /cc2420_header_t* header = getHeader( m_p_rx_buf );/ /cc2420_metadata_t* metadata = getMetadata( m_p_rx_buf );/ ///uint8_t* buf = (uint8_t*)header;/ ///uint8_t length = buf[ 0 ];/ // /metadata-crc = buf[ length ] 7;/ /metadata-rssi = buf[ length - 1 ];/ /metadata-lqi = buf[ length ] 0x7f;/ /m_p_rx_buf = signal Receive.receive( m_p_rx_buf, m_p_rx_buf-data, / / length );/ / / /waitForNextPacket();/ / / / }/ Could you explain why /buf[ length - 1 ]; /means RSSI/ ?/ / / Thank you, Aleksandr. wbr, Sadkov Aleksandr [EMAIL PROTECTED] www.sumkino.com http://www.sumkino.com www.wl.unn.ru ___ 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] send inside Receive
Hi, Hope that someone could help me with the following: I would like to do the following: 1- Mote1 sends a packet every 1sec to Mote2 2- I want Mote2 to add some filed to the received packet and then forwards it directlly to another mote. I want to know if it is ok to invoke sendNow() from Receive event??? ... void sendNow(){ if (!busy) { if (call AMSend.send(0,ptr, sizeof(BlinkToRadioMsg)) == SUCCESS) { call Leds.led2Toggle(); busy = TRUE; } }} event message_t* Receive.receive(message_t* msg, void* payload, uint8_t len){ message_t *tmp= ptr; ptr = msg; if (len == sizeof(BlinkToRadioMsg)) { BlinkToRadioMsg* btrpkt = (BlinkToRadioMsg*)payload; btrpkt-tnow= call Timer0.getNow(); sendNow(); } return tmp; } I am not sure about sendNow() inside the receive event! Is it ok to place it inside the event Receive? what do you think?? thanks for any help Sara ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [TinyOS-help] why use NoLeds?
On Saturday 16 June 2007 15:12, Min Guo wrote: I am not clear about the NoLeds component. When should we use this component instead of the normal Leds? When you want to leave in code that interacts with Leds but want to turn them off or disable them for some reason. For example, you can do some simple debug with the Leds interface wired to the LedsC component, turn off the debug by wiring to the NoLedsC component instead, and turn it back on by changing the wiring back to LedsC. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Fan-Out and Combine function help.
Thanks for the response Bernardo, I included my configuration in my origional response. I understand what the warning is telling me but I'm confused on how to fix it. The warning claims that it has to do with my receieve interface but I only have one instance of recieve. I'm thinking it has something to do with my AMSend interface but I'm not sure. Thanks On 6/17/07, Bernardo Avila Pires [EMAIL PROTECTED] wrote: I remember having this problem. What happened to me was that this receive interface had multiple effects in components. I don't know exactaly how to put it, but you've wired multiple components by the same interface, the same instance of receiver. I had this problem when I needed to use TOSSIM with multiple components. What I did was to connect all of the in one module and choose to initialize the most convenient one for the node. Since two components were wired to the same instance of the receiver interface (although they would'n be active at the same time), whenever I received a message, events were triggered in both components. When I started programming the motes, I separated the components and the warning disappeared. So, try to check out your configurations =) 2007/6/17, Ian Welch [EMAIL PROTECTED]: I'm getting the follow warning calls to Recieve.recieve in CC1000ActiveMessageP fan out, but there is no combine function fnction specified for the return type I looked in the NESC programming guide and couldn't figure out how to solve me problem but did find out that this warning should not be overlooked. How do I solve this warning, I'm thinking it's something to do with using AMSenderC and ActiveMessageC? Thanks ahead of time for the help. -Ian module InsoleC { uses interface Boot; uses interface Leds; uses interface TimerTMilli as SampleDelay; uses interface TimerTMilli as AckDelay; uses interface TimerTMilli as Time; uses interface TimerTMilli as TimeAck; uses interface Atm128AdcMultiple as Multiple; uses interface Atm128AdcSingle as Single; uses interface Init as ADCInit; uses interface Packet; uses interface Receive as Receiver[am_id_t myid]; uses interface AMSend[am_id_t id]; uses interface Packet as DataPacket; uses interface AMSend as DataSend; uses interface PacketAcknowledgements as ACK; uses interface GeneralIO; uses interface GeneralIO as Battery1; uses interface GeneralIO as Battery2; uses interface LogRead; uses interface LogWrite; uses interface Suspend; uses interface PowerControl; } implementation { components MainC; components LedsC; components InsoleC; components Atm128AdcP as MyADC; components new TimerMilliC() as SampleDelay; components new TimerMilliC() as AckDelay; components new TimerMilliC() as Time; components new TimerMilliC() as TimeAck; components ActiveMessageC as Radio; components new AMSenderC(6) as Data; components HplAtm128GeneralIOC as BattIO; components new LogStorageC(VOLUME_LOG,TRUE); components MotePowerApp; components SuspendApp; //components new LogStorageC(VOLUME_STORAGE,FALSE) as SampleStorageC; InsoleC.Boot- MainC; InsoleC.Leds- LedsC; InsoleC.SampleDelay- SampleDelay; InsoleC.AckDelay- AckDelay; InsoleC.Time- Time; InsoleC.TimeAck- TimeAck; InsoleC.Multiple- MyADC; InsoleC.ADCInit- MyADC;//Atm128AdcSingle was not included, I dont think this is required InsoleC.Single- MyADC; InsoleC.PowerControl- MotePowerApp; InsoleC.Suspend- SuspendApp; InsoleC.ACK- Radio; InsoleC.Packet - Radio; InsoleC.AMSend- Radio; InsoleC.Receiver- Radio.Receive; InsoleC.DataPacket- Data;//Used to interface witht he data packet InsoleC.DataSend - Data;//Dat packet InsoleC.Battery1-BattIO.PortC6;//Used to monitor Battery InsoleC.Battery2-BattIO.PortC7;//Used to monitor Batery InsoleC.LogWrite - LogStorageC; InsoleC.LogRead- LogStorageC; //InsoleC.SampleWrite- SampleStorageC; //InsoleC.SampleRead- SampleStorageC; } ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- The truth shall set you free ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Problem about how one nesC file calls a function provided by another nesC file
On Monday 18 June 2007 06:17, Chan kenniel wrote: Dear all, Suppose I got two nesC files, one is client.nc, and another is server.nc, and client.nc wanna call a function that is in server.nc. and for example, in server.nc file, I have a command that is written as this command result_t Foo(char *data) { return SUCCESS; } and then in client.nc file, I wanna implement it like this: int a=0; if( a3 ) call Foo(data) that's all what I wanna implement, however, I don't know what has to be included in server.nc and client.nc file, like use something, call something, include something, I don't know what is necessary for them. Could anyone help me out with how to write the essence of server.nc and client.nc please. I am new to nesC, any suggestion would be very appreciated. And thanks for your time reading it. You might want to read http://csl.stanford.edu/~pal/pubs/tinyos-programming.pdf, which provides some good information about nesC in the context of TinyOS. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] send inside Receive
Hi sara, I think it is better replacing the sendNow() function by a task. This way you make the event shorter, and complete faster as recommended in the TinyOs programming guide. Cheers, O.Chougna -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of sara Khad Sent: maandag 18 juni 2007 16:37 To: tinyos-help@Millennium.Berkeley.EDU Subject: [Tinyos-help] send inside Receive Hi, Hope that someone could help me with the following: I would like to do the following: 1- Mote1 sends a packet every 1sec to Mote2 2- I want Mote2 to add some filed to the received packet and then forwards it directlly to another mote. I want to know if it is ok to invoke sendNow() from Receive event??? . void sendNow(){ if (!busy) { if (call AMSend.send(0,ptr, sizeof(BlinkToRadioMsg)) == SUCCESS) { call Leds.led2Toggle(); busy = TRUE; } }} event message_t* Receive.receive(message_t* msg, void* payload, uint8_t len){ message_t *tmp= ptr; ptr = msg; if (len == sizeof(BlinkToRadioMsg)) { BlinkToRadioMsg* btrpkt = (BlinkToRadioMsg*)payload; btrpkt-tnow= call Timer0.getNow(); sendNow(); } return tmp; } I am not sure about sendNow() inside the receive event! Is it ok to place it inside the event Receive? what do you think?? thanks for any help Sara ___ 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] avr-gcc.exe: /usr/lib/ncc/tdspecs: No such file or directory
I recently added another tool to my installation of Cygwin and in so doing, Cygwin updated every other tool and file. After this, my toolchain seems to be broken with the following error: ncc -o build/xcvr/main.exe -Os -finline-limit=10 -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=xcvr -fnesc-cfile=build/xcvr/app.c -board=none -DIDENT_PROGRAM_NAME=\TestRadio\ -DIDENT_USER_ID=\rdobbis\ -DIDENT_HOSTNAME=\Bruce\ -DIDENT_USER_HASH=0x028d605fL -DIDENT_UNIX_TIME=0x46769c85L -DIDENT_UID_HASH=0xb32b104fL -I/opt/tinyos-1.x/contrib/Zylaya/tos/platform/xcvr -I/opt/tinyos-1.x/contrib/Zylaya/tos/interfaces -I/opt/tinyos-1.x/contrib/Zylaya/tos/system -I/opt/tinyos-1.x/contrib/Zylaya/tos/lib/CC1100Radio TestRadio.nc -lm avr-gcc.exe: /usr/lib/ncc/tdspecs: No such file or directory make: *** [exe0] Error 1 Of course, the file 'tdspecs' IS there so the problem must lie in something in the file - something perl oriented ? Has anyone else seen this or have a clue ? I am not a perl programmer. Using nesc-1.2.8a, tinyos-tools-1.2.3-1 Thanks ! Richard ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: Re: [Tinyos-help] Questions about using Deluge T2
On 6/17/07, Razvan Musaloiu-E. [EMAIL PROTECTED] wrote: Hi! On Sun, 17 Jun 2007, Yu-En Tsai wrote: Hi Mike, I use these 2 instructions to do CVS update: cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/tinyos login cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvsroot/tinyos co -P tinyos-2.x After this checkout did you update the TOSDIR variable to point the checkout? The bnp.extra is using the TOSDIR to build the paths the Deluge T2 needs. I didn't change TOSDIR. It's /opt/tinyos-2.x/tos. I looked into bnp.extra, the paths are all correct and version is 2007/06/08. I update my CVS tree again and the same problems still occur. Did you install the tools/tinyos/misc? I guess my problems are from this. As in my first post, I can't go through the section 2 of Deluge T2 manual. 1. There are no Bootstrap and configure in my $TOSROOT. 2. I run ./Bootstrap and ./configure in $TOSROOT/tools and got: $ ./Bootstrap + aclocal + autoconf + '[' -d config-aux ']' + automake -a -c + set -x + cd platforms/mica/uisp + ./bootstrap autoheader-2.61: WARNING: Using auxiliary files such as `acconfig.h', `config.h. bot' autoheader-2.61: WARNING: and `config.h.top', to define templates for `config.h. in' autoheader-2.61: WARNING: is deprecated and discouraged. autoheader-2.61: autoheader-2.61: WARNING: Using the third argument of `AC_DEFINE' and autoheader-2.61: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a template w ithout autoheader-2.61: WARNING: `acconfig.h': autoheader-2.61: autoheader-2.61: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1, autoheader-2.61:[Define if a function `main' is needed.]) autoheader-2.61: autoheader-2.61: WARNING: More sophisticated templates can also be produced, see the autoheader-2.61: WARNING: documentation. + rm -f config.cache src/config.cache * $ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking build system type... i686-pc-cygwin checking host system type... i686-pc-cygwin checking for gcc... gcc checking for C compiler default output file name... a.exe checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... .exe checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking for ranlib... ranlib checking for perl... /usr/bin/perl checking for python... /usr/bin/python checking for nescc... /usr/bin/nescc configure: Default ncc build target is mica configure: ...but using a tos/.default-platform file is a better choice configure: TinyOS directory is /opt/tinyos-2.x/tos checking for cygwin... yes checking for JDK location... configure: error: java not found ** I did install JAVA and environment variables are correct. 3. make and make install neither work in $TOSROOT/tools/tinyos/misc. Can you point me how to install the tools/tinyos/misc? Also, I tried to download bnp.extra directly from web-based CVS repository. It didn't work either. Did I miss anything? Can you be more specific about what exactly have you done? I did the tools installation part as I mentioned above. I compiled TOSBoot, then run burn script. vvv installing micaz bootloader using mib510 uisp -dprog=mib510 -dserial=/dev/ttyS0 --wr_fuse_h=0xd9 -dpart=ATmega128 --wr_fuse_e=ff --upload if= Firmware Version: 2.1 Atmel AVR ATmega128 is found. Error: No such file or directory - make: *** [program_bl] Error 1 I also tried to install GoldenImage. v $ CFLAGS=-DDELUGE_BASESTATION make micaz install mib510,/dev/ttyS0 mkdir -p build/micaz compiling GoldenImageC to a micaz binary ncc -o build/micaz/main.exe -Os -finline-limit=10 -Wall -Wshadow -Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c -board=micasb -Ibuild/micaz -DDELUG E_BASESTATION -DDELUGE_BASESTATION -fnesc-dump=wiring -fnesc-dump='interfaces(!a bstract())' -fnesc-dump='referenced(interfacedefs, components)' -fnesc-dumpfile= build/micaz/wiring-check.xml GoldenImageC.nc -lm In component `GoldenImageC': GoldenImageC.nc:31: component DelugeC not found make: *** [exe0] Error 1
Re: [Tinyos-help] Multichannel Adc sampling and DMA
Hi, I tried to sample 6 channels together but i always have 0xfff, im not sure of the initialisation of the adc if someone can help me it would be nice... here is my component module CeaSensorP { uses { interface Msp430Adc12MultiChannel as Adc; interface Resource; } provides { interface CeaSensor; } } implementation { uint16_t results[6]; async command void CeaSensor.init() { call Resource.request(); } event void Resource.granted() { atomic { adc12memctl_t memctl[6] = { /*{ inch: INPUT_CHANNEL_A0, sref: REFERENCE_VREFplus_AVss, 0 }, */ { inch: INPUT_CHANNEL_A1, sref: REFERENCE_VREFplus_AVss, 0 }, { inch: INPUT_CHANNEL_A2, sref: REFERENCE_VREFplus_AVss, 0 }, { inch: INPUT_CHANNEL_A3, sref: REFERENCE_VREFplus_AVss, 0 }, { inch: INPUT_CHANNEL_A6, sref: REFERENCE_VREFplus_AVss, 0 }, { inch: INPUT_CHANNEL_A7, sref: REFERENCE_VREFplus_AVss, 1 } }; msp430adc12_channel_config_t config = { inch: INPUT_CHANNEL_A0, sref: REFERENCE_VREFplus_AVss, ref2_5v: REFVOLT_LEVEL_2_5, adc12ssel: SHT_SOURCE_ACLK, adc12div: SHT_CLOCK_DIV_1, sht: SAMPLE_HOLD_64_CYCLES, sampcon_ssel: SAMPCON_SOURCE_SMCLK, sampcon_id: SAMPCON_CLOCK_DIV_1 }; jiffies = 250; signal CeaSensor.initDone( call Adc.configure(config, memctl, 5, results, 6, jiffies)); } } async command error_t CeaSensor.sample() { return call Adc.getData(); } async event void Adc.dataReady( uint16_t *buffer, uint16_t numSamples ) { signal CeaSensor.sampleDone(buffer, numSamples); } } the buffer signaled by dataReady is always full of 0xfff thanks ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] [Makefile]
well...you probably have a variable that is not defined or misspelled... Post the whole Makefile and the actual error text and maybe someone can spot the problem. MS vazoumana fofana wrote: Hi , i ve got a question. I try to implement a new application : when i compile , a message error appears : it doesn't find the v ariable of referernce : incomplete referernce of a variable / STOP. Anyone can help me ? Thanks _ Avec Windows Live OneCare éliminez tous les virus de votre PC ! http://www.windowslive.fr/liveonecare/default.asp ___ 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] Problem on nesc-semantics.c
On Jun 16, 2007, at 6:41 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi all, I encountered this error recently: assertion 0 failed: file nesc-semantics.c, line 145 But I couldn’t find the file “nesc-semantics.c” Does anyone know where to look up this file and what may cause this error to occur? This is an internal bug in the nesC compiler. David Gay is getting close to a 1.2.9 release, so it would be good to find out if this bug still exists in the source tree. Can you send an email to David Gay with the following: 1) A complete gzipped tarball of your source tree 2) The version of nesC you are using (ncc --version) 3) A description of what command causes this error (e.g., 'make telosb' in apps/Null) These three things will help David figure out what the problem is. Phil ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Fan-Out and Combine function help.
Please read the TinyOS programming manual, Chapter 5.2 (Combine functions). Phil On Jun 17, 2007, at 2:50 PM, Ian Welch wrote: I'm getting the follow warning calls to Recieve.recieve in CC1000ActiveMessageP fan out, but there is no combine function fnction specified for the return type I looked in the NESC programming guide and couldn't figure out how to solve me problem but did find out that this warning should not be overlooked. How do I solve this warning, I'm thinking it's something to do with using AMSenderC and ActiveMessageC? Thanks ahead of time for the help. -Ian module InsoleC { uses interface Boot; uses interface Leds; uses interface TimerTMilli as SampleDelay; uses interface TimerTMilli as AckDelay; uses interface TimerTMilli as Time; uses interface TimerTMilli as TimeAck; uses interface Atm128AdcMultiple as Multiple; uses interface Atm128AdcSingle as Single; uses interface Init as ADCInit; uses interface Packet; uses interface Receive as Receiver[am_id_t myid]; uses interface AMSend[am_id_t id]; uses interface Packet as DataPacket; uses interface AMSend as DataSend; uses interface PacketAcknowledgements as ACK; uses interface GeneralIO; uses interface GeneralIO as Battery1; uses interface GeneralIO as Battery2; uses interface LogRead; uses interface LogWrite; uses interface Suspend; uses interface PowerControl; } implementation { components MainC; components LedsC; components InsoleC; components Atm128AdcP as MyADC; components new TimerMilliC() as SampleDelay; components new TimerMilliC() as AckDelay; components new TimerMilliC() as Time; components new TimerMilliC() as TimeAck; components ActiveMessageC as Radio; components new AMSenderC(6) as Data; components HplAtm128GeneralIOC as BattIO; components new LogStorageC(VOLUME_LOG,TRUE); components MotePowerApp; components SuspendApp; //components new LogStorageC(VOLUME_STORAGE,FALSE) as SampleStorageC; InsoleC.Boot- MainC; InsoleC.Leds- LedsC; InsoleC.SampleDelay- SampleDelay; InsoleC.AckDelay- AckDelay; InsoleC.Time- Time; InsoleC.TimeAck- TimeAck; InsoleC.Multiple- MyADC; InsoleC.ADCInit- MyADC;//Atm128AdcSingle was not included, I dont think this is required InsoleC.Single- MyADC; InsoleC.PowerControl- MotePowerApp; InsoleC.Suspend- SuspendApp; InsoleC.ACK- Radio; InsoleC.Packet - Radio; InsoleC.AMSend- Radio; InsoleC.Receiver- Radio.Receive; InsoleC.DataPacket- Data;//Used to interface witht he data packet InsoleC.DataSend - Data;//Dat packet InsoleC.Battery1-BattIO.PortC6;//Used to monitor Battery InsoleC.Battery2-BattIO.PortC7;//Used to monitor Batery InsoleC.LogWrite - LogStorageC; InsoleC.LogRead- LogStorageC; //InsoleC.SampleWrite- SampleStorageC; //InsoleC.SampleRead- SampleStorageC; } ___ 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 to restart a TOSSIM simulation TinyOS 2.x
On Jun 18, 2007, at 5:21 AM, Marek Jawurek wrote: Hi Philip, I think I found another problem concerning restart of Motes: I have a running simulation where I stop after not getting any debug message from my motes for a specified time and then restart all motes by doing : simt = tossim.time() for i in range(0,maxNodes): tossim.turnOff(i) for i in range(maxNodes-1,-1,-1): tossim.bootAtTime(simt+50) tossim.turnOn(i) This works for a couple of times and then I get another Segfault. I ran it throug gdb and appended the output. As I said, you want to let the motes wait a bit before rebooting them (e.g., a few ms). 50 simulation ticks is not enough: it's something like 5 *nanoseconds*. Phil ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] TOSSIM: radio model
On Jun 17, 2007, at 11:14 AM, Anu Singh wrote: Hi, I am using tinyos-2.0 and using TOSSIM for simulation. Are there any parameteres that can be used to control the message loss rate (due to lossy links and collisions) during simulation. I want to reduce the loss rate. I have set the link gains to 0.0 (highest gain) but that does not help in decreasing the messgae loss rate. Lossy links, yes. Collisions, no. Phil ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] RSSI measuring
On Jun 18, 2007, at 6:05 AM, Tsung-Han Lin wrote: According to the datasheet, the RSSI_VALID status bit indicates when the RSSI value is valid, meaning that the receiver has been enabled for at least 8 symbol periods. Since receiving a packet will always be longer than 8 symbol periods, there's no need to check. I think this register should be checked when you're using CC2420 to sample background noise. Right. The RSSI_VALID bit is there for sampling when the radio is in TX mode or before it's had a chance to generate a sample. 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.jar
On Jun 17, 2007, at 4:25 AM, Ahmed Said wrote: hi, does anyone know how can i regenaerte tinyos.jar? make tinyos.jar Phil ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] send inside Receive
On Jun 18, 2007, at 7:36 AM, sara Khad wrote: Hi, Hope that someone could help me with the following: I would like to do the following: 1- Mote1 sends a packet every 1sec to Mote2 2- I want Mote2 to add some filed to the received packet and then forwards it directlly to another mote. I want to know if it is ok to invoke sendNow() from Receive event??? ... void sendNow(){ if (!busy) { if (call AMSend.send(0,ptr, sizeof(BlinkToRadioMsg)) == SUCCESS) { call Leds.led2Toggle(); busy = TRUE; } }} event message_t* Receive.receive(message_t* msg, void* payload, uint8_t len){ message_t *tmp= ptr; ptr = msg; if (len == sizeof(BlinkToRadioMsg)) { BlinkToRadioMsg* btrpkt = (BlinkToRadioMsg*)payload; btrpkt-tnow= call Timer0.getNow(); sendNow(); } return tmp; } I am not sure about sendNow() inside the receive event! Is it ok to place it inside the event Receive? what do you think?? It should be OK. The only thing to be careful of is the packet. You want to make sure you do not send the buffer that you pass back to the radio. But your code looks OK in this regard. Phil ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Tinynode radio stack errors?
Hey folks, So, I'm working on a Tinynode base station application. and I'm seeing some odd behavior out of the radio. Right now, there is one repeating timer that tries to send out three beacon messages to other motes. So, with one LED assigned to toggle just after SendMsg.send(), and another tied to SendMsg.sendDone(), the following happens: On the first run through, everything works fine, I can see the packets being transmitted via a TOSBase variant hooked up to a pc. There's about a three second delay between SendMsg.send() and SendMsg.sendDone(). On every subsequent run through, no packets are transmitted, and there is no delay between SendMsg.send() and SendMsg.sendDone90, although SendMsg.sendDone() seems to be reporting a success anyway. Any ideas? Radio settings are below. Thanks, -Matt Garber void RadioLo() { call XE1205LPL.SetListeningMode(XE1205_LPL_STATES-1); call XE1205LPL.SetTransmitMode(XE1205_LPL_STATES-1); } void RadioHi() { call XE1205LPL.SetListeningMode(XE1205_LPL_STATES-0); call XE1205LPL.SetTransmitMode(XE1205_LPL_STATES-0); } task void SetRF() { call XE1205Control.SetBitrate (9000); call XE1205Control.SetRFPower(3);//15 dBm Tx power } and then a bunch of situational logic for switching between them ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] questions on T-mote processing
Dear All, I am zay, graduate student in CSE Lehigh. I am now working on Tinyos and T-mote, but meet with some problems. I wonder whether any of you could provide me some help. I have installed the progam to the T-mote, but some errors occur when I want to issue the java listen command. My operation process is as follows. 1) export JDKROOT=/cygdrive/c/j2sdk1.4.2_12 2) export PATH=$JDKROOT/bin:$PATH The above two is to set the path for the java.exe command. 3) cd /cygdrive/c/cygwin/opt/tinyos-1.x/tools/java 4) cd net/tinyos 5) export [EMAIL PROTECTED]:tmote 6) java net.tinyos.tools.listen Then it indicates errors as Exception in thread main java.lang.NoCalssDefFoundError: net/tinyos/tools/listen. I wonder whether any of you have met with the same problem before, and do you know any reasons and solutions to this problem? Your advice would be appreciated. Thanks. Best regards, Zay ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] I cannot put the micaz mote into the deep sleep by using HPLPowerManagementM
Hi all, I have searched the mail archive for info about power management. I tried to use the HPLPowerManagementM module to enable the sleep mode. I also followed the example of CountRadio to turn the radio on and off. I am able to turn the radio off and get the current down to 1.6mA in 3V when transfer nothing. However, I could not make the cpu into sleep mode even I enable HPLPowerManagementM in my code. I could not get low current such as uA level that shown in the datasheet. I wonder that if anyone successfully make cpu into deep sleep mode (uA in 3V) by using HPLPowerManagementM? Gary P - Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool.___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Tmote, Boomerang and ext Flash
Hello, In an effort to test the external Flash on the Tmote I wrote an application that samples light and temperature and both store the data in a buffer and at the same time sends the data to TOS Base. When the buffer is full the data 256bits is committed to the ext Flash, red and send to TOS Base as well, before the whole process repeats with a counter moving the address space of the flash by 256bits. The problem is that it is very unstable in that it has not written past a 7th page on the flash and at the same time is inconsistent to where the write process stops functioning, sometimes it all ready errors on the second page. The code is attached and any suggestions to what might cause the errors are appreciated. Thanks Mikael /* Test Flash Packet structure** */ #ifndef TESTFLASHMSG_H; #define TESTFLASHMSG_H; enum { SP_ADCFLASH_TYPE = 4, }; typedef struct { nx_uint8_t src; nx_uint16_t local_count_num; nx_uint16_t count_num; nx_uint16_t adc_read_light; nx_uint16_t adc_read_temp; }TestADCMsg_t; typedef struct { nx_uint8_t src; nx_uint16_t count_num; nx_uint8_t r_count; nx_uint16_t memoryRead[12]; }TestFlashMsg_t; #endif // First Test of FlashMemory May 29-2007 // // Configuration based on RandRWC and // http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2006-March/015260.html // configuration TestFlashC {} implementation { components TestFlashM as MyApp, Main, SPC, LedsC, HumidityC, DemoSensorC, BlockStorageC, new TimerMilliC() as T1, new TimerMilliC() as T2; enum { BLOCKSTORAGE_MYAPP = unique(Blockstorage), }; Main.StdControl - MyApp; Main.StdControl - DemoSensorC; MyApp.ADC_light - DemoSensorC; MyApp.ADC_temperature - HumidityC.Temperature; MyApp.TemperatureError - HumidityC.TemperatureError; MyApp.HumidityControl - HumidityC; MyApp.SPSend - SPC.SPSend[SP_ADCFLASH_TYPE]; MyApp.Mount - BlockStorageC.Mount[BLOCKSTORAGE_MYAPP]; MyApp.BlockRead - BlockStorageC.BlockRead[BLOCKSTORAGE_MYAPP]; MyApp.BlockWrite - BlockStorageC.BlockWrite[BLOCKSTORAGE_MYAPP]; MyApp.TimerADC - T1; //TimerMilliC; MyApp.TimerFlash - T2; //TimerMilliC; MyApp.Leds - LedsC; } // Author Mikael Ifversen // Inspired by RandRW ongoing June 18-2007 #include TestFlashMsg.h module TestFlashM { provides interface StdControl; uses { interface Mount; interface BlockRead; interface BlockWrite; interface SPSend; interface Leds; interface Timer2TMilli as TimerADC; interface Timer2TMilli as TimerFlash; interface ADC as ADC_temperature; interface ADC as ADC_light; interface SplitControl as HumidityControl; interface ADCError as TemperatureError; } } implementation { enum{ OFFSET = 2, READSHIFT = 12, }; uint8_t length, i, local_count, packet_count, read_count, test; TOS_Msg m_data; sp_message_t m_spmsg; bool flash, adc; uint16_t readBuffer[128]; uint16_t writeBuffer2[128]; uint16_t l_adc, count, t_adc; task void sendADCData(); task void commitWriting() { if(read_count == 0) call BlockWrite.write(0x0, writeBuffer2, 256); else call BlockWrite.write(256 * read_count, writeBuffer2, 256); } task void readAddressCounter() { if(read_count == 0) call BlockRead.read(0x0, readBuffer, 256); else call BlockRead.read(256 * read_count, readBuffer, 256); } task void fillWriteBuffer2() { test = local_count; if(test == 0) { i = test; atomic writeBuffer2[i] = count; atomic writeBuffer2[i+1] = l_adc; atomic writeBuffer2[i+2] = t_adc; post sendADCData(); } if(test 0 test 42) { i = test + OFFSET * test; atomic writeBuffer2[i] = count; atomic writeBuffer2[i+1] = l_adc; atomic writeBuffer2[i+2] = t_adc; post sendADCData(); } if(test 40) { adc = FALSE; post commitWriting(); } } /* *** Packet structure and send function to be created as a read from the flash memory *** */ task void sendFlashData() { TestFlashMsg_t* struct_ptr = (TestFlashMsg_t*) m_data.data;
[Tinyos-help] [tinyOS-1.x]RadioSuspendC
Hey all,Can use this configuration with MicaZ motes??I'm using tinyOS-1.x. and I'd like to suspend the Radio while I'm sampling data from ADC interface. In some applications that I found they use itwith mica2 motes... thanks in advance..-antonio _ Make every IM count. Download Windows Live Messenger and join the i’m Initiative now. It’s free. http://im.live.com/messenger/im/home/?source=TAGWL_June07___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] PrintBigMsgs.java
Hey all,can u e-mail me this file please?-antonio _ Hotmail to go? Get your Hotmail, news, sports and much more! Check out the New MSN Mobile! http://mobile.msn.com___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Fwd: [Tinyos-help] UART
-- Forwarded message -- From: mai naaom [EMAIL PROTECTED] Date: Jun 18, 2007 11:22 PM Subject: Re: [Tinyos-help] UART To: [EMAIL PROTECTED] [EMAIL PROTECTED] are there any tuturials i can start from first that explaining this interfaces On 6/18/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: hi friend, please install tinyos2.x then start study about UART interfaces provided by the mica and telosb motes. bye, moorthy.T i wanna ask about the tuturials regarding the issue of using the UART if someone tell me from where i can start thanks in advance regards, mai naaom ___ 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] UART
am using meca family not telos do u know how i can start On 6/18/07, mai naaom [EMAIL PROTECTED] wrote: -- Forwarded message -- From: mai naaom [EMAIL PROTECTED] Date: Jun 18, 2007 11:22 PM Subject: Re: [Tinyos-help] UART To: [EMAIL PROTECTED] [EMAIL PROTECTED] are there any tuturials i can start from first that explaining this interfaces On 6/18/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: hi friend, please install tinyos2.x then start study about UART interfaces provided by the mica and telosb motes. bye, moorthy.T i wanna ask about the tuturials regarding the issue of using the UART if someone tell me from where i can start thanks in advance regards, mai naaom ___ 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: Re: [Tinyos-help] Questions about using Deluge T2
Hi, Now I can correctly install $TOSROOT/tools/tinyos/misc. There should be some problem in the cygwin part of tos-locate-jre file. I forced JAVAC_DIR=/cygdrive/c/Program Files/Java/jdk1.5.0_08/bin then it worked. Then, my remaining troubles are: 1. When running burn script, there is a problem about uploading bootloader: Will adding BOOTLOADER ?= $(TOSDIR)/lib/TOSBoot/build/micaz/main.srec into micaz.target a solution? installing micaz bootloader using mib510 uisp -dprog=mib510 -dserial=/dev/ttyS0 --wr_fuse_h=0xd9 -dpart=ATmega128 --wr_fu se_e=ff --upload if= Firmware Version: 2.1 Atmel AVR ATmega128 is found. Error: No such file or directory - make: *** [program_bl] Error 1 2. I still cannot compile GoldenImage. All things I did are installing $TOSROOT/tools/tinyos/misc, compiling TOSBoot, running burn script and getting error as stated above. I have checkout the latest cvs tree (BTW, when I did CVS, there are lots of it is in the way messages. Will this be a problem?). It seems that the compiler didn't use the bnp.extra file. 3. What's the relationship between GoldenImage and TOSBoot (bootloader)? Should we need to first upload GoldenImage before we can ping the mote? Thanks a lot Yu-En On 6/18/07, Razvan Musaloiu-E. [EMAIL PROTECTED] wrote: Hi! On Mon, 18 Jun 2007, Yu-En Tsai wrote: On 6/18/07, Razvan Musaloiu-E. [EMAIL PROTECTED] wrote: Hi! On Mon, 18 Jun 2007, Yu-En Tsai wrote: After this checkout did you update the TOSDIR variable to point the checkout? The bnp.extra is using the TOSDIR to build the paths the Deluge T2 needs. I didn't change TOSDIR. It's /opt/tinyos-2.x/tos. But the cvs checkout was done in /opt/tinyos- 2.x right? :-) Yes, that's what I did. The configure script is building the Makefile from the $TOSROOT/tools/tinyos/misc. I'm not sure why the detection of the JDK is failing on your system. Can you run please run: $TOSROOT/tools/tinyos/misc/tos-locate-jre --javac From what I can see this is the way the configure script tries to locate the JDK. I did run that. The weird thing is nothing happens, no error, no output. It should output the path to where the javac is. Do you have the path to javac in your PATH? I installed the Sun's JDK in my home ($HOME/local/jdk1.5.0_10) and I added that path to my PATH. After that the tos-locate-jre properly indicate the $HOME/jdk1.5.0_10/bin for javac. -- Razvan ME 3. make and make install neither work in $TOSROOT/tools/tinyos/misc. Can you point me how to install the tools/tinyos/misc? Most of the scripts from there can be installed by just copying them somewhere in your path. If you don't put any --prefix=... when you run the configure script then the path is /usr/local/bin. -- Razvan ME ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] start up time
hi all, does anyone know the start up time of the cc2420 radiochip ? I mean moving from transmit to receive mode or viceversa? How many useconds? ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: Re: [Tinyos-help] Questions about using Deluge T2
Hi! On Mon, 18 Jun 2007, Yu-En Tsai wrote: Hi, Now I can correctly install $TOSROOT/tools/tinyos/misc. There should be some problem in the cygwin part of tos-locate-jre file. I forced JAVAC_DIR=/cygdrive/c/Program Files/Java/jdk1.5.0_08/bin then it worked. Then, my remaining troubles are: 1. When running burn script, there is a problem about uploading bootloader: Will adding BOOTLOADER ?= $(TOSDIR)/lib/TOSBoot/build/micaz/main.srec into micaz.target a solution? The bnp.extra from $(TOSDIR)/support/make should take of this. installing micaz bootloader using mib510 uisp -dprog=mib510 -dserial=/dev/ttyS0 --wr_fuse_h=0xd9 -dpart=ATmega128 --wr_fuse_e=ff --upload if= Firmware Version: 2.1 Atmel AVR ATmega128 is found. Error: No such file or directory - make: *** [program_bl] Error 1 Can you please check if you also have the latest version of $TOSROOT/support/make/Makedefaults? If the bnp is missing from the GOALS then the bnp.extra will not be executed so the BOOTLOADER will not be initialized. 2. I still cannot compile GoldenImage. All things I did are installing $TOSROOT/tools/tinyos/misc, compiling TOSBoot, running burn script and getting error as stated above. I have checkout the latest cvs tree (BTW, when I did CVS, there are lots of it is in the way messages. Will this be a problem?). It seems that the compiler didn't use the bnp.extra file. The file for which the CVS gives it is in the way messages will not be updated. Can you do a fresh checkout? :-) 3. What's the relationship between GoldenImage and TOSBoot (bootloader)? Should we need to first upload GoldenImage before we can ping the mote? TOSBoot is a small piece of software that copies a program from the external flash to the MCU's program memory and after that starts running the new program. The TINYOS_NP=BNP from a Makefile triggers the upload of the TOSBoot along with the user program. You should be able to ping all the applications from the apps/tests/deluge because all of them have serial communication enabled (-DDELUGE_BASESTATION). Let us know how it goes! Razvan ME On 6/18/07, Razvan Musaloiu-E. [EMAIL PROTECTED] wrote: Hi! On Mon, 18 Jun 2007, Yu-En Tsai wrote: On 6/18/07, Razvan Musaloiu-E. [EMAIL PROTECTED] wrote: Hi! On Mon, 18 Jun 2007, Yu-En Tsai wrote: After this checkout did you update the TOSDIR variable to point the checkout? The bnp.extra is using the TOSDIR to build the paths the Deluge T2 needs. I didn't change TOSDIR. It's /opt/tinyos-2.x/tos. But the cvs checkout was done in /opt/tinyos- 2.x right? :-) Yes, that's what I did. The configure script is building the Makefile from the $TOSROOT/tools/tinyos/misc. I'm not sure why the detection of the JDK is failing on your system. Can you run please run: $TOSROOT/tools/tinyos/misc/tos-locate-jre --javac From what I can see this is the way the configure script tries to locate the JDK. I did run that. The weird thing is nothing happens, no error, no output. It should output the path to where the javac is. Do you have the path to javac in your PATH? I installed the Sun's JDK in my home ($HOME/local/jdk1.5.0_10) and I added that path to my PATH. After that the tos-locate-jre properly indicate the $HOME/jdk1.5.0_10/bin for javac. -- Razvan ME 3. make and make install neither work in $TOSROOT/tools/tinyos/misc. Can you point me how to install the tools/tinyos/misc? Most of the scripts from there can be installed by just copying them somewhere in your path. If you don't put any --prefix=... when you run the configure script then the path is /usr/local/bin. -- Razvan ME ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] RE: PacketLink/RadioBackoff unexpected behavior
Mayur - Not sure what the difference is, since PacketLink uses PacketAcknowledgements to setup and test for acks. The PacketLink layer simply retries messages when they don't get through, and is completely optional. If you're only interested in the PacketAcknowledgement layer, then not compiling in the PacketLink functionality is the way to go, saving you memory footprint. _ From: Mayur Maheshwari [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 9:38 AM To: David Moss Cc: tinyos-help@millennium.berkeley.edu Subject: Re: PacketLink/RadioBackoff unexpected behavior Hi David, Thanks once again for your inputs. I understand that there is SPI contention problem. However, I installed TestPacketLink app which does not use flash at all and still the acks are not received. Moreover, when I install the TestAcks app (which uses PacketAcknowledgement) the transmitter starts receiving acknowledgements. Also, what is the advantage of using PacketLink over PacketAcknowledgements except for the application level retries/delays in the latter? Any ideas? Secondly, it is fine till the transmitting mote with small backoff is able to get its packets first to the receiver. This way the receiver should be able to send the acknowledgement first to the mote with small backoff so that it again send other packets early. Mayur, The problem with PacketLink is the fact that your acknowledgements are being dropped. The wasDelivered() command simply forwards to PacketAcknowledgements.wasAcked(). This could be caused by several things, but since you're probably using flash, that's probably the reason why. The SPI bus arbitration prevents the radio from handling acknowledgements correctly while the flash is in use. This is a known issue, and I have a fix going on my machine but don't have it ready for release. The fix involves forcing the CC2420 to hang onto the SPI bus while it is waiting for an acknowledgement. On your second issue, the backoffs should be in units of microseconds. Again, the CC2420 has to acquire the SPI bus before it can read a packet from the chip and this process, combined with actually reading bytes over SPI, could potentially last longer than the backoffs you have specified. In other words, the SPI bus will probably remain active and read both packets in simultaneously because there's not a big enough time delay between the two transmissions. Statically specifying your backoff period like you have should force mote A to get its packet through first, but you probably won't be able to detect which transmitter transmitted first unless you check both packets' source addresses. Hope that helps, -David _ From: Mayur Maheshwari [mailto: [EMAIL PROTECTED] Sent: Monday, June 11, 2007 4:29 AM To: David Moss; tinyos-help@millennium.berkeley.edu Subject: PacketLink/RadioBackoff unexpected behavior Hi David, It was nice of you that you helped me with the information on blackbook. However there seems to be problem galore ;) 1. PacketLink I tried using the PacketLink interface in one of my apps and it fails to receive the acks. Previously, I was using the PacketAcknowledgements interface and it was running absolutely fine. However, it seems that the wasDelivered(msg) event in PacketLink returns FALSE all the time. I tried testing the app TestPacketLink in \tinyos-2.x\apps\tests\cc2420\TestPacketLink and the acks were never received and the Transmitter toggled led0 every 2 secs. Again, I tested the TestAcks in \tinyos- 2.x\apps\tests\cc2420\TestAcks which uses the interface PacketAcknowledgements and this does gives positive results. 2. RadioBackoff I tested radiobackoff by having events in an app installed on two motes(A and B). I initialised the Initial Backoff times as 11 and 300 for both the motes resp. Now, I installed another app on another mote C which broadcasts and when A and B receive this broadcast they unicast their messages to C. It was expected that the message from mote B should be delayed by ~ 300 ms but I noted both the messages getting into C simultaneously. To be more clear on this aspect I recorded the events in a video and played at slower speeds but to no avail. The Leds on the mote C blink in 2~3 ms delay and I could not determine which packet went first. Would you be able to share some code in this regard. Thank you once again for all the help. Mayur -- Mayur Maheshwari( mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]) Karmanye Vadhikaraste Ma Phaleshu Kadachana, Ma Karma Phala Hetur Bhurmatey Sangostva Akarmani -- Mayur Maheshwari([EMAIL PROTECTED]) Karmanye Vadhikaraste Ma Phaleshu Kadachana, Ma Karma Phala Hetur Bhurmatey Sangostva Akarmani ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] start up time
Restating your question, you would like to know two parameters: the startup time of the radio (off-on), and the time it takes to switch back and forth between rx and tx. The startup time is approximately 3 milliseconds. The tx-rx and rx-tx switching takes approximately 140 us in either direction. If you can see it, the plot below shows the radio turning on and immediately off again. The ~20 mA spike is when the radio actually reaches Rx mode, and then turns back off. The spike at the beginning is the oscillator powering up. -David _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of roberto pagliari Sent: Monday, June 18, 2007 3:27 PM To: tinyos-help@Millennium.Berkeley.EDU Subject: [Tinyos-help] start up time hi all, does anyone know the start up time of the cc2420 radiochip ? I mean moving from transmit to receive mode or viceversa? How many useconds? image002.jpg___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] TOSSIM: radio model
Hi, Looks like the lossy model with TOSSIM does not work with CC2420Radio. Is this right? Thanks. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Philip Levis Sent: Monday, June 18, 2007 10:46 AM To: Anu Singh Cc: tinyos-help@Millennium.Berkeley.EDU Subject: Re: [Tinyos-help] TOSSIM: radio model On Jun 17, 2007, at 11:14 AM, Anu Singh wrote: Hi, I am using tinyos-2.0 and using TOSSIM for simulation. Are there any parameteres that can be used to control the message loss rate (due to lossy links and collisions) during simulation. I want to reduce the loss rate. I have set the link gains to 0.0 (highest gain) but that does not help in decreasing the messgae loss rate. Lossy links, yes. Collisions, no. Phil ___ 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] CC2420 lossy module in TOSSIM
On 6/18/07, Alexander Becher [EMAIL PROTECTED] wrote: * Yang Peng: Does anyone use run -rf=yourlossyfile.nss nodeNUM ? It seems like my lossy.nss file does not work, seems like it is not read You also have to specify -r=lossy. Regards, Alexander ___ 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] CC2420 lossy module in TOSSIM
could you give more instructions on how to use it in cc2420? we tried, and it looks like cc2420 tossim does not read it at all? Alexander Becher wrote: * Yang Peng: Does anyone use run -rf=yourlossyfile.nss nodeNUM ? It seems like my lossy.nss file does not work, seems like it is not read You also have to specify -r=lossy. Regards, Alexander ___ 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] tmote delta app w/ interrupt
Hi All, I'm running the delta application in low power mode. I'd like to use the pushbutton (userint) to wake up and transmit a packet. What would I need to do to get the mote to wake up and send? I'm under the impression I need to wait until the module wakes up from low power mode for software to read the switch, maybe? Thanks in advance, Bruce ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] CC2420 lossy module in TOSSIM
Hi Alexander, Can you please send detailed instructions of using lossy model with CC2420 in TOSSIM? We digged the source code and it seems like there is no entry to read a nss file. Are there any amendaments which I do not know? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alexander Becher Sent: Monday, June 18, 2007 3:45 AM To: tinyos-help@Millennium.Berkeley.EDU Subject: Re: [Tinyos-help] CC2420 lossy module in TOSSIM * Yang Peng: Does anyone use run -rf=yourlossyfile.nss nodeNUM ? It seems like my lossy.nss file does not work, seems like it is not read You also have to specify -r=lossy. Regards, Alexander ___ 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] Problems with Moteview 1.4 and MEP-SYS of CrossbowInc.
Hello Giri, more thank for your reply. Best regards, Juan Antonio. 2007/6/18, Giri Baleri [EMAIL PROTECTED]: Hello Juan, The MEP nodes in the MEP-SYS are programmed with XMesh 1.2 firmware and the low power version of this app doesn't support the commands (eg. change data rates). You need to reprogram the MEP nodes with the newer MEP application firmware available in MoteWorks to change the data rate etc. Regards, Giri Baleri Crossbow Technology, Inc -- *From:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] *On Behalf Of *Juan Antonio López Riquelme *Sent:* Monday, June 18, 2007 11:33 AM *To:* tinyos-help *Subject:* [Tinyos-help] Problems with Moteview 1.4 and MEP-SYS of CrossbowInc. Hi, I am using MEP-SYS and Moteview 1.4c from Crossbow Inc ( http://www.xbow.com/Products/productdetails.aspx?sid=245). I tried to change the LEDs status of only MEP410 nodes and the sample rate in all nodes (MEP410 and MEP510) using the option command in tab control. After this, I don't see any changes in the leds and data change with the same sample rate that there was before changing in the option data of tab control. Can anyone give any advice to solve this problem? PD. I received all nodes pre-programmed. thanks in advance greetings Juan Antonio. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] TOSSIM Tutorial Questions
On Jun 16, 2007, at 7:33 PM, Tal Rusak wrote: I have read the TOSSIM tutorial at http://www.tinyos.net/tinyos-2.x/doc/html/tutorial/lesson11.html As I followed the tutorial, I encountered the following issues when using TinyOS 2.0.1: 1) For some reason, the result of the command dir(t) appears to be quoted incorrectly at the end of the Running TOSSIM with Python section. When I run this command, I get a command ticksPerSecond in addition to the ones listed in the tutorial. I think that this command was added after the first version of the tutorial was written. I'll update the tutorial shortly. 2) The setThreshold command, cited at the start of the tutorial section Configuring a Network, does not appear to exist in this release. Also, it is not listed in the dir(r) response cited above or in the one that I run myself. How, then do I complete the following step of the tutorial? If you set node's clear channel assessment to be at -110dBm, then nodes will never transmit, as noise and interference never drop this low. I believe this inconsistency is due to the fact that the command was removed after the tutorial was first written. I removed it because some radio chips let you set the sensitivity, so its presence would raise issues when there are conflicts between was the script and the TinyOS code specify. 3) The tutorial cites the first ten lines of the meyer-heavy.txt noise trace. However, these are not the first ten lines of the actual file in the distribution that I downloaded (from the Toilers). The first ten lines of the file I have are: -39 -98 -98 -98 -99 -98 -94 -98 -98 -98 This appears to be the same as the current CVS version of the file. If this seems incorrect, where can I find the full, correct meyer-heavy.txt noise trace? Those are the correct values. The tutorial ones are incorrect. 4) The tutorial refers to the file packets.py. This file contains the following line of code: print Delivering + msg.__str__() + to 0 at + str(t.time() + 3); This line does not run correctly for me. This is the error message: Traceback (most recent call last): File packets.py, line 46, in ? print Delivering , msg, to 0 at , str(t.time() + 3); TypeError: 'str' object is not callable However, when I change it as follows, then the code does run: print Delivering + msg.__str__() + to 0 at + (t.time() + 3); Line 46 of the latest CVS version (/tinyos-2.x/tos/lib/tossim/examples/packets.py) still seems to have this problem. What version of Python are you using? Works for me. 5) The Configuring a Network section of the tutorial has the following statement near the end: TOSSIM has two sample configuration files generated from the tool in tos/lib/tossim/topologies. The first is grid.txt . . . The second file is scatter.txt Again, this looks like the tutorial became out of sync with its underlying code base. There is no scatter.txt, and there are several grids. However, I cannot find these files in the cited directory. Phil ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] tinyOS-1.x_ADCControl_Interface
Hey All,According to my findings in the tinyos-1.x/tos/interfaces directory, and after reading the ADCControl interface I have some doubts that I expect you can help me to make me clear.I need to sample a microphone with a Sampling rate over 64Kbps, because I need to playback the audio samples, and according to the Nyquist Theorem, if I want to recover the audio transmitted I'll need to sample it at least twice of the human voice frequency.As I read from ADCCconrtol interface and ADC.h, if I use this interface and setting the ADCControl.setSamplingRate(5), which equals to T=120uS I achieve a sampling rate of Sr = (1/T)*Bits per sample = 8333.33Hz*8bits/s = 66.7Kbits/s. Acutally the ADC is 10 bits length but I drop the 2 LSB, and I get 8 bits length. I'm the MicC and I'd like to use the directly the hardware to access the Microphone, but I'm facing some problems... 1 - I can still using the MicC, but my problem is, Where to call ADCControl.setSamplingRate()?...2- am I correct with my findings?.3- someone told me that is better to use directly Harddware componet of the ADC... can I have some help from you about using the hardware?thanks in advance-antonio _ With Windows Live Hotmail, you can personalize your inbox with your favorite color. www.windowslive-hotmail.com/learnmore/personalize.html?locale=en-usocid=TXT_TAGLM_HMWL_reten_addcolor_0607___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help