Any brave dive computer download testers out there?

Linus Torvalds torvalds at
Thu Apr 26 09:21:26 PDT 2018

On Thu, Apr 26, 2018 at 7:44 AM, Jef Driesen <jef at> wrote:
> I also don't know the exact details on how these port numbers are assigned.
> I guess it depends on the dive computer firmware and/or its bluetooth stack.
> The valid range for rfcomm ports is 1-30 if I remember correctly.
> The Petrel is certainly not the only one which is using a different port
> number. I'm currently testing the and it seems to use port
> 6.

Ok, sounds like we should use port 0 too.

And that really makes most of the special cases just go away. So a
patch like the attached.

Dirk? Anybody with an rfcomm device? Willing to test the attached
"remove all the crazy crud" patch?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-patch
Size: 3075 bytes
Desc: not available
URL: <>

More information about the subsurface mailing list