I have a waspmote v1.1 and Xbee 802.15.4 S1. I employ the following algorithm just to see the energy in ONE channel (0B):
//Inits the XBee 802.15.4 library
//Configuring the modem asi API Enabled W/PPP
// Powers XBee
USB.println("Perfoming the channel scan...");
xbee802.setScanningChannels(0x00,0x0B); // Set List of Channels to scan. -> All channels selected.
xbee802.setDurationEnergyChannels(0); // Set exponent of scan channel duration
USB.print("Channel B: ");
USB.print(" - Signal Strength: ");
I set the parameters SC to 1 and SD to 1, in order to scan faster than the default values. If we use the formula that appears in the guide
Number of channels*(2^SD)*15,36 ms
It will result: 1*(2*1)*15,36 ms=30,72 ms.
The things is that the scanning is far of 30,72 ms; I'm getting 3 seconds between 1 scanning and the next one and I need to scan as fast as possible. Anybody knows or suggest something? Please I'll appreciate.