Author Topic: [TMK] HHKB Alt Controller with Mini-B/Type-C connector  (Read 521844 times)

0 Members and 1 Guest are viewing this topic.

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] HHKB Alt Controller
« Reply #550 on: Mon, 22 October 2018, 11:36:12 »
hmmm, how do you flash bluetooth firmware?

Check first post of this thread at first and let me know if you still have trouble.

Quoted from first post:
Quote
You can use dfu-programmer or Atmel FLIP to program microcontroller on the board. To get controller into bootloader(program) mode you can push red button on back or press key combo "LShift+RShift+Fn+P(Pause)" with default keymap. Microcontroller of board is Atmel ATMega32u4.

https://github.com/tmk/tmk_keyboard/wiki#flash-firmware

Offline Jkshowman

  • Posts: 48
Re: [TMK] HHKB Alt Controller
« Reply #551 on: Tue, 23 October 2018, 02:34:23 »
And you just go ahead and flash the bluetooth? The same way you would the USB? Cause whenever I flash the Bluetooth, the USB firmware disappears, forcing the keyboard into DFU mode and the Bluetooth connects to my computer, but doesn't output any characters?

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] HHKB Alt Controller
« Reply #552 on: Tue, 23 October 2018, 02:51:29 »
And you just go ahead and flash the bluetooth? The same way you would the USB? Cause whenever I flash the Bluetooth, the USB firmware disappears, forcing the keyboard into DFU mode and the Bluetooth connects to my computer, but doesn't output any characters?

Where/how did you get the firmware, and which tool did you use when you flashed it?

I'm not sure that I understand your problem correctly probably becuase of language barrier between us. Can you use simple plain English and explain your problem in  more detail?

Offline joric

  • Posts: 136
Re: [TMK] HHKB Alt Controller
« Reply #553 on: Sun, 04 November 2018, 12:43:02 »
Does anyone know anything to say about this lot? Says it needs 20 people for GB:

https://item.taobao.com/item.htm?spm=2013.1.w4023-1201089622.16.65391c57N0SeJM&id=579075842800

Upd: new url https://item.taobao.com/item.htm?id=590221409485

Reddit post: https://www.reddit.com/r/MechanicalKeyboards/comments/be71vx/hhkb_bleusb_mod_no_big_ass_nice_look_as_original/

Costs 350 CNY (~ 50 USD) + apparently 18 CNY for shipping (in China).

The parts are dirt cheap (no RN-42, nothing) I have everything to build it right away, sadly it's not open source. Or is it?





Machine translation:

1. The entire PCB is reduced, leaving more battery space. The battery is also more than 2000mah.

2. Bluetooth is a BLE module, use MDBT40, dual-mode support functions can refer to ydkb.io, select BLE HHKB .

3. Improvement of the power supply section, several times to improve the battery life. Combined with 1, the battery life should be able to have several weeks.

In addition to the above points. There are still some uncertain but very likely to join.

4. USB HUB is supported in wired mode (one or two external usb interfaces, JP does not support external USB), and the extra is built-in for other purposes.

5. Reserved indicator interface and RGB light strip interface to prepare for customized housing.

 

The main control will also support HHKB Pro2, HHKB Pro2 Type-S and HHKB JP. The installation method is to open the keyboard, remove the original main control, and install the current main control, without welding or destroying the outer casing.
« Last Edit: Wed, 17 April 2019, 07:56:28 by joric »

Offline Youthink

  • Posts: 1
Re: [TMK] HHKB Alt Controller
« Reply #554 on: Wed, 28 November 2018, 23:52:47 »
I have two questions.

1. I received the circuit board is green, but I see in the picture is blue, what's the difference?

2. How is the Led light displayed when the lithium battery is low in energy?

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] HHKB Alt Controller
« Reply #555 on: Thu, 29 November 2018, 02:35:56 »
Hi,
1. just color, there are no difference in electrical aspect. I use green pcb with recent revsions.
2. It is indicated by red on 'BAT' LED when not pluged into USB, while red means charging when pluged.


« Last Edit: Thu, 29 November 2018, 02:39:00 by hasu »

Offline seerk

  • Posts: 3
Re: [TMK] HHKB Alt Controller
« Reply #556 on: Fri, 18 January 2019, 13:29:29 »
My lgui/rgui keys stopped working :( I checked the keyboard debug function in hid_listener and events don't show up when I press the keys.
Any idea what might have happened?

UDATE: flashing new firmware fixed the issue
« Last Edit: Fri, 18 January 2019, 13:44:48 by seerk »

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] HHKB Alt Controller
« Reply #557 on: Fri, 18 January 2019, 13:49:40 »
I think boot magic was activated accidentally when keyboard is plugged.
Try holding space and backspace key, then plug to remove configuration from eeprom of the controller.

