RM (Ambient Power)
This command applies to the XTC RF Module.
Reads and reports power levels on all channels. If you do not provide a parameter, the device scans the channels one time. If you do provide a parameter, the device scans the channels repeatedly for the number of seconds that the parameter calls for. The firmware reports the maximum power level seen for each channel (in other words, peak hold).
To implement a graphical spectrum analyzer, repeatedly send RM with no arguments and read the resulting 50 power levels. This is easiest to do when CF = 1 or 2.
Sample output when CF = 0: | Ch 0: -100 dBm |
Ch 1: -103 dBm |
|
... | |
Ch 49: -99 dBm | |
Sample output when CF = 1: 64 | 64 |
67 | |
... | |
63 | |
Sample output when CF = 2: 100 | 100 |
-103 | |
... | |
-99 |
Binary command
N/A
Command type
Diagnostics
Parameter range
no parameter - 0x7D0
Default
N/A
Bytes returned
50, one byte for each channel