Re: [Tinyos-help] what kind free software is Tinyos?

2009-11-16 Thread sissou
It is licensed under the BSD license. Regards Sylvain On Mon, 2009-11-16 at 09:41 +0800, Zhao Stephen wrote: Dear Tinyos is BSD or GPL-type? Thanks ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu

[Tinyos-help] Set local time of each mote programmatically at boot time

2009-11-16 Thread mojtaba raznahan
Hi all, I want to know how can I set the local time of each mote programmatically ? I want to set different local time for each node then test my synchronization algorithm on them. I used the LocalTime interface to get the local time but i can't set different initial local time for each node.And

[Tinyos-help] residual energy monitoring for MICAZ

2009-11-16 Thread Akankshu Dhawan
Hi All I want to know what is the best way to get the residual battery (energy) on the MICAZ motes ? I need to calculate this intermittently and based on the value make some decisions so I really need this. I would appreciate if someone who has worked on similar issues can guide me with this

Re: [Tinyos-help] Data rate between PC and telosb through Serial Port

2009-11-16 Thread Michael Schippling
The telosb doesn't use a real serial port, it's USB. I'm not clear if a baud rate is relevant, although it appears that the USB serial comm emulation drivers have a setting for such. In any case, I once did measurements with the micaz using a USB-serial adapter cable and got around 200 normal

Re: [Tinyos-help] residual energy monitoring for MICAZ

2009-11-16 Thread Paul Johnson
Akankshu, To the best of my knowledge there is no sure-fire way of determining how much residual energy the batteries contain. I believe the MicaZ has the ability to take ADC measurements on the battery voltage itself (using some regulated voltage as a reference). However, this won't

Re: [Tinyos-help] packet lost

2009-11-16 Thread Michael Schippling
20 to 25 messages per second is just about all the mica2 can handle so you may just be overrunning the radio. MS leehan0406 User wrote: I'm using the tinyos-2.1.0 and mica2. In the Oscilloscope,when I change the DEFAULT_INTERVAL into a smaller integral ,like 20,then the sink mote(running

Re: [Tinyos-help] residual energy monitoring for MICAZ

2009-11-16 Thread Akankshu Dhawan
Hi Paul Thanks a lot for replying. Actually if I break down my energy consumption, a majority of it would be in radio communication and the second would be sampling through the ADC (I am doing high sampling giving the ADC a free run at approx 17 KHz ). Is there some analysis of energy consumption

Re: [Tinyos-help] residual energy monitoring for MICAZ

2009-11-16 Thread Michael Schippling
Someone posted this here (I think) a while ago: http://www.powerstream.com/AA-tests.htm Buncha neat discharge curves for different chemistries. MS Paul Johnson wrote: Akankshu, To the best of my knowledge there is no sure-fire way of determining how much residual energy the batteries

Re: [Tinyos-help] Set local time of each mote programmatically at boot time

2009-11-16 Thread Janos Sallai
In tossim, the node object in python has a bootAtTime method which lets you set when the mote boots. You can use this to make the local clock's offsets different from each other. By the way, TOSSIM does not simulate clock skew. This might limit the validity of the simulation results. Janos On

[Tinyos-help] Clustering and state switching in tinyos-2.x

2009-11-16 Thread Akankshu Dhawan
Hi All I am trying to implement a clustering algorithm and for that I want to make sure that the Receive mechanism applies only to the clusterhead. Regular Nodes: - samples data - Transmit packets every few seconds Clusterhead - samples the data - Receives regular node packets - processes the

Re: [Tinyos-help] Clustering and state switching in tinyos-2.x

