OpenSeizureDetector / Android_Pebble_SD

The main OpenSeizureDetector Android App, that is published on the Android Play Store.
http://openseizuredetector.org.uk
GNU General Public License v3.0
9 stars 14 forks source link

V4.2.4+ - BLE Data Source Issues #169

Closed jones139 closed 5 months ago

jones139 commented 5 months ago

Sometimes the phone will not connect to the Infinitime watch - but going into the 'Select Bluetooth Device' dialog and scanning for it and selecting the device again cures it.

Sometimes the BLE data source does not shut down properly and still receives data after it has supposed to exit.

I think it might be easier to switch to using the BLESSED BLE library, rather than trying to cure these and other issues ourselves.

jones139 commented 5 months ago

This is probably linked to #152, #158, #161

jones139 commented 5 months ago

The current draft V4.2.6 attempts to re-start the data source on fault. This does result in the watch reconnecting, but we have multiple notifications for each packet of data, so the data update period drops to 1 second rather than 5 and we get nonesense results - this is worse than having fault pips! - starting a second attempt at the fix....

jones139 commented 5 months ago

The switch to the BLESSED library in BLE data source 2 has sorted out the data source shutdown issue by queueing commands. We still see the issue of having to scan for devices and select Infinitime to get it to reconnect sometimes (it took over 24 hours to fail most recently).

jones139 commented 5 months ago

V4.2.6 now shows the signal strength nicely, but if the connection does drop out, it does not re-start and just stays in FAULT - we need an automatic re-start to try to recover before going into FAULT.

jones139 commented 5 months ago

I think the problem with automatic reconnection is fixed in V4.2.7 which is available as a binary release now and should be on Play store for beta testers tomorrow.

Will open a new issue for any specific problems with V4.2.7.