[Tinyos-help] cc2420 LPL broadcasting

2008-08-28 Thread Flavio Pompermaier
cc2420 broadcast transmission has a periodic waveform like this (leaving out non-periodic phases such as radio initialization or DELAY_AFTER_RECEIVE listening): 2 34 5 | | || | 1 | | /||\ | 1 | | / || \| |\|/ || | | || | |

Re: [Tinyos-help] cc2420 LPL broadcasting

2008-08-28 Thread Flavio Pompermaier
@millennium.berkeley.edu Data: Giovedì 28 agosto 2008, 16:44 There is a state diagram on page 45 of cc2420 datasheet which might be helpful. After the transmission is complete, it goes into a state where the oscillator is calibrated again. On Thu, Aug 28, 2008 at 8:13 PM, Flavio Pompermaier [EMAIL

[Tinyos-help] LPL broadcasting

2008-08-21 Thread Flavio Pompermaier
Hi to all, I've a question about the broadcasting of a message when using LPL. From what I see from the oscilloscope is that the packet is continuously repeated for all the receiver's LPL interval (plus some time). That's fine. However, I do not understand why after a transmission there's always

[Tinyos-help] Mail pruned...(LPL broadcasting)

2008-08-21 Thread Flavio Pompermaier
I had some trouble sending a message...it gets truncated on the mailing list server..I don't know why.. (http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2008-August/035695.html) My mail was the following.. (for the third time...:( ) Hi to all, I've a question about the broadcasting of a

Re: [Tinyos-help] cc2420 timing and TOSSIM (little) bugs?

2008-08-19 Thread Flavio Pompermaier
I apologize myself for errors I wrote in the previous email..I've used wrong jiffy duration in my calculations... Here it is the previous question but with correct values: When I have to send a packet of length X, this is how the cc2420 should behave (in the current svn version of TinyOS 2.x):

[Tinyos-help] cc2420 timing and TOSSIM (little) bugs?

2008-08-18 Thread Flavio Pompermaier
Hi to all, I would like to ask if anybody is able to confirm my understanding about the cc2420 steps on transmission and its power consumption. Moreover, after this first question I think to have found a bug in the TOSSIM simulator. When I have to send a packet of length x, this is how the

[Tinyos-help] cc2420 real speed

2008-08-11 Thread Flavio Pompermaier
Hi to all, I have a doubt about transmission/reception speed of the cc2420 transceiver. Theoretically, its data rate is 250 kbps, that corresponds to a bit-time of 1/25=4us i.e., to transmit a byte, just 32 us (0.032 ms) are needed. Is this speed real? What should I consider as the real rate

[Tinyos-help] Converting temperature ADC readings to celsius degree

2008-07-24 Thread Flavio Pompermaier
Hi to all, I'm trying to guess how to get temperature in Celsius degrees from Telosb Mote (using SensirionSht11C). Looking around I found three different methods to calculate this value and I don't know which one is the best: 1) temp= -40 + 0.01 * data; // from TinyOS (said by

Re: [Tinyos-help] Voltage measurament accuracy

2008-05-01 Thread Flavio Pompermaier
: Re: [Tinyos-help] Voltage measurament accuracyA: "Flavio Pompermaier" [EMAIL PROTECTED]Cc: "tinyos-help@millennium.berkeley.edu" tinyos-help@millennium.berkeley.eduData: Giovedì 1 maggio 2008, 01:06I think the user guides for the various Motes have some informationabout

[Tinyos-help] Voltage measurament accuracy

2008-04-30 Thread Flavio Pompermaier
Hi to all,is there anyone that knows the accuracy of batteries voltage measurement?Is it in the order of millivolts or microvolts? Or what?Best regards, Flavio Tante idee per la salvaguardia del pianeta su Yahoo! for good. ___ Tinyos-help mailing

Re: [Tinyos-help] Voltage measurament accuracy

2008-04-30 Thread Flavio Pompermaier
volts for the micas or 3/4096 volts for the tmotes. I think some of the Battery components convert the value to milli-volts, but there's some noise involved so the actual accuracy is likely ~10 mV. MS Flavio Pompermaier wrote: Hi to all, is there anyone that knows the accuracy of batteries

[Tinyos-help] CollectionDebugger: is anyone interested?

2008-04-16 Thread Flavio Pompermaier
Hi, I'm working on Collection and I'm using heavily CollectionDebug interface...however,using MsgReader and the stdOut to read those messages is quite unpractical... So I recently developed a useful java GUI (starting from Oscilloscope code) that takes as input both CollectionMessages and data

[Tinyos-help] Basestation: why atomic sections

2008-04-12 Thread Flavio Pompermaier
Hi to all, I've a question regards the Basestation code. In BasestationP.nc componentvariables are modified only from tasks or from sync events, so why there's the need of atomic sections?? Atomic sections are needed only whene there's something async..or I'm wrong? Best regards, Flavio

[Tinyos-help] Radio and Flash concurrency on SPI

2008-04-12 Thread Flavio Pompermaier
Hi to all, I've a question about the shared SPI bus between Radio and Flash modules on Tmote Sky: isthere any problem if a node is writing to flash while another mote issending a packet to it? Could the radio loss the packet if I do notuse the Packet Link layer of TinyOs and setting retries

[Tinyos-help] Broadcast ACKs

2008-04-12 Thread Flavio Pompermaier
Hi to all, I don't understand clearly if using Packet Link layer I obtain broadcast messages acknowlegments! Looking at the mailing list I see different answers..some says that broacast messages can be acknowledged if the application does not use LPL interface

Re: [Tinyos-help] Minimizing RAM consmption

2008-04-09 Thread Flavio Pompermaier
there’s publications on this topic, but I don’t know of any I’m afraid. Google is your friend :) Michiel From: Flavio Pompermaier [mailto:[EMAIL PROTECTED] Sent: woensdag 9 april 2008 0:02 To: Michiel Konstapel Subject: RE: [Tinyos-help] Minimizing RAM consmption I've

[Tinyos-help] SPI: Flash and Radio concurrency on Tmote sky

2008-04-09 Thread Flavio Pompermaier
Hi to all,I've a question about the shared SPI bus between Radio and Flash modules on Tmote Sky:is there any problem if a node is writing to flash while another mote is sending a packet to it? Could the radio loss the packet if I do not use the Packet Link layer of TinyOs and setting retries

Re: [Tinyos-help] Problems with ACKs in TinyOS 2.0.2

2008-04-08 Thread Flavio Pompermaier
I was also thinking that the CC2420_NO_ACKNOWLEDGMENTS flags was wrong, but I have another question about another flag: CC2420_HW_ACKNOWLEDGEMENTS What happens in this case? What is the difference with software acks? Inviato da Yahoo! Mail. La casella di posta intelligente.

[Tinyos-help] Minimizing RAM consmption

2008-04-08 Thread Flavio Pompermaier
Hi, I would like to know if there's any document reporting all possible enhancements focused in minimizing RAM consumption on Tmotes. And why components variables are stored in RAM whereas function local variable are stored in ROM?? Shouldn't be the viceversa? Some suggestions I found for RAM

[Tinyos-help] How to enable core dumps

2008-04-04 Thread Flavio Pompermaier
Hi, my application generates a segmentation fault but no core dump is generated. How can I enable them? I've specified -g as CFLAGS and I've also specified the command ulimit -c unlimited but it wasn't enough. Thanks Inviato da Yahoo! Mail. La casella di posta intelligente.

[Tinyos-help] MsgReader doesn't work correctly

2008-04-03 Thread Flavio Pompermaier
I forgot to post the solution to my own question. The problem was that the AM type was different from the Serial one. This last in fact was a pure number chosen at random (22). The solution has been to istantiate the two as the following: //before was new SerialAMSenderC(22), whereas AM_DATA

Re: Re: [Tinyos-help] Low power listening

2008-03-26 Thread Flavio Pompermaier
I'm using tinyos 2.0.1, but the problem is to know why should I listen for 100msecs every 2 seconds or stuff like that. How can I be sure that if a node send a message the other one is listening and will receive the message..? Is there any reference to that? Which sources are you using?

[Tinyos-help] Low power listening

2008-03-25 Thread Flavio Pompermaier
Hi, I'm working on LowPowerListening interface to manage Radio Power. I've read the tutorial about it but it does not explain how to tune that interface. I would like to ask if someone could advice me a link to get more detailed information about that interface and, in particular, how to define

[Tinyos-help] Component variable value corrupted without inlining a local function

2008-03-24 Thread Flavio Pompermaier
Hi to all, I have a VERY strange problem with a component variable. In a component scope of my application (immediately under the implementation keyword) I have defined a uint16_t variable epochs that is increased ad each firing of a periodic timer. It is used by the component to clean things

Re: [Tinyos-help] Component variable va lue corrupted without inlining a local function

2008-03-24 Thread Flavio Pompermaier
time I will try to spend more time debugging my application! However, I'm very thankful for your interest. Flavio Take a look at the generated app.c file to see if it's maybe being optimized out for you. You could try tagging the variable as volatile as well. MS Flavio Pompermaier wrote

[Tinyos-help] MsgReader doesn't work correctly

2008-03-21 Thread Flavio Pompermaier
Hy to all, I'm working with tinyos 2.0.1 and telosb (Tmote sky) motes. Till now, applications where MsgReader has been used have always worked fine. However, now I'm working on an application that before starting sends data stored into flash to the serial port, and if the node is a basestation

[Tinyos-help] Relationship between AMSend.sendDone and PacketLink.wasDelivered

2008-03-20 Thread Flavio Pompermaier
Hi to all, I would like to ask if somebody could tell me the relationship between the error_t result of the AMSend.sendDone and the PacketLink.wasDelivered methods..There could be a situation where AMSend.sendDone has SUCCESS but PacketLink.wasDelivered is not? Is it when the message has been

[Tinyos-help] task vs commands/events

2008-03-14 Thread Flavio Pompermaier
Hi to all, I would like to know why in tinyos we should always be very careful in maintaining tasks short,while nothing is said about commands/event lenght! From what I know they cannot be interrupted so,why could I forget about their lenght? Isn't it dangerous??

[Tinyos-help] Collection: multiple Receive

2008-02-18 Thread Flavio Pompermaier
Hi to all, I have a question about the collection interface. Collection assumes that only sources are interested in sending data, whereas root are interested in receiving data. However, it could be that in direct diffusion I would like to inform also application when messages for tree

[Tinyos-help] Collection questions

2008-02-16 Thread Flavio Pompermaier
Hi to all, I-ve some question about Collection in tinyOs, I hope someone can help me. 1) The StdControl interface should generate the collection tree (from what specified from the EasyCollection example). However, looking at the code of CollectionC I see that the StdControl interface only sets