https://github.com/tmk/tmk_keyboard#boot-magic-configuration---virtual-dip-switch

I think I disabled the boot magic feature on default firmware for hhkb sometime ago, but I'm not sure. If not I'll do that. The feature is not so useful for many of users but very problematic when it works accidentally.

Offline monkeyking24

  • Posts: 2
Re: [TMK] HHKB Alt Controller
« Reply #558 on: Mon, 21 January 2019, 15:41:07 »
I have one question. I bought a HHKB Pro2 Bluetooth controller. The bluetooth connection works fine for me. But when I turn off bluetooth switch and connect a USB cable, the keyboard doesn't work. The light indicates that the battery is charging, but I can't type. Does anybody have similar situation? I tried both Windows and macOS. Both of them don't recognize USB connection but only bluetooth connection. In one sentence, the USB mode of the bluetooth controller doesn't work for me.
« Last Edit: Mon, 21 January 2019, 15:46:06 by monkeyking24 »

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] HHKB Alt Controller
« Reply #559 on: Mon, 21 January 2019, 20:23:59 »
I have one question. I bought a HHKB Pro2 Bluetooth controller. The bluetooth connection works fine for me. But when I turn off bluetooth switch and connect a USB cable, the keyboard doesn't work. The light indicates that the battery is charging, but I can't type. Does anybody have similar situation? I tried both Windows and macOS. Both of them don't recognize USB connection but only bluetooth connection. In one sentence, the USB mode of the bluetooth controller doesn't work for me.

I can't come up with idea except for bad connection. Did you try other usb cables? Some of people but not a few suffer from their poor cables, someone had even two bad cables in a row.

If usb connection is proper you will see something changing in Windows Device Manager when you press red button on the controller.

And you should try flashing default firmware downloaded from Keymap Editor withtout editting if you flashed firmware before.
http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?hhkb_rn42

Offline monkeyking24

  • Posts: 2
Re: [TMK] HHKB Alt Controller
« Reply #560 on: Mon, 21 January 2019, 21:42:04 »
I have one question. I bought a HHKB Pro2 Bluetooth controller. The bluetooth connection works fine for me. But when I turn off bluetooth switch and connect a USB cable, the keyboard doesn't work. The light indicates that the battery is charging, but I can't type. Does anybody have similar situation? I tried both Windows and macOS. Both of them don't recognize USB connection but only bluetooth connection. In one sentence, the USB mode of the bluetooth controller doesn't work for me.

I can't come up with idea except for bad connection. Did you try other usb cables? Some of people but not a few suffer from their poor cables, someone had even two bad cables in a row.

If usb connection is proper you will see something changing in Windows Device Manager when you press red button on the controller.

And you should try flashing default firmware downloaded from Keymap Editor withtout editting if you flashed firmware before.
http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?hhkb_rn42

Thanks for your quick reply, hasu. I did try 2 cables but they both don't help. One is the original one and the other is from another device. I don't have a third one. I haven't flashed my firmware yet. Then I will buy a new cable and try. Thanks again.
« Last Edit: Mon, 21 January 2019, 21:46:15 by monkeyking24 »

Offline menuhin

  • Posts: 1225
  • Location: Germany
Re: [TMK] HHKB Alt Controller
« Reply #561 on: Wed, 23 January 2019, 05:09:44 »
After finally installed my BT controller 2 weeks ago.
It's my first attempt trying to connect my HHKB with BT Controller via bluetooth to my ThinkPad and to my iPad, here are some issues, perhaps it's just the instant of my settings or my controller:

- Connection is successful, but upon successful connection, the keyboard can make no input at all, same for both iPad and ThinkPad
- After putting the switch back towards the closer-to-LEDs position and plugging in the keyboard to the USB-cable again, the computer gives from time to time "USB Device Not Recognized" warnings despite the keyboard is working.

For those who have experience of using the BT Controller with iPad, please let me know how you connect.
And please let me know what can be done to make it works.
Wishlist: 1) nice thick Alps caps; 2) Cherry profile POM;
More
Wishful-list: 1) We order from keyboard-layout-editor.com; 2) usable Trackpoint module for all keyboards
IBM M13 black
NeXT non-ADB keyboard (AAE)
HHKB Pro 2 HasuBT
[~90WPM, in love with Emacs, and Lisp]

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] HHKB Alt Controller
« Reply #562 on: Wed, 23 January 2019, 05:49:32 »
Didn't TROUBLESHOOT section in first post help?
Your first issue sounds like exactly what it describes. I think you flashed firmware for USB controller for some reason.
As for Second one I have no clear idea but improper firmware may also causes perhaps.

