Other Parts Discussed in Thread: CC2640
在程序中添加了部分应用程序后,导致数据交互变慢,超过一秒钟。
使用测试工具BTOOL读取数据时,明显感到变迟钝了。请问数据延时跟哪些因素有关?如何加快速度
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.
1:一个单独的任务事件FLASHTaskFxn 任务优先级为2,专门管理flash,平时是不读写的。
2:默认的SimplePeripheral_taskFxn优先级为1,其中有一个定时周期任务1秒,用于显示OLED屏幕数据,adc读取电压和I2C读取温度。
3:开启硬件定时器一个,周期为100ms,用于另外的2个管脚中断计时,计数和处理。
4:PDU size为默认值69,PHY也是默认,都没有更改。
5:OAD升级时发送数据包是不影响速度,偶尔也是很慢一包数据,问题较大的是读取数据较慢。
不知道该从哪里下手。
问题1:任务优先级数字越小越低吧?默认的SimplePeripheral_taskFxn应该为最低,是可行的吧?
问题2:定时器是否会影响什么?如果开启1ms中断呢?
问题3:这个SimplePeripheral例程可以多个设备一起连接?
加快速度该从什么地方下手呢?还是不确定被什么影响了?
https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/981279/cc2652r-btool-really-slow-when-reading-characteristic-values/3627268?tisearch=e2e-sitesearch&keymatch=Bluetooth%25252525252525252520data%25252525252525252520interaction%25252525252525252520is%25252525252525252520slow#3627268