Author Topic: [TMK] Keyboard Protocol Converter  (Read 200155 times)

0 Members and 1 Guest are viewing this topic.

Offline Nizkeyboard

  • Posts: 71
  • Location: www.nizkeyboard.com
    • nizkeyboard
Re: [TMK] Keyboard Protocol Converter
« Reply #150 on: Wed, 25 December 2019, 19:10:29 »
This converter works very well with the Niz Atom66, which may mean it works with their other keyboards.

Thanks very much for making this converter available for purchase!  I wish I'd known of it years ago.

Thanks for confirming this.

Offline supermario802.1

  • Posts: 30
    • tinkerBOY
Re: [TMK] Keyboard Protocol Converter
« Reply #151 on: Sun, 12 January 2020, 00:27:29 »
Is there any TMK firmware for SAMD21/Arduino Zero boards yet?

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3315
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] Keyboard Protocol Converter
« Reply #152 on: Sun, 12 January 2020, 02:15:29 »
Is there any TMK firmware for SAMD21/Arduino Zero boards yet?

No.

Offline ZyBeR

  • Posts: 155
Re: [TMK] Keyboard Protocol Converter
« Reply #153 on: Tue, 21 January 2020, 16:14:29 »
Can I run this on an Elite-C controller?

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3315
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] Keyboard Protocol Converter
« Reply #154 on: Tue, 21 January 2020, 17:39:23 »
Can I run this on an Elite-C controller?

No. The firmwares including codes depending on AVR.

Offline Blaise170

  • * Esteemed Elder
  • Posts: 1332
  • Location: Boston, MA
  • ALPS キーボード
    • XYZ
Re: [TMK] Keyboard Protocol Converter
« Reply #155 on: Fri, 20 March 2020, 18:23:13 »
Do you still have converters for sale? Wouldn't mind getting one for my PC-9800 if you do.
I proxy anything including keyboards (キーボード / 鍵盤), from both Japan (日本) and China (中國). For more information, you may visit my dedicated webpage here: https://www.keyboards.es/proxying.html

View my current and past keyboards here: https://deskthority.net/wiki/User:Blaise170

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3315
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] Keyboard Protocol Converter
« Reply #156 on: Fri, 20 March 2020, 19:40:33 »
Do you still have converters for sale? Wouldn't mind getting one for my PC-9800 if you do.

Yes, check the first post and email me. Thanks

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3315
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] Keyboard Protocol Converter
« Reply #157 on: Tue, 21 April 2020, 23:41:59 »
[UPDATE] PS/2 and SUN Converter

New 'IBM PC keyboard converter' firmware is available for PS/2(and Terminal) converter now.
https://geekhack.org/index.php?topic=103648.0

You can download it from Keymap Editor.
http://www.tmk-kbd.com/tmk_keyboard/editor/#ibmpc_usb
http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?ibmpc_usb



Also Keymap Editor is available for SUN converter now.

http://www.tmk-kbd.com/tmk_keyboard/editor/#sun_usb
http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?sun_usb

Offline nevin

  • Posts: 1475
  • Location: US
Re: [TMK] Keyboard Protocol Converter
« Reply #158 on: Wed, 22 April 2020, 16:43:39 »
...someone's been busy.
thanks hasu!
Keeb.io Viterbi, Apple m0110, Apple m0120, Apple m0110a, Apple 658-4081, Apple M1242, Apple AEK II, MK96, GH60/Pure, Cherry g84-4100, Adesso AKP-220B, Magicforce 68

Offline kelvinhall05

  • Posts: 69
  • Location: London, Ontario
    • LinusTechTips
Re: [TMK] Keyboard Protocol Converter
« Reply #159 on: Mon, 18 May 2020, 11:10:45 »
Am I allowed to ask for help with flashing your ADB firmware onto my own pro micro-based converter? I can't figure out where to download the hex file to do so.

Offline mrSanders

  • Posts: 0
Re: [TMK] Keyboard Protocol Converter
« Reply #160 on: Fri, 31 July 2020, 04:46:43 »
[UPDATE] PS/2 and SUN Converter

New 'IBM PC keyboard converter' firmware is available for PS/2(and Terminal) converter now.
https://geekhack.org/index.php?topic=103648.0

