Hi everyone,
I have a Dahlia v1.1B board with the Verdin iMX8M Mini Quad 2GB WB IT V1.1B module. The image I am using is the Toradex Embedded Linux Reference Multimedia Image 7.0.0+build.1 (2024-10-01).
I configured Bluetooth using bluetoothctl
and paired the iPhone successfully. However, after rebooting, when I try to reconnect, I get the following error:
[bluetooth]# connect XX:XX:XX:XX:XX:XX
Attempting to connect to XX:XX:XX:XX:XX:XX
hci0 XX:XX:XX:XX:XX:XX type BR/EDR connected eir_len 17
[CHG] Device XX:XX:XX:XX:XX:XX Connected: yes
Request confirmation
[agent] Confirm passkey 160695 (yes/no): yes
hci0 XX:XX:XX:XX:XX:XX type BR/EDR disconnected with reason 3
[CHG] Device XX:XX:XX:XX:XX:XX Connected: no
Then, when I try to connect from the iPhone, I see this log:
bluetoothctl
hci0 new_settings: powered connectable discoverable bondable ssp br/edr le secure-conn
Agent registered
[CHG] Controller EC:2E:98:86:B0:76 Pairable: yes
hci0 XX:XX:XX:XX:XX:XX type BR/EDR connected eir_len 22
[CHG] Device XX:XX:XX:XX:XX:XX Connected: yes
hci0 XX:XX:XX:XX:XX:XX type BR/EDR disconnected with reason 3
[CHG] Device XX:XX:XX:XX:XX:XX Connected: no
I need to reconfigure the connection for it to work again.
I’ve also noticed this error in the logs after trying to reconnect using the dmesg
command:
[ 10.462055] Bluetooth: hci0: Invalid link address type 1 for XX:XX:XX:XX:XX:XX
Additionally, when using btmon
, I can see the following logs during the connection attempt, which indicate the issue:
> HCI Event: Link Key Request (0x17) plen 6 #80 [hci0] 14.719942
Address: XX:XX:XX:XX:XX:XX (Apple, Inc.)
< HCI Command: Link Key Request Negative Reply (0x01|0x000c) plen 6 #81 [hci0] 14.720320
Address: XX:XX:XX:XX:XX:XX (Apple, Inc.)
> HCI Event: Command Complete (0x0e) plen 10 #82 [hci0] 14.723366
Link Key Request Negative Reply (0x01|0x000c) ncmd 1
Status: Success (0x00)
Address: XX:XX:XX:XX:XX:XX (Apple, Inc.)
> HCI Event: Link Key Request (0x17) plen 6 #83 [hci0] 14.825783
Address: XX:XX:XX:XX:XX:XX (Apple, Inc.)
< HCI Command: Link Key Request Negative Reply (0x01|0x000c) plen 6 #84 [hci0] 14.826157
Address: XX:XX:XX:XX:XX:XX (Apple, Inc.)
> HCI Event: Command Complete (0x0e) plen 10 #85 [hci0] 14.830207
Link Key Request Negative Reply (0x01|0x000c) ncmd 1
Status: Success (0x00)
Address: XX:XX:XX:XX:XX:XX (Apple, Inc.)
> HCI Event: Disconnect Complete (0x05) plen 4 #86 [hci0] 15.878774
Status: Success (0x00)
Handle: 1 Address: XX:XX:XX:XX:XX:XX (Apple, Inc.)
Reason: Remote User Terminated Connection (0x13)
@ MGMT Event: Device Disconnected (0x000c) plen 8 {0x0002} [hci0] 15.879154
BR/EDR Address: XX:XX:XX:XX:XX:XX (Apple, Inc.)
Reason: Connection terminated by remote host (0x03)
@ MGMT Event: Device Disconnected (0x000c) plen 8 {0x0001} [hci0] 15.879154
BR/EDR Address: XX:XX:XX:XX:XX:XX (Apple, Inc.)
Reason: Connection terminated by remote host (0x03)
Interestingly, when I test with an Android phone, the connection works fine without issues. However, I’m having trouble with the iPhone.
Has anyone encountered this issue with iPhones? I’m concerned the pairing is not preserved properly after reboot.
Thanks for your help!
Best regards,
Ferran