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.

[参考译文] CCS/CC2640:在 CC2640上启用通知时发出问题

Guru**** 2553260 points
Other Parts Discussed in Thread: CC2640, CC2650

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/580541/ccs-cc2640-issue-enabling-notify-on-cc2640

器件型号:CC2640
Thread 中讨论的其他器件: CC2650

工具/软件:Code Composer Studio

当我尝试(在 CC2650 LuanchpadXL 上)向客户端特征配置写入0x0001以启用通知。 我从 BLE 外设(CC2640最小封装模块)获取错误响应。 来自外设器 件的错误代码是 ATT_ERR_UNSUPPORTED_REQ (0x06):属性服务器不支持从属性客户端接收到的请求。 我正在为 Launchpad 使用 Simplle cnt谱 的修改版本、并为 cc2640使用修改版本的简单外设观测器。

当我的 iPhone 使用淡蓝色来收听通知时、它工作正常。  

这就是我写入以启用通知的方式 charHdl[1]是 UUID 0x2902的 HDL。

attWriteReq_t NOTIReq;

NOTIREQ.Handle = charHdl[1];
NOTIREQ.len = 2;
NOTIREQ.pValue[0]= 0x01;  
NOTIREQ.pValue[1]= 0x00;  
NOTIREQ.SIG = 0;
NOTIREQ.cmd = 0;
jstatus = GATT_WriteCharValue( connHandle,&NOTIReq,self Entity );

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好 JSR、
    您是否使用 GATT_BM_alloc 和 GATT_BM_FREE 为您的请求分配和释放空间?
    什么状态会返回到 jstatus?