Petrel 2 Download

Linus Torvalds torvalds at linux-foundation.org
Fri May 22 14:15:49 PDT 2015


On Wed, May 20, 2015 at 4:40 AM, Rick Walsh <rickmwalsh at gmail.com> wrote:
>>
>> I'd brute force the available ones from 1 to 31 and test. Usually rfcomm
>> have guessed (or assumed as 1?) the right one for me.
>>
>
> [rick at localhost ~]$ sudo rfcomm -i hci1 connect 0 00:13:43:0E:6B:D0 1
> Can't connect RFCOMM socket: Connection refused
> [rick at localhost ~]$ sudo rfcomm -i hci1 connect 0 00:13:43:0E:6B:D0 2
> Can't connect RFCOMM socket: Connection refused
> [rick at localhost ~]$ sudo rfcomm -i hci1 connect 0 00:13:43:0E:6B:D0 3
> Can't connect RFCOMM socket: Connection refused
> [rick at localhost ~]$ sudo rfcomm -i hci1 connect 0 00:13:43:0E:6B:D0 4
> Can't connect RFCOMM socket: Connection refused
> [rick at localhost ~]$ sudo rfcomm -i hci1 connect 0 00:13:43:0E:6B:D0 5
> Connected /dev/rfcomm0 to 00:13:43:0E:6B:D0 on channel 5
> Press CTRL-C for hangup
>
> The connection works with channel 5.  I have no idea what's special
> about channel 5 but I'm not complaining.

Asking Marcel (the bluetooth person), he suggested:

   "Try something like “sdptool browse <bdaddr>” and see if it shows
you information about the SDP database. Most likely they are using the
Serial Port Profile (SPP). If “browse” does not work, try “records”
which will brute force the database"

I don't know what the output would be, but if you can try that, it
might be a reasonable addition to some FAQ about "how to connect to BT
devices". Instead of trying all different channels, maybe that
"sdptool browse" (or "sdptool records") will just give the proper
channel to use directly.

I also suggested the bluez people add auto-channel connection, and it
might happen some day.

                 Linus


More information about the subsurface mailing list