You can download it from Keymap Editor.
http://www.tmk-kbd.com/tmk_keyboard/editor/#ibmpc_usb
http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?ibmpc_usb



Also Keymap Editor is available for SUN converter now.

http://www.tmk-kbd.com/tmk_keyboard/editor/#sun_usb
http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?sun_usb
hello, with the adapter will the joystick CH FIGHTER STICK for macintosh work on the pc?

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3315
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] Keyboard Protocol Converter
« Reply #161 on: Fri, 31 July 2020, 07:59:32 »
No, joystick is not supported.

Offline nevin

  • Posts: 1475
  • Location: US
Re: [TMK] Keyboard Protocol Converter
« Reply #162 on: Fri, 31 July 2020, 11:04:46 »
Am I allowed to ask for help with flashing your ADB firmware onto my own pro micro-based converter? I can't figure out where to download the hex file to do so.

1. make sure your promicro is 5v/16mHz (ATmega32U4 processor)
2. download or edit the rev.1 of the firmware for ATmega32U4
  - rev.2 is for ATmega32U2 processors (this won't work)

you can find more info below:
TMK configurator
TMK Github for ADB oconverter
« Last Edit: Fri, 31 July 2020, 11:10:00 by nevin »
Keeb.io Viterbi, Apple m0110, Apple m0120, Apple m0110a, Apple 658-4081, Apple M1242, Apple AEK II, MK96, GH60/Pure, Cherry g84-4100, Adesso AKP-220B, Magicforce 68

Offline Drag0nFly

  • Posts: 63
Re: [TMK] Keyboard Protocol Converter
« Reply #163 on: Fri, 12 March 2021, 08:10:45 »
Hello @hasu –

Not sure if this is the right thread to post in, so my apologies if not. I was nudged in your direction by a fellow member on the forum (@Maledicted) as I've been looking into ways of getting a (supposedly) XT-compatible board working, but did not as yet have any success with my Soarer converter, which is why I am considering trying the TMKs. :)

It also depends on whether you are up to a challenge (of sorts). The board in question is the Copam K-430 (which another member on the forum, @MandrewDavis, converted using a new PCB and quite some other impressive work in the “Keyboard of the Month” thread). There are scarce details on Deskthority, only stating "XT" as the protocol (which is not altogether accurate – https://deskthority.net/wiki/Copam_K-430)

However, I would like to get it working with an adapter (if at all possible). I know the Soarer adapter I have does not have the XT-reset line wired up (it might not have anything to do with this issue, but nevertheless I am mentioning it in case). The board seems to go through an initialization procedure, and one can toggle the Caps Lock LED. No scancodes are seen.

I'd obviously be up for testing functionality and firmware revs, providing the fw can be upgraded via Linux.

Some pics of the board which does not speak 'proper XT' ;)






A separate question (which is probably easier to answer: I see you are selling an X68000 (Sharp) converter for the "Japanese" Amiga (which is using the mini DIN 7 interface). Are you also planning to offer converters for the Amiga (2000 & 3000/4000) series – https://deskthority.net/wiki/Commodore_Amiga_2000 ?

These use a proprietary protocol, and is probably not that well-known outside of Europe & the U.S. Some of the keyboards (esp. the Cherry which is based on the G80 and has double-shot keycaps is quite good)

Thanks for any input, and greetings from Norway.

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3315
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] Keyboard Protocol Converter
« Reply #164 on: Sat, 13 March 2021, 19:17:22 »
You can try my IBM PC Keyboard Converter firmware with the XT keyboard, first.
Report its result in the thread.
https://geekhack.org/index.php?topic=103648.0

If that does not work it is time to setup Reset line on your converter. Or you can buy converter with DIN-5.

There is no plan for Amiga, I don't have any unfortunately.


Offline Drag0nFly

  • Posts: 63
Re: [TMK] Keyboard Protocol Converter
« Reply #165 on: Sun, 14 March 2021, 10:01:02 »
Hi hasu, (love your Avatar, brings back fond memories of “Bubble Bubble”, which was among the first games I played on my Amiga 500) :)


Thanks for your reply. I assume this is the product you had in mind –

IBMPC   AT, XT, PS/2*   DIN-5(180°)   $36   Use adapter cable for PS/2