Offline menuhin

  • Posts: 1225
  • Location: Germany
Re: [TMK] HHKB Alt Controller
« Reply #563 on: Wed, 23 January 2019, 06:15:21 »
Didn't TROUBLESHOOT section in first post help?
Your first issue sounds like exactly what it describes. I think you flashed firmware for USB controller for some reason.
As for Second one I have no clear idea but improper firmware may also causes perhaps.

My bad...
I did visit that page, but it looks like a lot of point and click, so I worked on the files from Git Pull and compile the hex myself.
Is TMK on Github up-to-date and which file inside /keyboard should I use to compile for HHKB Pro2 BT?
Wishlist: 1) nice thick Alps caps; 2) Cherry profile POM;
More
Wishful-list: 1) We order from keyboard-layout-editor.com; 2) usable Trackpoint module for all keyboards
IBM M13 black
NeXT non-ADB keyboard (AAE)
HHKB Pro 2 HasuBT
[~90WPM, in love with Emacs, and Lisp]

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] HHKB Alt Controller
« Reply #564 on: Wed, 23 January 2019, 06:30:02 »
Refer to 'Build firmware' in MANUAL section for build hex from source. Or download prebuild hex file from proper keymap editor for your controller as the TROUBLESHOOT explain.

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] HHKB Alt Controller
« Reply #565 on: Wed, 23 January 2019, 06:33:35 »
To download prebuild firmware file Use this link of keymap editor for Bluetooth controller fro Pro2.

http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?hhkb_rn42

Offline menuhin

  • Posts: 1225
  • Location: Germany
Re: [TMK] HHKB Alt Controller
« Reply #566 on: Wed, 23 January 2019, 07:44:50 »
Refer to 'Build firmware' in MANUAL section for build hex from source. Or download prebuild hex file from proper keymap editor for your controller as the TROUBLESHOOT explain.

I missed this part... Thanks Hasu!
Quote
make -f Makefile.rn42
Wishlist: 1) nice thick Alps caps; 2) Cherry profile POM;
More
Wishful-list: 1) We order from keyboard-layout-editor.com; 2) usable Trackpoint module for all keyboards
IBM M13 black
NeXT non-ADB keyboard (AAE)
HHKB Pro 2 HasuBT
[~90WPM, in love with Emacs, and Lisp]

Offline Signature

  • master of puppers
  • * Marketplace Moderator
  • Posts: 1914
  • Location: Sweden
  • snoozing
Re: [TMK] HHKB Alt Controller
« Reply #567 on: Tue, 29 January 2019, 18:53:38 »
Congrats on the Linus TechTips shoutout, keep up the good work hasu!  :thumb:
Very busy with studies atm.

Offline Coeurl

  • Posts: 1
Re: [TMK] HHKB Alt Controller
« Reply #568 on: Mon, 04 February 2019, 10:33:50 »
Thanks Hasu for a nice working alt controller :)

Offline livewirerc

  • Posts: 42
  • Location: Austin, TX
Re: [TMK] HHKB Alt Controller
« Reply #569 on: Wed, 20 February 2019, 22:56:45 »
Hasu,
Thank you for these wonderful controller. I have three of them now and they work across all of my windows-based systems, and I've enjoyed being able to re-program the layer layout to more suit my needs.

Today I ran into the first issue I've had, in that I am unable to pair any of my Alt Controller HHKBs with my Fedora laptop. Over USB they work fine, but when I attempt to connect via Bluetooth the connection does not seem to establish itself. Looking at bluetoothctl (output follows) it looks like it is failing to connect, though the device is paired and connected:


[CHG] Device 00:06:66:E9:BB:05 RSSI: -90
[bluetooth]# connect 00:06:66:E9:BB:05
Attempting to connect to 00:06:66:E9:BB:05
Failed to connect: org.bluez.Error.Failed
[bluetooth]# connect 00:06:66:E9:BB:05
Attempting to connect to 00:06:66:E9:BB:05
Failed to connect: org.bluez.Error.Failed
[bluetooth]# connect 00:06:66:E9:BB:05
Attempting to connect to 00:06:66:E9:BB:05
[CHG] Device 00:06:66:E9:BB:05 Connected: yes
[CHG] Device 00:06:66:E9:BB:05 Modalias: bluetooth:v00CDp0066d0100
[CHG] Device 00:06:66:E9:BB:05 UUIDs: 00001124-0000-1000-8000-00805f9b34fb
[CHG] Device 00:06:66:E9:BB:05 UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Device 00:06:66:E9:BB:05 ServicesResolved: yes
Connection successful
[CHG] Device 00:06:66:E9:BB:05 ServicesResolved: no
[CHG] Device 00:06:66:E9:BB:05 Connected: no
[bluetooth]# info 00:06:66:E9:BB:05
Device 00:06:66:E9:BB:05 (public)
   Name: TmkBT-BB05
   Alias: TmkBT-BB05
   Class: 0x000005c0
   Paired: yes
   Trusted: yes
   Blocked: no
   Connected: no
   LegacyPairing: no
   UUID: Human Interface Device... (00001124-0000-1000-8000-00805f9b34fb)
   UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
   Modalias: bluetooth:v00CDp0066d0100
   RSSI: -90
