Re: [Tinyos-help] network_header_t type conflicting

2009-09-27 Thread Omprakash Gnawali
On Wed, Sep 23, 2009 at 2:24 AM, qiu ying wrote: > when I compile my application(CTP+LPL) with the latest CVS version, I got > this error message: > tos/lib/net/ctp/CtpForwardingEngine.h:104: conflicting types for > `network_header_t' > tos/chips/rf2xx/layers/TinyosNetworkLayer.h:30: previous decl

Re: [Tinyos-help] BROADCASTING OF DATA

2009-09-27 Thread Omprakash Gnawali
On Fri, Sep 25, 2009 at 12:02 AM, Akashdeep wrote: > > hi > > am broadcasting my data for both send and received data .. but its > repeating many time the same payload with change in the sequence number > ...can any one suggest how to stop it after single broadcast. > please sugges

Re: [Tinyos-help] Multi-hop Application

2009-09-27 Thread Omprakash Gnawali
On Fri, Sep 25, 2009 at 9:51 AM, rajat_315 wrote: > > Thanks a lot for your reply. I installed the multihopLqi application on > three motes > giving node id as 500(for root), 1 and 2. I reduced the transmission power > of the tmotes to happen multi-hop inside a room. But i found only the data > fr

Re: [Tinyos-help] floating values and averaging

2009-09-27 Thread Razvan Musaloiu-E.
Hi! How about just adding the 2000 raw integer ADC readings in an uint32_t variable and at the end just divide with the numbers of readings. An uin32_t is much bigger than the 2000*1000, the maximum the samples can sum up. :-) -- Razvan ME On Sun, 27 Sep 2009, Guillermo De Cesco wrote: > Hi, >

Re: [Tinyos-help] floating values and averaging

2009-09-27 Thread Guillermo De Cesco
Hi, cause buffer size(2000) is bigger than any actual number (0-1000). you should promote the division opoeration to float in order to get something different from cero, that is, average += (1.0 * x) / buff_size; the 1.0 * will do the trick. then if you whant just an integer as result you should

Re: [Tinyos-help] Acknowledgement in TOSSIM

2009-09-27 Thread Razvan Musaloiu-E.
Hi! On Sun, 27 Sep 2009, bo zhang wrote: > Hi. > I'm simulating multi-hop application in tossim. > I requested acknowledgement using PacketAcknowledgements for each packet > sent. I found some strange things happened in the simulation. For some > packets, > (1). the sender gets negative ACK even

[Tinyos-help] Acknowledgement in TOSSIM

2009-09-27 Thread bo zhang
Hi. I'm simulating multi-hop application in tossim. I requested acknowledgement using PacketAcknowledgements for each packet sent. I found some strange things happened in the simulation. For some packets, (1). the sender gets negative ACK even though the packets was successfully received; OR (2). t

[Tinyos-help] Library for cryptographic operations in Imote2

2009-09-27 Thread Rashmi Parthasarathy
Hi, I was wondering if there are any cryptographic libraries available in Tinyos-1.x for Imote2 platform. I want to generate symmetric keys and also encrypt and decrypt them. Any help will be appreciated. Thanks Rashmi -- Imagination is more important than knowledge --- Albert Einstein “Stren