Author Topic: [TMK] Alternative Controller for HHKB  (Read 515853 times)

0 Members and 1 Guest are viewing this topic.

Offline rdg

  • Posts: 18
  • Location: California
Re: Alternative Controller for HHKB
« Reply #450 on: Sat, 16 April 2016, 00:21:06 »
It loosks dfu-programmer flashes controller successfully, but you need sudo?
https://github.com/tmk/tmk_keyboard/wiki/FAQ-Build#cant-program-on-linux-and-mac

Also did you use sudo with hid_listen?
https://github.com/tmk/tmk_keyboard/wiki/FAQ#hid_listen-cant-recognize-device

I had flashed with sudo in previous attempts, but the result is the same. I never get anything from hid_listen after "Waiting for device:....... Listening:". The computer detects the keyboard it seems but no keypresses.


Hi @rdg,

I get similar issues with my tmk'ed hhkb jp, and it appears to be OSX not picking up the keyboard, try unplugging/replugging/typing a few times.
For me sometimes it will work straight away and sometimes it will take 3 or more unplugs/replugs, but it always starts working eventually :D

Hmm, tried about 10 and no result yet unfortunately. (edit: I also tried w/ windows, but same result)


One thing to confirm after reading everything i can - is there a different controller hardware for the JP than the pro 2 - did I buy the wrong board?

I have 2016/01 Rev.J (I ordered it through 1upkeyboards). Thanks for the advice so far everyone!
(edit: I see this on your order page, which makes me think I made a mistake:     USB:  0+(Pro2) / 1+(JP) / Ask(Pro1) )

« Last Edit: Sat, 16 April 2016, 00:27:54 by rdg »

Offline hasu

  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #451 on: Sat, 16 April 2016, 00:29:33 »
I just got a hhkb alt controller and am trying to use it with my HHKB-JP. But, after flashing the firmware I cannot get any keypress registered.
I have tried hid listen tool on OSX but no output - I'm not sure how else to debug - does anyone have any ideas? I'll add a gist below with output of compilation and dfu-programmer.
Compiled on OSX 10.11, avytr gcc version 4.8.1 (GCC)

Hi @rdg,

I get similar issues with my tmk'ed hhkb jp, and it appears to be OSX not picking up the keyboard, try unplugging/replugging/typing a few times.
For me sometimes it will work straight away and sometimes it will take 3 or more unplugs/replugs, but it always starts working eventually :D

hmm, it seems something wrong happens in USB enumeration. I found my firmware on HHKB is clearly slower than other projects like alps64 in kernel log of enumeration process. I don't know why. I'll have to look into  when I get time.


EDIT: This issue was filed. https://github.com/tmk/tmk_keyboard/issues/331
« Last Edit: Sat, 16 April 2016, 00:54:16 by hasu »

Offline hasu

  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #452 on: Sat, 16 April 2016, 00:42:48 »
It loosks dfu-programmer flashes controller successfully, but you need sudo?
https://github.com/tmk/tmk_keyboard/wiki/FAQ-Build#cant-program-on-linux-and-mac

Also did you use sudo with hid_listen?
https://github.com/tmk/tmk_keyboard/wiki/FAQ#hid_listen-cant-recognize-device

I had flashed with sudo in previous attempts, but the result is the same. I never get anything from hid_listen after "Waiting for device:....... Listening:". The computer detects the keyboard it seems but no keypresses.
"Listening:" means hid_listen conneted to keyboard and waiting for output. No problem here.


Quote
Hi @rdg,

I get similar issues with my tmk'ed hhkb jp, and it appears to be OSX not picking up the keyboard, try unplugging/replugging/typing a few times.
For me sometimes it will work straight away and sometimes it will take 3 or more unplugs/replugs, but it always starts working eventually :D

Hmm, tried about 10 and no result yet unfortunately. (edit: I also tried w/ windows, but same result)


One thing to confirm after reading everything i can - is there a different controller hardware for the JP than the pro 2 - did I buy the wrong board?

I have 2016/01 Rev.J (I ordered it through 1upkeyboards). Thanks for the advice so far everyone!
(edit: I see this on your order page, which makes me think I made a mistake:     USB:  0+(Pro2) / 1+(JP) / Ask(Pro1) )


