[Tinyos-help] argent

2010-08-09 Thread zeinab ali
Dear Sir, i wanna know if there is a way to change data format of the output appearing on the shell (sensor reading,received packet contents,etc ) whether converting it from hex. to decimal or binary to make it readable thanks in advance regards,zeinab

Re: [Tinyos-help] structure in a variable message_t

2010-08-09 Thread Peter Stalling
Hello, msg=(message_t *)btrpkt; is not correct, you are assigning the payload to the msg, you can't do that. msg is a pointer to the AMPacket, btrpkt is a pointer to the payload within the AMPacket. So your packet is alredy set up without the mentioned line of code. You can just send msg and yo

[Tinyos-help] sending two consecutive messages causes seg fault

2010-08-09 Thread Mitra Baratchi
Dear all I am writing an application in which two consecutive messages are needed to be sent. Although I check the busy flag ,I get a segment fault error trying to simulate it with TOSSIM (right after when it tries to send the second message). Could anyone help me with this? Here is the actual

[Tinyos-help] LogStorage data error

2010-08-09 Thread Sandip Bapat
Hi I am using the LogStorage component in tinyos to write data to flash on a TelosB mote. I append data in 240 byte blocks (since the max size constraint is 254) and read it back in 80 byte blocks so I can fit it in a single message.However, even when I write the same pattern, e.g. all 0s, whe

Re: [Tinyos-help] [*] sending two consecutive messages causes seg fault

2010-08-09 Thread harshalw
Hi, Where is your receive method? You should return the received message in the receive method. Something like the line return bufPtr in the RadiocountToLedsC.nc file of RadioCountToLedsC app. Hope this helps. -- Harshal > Dear all > > I am writing an application in which two consecutive message

Re: [Tinyos-help] Why my received signals incoherent?

2010-08-09 Thread Michael Schippling
From those spectrum results I'd say you were doing pretty good. Even if the vertical scale is linear you have a factor of 10 more "signal" than noise. As to what's in the actual samples, acoustic noise, echos, and system noise could all be culprits. The usual electret mic is good up to around 15Kh

Re: [Tinyos-help] sending two consecutive messages causes seg fault

2010-08-09 Thread Michael Schippling
Look carefully at the arguments in these two calls from sendDone() and then send us a new question: call SendMsg1.send(TOS_BCAST_ADDR, &msg1 ,sizeof(struct TreeReqMsg)); call SendMsg2.send(TOS_BCAST_ADDR, sizeof(struct TreeReqMsg),&msg2); MS Mitra Baratchi wrote: > Dear all > > I am

Re: [Tinyos-help] CC2420 and microsecond precision timestamps...

2010-08-09 Thread Janos Sallai
Hi Sinan, I have just run the test app (tinyos-2.x-contrib/vu/apps/TestPacketTimeSync), but didn't see any extreme inconsistencies apart from some clock drift. Would you mind running this app and sharing the output with me? Also, can you send me the compilation output (output of "PFLAGS=-v make te

Re: [Tinyos-help] Why my received signals incoherent?

2010-08-09 Thread Michael Schippling
Again, aside from one of the mote 3 signals, they don't look too bad. Look at the actual wave form you are getting (zoom way in on the samples) to see if you get something that looks like the original. If it's very irregular it may just be aliasing. You could try a lower frequency continuous sine