Re: [Tinyos-help] energy consumption
generally yes, have a look to your radiochip documentation for instance, CC2420: Current Consumption, receive mode 19.7 mA Current Consumption, transmit mode: 8.5 mA @ P = -25 dBm 9.9 mA @ P = -15 dBm 11 mA @ P = -10 dBm 14 mA @ P = !5 dBm 17.4 mA @ P = 0 dBm Davide On 30/giu/10, at 00:16, Omar Cheikhrouhou (yahoo) wrote: Hello, Does the reception of a message consume more energy than the send? Best regards ___ 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] continuous sampling of mic
Hi Omar, Use this library (works only for IRIS so far) http://szte-wsn.cvs.sourceforge.net/viewvc/szte-wsn/tinyos/tos/lib/Atm128FastAdc/ and this sample application to sample the mic at 9 KHz. http://szte-wsn.cvs.sourceforge.net/viewvc/szte-wsn/tinyos/apps/MicReadStreamTest/ Miklos On Tue, Jun 29, 2010 at 2:08 PM, Omar Bouzid o.m.bou...@newcastle.ac.uk wrote: Hi all, I would really appreciate if someone can reply and guide me with this problem. Is it possible to modify the soundlocalizer example explained in Tinyos programming book, chapter 13 so that it can sample the mic sensor continuously? In fact, I tried to do it by putting the Atm128AdcSingle.getData command inside a for loop and each time the event Atm128AdcSingle.dataReady is signalled, the data will be added to a buffer as shown in the code below. However, it does not work as I expected. It seems to be that, although I can see that the Atm128AdcSingle.getData command is executed several times depends on the buffer size, the event Atm128AdcSingle.dataReady is signalled only once (I don't know why?). Pleas correct me if what I did is wrong. void Cont_Sample() { for(i = 0; i BUFFER_SIZE; ++i) call Atm128AdcSingle.getData(call MicAdcChannel.getChannel(), ATM128_ADC_VREF_OFF, FALSE, ATM128_ADC_PRESCALE_32); printf(Here is a ith value: %d\n, i); printfflush(); } / async event void Atm128AdcSingle.dataReady(uint16_t data, bool precise) { Add_DataToBuffer(data); } void Add_DataToBuffer(uint16_t Mic_data){ MicRead[i] = Mic_data; if (i == BUFFER_SIZE) { printf(last iteration value: %x\n, i); printfflush(); post stopMicrophone(); } } BTW: I am using Tinyos-2.x, Micaz and mts300. I would be very grateful if someone can help. Thanks in advance, Omar ___ 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] how to pass argument to my app
Hello, Did anybody know how to pass parameter to my app with is run under tossim. Thanks in advance ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] BusyWait
I don't know if there are any actual guidelines for how long one can busy-wait, but I would avoid anything beyond the low two digits of micro-seconds. Waiting blocks Task execution which is necessary for the Timer and Radio (at minimum) code to work properly. TOS1 had a TimerJiffyAsync module that behaved (sorta) like the regular TimerM, but with a 32us resolution. MS ranal fernando wrote: Hi all, I was trying to use BusyWait interface. I got it working but it has a very stange behavior which I do not understand. I wanted the system to busywait for 5000 milliseconds so I includes Interface BusyWaitTMilli,uint32_t And wired as following App.BusyWait-BusyWaitCounterC; BusyWaitCounterC.Counter-CounterMilli32C; It is working when I call Call Busywait.wait(500); it is even working with values like 50,3000 But gets stuck when I try Call Busywait.wait(5000); Can anyone tell me why is this? Thanks in advance. Ranal fernando Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. Learn more. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1 ___ 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] How to obtain joule values?
Hello evryone, I am using micaz, an the voltageC component to compute the battery voltage, how can I obtain a joule value from the voltage??? The voltage value decrease when the battery lose energy so I suppose that it is possible to have a joule value. please help!!! ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Segmentation fault in TOSSIM
On Jun 29, 2010, at 7:25 AM, harsh...@cse.iitk.ac.in wrote: Hi, I have been trying to run a clustering protocol in tinyos2. I have written some code for some part of the protocol. But whenever I run the code on TOSSIM, it runs for a few events and then a Segmentation fault is flagged and simulation stops abruptly. I tried removing the noise model part(i.e. commenting out the following in python script): --code begins-- for i in range(0,numNodes): print Creating noise model for ,i; t.getNode(i).createNoiseModel() --code ends then the code runs and terminates smoothly but it is of not much use as none of the sent messages are received. I really need to simulate the protocol. Any suggestions would be greatly appreciated. I'd suggest running it in gdb to find out what's causing the segfault. Chances are you are not initializing the noise model correctly. Take a look through the archives: similar problems come up occasionally. Phil ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] communicate with MMA7456L accelerometer through I2C - Tinyos 2.x
Hi, I am a student of Computer Engineering at University of Sannio and works to a project where use a mote client IRIS (Atm1281v processor) with attached an MDA100CB and solder on prototype area a Freescale accelerometer MMA7456L. Now we can communicate with accelerometer through bus i2c . At this point I want know what interface need to use TinyOS 2.x embedded systems for gain data from accelerometer! If possibile your can attach a sample code that can make good on our case.. If you can help me I appreciate a lot! Best Regards. Mr. Vincenzo Gisondi ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help