Author Topic: TMK USB to USB keyboard converter  (Read 521961 times)

0 Members and 1 Guest are viewing this topic.

Offline pupmonster

  • Posts: 21
Re: TMK USB to USB keyboard converter
« Reply #900 on: Fri, 01 March 2024, 00:37:34 »
I continued with my testing of miniM_ab4b44.hex and populated it with my layout.

It solved a problem with the previous last-working version where keystrokes would strangely appear that I had not typed.  Perhaps this information is useful to you.

Offline pupmonster

  • Posts: 21
Re: TMK USB to USB keyboard converter
« Reply #901 on: Sat, 02 March 2024, 03:20:08 »
Continuing testing ...
Perhaps it was not the intention of the interim file you provided, but using it, I have not been able to remap the bottom-row control keys, e.g. left-option, japanese_pc_nfer, japanese_pc_xfer, japanese_pc_katakana.

Offline hasu

  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: TMK USB to USB keyboard converter
« Reply #902 on: Sat, 02 March 2024, 03:57:33 »
This is not what I expected, I missed something probably.
I'll have to start over debug process.

Hasu, here are the results:
miniM_ab4b44.hex:  All keys register
miniM_woHubFix.hex: No keys register



The firmwares I attached before were built only for debug and cannot be remapped with keymap editor.

Use one attached in this post if you need to remap. This firmware is not full-function but should work.

Continuing testing ...
Perhaps it was not the intention of the interim file you provided, but using it, I have not been able to remap the bottom-row control keys, e.g. left-option, japanese_pc_nfer, japanese_pc_xfer, japanese_pc_katakana.


* miniM_ab4b44_unimap.hex (71.92 kB - downloaded 18 times.)

Offline pupmonster

  • Posts: 21
Re: TMK USB to USB keyboard converter
« Reply #903 on: Sat, 02 March 2024, 07:21:01 »
Merci! That helps a lot!

Offline hasu

  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: TMK USB to USB keyboard converter
« Reply #904 on: Sat, 02 March 2024, 08:46:51 »
Can you try these fimwares to when you have time?
And let me know your result.

Thank you

* miniM_35606b.hex (56.54 kB - downloaded 14 times.)

* miniM_a98e6f.hex (59.45 kB - downloaded 17 times.)

Offline pupmonster

  • Posts: 21
Re: TMK USB to USB keyboard converter
« Reply #905 on: Sat, 02 March 2024, 22:24:23 »
Here are my results as tested on Mac and Linux

miniM_35606b.hex:
    all keys register
    behaviour while typing is as desired (no strange extra character inserts)
    capslock light comes on
    numlock light does not come on
    scrolllock light does not come on

miniM_a98e6f.hex:
    all keys register
    behaviour while typing is as desired (no strange extra character inserts)
    capslock light comes on
    numlock light does not come on
    scrolllock light does not come on

Offline hasu

  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: TMK USB to USB keyboard converter
« Reply #906 on: Tue, 05 March 2024, 02:01:07 »
pupmonster,

I don't find a fault point yet. Can you try these also?
Post debug prints if it fails.

Thank you for your help.

* miniM_85af76.hex (60.41 kB - downloaded 17 times.)
* miniM_df8e64.hex (61.97 kB - downloaded 15 times.)

Offline pupmonster

  • Posts: 21
Re: TMK USB to USB keyboard converter
« Reply #907 on: Tue, 05 March 2024, 10:25:21 »
Hasu, glad to assist.

Here you go:

miniM_85af76.hex:  no keys register
miniM_df8e64.hex:  no keys register

Tested on MacOS and Linux.
« Last Edit: Tue, 05 March 2024, 10:29:33 by pupmonster »

Offline hasu

  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: TMK USB to USB keyboard converter
« Reply #908 on: Wed, 06 March 2024, 00:21:15 »
Can you post debug prints from miniM_85af76.hex?

This fix affects the issue, perhaps.
https://github.com/tmk/USB_Host_Shield_2.0/commit/9072c34c6fc669d696a8f0a99807e076531a2163

Offline pupmonster

  • Posts: 21
Re: TMK USB to USB keyboard converter
« Reply #909 on: Wed, 06 March 2024, 09:33:45 »
I am not sure I did what you need, but this is what I have:

I flashed the keyboard with miniM_85af76.hex, and started hid_listen as root on Linux.   I pressed every key from left to right, top to bottom.

The results are in the next message as an attachment. It is named "out.hex" because when I tried to upload a file with a .txt extension the server gave me an uncaught exception. The same happened when I tried to insert the output into this message.

« Last Edit: Wed, 06 March 2024, 10:02:11 by pupmonster »

Offline hasu

  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: TMK USB to USB keyboard converter
« Reply #910 on: Wed, 06 March 2024, 23:48:31 »
That log is what I needed. Thank you.

I think I found one of the causes at least and fixed it.

* miniM_fix_5ed16b.hex (61.9 kB - downloaded 13 times.)

Can you try this and share debug prints?

Use this procedure to get debug prints.
1. run hid_listen
2. plug in the converter first and wait for 5 sec
3. plug in the keyboard then
4. press a few keys

Offline pupmonster

  • Posts: 21
Re: TMK USB to USB keyboard converter
« Reply #911 on: Thu, 07 March 2024, 03:20:34 »
Results here inline, as attachment somehow was disallowed by forum:

Code: [Select]
sudo ./hid_listen

Waiting for device:....
Listening:

