[Tinyos-devel] [Tinyos-help] RF230 readinf ED instead of RSSI

Stefano "Kismet" Lenzi kismet.sl at gmail.com
Mon Jun 16 04:32:41 PDT 2008


On Mon, Jun 16, 2008 at 08:56, Stefano Kismet Lenzi <kismet.sl at gmail.com> wrote:
> On Fri, Jun 13, 2008 at 22:58, Miklos Maroti <mmaroti at math.u-szeged.hu> wrote:
>> Hi Stefano,
>>
>> Did you check if PacketRSSI.isValid() returns TRUE? In some cases I
>> cannot guarantee that the returned ED value is correct.
>
> I have just looked at the code and  I check PacketRSSI.isSet(),
> instead of PacketRSSI.isValid(), but I think that you meant isSet(),
> don't you?
>
>>
>>> 1) The required 140 microsec did not pass, but I think this is not the case
>>
>> After looking at the code it might be possible (although very
>> unlikely) that we handle the IRQ, read the status register in 140
>> microsec. I have moved the reading of the PHY_ED_LEVEL to the end of
>> the reception in the attached file. Please replace your copy of
>> RF230LayerP.nc with this one ang give it a try and let us know.
>
> Probably I will have a chance to test the code today.

I have tested the RSSIDemo with the patch that you have sent me and it works :)

Ciao,
Stefano "Kismet" Lenzi


More information about the Tinyos-devel mailing list