There's a debugging command at CC1000RadioIntM.GetSquelch that returns the current Squelch value (noise floor). You will need to factor out battery power as you need to do with any RSSI reading. B-MAC doesn't worry about voltage since it performs a running average over time with EWMA. More info about how that is calculated is in the B-MAC (Versatile Low Power Media Access) paper.
SquelchBuffer does just as the code looks--it adds a bit of a buffer above the squelch value. Adding a buffer results in less false positives but more false negatives when performing CCA. -Joe On Tue, 08 Mar 2005 01:09:08 -0300 (BRST), Daniel Andrade Costa Silva <[EMAIL PROTECTED]> wrote: > > > Hi all... > > reading the MPR-MIB manual, it says how to get the values of Battery and > potency that come from ADC: > > Vbatt = Vref � ADC_FS / ADC_Count; > Vrssi = Vbatt x ADC_Counts / 1024; and > RSSI(dBm) = -50 x Vrssi - 45.5; (I use the 915MHz freq) > > that is, the RSSI value depends on the battery value (that's what I got > from this). > > ---> Can I just get the RSSI value of noise or signal not depending > on the Battery value? On BMAC, how these values are handled (eg. when > radioState == PRETX_STATE, when ADC data is already ready, it compares > this data with the actual usSquelchVal value). Is there a formula to > convert these values (like CC1K_SquelchInit) to dBm without getting data > from ADC to measure voltage?? > > Almost forgot... what's the meaning of CC1K_SquelchBuffer (that is 0 on > Tiny-OS 1.1.7)? > > Since now, > Thanks a lot!!! > > ----------------------------------- > Daniel Andrade Costa Silva > Computer Science - UFMG - Brasil > [EMAIL PROTECTED] > http://www.dcc.ufmg.br/~daniacs > ICQ: 15350463 > > "To err is human. To moo bovine" > ----------------------------------- > > _______________________________________________ > Tinyos-users mailing list > [email protected] > http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users > _______________________________________________ Tinyos-users mailing list [email protected] http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users
