I am working with development board SmartRF05 with CC2530 on it. I use MAC coP original image and following instructions from MAC coP Interface Guide (SWRU395) send MT commands to the RS232 serial port.
According to documentation:
5.3.13 MAC_SCAN_REQ
Description:
This API initiate’s energy detect, active, passive, or orphan scan on one or more channels. Energy detect scan measures the peak energy on each requested channel. An active scan sends a beacon request on each channel and then listen’s for beacons. A passive scan is a receive-only operation that listens for beacons on each channel. An orphan scan is used to locate the coordinator with which the scanning device had previously associated. When a
scan operation is complete the MAC sends a MAC_SCAN_CNF to the application.
For active or passive scans the application sets the maxResults parameter the maximum number of PAN descriptors to return. The MAC will store up to maxResults PAN descriptors and ignore duplicate beacons.
An alternative way to get results for an active or passive scan is to set maxResults to zero or set PIB attribute MAC_AUTO_REQUEST to FALSE. Then the MAC will not store results but rather send a MAC_BEACON_NOTIFY_IND for each beacon received. But the MAC will not filter out duplicate beacons.
An energy detect, active or passive scan may be performed at any time if a scan is not already in progress. However a device cannot perform any other MAC management operation or send or receive MAC data until the scan is complete.
I send next MAC_SCAN_REQ for active scan of the channel 0x0B with maxResults set to 0x00:
FE 13 22 0C 00 00 08 00 01 03 00 00 00 00 00 00 00 00 00 00 00 00 00 37
I get immediate SRSP:
FE 01 62 0c 00 6F
However, I don't get neither MAC_SCAN_CNF, nor MAC_BEACON_NOTIFY_IND.
Using sniffer I see that no Beacon Requests are been sent by CC2530. And if I setup 2 other devices nearby, coordinator and end device, to make them exchange Beacon Requests and Beacons in 0x0B channel, I still don't see MAC_BEACON_NOTIFY_IND in serial interface.
What can be the problem?