Ah, it is wrong controller for your HHKB JP. You cannot buy JP controller from the shop so far, controller you bought is actually for Pro2. Pro2 and JP have diffrent pinouts and diffrent shape connecter and they should not mate each other correctly.



Offline rdg

  • Posts: 18
  • Location: California
Re: Alternative Controller for HHKB
« Reply #453 on: Sat, 16 April 2016, 09:51:26 »
Ah, it is wrong controller for your HHKB JP. You cannot buy JP controller from the shop so far, controller you bought is actually for Pro2. Pro2 and JP have diffrent pinouts and diffrent shape connecter and they should not mate each other correctly.

Got it, the connection did feel a little loose, but not so loose that it felt wrong.  I'll send you a pm/email about ordering the JP version. Thanks for all the info!

Offline hasu

  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #454 on: Mon, 25 April 2016, 21:53:55 »
I'll add pics and info later.

PFU HHKB BT internal shots:
http://imgur.com/a/YfcYt/all

Product info:
https://www.pfu.fujitsu.com/hhkeyboard/bt/

And MEMO.
Quote

HHKB Professional BT
====================
Internal shots:
http://imgur.com/a/YfcYt/all

Product info:
https://www.pfu.fujitsu.com/hhkeyboard/bt/


Controller
----------
m430f5510 TI MSP430
http://www.ti.com/lit/ds/symlink/msp430f5506.pdf


bu48**
Rohm reset IC
http://rohmfs.rohm.com/jp/products/databook/datasheet/ic/power/voltage_detector/bu48xxg-j.pdf
bu4819      1.9V
    Z11 for Battery voltage to MCU
bu4820 x3   2.0V
    Z10 for Battery voltage to MUC
    Z12 for VOUT of Bluetooth module to MUC
    Z16 for VOUT of Bluetooth module
bu4822      2.2V
    Z17 for Battery voltage to MUC


LTC4415 Z15 power switch
siwtch between battery and USB power
http://www.linear.com/product/LTC4415


S1170B33 Z14 voltage regulator
http://datasheet.sii-ic.com/en/voltage_regulator/S1170_E.pdf

TPS2065 Z9 USB pwoer distribution switch
http://www.tij.co.jp/product/jp/TPS2065
http://www.tij.co.jp/jp/lit/ds/symlink/tps2065.pdf


CN2: To Power board
10  GND
8   USB power
9   Battery
7   DIPSW1
6   DIPSW2
5   DIPSW3
4   DIPSW4
3   DIPSW5
2   DIPSW6
1   Reset



Bluetooth module
----------------
bcm20730

ath432
atmel I2C EEPROM
http://www.atmel.com/images/atmel-8568-seeprom-at24c256c-datasheet.pdf

GM30G ??DC-DC stepup??
has inductor and diode


Switch board
------------
LV07A open-drain driver
http://www.ti.com/lit/ds/symlink/sn74lv07a.pdf

LW051A analog multiplexer
http://www.ti.com/lit/ds/symlink/sn74lv4051a.pdf


some chips are engraved




Power board
-----------
CN4: To Controller
1   GND
3   USB power
2   Battery
4   DIPSW1
5   DIPSW2
6   DIPSW3
7   DIPSW4
8   DIPSW5
9   DIPSW6
10  Reset

Offline joric

  • Posts: 136
Re: Alternative Controller for HHKB
« Reply #455 on: Tue, 26 April 2016, 01:58:06 »
This is a bold move. Not sure lettering could be read. I'll try digital microscope when I get mine.

It's probably easier to find out what those chips really do in the circuit.
They look very similar to LV07A though, not sure why they are engraved.
« Last Edit: Tue, 26 April 2016, 05:25:15 by joric »

Offline hanya

  • Posts: 132
  • Location: Japan
Re: Alternative Controller for HHKB
« Reply #456 on: Tue, 26 April 2016, 03:02:16 »
Thank you for sharing the pictures of BT model. It looks USB lines from MCU are not connected to external connector, but just connected to test points.
It seems PCB to PCB connector between the controller board and switch board is one of HRS DF12 series, but its height is not sure.
PFU HHKB JP, Sanwa MA-TB38 trackball

