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.

cc2540中传输大容量数据的问题

Other Parts Discussed in Thread: CC2540

1、cc2540中主给从发送数据时使用GATT_WriteCharValue可以成功,主从端均正确。但是该函数只能发送最多20个字节的数据,然后我就使用了GATT_WriteLongCharValue这个函数接口,结果发现从设备每次最多只能收到18个字节的数据。并且这个时候主端特别容易死机,如果换成GATT_WriteCharValue就不会有这个问题了。

2、从设备给主设备回送数据的时候目前是用的是GATT_Notification函数接口,这个函数的第二个参数中包含了回送数据的内容,但是定义的长度为20(定义的宏为ATT_MTU_SIZE-3,然后ATT_MTU_SIZE为23,其红定义的时候说明了其值最大可为517)。请问,在不自行分包的情况下能够实现最多的一次性传送五百多个字节的数据吗?