Shearwater Petrel Bluetooth connection on Fedora 20

Rodrigo Severo rodrigo at fabricadeideias.com
Mon Apr 13 03:13:46 PDT 2015


On Sun, Apr 12, 2015 at 8:23 PM, Rick Walsh <rickmwalsh at gmail.com> wrote:

>
> I made a quick attempt this morning, but ran out of time and needed to
> go to work.  I'm not familiar with rfcomm or Bluetooth on Linux.
> Please excuse my ignorance, but what is the correct command?

Hi,

I managed to get stable connections using the rfcomm "connect" command.

Here is the script I use to connect the Petrel to my computer just
before using downloading data on Subsurface:
------------------------------------------------------------
# cat /usr/local/sbin/petrel_download
#!/bin/bash

read -p "Abra o Subsurface, abra o log de mergulho onde ficaram
guardados os mergulhos a serem baixados. Abra a opção Registros >>
Transferir do computador de mergulho. Verifique que a porta indicada
na janela de transferência é /dev/rfcomm0. Ligue o Petrel e ponha ele
no modo 'Upload log'. Tecle [Enter] quando estiver pronto."
hciconfig hci0 up

# Antigo Petrel com porta externa (vendido para o Cristofer)
#rfcomm connect /dev/rfcomm0 00:13:43:04:F2:F1

# Novo Petrel controlador do O2Ptima
rfcomm connect /dev/rfcomm0 00:13:43:08:96:48

# Novo Petrel sem porta externa
#rfcomm connect /dev/rfcomm0 00:13:43:07:90:CD

echo "Se não houve nenhum erro, só falta ir no Subsurface e mandar
baixar os mergulhos."
--------------------------------------------------------------

Unfortunately the comments are in portuguese but Google Translate is
your friend...

I have several "rfcomm connet" lines because I have/had more than one
Petrel. Leave only one of them uncommented.


Rodrigo


More information about the subsurface mailing list