可以重新编程键盘吗?
我的意思是真正的USB键盘,而不是软件键盘驱动程序。
我知道键盘有所不同,但总的来说,重新编程/重新接线是否容易/可能? 也许有更容易做到这一点的模型?
是的,我可以使用烙铁/硬件闪存重新编程器。
I mean the real USB keyboard, not a software keyboard driver.
I know that keybords differ, but in general is it easy/possible to reprogram / rewire it?
Maybe there are models that are easier to do that?
And yes, I can use soldering iron / hardware flash reprogrammer.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
一般来说,没有。您发现的大多数键盘都只有一小部分大脑和一个开关矩阵,除此之外就没有其他东西了。他们有足够的大脑在扫描开关矩阵时通过 USB 进行通信。整个混乱都在一个掩模编程芯片中,您无法更改其编程。
有一些键盘可以在键盘中执行诸如键重新映射或宏编程之类的操作,但它们非常罕见和/或非常昂贵。而且,根据我的经验,当您不小心按下“程序宏”键时,非常烦人。
从理论上讲,您可以将键盘拆开,移除其现有的大脑,安装微控制器并编写代码,以便在击中开关矩阵上的给定点时向主机发送您想要的任何代码。您需要弄清楚开关矩阵上的迹线是什么,并且需要编写/查找微控制器代码来与 USB 通信。并且不要忘记,开关矩阵很容易受到重影影响(一个按键会掩盖其他按键),因此不要尝试将诸如 Shift、Control、Alt 之类的东西放在容易受到重影影响的按键上。
如果您不/不能自己完成微控制器工作,您可以使用类似 ipac< /a> (这是我刚刚描述的微控制器部分)来完成这项工作,但是您必须获得能够理解开关矩阵的东西。
In general, no. Most keyboards that you find have a small bit of brains and a switch matrix and not much else. They have just enough brains to communicate over USB while scanning their switch matrix. The entire mess is in one mask-programmed chip that you can't change the programming of.
There are a few keyboards out there that do things like key remapping or macro programming in the keyboard, but they are pretty rare and/or pretty expensive. And, in my experience, pretty damned annoying when you accidentally hit the 'program macro' key accidentally.
You could, in theory, tear akeyboard apart, remove it's existing brains, install a micro-controller and write code to send whatever codes you want to the host when a given point on the switch matrix is hit. You'll need to work out what traces are what on the switch matrix, and you'll need to write/find micro-controller code to talk USB. And don't forget that a switch matrix is susceptible to ghosting effects (one keypress masks others), so don't try to put things like shift, control, alt on keys that are subject to ghosting.
If you don't/can't do the micro-controller work yourself, you could use something like an ipac (it's the micro-controller part that I just described) to do the job, but you'll have to get something that understands a switch matrix.
对于某些键盘来说,这是可能的,因为最近的 黑客攻击Apple 键盘曝光。
For some keyboards it is possible, as a recent hack of an Apple keyboard revealed.
是的。您需要卸下制造商的控制器和可编程键盘控制器中的电线。更好的控制器包含一个 ROM 来保存按键矩阵。 (基本键盘功能和原始扫描码被隔离并保持不变)。一个方便的 Windows 应用程序用于创建矩阵,然后编译为二进制文件,然后刷新 ROM。
搜索:FlexMatrix SK5100/SK5101 我认为它也有宏! =D
yes. you need to remove the manufacturer's controller and wire in a programmable keyboard controller. the better controllers contain a rom to hold the key matrix. (essential keyboard functions and raw scancodes are segregated and remain untouched). a convenient windows app is used to create the matrix, then compile to a binary, then flash the rom.
search: FlexMatrix SK5100/SK5101 i think it does macros too! =D