This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2531: Error using AF_DATA_REQUEST

Part Number: CC2531
Other Parts Discussed in Thread: Z-STACK,

We are seeing an error returned when trying to send a ZCL packet using AF_DATA_REQUEST. The method works fine when sending a ZDO message, but returns error code 2 for ZCL.

22:45:33.470  DEBUG  ZSTACK TX: ZstackAfDataRequestSreq [dstAddr=CC22, destEndpoint=03, srcEndpoint=01, clusterId=0006, transId=1A, options=[AF_ACK_REQUEST, AF_DISCV_ROUTE], radius=31, data=01 17 00]
22:45:33.470  DEBUG  ZSTACK TX: FrameData [ data=FE 0D 24 01 22 CC 03 01 06 00 1A 30 1F 03 01 17 00 E2 
22:45:33.475  DEBUG  ZSTACK RX: FrameData [ data=64 01 02 ]
22:45:33.475  DEBUG  ZSTACK RX: ZstackAfDataRequestSrsp [status=AF_INVALID_PARAMETER]

22:42:34.968  DEBUG  ZSTACK TX: ZstackAfDataRequestSreq [dstAddr=0000, destEndpoint=00, srcEndpoint=00, clusterId=0032, transId=11, options=[AF_ACK_REQUEST, AF_DISCV_ROUTE], radius=31, data=00 00]
22:42:34.969  DEBUG  ZSTACK TX: FrameData [ data=FE 0C 24 01 00 00 00 00 32 00 11 30 1F 02 00 00 27 
22:42:34.977  DEBUG  ZSTACK RX: FrameData [ data=64 01 00 ]
22:42:34.978  DEBUG  ZSTACK RX: ZstackAfDataRequestSrsp [status=SUCCESS]

We have added an endpoint 1 using AF_REGISTER, so I'm wondering why we would get this error when trying to send a request.