Offline joric

  • Posts: 136
Re: Alternative Controller for HHKB
« Reply #457 on: Tue, 26 April 2016, 11:22:16 »
Hasu, I'd like to know how does the rear button work? Is it a simple push button as on bluetooth headphones or a two-position switch as on Filco?
Is this button really the only way to wake up a keyboard after 30 minutes of inactivity or it's just a bad google translate from here:

http://japanese.engadget.com/2016/04/11/hhkb-happy-hacking-keyboard-profess/
"HHKB Professional BT" is automatically power if there is no 30-minute character input has become the specifications turned off. The power will turn on the power button long press, but then re-connect automatically to the terminal which has been pairing just before

Also, how does the LED work? Does it glow all the time when the keyboard is active?
« Last Edit: Tue, 26 April 2016, 13:37:07 by joric »

Offline hasu

  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #458 on: Tue, 26 April 2016, 16:18:34 »
Hasu, I'd like to know how does the rear button work? Is it a simple push button as on bluetooth headphones or a two-position switch as on Filco?
Is this button really the only way to wake up a keyboard after 30 minutes of inactivity or it's just a bad google translate from here:

http://japanese.engadget.com/2016/04/11/hhkb-happy-hacking-keyboard-profess/
"HHKB Professional BT" is automatically power if there is no 30-minute character input has become the specifications turned off. The power will turn on the power button long press, but then re-connect automatically to the terminal which has been pairing just before

Also, how does the LED work? Does it glow all the time when the keyboard is active?

It is normal tact switch just like one used on my TMK Alt controler, not two-position. The push button is only wakeup method  and you cannot use keyboard keys to wakeup in "30min-power down mode".
You can configure this power down mode with DIPSW6,  it is disabled when "Wake Up enable"(ON) and you can type anytime and never power down. By default factroy setting it is configured as "Wake Up disable"(OFF) or power down mode is enabled.

LED turns off after it is connected.

Offline Belfong

  • Posts: 5217
  • Location: Malaysia
Re: Alternative Controller for HHKB
« Reply #459 on: Tue, 26 April 2016, 19:00:16 »
Ohhhhh! Very good to know there is a Dip switch for never sleep!!!! Now, I'm Really interested in this HHKB!
 

Offline attheicearcade

  • Posts: 30
Re: Alternative Controller for HHKB
« Reply #460 on: Wed, 27 April 2016, 08:19:36 »
Thanks for these photos hasu, it would certainly be interesting to see what those engraved chips are. Can possibly make out an LV74A from one of them. The other large chip is a little blurry, can anyone get a better photo? Is there anything else hiding under the controller?

Edit: took a closer look at the photos. I have some initial thoughts but they are quite uncertain:

Z1 is the LV07A, driving the columns. It seems that there are two analog multiplexers taking row input: Z2 and Z3. The output line is joined near the bottom of the board and fed into the small cluster of components by the Topre logo. What are Z4 and Z5? I'm thinking voltage boost is done here, perhaps op amps of some kind. The output of this leads to R22 shown here http://i.imgur.com/HrAuS0V.jpg after which presumably the sensing is done. I think the top chip in that photo is LV74A and the key state is held in the flip flop for the controller to read. Looks like the lines leading off to the top of that photo go back to the controller. Maybe the smaller chip is a variable resistor.

Interesting to note that there are a low number of columns (1 LV07A) compared to rows (2x LW051A) (if my guess is right anyway). Normal HHKB2 had only one analog mux. I think this is related to the change of sensing mechanism. Possibly the new method is less robust, leading to the problem of voltage drop when too many keys are on a single row. Of course this could all be completely wrong.
« Last Edit: Wed, 27 April 2016, 12:33:33 by attheicearcade »

Offline joric

  • Posts: 136