[CHG] Device 00:06:66:E9:BB:05 Connected: yes
[CHG] Device 00:06:66:E9:BB:05 Connected: no

I get similar output across all three boards, but I can immediately connect them to my Windows 7-10 based systems. Any tips would be greatly appreciated, as I've been bashing my head against this issue all evening trying to get one working so I can operate cable-free if I want to.

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] HHKB Alt Controller
« Reply #570 on: Thu, 21 February 2019, 01:35:24 »
My desktop computer is Ubuntu 18.04 with xfce4 desktop environment. I think these
two bluetooth related commands run on my machine, 'bluetoothd' is daemon and
 and 'blueman-applet' is desktop GUI app for bluetooth device management, which takes care of paring and connection/disconnection process.

Make sure you have alternatives on Fedora for these commands.

Quote

$ ps auxwww | grep blue
root      6026  0.0  0.0  37092  3944 ?        Ss   Feb19   0:00 /usr/lib/bluetooth/bluetoothd
noname   15958  0.0  0.0  42340  3548 pts/7    S+   15:44   0:00 bluetoothctl
noname   18387  0.0  0.3 551724 51288 ?        Sl   16:13   0:00 /usr/bin/python3 /usr/bin/blueman-applet
noname   18393  0.0  0.0  84800  6868 ?        Ss   16:13   0:00 /usr/lib/bluetooth/obexd
noname   19123  0.0  0.0  17532  1052 pts/8    S+   16:26   0:00 grep blue



I never used bluetoothctl so far and not sure how to use this command, to be honest. Anyway, this is output from my ubuntu. I can connect controller successfully using scan, pair, trust and connect commands.

Quote
[bluetooth]# scan on
Discovery started
[CHG] Controller 00:09:DD:40:40:7B Discovering: yes
[NEW] Device 00:06:66:F7:23:9F TmkBT-239F
[CHG] Device 00:06:66:F7:23:9F RSSI: -80
[bluetooth]# pair 00:06:66:F7:23:9F
Attempting to pair with 00:06:66:F7:23:9F
[CHG] Device 00:06:66:F7:23:9F Connected: yes
Request confirmation
[TmkB1m[agent] Confirm passkey 048541 (yes/no): yes
[CHG] Device 00:06:66:F7:23:9F Modalias: bluetooth:v00CDp0066d0100
[CHG] Device 00:06:66:F7:23:9F UUIDs: 00001124-0000-1000-8000-00805f9b34fb
[CHG] Device 00:06:66:F7:23:9F UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Device 00:06:66:F7:23:9F ServicesResolved: yes
[CHG] Device 00:06:66:F7:23:9F Paired: yes
Pairing successful
[CHG] Device 00:06:66:F7:23:9F ServicesResolved: no
[CHG] Device 00:06:66:F7:23:9F Connected: no
[CHG] Device 00:06:66:F7:23:9F RSSI: -66
[bluetooth]# connect 00:06:66:F7:23:9F
Attempting to connect to 00:06:66:F7:23:9F
[CHG] Device 00:06:66:F7:23:9F Connected: yes
Connection successful
[CHG] Device 00:06:66:F7:23:9F ServicesResolved: yes
[TmkBT-239F]# info
Device 00:06:66:F7:23:9F (public)
        Name: TmkBT-239F
        Alias: TmkBT-239F
        Class: 0x000005c0
        Paired: yes
        Trusted: no
        Blocked: no
        Connected: yes
        LegacyPairing: no
        UUID: Human Interface Device... (00001124-0000-1000-8000-00805f9b34fb)
        UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
        Modalias: bluetooth:v00CDp0066d0100
        RSSI: -66
[bluetooth]# trust 00:06:66:F7:23:9F
[/tt]


Hope this helps somehow.

Offline haskeller

  • Posts: 3
Re: [TMK] HHKB Alt Controller
« Reply #571 on: Thu, 21 February 2019, 09:41:19 »
Anybody meet the question that  hasu controller of hhkb does not work under mac mojave?   (hhkb pro2)  it works well about two days. I try to double shift+p and  delete *bluetooth.plist of mac, but it still does not work.  and update mojave to latest  version is 10.14.3 .  all of these don't play a role.

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] HHKB Alt Controller
« Reply #572 on: Thu, 21 February 2019, 19:24:24 »
Anybody meet the question that  hasu controller of hhkb does not work under mac mojave?   (hhkb pro2)  it works well about two days. I try to double shift+p and  delete *bluetooth.plist of mac, but it still does not work.  and update mojave to latest  version is 10.14.3 .  all of these don't play a role.

