matrix_scan in hook_usb_startup_wait_loop is not required for FC660C since commit dd7b75: SOF timing fix of USB_Host_Shield_2.0. Without INTERRUPT_CONTROL_ENDPOINT the matrix_scan blocks around 2300ms and prevents getting USB configured. In the result console_putc starts sending before hid_listen is ready and chars are lost. console_is_ready delay value should be around 5000ms if matrix_scan is needed in hook_usb_startup_wait_loop. |
||
|---|---|---|
| .. | ||
| binary | ||
| config.h | ||
| keymap.c | ||
| keymap_common.h | ||
| Makefile | ||
| Makefile.8mhz | ||
| Makefile.debug | ||
| Makefile.unimap | ||
| README.md | ||
| unimap.c | ||
| unimap_trans.h | ||
| usb_usb.cpp | ||
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.
- https://store.arduino.cc/usa/leonardo
- https://store.arduino.cc/usa/arduino-usb-host-shield
- https://www.sparkfun.com/products/9947
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
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