Re: Alternative Controller for HHKB
« Reply #461 on: Wed, 04 May 2016, 11:23:48 »
Got my HHKB BT today. Tried to swap cases with HHKB Pro 2 (TL;DR: needs a lot of carving but generally possible, not without a sacrifice, bluetooth board overlaps the stand comparment for about 5-8 mm; it's probably better to use a HRS DF12 20 pin ribbon cable). Posted pics here https://geekhack.org/index.php?topic=81269.msg2161778#msg2161778
« Last Edit: Fri, 06 May 2016, 03:43:10 by joric »

Offline hasu

  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #462 on: Wed, 04 May 2016, 22:32:33 »
Thank you for sharing the pictures of BT model. It looks USB lines from MCU are not connected to external connector, but just connected to test points.
It seems PCB to PCB connector between the controller board and switch board is one of HRS DF12 series, but its height is not sure.

You're right, it is DF12 and height is probably 3mm and USB pins of the controller are not pulled out to any connector unfortunately, without fine job soldering you won't be able to add USB interface.


Thanks for these photos hasu, it would certainly be interesting to see what those engraved chips are. Can possibly make out an LV74A from one of them. The other large chip is a little blurry, can anyone get a better photo? Is there anything else hiding under the controller?

Edit: took a closer look at the photos. I have some initial thoughts but they are quite uncertain:

Z1 is the LV07A, driving the columns. It seems that there are two analog multiplexers taking row input: Z2 and Z3. The output line is joined near the bottom of the board and fed into the small cluster of components by the Topre logo. What are Z4 and Z5? I'm thinking voltage boost is done here, perhaps op amps of some kind. The output of this leads to R22 shown here http://i.imgur.com/HrAuS0V.jpg after which presumably the sensing is done. I think the top chip in that photo is LV74A and the key state is held in the flip flop for the controller to read. Looks like the lines leading off to the top of that photo go back to the controller. Maybe the smaller chip is a variable resistor.

Interesting to note that there are a low number of columns (1 LV07A) compared to rows (2x LW051A) (if my guess is right anyway). Normal HHKB2 had only one analog mux. I think this is related to the change of sensing mechanism. Possibly the new method is less robust, leading to the problem of voltage drop when too many keys are on a single row. Of course this could all be completely wrong.

I guess Z4 is Topre custom sense chip or comparater(ADC?) and Z5 is digipot, I have to look into existent Topre chips and its circuit to get clear vision.


Offline joric

  • Posts: 136
Re: Alternative Controller for HHKB
« Reply #463 on: Thu, 05 May 2016, 06:25:58 »
Don't buy 13-pin JST connectors on Ebay, people. But if you do, make sure they are 1.5 mm not 2.5 mm ones.

*facepalm*

Offline RavenII

  • Posts: 191
Re: Alternative Controller for HHKB
« Reply #464 on: Sun, 08 May 2016, 18:57:00 »
I'll just leave my little contribution here...

Offline hasu

  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #465 on: Sun, 08 May 2016, 19:36:11 »
I'll just leave my little contribution here...

Great job! Thanks for sharing with us.

Offline RavenII

  • Posts: 191
Re: Alternative Controller for HHKB
« Reply #466 on: Sun, 08 May 2016, 20:20:09 »
Great job! Thanks for sharing with us.

And thank YOU for making the HHKB that much better with the controller. I swear, my requirement for a keyboard is whether or not it can take TMK, I can't live without it.

Offline phutro

  • Posts: 8
  • Location: SATX
Re: Alternative Controller for HHKB
« Reply #467 on: Tue, 10 May 2016, 12:14:45 »
The Adafruit 2500mAh battery fits with a small modification made to the top shell's interior stabilizing feet.

http://imgur.com/a/vN3Xl

Offline hasu

  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #468 on: Tue, 10 May 2016, 12:29:55 »
The Adafruit 2500mAh battery fits with a small modification made to the top shell's interior stabilizing feet.

http://imgur.com/a/vN3Xl

Thanks for the info!  I added the link to the first post.
https://geekhack.org/index.php?topic=71517.0

Offline phutro

  • Posts: 8
  • Location: SATX
Re: Alternative Controller for HHKB
« Reply #469 on: Tue, 10 May 2016, 12:41:03 »
The Adafruit 2500mAh battery fits with a small modification made to the top shell's interior stabilizing feet.

http://imgur.com/a/vN3Xl

Thanks for the info!  I added the link to the first post.
https://geekhack.org/index.php?topic=71517.0

Thank you for this fantastic controller!

Offline joric

  • Posts: 136
Re: Alternative Controller for HHKB
« Reply #470 on: Wed, 11 May 2016, 07:36:08 »
The Adafruit 2500mAh battery fits with a small modification made to the top shell's interior stabilizing feet.
http://imgur.com/a/vN3Xl
Yeah, I had to cut those stems off completely to put a HHKB BT keyswitch board there (and a part of leftmost stem as well).
Doesn't seem like they are essential or make the case more sturdy or something (it was pretty sqeaky), so it's fine without them.



More pics here http://imgur.com/a/YYAOv

Offline RavenII

  • Posts: 191
Re: Alternative Controller for HHKB
« Reply #471 on: Thu, 12 May 2016, 08:25:39 »
There's no need to clip anything on your HHKB to get the Adafruit 2500 (785060 dimensions) Battery to fit. All you have to do is bend the protection circuit away from the written side of the battery (if the battery is sitting with the writing side up, you bend the circuit downwards)...

The rest of the "mod" involves simply bending the aluminum around the battery, namely the corners, and bottom. If you were to stand the battery up, where the circuit side is on top...the bottom of the battery can be pushed in. The aluminum is pretty loose (which I'm assuming is in the event of expansion)...

You finagle the bottom, and the corners, and it fits perfect. No clipping of the case or anything.

Offline hasu

  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #472 on: Thu, 12 May 2016, 15:06:01 »
There's no need to clip anything on your HHKB to get the Adafruit 2500 (785060 dimensions) Battery to fit. All you have to do is bend the protection circuit away from the written side of the battery (if the battery is sitting with the writing side up, you bend the circuit downwards)...

The rest of the "mod" involves simply bending the aluminum around the battery, namely the corners, and bottom. If you were to stand the battery up, where the circuit side is on top...the bottom of the battery can be pushed in. The aluminum is pretty loose (which I'm assuming is in the event of expansion)...

You finagle the bottom, and the corners, and it fits perfect. No clipping of the case or anything.

Nice! I'll add this in the thread, thanks.

Offline kasakka

  • Posts: 107
Re: Alternative Controller for HHKB
« Reply #473 on: Fri, 13 May 2016, 02:22:37 »
Does the alternative controller work with the Japanese layout version of the HHKB? I'm going to Japan in about a month and was considering picking up one of those since it has more buttons than the regular one (I need them bottom corner arrow keys).

Offline hasu

  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #474 on: Fri, 13 May 2016, 02:31:28 »
Does the alternative controller work with the Japanese layout version of the HHKB? I'm going to Japan in about a month and was considering picking up one of those since it has more buttons than the regular one (I need them bottom corner arrow keys).
Sure, it works with JP model(PD-KB420).
« Last Edit: Fri, 13 May 2016, 02:50:58 by hasu »

Offline kasakka

  • Posts: 107
Re: Alternative Controller for HHKB
« Reply #475 on: Fri, 13 May 2016, 02:57:30 »
Does the alternative controller work with the Japanese layout version of the HHKB? I'm going to Japan in about a month and was considering picking up one of those since it has more buttons than the regular one (I need them bottom corner arrow keys).
Sure, it works with JP model(PD-KB420).

Excellent! Any recommendations where I should go keyboard/keycap shopping in Tokyo?

Offline Atredl

  • Posts: 805
  • Location: SoCal
Re: Alternative Controller for HHKB
« Reply #476 on: Fri, 20 May 2016, 17:47:19 »
Since there are people getting their BT HHKB's does anyone know if Hasu's controller will work with the BT version? My guess is that it won't since the board will probably work slightly differently. Be good to find out though.

Offline hasu

  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #477 on: Fri, 20 May 2016, 20:11:54 »
Since there are people getting their BT HHKB's does anyone know if Hasu's controller will work with the BT version? My guess is that it won't since the board will probably work slightly differently. Be good to find out though.

Your guess is right. It doesn't work with HHKB Professional BT physically and logically. It think it is possible to make new alt controller for it but it doesn't make sense to replace its bluetooth controller mainly in terms of  cost. Instead, you will be able to program its controller MSP430 with your own firmware and it makes more sense. It would be great if someone can set to on this work.

Offline Karura

  • Professional Canadian
  • * Destiny Supporter
  • Posts: 1574
  • Location: Canada
  • SKidata life.
Re: Alternative Controller for HHKB
« Reply #478 on: Fri, 24 June 2016, 02:15:13 »
Hasu, I'm looking for a reliable and light-weight keyboard and plan to use my HHKB as such.

Do you think there are any benefits to getting the USB-only controller?

I think I like BT and being able to connect wirelessly, but for the sake of reliability and being bug-free, would you recommend buying the USB only controller?

"Remember boys, raccoon cold... don't worry, raccoon will find cave." -Sent

Offline hasu

  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #479 on: Fri, 24 June 2016, 09:30:33 »
Hi,
I don't think USB controller has advantage against BT one in terms of reliability. BT controller has equivalent connectivity of USB and Bluetooth connection is also stable and responsive and as far as I have tested.
BT controller will work for you if you can stand its cost and limitations, in particular short battery life.

Offline qnm

  • Posts: 1
Re: Alternative Controller for HHKB
« Reply #480 on: Mon, 27 June 2016, 19:38:36 »
Hey Hasu,

Would you make a BT board (or a USB if it's simpler) with a USB-C connector?

There's a mod board already available here https://oshpark.com/shared_projects/jm1ndqqB

 -- Rob

Offline hasu

  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #481 on: Mon, 27 June 2016, 20:33:43 »
Hi,
No I have no plan for a while at least.
Cables and connectors have no variety and not cheap yet. Type-C is rather big and you will have to file your case to fit the connector.

And mini is not bad at all for keyboard and I have no problem with it. But I like reversible micro cable so far :D

Offline Gatix

  • #!/bin/sh
  • Posts: 82
  • Location: Manila
  • console.log
Re: Alternative Controller for HHKB
« Reply #482 on: Fri, 22 July 2016, 11:38:34 »
Hi, Hasu. I have the USB controller and after flashing it takes about 62 seconds for the board to boot up (no keypresses registers) everytime I plug the board. Is this normal or did I do something wrong?

Here's my keymap. I just added a layer for vim keys.

Offline hasu

  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #483 on: Fri, 22 July 2016, 11:57:46 »
Hi, Hasu. I have the USB controller and after flashing it takes about 62 seconds for the board to boot up (no keypresses registers) everytime I plug the board. Is this normal or did I do something wrong?

Here's my keymap. I just added a layer for vim keys.

I can't see any problem on your keymap and it should work.
62 secs everytime? totally wierd. after the delay does it works as expected?

See /var/log/syslog, you should see output like this when plugin. It takes a few seconds to boot up.
Code: [Select]
ul 23 01:54:35 desk kernel: [584015.608037] usb 1-1.3.3: new full-speed USB device number 106 using ehci-pci
Jul 23 01:54:35 desk kernel: [584015.701995] usb 1-1.3.3: New USB device found, idVendor=feed, idProduct=cafe
Jul 23 01:54:35 desk kernel: [584015.702003] usb 1-1.3.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jul 23 01:54:35 desk kernel: [584015.702007] usb 1-1.3.3: Product: HHKB mod
Jul 23 01:54:35 desk kernel: [584015.702010] usb 1-1.3.3: Manufacturer: t.m.k.
Jul 23 01:54:37 desk kernel: [584017.451082] input: t.m.k. HHKB mod as /devices/pci0000:00/0000:00:02.1/usb1/1-1/1-1.3/1-1.3.3/1-1.3.3:1.0/0003:FEED:CAFE.0200/input/input413
Jul 23 01:54:37 desk kernel: [584017.505945] hid-generic 0003:FEED:CAFE.0200: input,hidraw5: USB HID v1.11 Keyboard [t.m.k. HHKB mod] on usb-0000:00:02.1-1.3.3/input0
Jul 23 01:54:37 desk kernel: [584017.523046] input: t.m.k. HHKB mod as /devices/pci0000:00/0000:00:02.1/usb1/1-1/1-1.3/1-1.3.3/1-1.3.3:1.1/0003:FEED:CAFE.0201/input/input414
Jul 23 01:54:37 desk kernel: [584017.523937] hid-generic 0003:FEED:CAFE.0201: input,hidraw6: USB HID v1.11 Mouse [t.m.k. HHKB mod] on usb-0000:00:02.1-1.3.3/input1
Jul 23 01:54:37 desk kernel: [584017.550060] input: t.m.k. HHKB mod as /devices/pci0000:00/0000:00:02.1/usb1/1-1/1-1.3/1-1.3.3/1-1.3.3:1.2/0003:FEED:CAFE.0202/input/input415
Jul 23 01:54:37 desk kernel: [584017.632589] hid-generic 0003:FEED:CAFE.0202: input,hidraw7: USB HID v1.11 Device [t.m.k. HHKB mod] on usb-0000:00:02.1-1.3.3/input2
Jul 23 01:54:37 desk kernel: [584017.652170] hid-generic 0003:FEED:CAFE.0203: hiddev0,hidraw8: USB HID v1.11 Device [t.m.k. HHKB mod] on usb-0000:00:02.1-1.3.3/input3
Jul 23 01:54:37 desk kernel: [584017.670527] input: t.m.k. HHKB mod as /devices/pci0000:00/0000:00:02.1/usb1/1-1/1-1.3/1-1.3.3/1-1.3.3:1.4/0003:FEED:CAFE.0204/input/input416
Jul 23 01:54:37 desk kernel: [584017.760741] hid-generic 0003:FEED:CAFE.0204: input,hidraw9: USB HID v1.11 Keyboard [t.m.k. HHKB mod] on usb-0000:00:02.1-1.3.3/input4


Offline Gatix

  • #!/bin/sh
  • Posts: 82
  • Location: Manila
  • console.log
Re: Alternative Controller for HHKB
« Reply #484 on: Fri, 22 July 2016, 12:22:32 »
Yes, it works normally after that boot up time.

I'm on mac, there's nothing on /var/log/system.log about HHKB and tmk

Offline Gatix

  • #!/bin/sh
  • Posts: 82
  • Location: Manila
  • console.log
Re: Alternative Controller for HHKB
« Reply #485 on: Fri, 22 July 2016, 12:44:08 »
I get this from the system log after plugging out the board:

Code: [Select]
No interval found for . Using 8000000
No interval found for . Using 8000000
No interval found for . Using 8000000
No interval found for . Using 8000000
No interval found for . Using 8000000
No interval found for . Using 8000000
No interval found for . Using 8000000
No interval found for . Using 8000000

Offline hasu

  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #486 on: Fri, 22 July 2016, 12:52:08 »
I can't get any idea from the log output, I'm not familiar with OSX. What does that mean?

Does default firmware downloaded from keymap editor works normally?
http://www.tmk-kbd.com/tmk_keyboard/editor/hhkb/index.html

Offline Gatix

  • #!/bin/sh
  • Posts: 82
  • Location: Manila
  • console.log
Re: Alternative Controller for HHKB
« Reply #487 on: Fri, 22 July 2016, 13:42:39 »
I tried flashing the default from the repo and from the keymap editor as well. Still getting up to a minute of boot time.

I have a 2014/09 Rev. D controller by the way. Appreciate your help on this one.

Offline Gatix

  • #!/bin/sh
  • Posts: 82
  • Location: Manila
  • console.log
Re: Alternative Controller for HHKB
« Reply #488 on: Sun, 24 July 2016, 00:34:00 »
Hello again, Hasu. So I solved the 60 second boot time by simply restarting my laptop  :)) It now boots up in 3 seconds, sorry about that.

I have another problem, the board is not registering any keycode with the GUI key. I've tried it on multiple computers (windows and mac) and I've also tried a different keystroke to isolate if it's the switch. It's just not registering any input with the GUI key.

EDIT: Solved by disabling Bootmagic
« Last Edit: Sun, 24 July 2016, 07:52:33 by Gatix »

Offline yangdigi

  • Posts: 79
  • Location: China
Re: Alternative Controller for HHKB
« Reply #489 on: Mon, 03 October 2016, 09:12:28 »
http://www.microchip.com/wwwproducts/en/RN42
RN41/42 Firmware v6.30 Release Notes say:
FIXED ISSUES
• Command “C,<adr>” re-connects to the specified Bluetooth address in
PDL

So with v6.30 manual switching connections is possible now.

Offline tlattimore

  • Posts: 2
Re: Alternative Controller for HHKB
« Reply #490 on: Mon, 28 November 2016, 10:06:10 »
This is awesome work, Hasu!

I would really like to make this upgrade to my HHKB Pro 2. The only question I have is whether or not the charging component of the bluetooth controller version automatically shuts off once the battery is charged to prevent overcharging/overheating? Does anyone know?

Offline hasu

  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #491 on: Mon, 28 November 2016, 19:26:55 »
This is awesome work, Hasu!

I would really like to make this upgrade to my HHKB Pro 2. The only question I have is whether or not the charging component of the bluetooth controller version automatically shuts off once the battery is charged to prevent overcharging/overheating? Does anyone know?

It has MCP73832-2ACI/OT as charger chip which controls charge current properly. Just note that you have to use battery with protection circuit for further security.

Offline tlattimore

  • Posts: 2
Re: Alternative Controller for HHKB
« Reply #492 on: Tue, 29 November 2016, 15:23:06 »
Quote
It has MCP73832-2ACI/OT as charger chip which controls charge current properly. Just note that you have to use battery with protection circuit for further security.

Awesome! Thanks, Hasu.
« Last Edit: Wed, 30 November 2016, 10:56:30 by tlattimore »

Offline venyv

  • Posts: 51
  • Location: The Beach
Re: Alternative Controller for HHKB
« Reply #493 on: Sun, 11 December 2016, 10:58:23 »
Anyone else have any issues running this through a USB hub? I am getting some weird issues. When I plug it in through the hub it does not work and makes my speakers pop ever few seconds and the computer runs really slow. If I plug it directly into the USB on the computer it seems to work fine.

Offline robotmaxtron

  • Posts: 107
  • Location: Austin,TX
Re: Alternative Controller for HHKB
« Reply #494 on: Wed, 04 January 2017, 20:02:55 »
Anyone else have any issues running this through a USB hub? I am getting some weird issues. When I plug it in through the hub it does not work and makes my speakers pop ever few seconds and the computer runs really slow. If I plug it directly into the USB on the computer it seems to work fine.

I'm running mine through a KM hub without any problems.

Offline YangG

  • Posts: 1
Re: Alternative Controller for HHKB
« Reply #495 on: Tue, 10 January 2017, 17:15:12 »
Hi Hasu,

Thank you for your hard work to make HHKB more powerful. I have a HHKB pro2 and am really interested in your bt controller. I have a few question about your future plan for the controller:
1) do you have any plan to add the function to make user easy switch between paired bt devices? It looks like the controller will auto connect the latest connected device, but if the user wants to switch between devices, he needs to manually disconnect the latest device. It seems there is no easy way to quickly switch devices, but the controller could remember 8 paired devices. Is there any way to have the "easy switch" functionality?
2) in bt mode, the battery won't last for days depending on the capacity of the battery. Do you have any plan to improve the battery life in near future?

