Other Parts Discussed in Thread: TIMAC
I am working on MAC coP of TIMAC. MAC coP to the module and can send commands via RS232 and receive feedback.
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
Can you help me with the commands for setting up coordinator?
example:
SREQ -> SRSP
0x fe 00 21 01 20 (Ping) -> 0x fe 02 61 01 43 00 21
0x fe 01 22 01 01 23 (mac reset) -> 0x fe 01 62 01 00 62
..........