Author Topic: Alternative Controller for HHKB  (Read 189145 times)

0 Members and 1 Guest are viewing this topic.

Offline hasu

  • Thread Starter
  • Posts: 2358
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #550 on: Wed, 14 June 2017, 21:58:10 »
hid_listen should displays like below. You will see 'Listenning:' when you get connected to your keyboard and will see 'debug: on' when you press the combo. Did you see those output on hid_listen?

Also refer this FAQ entry. https://github.com/tmk/tmk_keyboard/wiki/FAQ#debug-console

Code: [Select]
Device disconnected.
Waiting for new device:.......
Listening:

debug: on
⚠ My Engrish is broken.  TMK firmwareHHKB Alt  ⌨ConvertersAlps64FC660C Alt

Offline sodiumjoe

  • Posts: 10
  • Location: Portland, OR
Re: Alternative Controller for HHKB
« Reply #551 on: Fri, 16 June 2017, 01:06:37 »
It's not a big deal, since I got everything working now, but this is what I see when I add a `dprint()` and try to debug:

Code: [Select]
Waiting for device:
Listening:

debug: on
^[^[^[
debug: off

keyboard: on
keyboard: 22 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 00 00 00 00 00 00 02 00 00 00 00 00 00 00 0^[0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 22 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

debug: off

debug: on
^R

debug: off
^[^[jlij^C

Offline hasu

  • Thread Starter
  • Posts: 2358
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #552 on: Fri, 16 June 2017, 01:14:54 »
It's not a big deal, since I got everything working now, but this is what I see when I add a `dprint()` and try to debug:

Code: [Select]
Waiting for device:
Listening:

debug: on
^[^[^[
debug: off

keyboard: on
keyboard: 22 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 00 00 00 00 00 00 02 00 00 00 00 00 00 00 0^[0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 22 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

debug: off

debug: on
^R

debug: off
^[^[jlij^C

Looks like it works well so you can use dprintf() in your code when you need to debug some later :D
⚠ My Engrish is broken.  TMK firmwareHHKB Alt  ⌨ConvertersAlps64FC660C Alt

Offline sodiumjoe

  • Posts: 10
  • Location: Portland, OR
Re: Alternative Controller for HHKB
« Reply #553 on: Fri, 16 June 2017, 12:49:32 »
But that's *with* debug statements in the code, on keys that I was pressing. Where are the debug messages supposed to show up?

Offline sinegav

  • Posts: 9
  • Location: Norway
  • love keybaords
Re: Alternative Controller for HHKB
« Reply #554 on: Sat, 17 June 2017, 18:03:04 »
I've had someone ask where I got the USB plugs for the empty holes left in the rear of my HHKB after installing Hasu's controller (which doth rock, BTW. Thanks, Hasu!).

I just did a search on Ebay for "USB port (cover,plug)" and found these:
(Attachment Link)

They are a little undersize because they are designed for hardware inside the holes, not just an empty hole. I just wrapped some Kapton tape around the body to add a little dimension and they're now a nice press fit. I used Kapton tape because it's very thin, allowing very fine "adjustment" by layering, and also because it has an adhesive which won't weep out over time.

...and it looks like this:
(Attachment Link)

Just as another point of reference, I opt'd for a slightly more custom approach. Using a design previously uploaded in this thread, saved in github https://github.com/robotmaxtron/HHKB-usb-dust-covers I got some printed for about $10 I think at Shapeways.

Show Image


Hey thank you so much for this!!  ;D I was always wondering what I would use to cover these holes with.
It was a bit hard to find them actually, so if anyone is looking here is a link for it: http://www.ebay.com/itm/10Pcs-Plastic-USB-A-Male-Anti-Dust-Plug-Stopper-Cap-Cover-Black-Clear-SH-E4Y8-/252874131909?hash=item3ae07909c5:g:jAQAAOSwN6JY9NCv

Visit the Typing Test and try!