Best,
Yang

Offline hasu

  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #496 on: Tue, 10 January 2017, 17:31:20 »
1) Current version of  BT module doesn't support switching devices, so tweaking firmware cannot add this feature. But with newer module we can support this in future but not sure.
2) no. With this module we can not improve battery consumptin largely.
EDIT:  Also we may need to replace topre switch pcb, half of battery is consumed by scanning topre switch.

Complete new hardware desgin is required for these things.
« Last Edit: Tue, 10 January 2017, 17:40:23 by hasu »

Offline Atredl

  • Posts: 805
  • Location: SoCal
Re: Alternative Controller for HHKB
« Reply #497 on: Sat, 14 January 2017, 19:07:55 »
Is it possible to map the spacebar to act as a hold for function on this controller?

Offline hasu

  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #498 on: Sat, 14 January 2017, 22:42:11 »
I think so, but it depends on what you want with the function.
Firmware supports 'dual role key' that allows you to assign two different actions on a key in general.

Sent from my Nexus 5X


Offline robotmaxtron

  • Posts: 107
  • Location: Austin,TX
Re: Alternative Controller for HHKB
« Reply #499 on: Sat, 14 January 2017, 22:52:58 »
Is it possible to map the spacebar to act as a hold for function on this controller?

Yes. Check out the spacefn examples with QMK.