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

0 Members and 1 Guest are viewing this topic.

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3418
  • 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' to place an order(or ask quesiton about ordering) and let me know your country. My email is: hasu@tmk-kbd.com. You will receive PayPal invoice.

As for technical question posting in the thread would be preferable, you can share information with the community. PM(personal message) in this forum is not suitable for these, anyway.



Price
Converter:  $65UD - Components cost is rising due to its scarcity in the market now.(2021-08-24, 2021-10-05, 2022-03-09)

Shipping: Check this post. This is shipped from Tokyo, Japan.


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: Fri, 02 September 2022, 17:33:07 by hasu »

Offline TheNeonKnight

  • Posts: 25
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: 3418
  • 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: 25
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: 3418
  • 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: 3418
  • 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: 3418
  • 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: 3418
  • 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: 3418
  • 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: 3418
  • 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


Offline ChewChew

  • Posts: 0
Re: [TMK] USB-USB Converter
« Reply #16 on: Mon, 31 January 2022, 20:53:12 »
Hey Folks!

It's 2022, I just bought one of these excellent devices from hasu (thanks bro!) and it arrived yesterday. I thought I'd write how an outsider can go from 'no idea what I'm doing', to having my own macro keyboard working. (Hope this hasn't been posted elsewhere before).

Step 1: Plug the converter into both your keyboard and the computer, and type something in notepad.
* If it works then your keyboard is compatible. If you get to the end of this process and nothing works, you know you've done something wrong.
* If nothing is typing, your keyboard isn't compatible. Try another keyboard I guess?

Step 2: Go to hasu's 'TMK Keymap Editor' webpage (google it) and reassign whatever keys you want.

Note, I needed a lot of Ctrl+# or Shift+# shortcuts and initially struggled how to make this work. The trick is to assign the key with the letter, then below the keyboard click on the 'Code Edit' tab. Change the dropdown from ACTION_KEY to ACTION_MODS_KEY, and use the next dropdown to select the Shift or Ctrl key etc, then click the Action Apply button.

Step 3: Under the 'Firmware Hex File Download' part of the webpage, click the 'Download' button. This is the file you will need to load onto the USB converter.

Step 4: Find a copy of Flip by Atmel somewhere on the internet! When you google it, it takes you to a Microchip website and says there's two files available; but only the one that requires Java Runtime Environment is listed. Someone else here on this website had uploaded a copy of Flip 3.4.7 for windows that doesn't need JRE, so I just used that (thank you!).

Step 5: Once Flip is installed, you will need to force the Device Manager to use the Flip driver. Press the little button on the USB converter to enter flash mode. You'll hear the USB disconnect sound. Open the device manager and you'll see under 'Other Devices' that there's an issue with the 'ATmega32U4'. If device manager is only showing 'PCI Encryption Controller' it means you aren't in flash mode!

Once in flash mode, do the following:
* Right click the 'ATmega32U4', and select 'Update Driver'.
* Select 'Browse My Computer for Drivers'
* Select 'Let me pick from a list of available drivers etc'
* Select 'Show All Devices' and click 'Next'
* Select 'Have Disk'
* Browse to the 'Atmel' -> 'Flip' -> 'usb' folder, and select the 'atmel_usb_dfu.inf' file then hit 'OK'
* Select the 'ATmega32U4' driver and select 'next'

Step 6: Disconnect and reconnect the USB converter, and re-enter Flash mode by pressing the little button again.

Step 7: Open Flip and click on the icon that looks like a USB with a cable and select 'USB' and click 'Open'.
* If you get an error saying 'AtLibUsbDfu.dll not found' error then you didn't do step 5 properly.
* If you click 'Open' and you get 'Could not open USB device' error, your USB converter isn't in flash mode. Press the little button.

Step 8: Click on the red book with a down arrow icon (Load HEX file). Navigate to the hex file you downloaded in Step 3. On the main page of the Flip program in the bottom middle you should now see the name of the hex file in blue writing.

Step 9: In the bottom left of the Flip program click the 'Run' button and cross your fingers! It will erase the default hex, load your custom one and verify it.

Step 10: unplug and replug the USB converter, and type away. You should now have a working custom keyboard! Good luck!

Disclaimer: I'm a total newcomer at this and I was maxed out figuring out the above process, so I'm very sorry if you run into dramas. I would have little to no idea how to help.