This post may help you. Removing "/Library/Preferences/com.apple.Bluetooth.plist" file in MacOS and restarting machine seems to be common solution for bluetooth troubles. Let me know your result. Thanks

https://geekhack.org/index.php?topic=71517.msg2655258#msg2655258

And if you flashed firmware(keymap) yourself since your keyboard worked normally, you download default firmeare from proper Keymap Editor and flash it first. Refer to 'TROULBESHOOT' section in first post as well.
« Last Edit: Thu, 21 February 2019, 19:26:08 by hasu »

Offline spencerimp

  • Posts: 2
Re: [TMK] HHKB Alt Controller
« Reply #573 on: Fri, 22 February 2019, 13:25:39 »
Many thanks for hasu for making my HHKB nicer to use. I have an HHKB Pro 2 type S and HASU BT controller for it.

I have two use cases that work perfectly on their own but cannot work at the same time.

1. Edit the keymap to have my preferred key combinations (spacefn-like in my case)
http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?hhkb_rn42

I have to use it using a USB connection.

2. Use Bluetooth

I have to use the default keymap, the custom keymap does not work anymore (connected as Bluetooth device but no key is detected)

Is there any way to use custom keymap while using Bluetooth? Thanks!

Best regards,
Spencer


« Last Edit: Fri, 22 February 2019, 13:28:12 by spencerimp »

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] HHKB Alt Controller
« Reply #574 on: Fri, 22 February 2019, 19:08:23 »
Many thanks for hasu for making my HHKB nicer to use. I have an HHKB Pro 2 type S and HASU BT controller for it.

I have two use cases that work perfectly on their own but cannot work at the same time.

1. Edit the keymap to have my preferred key combinations (spacefn-like in my case)
http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?hhkb_rn42

I have to use it using a USB connection.

2. Use Bluetooth

I have to use the default keymap, the custom keymap does not work anymore (connected as Bluetooth device but no key is detected)

Is there any way to use custom keymap while using Bluetooth? Thanks!

Best regards,
Spencer




Hi Spencer,
Sorry, I cannot understand what your problem is exactly. Could you rephrase it in more detail?

Didn't TROUBLESHOOT and MANUAL section in the first post help you?
https://geekhack.org/index.php?topic=71517.msg1733490#msg1733490

Offline spencerimp

  • Posts: 2
Re: [TMK] HHKB Alt Controller
« Reply #575 on: Sat, 23 February 2019, 00:28:16 »
Hi Hasu,

So basically, I can only use Bluetooth using pre-defined keymap.

When I flash the firmware and reset with a custom keymap, the Bluetooth did not work. Is there any way that I can have a customer keymap without USB connection?

I checked the troubleshooting. I might redo all the steps just to be sure.

[UPDATE]
I just generated custom keymap from scratch and it worked with Bluetooth.
So there was some problem with my initial custom keymap (I started it from others setup).

Spencer
« Last Edit: Sat, 23 February 2019, 01:50:12 by spencerimp »

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] HHKB Alt Controller
« Reply #576 on: Sat, 23 February 2019, 03:18:29 »
Hi Hasu,

So basically, I can only use Bluetooth using pre-defined keymap.

When I flash the firmware and reset with a custom keymap, the Bluetooth did not work. Is there any way that I can have a customer keymap without USB connection?

I checked the troubleshooting. I might redo all the steps just to be sure.

[UPDATE]
I just generated custom keymap from scratch and it worked with Bluetooth.
So there was some problem with my initial custom keymap (I started it from others setup).

Spencer

Great.
I guess you got USB firmware instead of Bluetooth firmware for some reason at some point.


Offline nokidding

  • Posts: 2
Re: [TMK] HHKB Alt Controller
« Reply #577 on: Sat, 23 February 2019, 20:30:24 »
Hi Hasu,

Thanks for your work. I've installed a BT controller to my HHKB and it worked very nice.

