You can read the RSSI_VAL field in the RSSI register on the CC2420
using HPLCC2420.read command. You only want the lowest 8-bits of the
return value.  See the CC2420 datasheet for details on how to
interpret this register value.  The format is 2's complement and the
value must be offset with a constant.

- Prabal

On 2/28/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hello i have being searching about reading the cca pin in cc2420, but i
> don't understand something. I want to detect if in some instant(maybe
> when something is being received) the channel is free or not. Bu the
> problem is that when i look at the cca pin, it always return true.  Is
> there any other way to do this? What i want is use a chect timer that
> checks always the energy in the channel and if it detects valid energy
> it advises me. Bu t the cca pin seems not to work, o what cani do? i
> have read that when a packet is received you can read a field with the
> rssi value, but what i want is the energy in every instant not when the
> apcket has being received.
> Some help please. thanks a lot
>
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to