Hi All,

I'm using the CVS version of tinyos-2.x, and I'm trying to read the ED
value instead RSSI. I used the RssiDemo tutorial as code base and I
slightly modified it to make it work with the Iris platform. The
RssiDemo perfectly works if I read the RSSI value from the RF230, but
as soon as I recompile it to read the ED value from the RF230 I always
get 0 (zero) as ED value. Do you have any tips? Have anyone used the
ED reading with Iris successfully?

Also have looked at the /opt/tinyos-2.x/tos/chips/rf230/RF230LayerP.nc
file and I have simple question, the code:

                                        if( irq == RF230_IRQ_RX_START )
                                        {
                                                temp = 
readRegister(RF230_PHY_RSSI) & RF230_RSSI_MASK;

                                                rssiBusy += temp - (rssiBusy >> 
2);

#ifdef RF230_RSSI_ENERGY
                                                temp = 
readRegister(RF230_PHY_ED_LEVEL);
#endif

                                                call PacketRSSI.set(rxMsg, 
temp);
                                        }

should not be rewritten in the following way?

                                        if( irq == RF230_IRQ_RX_START )
                                        {
#ifdef RF230_RSSI_ENERGY
                                                temp = 
readRegister(RF230_PHY_ED_LEVEL);
#else
                                                temp = 
readRegister(RF230_PHY_RSSI) & RF230_RSSI_MASK;

                                                rssiBusy += temp - (rssiBusy >> 
2);
#endif

                                                call PacketRSSI.set(rxMsg, 
temp);
                                        }

Ciao,
Stefano "Kismet" Lenzi

P.S.: If you think that it could be useful I will be glad to share the
modified RssiDemo code, how can share it?
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to