EspressifApp / EspBlufiForAndroid

EspBlufi is based on the BLUFI protocol, which connect with IOT devices for BLE data communication, realizes device config network, and custom data transmission and reception. EspBlufi is developed and maintained by Espressif Corp.
Other
314 stars 122 forks source link

parseNotification read sequence wrong on Samsung phones #26

Open persan666 opened 3 years ago

persan666 commented 3 years ago

More problems with Samsung phones.

I often get the following error 'parseNotification read sequence wrong' when using a Samsung Galaxy S10+ Android 10. I have tried on a Sony Xperia XZ 2 and it is working well.

/Per

persan666 commented 3 years ago

I manage to solve the problem temporarily by applying the following fix from the forum

https://github.com/espressif/esp-idf/issues/5792

components/bt/host/bluedroid/btc/profile/esp/blufi/blufi_prf.c

esp_ble_get_cur_sendable_packets_num(blufi_env.conn_id) -> esp_ble_get_sendable_packets_num()

persan666 commented 3 years ago

The revert of the commit mention in my previous comment did not entirely solve the problem, I still sometimes get the 'parseNotification read sequence wrong' error when using a Samsung Galaxy S10+ phone.