[Tinyos-help] plzzz replyy..... looping stream buffers inside bufferDone or readDone ??

2009-11-14 Thread Akankshu Dhawan
Hi All I am trying to loop the readStream interface for a microphone. For this I am calling the ReadStream.read(period) on a buffer (This is done inside Boot.booted ()).Once the buffer gets filled it signals bufferDone and since I am using just one buffer it immediately signals readDone. Now I

[Tinyos-help] CollectionC protocol for mobile WSN?

2009-11-14 Thread Vikram vik76
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 Vikram ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu

[Tinyos-help] ReadStream actualPeriod wrong?

2009-11-14 Thread Akankshu Dhawan
Hi All I have implemented the readstream interface for the microphone but since I am doing high sampling (10KHz) I decided to check whether I am actually getting a sampling period close to 100 micro-secs. When I try to printout the actualPeriod from inside readDone I get the value 370 continuously

[Tinyos-help] how to display the current time in Tinyos2.x

2009-11-14 Thread wafa jaballah
Hello, I'd like to display the current time information in TinyOS2.x. I know in TinyOS1.x,such information could be given as below can do this. call Sender.generate(0,tos_state.tos_time/1000,packet) But in TinyOS2.x,I don't known how to access the current time information besides

Re: [Tinyos-help] how to display the current time in Tinyos2.x

2009-11-14 Thread Ittipong Khemapech
Hi, TEP102 @ http://tinyos.cvs.sourceforge.net/*checkout*/tinyos/tinyos-2.x/doc/html/tep102.htmlwould help. Ittipong 2009/11/14 wafa jaballah wafa.jabal...@gmail.com Hello, I'd like to display the current time information in TinyOS2.x. I know in TinyOS1.x,such information could be given

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

2009-11-14 Thread mojtaba raznahan
Really need your helps... Can't anybody help me ?? Does it related to simulation section ?? On Tue, Nov 10, 2009 at 10:09 PM, mojtaba raznahan mojtaba.razna...@gmail.com wrote: I'm still bickering with this issue...some help plz On Tue, Nov 10, 2009 at 7:44 PM, mojtaba raznahan

[Tinyos-help] Simple send recieve application

2009-11-14 Thread mojtaba raznahan
Hi all, Does any body have a simple application that just have some Send and Recieve between the nodes correctly ? I want to check out with my application. sincerely, -- Mojtaba Raznahan BS of Computer engineering TMU university www.raznahan.com ___

Re: [Tinyos-help] mac os x 10.6.2 stdlib.h compiling problems...

2009-11-14 Thread Enzeneer
Sorry, doesn't work. I tried changing the GCC=gcc-4.0 in the null.rules, but no avail. On Sat, Nov 14, 2009 at 1:55 AM, Razvan Musaloiu-E. razv...@cs.jhu.edu wrote: Hi! On Sat, 14 Nov 2009, Enzeneer wrote: Hi, It occurs whenever I try to build a Java program and target=null is specified

Re: [Tinyos-help] Simple send recieve application

2009-11-14 Thread Till Maas
Hi, On Sat, Nov 14, 2009 at 04:24:59PM +0330, mojtaba raznahan wrote: Does any body have a simple application that just have some Send and Recieve between the nodes correctly ? I want to check out with my application. there is one included in the TinyOS collection. It's called

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

2009-11-14 Thread Paul Johnson
Mojtaba, Make sure when you are setting up your links in the simulation you set up BOTH directions of the link. For example if you're trying to send something from node 1 to node 2, you need to define the gain for link 1-2 and from 2-1. Otherwise, 1 will be able to send to 2, but 2 will

[Tinyos-help] different nodes in tossim

2009-11-14 Thread Viktor Zsoldos
Hi list! Is that possible to simulate nodes with different programs in TOSSIM? For example one node as a base station, and other nodes as simple sensing nodes. I can do this now in one file with separating the usage of different functions with if-else, but that's not too pretty. Thanks in

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

2009-11-14 Thread mojtaba raznahan
Hi Paul, Thank you very much for answer. I checked out this problem,but still doen't work!! This is my simulation code and node 1 is the sender node :(Is it correct ?) #! /usr/bin/python import TOSSIM import sys import random from TOSSIM import * t = TOSSIM.Tossim([]) r = t.radio(); for i

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

2009-11-14 Thread Paul Johnson
Mojtaba, Which node is 1 sending to and when??? I see that the node boot times are pretty far spaced apart. It could be that if you're sending from 1 to 2, node 2 is not booted up when node 1 sends, thus, it will never receive an ACK and sendDone will never be called. -Paul mojtaba

Re: [Tinyos-help] different nodes in tossim

2009-11-14 Thread Razvan Musaloiu-E.
Hi! On Sat, 14 Nov 2009, Viktor Zsoldos wrote: Hi list! Is that possible to simulate nodes with different programs in TOSSIM? For example one node as a base station, and other nodes as simple sensing nodes. I can do this now in one file with separating the usage of different functions