Since the XT reset line seems to normally not be wired up, I assume there are some adverse affects if it is wired?

I might get this along with your Sun adapter cable, as I have a Sun Type 5 keyboard (assuming the infamous c19 situation allows for shipping to Northern Europe)

btw.-I did not expect you to offer an Amiga converter (but had to ask! :). (If I still had my spare A2000 Mitsumi keyboard I could have shipped it to you, but it was recently sold unfortunately.)

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3315
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] Keyboard Protocol Converter
« Reply #166 on: Sun, 14 March 2021, 18:23:34 »
Since the XT reset line seems to normally not be wired up, I assume there are some adverse affects if it is wired?
Yes, reset line is critical for some XT keyboards and they don't work without reset line.
If your keyboad has reset line you will need its support on converter probably.

EDIT:  I didn't know meaning of the word "adverse" and I think I read it in wrong way.
Your are right. I believe reset line support doesn't affect because most of keyboards don't have it.
The rest of XT and all of AT keyobards don't have reset line virtually, as the first post says at "Reset pin".
https://geekhack.org/index.php?topic=103648.0
Also check this.
https://github.com/tmk/tmk_keyboard/wiki/IBM-PC-XT-Keyboard-Protocol#keyboard-hard-reset

I found your thread for the Copam keyboard and subscribe it. You can post further info/question there instead of this thread.
https://geekhack.org/index.php?topic=111510.0
« Last Edit: Sun, 14 March 2021, 18:42:52 by hasu »

Offline smleeeeee

  • Posts: 0
Re: [TMK] Keyboard Protocol Converter
« Reply #167 on: Fri, 28 May 2021, 09:25:54 »
Hi Hasu! Do you by any chance make converters for the IBM Pingmaster, Wyse terminal keyboards (10 pin I believe), and the old SGI keyboards (non-ps/2)? If not, do you know of anyone who might be able to? Thanks!

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3315
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] Keyboard Protocol Converter
« Reply #168 on: Fri, 28 May 2021, 09:39:23 »
I think IBM4704 converter supports the "Pingmaster" probably,  but don't know how people use the word exactly.
Check the first post of this thread and IBM4704 converter thread for detailed info.

I don't have useful info for other keyboards.

Offline Horsebadorties

  • Posts: 6
  • Location: Eastern Seaboard
Re: [TMK] Keyboard Protocol Converter
« Reply #169 on: Fri, 25 June 2021, 23:35:07 »
Another noob question, I'm afraid. I have a ConnectPro KVM that will not accept a Realforce R2 Topre keyboard. Apparently the KVM cannot handle the keyboard's NKRO, which cannot be disabled.  Could this protocol converter mask or block the NKRO, so the KVM perceives the keyboard as a generic one?

The keyboard does work when plugged into the KVM's USB hub, but then I lose the KVM's emulation and hot-key features.

Thanks in advance for any suggestions.

Offline nevin

  • Posts: 1475
  • Location: US
Re: [TMK] Keyboard Protocol Converter
« Reply #170 on: Fri, 25 June 2021, 23:52:02 »
i think any of the converters will have trouble with NKRO as it's usually emulating multiple keyboards to achieve NKRO. (this may or not be the case with the Realforce R2, i have no experience with that board)
... but USUALLY nkro is BAD.

i'm sure hasu will chime in and give more details.
Keeb.io Viterbi, Apple m0110, Apple m0120, Apple m0110a, Apple 658-4081, Apple M1242, Apple AEK II, MK96, GH60/Pure, Cherry g84-4100, Adesso AKP-220B, Magicforce 68

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3315
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] Keyboard Protocol Converter
« Reply #171 on: Sat, 26 June 2021, 01:17:53 »
USB-USB converter may help the situation perhaps, but I can't assure anything before trying in reality.
The converter works with Realforce R2, btw. Check the first post of the converter thread if not yet.
https://geekhack.org/index.php?topic=69169.0


Did you try updating firmware on both the keyboard and KVM?
Contact the KVM/keyboard manufacturer if not, they may fix and make new firmware for you.

I'm interested in seeing USB descriptor of Realforce R2 and the KVM. Can you post their descriptor if possible?
https://github.com/tmk/tmk_keyboard/wiki/USB:-Descriptor#usb-device-tree-viewer

