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.

关于 BLE的一些问题



1、GATT_Notification() 和 GATT_WriteNoRsp() 函数有什么不一样? 感觉GATT_Notification就会漏码, GATT_WriteNoRsp就不容易漏码。

2、Master一次性发送128个字节, Slave收到 并且串口输出的时候出现以下现象, 如图:(串口透传的测试程序)

3、串口漏码现象 Master -> SLave 概率低, Slave ->Master 概率高很多。

4、每次看中传输的数据只能固定20字节吗, 不能动态改变吗?

5、想到再说

  • San,

    1, GATT_Notification() 是从机发给主机,GATT_WriteNoRsp() 是主机发给从机,两个不能交换使用,只能分别用在从机和主机上。

    2和3,用UART的时候,把POWER_SAVING 关闭看看。

    4, 只能是20字节,协议规定。

    5, 欢迎。

  • yan,说的很对,UART 在 省电模式下,可能会漏码,想要在省电模式下不漏码,程序你要做修改。 另外,我们开发了手机端接收GATT_notification 发来的数据,没有发现漏码。