[Tinyos-help] RSSI strength
Sankar Gorthi
sankar.b.gorthi at gmail.com
Mon Jun 5 22:20:54 PDT 2006
and oh - tinyos-1.1.0
Sankar.
On Tue, 06 Jun 2006 00:20:08 -0500, Sankar Gorthi
<sankar.b.gorthi at gmail.com> 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 experiments were done on the actual motes and we broadcast
> the value in a message packet as you can see.
>
> Sankar.
>
> On Tue, 06 Jun 2006 00:11:29 -0500, Rajat Bansal <rajat at ee.iitb.ac.in>
> wrote:
>
>> 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 ADCBattery.getData();
>> updateNeighbors(message->src,message->val,message->seqNo);
>> dbg(DBG_USR1,"strength %d",m->strength); --> this is how i am
>> trying to access...
>> // printNeighbors();
>> call Leds.redToggle();
>> ret = m;
>>
>> this is a simple code i have written for recieved packet..i dont know
>> wat seems to be the problem. can u make out some mistake?
>>
>> -rajat
>>
>>
>> On Mon, 5 Jun 2006, Sankar Gorthi wrote:
>>
>>> 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 <rajat at ee.iitb.ac.in>
>>> wrote:
>>>
>>>> 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
>>>> _______________________________________________
>>>> Tinyos-help mailing list
>>>> Tinyos-help at Millennium.Berkeley.EDU
>>>> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>>
>>>
>>>
>>>
>>
>
>
>
--
No opera plot can be sensible, for people do not sing when they are
feeling sensible. - W. H. Auden
More information about the Tinyos-help
mailing list