Bluetooth not establishing connection

Hello,
my Flipper will no longer connect via BT to neither Android (Samsung A9) nor laptop (HP Elitebook). Both devices worked previously, I had no problems using it for a few months. Flipper is listed among available devices, but when I try to connect it doesn’t show the pin and I get “Unable to connect Flipper / connection was cancelled or the pairing code was entered incorrectly”. I get similar errors when not using Flipper app. I tried rebooting, forgetting paired devices, turning it off (for a whole day), factory reset.
Any more ideas, please?
HW Version Info: 12.F7B9C6 R04
FW Version Info: 0.84.2 [02-06-2023]

2 Likes

Same here, same error on my OnePlus 8T.

It works perfectly well with remote control but not the main Bluetooth connection.
I don’t know if it broke after the latest firmware update, recent phone OTA security update (5th June security patch) or new flipper app installation.

Have you, like me, installed flipper applications from the new experimental store, @Brdavs ?

FW 0.86.1[06-07-2023]
HW 12.F7B9C6 R01
App 1.6.0.1092 (it appeared with the version before this one)

Here’s a screen recording of the issue:

Screen recording

I uninstalled the app, rebooted the phone, rebooted the flipper same issue.
I enabled debug logs and the only thing I got is this :

Flipper Logs - OnePlus 8T KO
985238 [I][BtGap] Connection parameters: Connection Interval: 36 (45 ms), Slave Latency: 0, Supervision Timeout: 500
985378 [D][BtGap] Slave security initiated
985381 [I][BtGap] Pass key request event. Pin: 142085
986953 [E][BtGap] Pairing failed with status: 2. Terminating connection
987041 [I][BtGap] Disconnect from client. Reason: 16

I also have a logcat of the phone. I won’t post it here for security reasons (in case there’s sensitive information in there) but if a member of the Flipper Team needs it, I could send it to them.

Also I tried on another phone (Xiaomi Redmi Note 9 - MIUI 12 / Android 10) and it worked.

Flipper Logs - Xiaomi Redmi Note 9 OK
1435841 [D][BtGap] set_non_discoverable success
1449882 [I][BtGap] Connection parameters: Connection Interval: 39 (48 ms), Slave Latency: 0, Supervision Timeout: 500
1449884 [W][BtGap] Unsupported connection interval. Request connection parameters update
1449994 [D][BtGap] Slave security initiated
1449996 [D][BtGap] Procedure complete event
1450335 [I][BtGap] Connection parameters event complete
1450337 [I][BtGap] Connection parameters: Connection Interval: 30 (37 ms), Slave Latency: 0, Supervision Timeout: 500
1450694 [I][BtGap] Connection parameters event complete
1450698 [I][BtGap] Connection parameters: Connection Interval: 6 (7 ms), Slave Latency: 0, Supervision Timeout: 500
1450702 [W][BtGap] Unsupported connection interval. Request connection parameters update
1450735 [D][BtGap] Procedure complete event
1450884 [I][BtGap] Connection parameters event complete
1450887 [I][BtGap] Connection parameters: Connection Interval: 30 (37 ms), Slave Latency: 0, Supervision Timeout: 500
...
1477009 [I][BtGap] Pass key request event. Pin: 370205
1495572 [I][BtKeyStorage] Base address: 200301E4. Start update address: 200301E4. Size changed: 88
1495575 [I][SavedStruct] Saving "/int/.bt.keys"
1495578 [T][StorageAPI] File/Dir 00002A70 alloc
1495581 [I][BtGap] Pairing complete
...
1495732 [I][BtSrv] Open RPC connection
1495734 [D][GattChar] Updating Flow control char
1495736 [T][StorageInt] Device read: block 1, off 568, buffer: 20007030, size 16, translated address: 080C1238
1495738 [T][StorageInt] Device read: block 1, off 584, buffer: 20007030, size 16, translated address: 080C1248
1495742 [D][GattChar] Updating RPC status char
1495745 [D][RpcSrv] Session started
...
1496544 [T][StorageAPI] File 00002A70 - 00002B7C open (/int/.bt.keys)
...
1496606 [T][S1497211 [I][BtGap] Rx MTU size: 414
1497510 [I][BtGap] Connection parameters event complete
1497513 [I][BtGap] Connection parameters: Connection Interval: 12 (15 ms), Slave Latency: 0, Supervision Timeout: 500
1497515 [W][BtGap] Unsupported connection interval. Request connection parameters update
1497563 [D][BtGap] Procedure complete event
1497667 [I][BtGap] Connection parameters event complete
1497669 [I][BtGap] Connection parameters: Connection Interval: 30 (37 ms), Slave Latency: 0, Supervision Timeout: 500
1498114 [D][BtSerialSvc] Received 245 bytes
1498117 [D][BtSerialSvc] Available buff size: 779
1498119 [D][BtSerialSvc] Received 42 bytes
1498121 [D][BtSerialSvc] Available buff size: 758
...

Have you tried restoring/reflashing firmware, I managed to get some situations where i broke pairing functionality. Mostly this works around the problem till the bt-stack from vendors are patched, but a lot of chinese brand androids are known for these pairing issues. My OP also had that problem with a lot of devices on older software versions, but resetting flipper to factory and car dash also, temporary fixed it and I used that as a workaround till OP finally fixed their drivers. But this seems to be more of a bt hardware/driver combination issue and not specifically related to the FZ. Just try reinstalling firmware with qflipper or other options, chances are good it works after, till it breaks again :slight_smile:

Yeah I already updated to 0.86.2 and reflashed via qflipper since my first message. But you gave me an idea!
I didn’t want to factory reset my Flipper (especially since it didn’t work for @Brdavs) so I tried one more thing: I rebooted my OnePlus into Safe Mode (Power Off > Power On > Hold Vol- when you see the O+ logo) then I paired my Flipper without any issue.
After that, I rebooted again into normal mode, and now I can use the app without any issue :tada:

Thanks for the lead @Sir_Fap_A_Lot !

I think you should try it @Brdavs :slight_smile:

1 Like