Offline Horsebadorties

  • Posts: 6
  • Location: Eastern Seaboard
Re: [TMK] Keyboard Protocol Converter
« Reply #172 on: Sat, 26 June 2021, 10:35:40 »
The converter works with Realforce R2, btw. Check the first post of the converter thread if not yet.
Yes, I saw that, and was much encouraged!

Did you try updating firmware on both the keyboard and KVM?
Contact the KVM/keyboard manufacturer if not, they may fix and make new firmware for you.
I updated the keyboard, but there's no new KVM firmware.  The KVM vendor did not have any suggestions; neither did the keyboard reseller (the manufacturer is unreachable).

I'm interested in seeing USB descriptor of Realforce R2 and the KVM. Can you post their descriptor if possible?
Sure. The files are attached. Thanks for your interest!!!

Offline Horsebadorties

  • Posts: 6
  • Location: Eastern Seaboard
Re: [TMK] Keyboard Protocol Converter
« Reply #173 on: Sat, 26 June 2021, 13:57:10 »
Just a follow-up to the USB descriptor I provided for the ConnectPro UD-12+ KVM. At the time, a Hexgears Nova B2 TKL keyboard and a Logitech USB receiver were plugged in to the KVM. So their USB descriptors are included in the KVM descriptor.

Also, I should have posted my original question in the USB-USB converter thread, not this one. Sorry 'bout that!
« Last Edit: Sat, 26 June 2021, 14:25:49 by Horsebadorties »

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3315
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] Keyboard Protocol Converter
« Reply #174 on: Sat, 26 June 2021, 22:37:43 »
Thanks for the descriptors and the info.
I didn't know KVM with DDM at all and it is very intriguing device.


The keyboard does work when plugged into the KVM's USB hub, but then I lose the KVM's emulation and hot-key features.

I'm not sure I can undertand what your problem is exactly.

You can type normally with Realforce R2 through the KVM, but hot-key only doesn't work with the keyboard. This is right?
I'm assuming that hot-key is key sequence like [ctrl] [ctrl] [1] here.

What does "KVM's emulation" mean exactly?


I think both Realforce R2 and Hexgears Nova B2 TK support NKRO with seeing their descriptors. I like to know if they still work as NKRO keyboard through the KVM or degrade to 6KRO mode. Can you test that?
Using key test tool see if you can hold more than 6 keys(except for modifiers) at same time.

https://www.majorgeeks.com/files/details/switch_hitter.html

Offline Horsebadorties

  • Posts: 6
  • Location: Eastern Seaboard
Re: [TMK] Keyboard Protocol Converter
« Reply #175 on: Sun, 27 June 2021, 00:43:43 »
Thanks for the descriptors and the info.
I didn't know KVM with DDM at all and it is very intriguing device.
Yes, many of the ConnectPro KVMs use DDM. It's very useful. https://connectpro.com/technology/usb-ddm/. But it works only with the KVM's dedicated Keyboard and Mouse ports.

I'm not sure I can undertand what your problem is exactly.
The problem is that I cannot use the Realforce R2 keyboard with the KVM's dedicated Keyboard port. I can plug it into one of the KVM's generic USB ports and type normally, but there are three annoying issues:
1. I cannot use the KVM's hot key sequences ([ctrl][ctrl][1] or [ctrl][ctrl][2]) to switch computers;
2. When I switch computers with the KVM's buttons, there's a lag of a few seconds before the keyboard is active on the computer I'm switching to. Also, both devices beep while they lose or gain the USB connection.
3. Even though I've disabled time-out on both computers, if I do not switch to one computer for a few hours, the KVM loses the monitor connection to that computer. I'm not 100% sure this is related to the keyboard using the generic USB port, but it has happened three times in one week. This never happens when my other keyboard is on the KVM's keyboard port.

What does "KVM's emulation" mean exactly?
Sorry, I was not using the correct term. I was referring to the KVM's ability to maintain each computer's connection to the keyboard on the dedicated port. In other words, DDM.

