[Tinyos-help] LPL with acknowledgment
Hi, I am using the LPL with the preproccessor variable: CFLAGS += -DLOW_POWER_LISTENING CFLAGS += -DLPL_DEF_LOCAL_WAKEUP=250 CFLAGS += -DLPL_DEF_REMOTE_WAKEUP=250 I want to uses the interface PacketAcknowledgements to confirm that a packet was delivered, but when I call the command: PacketAcknowledgements.wasAcked() inside the event Receive.received(), it always return FALSE. I made a test without the LPL, and I didn't have this problems, I always had received the acknowledgment. I think that the problems is that the software acknowledgment implemented on TinyOS 2.1.1 doesn't work with the LPL, is that right? Thanks. -- View this message in context: http://old.nabble.com/LPL-with-acknowledgment-tp31842975p31842975.html Sent from the TinyOS - Help mailing list archive at Nabble.com. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Test Application for SPI
-- Forwarded message -- From: João Gonçalves jonnyinthe...@gmail.com Date: 2011/6/14 Subject: Test Application for SPI To: tinyos-help@millennium.berkeley.edu Hi, I want to make an application to test if the SPI is working properly, the idea is sending some random bytes and watching them on the oscilloscope. I want to do this because Im trying to run the BlinkToRadio App in my platform that has msp430f5438. When i run it nothing happens and the code gets stuck waiting for the event AMSend.sendDone(); Is there any simple test app to test the spi already? I tried doing: SPIP.nc: module SPIP @safe() { uses { interface Boot; interface SpiByte; interface Leds; } } implementation { void uwait(uint16_t u) { uint16_t t0 = TA0R; while((TA0R - t0) = u); } event void Boot.booted() { uint8_t data = 0x22; while (1) { call Leds.led0Toggle(); call Leds.led1Off(); call Leds.led2On(); call SpiByte.write (data); uwait(1024*10); } } } SPIAppC.nc: configuration SPIAppC { } implementation { components SPIP; components MainC; SPIP.Boot - MainC; components LedsC; SPIP.Leds - LedsC.Leds; components new Msp430UsciSpiB0C() as SpiC; SPIP.SpiByte - SpiC; } This dind't work because the USCI registers are not being configured and still didn't find how to do it. Thanks in advance for any help. João ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] bitwise operation
Hi everyone, A quick question: are the bitwise operators in tinyOS the same with the c ones? e.g. for bitwise AND and ~for NOT. Thanks a lot. Regards, Peng ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] MTS400 application - micaz
hi all, we are trying to use the MTS400 application in a micaz mote. we installed the program let it talk to a telosb gateway using the TestSerial application we displayed the reading on the terminal. but the readings were incorrect. does anyone have any idea what might have we done wrong? thanks for any help. silva ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Distance Calculations with RSSI
Hello, I am currently trying to build a WSN using MicaZ motes and I need to know, to a fair degree of accuracy, how far apart one node is from another. I was reading up on how it is possible in some cases to use RSSI and LQI to achieve this. I tried taking measurements of average RSSI when the nodes were 1.5, 2 and 2.5 meters apart but the results were very erratic. While I did notice that the RSSI tended to be higher when the nodes were further away from each other, the results were not accurate enough to place the node within even 4 meters of its actual location. Is RSSI not an accurate enough way to get the precision I need? If not is there any other method I can use to get the distance between nodes? I was also thinking of maybe using the system time of the nodes to time how long a signal took to travel between them but I figured that with the time to send and the turnaround time of the message in the other node this would be a pretty inaccurate way to do it. Is that even worth trying? Thanks, Matthew Jacques ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Distance Calculations with RSSI
Hi Matthew, RSSI is a measure af the signal strength with respect to a received message, so it is highly subject to disturb coming from other objects/people. This implies a quite unpredictable fluctuation which can be faced only updating regularly (2/3 times per second) the RSSI samples. You will need N nodes called anchors with known positions, which exchange messages in order to estimate the relationship between RSSI and distance in a given time instant. Then you will use this relationship to convert the RSSI sampled by the moving node (target node) to estimate the distance between itself and a given number of anchors. Finally, triangulation or other geometric methods can help you to estimate the target's coordinates. You should search in literature for RSSI WSN localization. Hope this helps, Marco On 14 June 2011 21:18, Matthew Jacques mjac...@pride.hofstra.edu wrote: Hello, I am currently trying to build a WSN using MicaZ motes and I need to know, to a fair degree of accuracy, how far apart one node is from another. I was reading up on how it is possible in some cases to use RSSI and LQI to achieve this. I tried taking measurements of average RSSI when the nodes were 1.5, 2 and 2.5 meters apart but the results were very erratic. While I did notice that the RSSI tended to be higher when the nodes were further away from each other, the results were not accurate enough to place the node within even 4 meters of its actual location. Is RSSI not an accurate enough way to get the precision I need? If not is there any other method I can use to get the distance between nodes? I was also thinking of maybe using the system time of the nodes to time how long a signal took to travel between them but I figured that with the time to send and the turnaround time of the message in the other node this would be a pretty inaccurate way to do it. Is that even worth trying? Thanks, Matthew Jacques ___ 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] [Tinyos-devel] Watchdog
There is a prototype implementation for wdt for the msp430 that is in the msp430 core integration branch. I've tar balled it up and put it at http://tinyprod.net/cire/henrik.tgz 2011/6/14 Henrik Mäkitaavola henrik.makitaav...@gmail.com Hi, Are there any guidelines of how to implement watchdog support for a platform? For example is there any HIL layer for a Watchdog? I have tried to search for some without any success and my guess is that there doesn't exist any. /Henrik ___ Tinyos-devel mailing list tinyos-de...@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-devel -- Eric B. Decker Senior (over 50 :-) Researcher ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] bitwise operation
Yes. It's plain old C. With confusing syntactic additions. MS Peng Du wrote: Hi everyone, A quick question: are the bitwise operators in tinyOS the same with the c ones? e.g. for bitwise AND and ~for NOT. Thanks a lot. Regards, Peng ___ 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] Distance Calculations with RSSI
search for rssi location and various other combinations. there has been a lot of work done on this, and none of it is very accurate. MS Matthew Jacques wrote: Hello, I am currently trying to build a WSN using MicaZ motes and I need to know, to a fair degree of accuracy, how far apart one node is from another. I was reading up on how it is possible in some cases to use RSSI and LQI to achieve this. I tried taking measurements of average RSSI when the nodes were 1.5, 2 and 2.5 meters apart but the results were very erratic. While I did notice that the RSSI tended to be higher when the nodes were further away from each other, the results were not accurate enough to place the node within even 4 meters of its actual location. Is RSSI not an accurate enough way to get the precision I need? If not is there any other method I can use to get the distance between nodes? I was also thinking of maybe using the system time of the nodes to time how long a signal took to travel between them but I figured that with the time to send and the turnaround time of the message in the other node this would be a pretty inaccurate way to do it. Is that even worth trying? Thanks, Matthew Jacques ___ 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] Unable to access registers on controller.
It would be a bit more helpful if you describe exactly what you are doing. what registers? how are you trying to access them? On Mon, Jun 13, 2011 at 10:10 PM, ~!Har$ha $anjeev !~ harsha@gmail.comwrote: Hello, I am using MSP430F1612 for one of my applications. I am not able to find a way to access the registers of MSP430F1612 using tinyos. I am trying to write a value into a register and then read that value. Could anyone kindly help me with this? -- Regards ~!Har$ha $anjeev!~ ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- Eric B. Decker Senior (over 50 :-) Researcher ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Adding precision to sensor data obtained
Thanks again. I am sensing all the three sensors available i.e. temperature , light and humidity. I use the following formulas , temperature = (float)(-39.6 + 0.01*(float)val); humidity = (float)(-2.0468 + 0.0367*(float)val + 0.0159*(float)(val*val)); but when I use MsgReader tool to read the data, I always get temperature as 29.0 or like that when I view it on PC and when I send to the database, it automatically converts it into int and gives value as 29. Other thing is at the start the first value is always zero for all the three sensors. I cannot understand how can I use these sensors to get values and add some precision to it... Regards, Mayank On Fri, Jun 10, 2011 at 7:00 PM, Michael Schippling sc...@santafe.edu wrote: Assuming that the readings you are getting are, as I suggested, the raw ADC values from 0-4095 you can convert them to a voltage by multiplying by the ADC's reference voltage -- nominally 3.3v. So a 0 value is equal to 0 volts and a full scale 4095 value is equal to 3.3v. The reading you get is some fraction in between those: (value / full-scale) * refVolts example, if your value happens to be 2000: (2000 / 4095) * 3.3 == 1.6117 volts I would take the last couple digits with a grain of salt because the system is usually pretty noisy, and I'm not really bright enough to figure out if the theoretical precision is 3 or 4 decimal points anyway. Now your sensor may need some calibration and scaling so the conversion you use will probably have a form like (Mx + B), where M is a scale factor and B is an offset, both of which you might derive from spec sheets or brute force measurements. What are you sensing anyway? MS Mayank Gupta wrote: Thanks for the help Michael. But again I am not really sure how to do that. Can you refer me to some tutorial or reading where I can see how to actually code it.. Sorry but not really getting it. Regards, Mayank On Fri, Jun 10, 2011 at 5:13 PM, Michael Schippling sc...@santafe.edu wrote: Pretty much all sensors readings on TOS devices are integer values directly from the ADC -- some few, like Voltage, may be may be mangled for range and level but are probably also ints. IIRC the telosb has a 12 bit converter so you should have 0-4095 as your values, which is a resolution of about .00025 per bit. You may convert that to floating point to about 4 decimal places if you like. MS Mayank Gupta wrote: Hi all, I am sending sensor readings from telosb mote to the pc and storing the data in mysql database. The problem I am facing is that I want data to be precise upto at least 2 decimal places but data in my database always comes out to be as integer. I have modified the mig generated file to push data into the database rather than show output on the screen. I hope someone can guide me in the right direction so that I can get more precise value in my database. Regards, Mayank ___ 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] will Timer.getNow() be affected by other actions in Timer
Hi everyone, I'm trying to get timestamp from a Timer, and if the Timer takes some actions such as Timer.stop(), Timer.startOneShot(), will this impact the timestamp obtained from the timer? For instance, if a timer is cancelled by Timer.stop, can I still obtain valid time from it by Timer.getNow()? Thanks in advance. -- -Xiaohui Liu ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] TinyOS install on Mac OS X 1.6
Hi David, I think the problem lies in mig, which I had the same problem with. Apple installed its Mach Interface Generator at /usr/bin which conflicts with TinyOS' Message Interface Generator. You have to replace Apple's with TinyOS'. On 10 June 2011 00:34, David Swords da...@davidswords.com wrote: Running into some difficulties with the install. I cannot find reference to it anywhere else. In the java component I get the follow errors from the make. cat: SerialPacket.java: No such file or directory i686-apple-darwin10-gcc-4.2.1: .: linker input file unused because linking not done mig: fatal: no name yet, line -1: no SubSystem declaration warning: option -java-classname=net.tinyos.message.SerialPacket after filename(s) ignored /usr/bin/mig: line 207: /var/folders/lm/lmF5C5ABHeCcERkrccClUU+++TI/-Tmp-//mig.bMdbqS/java.35935.c: No such file or directory i686-apple-darwin10-gcc-4.2.1: /var/folders/lm/lmF5C5ABHeCcERkrccClUU+++TI/-Tmp-//mig.bMdbqS/java.35935.c: No such file or directory mig: fatal: no name yet, line -1: no SubSystem declaration /usr/bin/mig: line 207: /var/folders/lm/lmF5C5ABHeCcERkrccClUU+++TI/-Tmp-//mig.bMdbqS/Serial.h.35935.c: No such file or directory i686-apple-darwin10-gcc-4.2.1: /var/folders/lm/lmF5C5ABHeCcERkrccClUU+++TI/-Tmp-//mig.bMdbqS/Serial.h.35935.c: No such file or directory mig: fatal: no name yet, line -1: no SubSystem declaration /usr/bin/mig: line 207: /var/folders/lm/lmF5C5ABHeCcERkrccClUU+++TI/-Tmp-//mig.bMdbqS/serial_packet.35935.c: No such file or directory i686-apple-darwin10-gcc-4.2.1: /var/folders/lm/lmF5C5ABHeCcERkrccClUU+++TI/-Tmp-//mig.bMdbqS/serial_packet.35935.c: No such file or directory mig: fatal: no name yet, line -1: no SubSystem declaration warning: option -I/Users/Neodymium/Documents/RUBICON/tinyos-2.x/tos/types after filename(s) ignored rmdir: /var/folders/lm/lmF5C5ABHeCcERkrccClUU+++TI/-Tmp-//mig.bMdbqS: No such file or directory javac SerialPacket.java javac: file not found: SerialPacket.java Usage: javac options source files use -help for a list of possible options make: *** [SerialPacket.class] Error 2 If anyone can cut through this fog, I would really appreciate it. Otherwise I will try and get a linux machine. -- - David Swords ___ 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] packet timestamp from ActiveMessageC.PacketTimeStamp correspond to same instant at sender and receiver?
Hi, For a given packet transmission, timestamps are obtained from ActiveMessageC.PacketTimeStamp at sender and receiver. Are these two timestamp actually taken at the same time as specified in tmp132, if propagation delay is negligible? Thanks for your clarification. -- -telosb -Xiaohui Liu ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Test Application for SPI
Hi, I want to make an application to test if the SPI is working properly, the idea is sending some random bytes and watching them on the oscilloscope. I want to do this because Im trying to run the BlinkToRadio App in my platform that has msp430f5438. When i run it nothing happens and the code gets stuck waiting for the event AMSend.sendDone(); Is there any simple test app to test the spi already? I tried doing: SPIP.nc: module SPIP @safe() { uses { interface Boot; interface SpiByte; interface Leds; } } implementation { void uwait(uint16_t u) { uint16_t t0 = TA0R; while((TA0R - t0) = u); } event void Boot.booted() { uint8_t data = 0x22; while (1) { call Leds.led0Toggle(); call Leds.led1Off(); call Leds.led2On(); call SpiByte.write (data); uwait(1024*10); } } } SPIAppC.nc: configuration SPIAppC { } implementation { components SPIP; components MainC; SPIP.Boot - MainC; components LedsC; SPIP.Leds - LedsC.Leds; components new Msp430UsciSpiB0C() as SpiC; SPIP.SpiByte - SpiC; } This dind't work because the USCI registers are not being configured and still didn't find how to do it. Thanks in advance for any help. João ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] for help
Hi, I am running a plugin on the eclipse .When I open the perspective: MeshIDE_Disware, the interface is auto closed. And the console gives the following error message: MOTECOM=serial at COM1:57600 java hardware_check It gives the following error message: serial@COM1:57600 died - exiting (java.io.IOException: Invalid port. No comm ports found!) Can anyone give me some helps on solving the problem? Thanks. DONG___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] TinyOS install on Mac OS X 1.6
On Tue, Jun 14, 2011 at 9:06 PM, Yee Wei Law yee.wei@gmail.com wrote: Hi David, I think the problem lies in mig, which I had the same problem with. Apple installed its Mach Interface Generator at /usr/bin which conflicts with TinyOS' Message Interface Generator. You have to replace Apple's with TinyOS'. A better approach would be to install TinyOS mig in a different directory and then adjust your path to find that mig first. On 10 June 2011 00:34, David Swords da...@davidswords.com wrote: Running into some difficulties with the install. I cannot find reference to it anywhere else. In the java component I get the follow errors from the make. cat: SerialPacket.java: No such file or directory i686-apple-darwin10-gcc-4.2.1: .: linker input file unused because linking not done mig: fatal: no name yet, line -1: no SubSystem declaration warning: option -java-classname=net.tinyos.message.SerialPacket after filename(s) ignored /usr/bin/mig: line 207: /var/folders/lm/lmF5C5ABHeCcERkrccClUU+++TI/-Tmp-//mig.bMdbqS/java.35935.c: No such file or directory i686-apple-darwin10-gcc-4.2.1: /var/folders/lm/lmF5C5ABHeCcERkrccClUU+++TI/-Tmp-//mig.bMdbqS/java.35935.c: No such file or directory mig: fatal: no name yet, line -1: no SubSystem declaration /usr/bin/mig: line 207: /var/folders/lm/lmF5C5ABHeCcERkrccClUU+++TI/-Tmp-//mig.bMdbqS/Serial.h.35935.c: No such file or directory i686-apple-darwin10-gcc-4.2.1: /var/folders/lm/lmF5C5ABHeCcERkrccClUU+++TI/-Tmp-//mig.bMdbqS/Serial.h.35935.c: No such file or directory mig: fatal: no name yet, line -1: no SubSystem declaration /usr/bin/mig: line 207: /var/folders/lm/lmF5C5ABHeCcERkrccClUU+++TI/-Tmp-//mig.bMdbqS/serial_packet.35935.c: No such file or directory i686-apple-darwin10-gcc-4.2.1: /var/folders/lm/lmF5C5ABHeCcERkrccClUU+++TI/-Tmp-//mig.bMdbqS/serial_packet.35935.c: No such file or directory mig: fatal: no name yet, line -1: no SubSystem declaration warning: option -I/Users/Neodymium/Documents/RUBICON/tinyos-2.x/tos/types after filename(s) ignored rmdir: /var/folders/lm/lmF5C5ABHeCcERkrccClUU+++TI/-Tmp-//mig.bMdbqS: No such file or directory javac SerialPacket.java javac: file not found: SerialPacket.java Usage: javac options source files use -help for a list of possible options make: *** [SerialPacket.class] Error 2 If anyone can cut through this fog, I would really appreciate it. Otherwise I will try and get a linux machine. -- - David Swords ___ 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 -- Eric B. Decker Senior (over 50 :-) Researcher ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] will Timer.getNow() be affected by other actions in Timer
I beleive so but you should eyeball the actual source code. Its been a while since I've been in the timer code so don't remember off the top of my head. On Tue, Jun 14, 2011 at 8:23 PM, Xiaohui Liu whu...@gmail.com wrote: Hi everyone, I'm trying to get timestamp from a Timer, and if the Timer takes some actions such as Timer.stop(), Timer.startOneShot(), will this impact the timestamp obtained from the timer? For instance, if a timer is cancelled by Timer.stop, can I still obtain valid time from it by Timer.getNow()? Thanks in advance. -- -Xiaohui Liu ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- Eric B. Decker Senior (over 50 :-) Researcher ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help