Other Parts Discussed in Thread: CC2530
How to use AF_ACK_REQUEST option in AF_DataRequest?
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.
Other Parts Discussed in Thread: CC2530
How to use AF_ACK_REQUEST option in AF_DataRequest?
I have two questions:
I use cc2530 and Z-stac mesh
1) what is zcl.c's file name ? I can't find it...
2)can I access to TX power register in generic application?
what is the default value of TX power in genericapp?
If you use GenericApp, I think you don't have to use zcl_registerClusterOptionList for APS ack. You only have to use AF_ACK_REQUEST in option parameter of AF_DataRequest to ask APS ack from destination.
In my application, I've enabled APS_ACK for all transmission except group addressing and broadcast whithin AF_DataRequest function
req.txOptions = 0;
if ( //( options & AF_ACK_REQUEST ) && // Always use APS_ACK when in unicast...
( req.dstAddr.addrMode != AddrBroadcast ) &&
( req.dstAddr.addrMode != AddrGroup ) )
{
req.txOptions |= APS_TX_OPTIONS_ACK;
}
But I'm a little bit surprise about the results... APS_ACK are requested but it seems that I don't get many AF_DATA_CONFIRM_CMD msg back...
In ubica, I do see the incomming APS_ACK but, somehow, the ZDApp_ProcessOSALMsg does not receive the message often...
In order to receive those confirm events, do I need to set the TxOtion in the cluster list or the simple fact of setting the TxOption when the message is sent is enough?
Thanks,