请问TI大神:
协议栈中的无线数据发送请求接口:MAC_McpsDataReq
1、该接口调用后函数返回“ApiMac_status_success” 后 数据发送处于一下那种状态?
1)数据未发送,只是加入无线发送队列,等待发送
2)数据已经通过无线硬件成功发送
如果是情况1),那么怎么才能知道数据已经通过无线链路发送?
Kevin Qiu1:
看下API的说明*!* @briefThis 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.** @parampData - pointer to parameter structure** @returnThe 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);
user5153918:
回复 Kevin Qiu1:
这个说明我是看了的,所以才提出的疑问,
说明中提到了有消息发送缓冲,所以我的问题非常简单:* @returnThe status of the request, as follows:*[ApiMac_status_success](@ref ApiMac_status_success)*- Operation successful
当函数返回ApiMac_status_success时候,被发送消息是通过无线成功发送了,还是将消息成功加入无线缓冲中。
Kevin Qiu1:
回复 user5153918:
返回ApiMac_status_success时候说明成功了
Kevin Qiu1:
回复 user5153918:
返回ApiMac_status_success时候说明成功了
user5153918:
回复 Kevin Qiu1:
是成功加入发送缓冲,还是成功发送?
user5153918:
回复 Kevin Qiu1:
不好意思,我问的比较细节,因为这个区别对我们开发影响比较大
user5153918:
回复 Kevin Qiu1:
非常感谢!!!!!!