I think both Realforce R2 and Hexgears Nova B2 TK support NKRO with seeing their descriptors. I like to know if they still work as NKRO keyboard through the KVM or degrade to 6KRO mode. Can you test that?
Using key test tool see if you can hold more than 6 keys(except for modifiers) at same time.
https://www.majorgeeks.com/files/details/switch_hitter.html
I didn't even know that the Hexgears Nova uses NKRO. Indeed, NKRO does work through the KVM's dedicated keyboard port. Thanks for pointing me to Switch Hitter -- a very interesting tool! With the help of a small hard-cover notebook, I was able to hold 40 keys on the Nova, while connected to the KVM and then while connected to a port on the computer. I got similar results with the Realforce R2 while connected to the computer. I'm attaching log files for all three scenarios. The filenames should provide contexts.

I am confused by these results, after hearing from both support teams that the Realforce's NKRO is at fault. Maybe the Realforce implements NKRO differently. I should reiterate that the KVM does not accept even a single keystroke from the Realforce when it's on the dedicated keyboard port.

By the way, the Hexgears Nova has a key sequence ([Fn]+[~]) to disable NKRO. Then, Switch Hitter confirms that only 6 keys register. The key sequence has no effect on the Realforce.

Thanks again!

Offline Horsebadorties

  • Posts: 6
  • Location: Eastern Seaboard
Re: [TMK] Keyboard Protocol Converter
« Reply #176 on: Sun, 27 June 2021, 01:09:45 »
Hi again Hasu,

Here's another data point, in case you're interested. I just got a Pimoroni Keybow 2040 keypad: https://shop.pimoroni.com/products/keybow-2040?variant=32401989337171.

Just like the Realforce keyboard, it works on a generic USB port, but not on the KVM's keyboard port. I'm attaching the USB TreeView report for the keypad.

Thanks!

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3315
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] Keyboard Protocol Converter
« Reply #177 on: Sun, 27 June 2021, 02:16:15 »
I see. I didn't found that KVM has two different kind of USB port when checked their site.

I believe you can use hotkey on keyboard pluged into 'DDM' port, not 'generic' port.

Assuming the Hexgear keyboard was connected to 'DDM' port' on SwitchHitter_Hexgears_Nova_thruKVM.log.
Impressive. The KVM can recognizes key strokes from keyboard on 'DDM' port even if the keyboard is NKRO.
It is not easy job for small device to parse USB descriptor and understand NKRO keyboard report.
And it seems to fail to handle NKRO report from Realforce R2 in fact.

I have a bit old Realforce RGB in hand and it has very similar or equivalent USB descriptor to R2.
https://gist.github.com/tmk/7c089602ce7eb70b9be64c7e822be3b9

Realforce RGB/R2 has two keyboard interfaces, one for usual 6KRO keyboard(interface0) and other for NKRO(interface1).
And the keyboard uses interface0 in most cases during usual usage, inteface1 is used only when user press more than 6 keys simultaneously.
Intention of this trick is for compatibility and it should work with legacy and small devices, but it doesn't seem to work with the KVM unfortunately for some reason.

Offline Horsebadorties

  • Posts: 6
  • Location: Eastern Seaboard
Re: [TMK] Keyboard Protocol Converter
« Reply #178 on: Sun, 27 June 2021, 06:51:01 »
Hi Hasu,

I see. I didn't found that KVM has two different kind of USB port when checked their site.
I believe you can use hotkey on keyboard pluged into 'DDM' port, not 'generic' port.
That's right. The ConnectPro KVMs usually have two DDM-enabled USB-A ports in back, and two generic USB-A ports in front. In fact, most modern KVMs have two types of USB ports, even if they don't use DDM. KVMs watch only the dedicated keyboard and mouse ports for hotkey sequences.

Assuming the Hexgear keyboard was connected to 'DDM' port' on SwitchHitter_Hexgears_Nova_thruKVM.log.
Impressive. The KVM can recognizes key strokes from keyboard on 'DDM' port even if the keyboard is NKRO.
It is not easy job for small device to parse USB descriptor and understand NKRO keyboard report.
And it seems to fail to handle NKRO report from Realforce R2 in fact.
Exactly correct. But we can't be sure exactly why the KVM fails with the Realforce R2. Maybe NKRO is not the true cause of the problem! And if we don't understand the cause, we probably cannot fix the problem.

A KVM is essential to me, as I very frequently switch between my work and personal computers. As much as I like the Realforce keyboard, I cannot use it without the KVM. I will probably return it to the seller.

Thanks so much, Hasu.