Failed bluetooth connect

365 views
Skip to first unread message

Niko Miilus

unread,
Mar 24, 2018, 2:25:14 AM3/24/18
to Subsurface Divelog
Hey,

-Ubuntu 16.04
-divelog 4.7.7
-Petrel 2

I have promlem to bluetoooth connect with new version divelog.
I have try everythin, what i have fiend in here and manual.
Petrel pair is ok. But its gives failed transfor this>

Yhteys epäonnistui: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/blueman/services/meta/SerialService.py", line 29, in connect
port_id = create_rfcomm_device(Adapter(props['Adapter']).get_properties()['Address'], props['Address'], 1)
File "_blueman.pyx", line 218, in _blueman.create_rfcomm_device (_blueman.c:2127)
Exception: Can't connect RFCOMM socket

And failier libdivecomputer....

I have't had any problem whit last 3 year at older versions.

Linus Torvalds

unread,
Mar 24, 2018, 10:38:05 AM3/24/18
to Subsurface Divelog
On Fri, Mar 23, 2018 at 11:25 PM, Niko Miilus <niko....@gmail.com> wrote:
> Hey,
>
> -Ubuntu 16.04
> -divelog 4.7.7
> -Petrel 2
>
> I have promlem to bluetoooth connect with new version divelog.
> I have try everythin, what i have fiend in here and manual.
> Petrel pair is ok. But its gives failed transfor this>

This looks like some odd Ubuntu error, quite independent of subsurface
or libdivecomputer.

Looks similar to

https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/1590798

but I have no idea what he solution is.

Linus

Niko Miilus

unread,
Mar 24, 2018, 12:15:59 PM3/24/18
to Subsurface Divelog
Yes, similar promlem.

My computer is Asus X756U.

And i playd more to get info here.
Petrel pair is ok at computer and Subsurface.
And i put bluetooth ON computer and Petrel. And Petrel transfor mode.
At this point everythin is normal and OK.
Then Subsurface> Download> 1-2 second it drop's the Petrel bluetooth OFF. But computer bluetooth is ON and Petrel transfor mode is ON.
So promlem is that bluetooth drop's OFF at Petrel when transfor'n.

Linus Torvalds

unread,
Mar 24, 2018, 12:38:40 PM3/24/18
to Subsurface Divelog


On Sat, Mar 24, 2018, 09:16 Niko Miilus <niko....@gmail.com> wrote:

So promlem is that bluetooth drop's OFF at Petrel when transfor'n.

I haven't used the Petrel, but I've seen random odd problems with the Perdix AI (but that is BLE only, not BT rfcomm) when it thinks it is paired to some other device and then gets confused when you access it from a new device.

It randomly goes away, and things start working again, but I don't know if your problem is the same. Sadly, there is no way to explicitly unpair on the shearwater devices afaik. 

If you have used the shearwater sync app on your phone (I forget the name of it) recently, maybe that's it. Make sure the phone that the shearwater may think it is paired to is not near (or off), and try again after turning the shearwater on and off. 

But I never figured out what the pattern really is. But once it connect to my laptop, it seems to *continue* to connect ok.

But I use Fedora, not Ubuntu, and my laptop is different anyway, and you have a different dive computer. So your problem may simply not be related at all.

One thing that might also be worth testing is to simply do the download on your phone using subsurface - if you have an Android phone. You'll obviously need to have cloud sync set up for subsurface for that to be useful.

     Linus
Message has been deleted

Niko Miilus

unread,
Apr 7, 2018, 11:49:25 AM4/7/18
to Subsurface Divelog
Hei,

New update 4.7.8 came.

I'll donwload it. And i still have same problem.

Dirk Hohndel

unread,
Apr 7, 2018, 2:29:08 PM4/7/18
to subsurfac...@googlegroups.com
Subsurface doesn't include any Python code; I don't understand the error that you are getting -- it isn't from Subsurface.

Not sure how Blueman is involved in the setup in your case, but that's where I would start looking.

/D

--
You received this message because you are subscribed to the Google Groups "Subsurface Divelog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to subsurface-dive...@googlegroups.com.
To post to this group, send email to subsurfac...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/subsurface-divelog/d50b49cb-a691-46a2-882a-9d9e98e9deba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Niko Miilus

unread,
Apr 10, 2018, 10:30:49 AM4/10/18
to Subsurface Divelog
Error is, that i can't download dive's.
Every setup is ok and pair.
If i'll take Blueman off and use the Ubuntu's bluethoot. Error message is failed libdivecomputer.

i don't know any more. Where to look to solve the download problem.
To unsubscribe from this group and stop receiving emails from it, send an email to subsurface-divelog+unsub...@googlegroups.com.

Dirk Hohndel

unread,
Apr 10, 2018, 11:02:41 AM4/10/18
to subsurfac...@googlegroups.com
Downloading over Bluetooth is often causing problems - this is not unique to Subsurface.
Please set things up without Blueman and in Subsurface check the "libdivecomputer log file" checkbox in the download dialog.
This will ask you for a location where to store that log file. Then proceed to attempt to download the dives and send us that log file.
Does the Petrel switch into "CMD" or "Sending" mode at any time, or does it just sit in "waiting for connection" mode until it times out?

/D

To unsubscribe from this group and stop receiving emails from it, send an email to subsurface-dive...@googlegroups.com.

To post to this group, send email to subsurfac...@googlegroups.com.

Niko Miilus

unread,
Apr 11, 2018, 3:02:29 PM4/11/18
to Subsurface Divelog
Log file
Subsurface: v4.7.8, built with libdivecomputer v0.7.0-devel-Subsurface-branch (d02f1c3cdcc6a04d085538578d872ec6e3282382)
ERROR: Failed to open the serial port. [in shearwater_common.c:46 (shearwater_common_open)]

Petrel is "wait PC" mode all the time.

Niko Miilus

unread,
May 2, 2018, 1:46:15 PM5/2/18
to Subsurface Divelog
Hey,

Can we solved the problem or not?

i'll dive every week and it would be nice to get dives in logbook.

-Niko

Niko Miilus

unread,
May 6, 2018, 1:11:42 AM5/6/18
to Subsurface Divelog
Hey,

New update!!. Now download works and faster :D.

Thank you!!
Reply all
Reply to author
Forward
0 new messages