I am using SmartRF05 evaluation board with CC2530 module on it. I have uploaded MAC coP firmware image to the module and able to send commands over RS232 and get response back.
Following instructions from the MAC coP Interface Guide (SWRU395):
4. Setting up a TIMAC Network
4.1 Starting a PAN Coordinator
To Start a PAN coordinator following sequence of commands can be used to the MAC-coP from the Host
via the MT interface
- Reset the MAC using the API : MAC_RESET_REQ
- Set the parameters using the API: MAC_SET_REQ
- Set the Short Address attributeID: ZMAC_SHORT_ADDRESS
- Set the Extended Address attributeID: ZMAC_EXTENDED_ADDRESS
- Scan the area for pre-existing PAN ID’s. send a MAC_SCAN_REQ
- After receiving MAC_SCAN_CNF (AREQ) determine the existing PANID’s and select a unique PAN ID to start the network.
- Start the MAC network using MAC_START_REQ
- Set the parameters: MAC_SET_REQ
- Allow Association: ZMAC_ASSOCIATION_PERMIT
- Device On All the time : ZMAC_RX_ON_IDLE, set true for coordinator
I have created next sequence of MT commands:
FE 02 22 01 01 DE (this message I have to send twice to get response FE 01 62 01 00 62, by the way, by documentation it should be FE 01 62 00 00 63)
FE 03 22 09 50 00 00 78
FE 09 22 09 E2 00 13 A2 00 40 9B 55 87 78
FE 13 22 0C 00 00 08 00 01 01 00 01 00 00 00 00 00 00 00 00 00 00 00 34
FE 23 22 03 00 00 00 00 12 34 0B 00 15 15 01 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 2F
FE 02 22 09 41 01 69
FE 02 22 09 52 01 7A
In all cases I receive response SRSP messages from the module with status field 0x00 (success).
However, using my sniffer I don't see that coordinator actually started: no response to Beacon Request message from another device in all channels.
What am I doing wrong and how to fix this?
UPD: Edited list with sequence of operations according to original documentation