I have one question for the controller though that I haven't found any answer online yet. For the BT controller, if I plug the keyboard with a cellphone charger to power/charge the keyboard, is the keyboard powered by the battery or external power?

I am asking this because I might just leave the keyboard plugged for most of the time using BT mode, but I don't want to decrease the life span for the Lipo battery.

Thanks again. Looking forward to your response.

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] HHKB Alt Controller
« Reply #578 on: Sat, 23 February 2019, 20:46:07 »
Yes, you can use the keyboard in bluetooth mode safely with power from external power source like USB port, phone charger, power bank or wall wart adapter. If the external power source can supply enough power, internal battery will not discharge. The charger chip on the controller can manage battery charging under the situation like that, it starts 'trikle charging' to keep battery charged after the battery is fully charged.

Just make sure your cellphone charger has enough power output capacity, 200mA or up is needed.
« Last Edit: Sat, 23 February 2019, 20:52:18 by hasu »

Offline nokidding

  • Posts: 2
Re: [TMK] HHKB Alt Controller
« Reply #579 on: Sat, 23 February 2019, 21:17:46 »
Yes, you can use the keyboard in bluetooth mode safely with power from external power source like USB port, phone charger, power bank or wall wart adapter. If the external power source can supply enough power, internal battery will not discharge. The charger chip on the controller can manage battery charging under the situation like that, it starts 'trikle charging' to keep battery charged after the battery is fully charged.

Just make sure your cellphone charger has enough power output capacity, 200mA or up is needed.

Thank you for your timely response. Love it.

Offline woppa

  • Posts: 3
Re: [TMK] HHKB Alt Controller
« Reply #580 on: Mon, 04 March 2019, 01:09:13 »
Hi hasu, I am from Canada but will be visiting Yokohama and Tokyo from Mar 27 to Apr 8, can I buy the BT controller for HHKB Pro 2 and the battery when I am there?

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] HHKB Alt Controller
« Reply #581 on: Mon, 04 March 2019, 17:12:00 »
Hi hasu, I am from Canada but will be visiting Yokohama and Tokyo from Mar 27 to Apr 8, can I buy the BT controller for HHKB Pro 2 and the battery when I am there?

Hi woppa,
Canada Post have worked well without serious delays for months, not bad as they had been. So shipping to Canada from Japan is reasonable option for now and it takes usually 10-20 days.

Of course, I can send to address in Japan and charge 6USD, it usually takes a day or two for domestic delivery. I can't offer face-to-face transaction unfortunately at this time, btw.

I don't have battery for sale and I don't think you can find suitable battery with good capacity even in Akihabara, picking up battery in Japan is not good idea.

Offline woppa

  • Posts: 3
Re: [TMK] HHKB Alt Controller
« Reply #582 on: Tue, 05 March 2019, 08:23:46 »
Thanks for the reply hasu, I will order it when I return to Canada then.

I've got two questions-

1. I'm perfectly happy with the default HHKB keyboard.  I don't need any remapping functions.  Only reason why I want to get the BT controller is to make it wireless for use in my living room.  Is the BT controller still the best solution?

2. I read on many pages back that the BT controller may interfere with other BT devices causing lag/malfunction, is this still true?  In the same living room I will be using bluetooth headphones, ps4 controller, and a logitech G403 wireless mouse.


Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] HHKB Alt Controller
« Reply #583 on: Tue, 05 March 2019, 10:42:07 »
woppa,
1. I guess so if you don't want to use cable and can bear with battery life.
2. In general I can't do anything in hardware/software against interference. As far as I know Blutooth module used in this converter is not problematic and doesn't interfere something in particular.
Can you give link to the post you are refering?

Offline woppa

  • Posts: 3
Re: [TMK] HHKB Alt Controller
« Reply #584 on: Tue, 05 March 2019, 20:40:10 »
woppa,
1. I guess so if you don't want to use cable and can bear with battery life.
2. In general I can't do anything in hardware/software against interference. As far as I know Blutooth module used in this converter is not problematic and doesn't interfere something in particular.
Can you give link to the post you are refering?

This is the post I was referring to

https://geekhack.org/index.php?topic=71517.msg2385361#msg2385361

His setup is similar to mine

Offline DSlayerZX

  • Posts: 28
Re: [TMK] HHKB Alt Controller
« Reply #585 on: Sat, 16 March 2019, 21:55:44 »
Hello,
        Just want to make sure I got this right.

Say, on the same Key, if Layer 0 is '1'  and layer 1 is 'F1'

in the configurator, I can set something like...

Action_layer_tap_key |   1    |    layer 1   

