lida2003/BleSppUart

Not Compatible with SpeedyBee App

lida2003 opened this issue · 3 comments

So I suspect both short and long responses in this demo is well handle by SpeedyBee.

Truncate package format

Full MTU package

'#' + '#' + total_num + current_num + rx_buffer[(spp_mtu_size-7)]

Last package

'#' + '#' + total_num + current_num + rx_buffer[(event.size - (current_num - 1)*(spp_mtu_size - 7))]

There are multi-times request for long packet response. it seems ok with UUI, API version and FC version msp commands.

99: I (35523) BleSppUart: BLE read 6 Bytes //UUID
124: I (37553) BleSppUart: BLE read 6 Bytes //UUID
141: I (37703) BleSppUart: BLE read 6 Bytes //API version
157: I (37793) BleSppUart: BLE read 6 Bytes // FC_VERSION
173: I (37943) BleSppUart: BLE read 6 Bytes // BUILD_INFO
202: I (39943) BleSppUart: BLE read 6 Bytes // BUILD_INFO
231: I (42043) BleSppUart: BLE read 6 Bytes // BUILD_INFO
260: I (44083) BleSppUart: BLE read 6 Bytes // BUILD_INFO
289: I (46133) BleSppUart: BLE read 6 Bytes // BUILD_INFO
318: I (48083) BleSppUart: BLE read 6 Bytes // BUILD_INFO
347: I (50133) BleSppUart: BLE read 6 Bytes // BUILD_INFO

图片

log.txt

Other two log files, 115200 & 9600 both tried, no big change.

a.txt
b.txt

SpeedyBee ver 1.8.0 Android

Help wanted, since SpeedyBee is an enterprise app, and application protocol over BLE is not open.

Re-open it if there is further info.