Re: [Tinyos-help] Strange error about type definition

2008-02-14 Thread Flavio Pompermaier
So how could I store in my code a radio struct? Should I construct another one regular struct and retrieve data from the payload? Why it is so? On Feb 13, 2008 3:23 PM, Flavio Pompermaier [EMAIL PROTECTED] wrote: Hi to all, I have a very problem in defining a message types to send over

Re: [Tinyos-help] Strange error about type definition

2008-02-14 Thread Flavio Pompermaier
I fixed the problem changing struct to nx_struct in the declarations as you told me..Initially I didn't understand what you adviced me! Thanks.. -- Initial Header --- From : David Gay [EMAIL PROTECTED] To : Flavio Pompermaier [EMAIL PROTECTED] Cc : Help

[Tinyos-help] AMPacket interface

2008-02-13 Thread Flavio Pompermaier
Hi to all, I've a doubt regard the AMPacket interface: it is useful in order to set AM fields of the Packet, right? However there are 3 components that provide this interface: ActiveMessageC, AMSenderC e AMReceiverC. Which should I use? Are they equivalent? Or should I choose one or the other

[Tinyos-help] Component initialization

2008-02-13 Thread Flavio Pompermaier
Hi to all,I have a quick question: suppose I have a component that when initialized starts a timer. The main program is however another one, which needs that component in order to work. How do I need to initialize the first component? Should I need to declare it as implementing Init, StdControl,

[Tinyos-help] Strange error about type definition

2008-02-13 Thread Flavio Pompermaier
Hi to all, I have a very problem in defining a message types to send over the radio! I want to make they endianess-indipendent so I use the nx_ suffix with structures and basic types. However, when I compile my application I get errors like the following: 'DataMsg' defined as wrong kind of

Re: [Tinyos-help] LedsP.nc implementation doubts..

2007-12-05 Thread Flavio Pompermaier
Ok, thanks for the quick answer! Now I realized how it works! Bye! On Dec 5, 2007, at 7:49 AM, Flavio Pompermaier wrote: Hi to all, am I wrong or LedsP.nc implementation inverted the set and clr method?? For exmple, when I want to light up led x with the function Leds.ledxOn

[Tinyos-help] tiny-os2 tutorial - lesson 2 errors

2007-11-28 Thread Flavio Pompermaier
for tinyos-v2..all tutorials I found around seems to contemplate only version 1..am I wrong?? Thanks in advance, Flavio Pompermaier ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman