August-8th-2019, 08:51 AM
(This post was last modified: August-12th-2019, 06:17 AM by Armin@netPI.)
Hello Alex,
I did a quick paring test with our bluetooth container and my iPhone X. I have not had any better device than this.
I started bluetoothctrl utility as you did but I called "pairable on" command first of all to enable pairing mode. Maybe this was missing in your setup.
So when I called the pairing command afterwards my iPhone was asking me for the passcode 12855 (and the pairing command too as you can see in the code section) to confirm and after I did that the pairing succeeded. On the iPhone bluetooth settings dialog I saw now a device "BlueZ 5.50" beeing connected ... after a while it was disconnecting.
Since I have no real application running on my netPI talking to the iPhone over bluetooth right now the connection will to state "Connected: no" after some seconds. When I click on my iPhone to connect to device paired "BlueZ 5.50" again the state changes to "Connected: yes" for a short time and so on.
For me everything works fine right now.
I did a quick paring test with our bluetooth container and my iPhone X. I have not had any better device than this.
I started bluetoothctrl utility as you did but I called "pairable on" command first of all to enable pairing mode. Maybe this was missing in your setup.
Code:
[bluetooth]# pairable on
Changing pairable on succeeded
[bluetooth]# pair F4:06:16:8D:DC:1D
Attempting to pair with F4:06:16:8D:DC:1D
[CHG] Device F4:06:16:8D:DC:1D Connected: yes
Request confirmation
[agent] Confirm passkey 128855 (yes/no): yes
[CHG] Device F4:06:16:8D:DC:1D Paired: yes
Pairing successful
[CHG] Device F4:06:16:8D:DC:1D Connected: no
[CHG] Device F4:06:16:8D:DC:1D Connected: yes
[CHG] Device F4:06:16:8D:DC:1D Connected: no
[CHG] Device F4:06:16:8D:DC:1D Connected: yes
[CHG] Device F4:06:16:8D:DC:1D Connected: no
[bluetooth]#
So when I called the pairing command afterwards my iPhone was asking me for the passcode 12855 (and the pairing command too as you can see in the code section) to confirm and after I did that the pairing succeeded. On the iPhone bluetooth settings dialog I saw now a device "BlueZ 5.50" beeing connected ... after a while it was disconnecting.
Since I have no real application running on my netPI talking to the iPhone over bluetooth right now the connection will to state "Connected: no" after some seconds. When I click on my iPhone to connect to device paired "BlueZ 5.50" again the state changes to "Connected: yes" for a short time and so on.
For me everything works fine right now.
„You never fail until you stop trying.“, Albert Einstein (1879 - 1955)