The application provides two modes:
I
, <SPACE>
cmask
, cmset
and cmclr
)parms
).
+
, -
cmask
.cmask
.mask
can be a hexadecimal value, e.g. 0x07fff800scan
. The scanned channels can be configured with the channel mask and the commands cmset
, cmclr
and cmask
.
In order to enable channel 15 in the channel mask for scanning, you can use the command cmask 0x00008000
or cmset 15
.
> parms SUPP_CMSK: 0x07fff800 ....... shows the supported channels of the radio CURR_CMSK: 0x04008800 ....... channel mask used for scanning (11,15,26) CURR_CHAN: 11 ............... channel used for sniffing CURR_PAGE: 0 ............... unsupported yet
> scan Scanning channels, scan period 2000ms bad Avg. 802.15.4 frames chan frm crc ed lqi B D A C PER 11 0 0 0 0 0 0 0 0 0 12 n/a 13 n/a 14 n/a 15 62 0 71 255 0 62 0 0 0 16 n/a 17 n/a 18 n/a 19 n/a 20 n/a 21 n/a 22 n/a 23 n/a 24 n/a 25 n/a 26 1 1 0 0 0 0 0 0 100 === ur 0 err 0 frames: 63 ===
The columns of the table have the following meaning:
bad Avg. 802.15.4 frames chan frm crc ed lqi B D A C PER | | | | | | | | | +... Estimated packet error rate | | | | | | | | +....... number of rx'd command frames | | | | | | | +............. number of rx'd ACK frames | | | | | | +................... number of rx'd data frames | | | | | +......................... number of rx'd beacon frames | | | | +................................. average LQI of frames on this channel | | | +..................................... average energy value frames on this channel | | +.......................................... number of frames with bad CRC | +................................................ number of received frames +....................................................... channel number
sniff
. The channel which should be monitored is set with the command chan
. In the sniff mode, each received frame is transfered over the host interface to the PC application.
+-------+--------+--------+------------+--------+ | SOF | LEN | TSTAMP | FRAMEDATA | EOF | +-------+--------+--------+------------+--------+ | 1Byte | 1 Byte | 8 Byte | 1-127 Byte | 1 Byte | +-------+--------+--------+------------+--------+
SOF | Start of frame field (0x01) | |
LEN | Length of packet (size of time stamp and frame size) (8 ... 133) | |
TSTAMP | Time structure (4 Byte seconds, 4 byte micro seconds) | |
FRAMEDATA | Octets of the frame (the data does not contain the IEEE 802.15.4 PHR with the reserved bit value). | |
EOF | End of frame field. |
Files | |
file | sniffer.c |
Implementation of the Simple Sniffer and Scanner Application. | |
file | sniffer.h |
Interface of the Simple Sniffer and Scanner Application. | |
file | sniffer_ctrl.c |
Implementation of the control commands for Simple Sniffer and Scanner Application. | |
file | sniffer_scan.c |
Implementation of the scanning functions for Simple Sniffer and Scanner Application. |