Other Parts Discussed in Thread: CC2591, CC2530, Z-STACK
Good day for everybody!
I require the help from You experts out there.
I developed a CC2530 + CC2591 board that connects via serial port to a PC using ZTOOL V2.0, and everything is working as expected, good range, and all devices forming the mesh network as expected. Still, I have problems with the ZDO commands which are not returning information.
The CC2530 chip is loaded with the Z-STACK 2.3.0, and compiled using the following compile options:
MT_UTIL_FUNC, MT_SYS_FUNC, MT_AF_FUNC, MT_SAPI_FUNC, MT_SAPI_CB_FUNC, MT_ZDO_CB_FUNC, MT_ZDO_FUNC, MT_ZDO_MGMT, MT_APP_FUNC
When I try to get the response from the ZDO_IEEE_ADDR_REQ (0x2501) command in the ZTOOL, all I get is the ZDO_IEEE_ADDR_REQ_SRSP(0x6501) with success status. It is supposed that I will also receive the ZDO_IEEE_ADDR_RSP(0x4581) that contains the response, but this response never arrives. I also verifyied with a port sniffer on the serial port and all I see is the ZDO_IEEE_ADDR_REQ request and the ZDO_IEEE_ADDR_REQ_SRSP.
The documentation for the z-stack specify that it is necessary to subscribe to the callbacks in order to receive responses from certain commands. I am not sure what is the correct way of doing that. I tryied to subscribe using the UTIL_CALLBACK_SUBSCRIBE command, with the 0xFFFF argument for the CommandID as stated in the "Z-Stack Monitor and Test API" document so all the subsystems will be subscribed for callbacks, including the ZDO ones. Also, I used the CommandID of the ZDO_IEEE_ADDR_RSP(0x4581) as the parameter for the UTIL_CALLBACK_SUBSCRIBE command, but still I cannot receive any callback for the ZDO_IEEE_ADDR_REQ command.
Does anyone know how to subscribe to the ZDO callbacks using ztool?
Best regards.
Sergio