On Jun 12, 2006, at 7:38 PM, Sean Casey wrote:

Hi everyone,

Is there a way to sample the noise in a given environment? I was interested in having a mote (mica2) just monitor the noise level, and not send or receive any packets. I checked the archives and I couldn't find anything on this, so if anyone had any ideas or could point me in the right direction, I'd appreciate it.


In 1.x, take a look at

CC1000RadioC.nc

This is the line you care about:

  CC1000RadioM.RSSIADC -> ADCC.ADC[TOS_ADC_CC_RSSI_PORT];

RSSI is basically measuring the voltage coming in; this is what the radio stack uses to estimate the noise floor.

In 2.x, take a look at:

HplCC1000C.nc and HplCC1000P.nc

The resource management mechanisms in 2.x mean that sampling the ADC is a little more complicated. You request access, when it is granted, you then sample. The complicated part is that the ADC automatically reconfigures itself to the settings you need to take your sample when it is granted to you. You see this in the two lines:

  components new AdcReadClientC() as RssiChannel;

  RssiChannel.Atm128AdcConfig -> HplCC1000P;

The ADC requests what channel, voltage reference, etc., it should use by calling the HplCC1000P.RssiConfig interface.

Phil



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

Reply via email to