Allow multiple parallel HOGP connections#1597
Conversation
b9855db to
5a14563
Compare
|
Sorry for the wait! I have filled in the session handling. My quick smoke test says:
Claude thinks this about it:
|
|
These two points have been addressed in the last commit, thanks for the detailed analysis! What's still strange, even from simply booting up with USB connection, on each report send the right side prints "Can't send report - selected connection is not ready!" even if the report is still sent over USB. I don't know if this needs to be fixed here, or it's already addressed in your branch. |
2d24af8 to
a6607b4
Compare
|
That means that
Which branch exactly do you mean? My aim is to get a working PoC on this branch and just then start tying all the branches into one. |
|
Everything seems fine now 😊. Thanks! One thing that caught my attention - a previously paired connection didn't take - it connected, security got raised, but the ble_app never fired. I had to unpair and re-pair. I assume something in the gatt registration changed and android went after its remembered identifiers, so it is probably nothing. Will start consolidating open branches and give it a more thorough test then. |
This is the PR achieving multiple parallel HOGP connections. To allow for this, a new concept is introduced, the
hid::session. This object has the lifetime of an HID connection, in the case of USB as long as the device is configured, in the case of BLE from the point where a HOGP attribute is accessed until disconnection. In the case of BLE, eachbt_connneeds its ownhid::session, and this is the part that's not implemented yet, because I don't know the full context. @kareltucek I ask you to go over this and implement the newTODOs in the changes, and all the adaptations for the new connection switching logic.I have only done a quick smoke test on this first branch version with UHK60, UHK80 is guaranteed not to work without further changes.
Closes #1549