<p dir="ltr"><br>
On 24 Oct 2015 00:51, "Claudiu Olteanu" <<a href="mailto:olteanu.vasilica.claudiu@gmail.com">olteanu.vasilica.claudiu@gmail.com</a>> wrote:<br>
><br>
> > I was under the impression that the Petrel 2 and the Uemis were your test<br>
> > devices when coding the Bluetooth interface and that access to the Petrel 2<br>
> > has more or less been sorted out?? Am I mistaken?<br>
><br>
> I have only two devices: OSTCs and OSTC 2. Rick helped me to test the<br>
> connectivity with a Petrel 2 device.<br>
><br>
> > Do you know whether the Petrel 2 definitely needs a pin number?<br>
> I have no idea. You can test it using the bluetoothctl tool. Here is an example:<br>
><br>
> $ bluetoothctl<br>
> [bluetooth]# agent KeyboardOnly<br>
> Agent registered<br>
> [bluetooth]# default-agent<br>
> Default agent request successful<br>
> [bluetooth]# pair 00:13:43:0D:21:0D<br>
> Attempting to pair with 00:13:43:0D:21:0D<br>
> [CHG] Device 00:13:43:0D:21:0D Connected: yes<br>
> Request PIN code<br>
> [agent] Enter PIN code: 0000<br>
><br>
> If it doesn't need a PIN code, then the last part will be missing.</p>
<p dir="ltr">I have tested my petrel 2 with two laptop  onboard Bluetooth controllers and 3 usb Bluetooth controllers.</p>
<p dir="ltr">From memory, with one of the usb controllers, I needed to enter the PIN 0000 (using bluetoothctl or KDE's bluetooth ui) to pair.  With the others I didn't need to enter a PIN.  I guess the PIN 0000 was assumed when pairing with the other controllers.</p>
<p dir="ltr">R</p>