achushu / ch57x-keyboard-mapper Goto Github PK
View Code? Open in Web Editor NEWMaps keys to keyboards equipped with CH57x chips on original firmware
License: MIT License
Maps keys to keyboards equipped with CH57x chips on original firmware
License: MIT License
I don't know that this is an issue for @achushu so much as a place for me to document the issue, but programming on Mac is not going well.
I checked, and the Product ID is 0x8890, and Vendor ID is 0x1189, Manufacturer wch.cn. I noticed that in the code, this is presented in decimal form, but I've tried it both ways, and I get the same result. I even have it print them before tossing the error, and it is returning decimal form:
// manu: wch.cn, product: CH57x, vendorID 4489, productID: 34960
const (
VENDOR_ID = 0x1189
PRODUCT_ID = 0x8890
INTERFACE = 1 // the programmable interface
)
Garou:~/git/CH57x-keyboard-mapper tshadwick$ ./ch57x
4489
34960
could not find the device interface
Garou:~/git/CH57x-keyboard-mapper tshadwick$ lsusb -v
USB
**snip**
CH57x:
Product ID: 0x8890
Vendor ID: 0x1189 (Trisat Industrial Co., Ltd.)
Version: 0.00
Speed: Up to 12 Mb/s
Manufacturer: wch.cn
Location ID: 0x14140000 / 8
Current Available (mA): 500
Current Required (mA): 100
Extra Operating Current (mA): 0
**end snip**
So the device is there, but can't be found. Perl is my primary language, so I took a brief stab of enumerating the device using libusb there.
Garou:~/git tshadwick$ perl usb_probe.pl
Bus 020 Device 005: ID 1189:8890
Bus 020 Device 004: ID 291a:8352
Bus 013 Device 007: ID 05e3:0749
Bus 013 Device 006: ID 0bda:8153
Bus 013 Device 005: ID 291a:0817
Bus 020 Device 003: ID 291a:2817
error in libusb_claim_interface: Access denied (insufficient permissions) at /Users/tshadwick/perl5/lib/perl5/darwin-2level/USB/LibUSB/Device/Handle.pm line 22.
Hmm. Did some googling, and wind up on the libusb wiki:
Thing is, I'm having a hard time determining what is holding onto the device. I had thought kextstat
could list devices and what kernel driver was attached, but now I'm at a loss. @achushu, do you happen to know if this thing is using a serial chipset like the FTDI?
Hi,
I've compiled your code, but when I try to execute it it says "this platform / binary does not support HID",
I've tried to have a look around for that error but I haven't found anything.
I'm on Windows 10 Pro.
Thanks!
Does anybody know which group I need to add to my account to be able to run it without using sudo
?
I have a keyboard with no layer switch and I've found a strange behaviour; when programming the keyboard the layer that will upload and work is the last one on the yaml file but upon loosing power (reconnecting the device or restarting pc) the keyboard will default to the first layer on the file for some reason. It's not really an issue, I just copied the same config on all layers but it's something that may be worth adding to the readme for some folks.
Hello,
firstly a big thanks for your work!
I have zero to nothing experience with go, but I tried my best to get a bit into it.
But I am not able to get the Mediacodes to work with my Macropad.
It has 3 Keys + 1 Rotary-encoder, the µC is a CH552g. So far I somehow managed to set "normal" keys and things like CTRL+C.
Bit if I Enter e.g {NOMOD, PLAY}
It seems not to overwrite the existing code for this key.
Am I doing something wrong? Or is there maybe a bug?
Thanks in advance :-)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.