to make it a short press into '1'

and long press into 'F1', right?
« Last Edit: Sat, 16 March 2019, 22:00:29 by DSlayerZX »

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] HHKB Alt Controller
« Reply #586 on: Sat, 16 March 2019, 22:19:38 »
Hello,
        Just want to make sure I got this right.

Say, on the same Key, if Layer 0 is '1'  and layer 1 is 'F1'

in the configurator, I can set something like...

Action_layer_tap_key |   1    |    layer 1   

to make it a short press into '1'

and long press into 'F1', right?

No, that sends '1'  by short press and activates Layer1 by long press.
https://github.com/tmk/tmk_core/blob/master/doc/keymap.md#224-momentary-switch-with-tap-key

You can't assign two normal keys on same key like that.

Offline DSlayerZX

  • Posts: 28
Re: [TMK] HHKB Alt Controller
« Reply #587 on: Sat, 16 March 2019, 23:22:50 »
ah man, really wish we can do that XD

thanks for the help though

Offline DSlayerZX

  • Posts: 28
Re: [TMK] HHKB Alt Controller
« Reply #588 on: Fri, 22 March 2019, 12:31:35 »
Hasu, I probably should have followed up. So... is there any way to assign two normal keys to the same key via tapping/hold?


Hello,
        Just want to make sure I got this right.

Say, on the same Key, if Layer 0 is '1'  and layer 1 is 'F1'

in the configurator, I can set something like...

Action_layer_tap_key |   1    |    layer 1   

to make it a short press into '1'

and long press into 'F1', right?

No, that sends '1'  by short press and activates Layer1 by long press.
https://github.com/tmk/tmk_core/blob/master/doc/keymap.md#224-momentary-switch-with-tap-key

You can't assign two normal keys on same key like that.

Offline DSlayerZX

  • Posts: 28
Re: [TMK] HHKB Alt Controller
« Reply #589 on: Sun, 31 March 2019, 04:02:16 »
nevermind, found the issue and able to compile them now.  (was running into some system lib issue
« Last Edit: Sun, 31 March 2019, 05:12:10 by DSlayerZX »

Offline nathanchere

  • Posts: 707
Re: [TMK] HHKB Alt Controller
« Reply #590 on: Mon, 01 April 2019, 06:16:17 »
Can anyone recommend the largest capacity battery they've managed to get inside the case while still keeping it flush? I've bought 2 now which were supposed to fit but the 2200mah one didn't work at all and the 2500mah one worked but left the case not quite closing properly. Preferably something available within EU, but don't mind ordering from China/etc if needed.

Offline menuhin

  • Posts: 1225
  • Location: Germany
Re: [TMK] HHKB Alt Controller
« Reply #591 on: Mon, 01 April 2019, 12:51:33 »
Can anyone recommend the largest capacity battery they've managed to get inside the case while still keeping it flush? I've bought 2 now which were supposed to fit but the 2200mah one didn't work at all and the 2500mah one worked but left the case not quite closing properly. Preferably something available within EU, but don't mind ordering from China/etc if needed.

From the OP of Hasu, buried under "bluetooth battery":
Quote
- ebay 2600mAh - http://www.ebay.com/itm/261625368941?afsrc=1&rmvSB=true
    Note that you will need to rewire and crimp JST PH connector yourself.
    https://geekhack.org/index.php?topic=12047.msg1946831#msg1946831
Wishlist: 1) nice thick Alps caps; 2) Cherry profile POM;
More
Wishful-list: 1) We order from keyboard-layout-editor.com; 2) usable Trackpoint module for all keyboards
IBM M13 black
NeXT non-ADB keyboard (AAE)
HHKB Pro 2 HasuBT
[~90WPM, in love with Emacs, and Lisp]

Offline nathanchere

  • Posts: 707
Re: [TMK] HHKB Alt Controller
« Reply #592 on: Tue, 02 April 2019, 08:14:50 »
Great, thanks :)
Using that same model number, I also found these if anyone else is interested and dislikes eBay as I do:
https://www.aliexpress.com/item/5-pcs-3-7V-2600mAh-785251-polymer-lithium-rechargeable-li-ion-battery-LPIB-for-GPS-DVD/32857156790.html

Offline KebinPls

  • Posts: 137
  • Location: Providence, RI
  • OK
    • Insta
