Thread 中讨论的其他器件:CC2640、
工具与软件:
尊敬的专家:
请告诉我如何使用 CC2640发送定期通知数据。
谢谢
此致、
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.
您好、Clement
我的客户希望使用 CC2642R 每隔1秒发送一次通知数据
但是、系统仅在发送一个通知后停止。
附加了其源代码。 请指出错误。
e2e.ti.com/.../TI-CC2642-_38BB58C7_.c
谢谢
此致、
错误代码0x1B
不是blePending
,但实际上bleInvalidMtuSize
.
#define ATT_MTU_SIZE L2CAP_MTU_SIZE //!<最小 ATT MTU 大小
#define L2CAP_MTU_SIZE 23 //!<基本信息帧(B 帧)的最低支持信息有效载荷
GATT452/Cfg App_Process (simpleProfileChar1Config、simpleProfileChar1、false、
simpleProfileAttrTbl、GATT_NUM_ATTRS( simpleProfileAttrTbl )、
INVALID_TASK_ID, simclasiprica Profile_Read trcb );
的大小simpleProfileChar1
为22、这可能导致了bleInvalidMtuSize
错误。
进行以下修改后、通过通知进行的通信开始工作:连接到应用程序时(GAP_LINK_REQUITED_EVENT)、我添加了:
attExchangeMTUREQ_t req;req.clientRxMTU = 247;uint8_t status = GATT_ExchangeMTU (connHandle、&req、selfEntity);
这样就解决了问题。
谢谢你。