richsmith / sexytopo

The SexyTopo cave surveying app for Android
GNU General Public License v3.0
30 stars 13 forks source link

Pairing does not work #167

Closed tarquinwj closed 1 year ago

tarquinwj commented 2 years ago

Start with a DistoX2 that is not connected, and not paired. Switch on the Disto. In SexyTopo's connection screen, tap the "PAIR" button. SexyTopo says "Unable to scan (bluetooth failure?)".

Android 11 SexyTopo 1.6.1

richsmith commented 2 years ago

I don't think this is a SexyTopo issue. If it requests a bluetooth scan and is refused, not sure what SexyTopo can do about it apart from report it. I have seen this once on requesting a scan straight after another scan; presumably the hardware was still busy.

tarquinwj commented 2 years ago

We tried this on the training course with 3 separate devices, and I have tried it several times with my own two Android devices. They all failed. I don't know if this is an Android version issue or what. Certainly I think it is an Android issue, rather than SexyTopo's. Wondering if there is some new Android change that has broken it forever, like they did with file permissions. Just ... wish there were a way around it, or a way to catch it and show a notice "use the system Bluetooth settings instead".

richsmith commented 2 years ago

Oh OK. Maybe there is a problem here then. Several people managed to pair OK on the training at CHECC, but come to think of it one person couldn't.

CaverBruce commented 1 year ago

Firing up my SexyTopo to help a friend debug some issues. Same issue as Tarquin with a phone that last time (more than a year ago) worked fine (EDIT maybe it was another phone - an S9). Instant response with error message, so as though ST cannot see bluetooth at all. Other bluetooth apps are working normally. I turned them all off and restarted phone in case there might have been interference. No change. Fearing disto failure I checked with PocketTopo (on a different device) and the disto connected and data downloaded normally. So phone seems OK and disto seems OK, but ST has an instantaneous 'bluetooth failure' response.

Samsung Galaxy S10+ Android 10 SexyTopo 1.6.1 Leica DistoX2 4538

CaverBruce commented 1 year ago

However this combination works fine. It can unpair, pair, and connect.

Samsung Galaxy Note 3 Android 5.0 SexyTopo 1.6.0 Leica DistoX2 4538

richsmith commented 1 year ago

This seems to have been a permissions issue. Some more modern phones / Android combinations need to request extra permissions to do Bluetooth things. Should be fixed in the version about to be released.