I am developing a BLE mouse that can connect to 3 devices using nRF52840.
The sample code (peripheral_hids_mouse) allows simultaneous connection to multiple centrals.
However, when looking at the operation of a typical multi-device mouse (for example, the Logi M650), it appears that only one device is connected at a time and only switches between them quickly.
There is no problem with the minimum operation of 1:1 pairing and communication.
Problems occur when pairing with a new device.
When I switch devices, after disconnecting from the old central (PC1), when I start advertising to connect to the new central (PC2), the old central (PC1) connects.
When switching devices, the connection with the old central (PC1) is disconnected.
Advertising begins to connect to the new central (PC2).
At this time, the old central (PC1) will connect.
By changing the ID, it is possible to make it appear as if it is advertising a different device.
However, in that case, it will appear to the central (PC1) as just another mouse.
When I noticed this problem, I realized that I probably didn't have knowledge of the internal implementation of a standard BLE mouse.
I would be happy if you could either directly tell me how to solve this problem or provide me with the source code for a multi-device BLE mouse that I can use as a reference.
Could you please help me?