Post

Replies

Boosts

Views

Activity

Reply to BLE Device disconnection when calling via Handsfree profile on iOS with reason 722
Hi Gualtier, Thanks for your reply. After further inspect, we summarize logs from logarchive file. BLE Disconnect logs - https://developer.apple.com/forums/content/attachment/93ed0fd5-2a57-4a61-8924-a052343fddc2 Here is the predicate we use to filter logs -predicate '(subsystem == "com.apple.bluetooth") AND (category IN { "Stack.ATT", "Server.Audio", "Server.Handsfree", "Server.GATT", "Server.LE", "Server.LE.Connection", "Stack.HCI" })' Our app reads values from our BLE beacon device every 60 seconds in the background once connected. As you can see, at 2021-02-09 17:04:23.995037 bluetoothd: [com.apple.bluetooth:Server.GATT] Reading value for characteristic value handle 0x001b, char handle 0x001a on device "private" The read command never got responded until 2021-02-09 17:04:53.971431 bluetoothd: [com.apple.bluetooth:Stack.ATT] Timeout waiting for ATT response, forcing a disconnect. (status=65535) After that, a sequence of disconnecting logs popped out as we post previously. Other read value logs would be almost immediately followed by statedump logs We suspect this is the root cause of disconnection but we still need more hints to solve this. It only happens along with active HFP. Other than that our beacon is able to maintain stable connection with iPhone until battery dies out. Any advice would be appreciated :)
Feb ’21