-
Notifications
You must be signed in to change notification settings - Fork 626
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Second HOGP connection does not fire events #663
Comments
Hi Stéphane
In the log HCI LE Set Scan Params is called with Scan Interval = 0x0002, which is outside the allowed range and the Controller returns an error.
I've updated the gap_set_scan_params function to validate the params, but you still need to check the return status.
That's why scan with whitelist hasn't worked for you - the 'use whitelist' was never active.
As for the second HIDS Client connection, there are no GATT Queries. Did you check the return value of hids_client_connect()? It will return BTSTACK_MEMORY_ALLOC_FAILED if there are no addition hids_client_t structs in the pool, which is set set by MAX_NR_HIDS_CLIENTS. What's your value for MAX_NR_HIDS_CLIENTS?
Cheers
Matthias
… On 18 Feb 2025, at 22:13, Stéphane Lenclud ***@***.***> wrote:
Pico 2 W SDK 2.1.0-develop
Two devices are pairing with the board. One Logitech LIFT Mouse and one Lenovo ThinkPad TrackPoint Keyboard II.
The board boots then starts scanning for known devices. We tickle the keyboard which reconnect fine. The we move the mouse which fails to reconnect properly. GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED is never fired for the second device, nor did we get any error message. Looking at the HCI traffic though I'm guessing the mouse is connected too but events don't fire as they should.
ble-2x-fail.zip
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
Slion created an issue (bluekitchen/btstack#663)
Pico 2 W SDK 2.1.0-develop
Two devices are pairing with the board. One Logitech LIFT Mouse and one Lenovo ThinkPad TrackPoint Keyboard II.
The board boots then starts scanning for known devices. We tickle the keyboard which reconnect fine. The we move the mouse which fails to reconnect properly. GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED is never fired for the second device, nor did we get any error message. Looking at the HCI traffic though I'm guessing the mouse is connected too but events don't fire as they should.
ble-2x-fail.zip
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
|
Thanks, I've changed the scan interval to 4 then. The specs mention 1.28s that's why I used 2. That does not help connecting to a second device though. |
Same issue when using |
For the first successful device we get the following after the controller reads the Device Name: For the second device after: |
If I enable
For the second device all I get is:
|
My issue was that my config was setting It would be nice to have some error logs when running into such issues to save developers time. So in
We could even have some compile time warnings or errors like:
Also consider having |
Pico 2 W SDK 2.1.0-develop
Two devices are paired with the board. One Logitech LIFT Mouse and one Lenovo ThinkPad TrackPoint Keyboard II.
The board boots then starts scanning for known devices. We activate the keyboard which reconnects fine. Then we move the mouse which fails to reconnect properly. Though encryption is resumed,
GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED
is never fired for the second device, nor did we get any error message. Looking at the HCI traffic though I'm guessing the mouse is connected too but events don't fire as they should.If we connect the mouse first the keyboard won't connect as second device. So it's not device specific.
ble-2x-fail.zip
The text was updated successfully, but these errors were encountered: