<div dir="auto">Can this be applied? Or something similar?</div><div class="gmail_extra"><br><div class="gmail_quote">On 6 Apr. 2017 8:28 am, "Rick Walsh" <<a href="mailto:rickmwalsh@gmail.com">rickmwalsh@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Setting up an RFCOMM connection has not been required for a long time.<br>
<br>
Reported-by: Stephen Hemminger <<a href="mailto:stephen@networkplumber.org">stephen@networkplumber.org</a>><br>
Signed-off-by: Rick Walsh <<a href="mailto:rickmwalsh@gmail.com">rickmwalsh@gmail.com</a>><br>
---<br>
 Documentation/FAQ.wordpress | 115 ++----------------------------<wbr>--------------<br>
 1 file changed, 5 insertions(+), 110 deletions(-)<br>
<br>
diff --git a/Documentation/FAQ.wordpress b/Documentation/FAQ.wordpress<br>
index cd26f0d..1bc9c74 100644<br>
--- a/Documentation/FAQ.wordpress<br>
+++ b/Documentation/FAQ.wordpress<br>
@@ -124,116 +124,11 @@ Dive history is different than the dive profiles on the log. The history only ke<br>
 If you have downloaded your dives to different dive logging software before they were overwritten, there is a high change that Subsurface can import these. However, if the logs are only on your dive computer, they cannot be salvaged after being over written by new dives.<br>
<br>
 [/expand]<br>
-[expand title="How do I download dives from my Shearwater Petrel 2 (or other Bluetooth dive computer) on Linux?"]<br>
-<br>
-Setting up a connection to download dives from your Bluetooth-enabled device, such as the Shearwater Petrel, is not yet an automated process and will generally require the command prompt.  It is essentially a three step process.<br>
-<br>
-<ol><br>
-<li>Enable Bluetooth controller and pair your dive computer</li><br>
-<li>Establish an RFCOMM connection</li><br>
-<li>Download the dives with Subsurface</li><br>
-</ol><br>
-<br>
-Users have reported difficulties with some Bluetooth controllers.  If you have an onboard controller, try that first.  It is simplest if you remove any USB Bluetooth dongles.  If you have a USB dongle that came with your dive computer, try that before any others.<br>
-<br>
-Make sure you know how to put your dive computer into upload mode.  On the Shearwater Petrel, Petrel 2 and Nerd, cycle through the menu, select 'Dive Log', then 'Upload Log'.  The display will read 'Initializing', then 'Wait PC 3:00' and will countdown.  Once the connection is established, the display reads 'Wait CMD ...' and the countdown continues.  When downloading the dive from Subsurface, the display reads 'Sending' then 'Sent Dive'.<br>
-<br>
-To establish the connection you need to have root access through sudo or su, and you will need to have the correct permissions on your system to download the dives.  On Fedora 22 and probably most other systems, this means becoming a member of the dialout group if you are not already.  This can be done graphically, or on the command terminal, enter:<br>
-<pre><code style="font-size: 8pt;">sudo usermod -a -G dialout username</code></pre><br>
-Log out and log in for the change to take effect.<br>
-<br>
-<em>Enabling the Bluetooth controller and pairing your dive computer</em><br>
-You may be able to set up the Bluetooth controller and pair your dive computer using your distros graphical environment.  Once you've set your dive computer to upload mode, click the Bluetooth icon in the system tray and selecting 'Add new device'.  Your dive computer should appear.  If asked for a password, enter 0000.  Write down or copy the MAC address of your dive computer - you'll need this later.  It should be in the form 00:11:22:33:44:55.<br>
-<br>
-If the graphical method didn't work, you need to pair the device from the command line.  Open a terminal and use hciconfig to check the Bluetooth controller status<br>
-<pre><code style="font-size: 8pt;">hciconfig<br>
-hci0:   Type: BR/EDR  Bus: USB<br>
-        BD Address: 01:23:45:67:89:AB  ACL MTU: 310:10  SCO MTU: 64:8<br>
-        DOWN<br>
-        RX bytes:504 acl:0 sco:0 events:22 errors:0<br>
-        TX bytes:92 acl:0 sco:0 commands:21 errors:0</code></pre><br>
-This tells you you have one controller, with MAC address 01:23:45:67:89:AB, connected as hci0.  Its status is 'DOWN', i.e. not powered.  Additional controllers will appear as hci1, etc.  If you didn't have a Bluetooth dongle plugged in when you booted your computer, hci0 is probably the onboard.  We need to power on the controller and enable authentication:<br>
-<pre><code style="font-size: 8pt;">sudo hciconfig hci0 up auth<br>
-(enter password when prompted)<br>
-hciconfig<br>
-hci0:   Type: BR/EDR  Bus: USB<br>
-        BD Address: 01:23:45:67:89:AB  ACL MTU: 310:10  SCO MTU: 64:8<br>
-        UP RUNNING PSCAN AUTH<br>
-        RX bytes:1026 acl:0 sco:0 events:47 errors:0<br>
-        TX bytes:449 acl:0 sco:0 commands:46 errors:0</code></pre><br>
-Check that the status now includes 'UP', 'RUNNING' AND 'AUTH'<br>
-<br>
-If there are multiple controllers running, it's easiest if you turn off the controller(s) you don't plan to use. E.g.<br>
-<pre><code style="font-size: 8pt;">sudo hciconfig hci1 down</code></pre><br>
-Next step is to 'trust' and 'pair' the dive computer.  On distros with Bluez 5, such as Fedora 22, you can use a tool called blutootctl, which will bring up its own command prompt.<br>
-<pre><code style="font-size: 8pt;">bluetoothctl<br>
-[NEW] Controller 01:23:45:67:89:AB localhost.localdomain [default]<br>
-[bluetooth]# agent on<br>
-Agent registered<br>
-[bluetooth]# default-agent<br>
-Default agent request successful<br>
-[bluetooth]# scan on                        <----now set your dive computer to upload mode<br>
-Discovery started<br>
-[CHG] Controller 01:23:45:67:89:AB Discovering: yes<br>
-[NEW] Device 00:11:22:33:44:55 Petrel<br>
-[bluetooth]# trust 00:11:22:33:44:55        <----you can use the tab key to autocomplete the MAC address<br>
-[CHG] Device 00:11:22:33:44:55 Trusted: yes<br>
-Changing 00:11:22:33:44:55 trust succeeded<br>
-[bluetooth]# pair 00:11:22:33:44:55<br>
-Attempting to pair with 00:11:22:33:44:55<br>
-[CHG] Device 00:11:22:33:44:55 Connected: yes<br>
-[CHG] Device 00:11:22:33:44:55 UUIDs: 00001101-0000-1000-8000-<wbr>0089abc12345<br>
-[CHG] Device 00:11:22:33:44:55 Paired: yes<br>
-Pairing successful<br>
-[CHG] Device 00:11:22:33:44:55 Connected: no</code></pre><br>
-If asked for a password, enter 0000.  It's ok if the last line says 'Connected: no'.  The important part is the line above, 'Pairing successful'.<br>
-<br>
-If your system has Bluez version 4 (e.g. Ubuntu 12.04 through to 15.04), you probably don't have bluetoothctl, but do have a script called bluez-simple-agent or just simple-agent.<br>
-<pre><code style="font-size: 8pt;">hcitool -i hci0 scanning<br>
-Scanning ...<br>
-        00:11:22:33:44:55       Petrel<br>
-bluez-simple-agent hci0 00:11:22:33:44:55</code></pre><br>
-Once you have paired your dive computer, you are ready to set up the RFCOMM connection<br>
-<br>
-<em>Establishing the RFCOMM connection</em><br>
-The command to establish an RFCOMM connection is:<br>
-<pre><code style="font-size: 8pt;">sudo rfcomm -i &lt;controller&gt; connect &lt;dev&gt; &lt;bdaddr&gt; [channel]</code></pre><br>
-&lt;controller&gt; is the Bluetooth controller, hci0<br>
-&lt;dev&gt; is the RFCOMM device file, rfcomm0<br>
-&lt;bdaddr&gt; is the dive computer's MAC address, 00:11:22:33:44:55<br>
-[channel] is the dive computer's Bluetooth channel we need to connect to.  If you omit it, channel 1 will be assumed.  Based on a limited number of user reports, the channel for different dive computers is probably:<br>
-<ul><br>
-<li>Shearwater Petrel 2: channel 5<br>
-<li>Shearwater Nerd: channel 5<br>
-<li>Shearwater Petrel 1: channel 1<br>
-<li>OSTC Sport: Channel 1<br>
-</ul><br>
-E.g. to connect a Shearwater Petrel 2, set the dive computer to upload mode and enter:<br>
-<pre><code style="font-size: 8pt;">sudo rfcomm -i hci0 connect rfcomm0 00:11:22:33:44:55 5<br>
-(enter password when prompted)<br>
-Connected /dev/rfcomm0 to 00:11:22:33:44:55 on channel 5<br>
-Press CTRL-C for hangup</code></pre><br>
-To connect a Shearwater Petrel 1 or OSTC Sport, set the dive computer to upload mode and enter:<br>
-<pre><code style="font-size: 8pt;">sudo rfcomm -i hci0 connect rfcomm0 00:11:22:33:44:55<br>
-(enter password when prompted)<br>
-Connected /dev/rfcomm0 to 00:11:22:33:44:55 on channel 1<br>
-Press CTRL-C for hangup</code></pre><br>
-If you don't know what channel your dive computer uses, or the channel in the list above doesn't work, the command 'sdptool records' should help determine the appropriate channel.  The output below is from a Shearwater Petrel 2.<br>
-<pre><code style="font-size: 8pt;">sdptool -i hci0 records 00:11:22:33:44:55<br>
-Service Name: Serial Port<br>
-Service RecHandle: 0x10000<br>
-Service Class ID List:<br>
-  "Serial Port" (0x1101)<br>
-Protocol Descriptor List:<br>
-  "L2CAP" (0x0100)<br>
-  "RFCOMM" (0x0003)<br>
-    Channel: 5</code></pre><br>
-If you have a Bluetooth dive computer not in the list above, or if the channel listed is not correct, please let the Subsurface developers know on the user forum or the developer mailing list <a href="mailto:subsurface@subsurface-divelog.org">subsurface@subsurface-divelog.<wbr>org</a>.<br>
-<br>
-<em>Download the dives with Subsurface</em><br>
-After establishing the RFCOMM connection and while the dive computer's upload mode countdown is still running, go to Subsurface, select 'Import'->'Import from dive computer' and enter appropriate Vendor (e.g. Shearwater), Dive Computer (Petrel), Device or Mount Point (/dev/rfcomm0) and click 'Download'.<br>
-<br>
-If you get a permissions error, you probably need to add yourself to the dialout group, logout and login again.<br>
+[expand title="How do I download dives from my Bluetooth dive computer (e.g. Shearwater, OSTC) on Linux?"]<br>
+<br>
+Downloading dives over Bluetooth on all platforms is done using the "Choose Bluetooth download mode" option when downloading dives, and pairing with the detected dive computer. This is further explained in the <a href="<a href="https://subsurface-divelog.org/documentation/subsurface-4-user-manual/" rel="noreferrer" target="_blank">https://subsurface-<wbr>divelog.org/documentation/<wbr>subsurface-4-user-manual/</a>"><wbr>Subsurface User Manual</a>.<br>
+<br>
+Previous versions of Subsurface required setting up an RFCOMM connection from the command line before downloading dives from a Bluetooth enabled dive computer. This is no longer the case.<br>
<br>
 [/expand]<br>
 [expand title="How do I fix permission errors when trying to download from my Atomics Aquatics Cobalt under Linux?"]<br>
--<br>
2.9.3<br>
<br>
</blockquote></div></div>