Replies: 5 comments 4 replies
-
|
I think the issue here is that the |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for the suggestion. I tried it, but it fails in the same way. My impression is that the connection fails before any operation can be performed. I think To illustrate what I'm seeing, I replaced The connection fails before the 5 second sleep completes. The log excerpt: |
Beta Was this translation helpful? Give feedback.
-
|
I initially encountered this issue with the PC's onboard Intel Bluetooth adapter (driven by WinUSB). I had already encountered unrelated general flakiness with that adapter in the past when using the default drivers and the Windows Bluetooth stack - every so often it would require reinstalling the Intel drivers to get the system Bluetooth working again. To rule out the Intel adapter, I am now using a brand new TP-LINK UB500 dongle which from looking at the Bumble logs is a RTK device (I downloaded all the RTK firmware images and Bumble seems to be happy with it). Is there anything else I should try? FWIW, the mouse has worked fine with the Windows Bluetooth stack (on the Intel adapter). And with a Mac. |
Beta Was this translation helpful? Give feedback.
-
|
The Logitech M240 increments its address every time it is paired again. I have attached nrf52840 sniffer captures of a successful pairing and of a failed connection attempt. The mouse MAC addresses for each capture are different because I performed multiple pairings in between. I'm not entirely sure if the sniffer is capturing everything. The capture files are in Archive.zip
Key info for this pairing is:
Maybe the mouse is waiting for a very specific initial packet?! Key info for this pairing is: |
Beta Was this translation helpful? Give feedback.
-
|
I believe I have figured out the problem, and I now have it working. Although, my knowledge of BLE internals is rather limited so the fix doesn't make sense to me, and I would very much appreciate an explanation, if you can provide one. Now that I have a sniffer, I compared pairing and re-connection captures between Bumble and a Mac. The first difference between the two that I noticed, in the re-connection CONNECT_IND packet from the central device was the Mac advertising the TX address as And now everything works. I haven't sniffed it to compare. Thank you for your help! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a Logitech M240 mouse that I want to pair and connect to over time on Windows with a WinUSB driven BLE dongle. The quick summary is that initial pairing and HID reports always work. However, subsequent reconnections (by restarting the program, or after replacing batteries in the mouse, for example) always fail, and the only way to establish a connection again is to initiate a pairing.
I'm using the
keyboard.pyexample to communicate with the mouse. I've tried pairing the mouse with thekeyboard.pyexample code directly (it calls pair()) and withapps/pair.py. In both cases pairing succeeds. When usingkeyboard.py, the mouse generates HID reports that are logged inkeyboard.pyso it definitely works after initial pairing. Subsequent connection attempts always fail.What is wrong?
The configuration file,
central.json, I'm using is this:I verified the local address of the host using
apps/console.py(I've tried with and without the /P suffix).I've also verified that the JsonKeyStore key file is indeed created and populated with credentials.
Here is a log of the initial pairing with apps/pair.py
Output of
keyboard.py, demonstrating subsequent connection failure:I can also provide logs of initial pairing success and HID reports with
keyboard.py, if that is helpful.Beta Was this translation helpful? Give feedback.
All reactions