Re: [TMK] HHKB Alt Controller
« Reply #593 on: Wed, 03 April 2019, 13:48:03 »
Anyone else have an issue where their battery won't charge? Polarity was always correct and the battery was charging without fail for some time, and now it is not charging at all. I replaced the battery, just in case that was the issue, but it is not. The controller ran of whatever charge the new battery had, but will no longer charge it.

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] HHKB Alt Controller
« Reply #594 on: Wed, 03 April 2019, 19:23:33 »
Anyone else have an issue where their battery won't charge? Polarity was always correct and the battery was charging without fail for some time, and now it is not charging at all. I replaced the battery, just in case that was the issue, but it is not. The controller ran of whatever charge the new battery had, but will no longer charge it.

Could you post pics of your old and new battery and controller? It may help to find any clue or something to solve.

Does BAT LED(right one in the pic) turn red(orange) when hooking up to USB? It should appear orange(green+red) during it charges battery.


If USB power line voltage is low it won't be able to charge battery. Try some USB ports directly on PC.

It is possible that battery charger chip is broken for some reason. I had a few users that burned battery charger chip with connecting battery in reverse polarity. For other scenario, the chip stands only upto 7V accroding to its datasheet and I wildly guess some AC adapter with USB port for phone and bad Type-C cable may supply high voltage. Though, I've not heard that case so far.

Did you use Type-C port or AC adapter for charge at some point perhaps?

EDIT: For future reference, using decent Type-C cable and 5V AC adapter with the bluetooth controller is safe, of course.
« Last Edit: Wed, 03 April 2019, 19:26:40 by hasu »

Offline KebinPls

  • Posts: 137
  • Location: Providence, RI
  • OK
    • Insta
Re: [TMK] HHKB Alt Controller
« Reply #595 on: Thu, 04 April 2019, 11:42:10 »
https://imgur.com/a/ItL9zOx

It was working, and then one day it was not. Nothing changed, always used the USB port directly on my macbook and directly on my PC. Never used a type C port or a portable charger. The batteries were always connected the proper way, and the connector makes it almost impossible to plug in incorrectly. The replacement battery I received worked to power the bluetooth chip, but it could never charge.

I'd honestly just like a refund or a replacement at this point, unless there is a warranty to ship this one out to be looked at for repair. Just kinda sad to be out 85 dollars.

Purchased through 1upkeyboards
« Last Edit: Thu, 04 April 2019, 11:45:59 by iKevinFtw »

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] HHKB Alt Controller
« Reply #596 on: Thu, 04 April 2019, 16:29:08 »
https://imgur.com/a/ItL9zOx

It was working, and then one day it was not. Nothing changed, always used the USB port directly on my macbook and directly on my PC. Never used a type C port or a portable charger. The batteries were always connected the proper way, and the connector makes it almost impossible to plug in incorrectly. The replacement battery I received worked to power the bluetooth chip, but it could never charge.

I'd honestly just like a refund or a replacement at this point, unless there is a warranty to ship this one out to be looked at for repair. Just kinda sad to be out 85 dollars.

Purchased through 1upkeyboards

Fair enough. Contact 1upkeyboards for replacement or refund.

EDIT: you can refer to this post to explain to them. Thank you.
« Last Edit: Thu, 04 April 2019, 16:45:54 by hasu »

Offline nathanchere

  • Posts: 707
Re: [TMK] HHKB Alt Controller
« Reply #597 on: Tue, 09 April 2019, 08:37:42 »
No plan on USB-C, HHKB case is not compatible with Type-C unless you are willing to file connector hole.

I would be more than willing to file away the connector hole to accommodate a USB-C connector.
Not quite so willing to do the soldering and risk ruining an otherwise good replacement PCB :P

Offline yangdigi

  • Posts: 79
  • Location: China
Re: [TMK] HHKB Alt Controller
« Reply #598 on: Sat, 13 April 2019, 05:16:29 »
hi, hasu. I am making that ble version and firstly big thanks for your work on it.
I have a question that how you confirmed the hhkb should work with 5v. Maybe I can get some advice from you.
I used 5v at the beginning. But some day I just wanted to (maybe just want to find something to do) have a try how low the voltage can be when it works. I found that it can work with 3.3v.  Then I began to make new version and test with it. Yes, it works fine with both my HHKB Pro2 and JP(both type-s). Pro2 is already daily used for 13 days(without charging).

here is the 6th ver I made. It still keep 5v on it. But if it realy works well with only 3.3v, I may remove the 5v part next version.
BTW, FC660C works with only 3.3v well too.
217141-0

I will post more infomation after it is done.

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 3471
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] HHKB Alt Controller
« Reply #599 on: Sat, 13 April 2019, 22:33:17 »
Great. Working with 3.3V is promissing, I thought HHKB working with 3.3V is out of the spec from datasheet, but I may be wrong.

Let us know your repo or site if you can make your firmware and design public!
I'm looking forward to looking your work.