Author Topic: [TMK] USB-USB Converter  (Read 21005 times)

0 Members and 1 Guest are viewing this topic.

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3350
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
[TMK] USB-USB Converter
« on: Mon, 09 November 2020, 20:15:35 »
Check this post for detailed information of the converter.
https://geekhack.org/index.php?topic=69169.0



Its dimension is 24mm*58mm*11mm including connectors.



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

Email me with subject including 'USB-USB' and let me know your country. My email is: hasu@tmk-kbd.com. You will receive PayPal invoice.

You can get this converter from 1upkeyboards.com now instead especially if you are located in the US and Canada. 2020-11-10


Price
Converter: $57USD $60USD $63UD - Components cost is rising due to its scarcity in the market now.(2021-08-24, 2021-10-05)
Shipping: $8USD per order. It may vary depending on your location. Check this also.
This is shipped via air registered mail from Tokyo, Japan and takes usually 7-20 days for most countries.


Lead Time
The converters will be shipped usually in a week and you will receive email with tracking number from Japan Post. Check junk mail folder too.
Let me know if you don't get tracking number within 10 working days after payment.
« Last Edit: Mon, 04 October 2021, 21:59:51 by hasu »

Offline TheNeonKnight

  • Posts: 13
Re: [TMK] USB-USB Converter
« Reply #1 on: Tue, 01 December 2020, 11:00:24 »
Hasu, In the TMK USB to USB converter config if I were to use something like a Unicomp PC122 which comes natively as USB the config is missing the left hand function keys as well as the key that would go below the down arrow. Also, if I wanted to split the numpad 0 into 2 seperate keys how could this be accomplished on the software end?

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3350
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] USB-USB Converter
« Reply #2 on: Tue, 01 December 2020, 18:00:37 »
See this post. Thanks.
https://geekhack.org/index.php?topic=69169.msg2986331#msg2986331

Hasu, In the TMK USB to USB converter config if I were to use something like a Unicomp PC122 which comes natively as USB the config is missing the left hand function keys as well as the key that would go below the down arrow. Also, if I wanted to split the numpad 0 into 2 seperate keys how could this be accomplished on the software end?




Offline TheNeonKnight

  • Posts: 13
Re: [TMK] USB-USB Converter
« Reply #3 on: Thu, 03 December 2020, 13:25:42 »
Ah I see, thank you!

Offline srucontrol

  • Posts: 0
Re: [TMK] USB-USB Converter
« Reply #4 on: Fri, 24 December 2021, 11:45:31 »
Hasu, I just purchased this device and it arrived pretty quickly :) Unfortunately I'm having some issues getting it to work properly.

I open qmk toolbox, plug in the converter, press the button on the converter, then hit open, select the hex file, and then hit flash. I then plug in my keyboard in but it doesn't seem to work.
Am I doing it correctly? I accidentally pressed the button on the converter while my keyboard was plugged in the first time. Would that affect it? I have done the "correct" process since then of course.

I'm following this video from Taran at LTT: https://www.youtube.com/watch?v=GZEoss4XIgc&t=518s
and using this hex file: https://github.com/TaranVH/2nd-keyboard/blob/master/HASU_USB/F24_with_modifiers/F24_with_modifiers.hex

Hopefully I can figure the issue out because it seems like your product is really great!
Thanks,
Srucontrol

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3350
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] USB-USB Converter
« Reply #5 on: Fri, 24 December 2021, 17:27:37 »
Quote
it doesn't seem to work.
Describe more details. Any key doesn't register? What do you expect?

Try this keyboard test program to see what key registers.
https://web.archive.org/web/20190428204254/https://elitekeyboards.com/switchhitter.php


Try official default firmware first to check if your converter itself works. You can download here.
https://github.com/tmk/tmk_keyboard/tree/master/converter/usb_usb/binary

Check the first post also, especially Troubleshoot section.
https://geekhack.org/index.php?topic=69169.0

If you got error in the tool while flashing. Post the error.

Offline srucontrol

  • Posts: 0
Re: [TMK] USB-USB Converter
« Reply #6 on: Sun, 26 December 2021, 23:11:21 »
Hi, thanks for answering!
The issue is that when I type with the external keyboard through the converter, it doesn't type anything in notepad. It should be able to type things normally. The hex code is supposed to make it so that F24 is held down before the regular key is pressed and then lifted once it's done. This is so that the keyboard can be detected as a different keyboard by autohotkey. It should send regular key presses without any script running though. I don't see any errors in qmk but here's a screenshot just in case. I'm using the Keychron K2 and Drevo Excalibur keyboards by the way.
Now I tried using the default hex file you provided and that seemed to flash correctly. It gave me blue text I had not seen with the hex that I was using at first. Using the default hex file you provided, qmk toolbox detected my key presses and displayed numbers each time. The Switch Hitter program only ever detected key presses from my laptop keyboard though. Nothing on the switch hitter changed when I pressed keys on the external keyboard (through hasu) but I did see the numbers in qmk toolbox.
So is it looking like the issue with the hex file I was using?
Sending a screenshot after "flashing" the hex file from the video, and another after flashing the one you provided.
Thanks again for the help!


Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3350
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] USB-USB Converter
« Reply #7 on: Mon, 27 December 2021, 00:08:38 »
Use the default firmware when testing.

