Re: [Tinyos-help] RSSI strength

2006-06-06 Thread Rajat Bansal
okay i got it..i think tossim seems to be the problem. I also read it somewhr that there is some problem with printing the strength value on pc. Thanks, Rajat On Tue, 6 Jun 2006, Sankar Gorthi wrote: and oh - tinyos-1.1.0 Sankar. On Tue, 06 Jun 2006 00:20:08 -0500, Sankar Gorthi [EMAIL

Re: [Tinyos-help] RSSI strength

2006-06-06 Thread Philip Levis
On Jun 5, 2006, at 11:57 PM, Sankar Gorthi wrote: well, makes sense doesn't it? how can you simulate the strength of the recieved signal? i'd imagine it's fairly random. although, i wouldn't stake anything on it. maybe someone else has a better idea. You can simulate the strength of a

[Tinyos-help] RSSI strength

2006-06-05 Thread Rajat Bansal
I am trying to print RSSI strength in the recieved broadcast packet. First i was trying to access in tinyos-1.0 but i came to know that it is not possible in this version. I upload my tinyos to 1.15 but i am getting the value as zero only. Has ne one else came thru similar problem? -rajat

Re: [Tinyos-help] RSSI strength

2006-06-05 Thread Sankar Gorthi
i was able to get it. what seems to be the problem? all i did was access the message-strength value. Sankar. On Mon, 05 Jun 2006 23:33:52 -0500, Rajat Bansal [EMAIL PROTECTED] wrote: I am trying to print RSSI strength in the recieved broadcast packet. First i was trying to access in

Re: [Tinyos-help] RSSI strength

2006-06-05 Thread Michael Schippling
By the use of print I think you may be trying to get the strength on the host PC? If so, it ain't there. It's only available in the TOS_Msg structs on the mote end of the world, and is not passed over the UART to the host. Search back on this list for RSSI discussions. MS Rajat Bansal wrote:

Re: [Tinyos-help] RSSI strength

2006-06-05 Thread Rajat Bansal
dear sanskar, 1) which version of tinyos did u use? 2) i am attaching my code for recieved packet. event TOS_MsgPtr ReceiveIntMsg.receive(TOS_MsgPtr m) { TOS_MsgPtr ret = m; IntMsgnew*message = (IntMsgnew *)m-data; atomic{receivednode=message-src;} // call ADC.getData(); // call

Re: [Tinyos-help] RSSI strength

2006-06-05 Thread Sankar Gorthi
well, this is my (a colleague's) code: Receive.receive(TOS_MsgPtr m) IntMsg *message=(IntMsg*)buffer.data; message-val=m-strength; doesn't look too different. although our experiments were done on the actual motes and we broadcast the value in a message packet as you can see. Sankar.

Re: [Tinyos-help] RSSI strength

2006-06-05 Thread Sankar Gorthi
and oh - tinyos-1.1.0 Sankar. On Tue, 06 Jun 2006 00:20:08 -0500, Sankar Gorthi [EMAIL PROTECTED] wrote: well, this is my (a colleague's) code: Receive.receive(TOS_MsgPtr m) IntMsg *message=(IntMsg*)buffer.data; message-val=m-strength; doesn't look too different. although our