TMK:5ed16b/LUFA:d6a7df/UHS2:df8e64
u:20
[S][W][W]u:40
u:50
u:51
[W]BM Init
Addr:01
NC:01
HID_PROTOCOL_KEYBOARD
bNumEP:02
Cnf:01
bIfaceNum:00
bNumIface:00

Interface:00
SET_PROTOCOL: 00
SET_IDLE: 00
RPIPE: 00
RWU: 00
BM configured
u:90
s:f

USB configured.
[i]
Loop start.
usb_state: 90
speed: full
input 1: 00 00 0A 00 00 00 00 00 00 00 00 00
00 00 0A 00 00 00 00 00 00 00 00 00
ginput 1: 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00
input 1: 00 00 0B 00 00 00 00 00 00 00 00 00
00 00 0B 00 00 00 00 00 00 00 00 00
hinput 1: 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00
input 1: 00 00 12 00 00 00 00 00 00 00 00 00
00 00 12 00 00 00 00 00 00 00 00 00
oinput 1: 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00
input 1: 00 00 26 00 00 00 00 00 00 00 00 00
00 00 26 00 00 00 00 00 00 00 00 00
9input 1: 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00
input 1: 00 00 49 00 00 00 00 00 00 00 00 00
00 00 49 00 00 00 00 00 00 00 00 00
^[[2~input 1: 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00
input 1: 00 00 46 00 00 00 00 00 00 00 00 00
00 00 46 00 00 00 00 00 00 00 00 00
input 1: 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00
·input 1: 00 00 45 00 00 00 00 00 00 00 00 00
00 00 45 00 00 00 00 00 00 00 00 00
input 1: 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00
^C
steveg@fedora-t14:/data/apps$ sudo ./hid_listen
Waiting for device:........
Listening:

TMK:5ed16b/LUFA:d6a7df/UHS2:df8e64
u:20
[S][W][W]u:40
u:50
u:51
[W]BM Init
Addr:01
NC:01
HID_PROTOCOL_KEYBOARD
bNumEP:02
Cnf:01
bIfaceNum:00
bNumIface:00

Interface:00
SET_PROTOCOL: 00
SET_IDLE: 00
RPIPE: 00
RWU: 00
BM configured
u:90
s:f

USB configured.
[i]
Loop start.
usb_state: 90
speed: full
input 1: 00 00 04 00 00 00 00 00 00 00 00 00
00 00 04 00 00 00 00 00 00 00 00 00
ainput 1: 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00
input 1: 00 00 16 00 00 00 00 00 00 00 00 00
00 00 16 00 00 00 00 00 00 00 00 00
sinput 1: 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00
input 1: 00 00 52 00 00 00 00 00 00 00 00 00
00 00 52 00 00 00 00 00 0^[[A0 00 00 00
input 1: 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00
input 1: 00 00 49 00 00 00 00 00 00 00 00 00
00 00 49 00 00 00 00 00 00 00 00 00
^[[2~input 1: 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00
input 1: 00 00 43 00 00 00 00 00 00 00 00 00
00 00 43 00 00 00 00 00 00 00 00 00
^[[21~input 1: 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00
input 1: 00 00 33 00 00 00 00 00 00 00 00 00
00 00 33 00 00 00 00 00 00 00 00 00
òinput 1: 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00
input 1: 00 00 8A 00 00 00 00 00 00 00 00 00
00 00 8A 00 00 00 00 00 00 00 00 00
input 1: 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00
input 1: 01 00 00 00 00 00 00 00 00 00 00 00
01 00 00 00 00 00 00 00 00 00 00 00
input 1: 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00
« Last Edit: Thu, 07 March 2024, 10:08:44 by pupmonster »

Offline hasu

  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: TMK USB to USB keyboard converter
« Reply #912 on: Thu, 07 March 2024, 06:25:37 »
It looks good now according to the log.

Let me know if you still have a problem. I'll update firmware on Keymap Editor soon later if not.


Next time, you can use CODE tag to include debug output in your message on this forum.

https://en.wikipedia.org/wiki/BBCode
https://www.bbcode.org/showing-code-with-bbcode.php


Offline pupmonster

  • Posts: 21
Re: TMK USB to USB keyboard converter
« Reply #913 on: Thu, 07 March 2024, 10:07:07 »
Sounds good. Thanks so much. Your service is outstanding.

However, I do not quite understand how you intend to proceed or what I should ideally be doing on my end.

Should I use  miniM_fix_5ed16b.hex  as the basis of any adaptations to my keyboard layout in TMK Keymap Editor?

And ... I also just received the newest USB-USB adapter today in the mail. Thanks. Should I also use miniM_fix_5ed16b.hex there as well?

Or ... should I just start TMK Keyboard editor without first uploading a base hex file, in the understanding that the latest and greatest is being used automatically there?

Thanks much for the clarification!

Offline hasu

  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: TMK USB to USB keyboard converter
« Reply #914 on: Thu, 07 March 2024, 18:03:02 »
miniM_fix_5ed16b.hex was built just for debug/test and it can be used with Keymap Editor.
With the fix the converter doesn't seem to have obvious problem with Mini M now.

I just updated firmware on github and Keymap Editor for Mini M support. Now you can edit keymap and download the fixed firmware on Keymap Editor.

https://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?usb_usb

Thank you for your help.

Offline pupmonster

  • Posts: 21
Re: TMK USB to USB keyboard converter
« Reply #915 on: Fri, 08 March 2024, 10:20:30 »
Thanks, Hasu!

I thought you would like to know that I used the TMK Layout Editor to modify my layout of the Japanese Mini M using both my older USB-USB adapter and the brand-new adapter just received, and everything looks good.