-
Notifications
You must be signed in to change notification settings - Fork 71
Description
TL;DR:
I can pair multiple BT devices, but I can't switch to them once I have more than 1 device paired.
UHK80 on firmware with "max-style" bluetooth slots handling.
Right keyboard half firmware: UltimateHackingKeyboard/firmware: 16.1.0 #5bc2b9b
Left keyboard half firmware: UltimateHackingKeyboard/firmware: 16.1.0 #5bc2b9b
Key cluster firmware: rightaditya/uhkfirmware: 11.2.0 #highres-2024-10-15
Touchpad is detected, and its firmware is implemented by the right keyboard half.
I've reset my Windows 11 Laptop, I've deleted all Connections on the UHK, and I have deleted device pairings. I also removed UHK80 pairings on Windows and my Pixel 9a Android phone, and I have turned bluetooth off and on again.
UHK80 is plugged into the Laptop via USB, and Agent is running. In addition, I also rebooted the UHK in preparation for this.
This should be a "clean slate".
In Windows, I add a new BT device:
I get asked for the pairing code, and I enter it on the UHK.
The OLED shows Bluetooth device, slot 2.
Agent shows A new Bluetooth device has been paired to this UHK. Add it to connections so that you can switch to it.
In Windows, I see multiple devices (why? should it not show only "UHK 80"?):
In Agent, I rename the connection to "F Laptop" and Save to keyboard:
The OLED now also shows "F Laptop", and I can switch between USB and BT connections on the UHK. All good so far.
Next, I want to pair my Pixel phone. But on the Pixel I only see "UHK 80 Right NUS". That's not what I want to pair with.
So I execute a macro that runs bluetooth toggle advertise. But no change. How to get new HID advertisment?
I modify the UHK macros to run:
set bluetooth.enabled true
set bluetooth.alwaysAdvertiseHid true
bluetooth advertise
Still nothing different after I run this.
I end up running set bluetooth.enabled false, wait a few seconds, then run the enabling macro (the one above) again. I guess because turning BT off on the UHK made the existing BT connection to the "F Laptop" drop, so that's why now I could quickly find it on the Pixel phone and pair it. Pairing worked, and Agent shows the "add to the connections" prompt, which I did.
The OLED now shows "USB connection", and "next Connection" and "previous Connection" actions are not switching anything. It's just stuck at "USB connection".
Trying a dedicated switching button to switch to "1:F Laptop" or "2:Pixel 9a Max" show the "USB connection -> F Laptop" or "USB connection -> Pixel 9a Max" on the OLED for a few seconds, then revert back to "USB connection".
So how to switch over to the BT connections?
Modifying the macro to:
set bluetooth.enabled true
// set bluetooth.alwaysAdvertiseHid true
bluetooth advertise
Doesn't help either. bluetooth toggle advertise doesn't change anything either. I have no way of actually using these two newly added BT connections.