Quantcast
Viewing all articles
Browse latest Browse all 7523

2640R2F 蓝牙发送出错,0x15 blenoresources

cc2640r2f 调试蓝牙时,循环调用SimpleProfile_SetParameter 13次(数据长度20byte*13包)发送完成前一帧数据后,间隔10秒左右再发,出错

因为不好单步跟踪,只能确认这里返回错误:0x15 blenoresources

static bStatus_t gattServApp_SendNotiInd( uint16 connHandle, uint8 cccValue,
uint8 authenticated, gattAttribute_t *pAttr,
uint8 taskId, pfnGATTReadAttrCB_t pfnReadAttrCB )
{
attHandleValueNoti_t noti;
uint16 len;
bStatus_t status;

// If the attribute value is longer than (ATT_MTU - 3) octets, then
// only the first (ATT_MTU - 3) octets of this attributes value can
// be sent in a notification.
noti.pValue = (uint8 *)GATT_bm_alloc( connHandle, ATT_HANDLE_VALUE_NOTI,
GATT_MAX_MTU, &len );

...

我把最后一次发送之前比较耗时的代码屏蔽掉一部分,即本次发送(再次开启循环调用SimpleProfile_SetParameter)和上次发送的间隔缩短,即可发送成功,这是什么问题


Viewing all articles
Browse latest Browse all 7523

Trending Articles