It seems to work with the default firmware at least.
If you are using AHK and any other keyboard tools try disabling them or uninstalling.

EDIT: also try other keyboard, this problem may be caused by keyboard compatibility.
EDIT: and trying on other computer may be helpful.
« Last Edit: Mon, 27 December 2021, 00:14:39 by hasu »

Offline srucontrol

  • Posts: 0
Re: [TMK] USB-USB Converter
« Reply #8 on: Mon, 27 December 2021, 01:02:39 »
Is the default firmware supposed to send keystrokes like normally? Because it doesn't send anything to notepad or switch hitter. Only to qmk toolbox. or is that normal? I disabled the other scripts and tried other computers/keyboards. Is the issue looking like it's the hex file not being correct? The way I understand it is that if the hex file were working, it'd say "hid console connected" right?

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3350
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] USB-USB Converter
« Reply #9 on: Mon, 27 December 2021, 02:16:34 »
- Yes, the default firmware sends keystroke basically as you press.
- No, it is not normal. You can type in notepad with default firmware if there is no problem.

The default firmware is working when you see "TMK:ed7dfa/LUFA:d6a7df/UHS2:e37ed6" on hid_listen console. I believe you flashed the default firmware correctly.

QMK toolbox is not reliable completely in terms of debug console, use hid_listen instead to get debug outputs.
https://github.com/tmk/tmk_keyboard/wiki#hid_listen

If you happen to have one of 'Compatible Keyboards' try it. It should work. Check first post for 'Compatible Keyboards'.
https://geekhack.org/index.php?topic=69169.0





Offline srucontrol

  • Posts: 0
Re: [TMK] USB-USB Converter
« Reply #10 on: Mon, 27 December 2021, 09:12:48 »
So I tested with another keyboard, Drevo Excalibur, and the default firmware seems to be working correctly. Pressing the keys on it while plugged into the converter sends keystrokes regularly. So it seems like my keychron k2 is not compatible while my Drevo is compatible but the hex file I was using seems bad. Thanks again for the help! It looks like I've found out the problem.

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3350
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] USB-USB Converter
« Reply #11 on: Mon, 27 December 2021, 19:25:02 »
Can you post debug outputs when plug-in keychron k2?
It would be helpful for me to improve firmware.

1. Program the converter with debug firmware to get more info.
2. Use hid_listen to see debug outputs.

debug firmware: https://raw.githubusercontent.com/tmk/tmk_keyboard/master/converter/usb_usb/binary/usb_usb_debug.hex
hid_listen: https://github.com/tmk/tmk_keyboard/wiki#hid_listen

And it may be useful to update the keyboard with the latest firmware if possible.
https://www.keychron.com/pages/firmware

Offline srucontrol

  • Posts: 0
Re: [TMK] USB-USB Converter
« Reply #12 on: Tue, 28 December 2021, 21:20:46 »
Ok I will but I want to get the compatible keyboard working first. What can I try now? Is the issue the hex file? Any idea why Taran's hex file isn't working correctly? Is it ok that it doesn't show the blue text in qmk toolbox? Or does it need to show that to show that it was flashed correctly and it's working? It's working for Taran and I assume others as well so how can we get it to work?

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3350
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] USB-USB Converter
« Reply #13 on: Wed, 29 December 2021, 21:59:44 »
Ok I will but I want to get the compatible keyboard working first. What can I try now? Is the issue the hex file? Any idea why Taran's hex file isn't working correctly? Is it ok that it doesn't show the blue text in qmk toolbox? Or does it need to show that to show that it was flashed correctly and it's working? It's working for Taran and I assume others as well so how can we get it to work?

I don't know how the "Taran's hex" was built exactly, but I think it doesn't print any debug info(blue text) intentioanally.
If the hex works for you, it won't be a problem.


Offline glennm

  • Posts: 1
Re: [TMK] USB-USB Converter
« Reply #14 on: Thu, 30 December 2021, 16:36:46 »
Howdy, Hasu!

I'm not sure which site you prefer for questions.  The other geekhack page ( https://geekhack.org/index.php?topic=69169.0) was very helpful, and I can use that if you prefer.

I got the (3) HASU USB-USBs from you about a year ago.  Great service, btw.

I was trying to update firmware using the "virtual - box" instructions, but it seems that that image  (2021-12) is no longer available -- It says its in the trash.  I'm guessing it is linked to one that you build and update?

Should I just skip trying to update the firmware?   I can use the firmware on the device and then if it "blows up", I can try updating the firmware.  Your recommendation?  I am pretty good technically, but not very good with Linux.  Your instructions look pretty complete though.

Or should I try again in a few weeks?

Thank you -- and very best wishes for the New Year.   -glenn

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3350
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] USB-USB Converter
« Reply #15 on: Thu, 30 December 2021, 18:11:36 »
Fixed the link of VM image in wiki.
https://github.com/tmk/tmk_keyboard/wiki/Build-on-VirtualBox

thanks