Author Topic: TMK IBM PC Keyboard Converter  (Read 23044 times)

0 Members and 1 Guest are viewing this topic.

Offline hasu

  • Thread Starter
  • Posts: 3149
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: TMK IBM PC Keyboard Converter
« Reply #150 on: Tue, 17 November 2020, 17:20:04 »
You can post detailed infomation to improve this converter. Your contribution are welcome.

I'm getting a lot of key chatter or freezing with this converter vs Soarer's

TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline Mikhail

  • Posts: 51
  • Location: Moscow, Russia
Re: TMK IBM PC Keyboard Converter
« Reply #151 on: Tue, 17 November 2020, 20:59:51 »
Hi!
Chicony kb-5191 in XT mode:
Pressing Pause/Break:

Listening:
rE1 r1D r45 rE1 r9D rC5

All 6 byte in press, no hold and release (like it should be in DOS). In Windows it should generate first 3 byte by press and hold, and rest of 3 bytes by release (as told Wiki)

Keyboard testers in Win shows the key stand pressed.
If remap key in Macs carabiner, key stand pressed too.


Waiting for device:...........................
Listening:


TMK:12eaedf9/LUFA


USB configured.

Keyboard start.

PRT:22 ISR:AAC0 I1582 wFF A2619
ERR:11 ISR:0000 X3121 rAA W3229 wF2 R3765
ID:FFFF(1)
ERR:11 ISR:AAC0 S3766 L3766 rAA


For Siemens F500:
Waiting for device:........
Listening:


TMK:12eaedf9/LUFA


USB configured.

Keyboard start.

PRT:21 ISR:AFA0 I1582 wFF A2619
ERR:11 ISR:AFA0 X3121 e20
ERR:20 ISR:4000 rEA W3207 rAF W3208 wF2 R3744
ID:FFFF(1)
ERR:11 ISR:AFA0 S3745 L3745
« Last Edit: Tue, 17 November 2020, 21:19:17 by Mikhail »

Offline hasu

  • Thread Starter
  • Posts: 3149
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: TMK IBM PC Keyboard Converter
« Reply #152 on: Tue, 17 November 2020, 22:10:03 »
Mikhail, Thanks for the report
I found and fixed a bug on handling of XT Pause key. Fixed firmware is attached. * ibmpc_usb_debug_pause_fix.hex (52.55 kB - downloaded 5 times.)


'ERR:11' in debug outputs is expected and no problem for XT keyobard when plugin and startup.
But 'ERR:20' is not expected and a bit weird. This is not problem if the error is temporary and happens only after plugin.

Try attached firmware on Siemens F500 and type some keys to see if the error happens. Its debug output would be helpful again.

Assuming both kb-5191 and F500 have LED indicators, how they work in XT mode when you press capslock or numlock?


For Siemens F500:
Waiting for device:........
Listening:


TMK:12eaedf9/LUFA


USB configured.

Keyboard start.

PRT:21 ISR:AFA0 I1582 wFF A2619
ERR:11 ISR:AFA0 X3121 e20
ERR:20 ISR:4000 rEA W3207 rAF W3208 wF2 R3744
ID:FFFF(1)
ERR:11 ISR:AFA0 S3745 L3745




TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline Mikhail

  • Posts: 51
  • Location: Moscow, Russia
