Author Topic: TMK SUN-USB Converter  (Read 7160 times)

0 Members and 1 Guest are viewing this topic.

Offline hasu

  • Thread Starter
  • Posts: 3472
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
TMK SUN-USB Converter
« on: Sat, 11 April 2020, 05:28:48 »
TMK SUN-USB Converter

This converter should work with Sun Type 2-5 Keyboards.


Source code is available here.
https://github.com/tmk/tmk_keyboard/tree/master/converter/sun_usb


Keymap Editor:
You can edit keymap and downlaod prebuilt firmware here.

http://www.tmk-kbd.com/tmk_keyboard/editor/#sun_usb


SUN Keyboard Protocol Info:
https://github.com/tmk/tmk_keyboard/wiki/Sun-Keyboard-Protocol


You can order prebuilt converter here:
https://geekhack.org/index.php?topic=72052.0
« Last Edit: Wed, 09 September 2020, 16:43:36 by hasu »

Offline doomsday_device

  • Posts: 7
  • Location: Germany
Re: TMK SUN-USB Converter
« Reply #1 on: Thu, 19 May 2022, 13:05:34 »
recently acquired a tatung branded sun 5 (?) board, successfully restored and converted it with this firmware.
it has a big beeper and screams everytime i connect. so my guess would be it is working like the other sun keyboards and is potentionally able to output beeps/clicks with each keypress.

to use this feature i would need to use the tmk "magic" key combo, which in this case would be both shift, both alt or both meta keys + a single extra key. it seems the matrix isnt able to do that.

my question here is, is there any way to remap "magic" key combos, or even to map a key to a single hexcode?
beside wiring up converters and putting the *.hex from the online editor on to the chip my knowledge is very limited.

also off topic: if anyone has any infos on the board or the system it came with it would be much appreciated. couldnt find any infos or pictures at all. its a forward fdw-107a

pic of board attached for beauty bonus

disclaimer: this is a crosspost and is also to be found on DT forums.

Offline hasu

  • Thread Starter
  • Posts: 3472
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: TMK SUN-USB Converter
« Reply #2 on: Thu, 19 May 2022, 18:05:22 »
'Keyboard control' command is configured in config.h, you cannot remap in Keymap Editor.
https://github.com/tmk/tmk_keyboard/tree/2173767a78e3353f40b2bc6bb3f29bc67c896470/converter/sun_usb#keyboard-control

You have to edit these lines and compile firmware to change the command.
https://github.com/tmk/tmk_keyboard/blob/2173767a78e3353f40b2bc6bb3f29bc67c896470/converter/sun_usb/config.h#L33-L37

Offline doomsday_device

  • Posts: 7
  • Location: Germany
Re: TMK SUN-USB Converter
« Reply #3 on: Fri, 20 May 2022, 17:16:17 »
'Keyboard control' command is configured in config.h, you cannot remap in Keymap Editor.
https://github.com/tmk/tmk_keyboard/tree/2173767a78e3353f40b2bc6bb3f29bc67c896470/converter/sun_usb#keyboard-control

You have to edit these lines and compile firmware to change the command.
https://github.com/tmk/tmk_keyboard/blob/2173767a78e3353f40b2bc6bb3f29bc67c896470/converter/sun_usb/config.h#L33-L37
thanks,
remapping combo to two different mods (shift/alt) helped and it works now.
Code: [Select]
#define IS_COMMAND() ( \
    keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_LALT)) \
)
thanks to my friend kelvinhall05 for figuring out with me and the compile.
« Last Edit: Fri, 20 May 2022, 17:27:52 by doomsday_device »