Discussion:
Bluetooth device names
Robert Helling
2018-10-12 16:49:22 UTC
Permalink
Hi,

I am currently working on a patch that in the dive computer download dialogue sets vendor and product based on the bluetooth name
btDeviceSelectionDialog->getSelectedDeviceName()
when it is available.

For this it would be great to know how the supported dive computers identify. What are the possible strings (shown before the bluetooth address in the download dialogue)? Those of you with BT devices, how do your computers identify?

Thanks
Robert

--
.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oO
Robert C. Helling Elite Master Course Theoretical and Mathematical Physics
Scientific Coordinator
Ludwig Maximilians Universitaet Muenchen, Dept. Physik
print "Just another Phone: +49 89 2180-4523 Theresienstr. 39, rm. B339
stupid .sig\n"; http://www.atdotde.de
Dirk Hohndel
2018-10-12 16:59:41 UTC
Permalink
Post by Robert Helling
Hi,
I am currently working on a patch that in the dive computer download dialogue sets vendor and product based on the bluetooth name
btDeviceSelectionDialog->getSelectedDeviceName()
when it is available.
For this it would be great to know how the supported dive computers identify. What are the possible strings (shown before the bluetooth address in the download dialogue)? Those of you with BT devices, how do your computers identify?
So we have that already. What am I missing? https://github.com/Subsurface-divelog/subsurface/blob/master/core/btdiscovery.cpp#L20 <https://github.com/Subsurface-divelog/subsurface/blob/master/core/btdiscovery.cpp#L20>

Oh, I need to add one that's just brilliant.

The Aqualung i770R identifies itself as "FQ012345" where the numbers are it's serial number.
Isn't that brilliant? I mean, once you realize that "FQ" is encoded as 0x4651 and once you know that that's the internal model number of the i770R.
I mean, it doesn't get more intuitive than that...
(thanks to Jef for explaining this to me...)

/D
Robert Helling
2018-10-12 17:12:16 UTC
Permalink
Hi,
Post by Dirk Hohndel
So we have that already. What am I missing? https://github.com/Subsurface-divelog/subsurface/blob/master/core/btdiscovery.cpp#L20 <https://github.com/Subsurface-divelog/subsurface/blob/master/core/btdiscovery.cpp#L20>
did not realise that. But is my impression correct that we do not yet set vendor and product in the dialogue based on that info? I currently don’t have a BT dive computer with me.

Best
Robert

--
.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oO
Robert C. Helling Elite Master Course Theoretical and Mathematical Physics
Scientific Coordinator
Ludwig Maximilians Universitaet Muenchen, Dept. Physik
print "Just another Phone: +49 89 2180-4523 Theresienstr. 39, rm. B339
stupid .sig\n"; http://www.atdotde.de
Dirk Hohndel
2018-10-12 17:21:50 UTC
Permalink
Post by Robert Helling
Hi,
Post by Dirk Hohndel
So we have that already. What am I missing? https://github.com/Subsurface-divelog/subsurface/blob/master/core/btdiscovery.cpp#L20 <https://github.com/Subsurface-divelog/subsurface/blob/master/core/btdiscovery.cpp#L20>
did not realise that. But is my impression correct that we do not yet set vendor and product in the dialogue based on that info? I currently don’t have a BT dive computer with me.
We used to. I haven't checked with current master, though. This code has seen a lot of churn in the past few weeks.
Let me rephrase. On mobile we used to. I don't think we ever did on the desktop.

/D
Thomas 'Mike' Michlmayr
2018-10-12 20:45:56 UTC
Permalink
On Fri, Oct 12, 2018 at 10:21:50 -0700,
Dirk Hohndel <***@hohndel.org> wrote:
[...]
Post by Dirk Hohndel
We used to. I haven't checked with current master, though.
doesn't work on subsurface-mobile 2.1.4 on iOS.

i touched "Rescan", selected my teric from the "Connection" menu. the
vendor/computer fields stayed blank. touching download crashed the app.
--
Thomas 'Mike' Michlmayr | ignorami: n: The BOFH art of folding problem
<mike+***@cluon.priv.at> | lusers into representational shapes.
Joakim Bygdell
2018-10-12 17:22:00 UTC
Permalink
Post by Dirk Hohndel
Hi,
So we have that already. What am I missing?
https://github.com/Subsurface-divelog/subsurface/blob/master/core/btdiscovery.cpp#L20
did not realise that. But is my impression correct that we do not yet set
vendor and product in the dialogue based on that info? I currently don’t
have a BT dive computer with me.
On mobile we do, I haven't looked at the desktop version in a while.
Post by Dirk Hohndel
Best
Robert
--
.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oO
Robert C. Helling Elite Master Course Theoretical and Mathematical Physics
Scientific Coordinator
Ludwig Maximilians Universitaet Muenchen, Dept. Physik
print "Just another Phone: +49 89 2180-4523 Theresienstr. 39, rm. B339
stupid .sig\n"; http://www.atdotde.de
/ Jocke
Dirk Hohndel
2018-10-12 17:28:54 UTC
Permalink
Post by Dirk Hohndel
So we have that already. What am I missing? https://github.com/Subsurface-divelog/subsurface/blob/master/core/btdiscovery.cpp#L20 <https://github.com/Subsurface-divelog/subsurface/blob/master/core/btdiscovery.cpp#L20>
Oh, I need to add one that's just brilliant.
The Aqualung i770R identifies itself as "FQ012345" where the numbers are it's serial number.
Isn't that brilliant? I mean, once you realize that "FQ" is encoded as 0x4651 and once you know that that's the internal model number of the i770R.
I mean, it doesn't get more intuitive than that...
(thanks to Jef for explaining this to me...)
Just added this GEM to our detection.

Which makes me think that we detect most of the BT/BLE dive computers that we support.
Are there any that I'm forgetting?
Yeah, apparently the Tecdiving DiveComputer.eu.

The rest we seem to cover.

/D
Chirana Gheorghita Eugeniu Theodor
2018-10-13 01:23:24 UTC
Permalink
In this screen?
Post by Robert Helling
Hi,
I am currently working on a patch that in the dive computer download
dialogue sets vendor and product based on the bluetooth name
btDeviceSelectionDialog->getSelectedDeviceName()
when it is available.
For this it would be great to know how the supported dive computers
identify. What are the possible strings (shown before the bluetooth address
in the download dialogue)? Those of you with BT devices, how do your
computers identify?
Thanks
Robert
--
.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oO
Robert C. Helling Elite Master Course Theoretical and Mathematical Physics
Scientific Coordinator
Ludwig Maximilians Universitaet Muenchen, Dept. Physik
print "Just another Phone: +49 89 2180-4523 Theresienstr. 39, rm. B339
stupid .sig\n"; http://www.atdotde.de
_______________________________________________
subsurface mailing list
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
Loading...