tmk_keyboard/converter/usb_usb
2023-02-01 10:23:29 +09:00
..
binary usb_usb: Update prebuilt firmware files 2023-02-01 10:23:29 +09:00
config.h usb_usb: Update for debug build 2021-11-19 14:29:46 +09:00
keymap.c usb_usb: Revert name of keymap macro 2016-09-10 12:12:26 +09:00
keymap_common.h usb_usb: Revert name of keymap macro 2016-09-10 12:12:26 +09:00
Makefile Remove INTERRUPT_CONTROL_ENDPOINT from converters 2020-05-08 22:39:55 +09:00
Makefile.8mhz usb_usb: Fix makefile for 8Mz setup 2023-01-24 08:40:17 +09:00
Makefile.8mhz_debug usb_usb: Fix makefile for 8Mz setup 2023-01-24 08:40:17 +09:00
Makefile.debug usb_usb: Update for debug build 2021-11-19 14:29:46 +09:00
Makefile.unimap lufa: Rename LUFA_DEBUG to TMK_LUFA_DEBUG 2020-02-09 21:17:52 +09:00
README.md usb_usb: Update for debug build 2021-11-19 14:29:46 +09:00
unimap.c usb_usb: Add BTLD unimap to start bootloader 2019-09-18 15:42:47 +09:00
unimap_trans.h usb_usb: Fix unimap translation for Power 2020-02-03 12:47:05 +09:00
usb_usb.cpp usb_usb: Fix for Apple Magic Keyboard(A1644/A1843) 2023-01-22 18:05:10 +09:00

USB to USB keyboard protocol converter

See for detail and discussion here.

Hardware requirement

There are two options.

TMK USB-USB Converter

You can buy a fully preassembled converter from me here.

Arduino Leonardo + USB Host Shield

Buying Arduino Leonardo and USB Host Shield.

Build firmware

Build.

$ git clone https://github.com/tmk/tmk_keyboard.git
$ cd tmk_keyboard
$ git submodule init
$ git submodule update
$ cd converter/usb_usb
$ make

And Program converter. Push button on TMK converter and just run this.

$ make dfu

In case of Leonardo push reset button then run command. Serial port name(COM17) depends your system. On Linux I got /dev/ttyACM0.

$ DEV=COM17 make program
or
$ avrdude -patmega32u4 -cavr109 -b57600 -Uflash:w:usb_usb.hex -PCOM17

To build debug firmware use master_debug branch of USB_Host_Shield_2.0-tmk submodule

$ cd tmk_keyboard/tmk_core/protocol/usb_hid/USB_Host_Shield_2.0-tmk
$ git chceckout master_debug
$ cd tmk_keyboard/converter/usb_usb
$ make -f Makefile.debug
$ make -f Makefile.debug dfu

Limitation

Only supports 'HID Boot protocol'.

Note that the converter can host only USB "boot protocol" keyboard(6KRO), not NKRO, it is possible to support NKRO keyboard but you will need to write HID report parser for that. Every NKRO keyboard can have different HID report and it is difficult to support all kind of NKRO keyboards in the market.

Keymap editor

You can editor keymap and download firmware with web brwoser.

Update

  • 2014/12/11 Added Hub support(confirmed with HHKB pro2)
  • 2016/09/10 Unimap editor support
  • 2016/10/18 Fix LED state at startup
  • 2017/05/xx Fix startup code for FC660C(3eae475)
  • 2018/02/xx Add Korean and Brazilian specific keys(ab6ddac,b2fa0ffa)
  • 2018/07/xx Fix startup issue(c2ce617)
  • 2018/10/xx Use fixed LUFA stack and update USB_Host_Shield_2.0
  • 2019/09/18 Add BTLD(bootlader jump) key to unimap

Resource

USB Host Sheild 2.0

USB Host Sheild 2.0 source

Arduino USB Host Shield(with bootst converter)

Arduino source

Arduino-based hardware keyboard remapper - Colemak forum

Teensy + Host Shield