<p dir="ltr">Hi Andrej,</p>
<p dir="ltr">On 7 Aug 2015 6:06 am, "Andrej Prsa" <<a href="mailto:aprsa09@gmail.com">aprsa09@gmail.com</a>> wrote:<br>
><br>
> Hi guys,<br>
><br>
> This has been discussed before and it seems that some people managed to<br>
> get it to work, but there seems to be no definitive way to get it to<br>
> work. I tried the FAQ entry and that didn't do it for me. I tried the<br>
> dongle that came with the DC as well as my built-in bluetooth, and both<br>
> times I'm seeing the same problem. I can pair with the DC without a<br>
> problem with:<br>
><br>
>         sudo bluez-simple-agent hci0 [addr]<br>
><br>
> I can initialize a connection with:<br>
><br>
>         sudo rfcomm -i hci0 connect rfcomm0 [addr] 5<br>
><br>
> But, in precisely 10 seconds, the DC displays SLIP RX: Timeout, and<br>
> syslog spews out the following:<br>
><br>
> kernel: [ 9142.871813] Bluetooth: TIOCGSERIAL is not supported<br>
> ModemManager[744]: <info>  Creating modem with plugin 'Generic' and '1' ports<br>
> ModemManager[744]: <warn>  Could not grab port (tty/rfcomm0): 'Cannot add port 'tty/rfcomm0', unhandled serial type'<br>
> ModemManager[744]: <warn>  Couldn't create modem for device at '/sys/devices/virtual/tty/rfcomm0': Failed to find primary AT port<br>
> ModemManager[744]: <info>  Creating modem with plugin 'Generic' and '1' ports<br>
> ModemManager[744]: <warn>  Could not grab port (tty/rfcomm0): 'Cannot add port 'tty/rfcomm0', unhandled serial type'<br>
> ModemManager[744]: <warn>  Couldn't create modem for device at '/sys/devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.6/4-1.6:1.0/bluetooth/hci0/hci0:12/rfcomm0': Failed to find primary AT port<br>
> kernel: [ 9148.870288] Bluetooth: TIOCGSERIAL is not supported<br>
> kernel: [ 9148.870355] Bluetooth: TIOCGSERIAL is not supported<br>
> ModemManager[744]: <info>  (tty/rfcomm0): released by modem /sys/devices/virtual/tty/rfcomm0<br>
><br>
> Tried and retried, to no avail. The DC always times out after 10 seconds.<br>
><br>
> Any ideas/hints?</p>
<p dir="ltr">Firstly, try the simplest options.<br>
1) turn off your petrel, turn it back on again and try again. Sometimes this works.<br>
2) try a fresh battery in the petrel. Bluetooth takes a bit of power for devices, and they struggle with low battery.</p>
<p dir="ltr">What distro are you using, and what version of bluez?  It appears you have bluez v4.x. I tested with bluez v5.x. Perhaps it works slightly differently with the earlier version.</p>
<p dir="ltr">Also, what version of Subsurface? The latest stable is 4.4.2 and will be installable by adding a repository following instructions on the download page. Most distros include an older version.</p>
<p dir="ltr">Shearwater released a firmware update a few weeks ago. Did you install it? I wrote that faq entry after testing with the previous firmware. I know the update changed how bluetooth communicates, at least with android devices. It might have altered the rfcomm channel too.</p>
<p dir="ltr">Do you have sdptool installed? It should be in a package called bluez-utils. Try running.<br>
sdptool -i hci0 records [addr]</p>
<p dir="ltr">This should show what each channel does. Maybe you don't want channel 5 to set up the rfcomm connection.</p>
<p dir="ltr">Finally, if you want to test a testing version of subsurface, the latest daily build includes native bluetooth support. No need to set up the connection with rfcomm or use sudo. How you install a daily build depends on your distro.</p>
<p dir="ltr">Cheers, </p>
<p dir="ltr">Rick </p>