2009-11-16 Thread Paul Johnson
Akankshu, 1) if (clusterhead) { //do something } else //!clusterhead { //do something } 2) Look at the micaz NESDOC (google nesdoc)for how to turn off the receiver for the radio. The real problem you are going to run into is how does the non-clusterheads know when to become the new

[Tinyos-help] Bug in TimeSync receive support (with fix)

2009-11-16 Thread Peter Bigot
The baseline implementations supporting TimeSyncAMSend do not appear to deal with Receive.receive correctly, in that the length parameter passed in includes the timestamp. This breaks code that attempts to validate messages by comparing that length with the size of the expected structure. Below

Re: [Tinyos-help] Clustering and state switching in tinyos-2.x

2009-11-16 Thread Akankshu Dhawan
Hi Paul Please let me know if there might be a way to change the transmission power level , depending on whether a node is a clusterhead or a regular node. I just want to reduce interference and save energy ??? Thanks a lot. I look forward to hearing from you. On Mon, Nov 16, 2009 at 11:28 AM,

Re: [Tinyos-help] Set local time of each mote programmatically at boot time

2009-11-16 Thread mojtaba raznahan
Hi Janos, thanks for reply. What's the meaning of this numbers ? I set the bootAtTime event as these : *t.getNode(0).bootAtTime(1024); t.getNode(1).bootAtTime(1320); t.getNode(2).bootAtTime(6000)*; And i get the time by *sim_time_string()* method and it print the boot times as this :

Re: [Tinyos-help] Set local time of each mote programmatically at boot time

2009-11-16 Thread Paul Johnson
Mojtaba, Actually, i believe the bootAtTime is in 100's of pico seconds (10^-10) seconds. So 1024 * 10^-10 = 0.001024, and apparently sim_time_string() returns time in seconds (up to nano seconds (10^-9)). There are actually 1024 milli ticks per second, so this is why each timer fired

Re: [Tinyos-help] Set local time of each mote programmatically at boot time

2009-11-16 Thread mojtaba raznahan
Paul, Thanks again for your clear answers. Yes, I think like you.So due to this issue I can't test time synchronization algorithms in TOSSIM,am I right ?Or maybe there is some interface for doing this job .. ? sincerley, Mojtaba On Mon, Nov 16, 2009 at 9:58 PM, Paul Johnson oewyn...@gmail.com

[Tinyos-help] Demonstrating a security attack within an XMesh network [For academic purposes only]

2009-11-16 Thread Dave McGee
Hi all, I've just signed up to the tinyos-help mailing list today - I'm a student at the Waterford Institute of Technology in Waterford, Ireland. I'm studying for a MSc in Communications Software and as part of my research I have undertaken a dissertation looking at the XMesh routing protocol.

[Tinyos-help] Routing Protocol for TCP in Mica2- Tinyos-1.x environment

2009-11-16 Thread Anand Chandrashekar
Hi, We are implementing a Transport Protocol on Tinyos-1.x mica 2 environment. Our transport layer functionality seems to be working between 2 adjacent motes (single hop). Now we plan to extend it to multi hop and are looking to use an existing multi hop routing already existing in tinyos-1.x. We

[Tinyos-help] cc2420Packet setPower and getPower

2009-11-16 Thread Akankshu Dhawan
Hi All I am trying to set the transmission power and then get the received message's TxPower on the MICAZ. I am setting the power as follows: call CC2420Packet.setPower(sendBuf,11); memcpy(call AMSend.getPayload(sendBuf, sizeof(local)), local, sizeof

Re: [Tinyos-help] AMSend.sendDone event isn't signaled...

2009-11-16 Thread Philip Levis
You need to configure the noise trace. Phil On Nov 10, 2009, at 7:37 AM, mojtaba raznahan wrote: Hi Ricardo, Thanks for reply. I wrote a dbg statement in first of sendDone event but ...the sendDone event is not signaled at all! event void AMSend.sendDone(message_t* bufPtr, error_t

Re: [Tinyos-help] why dosen't someone reply to this?? plz i require serious help

2009-11-16 Thread Philip Levis
TinyOS 1.x hasn't really been supported for about 3 years now. Phil On Nov 13, 2009, at 6:50 AM, Arslan Shahid wrote: I'm currently following the Lesson 5 (TOSSIM) from the TinyOS 1.x Tutorial, in which I'm supposed to compile CntToLedsAndRfm application. In that step i found

Re: [Tinyos-help] CollectionC protocol for mobile WSN?

2009-11-16 Thread Philip Levis
Generally, collection protocols do not work well with mobility. Phil On Nov 14, 2009, at 12:32 AM, Vikram vik76 wrote: Hello, Does the CollectionC protocol work for the WSN where the topology of the network changes ? the nodes are mobile but the connectivity is always there. Thanks

Re: [Tinyos-help] CollectionC protocol for mobile WSN?

2009-11-16 Thread Vikram vik76
Thanks Phil. I also observed in my deployment that when I move some nodes, the collection protocol doesn't work. Vikram On Tue, Nov 17, 2009 at 8:34 AM, Philip Levis p...@cs.stanford.edu wrote: Generally, collection protocols do not work well with mobility. Phil On Nov 14, 2009, at 12:32

[Tinyos-help] help

2009-11-16 Thread swaroop jois
I am Krishna Swaroop A working at Center for Electronics Design and Technology (CEDT) ,Indian Institute of Science Bangalore. I am working on TINYOSDelugeT2 protocol and i am trying to configure that protocol for tinynode. For Tinynode TOSBoot directory is Compiling but when i compile Blink

Re: [Tinyos-help] JNI Library not found, Lesson 4

2009-11-16 Thread Pedpano
Hi Fahad, I am facing the same problem, did you get it working? Regards, Thiago. Fahad Al-Jabarti wrote: Hi guys,, I need ur help with this problem, when i try to run the command ( $ java TestSerial) i get this error, i've looked at the troubleshooting part of lesson 4