Re: TMK IBM PC Keyboard Converter
« Reply #153 on: Tue, 17 November 2020, 22:26:54 »
Hasu,
Now itís hard to test Siemens because it without switches. Original blacks was to scratchy so i decide to desolder it to clean and lube. I will try.
Also the reset pin are connected.
Num lock is light when Num lock is OFF, and not light when ON.
Same thing with Pause/Break on Chicony((
« Last Edit: Tue, 17 November 2020, 22:43:16 by Mikhail »

Offline hasu

  • Thread Starter
  • Posts: 3149
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: TMK IBM PC Keyboard Converter
« Reply #154 on: Wed, 18 November 2020, 00:32:47 »
XT keyboard  have no lock indicator originally and XT protocol doesn't support indicator.
The keyboard just controls its LEDs internally and it can lost sync with lock key status of computer. Conveter is not reloated here.

Fixed again. Try this firmware then.
* ibmpc_usb_debug_pause_fix2.hex (52.55 kB - downloaded 6 times.)
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline Mikhail

  • Posts: 51
  • Location: Moscow, Russia
Re: TMK IBM PC Keyboard Converter
« Reply #155 on: Wed, 18 November 2020, 07:07:11 »
XT keyboard  have no lock indicator originally and XT protocol doesn't support indicator.
The keyboard just controls its LEDs internally and it can lost sync with lock key status of computer. Conveter is not reloated here.

Fixed again. Try this firmware then.
(Attachment Link)

Ok, now seems all work! Pause press and release without holding.

Chicony 5191
Listening:


TMK:4f845302/LUFA


USB configured.

Keyboard start.

PRT:22 ISR:AAC0 I1583 wFF A2620
ERR:11 ISR:0000 X3122 rAA W3230 wF2 R3766
ID:FFFF(1)
ERR:11 ISR:AAC0 S3767 L3767 rAA



Siemens F500
Listening:


TMK:4f845302/LUFA


USB configured.

Keyboard start.

PRT:21 ISR:AFA0 I1583 wFF A2620
ERR:11 ISR:AFA0 X3122
ERR:20 ISR:4000 e20 rEA W3208 rAF W3209 wF2 R3745
ID:FFFF(1)
ERR:11 ISR:AFA0 S3746 L3746



The "TERM FUNC" key generate r65 rE5 scan code.
I'll wait when you make changes to the main firmware ti use Keymap Editor. Thank you again!
« Last Edit: Wed, 18 November 2020, 07:11:26 by Mikhail »

Offline hasu

  • Thread Starter
  • Posts: 3149
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: TMK IBM PC Keyboard Converter
« Reply #156 on: Wed, 18 November 2020, 08:12:43 »
Great. I'll update firmware on repo and Keymap Editor some later.

The Siemens keyboard seems to be unusual on startup at least, let me know when you find problem.
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline hasu

  • Thread Starter
  • Posts: 3149
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: TMK IBM PC Keyboard Converter
« Reply #157 on: Sat, 21 November 2020, 13:39:21 »
Updated firmware on github repository and Keymap Editor.

- Fixed Pause key for enhanced XT keyboard
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline Mikhail

  • Posts: 51
  • Location: Moscow, Russia
Re: TMK IBM PC Keyboard Converter
« Reply #158 on: Fri, 27 November 2020, 18:32:33 »
Hello! I have assembled Siemens F500. Everything works as expected. Tried TMK Keymap Editor, works too. The only thing would be cool to be able to reassign the TERM FUNC button (r65 rE5 scan code / ACPI Wake function).

Offline hasu

  • Thread Starter
  • Posts: 3149
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: TMK IBM PC Keyboard Converter
« Reply #159 on: Fri, 27 November 2020, 19:53:08 »
Hi,  great to hear that.
Scan code 0x65 of Code Set 1(XT) is assigned to 'F14'(USB) here and you can remap the F14 on keymap editor.
I guess Windows recognizes F14 as ACPI Wake probably. In general how F13-F24 keys are handled depends on your OS.

https://github.com/tmk/tmk_keyboard/blob/master/converter/ibmpc_usb/unimap_trans.h#L91
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline Mikhail

  • Posts: 51
  • Location: Moscow, Russia
Re: TMK IBM PC Keyboard Converter
« Reply #160 on: Sat, 28 November 2020, 11:23:34 »
Yea, F14 remap is working))

Offline cparrot

  • Posts: 1
Re: TMK IBM PC Keyboard Converter
« Reply #161 on: Wed, 02 December 2020, 13:23:55 »
Updated firmware on github repository and Keymap Editor.

- Fixed Pause key for enhanced XT keyboard

Hi and thank you for your awesome work on this.
I noticed that the printscreen/* key below enter is only *, NumLock on or off,
with this new version. I will adjust my mapping to that, but I wanted to let you know.
Until this version the firmware worked like a charm on my XT, with my costum mapping.

I had troubles with random keys registering on my XT and updated to this version in hopes of fixing that.
It didn't work still, but I found that my problem probably came from the only screw on the boards PCB being too loose,
leading to grounding issues.
After thightening it the random presses went away, but the unremapped firmware had that behaviour.
« Last Edit: Wed, 02 December 2020, 17:02:08 by cparrot »