请问TI大神:
协议栈中的无线数据发送请求接口:MAC_McpsDataReq
1、该接口调用后函数返回“ApiMac_status_success” 后 数据发送处于一下那种状态?
1)数据未发送,只是加入无线发送队列,等待发送
2)数据已经通过无线硬件成功发送
如果是情况1),那么怎么才能知道数据已经通过无线链路发送?
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.
请问TI大神:
协议栈中的无线数据发送请求接口:MAC_McpsDataReq
1、该接口调用后函数返回“ApiMac_status_success” 后 数据发送处于一下那种状态?
1)数据未发送,只是加入无线发送队列,等待发送
2)数据已经通过无线硬件成功发送
如果是情况1),那么怎么才能知道数据已经通过无线链路发送?
看下API的说明
*! * @brief This function sends application data to the MAC for * transmission in a MAC data frame. * <BR> * The MAC can only buffer a certain number of data request * frames. When the MAC is congested and cannot accept the data * request it will initiate a callback ([ApiMac_dataCnfFp_t] * (@ref ApiMac_dataCnfFp_t)) with * an overflow status ([ApiMac_status_transactionOverflow] * (@ref ApiMac_status_t)) . Eventually the MAC will become * uncongested and initiate the callback ([ApiMac_dataCnfFp_t] * (@ref ApiMac_dataCnfFp_t)) for * a buffered request. At this point the application can attempt * another data request. Using this scheme, the application can * send data whenever it wants but it must queue data to be resent * if it receives an overflow status. * * @param pData - pointer to parameter structure * * @return The status of the request, as follows:<BR> * [ApiMac_status_success](@ref ApiMac_status_success) * - Operation successful<BR> * [ApiMac_status_noResources] * (@ref ApiMac_status_noResources) - Resources not available */ extern ApiMac_status_t ApiMac_mcpsDataReq(ApiMac_mcpsDataReq_t *pData);
成功发送,关于API看下802.15.4 MAC API.pdf4.3.1节MAC_McpsDataReq