IBM model M converter and QMK firmware

caberolo

21 Feb 2022, 14:47

Hi to all

I have a functional [1] DIY terminal-to-usb converter for a model M122. I's made with a promicro board. I can flash TMK or Soarer firmware, which both work fine. I'm trying to flash QMK firmware with no success. QMK firmware is compiled and flashed with no problems, bus keyboard does nothing at all. As in QMK converter/ibm_terminal page says, uses D2 and D5 pins, instead D0 and D1, as TMK/Soarer's does. I've modified keyboards/converter/ibm_terminal/config.h file as follows:

Code: Select all

/*
 * PS/2 USART configuration for ATMega32U4
 */
#ifdef PS2_USE_USART
/* XCK for clock line */
#define PS2_CLOCK_PIN   D1
#define PS2_DATA_PIN    D0
I don't now if the problem origin is use a promicro instead a teensy, or a bad pinout assignment (or missing config). I would like use TMK pin assignment, as I can change/check between firmwares.

lsusb (and syslog) recognises correctly the new device as a keyboard.

Thanks in advance.

[1] I've some minor issues with the converter, but generally works

User avatar
jsheradin

21 Feb 2022, 15:43

The implementation of of the clock signal seems to be different on the QMK version. It relies on hardware features only available on PD5 (XCK1).

Without re-implementing the code I think you're stuck using PD5.

caberolo

22 Feb 2022, 23:41

jsheradin wrote: 21 Feb 2022, 15:43 The implementation of of the clock signal seems to be different on the QMK version. It relies on hardware features only available on PD5 (XCK1).

Without re-implementing the code I think you're stuck using PD5.
Finally, I find a solution.

QMK, (and TMK also) uses D2/D5 pins when using USART protocol, but that's not the only way to work. I've changed my rules.mk this way:

Code: Select all

PS2_USE_USART = yes
CUSTOM_MATRIX = yes
And works like a charm. It seems like TMK uses (at least for converters) the same pinout as Soarer's does, but QMK uses USART by default.

Thanks for your help

Post Reply

Return to “Keyboards”