-
Notifications
You must be signed in to change notification settings - Fork 672
Description
Describe the bug
I'm experiencing issues when connecting to a bonded iOS peripheral using BTstack on an embedded system with a BlueNRG-M2SA controller.
My device acts as the central (master).
Upon connection, it initiates LE Read Remote Features and then restores encryption.
With an iphone SE I have no issue during conncetion
With an Iphone 17 Pro I am facing problem during connection
Expected behavior
The bonded iOS device should connect without issues, regardless of the iPhone model.
HCI Packet Logs
IOS btstack.zip
Attached you can find:
IphoneSE_working.pklg: This is the trace of the working Iphone SE
Iphone17Pro_NW.pklg: This is the trace of the not working Iphone 17
To me it seems there are some problem when handling request the comes in between the "SENT LE Read Remotes Features" and the "RCVD LE META (LE read Remotes Features Complete)".
In the working log, the "Rcvd Read By Group Type Request, Primary Service, Handles: 0x0001..0xffff" packet coming from the phone comes after the Read remote features complete command. (And it seems to be ignored?)
In the not working one, the "Rcvd Read By Group Type Request, Primary Service, Handles: 0x0001..0xffff" comes before having completed the command, a error response is sent and then no read remote feature event comes from the controller.
Sincerly, I don't know if it is a stack problem, or if there's something controller side: The controller direcrly answer to the "Sent LE Read Remote Features" with "Number of allowed command packets: 1" event if it is still processing the Read Remote features command.
Environment: (please complete the following information):
- Current BTstack branch: develop (8b154a3)
- Bluetooth Controller Bluenrg-m2sa
- Remote device: iphone 17 Pro with 26.1. Iphone SE with 18.6.2