I was able to workaround it by any of these two methods:
Using v1.2.4 on Windows
Compiling myself including #69 (this I tried on Linux to see if the problem was my Windows)
In both cases, when executing the upload command, it seems to be doing something (because the command takes a few seconds to finish) but at the end of the day it does nothing. They keyboard does not actually emit the keys.
I had to use the --endpoint-address 2 flag (to be honest, I do not know what that is, I am just following the advice in #69), because otherwise I get this:
Error: single interrupt endpoint is expected, got:
EndpointDescriptor {
bLength: 7,
bDescriptorType: 5,
bEndpointAddress: 130,
bmAttributes: 3,
wMaxPacketSize: 8,
bInterval: 10,
}
EndpointDescriptor {
bLength: 7,
bDescriptorType: 5,
bEndpointAddress: 2,
bmAttributes: 3,
wMaxPacketSize: 8,
bInterval: 10,
}
You may try to choose one using --endpoint-address
I tried with the endpoint 130, but then I get a Windows popup saying a device is not recognized or something like that.
I also find it interesting that after disconnecting/connecting the keyboard, if I turn the knob it will launch this:
By the way, they keyboard I have has 6 keys and 1 knob. Bought it on Temu but won't paste the link to it unless needed. This was the image in the listing:
I just realized that when I connect the keyboard it shows as CH552. So now I am not sure if that's why it does not work properly (the repo being for ch57x)
Initially I was getting hit by #50
I was able to workaround it by any of these two methods:
In both cases, when executing the
upload
command, it seems to be doing something (because the command takes a few seconds to finish) but at the end of the day it does nothing. They keyboard does not actually emit the keys.config.yaml
``` orientation: normal rows: 2 columns: 3 knobs: 1 layers: - buttons: - ["a", "ctrl-a", "b"] - ["e", "f", "g"] knobs: - ccw: "wheelup" press: "click" cw: "wheeldown" - buttons: - ["a", "ctrl-a", "b"] - ["e", "f", "g"] knobs: - ccw: "wheelup" press: "click" cw: "wheeldown" - buttons: - ["a", "ctrl-a", "b"] - ["e", "f", "g"] knobs: - ccw: "wheelup" press: "click" cw: "wheeldown" ```I had to use the
--endpoint-address 2
flag (to be honest, I do not know what that is, I am just following the advice in #69), because otherwise I get this:I tried with the endpoint 130, but then I get a Windows popup saying a device is not recognized or something like that.
I also find it interesting that after disconnecting/connecting the keyboard, if I turn the knob it will launch this:
By the way, they keyboard I have has 6 keys and 1 knob. Bought it on Temu but won't paste the link to it unless needed. This was the image in the listing: