[Tinyos-help] RSSI

roberto pagliari bobtinyos07 at gmail.com
Thu Jul 5 04:54:44 PDT 2007


my micaz motes are going to arrive during this week. I will try both methods
and I'll let you know. I read on the web that the second one have some
problems, by the way I'll let you know soon (I think the CCA pin is set if
RSSI > CCA_THRESHOLD, whenever RSSI is valid).

Tsung-han, basically I need to detect when the energy is higher than a
certain threshold in order to compute some statistics regarding some
physical properties.

thank you


On 7/5/07, Marco Antonio Lopez Trinidad <marco.lopez at unige.it> wrote:
>
>
> Ciao Roberto,
>
> I think, both cases are possible and depend on what you are interested to
> trace
> or do, but I would incline on the second, I mean, to use the chip
> infrastructure.
>
> you have a good day.
>
> --marco.
>
> > sorry, I meant something like this:
> >
> >     event result_t Timer.fired() {
> >         /*   First method   */
> >         uint8_t status;
> >         uint16_t rssi_reg;
> >
> >         status = call HPLChipcon.cmd(CC2420_SNOP);
> >         while( !((status >> CC2420_RSSI_VALID) & 0x01) ) {
> >             status = call HPLChipcon.cmd(CC2420_SNOP);
> >         }
> >         rssi_reg = call HPLChipcon.read(CC2420_RSSI);
> >
> >         /*   Second method   */
> >         if( TOSH_READ_RADIO_CCA_PIN() )
> >             // do something
> >
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070705/f73e0747/attachment.html


More information about the Tinyos-help mailing list