Re: [Tinyos-help] mac os x 10.6.2 stdlib.h compiling problems...

2009-11-14 Thread Razvan Musaloiu-E.
Hi! On Sat, 14 Nov 2009, Enzeneer wrote: Sorry, doesn't work. I tried changing the GCC=gcc-4.0 in the null.rules, but no avail. Yes, you need to set change the 'export GCC=gcc' to 'export GCC=gcc-4.0' in support/make/null/null.rules. Sorry for forgeting to indicate this. How does it fail?

[Tinyos-help] stm25p volume always valid

2009-11-14 Thread Christian Skalka
I am trying to store a small value in stm25p flash memory on a telosb mote, using ConfigStorage in TOS2. However, After mounting, ConfigStorage.valid() always returns TRUE, even after imaging and mount and before fist commit. Thus, I am unable to discern the first boot and seed that storage

[Tinyos-help] correlation between ADC sampling and radio communication

2009-11-14 Thread Akankshu Dhawan
Hi All I am doing high sampling from the ADC on the MICAZ motes. and continously keeping count of values above a threshold. When I have 1000 values above a threshold I want to send a broadcast message using the radio ? 1. I want to know will the mote be sampling simultaneously while transmitting

Re: [Tinyos-help] correlation between ADC sampling and radio communication

2009-11-14 Thread Akankshu Dhawan
Hi Zainul Thanks a lot for replying. Actually I am giving the ADC a free run with prescalar set to 32. So I am expecting a sampling rate of 32 Khz so that even with the added delay of radio communication I should be getting 10Khz (which is my minimum requirement). Also, I need some guidance on

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

2009-11-14 Thread Omprakash Gnawali
On Sat, Nov 14, 2009 at 12:32 AM, Vikram vik76 vi...@sify.com 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. It should still work but if the nodes move too fast it will break

Re: [Tinyos-help] mac os x 10.6.2 stdlib.h compiling problems...

2009-11-14 Thread Razvan Musaloiu-E.
Hi! On Sat, 14 Nov 2009, Enzeneer wrote: Hey thats great! Could you tell me what that means? What does it do? We need the '-D_FORTIFY_SOURCE=0' to avoid one set of errors (you can take if you want to see :P). The 'export GCC=gcc-4.0' will ask the nesc to use the gcc-4.0. If you run mig

[Tinyos-help] Timer accuracy in MicaZ

2009-11-14 Thread Mohammad S. Hashemian
Hi all, In the application I'm working on, I need to know the exact time of a specific event, so I recorded the time turned on the mote, and I programmed the mote to put the time value in the packet as well (using Time.getLow32() and Time.getHigh32, Time is SimpleTime.Time interface), using this

Re: [Tinyos-help] Timer accuracy in MicaZ

2009-11-14 Thread Paul Johnson
I'm not exactly sure of that particular interface in TOS 1.x but, i remember that in TOS, the milli counter ticks 1024 times per second not 1000, so this might account for some of the time difference. -Paul Mohammad S. Hashemian wrote: Hi all, In the application I'm working on, I need to

[Tinyos-help] uniform energy cluster formation in tinyos-2.x ?

2009-11-14 Thread Akankshu Dhawan
Hi all I am trying to do uniform energy distribution in Tinyos-2.x amongst my cluster members, so after time interval t nodes keep changing and becoming clusterheads. Can you guide me with this ? I think this is the LEACH protocol but I am not too familiar with tinyos network protocols. I have

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

2009-11-14 Thread mojtaba raznahan
Paul, Really thanks for your responses.I changed the boot times to 1000,each node is booted at 1000. And Node 1 is a sender and every 2000MilliSec sends a packet to AM_BROADCAST_ADDR (I also changed it to the numbers ,like 2 or 0).But still does'nt worked.In the first time AMSend.send returns a

Re: [Tinyos-help] Simple send recieve application

2009-11-14 Thread mojtaba raznahan
Till, Thanks for your attention. I'm still looking for. By the way,Thanks Mojtaba On Sat, Nov 14, 2009 at 10:38 PM, Till Maas opensou...@till.name wrote: Hi Mojtaba, On Sat, Nov 14, 2009 at 07:45:03PM +0330, mojtaba raznahan wrote: I know that,but unfortunately the AMSend.sendDone event

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

2009-11-14 Thread Paul Johnson
Mojtaba, If you are sending messages to AM_BROADCAST_ADDR, then there are no acks, so sendDone should be fired as soon as the radio successfully sends the packet. If sendDone isn't firing then this must mean the radio isn't able to send the packet. The only reason that I can think of that

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

2009-11-14 Thread mojtaba raznahan
Paul, Thank you veryyy much!!!.It worked! I had seen this page several times but i wasn't accurate enough and so i didn't used the noise model at all. Really you gave me a big help! Thank you. But what is this numbers ? It claimed that you should use at least 100 entry of this numbers so the