geekhack

geekhack Marketplace => Artisan Services => TMK Keyboard Service => Topic started by: hasu on Tue, 19 May 2015, 22:39:12

Title: [TMK] Keyboard Protocol Converter
Post by: hasu on Tue, 19 May 2015, 22:39:12
TMK converters translate various old keyboard protocol into USB so that you can use your old keyobard with modern computer.

Feel free to post any questions and suggestions in this thread

All converters are regularly in stock as of 2023-09-23.


Converters
ConverterSupported keyboardConnectorUSBPriceDescription






IBMPC (https://geekhack.org/index.php?topic=103648.0)[AT/XT]AT, XT, PS/2*DIN-5(180°) (https://en.wikipedia.org/wiki/DIN_connector#/media/File:DIN-5_Diagram.svg)Micro-B$36You can use adapter for PS/2 keyboard and mouse
IBMPC[Terminal]AT with CodeSet3DIN-5(240°) (https://en.wikipedia.org/wiki/DIN_connector#/media/File:DIN-5c_Diagram.svg)Micro-B$36Suits for IBM Terminal Keyboard Model F122 (and Model M122?)
IBMPC[PS/2]PS/2, AT*, XT*Mini-DIN-6Type-C$34You can use adapter for AT and XT.(XT Type1 is not supported) Also with Y-splitter cable you can use two devices.
ADB (https://geekhack.org/index.php?topic=14290.0)ADB(Apple and others)Mini-DIN-4Type-C$34Mouse is also supported.
NeXT (https://github.com/tmk/tmk_keyboard/tree/master/converter/next_usb)NeXT non-ADBMini-DIN-5Type-C$34
X68K (https://geekhack.org/index.php?topic=29060.0)Sharp X68000Mini-DIN-7Type-C$34
PC98 (https://geekhack.org/index.php?topic=110094.0)NEC PC9800Mini-DIN-8Type-C$34
SUN (https://geekhack.org/index.php?topic=105671.0)SUNMini-DIN-8Type-C$34Suits for Type-4 and Type-5 keyboards.
Archimedes (https://geekhack.org/index.php?topic=121747.0)ArchimedesMini-DIN-6Type-C$34For Acorn Archimedes keyboards
M0110 (https://geekhack.org/index.php?topic=24965.0)[Phone]Apple M0110,M0110AModular 4P4C (https://en.wikipedia.org/wiki/Modular_connector#4P4C)Micro-B$47Shipped with phone handset cable(Crossover) like this (https://www.amazon.com/s?k=phone+handset+cable+4p4c&ref=nb_sb_noss). You cannot use original Apple keyboard cable with this.
M0110[Original]Apple M0110,M0110AModular 4P4CMicro-B$47Shipped without cable. You need healthy original Apple keyboard cable(Straight).
IBM4704 (https://geekhack.org/index.php?topic=54706.0)IBM4704DE-9 (https://en.wikipedia.org/wiki/D-subminiature)(DB-9)Micro-B$44Connector with Imperial-pitch threaded studs
NEWS (https://geekhack.org/index.php?topic=25759.0)NEWS(Sony)DE-9(DB-9)Type-C$44Connector with Metric-pitch threaded studs
USB-USB (https://geekhack.org/index.php?topic=69169.0)USB HID BootUSB Type-AType-A$60Check this (https://geekhack.org/index.php?topic=109514.0) also to place an order.


Converters with DIN and Mini-DIN connector look like this.
(https://i.imgur.com/tldyN0w.jpg)


For USB-USB Converter see this thread (https://geekhack.org/index.php?topic=109514.0).





How to order
Email me to let me know which converter you want and your country. I'll send you Paypal invoice soon.

My email is: hasu@tmk-kbd.com


Shipping
Please check this notes (https://geekhack.org/index.php?topic=105442.0) for shipping cost.


Payment
Paypal Invoice will be sent to your email. You'll be able to make a payment with credit card on Palpal even if you don't have Paypal account.


Lead Time
The converters will be shipped usually in several working days and you will receive email with tracking number from Japan Post. Check junk mail folder of your email used for the payment first if you can't find the email from Japan Post. Email me if you don't get tracking number within 10 working days after payment.




Online Keymap Editor
You can edit keymap on TMK Keymap Editor with web browser. Google Chrome is recommended web browser for this.

http://www.tmk-kbd.com/tmk_keyboard/editor/

Availability
IBMPC: ○
ADB: ○
NeXT: ○
X68K: ○
PC98: ○
SUN: ○
Archimedes: soon
M0110: ○
IBM4704: ○
NEWS: soon
USB-USB: ○

(http://i.imgur.com/geyd9fkl.png)


How to flash firmware
To turn into flash mode press tiny button on converter PCB.
You will have to select microcontroller in flash tool like Atmel FLIP or dfu-programmer.

See this for detail: https://github.com/tmk/tmk_keyboard/wiki#flash-firmware

Microcontroller
USB-USB and IBMPC: ATMega32u4
Other converters: ATMega32u2



TMK firmware
Converter firmware source codes are available here.

https://github.com/tmk/tmk_keyboard/converter




Support & FAQ
https://github.com/tmk/tmk_keyboard/wiki



Updates
2015/05/26 Ordered MAX3421e chips for USB-USB
2015/07/13 Updated M0110 keymap editor(for Rev.1)
2015/07/15 [USB to USB] Added locking key indicator support and fix for rollover error
2015/11/02 [USB to USB] restocked
2016/01/13 Added keymapeditor for USB to USB Converter
2016/03/18 [IBM4704] Converter for internal connection is available
2016/04/11 Revised prices(USB-USB: 50->55, M0110/IBM4704: 40-> 42, MiniDIN: 30->32)
2016/05/07 new IBM 4704 external converter
2016/08/16 Revised price of M0110 converter 42->45
2016/09/17 Keymap editor is available for USB-USB, ADB, PS/2, M0110 and NeXT now
2016/09/30 Keymap editor is available for IBM4704 now
2017/05/08 Keymap editor is available for X68000 now
2017/06/06 Added note for shipping to Canada
2018/01/19 Fix lag problem  (https://geekhack.org/index.php?topic=72052.msg2549649#msg2549649)on ADB-USB converter
2018/04/27 Added keymap editor support for IBM4704 50-key (https://geekhack.org/index.php?topic=72052.msg2600253#msg2600253).
2018/07/06 Updated firmware of USB-USB converter to fix startup issue (https://geekhack.org/index.php?topic=69169.msg2634041#msg2634041)
2018/09/08 Shipping to Canada is no problem now. Removed caveat.
2020-04-22 New IBMPC convererter firmware (https://geekhack.org/index.php?topic=103648.0) is available for PS/2 and Terminal converter.
2020-04-22 Keymap Editor is available for SUN converer now.
2021-03-29 Revised shipping rate
2021-04-15 Reorganized content of first page
2023-11-23 Update Sony NEWS converter. USB connector is Type-C now.
2024-01-28 Update note for shipping



Old descriptions:
More

Converters

Mini-DIN type Converters
These coverters are equivalent in terms of hardware except for Mini-DIN connector.

Its dimension is around 27mm * 41mm and height is 18mm including Mini-DIN connector.

(https://i.imgur.com/ym1WjPUh.jpg)


ADB Converter(4pin)
For Apple ADB keyboards.
https://geekhack.org/index.php?topic=14290.0

TMK keymap editor is available.
for ADB Converter (http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?adb_usb)

Mini-DIN 4P connector for ADB
(https://i.imgur.com/GpfPUIxh.jpg?1)



NeXT Converter(5pin)
https://github.com/tmk/tmk_keyboard/tree/master/converter/next_usb

TMK keymap editor is available.
for NeXT Converter (http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?next_usb)

Mini-DIN 5P connector for NeXT
(https://i.imgur.com/fWDml7lh.jpg?1)



PS/2 Converter(6pin)
https://geekhack.org/index.php?topic=14618.0

TMK keymap editor is available.
for PS/2 Converter (http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?ps2_usb)

Mini-DIN 6P connector for PS/2
(https://i.imgur.com/nfVArOTh.jpg?1)


Now new ibmpc_usb converter firmware is also available for PS/2 Converter. 2020-04-22

http://www.tmk-kbd.com/tmk_keyboard/editor/#ibmpc_usb
https://geekhack.org/index.php?topic=103648.0



Sharp X68000(X68K) Converter(7pin)
https://geekhack.org/index.php?topic=29060.0

TMK keymap editor is available.
for X68000(X68K) Converter (http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?x68k_usb)

Mini-DIN 7P connector for X68K
(https://i.imgur.com/NKXcdAYh.jpg?1)



SUN Converter(8pin)
SUN Type-4 and Type-5 keyboard would be supported.

https://geekhack.org/index.php?topic=105671.0
https://github.com/tmk/tmk_keyboard/tree/master/converter/sun_usb

Mini-DIN 8P connector for SUN
(https://i.imgur.com/7FkedV9h.jpg?1)

Keymap Editor is now available. 2020-04-22

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



NEC PC9800(PC98) Converter(8pin)
https://github.com/tmk/tmk_keyboard/tree/master/converter/pc98_usb

Mini-DIN 8P connector for PC98
(https://i.imgur.com/7FkedV9h.jpg?1)



IBM Terminal Converter(pin6)
IBMPC/AT Code Set 3 converter
https://geekhack.org/index.php?topic=27272.0

Now new ibmpc_usb converter firmware is also available for the converter. 2020-04-22

http://www.tmk-kbd.com/tmk_keyboard/editor/#ibmpc_usb
https://geekhack.org/index.php?topic=103648.0




Apple Macintosh M0110 Converter
This supports Macintosh 128K/512K keyboard(M0110), keypad(M0120) and Mac Plus keyboard(M0110A).

https://geekhack.org/index.php?topic=24965.0

The converter looks like the pic and includes detachable coiled 4P4C cable. The cable supplied with the converter, it is a 4P4C telephone handset calble which differs from original Apple keyboard cable. Note that you *cannot* use Apple keyboard cable with this converter, it may damage your keyboard with reverse polarity power lines. Please refer to this for detail. https://en.wikipedia.org/wiki/Modular_connector#4P4C

Dimensions of the converter is around 27mm*59mm*16mm excluding cable.
(http://i.imgur.com/4aJRPuuh.jpg)

4P4C plug and socket for M0110 Converter
(https://i.imgur.com/Q3TZLNsh.jpg?1)


TMK keymap editor is available.
New editor(recommended):
for M0110(Mac 128K/512K) (http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?m0110_usb)
for M0110A(Mac Plus) (http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?m0110_usb_m0110a)


You can hook up M0110 and M0120 to the converter at same time. Note that you have to use original Apple keyobard cable to connect between the two keyboards.
More
(http://i.imgur.com/dyvXb2Tl.jpg) (http://i.imgur.com/dyvXb2T.jpg)




IBM4704 Converter
https://geekhack.org/index.php?topic=54706.0

Converter for all of IBM4704 variants(50, 62, 77, 107-key) as well as 102-key Alps switch models(Pingmaster).
IBM capacitive switch model P/N: 6019273, 6019284, 6019303, 6020218
Alps switch model P/N: 5954339, 6112883, 6112884, 6341739, 6113442

Its dimension is around 32mm*64mm*18mm.

(https://i.imgur.com/lnyRjFjh.jpg) (https://i.imgur.com/lnyRjFj.jpg)

TMK keymap editor is available.
for IBM Capacitive switch 62/77/107-key (http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?ibm4704_usb) 50-key (https://goo.gl/95HRna)(new!)
for Alps switch 102-key (http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?ibm4704_usb_alps)



Sony NEWS converter
https://geekhack.org/index.php?topic=25759.0

More
(http://i.imgur.com/JDf5Bl.jpg) (http://i.imgur.com/JDf5B.jpg)

TMK keymap editor is not available yet.



Design Files
Converter PCB design files are available, you can make it yourself.

Converter PCB for Min-DIN type
https://github.com/tmk/keyboard_converter

Converter PCB for USB to USB
https://github.com/tmk/USB2USB_Converter


Old Converters
Not available anymore, but TMK firmware still supports these converters.
If you are one of these and have trouble with them contact me, I can help you.

Rev.1 Converter
(http://i.imgur.com/6MVPreKl.jpg) (http://i.imgur.com/6MVPreK.jpg)



Title: Re: [TMK] Keyboard Converter
Post by: hasu on Tue, 26 May 2015, 21:48:58
USB-USB converter
I ordered five MAX3421e chips at an Aliexpress shop for USB-USB converter, it will take several weeks to come up to me.
After got those chips I'll assemble the converters and decide its price.

Thanks.
Title: Re: [TMK] Keyboard Converter
Post by: SpAmRaY on Tue, 26 May 2015, 21:54:27
Can we reserve a spot for the USB-USB converter?
Title: Re: [TMK] Keyboard Converter
Post by: hasu on Tue, 26 May 2015, 22:01:44
Can we reserve a spot for the USB-USB converter?

Yes, just post here or PM me.

I have to decide the price later due to final cost calc, but you can cancel it if you don't like the final price.
The price will be around 40-50USD, probably.
Title: Re: [TMK] Keyboard Converter
Post by: Muffin860 on Wed, 27 May 2015, 06:28:13
Can we reserve a spot for the USB-USB converter?

Yes, just post here or PM me.

I have to decide the price later due to final cost calc, but you can cancel it if you don't like the final price.
The price will be around 40-50USD, probably.
I have a leopold keypad that doesn't send true numpad scan codes, I'm thinking I could theoretically fix that with your converter yes?
Title: Re: [TMK] Keyboard Converter
Post by: hasu on Wed, 27 May 2015, 07:23:47
Yes I think so.
If it is a normal keyboard without fancy functions like NKRO it works with this converter.
Title: Re: [TMK] Keyboard Converter
Post by: Muffin860 on Wed, 27 May 2015, 08:08:49
Sign me up for one.
Title: Re: [TMK] Keyboard Converter
Post by: gosinger on Wed, 27 May 2015, 14:31:06
Also sign me up for one USB-to-USB please, already pm'ed you previously about those :)

Keep up the great work  :thumb:
Title: Re: [TMK] Keyboard Converter
Post by: Muffin860 on Fri, 29 May 2015, 15:45:56
Sign me up for one.
I ended up just wanting to do an internal solutuon, so I am buying a teensy. Thanks anyway!
Title: Re: [TMK] Keyboard Converter
Post by: pkircher on Wed, 03 June 2015, 13:04:13
id love to get my hands on one .. .. that should get the kinesis advantage to a new level .. pm me with a price and an aprox turnaround time

thanks
Title: Re: [TMK] Keyboard Converter
Post by: heedpantsnow on Wed, 03 June 2015, 15:12:47
I want some sort of PS2 to USB for my original Dolch board. I'd like to make it small and internal.
Title: Re: [TMK] Keyboard Converter
Post by: hasu on Wed, 03 June 2015, 18:56:34
I think USB-USB controller will cost around $50 and $8 for shipping, not final price though.
I ordered USB host chips from China but not receive them yet, it will take more a week or two. After getting the chips my production process will take a week.

BTW, Kinesis has another viable option to think about, this controller replaces Kinesis original MCU and allows to upload custom firmware.
https://geekhack.org/index.php?topic=37991.0
https://github.com/chrisandreae/keyboard-firmware


id love to get my hands on one .. .. that should get the kinesis advantage to a new level .. pm me with a price and an aprox turnaround time

thanks
Title: Re: [TMK] Keyboard Converter
Post by: hasu on Wed, 03 June 2015, 19:23:13
I think Teensy 2.0 or Pro micro is also small enough to accommodate it inside of the keyboard. And way cheaper than my converter, unfortunately :p

If you still want my converter for some reason I'm happy to sell my converter definitely. I can assemble the converter without USB or/and PS/2 connector if it is useful when you install it inside the case. It costs $25 + $7 for shipping.

I want some sort of PS2 to USB for my original Dolch board. I'd like to make it small and internal.

Title: Re: [TMK] Keyboard Converter
Post by: Leimi on Wed, 17 June 2015, 18:10:22
Yes I think so.
If it is a normal keyboard without fancy functions like NKRO it works with this converter.

Do you think it would work with a Poker II? I don't really know what a keyboard "with fancy functions" means :D Would there be a way to check this somehow?
The Poker II is not PS/2 compatible so I can't use your USB<>PS/2 converter on it... but it would be perfect if your new USB<>USB converter worked!
Title: Re: [TMK] Keyboard Converter
Post by: hasu on Wed, 17 June 2015, 20:18:17
Poker II uses NKRO mode I don't think USB to USB conveter works with it at this moment.
But I believe firmware can force it to work in 6KRO mode with future update.

What I meant by "fancy functions" are NKRO, media control keys and system control keys. The converter doesn't recognize those keys.
Title: Re: [TMK] Keyboard Converter
Post by: hasu on Sat, 20 June 2015, 19:59:42
Some USB to USB converter are available now. Price is 50USD per converter and 7USD for shipping.

Check its limitations and TODO in first post of this thread. And feel free to ask anything if you are interested.
https://geekhack.org/index.php?topic=69169.0
Title: Re: [TMK] Keyboard Converter
Post by: Leimi on Mon, 22 June 2015, 06:42:23
Poker II uses NKRO mode I don't think USB to USB conveter works with it at this moment.
But I believe firmware can force it to work in 6KRO mode with future update.

What I meant by "fancy functions" are NKRO, media control keys and system control keys. The converter doesn't recognize those keys.

Thanks :) I guess I'll wait… for now!
Title: Re: [TMK] Keyboard Converter
Post by: wakko on Tue, 23 June 2015, 20:30:41
Interested in a usb-usb converter. Primarily interested in using it with RF87 on OSX. There's an issue with he keyboard where if I wake the computer from the keyboard, keyboard doesn't register after that. Any chance someone tried it with an RF?
Title: Re: [TMK] Keyboard Converter
Post by: argcargv on Tue, 14 July 2015, 00:04:20
Hi Hasu, I would like to buy 3 USB to USB converters  :thumb:
Title: Re: [TMK] Keyboard Converter
Post by: hasu on Tue, 14 July 2015, 00:31:49
Wow three, thanks!
Can you tell what keyboards are you going to use with the converters?

I'll PM.
Title: Re: [TMK] Keyboard Converter
Post by: kruton on Wed, 15 July 2015, 11:38:04
I'd like to buy one PS/2-to-USB and one USB-to-USB converter.  :D
Title: Re: [TMK] Keyboard Converter
Post by: hasu on Wed, 15 July 2015, 20:33:36
Thanks, I'll PM(Personal Messages) you once they are ready!
I'll do soldering job this weekend.

I'd like to buy one PS/2-to-USB and one USB-to-USB converter.  :D
Title: Re: [TMK] Keyboard Converter
Post by: yomammary on Thu, 16 July 2015, 07:17:54
How much would be a PS2 to USB converter? I might be blind but I can't find the information.
Title: Re: [TMK] Keyboard Converter
Post by: hasu on Thu, 16 July 2015, 08:34:13
PS/2 converter(Mini-DIN) costs $30.
Title: Re: [TMK] Keyboard Converter
Post by: Sifo on Sun, 19 July 2015, 17:57:15
Hasu put me down for a USB to USB converter. Thanks!
Title: Re: [TMK] Keyboard Converter
Post by: hasu on Mon, 20 July 2015, 02:11:18
Sifo, PM'd!
Title: Re: [TMK] Keyboard Converter
Post by: Sifo on Wed, 29 July 2015, 23:30:26
Did you guys know hasu is really helpful and does amazing work on his awesome firmware?

^^
Title: Re: [TMK] Keyboard Converter
Post by: acevery on Fri, 31 July 2015, 10:01:15
Did you guys know hasu is really helpful and does amazing work on his awesome firmware?

^^

He does a great job!
Title: Re: [TMK] Keyboard Converter
Post by: U47 on Sun, 09 August 2015, 02:56:00
Hi Hasu,

I've finally assembled a Keyboard Converter (I purchased a few blank PCBs from you). How do I go about flashing it and getting it up and running? Obviously, it does nothing yet right after being assembled :)

Thanks,
U47.
Title: Re: [TMK] Keyboard Converter
Post by: hasu on Sun, 09 August 2015, 03:39:42
I can't explain everything in detail here. You have to read TMK documentations first and the docs won't be enough, you can use google to get further detail.
https://github.com/tmk/tmk_keyboard/blob/master/doc/build.md
https://github.com/tmk/tmk_keyboard/blob/master/doc/keymap.md
and read converter's README of course.

And optionally also check Wiki.
https://github.com/tmk/tmk_keyboard/wiki

It may take long unless you have experience with AVR, but take time to learn if needed.

EDIT: Also check the first post of this thread.
https://geekhack.org/index.php?topic=41989.0
Title: Re: [TMK] Keyboard Converter
Post by: U47 on Mon, 10 August 2015, 00:51:32
Thanks, Hasu. I think I figured out what my issue was. (As you mentioned, those Xtals are indeed tricky to install.)

My NeXT keyboard is alive! My board (Part no. 192.00) has the ANSI layout, where the layout in TMK is ISO. I'm noticing a few weird things (keypad layout is different, "Alternate" key doesn't register at all) so I'm going to break out the debugger and see how things are different. It's likely I'll have a push request for you.

One side question: I read the schematic and I thought I installed my LED with the correct polarity, however nothing is lighting up. Should the LED light up on boot or does it only light up for certain events?

Thanks,
U47.


I can't explain everything in detail here. You have to read TMK documentations first and the docs won't be enough, you can use google to get further detail.
https://github.com/tmk/tmk_keyboard/blob/master/doc/build.md
https://github.com/tmk/tmk_keyboard/blob/master/doc/keymap.md
and read converter's README of course.

And optionally also check Wiki.
https://github.com/tmk/tmk_keyboard/wiki

It may take long unless you have experience with AVR, but take time to learn if needed.

EDIT: Also check the first post of this thread.
https://geekhack.org/index.php?topic=41989.0
Title: Re: [TMK] Keyboard Converter
Post by: hasu on Tue, 11 August 2015, 20:02:44
Thanks, Hasu. I think I figured out what my issue was. (As you mentioned, those Xtals are indeed tricky to install.)

My NeXT keyboard is alive! My board (Part no. 192.00) has the ANSI layout, where the layout in TMK is ISO. I'm noticing a few weird things (keypad layout is different, "Alternate" key doesn't register at all) so I'm going to break out the debugger and see how things are different. It's likely I'll have a push request for you.
great!


Quote
One side question: I read the schematic and I thought I installed my LED with the correct polarity, however nothing is lighting up. Should the LED light up on boot or does it only light up for certain events?
Some use it as CapsLock indicator or debug, others don't use at all.
Next converter doesn't use so you can use it for anything you want.
Title: Re: [TMK] Keyboard Converter
Post by: hasu on Fri, 11 September 2015, 03:47:46
Two USB to USB converts are in stock now.
Title: Re: [TMK] Keyboard Converter
Post by: hasu on Tue, 03 November 2015, 13:51:45
Some USB-USB converters are available again now.
Title: Re: [TMK] Keyboard Converter
Post by: hasu on Wed, 13 January 2016, 00:55:05
USB to USB converter supports TMK keymap editor now!

(http://i.imgur.com/ZLCNttkh.png)

Try it here.
http://www.tmk-kbd.com/tmk_keyboard/editor/usb_usb/

And Space Fn keymap, for example.
http://bit.ly/1OqgvMn
Title: Re: [TMK] Keyboard Converter
Post by: tonyooooo on Fri, 29 January 2016, 16:55:59
Hi, the usb to usb converter seems great. How much would it cost to send one in Europe (French) ?
Title: Re: [TMK] Keyboard Converter
Post by: nubbinator on Fri, 29 January 2016, 16:57:56
Do you have any plans at any point to do a Bluetooth version like you did for the HHKB?
Title: Re: [TMK] Keyboard Converter
Post by: hasu on Fri, 29 January 2016, 18:42:48
Hi, the usb to usb converter seems great. How much would it cost to send one in Europe (French) ?


Same rate for all surface of the globe.
Quote
Shipping and Paypal fee: $8USD (add $3 per extra converter)

Thanks
Title: Re: [TMK] Keyboard Converter
Post by: hasu on Fri, 29 January 2016, 18:56:58
Do you have any plans at any point to do a Bluetooth version like you did for the HHKB?

I've had a plan kind of that, you can connect both keyboard and Bluetooth dongle to the converter via USB hub at same time in theory, and you can give it power supply and Lipo charger(from sparkfun or adafruit? or just use power bank in the market) to make them wireless.
USB Host Shield libaray already supports Bluetooth dongle and HID luckily. My concern is MCU flash size, TMK has bloated its size now I'm not sure the code fits in 32KB.
https://github.com/felis/USB_Host_Shield_2.0#bthid-library

I don't a plan to design new hardware but USB-BT conversion is possible with this USB-USB converter + BT dongle + USB hub + power bank, I think. Too big and clumsy? :D
Title: Re: [TMK] Keyboard Converter
Post by: Vimto on Fri, 29 January 2016, 22:36:38
Would the USB converter make my Realforce programmable?
Title: Re: [TMK] Keyboard Converter
Post by: hasu on Sat, 30 January 2016, 00:57:33
Would the USB converter make my Realforce programmable?

yes, you can change keymap.
Title: Re: [TMK] Keyboard Converter
Post by: nubbinator on Sat, 30 January 2016, 02:27:53
Do you have any plans at any point to do a Bluetooth version like you did for the HHKB?

I've had a plan kind of that, you can connect both keyboard and Bluetooth dongle to the converter via USB hub at same time in theory, and you can give it power supply and Lipo charger(from sparkfun or adafruit? or just use power bank in the market) to make them wireless.
USB Host Shield libaray already supports Bluetooth dongle and HID luckily. My concern is MCU flash size, TMK has bloated its size now I'm not sure the code fits in 32KB.
https://github.com/felis/USB_Host_Shield_2.0#bthid-library

I don't a plan to design new hardware but USB-BT conversion is possible with this USB-USB converter + BT dongle + USB hub + power bank, I think. Too big and clumsy? :D

That would be awesome to have one that was less clunky.  So far, the only things I've seen are this USB2BT (http://www.amazon.com/dp/B00PI7MDK0/ref=wl_it_dp_o_pC_nS_ttl?_encoding=UTF8&colid=1A2GVP45YUABO&coliid=I2Q9GNBSVIIQR7) and what you have.

If I wanted, I could use your USB to USB with a Bluetooth dongle, battery, and hub on any 60% board?  Or does it only have to be with specific boards?
Title: Re: [TMK] Keyboard Converter
Post by: hasu on Sat, 30 January 2016, 04:23:07
Yes, you could do with existent TMK USB-USB converter, no specific hardware is needed for this, just firmware development is required.

If keyboard has hub like HHKB Pro2 you can plug dongle in it, it would look like this.
(http://i.imgur.com/kAG6c6yh.jpg)
Title: Re: [TMK] Keyboard Converter
Post by: nubbinator on Sat, 30 January 2016, 11:56:52
The firmware development would be for the bluetooth, correct, not the keymap, correct?
Title: Re: [TMK] Keyboard Converter
Post by: hasu on Sat, 30 January 2016, 18:43:54
Yes,
the library seems to support only bluetooth HID host role, but we need device role and will have to make it.
Title: Re: [TMK] Keyboard Converter
Post by: gcardinal on Sun, 06 March 2016, 03:13:07
What an awesome project! I got my self Tandberg TDV-5000 (https://deskthority.net/keyboards-f2/need-help-with-tandberg-tdv-5000-t13051.html) with following connector:
[attachimg=1]

Is it possible to use it directly with Mini-DIN type Converter ?
Title: Re: [TMK] Keyboard Converter
Post by: hasu on Sun, 06 March 2016, 05:16:35
What an awesome project! I got my self Tandberg TDV-5000 (https://deskthority.net/keyboards-f2/need-help-with-tandberg-tdv-5000-t13051.html) with following connector:
(Attachment Link)

Is it possible to use it directly with Mini-DIN type Converter ?
No, you can't use it directly because that pinout is not PS/2.
Title: Re: [TMK] Keyboard Converter
Post by: gcardinal on Sun, 06 March 2016, 05:21:29
What an awesome project! I got my self Tandberg TDV-5000 (https://deskthority.net/keyboards-f2/need-help-with-tandberg-tdv-5000-t13051.html) with following connector:
(Attachment Link)

Is it possible to use it directly with Mini-DIN type Converter ?
No, you can't use it directly because that pinout is not PS/2.

Okay, thank you for answer. How about PCB rev2.1 - can it be used for this pinout?
Title: Re: [TMK] Keyboard Converter
Post by: hasu on Sun, 06 March 2016, 05:51:53
Assuming pinout diagram above displays female connector(socket), any of pin configuration jumpers on the PCB can not give GND connection to pin5 in the diagram unfortunately.

My converter PCB's pin configuration jumpers looks like pics below. In case of Mini DIN6P connector DIN1, DIN2, DIN3, DIN5, DIN6 and DIN8 are wired to each connector pins. Pin5(DIN6) has no jumper for GND connection as you can see. Other pins can be connected with jumpers(for Next) somehow.
(http://i.imgur.com/0foLyf9.png)
(http://i.imgur.com/j9oXj8n.png)
Title: Re: [TMK] Keyboard Converter
Post by: hasu on Wed, 23 March 2016, 13:20:11
I'm on the road and away from home unexpectedly, shipping for some of orders will be delayed until Monday. And I cannot check and reply to inquiry mails until then.
Thank you for your patience.
Title: Re: [TMK] Keyboard Converter
Post by: hasu on Mon, 11 April 2016, 09:01:27
Revised converter prices(USB-USB: 50->55, M0110/IBM4704: 40-> 42, MiniDIN: 30->32) due to recent USD/JPY rate change and cost of components.

And a few of USB-USB converters are available now.
Title: Re: [TMK] Keyboard Converter
Post by: Mr. Perfect on Thu, 14 April 2016, 12:56:53
How does the Mini-DIN converter work? Does one converter accept all seven different types of board, or do I have to order one converter for each type?
Title: Re: [TMK] Keyboard Converter
Post by: hasu on Fri, 15 April 2016, 18:20:01
How does the Mini-DIN converter work? Does one converter accept all seven different types of board, or do I have to order one converter for each type?

Not "one fits all".
First, DIN connectors are differenent between those protocols. But Mini-DIN converters are actually indentical hardware except for connector and solder jumper setting. You can make one protocol converter into another by changing connector and jumpers with solder iron. You also have to update firmware of course.
Title: Re: [TMK] Keyboard Converter
Post by: Xe0n0 on Fri, 10 June 2016, 11:25:16
Wow~ If I use a USB2USB converter with my stock HHKB pro2 controller, doesn't mean I will get back my usb hub function?
Title: Re: [TMK] Keyboard Converter
Post by: hasu on Fri, 16 September 2016, 22:42:00
Keymap(unimpa) editor is availlable for USB-USB, ADB, PS/2, M0110 and NeXT now!

WIth keymap editor you can change keymaps without compiling firmware from source codes. If you use with Chrome it would give better result. It won't work with Safari at least.

http://www.tmk-kbd.com/tmk_keyboard/editor/
Title: Re: [TMK] Keyboard Converter
Post by: hasu on Fri, 30 September 2016, 06:44:23
Hi all,
Thanks for your support.

TMK Keymap editor is available for IBM4704 Converter now.

http://www.tmk-kbd.com/tmk_keyboard/editor/

Enjoy!
Title: Re: [TMK] Keyboard Converter
Post by: hasu on Wed, 05 October 2016, 22:29:24
Does anyone have problem on USB suspend(sleep)/resume(wakeup) and BIOS/EFI with TMK converter?
I am debuging and updating USB code in repository and wan to get infos on this from users, like which converter?, detailed problem description, OS, computer hardware and etc.

Can you sleep computer with keeping converter and keyboard connected?
Can you wakeup computer with keyboard via converter? Pressing any key on keyboard should wake your computer.
Can you use keyboard normally after wakeup(resume)?

Can you use keyboard normally after reboot?
Can you use keyboard normally on BIOS/UEFI?
Can you use keyboard normally on BIOS/UEFI after reboot?

Thanks.
Title: Re: [TMK] Keyboard Converter
Post by: hasu on Tue, 18 October 2016, 15:54:25
USB-USB converter is back in stock now.

And LED fix for USB-USB Converter is available now.
You can download the fixed firmware from keymap editor or build from source codes.
https://geekhack.org/index.php?topic=69169.msg2283838#msg2283838

Thanks
Title: Re: [TMK] Keyboard Converter
Post by: Glod on Fri, 16 December 2016, 16:18:06
i got my usb/usb converter and it works great, it is an extremely solid way to had hardware mapped colemak layout these keyboards i abandoned when i started using colemak. software colemak sucks. this was super easy to program. writing this on cherry G80 that has dust on it.

thank you hasu!!!
Title: Re: [TMK] Keyboard Converter
Post by: hasu on Fri, 16 December 2016, 17:01:57
Glad to hear that! Thanks for your post :D

i got my usb/usb converter and it works great, it is an extremely solid way to had hardware mapped colemak layout these keyboards i abandoned when i started using colemak. software colemak sucks. this was super easy to program. writing this on cherry G80 that has dust on it.

thank you hasu!!!
Title: Re: [TMK] Keyboard Converter
Post by: Happy Pizza Guy on Sat, 28 January 2017, 16:23:44
A few quick questions:

1. Does the ADB converter allow the locking Caps Lock on the Apple M0115 to work properly on Mac OS X?
2. Would the Power button on the M0115 work, too?
3. Would one Mini-DIN converter be able to handle multiple protocols? I have ADB, PS2 and Non-ADB NeXT keyboards that I'd be interested in using this for. Would I have to re-flash the Converter to switch protocols? How easy is that to do on Mac OS X?
Title: Re: [TMK] Keyboard Converter
Post by: hasu on Sat, 28 January 2017, 16:36:39
A few quick questions:

1. Does the ADB converter allow the locking Caps Lock on the Apple M0115 to work properly on Mac OS X?
2. Would the Power button on the M0115 work, too?
3. Would one Mini-DIN converter be able to handle multiple protocols? I have ADB, PS2 and Non-ADB NeXT keyboards that I'd be interested in using this for. Would I have to re-flash the Converter to switch protocols? How easy is that to do on Mac OS X?

1. yes, it should work, I didn't hear about the problem of capslock from users so far. I don't have Mac to test though.
2. Power button are assigned as special function by default, you can remap power key with editing code and compilng firmwre yourself.
3. Every protocol requires different connector.  But yes you can use it for those protocols if you replace connector, configure solder jumpers and re-flash firmware. Depends on how your are familiar of soldering, but re-flashing seems to be easy for Mac users, I don't have complains much from them comparing to Windows.
3
Title: Re: [TMK] Keyboard Converter
Post by: U47 on Tue, 31 January 2017, 21:01:12
3. Would one Mini-DIN converter be able to handle multiple protocols? I have ADB, PS2 and Non-ADB NeXT keyboards that I'd be interested in using this for. Would I have to re-flash the Converter to switch protocols? How easy is that to do on Mac OS X?

Flashing is easy, but fiddling with different mini-DINs and re/desoldering bridges isn't worth the time. I have 4 converters, one for NeXT, a M0110, an ADB, and a Sun. If hasu is willing, he may sell you bare boards that you can build yourself, if the cost is too great. Or get a Teensy (although that's not as elegant as hasu's solution).
Title: Re: [TMK] Keyboard Converter
Post by: Lirael on Sat, 11 March 2017, 13:19:19
Hi all,

This is my first post here. I'm trying to get my Apple IIgs keyboard connected to my Windows 10 PC using the ideas posted in this forum. There's a lot of great info here, but my skill set only got me so far.

I have a teensy 3.2 which a co-worker of mine graciously wired up for me. http://imgur.com/a/kjAfo (http://imgur.com/a/kjAfo)

I've also been using various guides to build the adb_usb.hex file - namely this one http://octobrain.net/blog/howto-revive-iigs-keyboard.html (http://octobrain.net/blog/howto-revive-iigs-keyboard.html).

I'm building the hex file on a Linux PC, and though I'm able to transfer it and successfully program the teensy board, nothing happens when I try connecting and typing on the IIgs keyboard.

I realize it may be difficult to decipher the wiring from the photos, but I'd appreciate whatever help I can find here.

Thanks!
Title: Re: [TMK] Keyboard Converter
Post by: hasu on Sat, 11 March 2017, 18:39:00
Hi all,

This is my first post here. I'm trying to get my Apple IIgs keyboard connected to my Windows 10 PC using the ideas posted in this forum. There's a lot of great info here, but my skill set only got me so far.

I have a teensy 3.2 which a co-worker of mine graciously wired up for me. http://imgur.com/a/kjAfo (http://imgur.com/a/kjAfo)

I've also been using various guides to build the adb_usb.hex file - namely this one http://octobrain.net/blog/howto-revive-iigs-keyboard.html (http://octobrain.net/blog/howto-revive-iigs-keyboard.html).

I'm building the hex file on a Linux PC, and though I'm able to transfer it and successfully program the teensy board, nothing happens when I try connecting and typing on the IIgs keyboard.

I realize it may be difficult to decipher the wiring from the photos, but I'd appreciate whatever help I can find here.

Thanks!

My firmware doesn't support Teensy3.x you have to port code to the platform. It is not so difficult but will take some amount of time to learn TMK firmware codes and ADB protocol.
It would be great if you or your buddy can contribute code for Teensy3.x to my github repository.

Just buy TMK ADB-USB converter from me if you want to save time of you and your colleague :D

This thread is specific to TMK preassembled converters, If you need further technical discussion on DIY converter post in this thread. https://geekhack.org/index.php?topic=14290.0

Title: Re: [TMK] Keyboard Converter
Post by: Tcow1015 on Sun, 23 April 2017, 09:20:32
Hello, I am a bit of a noob when it comes to Teensy but I decided that I wanted to convert an old ADB keyboard to USB, while I could have used a Micromate I decided that this was by far the better solution, not only was it cheaper but it allowed the Teensy to be hidden away inside the keyboard, I struggled to compile the code. (if you are like me and just want basic ADB to USB then here is the link to my compiled version.   https://drive.google.com/open?id=0B0I2s1ybg7qvZkVTdnAwOHFfZnM) But now I have having some problems with the wiring, the key presses don't register and the mouse pointer jumps around. I don't currently have any 1k Ohm resistors so I am waiting for some to come and I hope that those will fix my problem but if they don't then I will post a picture of my wiring and seek help. (I also am beginning to wonder if the keyboard it self is broken, don't know if there is an easy way to test that but if there is then I would like to test it as)
-Thanks
Title: Re: [TMK] Keyboard Converter
Post by: nevin on Sun, 23 April 2017, 15:37:23
Sounds like the issues you get without the pull up resistor. Hopefully your resistors will come in soon.

Sent from my SM-G900V using Tapatalk

Title: Re: [TMK] Keyboard Converter
Post by: hasu on Mon, 08 May 2017, 04:34:28
Update:
Keymap editor for Sharp X68000 converter is available now.

http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?x68k_usb
Title: Re: [TMK] Keyboard Protocol Converter
Post by: saturnin on Fri, 14 July 2017, 18:44:18
Hello ! Recently I've become an owner of hasu USB 2 USB converter. It's wonderful! Now I'm able to have a hardware implementation of Colemak layout and two separate extended layers with mouse and multimedia buttons.

Unfortunately my Tesoro Tizona keyboard won't work with this device. It has NKRO / 6KRO support but do not work in any of those. I've tried to compile tmk with nkro support but it will not help. Here is a console output from hid_listen (keyboard in 6KRO mode and TMK without NKRO support):
usb_state: 12
usb_state: 20
usb_state: 40
usb_state: 50
usb_state: 51
usb_state: 311
usb_state: 90
speed: full
host.Task: 2545
input 10: 00 00 12 00 00 00 00 usb_state: 40
host.Task: 2545

Line with input 10 repeats after each keypress. Input value (00 00 12 ...) coresponds to key pressed, but after that keyboard resets itself and reconnects. No output is send to OS. When I compile TMK with NKRO support console output is much less the same but input value is longer (16 bytes?)
As far as I understand there might be a problem with HID report parser. Is there any chance to make this keyboard work? I'm a C programmer (although a bit rusty) so if there is a chance to change TMK code a little bit I hope I will be able to learn how to do it by myself. Thank You for any hints You can give me.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Sun, 16 July 2017, 04:23:33
The build option  "NKRO_ENABLE" changes function on PC side, not for keyboard, so the option won't be helpful in this case.

How did you turn the keyboard into 6KRO? And USB descriptor of the device would be useful to know how NKRO/6KRO works.
https://github.com/tmk/tmk_keyboard/wiki/HID-Report-Descriptor

> usb_state: 311

hmm, state should be two digits, 311 is weird.
https://github.com/tmk/tmk_keyboard/blob/master/converter/usb_usb/usb_usb.cpp#L159https://github.com/tmk/tmk_keyboard/blob/master/tmk_core/protocol/usb_hid/USB_Host_Shield_2.0/UsbCore.h#L106-L119


> input 10: 00 00 12 00 00 00 00

Part after ":" indicates keyboard report(6KRO) and should be 8 bytes but this display only 7, weird. "12" means 'o' key in HID usage, btw.

I hope this helps somehow.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: P4-Takuto on Fri, 25 August 2017, 09:15:19
Hey there! I'm interested in a converter for an apple M0110 and M0110A. Since the polls are crossed in the M0110 would this adapter need to be modified to be compatible with both or will it only work with one or the other? Shipping to Canada via EMS if it's quicker than standard shipping. Hope to hear from you soon!
Email: ace-xxx@hotmail.com
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Fri, 25 August 2017, 16:31:31
Hey there! I'm interested in a converter for an apple M0110 and M0110A. Since the polls are crossed in the M0110 would this adapter need to be modified to be compatible with both or will it only work with one or the other? Shipping to Canada via EMS if it's quicker than standard shipping. Hope to hear from you soon!
Email: ace-xxx@hotmail.com

"the polls are crossed"? I'm not sure what does this mean but M0110 converter supports both M0110 and M0110A, no modification is required. And yes EMS is much quicker and recommended.
I'll send you invoice soon. Thanks.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: P4-Takuto on Tue, 10 October 2017, 08:33:27
I'm back again! Thank's for the M0110 converter, works like a charm! This time I'm interested in the converter for an IBM 6112884 with the optional EMS shipping. The EMS shipping arrives pretty quickly for shipping to Canada. Again thank you and hope to hear from you soon!
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Trente on Wed, 18 October 2017, 16:39:28
Hi Hasu, I just received the TMK converter for the NeXT non-adb keyboard, and I am using a macbook pro with this board, but it seems I can't get the keyboard identification done. I am wondering if I need to first flash some firmware on it or what I can do to make sure the converter is communicating with my mac but it is keyboard not working correctly?
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Wed, 18 October 2017, 17:08:16
Hi Hasu, I just received the TMK converter for the NeXT non-adb keyboard, and I am using a macbook pro with this board, but it seems I can't get the keyboard identification done. I am wondering if I need to first flash some firmware on it or what I can do to make sure the converter is communicating with my mac but it is keyboard not working correctly?

It comes with default firmware you don't have to flash unless you erase it. I think some users use with Mac but I don't have it to test it. If you have windows or linux try it on them.

Did you try ioreg or something to find the device?

Title: Re: [TMK] Keyboard Protocol Converter
Post by: Trente on Thu, 19 October 2017, 02:01:07
Hi Hasu, I just received the TMK converter for the NeXT non-adb keyboard, and I am using a macbook pro with this board, but it seems I can't get the keyboard identification done. I am wondering if I need to first flash some firmware on it or what I can do to make sure the converter is communicating with my mac but it is keyboard not working correctly?

It comes with default firmware you don't have to flash unless you erase it. I think some users use with Mac but I don't have it to test it. If you have windows or linux try it on them.

Did you try ioreg or something to find the device?

So I think my Mac is able to pick up the converter as a keyboard device since it prompted the external keyboard setup window, but my key switch pressing do not have any response, so I think it might be primarily the keyboard problem since a default firmware is on the converter and any keypress should at least get something registered. But yeah I will also try it on a linux or windows machine to make sure.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Glod on Sat, 21 October 2017, 18:03:16
hey hasu

got a question for you

I have your USB to USB converter

I tried it on a backlit keyboard for the first time this week, on this board (got it for 30$, seriously one of the best values ever)
https://www.amazon.com/Team-Wolf-Swappable-Mechanical-Keyboard-Blue/dp/B01AFBJQA8?th=1
it says on the back 5v 200ma

I am guessing there is a limit to how much the converter can pull? what is odd is that sometimes the board will take by the converter and will stay working until I unplug it but sometimes it just wont work, actually i haven't been able to get it to work anymore. The USB 2 USB converter seems to still be in good shape, takes my other boards just fine, was using it all day.

Is there something firmware wise I can do to the converter to get it to work? I only used the TMK hex creator on the website and not the "hard way", i didn't know if turning down anything would work (polling, nkro, etc)
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Sat, 21 October 2017, 21:16:16
Glod,
Could you dump HID descriptor of the keybaord? It would be helpful to debug.

This line defines max power consumption in mA of the converter, 100 by default. I guess how this value is handled depends on OS. What os are you using with the converter?
https://github.com/tmk/tmk_keyboard/blob/master/tmk_core/protocol/lufa/descriptor.c#L269

Title: Re: [TMK] Keyboard Protocol Converter
Post by: Glod on Sat, 21 October 2017, 22:00:36
Glod,
Could you dump HID descriptor of the keybaord? It would be helpful to debug.

This line defines max power consumption in mA of the converter, 100 by default. I guess how this value is handled depends on OS. What os are you using with the converter?
https://github.com/tmk/tmk_keyboard/blob/master/tmk_core/protocol/lufa/descriptor.c#L269

Windows
Code: [Select]
Information for device USB to USB keyboard converter (VID=0xFEED PID=0x005B):

Connection Information:
------------------------------
Device current bus speed: FullSpeed
Device supports USB 1.1 specification
Device supports USB 2.0 specification
Device address: 0x000E
Current configuration value: 0x01
Number of open pipes: 5

Device Descriptor:
------------------------------
0x12 bLength
0x01 bDescriptorType
0x0110 bcdUSB
0x00 bDeviceClass   
0x00 bDeviceSubClass   
0x00 bDeviceProtocol   
0x08 bMaxPacketSize0   (8 bytes)
0xFEED idVendor
0x005B idProduct
0x0814 bcdDevice
0x01 iManufacturer   "t.m.k."
0x02 iProduct   "USB to USB keyboard converter"
0x00 iSerialNumber
0x01 bNumConfigurations

Configuration Descriptor:
------------------------------
0x09 bLength
0x02 bDescriptorType
0x0074 wTotalLength   (116 bytes)
0x04 bNumInterfaces
0x01 bConfigurationValue
0x00 iConfiguration
0xA0 bmAttributes   (Bus-powered Device, Remote-Wakeup)
0x32 bMaxPower      (100 mA)

Interface Descriptor:
------------------------------
0x09 bLength
0x04 bDescriptorType
0x00 bInterfaceNumber
0x00 bAlternateSetting
0x01 bNumEndPoints
0x03 bInterfaceClass      (Human Interface Device Class)
0x01 bInterfaceSubClass   
0x01 bInterfaceProtocol   
0x00 iInterface

HID Descriptor:
------------------------------
0x09 bLength
0x21 bDescriptorType
0x0111 bcdHID
0x00 bCountryCode
0x01 bNumDescriptors
0x22 bDescriptorType   (Report descriptor)
0x003F bDescriptorLength

Endpoint Descriptor:
------------------------------
0x07 bLength
0x05 bDescriptorType
0x81 bEndpointAddress  (IN endpoint 1)
0x03 bmAttributes      (Transfer: Interrupt / Synch: None / Usage: Data)
0x0008 wMaxPacketSize    (1 x 8 bytes)
0x0A bInterval

Interface Descriptor:
------------------------------
0x09 bLength
0x04 bDescriptorType
0x01 bInterfaceNumber
0x00 bAlternateSetting
0x01 bNumEndPoints
0x03 bInterfaceClass      (Human Interface Device Class)
0x01 bInterfaceSubClass   
0x02 bInterfaceProtocol   
0x00 iInterface

HID Descriptor:
------------------------------
0x09 bLength
0x21 bDescriptorType
0x0111 bcdHID
0x00 bCountryCode
0x01 bNumDescriptors
0x22 bDescriptorType   (Report descriptor)
0x004D bDescriptorLength

Endpoint Descriptor:
------------------------------
0x07 bLength
0x05 bDescriptorType
0x82 bEndpointAddress  (IN endpoint 2)
0x03 bmAttributes      (Transfer: Interrupt / Synch: None / Usage: Data)
0x0008 wMaxPacketSize    (1 x 8 bytes)
0x0A bInterval

Interface Descriptor:
------------------------------
0x09 bLength
0x04 bDescriptorType
0x02 bInterfaceNumber
0x00 bAlternateSetting
0x01 bNumEndPoints
0x03 bInterfaceClass      (Human Interface Device Class)
0x00 bInterfaceSubClass   
0x00 bInterfaceProtocol   
0x00 iInterface

HID Descriptor:
------------------------------
0x09 bLength
0x21 bDescriptorType
0x0111 bcdHID
0x00 bCountryCode
0x01 bNumDescriptors
0x22 bDescriptorType   (Report descriptor)
0x0036 bDescriptorLength

Endpoint Descriptor:
------------------------------
0x07 bLength
0x05 bDescriptorType
0x83 bEndpointAddress  (IN endpoint 3)
0x03 bmAttributes      (Transfer: Interrupt / Synch: None / Usage: Data)
0x0008 wMaxPacketSize    (1 x 8 bytes)
0x0A bInterval

Interface Descriptor:
------------------------------
0x09 bLength
0x04 bDescriptorType
0x03 bInterfaceNumber
0x00 bAlternateSetting
0x02 bNumEndPoints
0x03 bInterfaceClass      (Human Interface Device Class)
0x00 bInterfaceSubClass   
0x00 bInterfaceProtocol   
0x00 iInterface

HID Descriptor:
------------------------------
0x09 bLength
0x21 bDescriptorType
0x0111 bcdHID
0x00 bCountryCode
0x01 bNumDescriptors
0x22 bDescriptorType   (Report descriptor)
0x0020 bDescriptorLength

Endpoint Descriptor:
------------------------------
0x07 bLength
0x05 bDescriptorType
0x84 bEndpointAddress  (IN endpoint 4)
0x03 bmAttributes      (Transfer: Interrupt / Synch: None / Usage: Data)
0x0020 wMaxPacketSize    (1 x 32 bytes)
0x01 bInterval

Endpoint Descriptor:
------------------------------
0x07 bLength
0x05 bDescriptorType
0x04 bEndpointAddress  (OUT endpoint 4)
0x03 bmAttributes      (Transfer: Interrupt / Synch: None / Usage: Data)
0x0020 wMaxPacketSize    (1 x 32 bytes)
0x01 bInterval

Microsoft OS Descriptor is not available. Error code: 0x0000001F

String Descriptor Table
--------------------------------
Index  LANGID  String
0x00   0x0000  0x0409
0x01   0x0409  "t.m.k."
0x02   0x0409  "USB to USB keyboard converter"

------------------------------

Connection path for device:
USB xHCI Compliant Host Controller
Root Hub
Generic USB Hub
Generic USB Hub
Generic USB Hub
Generic USB Hub
USB to USB keyboard converter (VID=0xFEED PID=0x005B) Port: 3

Running on: Windows 10 or greater

Brought to you by TDD v2.0.0, Jul 12 2017, 15:09:10
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Glod on Sat, 21 October 2017, 22:11:45
i am a idiot, wrong keyboard

here

Code: [Select]
Information for device Gaming KB  (VID=0x258A PID=0x1006):

Connection Information:
------------------------------
Device current bus speed: FullSpeed
Device supports USB 1.1 specification
Device supports USB 2.0 specification
Device address: 0x000E
Current configuration value: 0x01
Number of open pipes: 2

Device Descriptor:
------------------------------
0x12 bLength
0x01 bDescriptorType
0x0110 bcdUSB
0x00 bDeviceClass   
0x00 bDeviceSubClass   
0x00 bDeviceProtocol   
0x08 bMaxPacketSize0   (8 bytes)
0x258A idVendor
0x1006 idProduct
0x0105 bcdDevice
0x01 iManufacturer   "Gaming KB "
0x02 iProduct   "Gaming KB "
0x00 iSerialNumber
0x01 bNumConfigurations

Configuration Descriptor:
------------------------------
0x09 bLength
0x02 bDescriptorType
0x003B wTotalLength   (59 bytes)
0x02 bNumInterfaces
0x01 bConfigurationValue
0x00 iConfiguration
0xA0 bmAttributes   (Bus-powered Device, Remote-Wakeup)
0x96 bMaxPower      (300 mA)

Interface Descriptor:
------------------------------
0x09 bLength
0x04 bDescriptorType
0x00 bInterfaceNumber
0x00 bAlternateSetting
0x01 bNumEndPoints
0x03 bInterfaceClass      (Human Interface Device Class)
0x01 bInterfaceSubClass   
0x01 bInterfaceProtocol   
0x00 iInterface

HID Descriptor:
------------------------------
0x09 bLength
0x21 bDescriptorType
0x0111 bcdHID
0x00 bCountryCode
0x01 bNumDescriptors
0x22 bDescriptorType   (Report descriptor)
0x0041 bDescriptorLength

Endpoint Descriptor:
------------------------------
0x07 bLength
0x05 bDescriptorType
0x81 bEndpointAddress  (IN endpoint 1)
0x03 bmAttributes      (Transfer: Interrupt / Synch: None / Usage: Data)
0x0008 wMaxPacketSize    (1 x 8 bytes)
0x02 bInterval

Interface Descriptor:
------------------------------
0x09 bLength
0x04 bDescriptorType
0x01 bInterfaceNumber
0x00 bAlternateSetting
0x01 bNumEndPoints
0x03 bInterfaceClass      (Human Interface Device Class)
0x01 bInterfaceSubClass   
0x01 bInterfaceProtocol   
0x00 iInterface

HID Descriptor:
------------------------------
0x09 bLength
0x21 bDescriptorType
0x0111 bcdHID
0x00 bCountryCode
0x01 bNumDescriptors
0x22 bDescriptorType   (Report descriptor)
0x00A8 bDescriptorLength

Endpoint Descriptor:
------------------------------
0x07 bLength
0x05 bDescriptorType
0x82 bEndpointAddress  (IN endpoint 2)
0x03 bmAttributes      (Transfer: Interrupt / Synch: None / Usage: Data)
0x0008 wMaxPacketSize    (1 x 8 bytes)
0x01 bInterval

Microsoft OS Descriptor is not available. Error code: 0x0000001F

String Descriptor Table
--------------------------------
Index  LANGID  String
0x00   0x0000  0x0409
0x01   0x0409  "Gaming KB "
0x02   0x0409  "Gaming KB "

------------------------------

Connection path for device:
USB xHCI Compliant Host Controller
Root Hub
Generic USB Hub
Generic USB Hub
Generic USB Hub
Generic USB Hub
Gaming KB  (VID=0x258A PID=0x1006) Port: 3

Running on: Windows 10 or greater

Brought to you by TDD v2.0.0, Jul 12 2017, 15:09:10
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Sun, 22 October 2017, 01:50:26
Thank you.
Sorry I forgot to include this link,  to see Report descriptor requires some more hassles. Report descriptor is more desireble to look into. If you have more time try USBlyzer on WIndows.
https://github.com/tmk/tmk_keyboard/wiki/HID-Report-Descriptor

The keyboard rerquires 300mA on descriptor, what if change the MaxPower line of the converter  to 500mA from 100mA?


Title: Re: [TMK] Keyboard Protocol Converter
Post by: Glod on Mon, 23 October 2017, 14:39:44
I could not get around to making hex file the "old fashioned way" until now.

Editing the mA did not do anything, changing to 300 or 500 or even 2000 did not make a difference
Editing the mA alone did not work.

HOWEVER, when i commented out the extra keys in the Makefile
#EXTRAKEY_ENABLE ?= yes   # Media control and System control
It started to work every time I plug it on my main PC, In fact I am typing colemak on it now.
edit: changing the mA did indeed make a difference, if i set it lower than 300 it sometimes does not work.

BUT, it will not work on my "work PC" unless I plug in the USB_USB into the port and then after 1 second plug in the keyboard, and that works 25% of the time. There must be something that can be done?

edit: just some more info. I do NOT have to comment out the extra keys on the other keyboards i use with the usb_usb such as my G80 or Model M with ps/2 converter. it works every time on those. I am guessing the reason the keyboard is having problems is the backlighting,

edit2 : ok so i found 2 other backlit keyboards and they DO NOT run into any issues. I am thinking something is odd with this teamwolf keyboard, it has these changeable nkro and polling rate t settings and I tried all combinations with no luck on the work pc. ALL combinations of polling rate and nkro works with my main PC.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Tue, 24 October 2017, 00:08:59
Glod, Thank you for your trials and report.

BUT, it will not work on my "work PC" unless I plug in the USB_USB into the port and then after 1 second plug in the keyboard, and that works 25% of the time. There must be something that can be done?

hm, there may be something wrong or to be improved with startup of converter firmware, though I'm not sure at this time.

Title: Re: [TMK] Keyboard Protocol Converter
Post by: pixelpusher on Sun, 05 November 2017, 14:32:08
Hey guys.  I have an issue and I was wondering if you could help.  I have recently acquired a SIIG minitouch keyboard.  I like the monterrey blue switches in it a lot.  The keyboard is 5pin DIN but works great with a DIN to PS2 adapter.  However, I wanted to get it working over usb at some point.  I bought the active PS2 to USB converter from Amazon that everyone always recommends, but it doesn't fully work.  What happens it that the converter is dropping many of my keypreses at random times.   I don't have this issue when I run it over PS2.

I checked the forums and I haven't seen anyone with this issue using the active converter. 

Would the hasu's converter somehow be "better" than the one here:
https://www.amazon.com/gp/product/B000BSJFJS/

Edit: I just tried the converter with my Model M (PS2) and it works fine.  It seems to be something unique to the SIIG keyboard.  I guess I could just use a PS2 extension cable, but I wouldn't ever be able to use it with a laptop :(

Thanks for your time.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Sun, 05 November 2017, 17:43:04
It is not common problem and only other SIIG users can really help you. I don't know whether my PS/2 converter works with the keyboard or not.

I found SIIG sells this converter, you can ask them if it works before buying it. They should know the keyhoard.
http://www.siig.com/it-products/usb/converters/usb-to-ps-2-adapter-1246.html
Title: Re: [TMK] Keyboard Protocol Converter
Post by: rich1051414 on Mon, 06 November 2017, 04:07:45
First I want to say, I love this library, it works perfectly for ADB conversion where all the commercial options have some fairly major issues here and there.

However, I have had 2 problems so far using TMK, so maybe I can knock them both out this weekend, but first I want to ask if there are easily solutions to my problems first.

First, I am having some debounce issues, a couple keys are chattering at around 12ms chatter, so is there a way to add some debounce, of, say, 15ms?

Second is, the equals key on the numpad is non-functional on my AEK. Fairly sure the switch is working fine, but the firmware isn't sending the correct keystroke.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Tue, 07 November 2017, 16:07:42
First I want to say, I love this library, it works perfectly for ADB conversion where all the commercial options have some fairly major issues here and there.

However, I have had 2 problems so far using TMK, so maybe I can knock them both out this weekend, but first I want to ask if there are easily solutions to my problems first.

First, I am having some debounce issues, a couple keys are chattering at around 12ms chatter, so is there a way to add some debounce, of, say, 15ms?

Second is, the equals key on the numpad is non-functional on my AEK. Fairly sure the switch is working fine, but the firmware isn't sending the correct keystroke.


The converters itself doesn't handle debounce at all  while it depends totally on keyboard side. If you have chattering it is switches or keyboard controller problem.

Windows? It can't recognize numpad eqaul('P=' on keymap editor) unfortunately, while it can be used on Linux and Mac without problem. As you know you can remap the key to normal eqaul('=') or anything you want.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: rich1051414 on Wed, 08 November 2017, 17:12:57
Windows? It can't recognize numpad eqaul('P=' on keymap editor) unfortunately, while it can be used on Linux and Mac without problem. As you know you can remap the key to normal eqaul('=') or anything you want.
OH didn't realize that, thanks!
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Thu, 18 January 2018, 23:52:30
[ADB-USB Firmware update]
Hi folks,
I got a report from some user about lag on typing with ADB-USB converter the other day. Today I confirmed the lag problem and fixed it. Source code in github repo and firmware binary in Keyboard Editor was updated.

You can download new firmware from Keyboard Editor.
http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?adb_usb


This problem was related to  ADB mouse support and have been missed for long. Filed it and added some descriptions here. https://github.com/tmk/tmk_keyboard/issues/518

With the new firmware it reads key evernts from keyboard around twice faster than before. That being said, ADB protocol and keyboard controller is not that fast comparing with modern keyboards.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: kishy on Wed, 21 March 2018, 12:23:42
hasu,
For the 4704 converter, you've indicated that your keymap editor is available for use with the 62, 77 and 107-key keyboards.

What about the 50-key? I am unaware of what codes it sends (and therefore what, if anything your converter handles it as), but if one were to use a 62-key and want an external numpad and additional functions, the 50-key could be an attractive option. I have one and my eventual goal is to use it in that manner.

I'm not aware of how many people have them, though. It's probably the least desirable 4704 keyboard for various reasons.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Wed, 21 March 2018, 20:44:10
hasu,
For the 4704 converter, you've indicated that your keymap editor is available for use with the 62, 77 and 107-key keyboards.

What about the 50-key? I am unaware of what codes it sends (and therefore what, if anything your converter handles it as), but if one were to use a 62-key and want an external numpad and additional functions, the 50-key could be an attractive option. I have one and my eventual goal is to use it in that manner.

I'm not aware of how many people have them, though. It's probably the least desirable 4704 keyboard for various reasons.

Keymap Editor doens't support 50-key  but you can still build firmware for it form source code.
https://github.com/tmk/tmk_keyboard/blob/master/converter/ibm4704_usb/keymap_common.h#L88-L111

Adding 50-key support on Keymap Editor is not difficult at all. But no demand from users so far.
I'll be happy to add 50-key support if customer want. Let me know when you order.

Note that you need two converts for the setup(62-key + 50-key) unfortunately, the converter can handle only one keyboard at same time. 'DB9 Y-splitter cable' may work but I'm not sure.(may not)
Title: Re: [TMK] Keyboard Protocol Converter
Post by: kishy on Fri, 23 March 2018, 09:56:53
Great, thanks :)

Unrelated: I have discovered that I have a couple ATmega32-16PU hanging around from an old project I never finished, and am wondering if this AVR is capable of running your converter. Any thoughts?
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Fri, 23 March 2018, 18:37:21
Great, thanks :)

Unrelated: I have discovered that I have a couple ATmega32-16PU hanging around from an old project I never finished, and am wondering if this AVR is capable of running your converter. Any thoughts?

It is possible but not recommended.
With that AVR you have to use V-USB, which is software USB engine instead of hardware engine in ATMega32u4/u2. It have to blocks main application code exectution for some time for USB signal handling, this is not problem for keyboard controller but not useful or makes difficult for covnerter in some cases. It is still possible perhaps, but you will have to refine protocol handling code for this.


Thank you for your order! Shipped IBM4704 converter. I'll work on 50-key support later.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Blaise170 on Mon, 02 April 2018, 08:56:53
Do you know if the PC98 converter is compatible with PC88?
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Wed, 04 April 2018, 20:13:02
Do you know if the PC98 converter is compatible with PC88?

They are not compatible.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: [Lewynlight] on Sun, 08 April 2018, 08:40:46
Hi Hasu, Quick question;

will your Mini-DIN to USB converter works if i used it with DIN to Mini-DIN first? so the chaining will be;

Keyboard-cable->DIN-to Mini Din Converter->Converter -> USB

how about this?
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Sun, 08 April 2018, 17:59:28
Hi Hasu, Quick question;

will your Mini-DIN to USB converter works if i used it with DIN to Mini-DIN first? so the chaining will be;

Keyboard-cable->DIN-to Mini Din Converter->Converter -> USB

how about this?

I assume you are refering to PS/2 converter. If so yes, the converter works with AT keyboard.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: [Lewynlight] on Sun, 08 April 2018, 20:35:14
Hi Hasu, Quick question;

will your Mini-DIN to USB converter works if i used it with DIN to Mini-DIN first? so the chaining will be;

Keyboard-cable->DIN-to Mini Din Converter->Converter -> USB

how about this?

I assume you are refering to PS/2 converter. If so yes, the converter works with AT keyboard.


yes, your assumption is correct.
thanks for the answer. there will be order by me in near future  :))
Title: Re: [TMK] Keyboard Protocol Converter
Post by: dgreekstallion on Wed, 11 April 2018, 08:32:33
Excited to get my new 6112884 up and running. Are there instructions for this? I got the fully assemble converter.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Wed, 11 April 2018, 17:52:53
Excited to get my new 6112884 up and running. Are there instructions for this? I got the fully assemble converter.

Check first post of this thread and the converter specific thread first. Then you can refer wiki on github. https://github.com/tmk/tmk_keyboard/wiki

Post your question in proper thread if needed. I'm happy to help.
- Keyobard Protocol Converter generic topic: this thread
- IBM 4704 Converter specific topic: https://geekhack.org/index.php?topic=54706.0
- TMK firmware generic topic: https://geekhack.org/index.php?topic=41989.0
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Fri, 27 April 2018, 03:25:44
[IBM4704]

Added IBM4704 50-key(6019273) support on keymap editor.

http://www.tmk-kbd.com/tmk_keyboard/editor/
https://goo.gl/95HRna
Title: Re: [TMK] Keyboard Protocol Converter
Post by: TheMilkmen on Mon, 28 May 2018, 08:34:00
Quick dumb question but can this converter be used on one of the ibm pingmasters? I'm just curious since I couldn't see anything other than a soarers converter for it. Thanks!
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Monarchial on Mon, 28 May 2018, 12:44:35
Hi @Hasu

Is there any chance you're going to release an fc660m controller?

I'm working on one right now but running into some issues and was wondering if you had plans to do it.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Somun on Thu, 28 June 2018, 05:11:16
Just discovered this while looking to fix my Kinesis advantage, which does not work on a Windows 7 PC I have.

Hasu, can the firmware be configured to also include a PS/2 mouse interface? I am planning on adding some trackpad/touchpoint and get a composite usb device since the usb hub will be gone. Wondering if this is somehow achievable with maybe a custom TMK build? I don't need to change the keymap, btw.

Thanks.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Thu, 28 June 2018, 22:03:10
Just discovered this while looking to fix my Kinesis advantage, which does not work on a Windows 7 PC I have.

Hasu, can the firmware be configured to also include a PS/2 mouse interface? I am planning on adding some trackpad/touchpoint and get a composite usb device since the usb hub will be gone. Wondering if this is somehow achievable with maybe a custom TMK build? I don't need to change the keymap, btw.

Thanks.

I think it is kind of possible but it won't be simple job like editting Makefile or config.h. You will have to write some code with looking into existent codes.


Title: Re: [TMK] Keyboard Protocol Converter
Post by: Somun on Fri, 29 June 2018, 10:16:16
Just discovered this while looking to fix my Kinesis advantage, which does not work on a Windows 7 PC I have.

Hasu, can the firmware be configured to also include a PS/2 mouse interface? I am planning on adding some trackpad/touchpoint and get a composite usb device since the usb hub will be gone. Wondering if this is somehow achievable with maybe a custom TMK build? I don't need to change the keymap, btw.

Thanks.

I think it is kind of possible but it won't be simple job like editting Makefile or config.h. You will have to write some code with looking into existent codes.

Thanks for the reply. Would not mind writing code. From a brief look, my impression is that the converter works by imitating a keyboard matrix that feeds off of the data coming from the ps2 keyboard. I know that the TMK has support for a ps2 mouse but not sure if the converter is repurposing the same code for the ps2 or how hard it would be add handling for a second one. I also need to change the USB descriptors I guess? I would appreciate any pointers / suggestions.

Thanks again.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Laser on Sun, 01 July 2018, 10:32:38

Sorry if this was asked already, could you describe the steps needed to add two extra buttons to the ps2_usb tmk converter? Or is there some support already?

I mean, buttons connected directly to some pins of the atmega32u4.

Thanks!
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Sun, 01 July 2018, 15:55:34

Sorry if this was asked already, could you describe the steps needed to add two extra buttons to the ps2_usb tmk converter? Or is there some support already?

I mean, buttons connected directly to some pins of the atmega32u4.

Thanks!


You can add your code in `matrix_scan()` function to scan the buttons.
https://github.com/tmk/tmk_keyboard/blob/master/converter/ps2_usb/matrix.c#L144

The function is called repeatedly every so often in main loop and would be good place to add your code in this case. TMK converters translate scancode got from keyboard into key stataus as a bit in array `matrix[]`.

I think you can add state of those buttons into the array `matrix[]` using scancodes unused in your keyboard, for example F13(0x08) and F14(0x10). Use 'matrix_make()` and `matrix_break()` to change status of the button, like `matrix_make(0x08)` when it is pressed.
https://github.com/tmk/tmk_keyboard/blob/master/converter/ps2_usb/matrix.c#L407-L423

EDIT:
This thread is basically intended to offer support for users of TMK made converters. Technical topic about converter modification like this would be more suitable to this PS/2 converter thread. Post in the thread if you need any further quetion, so that we can share info with community.
https://geekhack.org/index.php?topic=14618.0
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Laser on Sun, 01 July 2018, 16:17:42
Thanks for the quick reply! I think I understand. One more question, could I also use mousekey key codes instead of F13 or F14, such as KC_BTN1 or KC_BTN2 instead (assuming I do enable mousekey functionality) ?

EDIT: sorry, I saw your edit only after posting. Next posts will be made in the other thread.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Sun, 01 July 2018, 16:22:30
Thanks for the quick reply! I think I understand. One more question, could I also use mousekey key codes instead of F13 or F14, such as KC_BTN1 or KC_BTN2 instead (assuming I do enable mousekey functionality) ?

EDIT: sorry, I saw your edit only after posting. Next posts will be made in the other thread.

Yes, you can remap the F13 and F14 to the mouse button in keymap definition.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Laser on Sun, 01 July 2018, 16:30:57

Thanks again, Hasu! :)
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Thu, 05 July 2018, 19:31:32
[USB-USB]
Updated firmware of USB-USB converter to fix startup issue. See this post for detail.

https://geekhack.org/index.php?topic=69169.msg2634041#msg2634041

Thanks
Title: Re: [TMK] Keyboard Protocol Converter
Post by: scotland on Sat, 07 July 2018, 18:09:35
My USB to USB converter arrived quickly to the UK. My whole idea was to map a UK layout Apple aluminium keyboard to work in Windows. The reason being my work PC is completely locked down so a hardware based method of remapping the keys was preferable. Using hasu's converter I managed to swap:

Left alt to left Windows
Left CMD to left alt
F13 to print screen
F14 to volume down
F15 to volume up

Thanks again hasu. Great service and great piece of kit.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Sat, 07 July 2018, 19:51:32
Thanks for the feedback. Glad to hear that!
Title: Re: [TMK] Keyboard Protocol Converter
Post by: tonsoffun49 on Fri, 27 July 2018, 16:15:55
Having a bit of a slow moment so I just want to clarify if someone wouldn't mind helping me. I have 2 Pingmasters, a 6113442 and a 5954339. From what I have seen on Reddit and GeekHack, there are two ways to make it work on a modern Windows machine.

1. (Internal) Replacing the internal CPU with a Teensy 2.0
2. (External) Buying the IBM 4704 converter or building one using a DE-9 wired to a Teensy 2.0.

Not that I wouldn't mind supporting Hasu and buying the converter from him, I just prefer to make my own as I want to learn how to do this and enjoy tinkering. I don't like the idea of opening the case and messing with the internal CPU so I would rather convert it externally. Is a Teensy necessary or will a ProMicro work? Any tips or help would be appreciated. This is my first vintage board and I can't wait to start using it.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Blaise170 on Sat, 28 July 2018, 19:01:36
ProMicro will work if it's the same processor (ATMEGA32U4).
Title: Re: [TMK] Keyboard Protocol Converter
Post by: tonsoffun49 on Sun, 29 July 2018, 02:48:11
Thanks. Is there a benefit to using a Teensy over Pro Micro?
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Kekeke on Sat, 18 August 2018, 10:40:47
I'm soory for asking this, but it seems I have a problem with pc98converter.
I built converter from leonardo, changed makefile by the way in config.h pd5 changed to pd1 but in readme its still pd5 and hid_listener just give me pc98:send9c:9c
Is it problem with my keyboard?

Sorry for my english and so noobish question
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Sat, 18 August 2018, 18:13:45
I'm soory for asking this, but it seems I have a problem with pc98converter.
I built converter from leonardo, changed makefile by the way in config.h pd5 changed to pd1 but in readme its still pd5 and hid_listener just give me pc98:send9c:9c
Is it problem with my keyboard?

Sorry for my english and so noobish question

Ah, yes RTY should be PD1 in README, I'll update github repo later.

what model is exactly your keyboard?
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Kekeke on Sun, 19 August 2018, 08:34:46

Ah, yes RTY should be PD1 in README, I'll update github repo later.

what model is exactly your keyboard?


I think its pc-9801RA keyboard, I dunno where I can see exactly model name) I have same model as this guy - http://island.geocities.jp/cklouch/column/pc98bas/ptpc98kbdra.htm (http://island.geocities.jp/cklouch/column/pc98bas/ptpc98kbdra.htm)

Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Sun, 19 August 2018, 20:32:51

Ah, yes RTY should be PD1 in README, I'll update github repo later.

what model is exactly your keyboard?


I think its pc-9801RA keyboard, I dunno where I can see exactly model name) I have same model as this guy - http://island.geocities.jp/cklouch/column/pc98bas/ptpc98kbdra.htm (http://island.geocities.jp/cklouch/column/pc98bas/ptpc98kbdra.htm)



hmm, I don't have that type keyboard to test and I guess it doesn't accept intialize commands. Can you try patch below to avoid the commands?
The PC98 converter was confirmed just with PC-9801V keyboard and DIGITAL WAVE D-BOARD so far, btw.

Code: [Select]
diff --git a/converter/pc98_usb/matrix.c b/converter/pc98_usb/matrix.c
index 54bb304..0ccf700 100644
--- a/converter/pc98_usb/matrix.c
+++ b/converter/pc98_usb/matrix.c
@@ -71,6 +71,7 @@ static void pc98_inhibit_repeat(void)
 
     // clear recv buffer
     while (serial_recv()) ;
+/*
 RETRY:
     _delay_ms(100);
     pc98_send(0x9C);
@@ -83,6 +84,7 @@ RETRY:
     code = pc98_wait_response();
     if (code != -1) xprintf("PC98: send 70: %02X\n", code);
     if (code != 0xFA) goto RETRY;
+*/
 }
 
 void matrix_init(void)
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Kekeke on Mon, 20 August 2018, 08:47:05
Thanks for helping but It still doesn't work. Hid_listen said "keyboard start" but its doesn't work. I will dig further or just rebuild whole keyboard like diy-keyboard )

Title: Re: [TMK] Keyboard Protocol Converter
Post by: ramencup on Sun, 26 August 2018, 21:57:00
Heya, thinking about the IBM 4704 converter. Since this is presumably shipping from Japan, how much will this cost to ship and when should I expect it?
Also, does the converter preserve NKRO?
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Mon, 27 August 2018, 20:01:45
The converters can be shipped usually in a few working days. It usually takes 5-10 days depending on your place. Shipping costs 6usd regardless of your location.

Default firmware supports only 6NKRO you have to configure in Makefile to enable NKRO.

Sent from my WAS-LX2J using Tapatalk

Title: Re: [TMK] Keyboard Protocol Converter
Post by: Kekeke on Tue, 04 September 2018, 08:12:49
Quote
The PC98 converter was confirmed just with PC-9801V

it's work with my keyboard I think its pc-9801RA. i change unimap. And i am kind of stupid, i messed up with receptable and acceptable connectors side. but now it works except **** and ctrl))

big thanks for this firmware and helping, i'm so happy now.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Fri, 07 September 2018, 19:13:21
it's work with my keyboard I think its pc-9801RA. i change unimap. And i am kind of stupid, i messed up with receptable and acceptable connectors side. but now it works except **** and ctrl

Great.
What is happened on **** and ctrl?  Do you think it is firmware related problem?
And  what is **** means actually?
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Kekeke on Sun, 09 September 2018, 07:04:04
shift is shifт why it is in spam list?)

Now it works, something in unimaptrans was not correct for this kind of keyboard
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Sun, 09 September 2018, 18:10:16
Hello there, I recently obtained a Zenith Z 150 XT and am reporting that your most recent hex file seems to work just fine. I am not experiencing issues with wake up from sleep like fer.real mentioned. FWIW I am on a Mac, and am using teensy with the reset pin wired in. I will test out the converter and report back if I notice anything. Just an fyi :)

Thanks for another awesome project hasu!

Hi Again,

I've been using using the newest hex file you posted for a couple of days and I'm running into an issue.

The new firmware works great when I first plug the converter into the computer.  As long as the computer stays awake, I no longer have any of the random keypresses or repeating keys.

Problems start when my laptop wakes from sleep or hibernation.  As soon as it wakes up, the converter starts sending repeating keystrokes.  If I unplug and reattach the USB cable, the converter works fine again.

Attached is the output of hid_listen after the computer woke from sleep.
(Attachment Link)

Thanks again!

shift is shifт why it is in spam list?)

Now it works, something in unimaptrans was not correct for this kind of keyboard

Great. Post and share your patch for original code!

Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Fri, 26 October 2018, 21:05:25
[USB-USB]
STL file of enclosure designed for USB -USB converter is available on repo now. Thank you, Gouty@github!
https://github.com/tmk/USB2USB_Converter/tree/master/3D%20Printed%20Case

Try 3D print of the file if you are insterested.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: SomRandy on Sat, 10 November 2018, 21:04:35
You got any b-stock/refurbished style 4704 converters? Wanna buy one but money is pretty tight
Title: Re: [TMK] Keyboard Protocol Converter
Post by: fcoury on Tue, 20 November 2018, 18:55:06
Removed, realized I posted on the wrong thread.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Hypersphere on Wed, 19 December 2018, 16:00:33
@Hasu: Regarding your USB-USB converter:

1. Do you sell (and/or do you have other sales outlets) an internal version of the USB-USB converter?

2. Would the internal USB-USB converter work with a Pok3r and/or VIBE keyboard? These use the partial programming functions of the Poker, but they are not completely programmable. In particular, on keyboards with a Poker-type layout, I like to remap the keys to something close to a HHKB layout, in which case I use the RCtrl as my Fn key. With the built-in Poker programming, the RCtrl key cannot be reassigned. However, I have used your external USB-USB converter successfully with the Pok3r, but it would be more convenient for me if I could install the converter inside the case.

Thank you.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Thu, 20 December 2018, 01:07:55
Hi Hypersphere,

1. No, I have no internal version of the converter. But you can get it without USB connectors for if it is useful for you.

2. When the converter works externally with the keyboard, there is no reason that it doesn't work inside as far as the keyboard has enough room and you can connect wires properly.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Hypersphere on Thu, 20 December 2018, 15:21:29
Thanks, Hasu!
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Glod on Thu, 07 February 2019, 11:55:06
Although the Linus video is a seal of approval and crazy that TMK has a million views. I feel like credit was not given where credit is due and a lack of knowledge of why TMK exists and the other converters out there. In fact the video triggered me on the focus on auto hot keys and macros and lack of alternative layouts. He makes it sound like QMK and TMK are like a commerical manufacturer of keyboard software in a way. I guess this is the best we are going to get. we appreciate you hasu!

Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Mon, 18 February 2019, 21:37:41
Several USB-USB converters are back in stock. More will be available until end of the month.
Email me if you are interested.

Thank you
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Hypersphere on Wed, 20 February 2019, 13:28:10
@Hasu

1. I just got an email today from 1up keyboards saying that they had your USB-USB back in stock, but when I went to their site, it said "out of stock" already!

2. I have sent you an email to order one directly from you.

3. I already have one of your USB-USB converters. Recently, I have been using it with my new RF R2 TKL PFU Edition keyboard. It works fine except for one thing. When I reboot the computer, I have to unplug and replug the converter into the computer in order to get the keyboard working again. Is this normal?



Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Wed, 20 February 2019, 16:02:38
@Hasu

1. I just got an email today from 1up keyboards saying that they had your USB-USB back in stock, but when I went to their site, it said "out of stock" already!

2. I have sent you an email to order one directly from you.
Yes, they sold really quickly! I'm still working on production of the converters for them but it has been stuck due to chinese new year holidays and its after-disorder.

Thank you for your order!

Quote
3. I already have one of your USB-USB converters. Recently, I have been using it with my new RF R2 TKL PFU Edition keyboard. It works fine except for one thing. When I reboot the computer, I have to unplug and replug the converter into the computer in order to get the keyboard working again. Is this normal?

I'll look into and reply in this thread rather than here to share the issue with more users.
https://geekhack.org/index.php?topic=69169.msg2726404#msg2726404

Title: Re: [TMK] Keyboard Protocol Converter
Post by: themoon on Tue, 12 March 2019, 05:28:33
Does anyone know if USB-USB converter work with Truly Ergonomic Keyboard (models 207 and 209)? It has some programming functionality via flashing firmware - like layers and simple key remapping - and physical DIP switches for win/mac layouts
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Tue, 19 March 2019, 18:10:56
USB-USB conveter is back in stock now.

Thank you
Title: Re: [TMK] Keyboard Protocol Converter
Post by: v1ld on Thu, 20 June 2019, 12:46:14
This converter works very well with the Niz Atom66 (https://www.nizkeyboard.com/product/niz-2018-new-member-atom66-the-smallest-electro-capactive-bluetooth-keyboard-with-rgb/), 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.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Thu, 20 June 2019, 14:14:29
This converter works very well with the Niz Atom66 (https://www.nizkeyboard.com/product/niz-2018-new-member-atom66-the-smallest-electro-capactive-bluetooth-keyboard-with-rgb/), 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 letting me know. I added the keyboard in the compatibility list of the converter.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: pixelpusher on Thu, 20 June 2019, 14:31:35
This converter works very well with the Niz Atom66 (https://www.nizkeyboard.com/product/niz-2018-new-member-atom66-the-smallest-electro-capactive-bluetooth-keyboard-with-rgb/), 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.

Those are neat boards.  They must be selling well b/c they seem to always be sold out.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: v1ld on Thu, 20 June 2019, 17:48:28
Those are neat boards.  They must be selling well b/c they seem to always be sold out.

They really are very well designed.  While I've never used a Topre, the EC Nopres feel great to type on.  I was surprised how much I enjoyed the 35g membrane for someone who otherwise likes a lot of tactility.  So much so I decided not to install the 45g membrane and have even started to re-evaluate my choices elsewhere in terms of typing fatigue.

I hope someone comes up with a good way to use Niz/Plum EC switches with all the boards we can build today.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: rjohn on Sun, 24 November 2019, 10:15:16
hello

if i want to connect my WASD vp3 usb keyboard to a PS/2 computer port ,do you have a converter that will work (without programing)?
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Sun, 24 November 2019, 18:26:18
No. These conveters translate classic keyobard protocols to use with modern computer through USB port.

hello

if i want to connect my WASD vp3 usb keyboard to a PS/2 computer port ,do you have a converter that will work (without programing)?

Title: Re: [TMK] Keyboard Protocol Converter
Post by: rjohn on Sun, 24 November 2019, 23:37:49
i see,thanks.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: giammin on Mon, 25 November 2019, 02:38:22
hello

if i want to connect my WASD vp3 usb keyboard to a PS/2 computer port ,do you have a converter that will work (without programing)?

cant you just use the included usb to ps2 adapter?
Title: Re: [TMK] Keyboard Protocol Converter
Post by: rjohn on Mon, 25 November 2019, 04:45:24
WASD vp3 dont have a p/s2 to usb adaptor and neither work with one already tryed.only V3 works if you downgrade the firmware to ver:2.5
Title: Re: [TMK] Keyboard Protocol Converter
Post by: giammin on Mon, 25 November 2019, 04:59:09
sorry i read wasd and did not read the model
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Nizkeyboard on Wed, 25 December 2019, 19:10:29
This converter works very well with the Niz Atom66 (https://www.nizkeyboard.com/product/niz-2018-new-member-atom66-the-smallest-electro-capactive-bluetooth-keyboard-with-rgb/), 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.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: supermario802.1 on Sun, 12 January 2020, 00:27:29
Is there any TMK firmware for SAMD21/Arduino Zero boards yet?
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Sun, 12 January 2020, 02:15:29
Is there any TMK firmware for SAMD21/Arduino Zero boards yet?

No.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: ZyBeR on Tue, 21 January 2020, 16:14:29
Can I run this on an Elite-C controller?
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu 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.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Blaise170 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.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu 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
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu 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
Title: Re: [TMK] Keyboard Protocol Converter
Post by: nevin on Wed, 22 April 2020, 16:43:39
...someone's been busy.
thanks hasu!
Title: Re: [TMK] Keyboard Protocol Converter
Post by: kelvinhall05 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.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: mrSanders 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?
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Fri, 31 July 2020, 07:59:32
No, joystick is not supported.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: nevin 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 (http://www.tmk-kbd.com/tmk_keyboard/editor/)
  - rev.2 is for ATmega32U2 processors (this won't work)

you can find more info below:
TMK configurator (http://www.tmk-kbd.com/tmk_keyboard/editor/)
TMK Github for ADB oconverter (https://github.com/tmk/tmk_keyboard/tree/master/converter/adb_usb)
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Drag0nFly 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' ;)

(https://www.dropbox.com/s/0w04a5oonzjad6g/img_3898.jpg?raw=1)
(https://www.dropbox.com/s/0w04a5oonzjad6g/img_3899.jpg?raw=1)
(https://www.dropbox.com/s/apbkusgaipxzf89/img_3900.jpg?raw=1)


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.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu 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.

Title: Re: [TMK] Keyboard Protocol Converter
Post by: Drag0nFly 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.)
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu 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
Title: Re: [TMK] Keyboard Protocol Converter
Post by: smleeeeee 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!
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu 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.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Horsebadorties 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.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: nevin 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.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu 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
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Horsebadorties 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!!!
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Horsebadorties 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!
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu 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
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Horsebadorties 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!
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Horsebadorties 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 (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!
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu 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.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Horsebadorties 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.


Title: Re: [TMK] Keyboard Protocol Converter
Post by: meawto on Mon, 20 December 2021, 04:43:15
I Just got this keyboard with DIN-7 Connector

anyway to mod this ? or did you have adaptor for sell ?

(https://i.imgur.com/KK8tZZZ.jpeg)
(https://i.imgur.com/oCQDBOR.jpeg)
(https://i.imgur.com/pUGUfti.jpeg)
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Mon, 20 December 2021, 05:20:51
I don't have any solution for the keyboard.

I Just got this keyboard with DIN-7 Connector

anyway to mod this ? or did you have adaptor for sell ?

Title: Re: [TMK] Keyboard Protocol Converter
Post by: mousouchop on Mon, 27 December 2021, 08:06:43
I just got the "original" (non-Topre) HHKB PD-KB02. It has a PS2 (I think) out, with 6 pins. Which of these converters would be compatible? I assume the IBMPC[PS/2] converter is what I need?
 
My real end goal is to have USB-C out on this board, not Micro USB. I will thus need to get an additional dongle; I expect I have room enough in the case to fit this all in, and just route out a fixed USB C cable... I assume there is no way for you to solder a USB-C port to the board versus a Micro USB port? (I expect you can't but can't hurt to ask).

(https://imgur.com/a/xAUSFis)
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Mon, 27 December 2021, 08:51:55
Yes, IBMPC[PS/2] should be compatible.  IBMPC[AT/XT] also can be used with AT-PS/2 adapter.

And you are right as for connector. You will need to Micro-B to USB-C adapter dongle.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Moses on Mon, 03 January 2022, 16:53:05
Hello,
I bought a USB 2 USB just over 4 years ago, started having a few issues when I got a new laptop so wondering if I should re-flash or just buy a new one?

Issue include - USB devices (converted keyboard + mouse) stop responding for 10 seconds, and keys sometimes get 'stuck' when, for example, typppppppppppppppping.
Cheers,
Andrew.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Mon, 03 January 2022, 19:39:06
Yes, try the latest firmware first. Also see 'Troubleshoot' section.
https://geekhack.org/index.php?topic=69169.0

Let me know your result in that thread.

Hello,
I bought a USB 2 USB just over 4 years ago, started having a few issues when I got a new laptop so wondering if I should re-flash or just buy a new one?

Issue include - USB devices (converted keyboard + mouse) stop responding for 10 seconds, and keys sometimes get 'stuck' when, for example, typppppppppppppppping.
Cheers,
Andrew.

Title: Re: [TMK] Keyboard Protocol Converter
Post by: s.ja on Fri, 06 May 2022, 05:36:15
Can I get a converter for 9500801 that uses sgi protocol?

I recently tried using soarer's converter, but it didn't work...
it would be better if I could put a new firmware on your Soarer's converter and use it,
but I'm asking just in case, thank you
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Fri, 06 May 2022, 18:51:51
I don't know much about the "9500801" and you can't get its converter here.

According to my quick research the keyboard uses SGI proprietary protocol . Pinout and voltage is not compatible to Soarer's and TMK PS/2 converter.
You will need special hardware to convert the keyboard. The protocol is described here.

https://web.archive.org/web/20151022035531/techpubs.sgi.com/library/tpl/cgi-bin/getdoc.cgi%3Fcmd=getdoc&coll=0650&db=man&fname=7%20keyboard
https://hardware.majix.org/computers/sgi.pi/keyboard.shtml
Title: Re: [TMK] Keyboard Protocol Converter
Post by: s.ja on Sat, 07 May 2022, 00:52:08
I don't know much about the "9500801" and you can't get its converter here.

According to my quick research the keyboard uses SGI proprietary protocol . Pinout and voltage is not compatible to Soarer's and TMK PS/2 converter.
You will need special hardware to convert the keyboard. The protocol is described here.

https://web.archive.org/web/20151022035531/techpubs.sgi.com/library/tpl/cgi-bin/getdoc.cgi%3Fcmd=getdoc&coll=0650&db=man&fname=7%20keyboard
https://hardware.majix.org/computers/sgi.pi/keyboard.shtml

Oh, I was trying to do something harder than I thought...
thank you so much for finding out the information,
I thought I'd looked it up a lot, but I've never seen it before
Title: Re: [TMK] Keyboard Protocol Converter
Post by: doomsday_device on Thu, 19 May 2022, 10:28:06
hi hasu,
recently got a tatung branded sun5(?) board. atleast what i assumed by the looks of it and i successfully converted it with your tmk sun firmware.
it has a beeper too but as the matrix doesnt support 2 modifiers + extra key (atleast not with shift, alt or metas), i cant use the tmk magic key features to control the beeper.

is there any way i could workaround that? thank you.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Thu, 19 May 2022, 18:12:43
See this post.
https://geekhack.org/index.php?topic=105671.msg3125687#msg3125687
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Drag0nFly on Tue, 18 April 2023, 23:57:41
Hi @hasu-

I'm back from a hiatus, and I have some quick questions to ask about the TMK converter and software :)

I've been looking for information about keyboard converters for the Acorn Archimedes line of computers (with the KART protocol, as I recently got two of these) - is this something which the TMK converter at all is able to do? (assuming the plug is pin-compatible, it appears to be identical/similar to PS/2 at least: http://www.kbdbabel.org/conn/index.html

Also wondering whether a Unisys B25-K5 terminal keyboard (std. form factor DIN-plug) will work.

Perhaps I am too optimistic, but wanted to check as these are some interesting boards (the Acorn kbd is the A5000, btw.)

(btw. I've noticed that eBay listings for the Copam K430, which we had some fun with a while back, now mention your converter as an option for using these, commanding a higher price of course) ;) (not that they exactly were low to begin with...)
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Wed, 02 August 2023, 21:05:19
Hi,
I was noticed by eamil from geekhack but missed this post for some reason.

I don't have any Acorn and know about its protocol. I would look into if you can send me one of them :D

Yes, you can use TMK IBMPC-USB(PS/2) converter hardware to host the keyboard if you can make firmware for the protocol.
Fortunately, the converter has connection to GPIO for all pins: 1,2,5,6 on Mini-DIN-6P. So You can handle all signals: toKBD, fromKBD, Reset of the Acorn. I can help some If you are willing to develop firmware for the keyboard.

(http://www.kbdbabel.org/conn/kbd_connector_a5000.png) (http://www.kbdbabel.org/conn/kbd_connector_ps2.png)

I don't know Unisys B25-K5 terminal keyboard at all. Have you found any info in bitsavers or somewhere?
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Drag0nFly on Wed, 02 August 2023, 21:10:47
I do actually have an Acorn keyboard which I just restored and was thinking of selling at auction.

If you plan to add the KART protocol and need something to test, a better option could be to send it to you in exchange for this and possibly another converter (I paid $70 for it, unrestored) :)

The keyboard is for the A300 Archimedes (i.e, one of the earlier ones, with the coloured Function-key rows)

Let me know if you are interested, and I can post some pictures of it.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Drag0nFly on Wed, 02 August 2023, 21:14:27
For the B25-K5: information seems quite scarce. It is an very interesting board (to me at least, with lock-light LEDs for F8, F9, F10 & overtype in addition to Caps Lock, also has an inverted L-shaped tab on the left) and seems to have come with two different cables (one of which is the flat-type terminal connector, and the other a DIN plug)

Perhaps I am optimistic in thinking it would speak AT/XT though; although none of the users on Deskthority which acquired on were able to confirm.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Drag0nFly on Wed, 02 August 2023, 21:19:20
There's an interesting thread on the Unisys/Burroughs B25-K5 here:

https://deskthority.net/viewtopic.php?f=62&t=12617&start=

Regarding your earlier question: wish I could make firmware myself, but that is not an option currently for either this or the Acorn though. :)
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Wed, 02 August 2023, 22:01:01
For the B25-K5: information seems quite scarce. It is an very interesting board (to me at least, with lock-light LEDs for F8, F9, F10 & overtype in addition to Caps Lock, also has an inverted L-shaped tab on the left) and seems to have come with two different cables (one of which is the flat-type terminal connector, and the other a DIN plug)

Perhaps I am optimistic in thinking it would speak AT/XT though; although none of the users on Deskthority which acquired on were able to confirm.

Can you post pic of the cables and connectors?  What variant is the DIN plug? 5P?
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Drag0nFly on Wed, 02 August 2023, 22:36:55
The Unisys keyboard has two ports on each side to connect a cable. I've seen different cables with the wide plug on one end and the DIN plug on the other, which is why I thought that perhaps it spoke AT. It might not though.

The most common type appears to be:

https://www.ebay.com/itm/275924813750

And on the keyboard side (faster to post this vs. taking one of my own:

https://www.ebay.com/itm/134637427753

Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Wed, 02 August 2023, 22:54:36
If the cable has DIN compatible with AT jack, why not just plugin!
You may want to trace pins for power lines at least for safety. :D


Found this pics of the keyboard on bitsavers.
https://bitsavers.org/pdf/convergent/ngen/pictures/B25-K5/

The keyboard is related to computer callled as 'Convergent NGEN'?
https://en.wikipedia.org/wiki/Convergent_Technologies

You can find something useful here.
https://bitsavers.org/pdf/convergent/ngen/
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Drag0nFly on Wed, 02 August 2023, 23:17:24
Sorry–should have mentioned: the keyboard came without a cable and I have not been able to source one yet (shipping costs from eBay are ridiculous)

I am also working from a different country (although the keyboards are here), so I do not have your TMK adapter available either unfortunately.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Drag0nFly on Wed, 02 August 2023, 23:19:27
Thanks for those links btw.

The option for the Archimedes keyboard is still open, let me know if that is of interest. (I don't plan on making money on it, so the restoration will be thrown in for free)
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Drag0nFly on Thu, 03 August 2023, 00:25:49
Here are some pictures of the Acorn Archimedes A300 kybd–

Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Thu, 03 August 2023, 09:04:16
With reading this article Convergent/Unisys/Burroughs B25-K5 is not compatible with AT apparently.
https://www.smbaker.com/restoring-a-convergent-technologies-ngen-pc-workstation-burroughs-b25-unisys

Let me have some time to reseach Acorn keyboard protocol. I'll PM later.

Title: Re: [TMK] Keyboard Protocol Converter
Post by: Drag0nFly on Thu, 03 August 2023, 16:54:33
 :thumb: – looking forward to what you find. Thanks also for the information on the Unisys–too bad it's not AT compatible (although I was aware that might be a bit optimistic...)
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Drag0nFly on Thu, 03 August 2023, 18:24:28
Man, was that page on the Convergent/Unisys detailed, with schematics and all. Did not come up during any of my web searches earlier.
The guy also built a Convergent to PS2 keyboard converter, with the 8-pin SDL plug.

He also has the same/similar small form-factor keyboard as me used for testing. That one is extremely practical (although mine is USB)
Title: Re: [TMK] Keyboard Protocol Converter
Post by: Drag0nFly on Thu, 07 September 2023, 18:30:30
Hi @hasu,

Just wondering if you had time to research this yet, and how feasible it would be to create firmware for the Acorn keyboards with the KART protocol. I can be of assistance wrt. sending a keyboard for this, if required. :)


With reading this article Convergent/Unisys/Burroughs B25-K5 is not compatible with AT apparently.
https://www.smbaker.com/restoring-a-convergent-technologies-ngen-pc-workstation-burroughs-b25-unisys

Let me have some time to reseach Acorn keyboard protocol. I'll PM later.
Title: Re: [TMK] Keyboard Protocol Converter
Post by: cavilio on Fri, 22 September 2023, 03:08:55
Hi @hasu,

I am willing to purchase 2 of your USB to USB converters, in order to add programmability to a Ducky mecha mini and a Pok3r. Do you still sell those? How to proceed to order them (I live in France)?

Thanks!
Title: Re: [TMK] Keyboard Protocol Converter
Post by: hasu on Fri, 22 September 2023, 20:12:04
Hi,
Yes, it is still available in stock.
Check the first post of this thread to place an order.

Quote
How to order
Please check this notes on shipping under COVID-2019 pandemic before ordering. 2020-04-02

Email me to let me know which converter you want and your country. I'll send you Paypal invoice soon.

My email is: hasu@tmk-kbd.com


Title: Re: [TMK] Keyboard Protocol Converter
Post by: cavilio on Sun, 01 October 2023, 04:12:37
Hi,
Thanks, I will send you an email right now!