geekhack

geekhack Marketplace => Artisan Services => TMK Keyboard Service => Topic started by: hasu on Fri, 01 May 2015, 00:44:13

Title: [TMK] HHKB Alt Controller with Mini-B/Type-C connector
Post by: hasu on Fri, 01 May 2015, 00:44:13
This Alt controller board replaces stock controller and makes your HHKB full programmable. The controller is fully assembled and you can install it into your HHKB only with screw driver.

For more technical information see also this thread. https://geekhack.org/index.php?topic=12047.0

Bluetooth and USB controller look like these.
(http://i.imgur.com/tFsUcpdm.jpg?1) (http://i.imgur.com/tFsUcpd.jpg?1)(http://i.imgur.com/T1TZEISm.jpg?1) (http://i.imgur.com/T1TZEIS.jpg?1)

Note: In current revision pcb color is green. Battery is not included.

HHKB Pro1(PD-KB300*), HHKB Pro2(PD-KB400*) and HHKB ProJP(PD-KB420*) including Type-S are supported.

Note that HHKB ProBT(PD-KB600/620), HHKB Pro Classic(PD-KB401), HHKB Pro Hybrid(PD-KB800/820) and HKKB Lite(PD-KB200/220) are NOT supported.



CONTROLLER VARIANTS:
Bluetooth controllers are out of stock due to scarcity of bluetooth module in the market since March 2022. Only USB controllers are available at this time. 2022-09-26

Bluetooth controllers are available. The controller is assembled after your payment and it takes a week or two to be shipped.  2023-05-30

 - Mini-B USB Controller for Pro1 [42USD]
 - Mini-B USB Controller for Pro2 [44USD]
 - Mini-B USB Controller for ProJP [46USD]
 - Mini-B Bluetooth Controller for Pro2 [77 81USD]
 - Mini-B Bluetooth Controller for ProJP [79 83USD] (Check CAVEAT below before ordering this variant)
NOTE: Mini-B controllers have reliable Hirose USB connector as Topre original controller does.

 - Type-C USB Controller for Pro1 [44USD]  New!(2023-11-28)
 - Type-C USB Controller for Pro2 [46USD]
 - Type-C USB Controller for ProJP [48USD]
 - Type-C Bluetooth Controller for Pro2 [79 83USD]
 - Type-C Bluetooth Controller for ProJP [81 85USD] (Check CAVEAT below before ordering this variant)
NOTE: The Type-C connector comes cheap from obscure Chinese manufacturer, not from established manufacturers like Molex, TE, Hirose or etc. It is unclear about long-time reliablility and durability. But it has worked as expected and got no serious trouble report from users so far.  I mean, you can take Type-C controller if you prefer. It doesn't seem to be too risky now.

Pro1 controller supports all PD-KB300* modles.
Pro2 controller supports all PD-KB400* models including Type-S.
ProJP controller supports all PD-KB420* models including Type-S.
Note that HHKB ProBT(PD-KB600/620), HHKB Pro Classic(PD-KB401), HHKB Pro Hybrid(PD-KB800/820) and HKKB Lite(PD-KB200/220) are NOT supported.

NOTE: Bluetooth controller has all functions of USB controller including USB connection.
NOTE: Bluetooth controller doesn't include battery. See 'Bluetooth Battery' in 'MANUAL' section below for suitable Lipo battery spec.

CAVEAT for Bluetooth Controller for ProJP
More

1. Case problem with Bluetooth Controller for ProJP
See this photo, black one is ProJP model and white is Pro2. As you can see ProJP bottom case has no hole for switch and LEDs.
(http://i.imgur.com/ssX7mLq.jpg)
(http://i.imgur.com/p2tiCut.jpg)

To install Bluetooth controller into HHKB ProJP:
1) you need to drill bottom case to make holes or
2) you can use Pro2 bottom half with ProJP top half as the photo indicates.

2. Japanese specific keys cannot be sent via Bluetooth.
You can remap them to other normal keys. This won't be critical to other language users. See also LIMITATION section below.




STATUS & STOCK:
All variants of the controller are virtually always in stock. (2023-11-28)

Lead time: Can be shipped usually in a few bussiness days for express shipping or a week for usual postal shipping.



ORDER
Check this notes (https://geekhack.org/index.php?topic=105442.0) for current shipping situation and cost under COVID-2019 pandemic before placing an order. 2022-04-12

0. Read this post carefully and feel free to ask me if you have any question before placing an order.
1. Email me with subject "HHKB Alt" and let me variant of controller and your location in mail body. My email is:hasu@tmk-kbd.com
2. PayPal Invoice will be emailed to you usually in a day.
3. Make sure you supply correct shipping address and recipient name(in English form) on PayPal when its payment. Email me your shipping info if not possible.
4. You will receive an email with tracking number from Japan Post or me after shipping. Let me know if you don't get tracking number in a week after payment.

Payment:
    With PayPal Invoice you can make a payment with credit card even if you don't have PayPal account.

Shipping:
    Check this notes (https://geekhack.org/index.php?topic=105442.0) for current shipping situation and cost

    You can trace postal packet here or your country's postal service like USPS.
    https://trackings.post.japanpost.jp/services/srv/search/input?locale=en (Japan Post)
    https://tools.usps.com/go/TrackConfirmAction_input (USPS)





AFTER RECEIVING YOUR CONTROLLER
PLEASE TEST IT BEFORE FLASHING YOUR OWN FIRMWARE.
Just install it and check if you can type on your keyboad normally.
(For Bluetooth controller user, you can check both USB and Bluetooth function safely even without battery.)

WARN: PLEASE MAKE SURE BATTERY POLARITY BEFORE CONNECTING. Some batteries in the market has reverse polarity at connector and it will fry and break battery charger chip. With the broken charger chip you cannot charge battery fully anymore or controller may stop working completely. I can offer free repair service for faulty charger chip but you have to pay postage for both ways. No RMA service is provided for this, sorry.
Positive(+) side or red wire should be on left as the pic shows.
(http://i.imgur.com/Yzn9ivNh.jpg)
See "Bluetooth Battery" section below for more info. Get battery from reliable srouces like sparkfun or adafruit if you are not sure.



KEYMAP EDITOR:
You can remap keys and download firmwre using TMK keymap editor on web browser. Please use Chrome if you have any problem on other browser. See 'MANUAL' section below for how to flash firmware onto controller.
(http://i.imgur.com/xuEAwQv.png)

NOTE: Use proper link to download firmware for your controller. There are four diffrent variants and they are incompatible each other.

USB for Pro1/Pro2 (http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?hhkb) | Bluetooth for Pro2 (http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?hhkb_rn42) | USB for ProJP (http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?hhkb_jp) | Bluetooth for ProJP (http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?hhkb_jp_rn42)



FIRMWARE SOURCE CODE:
Use KEYMAP EDITOR to download compiled firmware unless you have specific need.

Firmware source code is available under GNU General Public License. To build firmware from source code consult documentation there.

https://github.com/tmk/tmk_keyboard/tree/master/keyboard/hhkb



CAPABILITY
- Fully Prorammable keyboard functions(USB and Bluetooth)
    TMK firmware offers various features including key mapping, mouse keys and USB NKRO.
    See https://github.com/tmk/tmk_keyboard
- Switching between USB and Bluetooth(Bluetooth)
    You can switch the two connections with slide switch or key combination.
- RN42 config mode(Bluetooth)
    You can change power/connection configuration of the module if needed.
- Low battery alert(Bluetooth)
    Red LED turns on when low voltage.
- RN42 status indicator(Bluetooth)
    LED indicates status of Bluetooth connection.
- Pairing(Bluetooth)
    The module stores up to 8 connections.
- Auto connect(Bluetooth)
    The module connects the last connected device automatically.
- iOS support(USB and Bluetooth)
    works as keyboard with iPhone5. No tested completely. Note that iOS doesn't accept mouse device.
- Android support(USB and Bluetooth)
    works as keyboard and mouse with Nexus5. No tested completely.
- Battery charging(Bluetooth)
    You can charge from USB port or power adapter which has USB outlet.



LIMITATION & CAVEAT
- Class 2 Bluetooth 2.1 + EDR(Bluetooth controller only)
    Bluetooth module which Bluetooth controller uses is RN42 of Mcirochip:   
    http://www.microchip.com/wwwproducts/Devices.aspx?product=RN42

- Bluetooth module RN42 limitations(Bluetooth controller only)
  See this for detail. https://github.com/tmk/tmk_keyboard/issues/322#issuecomment-204133554
  = Japanese and Korean specific keys are not supported
        Bluetooth module RN42 cannot send HID keyboard usage more than 0x65. This won't affect most of latin language users. On USB connection all keyboard usages can be sent.
  = Mouse button 4,5(BTN4, BTN5) and horizontal wheel not supported
        Mouse button1,2,3(left, right, middle) and vertical wheel are supported. https://github.com/tmk/tmk_keyboard/issues/322
  = NKRO does not work on Bluetooth
        Bluetooth is 6KRO like normal keyboards. https://github.com/tmk/tmk_keyboard/issues/169
  = System control is not supported
        It can't send Power, Wake and Sleep keys.

- No USB Hub(USB and Bluetooth controller)
    Controller has no USB Hub fucntion, you lose two USB downstream ports and they turn into just two empty holes on HHKB Pro2.

- Short battery life(Bluetooth controller only)
    Around 12 hours with 850mAh.
    Around 30 hours with 2600mAh.
    BT Controller needs to use battery power to scan HHKB key matrix and get minimum latency on Bluetooth. If you don't mind slow scan rate and latency you can make battery life a little longer but not so much, HHKB and the module is power hog in the end.

- Lipo Battery is not included(Bluetooth controller only)
    Lipo battery is not included. And it cannot be shipped from Japan due to regulations.
    You have to purchase battery for BT controller, see Bluetooth Battery section below for the detail.

- LIPO BATTERY IS VERY DANGEROUS(Bluetooth controller only)
    TAKE EXTRA CARE OF YOUR SAFETY AND PROPERTY. You can learn here (https://learn.adafruit.com/li-ion-and-lipoly-batteries).

- Karabiner doen't recognize Bluetooth inputs on Mac(Bluetooth controller only)
    Key strokes from Bluetooth are ignored by default. To make Karabiner recognize them enable option 'Allow devices which Vendor ID and Product ID are zero.'.
    See this issue. https://github.com/tmk/tmk_keyboard/issues/213#issuecomment-102579416




DISCLAIMER:
USE AT YOUR OWN RISK. I can not be liable for any damage.
NO FRIENDLY CUSTOMER SUPPORT. You are required to teach yourself first.
NOT PROFESSIONAL JOB. I'm not a professional.
NOT LEAD FREE. I use leaded solder to assemble.



NOTE:
- how to change Bluetooth name
More
https://geekhack.org/index.php?topic=71517.msg2478134#msg2478134
The name 'TmkBT-XXXX' is stored actually in Bluetooth module RN42 and you can change 'TmkBT' part while '-XXXX' part is not configurable and it is last 4digits of bluetooth address.
You can change this line, build and upload firmware.

You can change the name by editing this line then build and upload firmware.
https://github.com/tmk/tmk_keyboard/blob/master/keyboard/hhkb/rn42/rn42_task.c#L160

And you have to initialize RN42 module with LShift+RShift+ScrollLock(Fn+O). The intialization is nedeed just once after firmware is updated.  Refer to 'MANUAL of Bluetooth Controller' below.



REVISIONS:
More
ALL REVISIONS HAS NO ERRATA FOR USB CONTROLLER
Rev.A: 2013/06
Rev.B: 2014/03
Rev.C: 2014/08
Rev.D: 2014/10  Fix for Bluetooth https://geekhack.org/index.php?topic=56494.msg1541485#msg1541485 (https://geekhack.org/index.php?topic=56494.msg1541485#msg1541485)
Rev.E: 2014/11  Fix for Bluetooth https://geekhack.org/index.php?topic=56494.msg1556749#msg1556749 (https://geekhack.org/index.php?topic=56494.msg1556749#msg1556749)

NO ERRATA found for following revisions
Rev.F: 2014/12
Rev.F(batch2): 2015/01
Rev.G: 2015/03 https://geekhack.org/index.php?topic=56494.msg1675635#msg1675635
Rev.H: 2015/07 Fix thermal releif spokes for reset/program button
Rev.I: 2015/12 Changed USB mini-B connector SMT to TH
Rev.J 2016/01 Removed C13 and added logo on silk layer



RESOURCES:
TMK firmware supports the controller and provides various features for the keyboard. You can use the features fully by building your own firmware from source codes. See following links for the detail.
More
https://github.com/tmk/tmk_keyboard
https://geekhack.org/index.php?topic=41989.0

Design files, source codes and the detail of the controller are available.
More
https://geekhack.org/index.php?topic=12047.0 (https://geekhack.org/index.php?topic=12047.0)
https://github.com/tmk/HHKB_controller (https://github.com/tmk/HHKB_controller)
https://github.com/tmk/tmk_keyboard/tree/master/keyboard/hhkb (https://github.com/tmk/tmk_keyboard/tree/master/keyboard/hhkb)



OTHER INFO:
Old GB thread: https://geekhack.org/index.php?topic=56494.0
Cover for USB Hub hole by alienman82: https://geekhack.org/index.php?topic=12047.msg1754098#msg1754098
Cover for USB Hub hole and Qi charger by manisteinn: https://geekhack.org/index.php?topic=12047.msg1558708#msg1558708
Cover by RavenIl: reddit post (https://www.reddit.com/r/MechanicalKeyboards/comments/4i5a4z/modification_designing_a_little_cover_for_those/)



TROUBLESHOOT:
First of all, Use default firmware to test your hardware.
Note that there are four variants of controller fimware. Dowload proper firmware from Keymap Editor without editing keymap and flash it when you are in trouble.
USB for Pro1/Pro2 (http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?hhkb) | Bluetooth for Pro2 (http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?hhkb_rn42) | USB for ProJP (http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?hhkb_jp) | Bluetooth for ProJP (http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?hhkb_jp_rn42)


Bluetooth:
Check 'Bluetooth controller' of MANUAL section below, first.

Flash default firmware if you have problem after flashed firmware yourself.
Download firmware from Keymap Editor without editing keymap: Bluetooth for Pro2 (http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?hhkb_rn42) | Bluetooth for ProJP (http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?hhkb_jp_rn42)

Controller can connect but doesn't register at all on Bluetooth while does on USB?
You are using firmware for *USB* controller(not Bluetooth) perhaps. With the wrong firmware Bluetooth controller works completely on USB while it doesn't register any keys on Bluetooth but it can still connect with computer. Use proper Bluetooth firmware for your controller, download from Keymap Editor you can find above.


How to connect
Try following steps when you are in trouble.

1. Turn on blueooth on keyboard by slide switch on controller.
2. Turn on blueooth on your computer, and remove/disconnect keyboard if it is already paired/connected.
3. Press Left Shift, Right Shift and P on keyboard to remove pairing infos. You should see red BT LED blinking at this time and it indicates that your keyboard is discoverable from computer now.
4. Add keyboard on computer. These may help:
https://support.microsoft.com/en-us/help/15290/windows-connect-bluetooth-device
https://support.apple.com/guide/mac-help/connect-a-bluetooth-device-blth1004/mac
 
Computer cannot find/connect bluetooth controller?
Try 'How to connect' above.

Have repeated or random key intput?
Try 'How to connect' above.
If you are using developer preview vesion of Windows or MacOS you may have weird problem on bleutooth. Some people had to update drivers, fix/remove OS configuration files or etc. Stay on stable realse or you will have to search solution yourself on the net.

Have bluetooth trouble in MacOS?
First, make sure you have correct firmware for Bluetooth controller, see entry above. Try removing '~/Library/Preferences/com.apple.Bluetooth.plist', '/Library/Preferences/com.apple.Bluetooth.plist' or both then reboot your Mac. You will have to do pairing process with all your devices again after this. This seems to be common solution for bluetooth trouble on MacOS. Refer to following links as well.
https://macpaw.com/how-to/fix-macos-mojave-problems#part4
https://www.macrumors.com/how-to/reset-mac-bluetooth-module/


Still have problem and heed help?
Post your problem on this thread to share with the community!



MANUAL:
Firmware/Keymap
More
Keymap Editor
You can try HHKB keymap editor first. You can download pre-build firmware after editing your keymap. Some features are not available but it is easy to use.

http://www.tmk-kbd.com/tmk_keyboard/editor/index.html

(http://i.imgur.com/EMUwuYz.png) (http://i.imgur.com/EMUwuYz.png)

Build firmware
If Keymap Editor is not enough it is time to edit source codes and build firmware yourself.

https://github.com/tmk/tmk_keyboard/wiki#build-firmware
https://github.com/tmk/tmk_keyboard/tree/master/keyboard/hhkb

In short,
Code: [Select]
$ cd keyboard/hhkb

and
Code: [Select]
make -f Makefilefor USB controller

Code: [Select]
$ make -f Makefile.rn42for Bluetooth controller


Flash Firmware
More
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


Installation
More
There is good instruciton video. Thank you Tech Intake!

1. Unscrew three bolts on bottom and open case carefully not to damage cables.
(http://i.imgur.com/xHCuHo9l.jpg?1) (http://i.imgur.com/xHCuHo9l.jpg?1)

2. Unscrew bolt at top right on board first and then unmate connector to remove original board.
Note that you don't need any tool to unmate. See this (https://geekhack.org/index.php?topic=12047.msg1543860#msg1543860).
(http://i.imgur.com/8PsFj8a.jpg) (http://i.imgur.com/8PsFj8a.jpg)

3. Mate with connector of Alt board firmly and screw.
For Bluetooth: Also connect Lipo battery to board. Battery should be fixed with double sided adhesive tape or something but too strong stickyness may deform and damage battery when you remove it.
(http://i.imgur.com/tFsUcpd.jpg?1) (http://i.imgur.com/tFsUcpd.jpg?1)

4. Close case and scew bolts.
Make sure ferrite core on cables are placed right position like pic above beore screwing, otherwise It won't close decently.


Bluetooth Controller
More
(http://i.imgur.com/1kD9tnel.jpg) (http://i.imgur.com/1kD9tnel.jpg)

BT Switch
This turn on Bluetooth function of controller and switch keyboard into Bluetooth mode. When this switch is off keyboard works in USB mode.

BT LED
It lights red when Bluetooth is connected to host, blinks red(once per second) when waiting for connection and blinks red(10 times per second) when Bluetooth module is config mode.

BAT LED
When keyboard are powered with USB it lights green if battery is fully charged or ligths red if charging. And it lights red to alarm for low battery when not powered with USB.

Charging with USB
Lipo battery can be charged when keyboard is powered with USB cable. You can power it with USB port on PC and 5V USB power adapter. Charging battery with low voltage takes long time or can't charge full. Note that cheap or unpowered USB hub may not be able to supply enough power.

Pairing
You can connect keyboard with OS specific method during red BT LED is blinking. You can make up to eight pairing with different hosts, according to manual of RN42.

http://en.wikipedia.org/wiki/Bluetooth#Pairing_and_bonding (http://en.wikipedia.org/wiki/Bluetooth#Pairing_and_bonding)

You cannot pair with new host during keyboard is connected to a host. To pair with new host you have to disconnect by turning off the host's Bluetooth radio, removing pairing info from the host, keeping away enough to make its radio unreachable or use magic command 'p' to remove pairing info from keyboard.


Auto Connect
Keyboard is automatically connected to host once pairing process is done. Keyboard is always connected host to which keyboard connected last time.
This means you can't connect keyboad to other hosts when the last host are in reachable range. In this case you will have to make keyboard into pairing mode forcibly using magic command 'p' and redo pairing process.

Also see this post (https://geekhack.org/index.php?topic=71517.msg2644252#msg2644252).

Magic commands
Prefix of magic command are LShift + RShift.

- i displays Bluetooth information on hid_listen (https://www.pjrc.com/teensy/hid_listen.html) console.
- b displays battery voltage on console.
- Delete enter/exits Bluetoot module RN42 config mode on console. See RN42 manual.
- Scroll Lock initializes module with TMK default configuration.
- p put keyboard into pairing mode focibly.  Note that this removes all pairing infos.
- u switches between USB and Bluetooth mode.


RN42 initialize
This is not needed in most cases. You can initialize module as a last resort when you are in trouble and any other method doesn't help. You should follow steps below with special care to prevent the module from being cofigured incompletely or wrongly.

0. Turn BT swich off and unplug USB cable.
1. open hid_listen (https://www.pjrc.com/teensy/hid_listen.html). You can do without it but I recommend strongly.
2. Plug USB cable and wait for keyboard to startup for 5 seconds.
3. Press key combo of LShift+RShift+ScrollLock(Fn+O).
4. Turn BT switch on. You will see output below on hid_listen.
5. Do not touch keyobard until the command completes or for 20 seconds.

Now module is configured with default setting and in pairing mode. You may need extra power cycle for pairing, try BT switch off and on.

Output on hid_listen from initialize command.
Quote
Entering config mode ...
CMD
Ver 6.15 04/26/2013
(c) Roving Networks
ECHO ON
SF,1
AOK
S-,TmkBT
AOK
SS,Keyboard/Mouse
AOK
SM,4
AOK
SW,8000
AOK
S~,6
AOK
SH,003C
AOK
SY,FFF4
AOK
R,1
Reboot!
Exiting config mode ...


RN42 config mode
You need hid_listen to access this mode. You can change configuration of Bluetooth module with this. Don't change baud rate! Never! Firmware will lose access to the modlue and you need to communicate to the module with 3.3V UART adapter hardware to fix this problem.
This may brick your Bluetooth module. Read all documents of RN42 before do this. DO NOT USE IF YOU ARE NOT SURE.

See this for configuration commands.
http://ww1.microchip.com/downloads/en/DeviceDoc/bluetooth_cr_UG-v1.0r.pdf (http://ww1.microchip.com/downloads/en/DeviceDoc/bluetooth_cr_UG-v1.0r.pdf)
And for other documents.
http://www.microchip.com/wwwproducts/Devices.aspx?product=RN42


RN42 Factory Reset
When you make a mess of the module configuration you can do Factory Reset. This resets the module factory default settings.
Quote from manual.
Quote
To reset the module to the factory defaults, GPIO4 should be high on
power-up and then toggle low, high, low, high with a 1 second wait between the transitions.
You can toggle GPIO4 with two pads labeled as "F.RST" in pic below. You can turn it high(ON) by closing the pads with tweezer, paper clip, or screwdriver and low(OFF) by keeping open.
http://i.imgur.com/4FxeD1H.jpg
https://geekhack.org/index.php?topic=71517.msg2131887#msg2131887

After reset you have to initialize the module to use it as Bluetooth keyboard.


Bluetooth Battery
More
Bluetooth Controller doesn't include battery. I confirmed Sparkfun Lipo battery(850mA and 1000mA) but you will be able to find proper batteries at many sites on the net.

You need to use 3.7V Lithium Ion Polymer battery with JST PH 2pin connector and battery protection circuit. Battery space inside HHKB is around 54mm x 50mm and its height is 7mm(or 8mm).
(http://i.imgur.com/7Q1amfP.jpg)
https://geekhack.org/index.php?topic=56494.msg1597883#msg1597883

Confirmed batteries:
- Adafruit 2000mAh recommended - http://www.adafruit.com/products/2011
    https://geekhack.org/index.php?topic=71517.msg1857704#msg1857704
    https://geekhack.org/index.php?topic=71517.msg1948894#msg1948894

- Current 2000mAh battery (https://www.canadarobotix.com/products/2528) on canadarobotix.com doesn't fit into the cavity. (2020-02-19)
   2000mAh 60 x 50 x 5 mm (±1 mm) - http://www.canadarobotix.com/battery-chargers/battery-lithium-2000mah
    https://geekhack.org/index.php?topic=71517.msg2203382#msg2203382

- Sparkfun 850mAh - https://www.sparkfun.com/products/341                         
- Sparkfun 1000mAh - https://www.sparkfun.com/products/339
    https://geekhack.org/index.php?topic=56494.msg1597883#msg1597883
- Sparkfun 2000mAh - https://www.sparkfun.com/products/8483 Not fits.
    https://geekhack.org/index.php?topic=71517.msg2203449#msg2203449

- Adafruit 2500mAh - http://www.adafruit.com/products/328
    It does not fit in the space basically.
    https://geekhack.org/index.php?topic=71517.msg1948894#msg1948894
    You need case modification
    https://geekhack.org/index.php?topic=12047.msg2167066#msg2167066    http://imgur.com/a/vN3Xl
    or bending battery
    https://geekhack.org/index.php?topic=12047.msg2168816#msg2168816    https://imgur.com/a/hQV2Y
    Warn: either way, do it at your own risk, of course.

- 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


Note that some battery connector has reverse polarity. It will fry battery charger chip. Left side should be red wire or positive(+) of battery when plugged as this pic shows.
(http://i.imgur.com/Yzn9ivNh.jpg)
https://geekhack.org/index.php?topic=71517.msg2130903#msg2130903

LIPO BATTERY IS VERY DANGEROUS, TAKE EXTRA CARE OF YOUR SAFETY AND PROPERTY. For your safety check this.
https://learn.adafruit.com/li-ion-and-lipoly-batteries
https://www.sparkfun.com/tutorials/241



UPDATE:
2014/05/01 GB was closed  and moved to artisan service.
2015/08/22 components for next batch were ordered, it will take a few weeks to be delivered.
2015/09/10 waiting for PCB 7-10days
2015/10/07 All components are stocked for all variants now.
2015/11/09 Keymap editor was updated
2016/01/11 Updated keymap editor
2016/04/16 Revised price of USB controller
2016/08/31 New keymap editor: also finally available for ProJP
2016/10/01 out of stock
2016/10/07 back in stock
2017/04/28 All variants are virtually always in stock.
2017/06/06 Added note for shipping to Canada.
2018/09/08 Shipping to Canada is no problem now. Removed caveat.
2019/11/21  Type-C controller is tetatively available.
2021/03/29  Revised shipping rate
2021/04/12 Revised price of controller
2022/01/01 Bluetooth controller is available again.
2022/03/09 Revised price of controller
2022/04/12 Change ORDER instruction
Title: Re: [TMK] HHKB Alt Controller
Post by: FoC_Tow on Tue, 05 May 2015, 20:11:46
Wow I feel honored to be the first one to post here...
First of all, much Congratz on your well deserved artisan thread hasu!  :)

I'm super interested in one of your boards, since Im about to pull the trigger on my first hhkb an knew I would pretty much have to get your controller once I do so...  :thumb:

Does this still work in a 'waiting list style'? (So basically boards get made once a certain number of orders is reached?)

Im still considering weather to go bluetooth or not honestly (tending towards yes), but I would very much be down for one, so if there is a waiting list I would love to be on it! =)
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Tue, 05 May 2015, 20:50:51
Thanks for your interest, FoC_Tow.

No waiting list anymore. Basically I'll make some boards if I have time and retain some extra preassembled controllers for immediate shipment.

Currently two USB controllers and one BT controller are in stock with preassembled and tested. They can be shipped in a few days.

I have also components for 10+ USB and 4 BT controllers so that those can be assembled to meet further orders. Probably lead time will be less than a week.
Title: Re: [TMK] HHKB Alt Controller
Post by: rsadek on Wed, 06 May 2015, 00:44:25
I just ordered my HHKB. And Hasu's board. Chose USB for now, bc I'm hoping the BT stuff will improve over time and that (maybe) I can help:)

I think with some work we can get power saving and battery good enough to last weeks. Switching hosts would be nice too. These sound like they might take a while. So I figured if I really need the BT, maybe just use an external for a while.

Fwiw since FoC_Tow was debating options.

-R
Title: Re: [TMK] HHKB Alt Controller
Post by: duq on Thu, 07 May 2015, 01:12:31
Hasu!

Thanks again! The bluetooth module works flawlessly.

If anyone is interested in buying a USB only PCB please let me know! PM me or check out the post I just posted in the for sale section of Geekhack.

Thank you again Hasu!
Title: Re: [TMK] HHKB Alt Controller
Post by: Frizer on Wed, 13 May 2015, 20:58:06
Do you have an alternative to MHV AVR for the compiler? The link appears to be dead. There are versions out there but the one I tried gave me errors when I  tried to compile my hex file.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 13 May 2015, 21:19:55
You can download GCC compiler from Atmel site.
http://www.atmel.com/tools/atmelavrtoolchainforwindows.aspx

I'll update that link and description of how to install on WIndows later, thank you.
Title: Re: [TMK] HHKB Alt Controller
Post by: Frizer on Thu, 14 May 2015, 17:40:35
Thanks! I got it working. On the cygwin install, which packages are needed?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 14 May 2015, 18:28:09
Probably you need 'make'(under Devel category). I think other general commands are already installed from the begining, like 'sh', 'cp', 'rm' and 'rmdir'.
Title: Re: [TMK] HHKB Alt Controller
Post by: MarkRobbo on Sat, 16 May 2015, 06:51:36
Just installed my controller but have a slight bulge in my case despite screwing it back in and clips being seemingly engaged. There is a plastic Ring around the ribbon cable, where abouts should this sit when folding the cable up against the PCB, the middle?

Edit: seem to have fixed this by pushing it right the way up to the controller like the picture in the top of the OP
Title: Re: [TMK] HHKB Alt Controller
Post by: shrubkeys on Sat, 16 May 2015, 13:55:20
Still waiting until I move into my new place before I play with the BT Controller. Quick question for Hasu: will it still work in USB mode without a battery, or should I make sure I have the battery already when it comes time to install?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sat, 16 May 2015, 18:53:41
Yes you can use BT Controller safely without battery. USB mode works of course and also BT mode works during you give it power with USB cable.
Title: Re: [TMK] HHKB Alt Controller
Post by: AndreaLe on Mon, 18 May 2015, 12:36:39
Dear hasu
thanks for your project. i'm a newbie with hhkb. i will receive my hhkbpro2 direcly from pfu-direct. my friends told me to see your post for modding my hhkb.
i just have some questions, your board helps a default firmware and you says that it can be remap easily.
my question is when i remap it on the sites, i download the firmware, how can i loaded it to the board ?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Mon, 18 May 2015, 19:28:30
Hi,
You can use dfu-programmer or Atmel FLIP to flash(program) the cotroller. The former is command line tool while the latter is GUI application runs on Windows.

See this.
https://github.com/tmk/tmk_keyboard/blob/master/doc/build.md#download-and-install
Title: Re: [TMK] HHKB Alt Controller
Post by: IonutZ on Wed, 20 May 2015, 07:16:49
Hey man, any idea how I can get the rn42 to autoconnect to client? I can pair it just fine, but it won't autoconnect...
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 21 May 2015, 08:19:42
what's your os?
When shipped I configured RN-42 to auctoconnect. It should autoconnect if host OS allows.
Title: Re: [TMK] HHKB Alt Controller
Post by: IonutZ on Thu, 21 May 2015, 08:38:35
what's your os?
When shipped I configured RN-42 to auctoconnect. It should autoconnect if host OS allows.

Mac OS X. The last board I had from you autoconnected just fine. How would I go about configuring it? I saw the rn42 doc but I don't think anything happens when I hit Left Shift + Right Shift. Also, the whole debugging menu and stuff, how are you supposed to access that? I thought I would just open a notepad, and it would start typing the prompt... no?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 21 May 2015, 08:53:35
No, Notepad is not useful to TMK, you have to use PJRC hid_listen command.
https://github.com/tmk/tmk_keyboard#debugging

To get help message press LShift+RShift+h.
You can initialize the module with default setting by pressing LShift+RShift+Scroll Lock. You may have to do this twice.

You can also enter config mode of RN-42 with LShift+RShift+Del but I don't recommend this unless you read its data sheet carefully. You can brick the module accicentaly.


You can't autoconnect, but can you connect it by hand? how do you connect it?
Title: Re: [TMK] HHKB Alt Controller
Post by: IonutZ on Fri, 22 May 2015, 05:55:50
It works when I initiate connection from the laptop to the keyboard.

This is the output when I turn the BT on:

Code: [Select]
Entering config mode ...
CMD
Ver 6.15 04/26/2013
(c) Roving Networks
ECHO ON
SR,Z
AOK
R,1
Reboot!
Exiting config mode ...

However, in docs,
Code: [Select]
SR,Z                // removes all remote addresses for reconnecting.
                    // can be used to connect another host

Maybe I have to turn on SM,6?

Although when I do info:

Code: [Select]
----- RN-42 info -----
protocol: LUFA
force_usb: 0
rn42: OFF
rn42_autoconnecting(): 1
config_mode: 0
USB State: Configured
battery: CHARG
RemoteWakeupEnabled: 1
VBUS: 1
uptime: 00 00:00:16
USB mode
Title: Re: [TMK] HHKB Alt Controller
Post by: IonutZ on Fri, 22 May 2015, 08:57:40
SM,6 did the trick. It is now autoconnecting!!!

EDIT: So after I fixed everything, I figured why not give it a shot reconfiguring from scratch. Got everything to look good, however, about every 5-6 seconds or so, the keyboard disconnects/reconnects to bluetooth.

Any idea which configuration that might be?

EDIT2: Main difference is HID Class 0000 (keyboard) instead of (003C) because I don't plan on using mouse functions.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Mon, 25 May 2015, 20:27:26
Are you tring to optimize module configuration yourself, just for fun?
Or even with default configuration do you have any problem?
Title: Re: [TMK] HHKB Alt Controller
Post by: IonutZ on Mon, 25 May 2015, 20:37:23
This was with rn42 turned to default and changed the settings mentioned above. Should it be SM,4 or SM,6 by the way?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Mon, 25 May 2015, 20:56:18
OK. First, you should revert to TMK default configuration.
1. Open 'hid_listen' in Terminal.app
2. plug-in your HHKB to USB port(keep BT turned off)
3. Press LShift+RShift+h to get Help message on 'hid_listen'(can you see the message?)
4. Press LShift+RShift+Scloll Lock(in fact, LShift+RShift+Fn+o) to initialize the module to default setting.
5. Turn the BT switch on.
6. Just see output on hid_listen. This takes several seconds, don't touch any keys till all commands settles.

You should get exact same following output. If you see corrupt output do above procedure again.
Code: [Select]
    Entering config mode ...
    CMD
    Ver 6.15 04/26/2013
    (c) Roving Networks
    ECHO ON
    SF,1
    AOK
    S-,TmkBT
    AOK
    SS,Keyboard/Mouse
    AOK
    SM,4
    AOK
    SW,8000
    AOK
    S~,6
    AOK
    SH,003C
    AOK
    SY,FFF4
    AOK
    R,1
    Reboot!
    Exiting config mode ...

Then, do pairing on your host again from the begining.


With Google search I found some people are saying PRAM clear and SMC reset cured their Bluetooth problems for some reason.
Did you try those yet?

Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Mon, 25 May 2015, 21:02:23
This was with rn42 turned to default and changed the settings mentioned above. Should it be SM,4 or SM,6 by the way?

It should be 'SM,4' .
I don't remember how 'SM,6' works, to be honest.
Title: Re: [TMK] HHKB Alt Controller
Post by: IonutZ on Mon, 25 May 2015, 22:48:59
Compiled the latest, and threw it onto the board.

Did a lot of testing. This is what I found out. If you use SH,0000 (HID for Keyboard), it will do this 5s reconnect cycle. The only way to avoid this is to use 003C for Keyboard and Mouse. I would consider this a bug. Not anything critical, however, SH,0000 should work because with SH,0000 the BT Host's operating system has specific functionality for dealing with just keyboards.

If you can find a way to fix this, I would be very very grateful <3 :)

Also can you elaborate on SY,FFF4 vs SY,0004 ? Which transmit power is higher? I'd like a lower one that consumes less power (longer battery life).
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Tue, 26 May 2015, 21:42:34
I read module documentation again and found some clues.

As you said 'SH,0000' will work with some mode(SM,6?) but TMK expects the module is working with 'Auto-conect with DTR' mode(SM,4) and use this to disconnect Bluetooth link to host in some situations.

I think you should use 'SH,000c' for keyboard only device with TMK, according to doc "bit 2..0 Indicates number of
paired devices to which the module can recon-nect." and "bit 3 Send output reports over UART.".
The bit 3 is required to control capslock LED on board but not ciritical, but I guess bit 2..0 causes your auto-connect problem.

Use FFF4 for low transmit power.

I think you already download and read this but just for others interested.
http://ww1.microchip.com/downloads/en/DeviceDoc/bluetooth_cr_UG-v1.0r.pdf
Title: Re: [TMK] HHKB Alt Controller
Post by: IonutZ on Wed, 27 May 2015, 08:57:43
I didn't know how to format the HID. Works great with 0003 though! OS recognizes it as keyboard and everything :D:D:D

Beautiful !!!!

(http://imgur.com/cxZgtmK)

Thank you sir.
Title: Re: [TMK] HHKB Alt Controller
Post by: Overside on Sat, 30 May 2015, 17:44:17
Hey Hasu, because your controller doesn't have the USB hubs like the stock controller does, would it work when plugged in an ipad via the camera adapter? Have you tested it?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sat, 30 May 2015, 18:08:28
I think so but not confirmed with Apple camera adapter and the latest iOS. I don't have a genuine cable to test.
I tested my controller with cheap adapter clone and old iOS and it works as keyboard. But the clone cable became unusable sometime ago after iOS update.

You have to use USB controller, BT controller will not work due to battery charger.

Hey Hasu, because your controller doesn't have the USB hubs like the stock controller does, would it work when plugged in an ipad via the camera adapter? Have you tested it?

Title: Re: [TMK] HHKB Alt Controller
Post by: shrubkeys on Sat, 30 May 2015, 21:08:30
I think so but not confirmed with Apple camera adapter and the latest iOS. I don't have a genuine cable to test.
I tested my controller with cheap adapter clone and old iOS and it works as keyboard. But the clone cable became unusable sometime ago after iOS update.

You have to use USB controller, BT controller will not work due to battery charger.

Hey Hasu, because your controller doesn't have the USB hubs like the stock controller does, would it work when plugged in an ipad via the camera adapter? Have you tested it?

Maybe this is obvious to those who have iPads - but what do you mean about the battery charger preventing BT under iOS? Also, any luck in knocking out that Windows guide? I found the compile relatively straightforward under Linux, but keep getting errors with cygwin+Win64. And regardless, let me repeat my many thanks for all your time and hard work - this controller rocks.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 31 May 2015, 00:36:08
Of course BT controller can be used with iOS via Bluetooth without problem because bluetooth module RN-42 supports the OS. But I'm not sure BT controller works as an USB keybaord with iPad/iPhone when connected using 'Apple USB Camera Adapter'. Seems like whether it works or not depends on its power consumption. So I think BT controller may not work particularly when it is charging.
http://store.apple.com/us/product/MD821ZM/A/lightning-to-usb-camera-adapter?fnode=3a


Are you using Cygwin64? I'm not sure this is importnat but I still use 32bit Cygwin and Atmel Toolchain(win32) on WIndows7 64bit.
Title: Re: [TMK] HHKB Alt Controller
Post by: Overside on Sun, 31 May 2015, 14:54:26
I think so but not confirmed with Apple camera adapter and the latest iOS. I don't have a genuine cable to test.
I tested my controller with cheap adapter clone and old iOS and it works as keyboard. But the clone cable became unusable sometime ago after iOS update.

You have to use USB controller, BT controller will not work due to battery charger.

Hey Hasu, because your controller doesn't have the USB hubs like the stock controller does, would it work when plugged in an ipad via the camera adapter? Have you tested it?


I would test it myself but the controller you sent me is still stuck in customs after a week :(
I ordered the BT controller tho, are you saying that it won't work at all when plugging into ipads? Can you not "disable" BT mode and have it in USB mode?
Title: Re: [TMK] HHKB Alt Controller
Post by: yomammary on Mon, 01 June 2015, 07:22:37
But I'm not sure BT controller works as an USB keybaord with iPad/iPhone when connected using 'Apple USB Camera Adapter'. Seems like whether it works or not depends on its power consumption. So I think BT controller may not work particularly when it is charging.
http://store.apple.com/us/product/MD821ZM/A/lightning-to-usb-camera-adapter?fnode=3a
Confirmed, it works.
You get an error that the device is not supported, but it works!
Title: Re: [TMK] HHKB Alt Controller
Post by: lumogas on Sun, 07 June 2015, 12:41:11
Great news! ...I've sent a PM.
Title: Re: [TMK] HHKB Alt Controller
Post by: Overside on Mon, 08 June 2015, 09:11:43
OK so I found out that the keyboard works with IPads when plugged in with usb camera adapter if the battery is not attached, might as well use it wirelessly lol.
BTW what is the red button for under the dip switch cover?
Title: Re: [TMK] HHKB Alt Controller
Post by: btctopre on Sat, 13 June 2015, 11:21:08
Any solution for the delay in toggling the L1 layer? Was going to push delete to that layer, but as soon as I did the delay became infinitely more bothersome. Tried reflashing firmware on a different computer using Flip and the problem is still there.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sat, 13 June 2015, 16:02:42
It is program button to upload firmware to keyboard.

BTW what is the red button for under the dip switch cover?

Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sat, 13 June 2015, 16:05:56
Any solution for the delay in toggling the L1 layer? Was going to push delete to that layer, but as soon as I did the delay became infinitely more bothersome. Tried reflashing firmware on a different computer using Flip and the problem is still there.

I don't know what you are saying without your keymap.
Post your keymap code or URL if you are using keymap editor.
Title: Re: [TMK] HHKB Alt Controller
Post by: btctopre on Sun, 14 June 2015, 11:48:46
click for keymap (http://www.tmk-kbd.com/tmk_keyboard/editor/hhkb/#eyJrZXltYXBzIjpbW1szMSwyMCwyNiwyMiw0LDI5LDI3LDZdLFszMiwzMywyMSw4LDcsOSwyNSw1XSxbMzQsMzUsMjgsMjMsMTAsMTEsMTcsMF0sWzMwLDQxLDQzLDIyNCwyMjUsMjI3LDIyNiw0NF0sWzM2LDM3LDI0LDEyLDE0LDEzLDE2LDBdLFs1Myw0Miw3Niw0MCwxOTIsMjI5LDIzMSwyMzBdLFszOCwzOSwxOCwxOSw1MSwxNSw1NCwwXSxbNDUsNDYsNDgsNDcsNTIsNTYsNTUsMF1dLFtbNTksMTcwLDgyLDgxLDgwLDAsMCwwXSxbNjAsNjEsMCwxNjksNzksMCwwLDBdLFs2Miw2MywwLDAsMCwwLDAsMF0sWzU4LDEsNTcsMSwxLDEsMSwxXSxbNjQsNjUsMCwwLDAsMCwwLDBdLFs0OSwxLDEsODgsMSwxLDEsMV0sWzY2LDY3LDAsNzAsODAsMCwwLDBdLFs2OCw2OSwwLDgyLDc5LDgxLDAsMF1dLFtbMCwwLDAsMCwwLDAsMCwwXSxbMCwwLDAsMCwwLDAsMCwwXSxbMCwwLDAsMCwwLDAsMCwwXSxbMCwwLDAsMCwwLDAsMCwwXSxbMCwwLDAsMCwwLDAsMCwwXSxbMCwwLDAsMCwwLDAsMCwwXSxbMCwwLDAsMCwwLDAsMCwwXSxbMCwwLDAsMCwwLDAsMCwwXV0sW1swLDAsMCwwLDAsMCwwLDBdLFswLDAsMCwwLDAsMCwwLDBdLFswLDAsMCwwLDAsMCwwLDBdLFswLDAsMCwwLDAsMCwwLDBdLFswLDAsMCwwLDAsMCwwLDBdLFswLDAsMCwwLDAsMCwwLDBdLFswLDAsMCwwLDAsMCwwLDBdLFswLDAsMCwwLDAsMCwwLDBdXSxbWzAsMCwwLDAsMCwwLDAsMF0sWzAsMCwwLDAsMCwwLDAsMF0sWzAsMCwwLDAsMCwwLDAsMF0sWzAsMCwwLDAsMCwwLDAsMF0sWzAsMCwwLDAsMCwwLDAsMF0sWzAsMCwwLDAsMCwwLDAsMF0sWzAsMCwwLDAsMCwwLDAsMF0sWzAsMCwwLDAsMCwwLDAsMF1dLFtbMCwwLDAsMCwwLDAsMCwwXSxbMCwwLDAsMCwwLDAsMCwwXSxbMCwwLDAsMCwwLDAsMCwwXSxbMCwwLDAsMCwwLDAsMCwwXSxbMCwwLDAsMCwwLDAsMCwwXSxbMCwwLDAsMCwwLDAsMCwwXSxbMCwwLDAsMCwwLDAsMCwwXSxbMCwwLDAsMCwwLDAsMCwwXV0sW1swLDAsMCwwLDAsMCwwLDBdLFswLDAsMCwwLDAsMCwwLDBdLFswLDAsMCwwLDAsMCwwLDBdLFswLDAsMCwwLDAsMCwwLDBdLFswLDAsMCwwLDAsMCwwLDBdLFswLDAsMCwwLDAsMCwwLDBdLFswLDAsMCwwLDAsMCwwLDBdLFswLDAsMCwwLDAsMCwwLDBdXSxbWzAsMCwwLDAsMCwwLDAsMF0sWzAsMCwwLDAsMCwwLDAsMF0sWzAsMCwwLDAsMCwwLDAsMF0sWzAsMCwwLDAsMCwwLDAsMF0sWzAsMCwwLDAsMCwwLDAsMF0sWzAsMCwwLDAsMCwwLDAsMF0sWzAsMCwwLDAsMCwwLDAsMF0sWzAsMCwwLDAsMCwwLDAsMF1dXX0=)
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 14 June 2015, 16:00:08
Hmm, your keymapping is simple and plain it seems to work well without delay.
"toggling"? L1 is for momentary layer switching. If you want to toggle layer you have to use T1 in TMK keymap editor.


"Was going to push delete to that layer, but as soon as I did the delay became infinitely more bothersome."
I can't sitll under stand your problem, maybe due to my poor Engrish skill. Can you explain it again with plain English?
Title: Re: [TMK] HHKB Alt Controller
Post by: btctopre on Sun, 14 June 2015, 17:46:46
(your english is fine, you're just using very specific words to describe certain actions. so while L1 is, as you describe it, a momentary layer, by pressing L1 you're technically toggling the layer :P i don't know what else to say besides toggle/switch/trigger.)

this is the same problem i described in the old thread (hoffman had it too). basically when you press the key to switch to momentary layer 1, and then press a key with an assigned layer 1 action immediately after (example: [;'/ assigned to arrow keys), there's a ~50ms delay in the key input being recognized by the OS (windows 7 64 bit in my case). if you maintain your press on the momentary layer 1 key, but then continue to press other keys on the layer (so you keep Fn held down and press [ repeatedly to move left), there is no further delay in the recognition of the presses after that. so it just seems like there is a delay in the initial switch to L1.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 14 June 2015, 18:31:23
Ah, thanks for reminding me,    I couldn't remember that problem at all for some reason :D  dumb, my short memories!
https://geekhack.org/index.php?topic=56494.msg1715297#msg1715297

I filed the problem in github issue tracker and fixed it at this commit of Apr 23. If you build firmware from the latest sources you don't suffer from this problem anymore. But I didn't update Keymap Editor and default firmware used when shipping yet.
https://github.com/tmk/tmk_keyboard/issues/201
https://github.com/tmk/tmk_keyboard/commit/1f4a22ee81ec1986d1ca190c78c66231d37b50e2

I'll update those later.
Title: Re: [TMK] HHKB Alt Controller
Post by: btctopre on Mon, 15 June 2015, 10:26:43
good stuff  :thumb:. i'll try and figure out how to build firmware without using the keymap editor hex sometime today and let you know the results. thanks much for your work hasu!
Title: Re: [TMK] HHKB Alt Controller
Post by: btctopre on Tue, 16 June 2015, 16:22:16
that took entirely too long to figure out (only really need mhr avr tools it seems like, my problem was getting cgwin/mingw to recognize avr-gcc), but i finally got the hex file compiled and flashed to my keyboard and... fixed! thank you very much for your help, now i can say i'm 100% satisfied with the controller  ;D
Title: Re: [TMK] HHKB Alt Controller
Post by: rsadek on Wed, 17 June 2015, 11:10:40
Hasu, I love the controller! It's great. I miss the USB hub: it was very useful for connecting second keyboard,  trackball or numpad while keeping wires tidy.


Would you consider adding USB hub in the next version? Or maybe a second board as an add-on unit?


-R
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 17 June 2015, 20:31:01
Thank you.

Not sure I can design controller with USB hub, but I know some people need it certainly.
I for one don't use keyboard hub function and don't have motivation to develop the feature unfortunately.
But I'll look into USB hub design when I have time.
Title: Re: [TMK] HHKB Alt Controller
Post by: rsadek on Thu, 25 June 2015, 22:07:59
I don't quite understand how to use the Boot Magic / Virtual DIP switches correctly.
Is there a site that explains in detail what to do? For example, I would like to use this to program my controller instead of using the button, but my attempts are unsuccessful. Any tips?


-R
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 25 June 2015, 22:22:38
You can find it here.
https://github.com/tmk/tmk_keyboard#boot-magic-configuration---virtual-dip-switch

Just press space and b key during pluging in to start bootloader.
BootMagic works only if your firmware is sane and built with enabling BootMagic option. When you have trouble with firmware use hardware program(reset) button.
Title: Re: [TMK] HHKB Alt Controller
Post by: Glissant on Sun, 05 July 2015, 21:14:04
I'm sorry to ask, but has anybody got the full list of fixes and how to complete them so I can make my rev D's bluetooth  module work?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 05 July 2015, 21:22:00
Old GB thread has PCB revision history and info fof BT fixes. I'll add those infos in the first post fot this thead too.

https://geekhack.org/index.php?topic=56494.0

PCB REVISIONS
ALL REVISIONS HAS NO ERRATA FOR USB CONTROLLER
Rev.A: 2013/06
Rev.B: 2014/03
Rev.C: 2014/08
Rev.D: 2014/10  Fix for Bluetooth https://geekhack.org/index.php?topic=56494.msg1541485#msg1541485
Rev.E: 2014/11  Fix for Bluetooth https://geekhack.org/index.php?topic=56494.msg1556749#msg1556749
Rev.F: 2014/12
Rev.F(batch2): 2015/01
Rev.G: 2015/03 https://geekhack.org/index.php?topic=56494.msg1675635#msg1675635
Title: Re: [TMK] HHKB Alt Controller
Post by: Glissant on Sun, 05 July 2015, 21:23:57
Much appreciated, hasu. I even had those posts bookmarked from before, but had forgotten them -_-". Sorry!
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 05 July 2015, 21:35:13
ugh, seems like Rev.D fix is too complex :D

Glissant, I can send you a *raw* Rev.G PCB for nothing if you are serious about BT mod.
Title: Re: [TMK] HHKB Alt Controller
Post by: Glissant on Sun, 05 July 2015, 21:59:39
I have my battery ready, and my hhkb type-s wants to be wireless, but does "raw" mean I need to source the smd parts myself? Might be better to deal with this via private message, so if you agree just continue there.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 05 July 2015, 22:35:26
I meant an empty PCB without any components by "raw". Yes, you need to get all components, but perhaps you can desolder some of them from your Rev.D controler. Or you can source them from me but it costs, of course.

Anyhoo, you can get a PCB for free. PM me.
Title: Re: [TMK] HHKB Alt Controller
Post by: IonutZ on Wed, 08 July 2015, 18:45:09
Hey buddy, hope you're well. Can you please document the various transmittal power choices we have?

I'm aware of

SY,0004 which is really strong and
SY,FFF4 which is really weak

I'm not very hex savvy, what could go in between? I tried BBBB thinking it might be somewhere in the middle, but had no luck.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 08 July 2015, 19:29:28
Hi.
See page 27 of the date sheet, you can use one of the following eignt vaules. Not sure BBBB is valid value.
FFF4 is two's compliment notation of -12.

Code: [Select]
0010 16
000C 12
0008 8
0004 4
0000 0
FFFC -4
FFF8 -8
FFF4 -12

http://ww1.microchip.com/downloads/en/DeviceDoc/bluetooth_cr_UG-v1.0r.pdf
https://en.wikipedia.org/wiki/Two's_complement
Title: Re: [TMK] HHKB Alt Controller
Post by: IonutZ on Wed, 08 July 2015, 19:54:16
Yea, wow I had no idea haha. I thought the range of values was a lot higher and started at FFFF and ended at 0000. Lol. Thanks for this!!!
Title: Re: [TMK] HHKB Alt Controller
Post by: mko on Thu, 09 July 2015, 22:19:35
This is what I have been looking for all the time. hope you the BT can have multi pairing(connect to multiply device at the same time and switch using key combo)
Title: Re: [TMK] HHKB Alt Controller
Post by: TastaturenAuslese on Sun, 12 July 2015, 02:37:20
Any issues with dust gathering inside the empty USB ports in the back? =)) I'm really considering picking up a BT version soon.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 12 July 2015, 13:04:56
You may need to close them with tape or something if you are going to use the keyboard outdoor :D
3D-printed cover would be better cosmetically.
Title: Re: [TMK] HHKB Alt Controller
Post by: shrubkeys on Sun, 12 July 2015, 14:10:22
Do a quick search - someone posted some .stl files they created for little inexpensive/good-enough covers on one of the other hhkb alt controller threads...
Title: Re: [TMK] HHKB Alt Controller
Post by: yomammary on Mon, 13 July 2015, 07:21:15
Can someone link it? I couldn't find it.
Title: Re: [TMK] HHKB Alt Controller
Post by: suicidal_orange on Mon, 13 July 2015, 19:28:08
Can someone link it? I couldn't find it.

Just thought I'd post here that my friend and I designed and 3d printed dust covers for the usb ports on the hhkb with Hasu controller.  Here is a picture of it:

Show Image
(http://i.imgur.com/vt2KFoL.jpg)


I'll get the .stl file from my buddy and upload for anyone that wants it.  Some minimal sanding is required around the corners and edges etc.  Unfortunately, I cannot make these for anyone as my school has the machine, and I will be graduating in a week.

No sign of the .stl file though, maybe send him a PM?

Title: Re: [TMK] HHKB Alt Controller
Post by: MJ45 on Mon, 13 July 2015, 20:09:33
Can someone link it? I couldn't find it.

Just thought I'd post here that my friend and I designed and 3d printed dust covers for the usb ports on the hhkb with Hasu controller.  Here is a picture of it:

Show Image
(http://i.imgur.com/vt2KFoL.jpg)


I'll get the .stl file from my buddy and upload for anyone that wants it.  Some minimal sanding is required around the corners and edges etc.  Unfortunately, I cannot make these for anyone as my school has the machine, and I will be graduating in a week.

No sign of the .stl file though, maybe send him a PM?
Try this link; https://www.dropbox.com/s/v6vtinzjoh5y06u/HHKBusbcover.stl?dl=0
Title: Re: [TMK] HHKB Alt Controller
Post by: yomammary on Tue, 14 July 2015, 07:05:20
Thanks :)
Title: Re: [TMK] HHKB Alt Controller
Post by: Glissant on Thu, 16 July 2015, 13:05:47
Got my kit, hasu. Will build the kit once I get back to my soldering station :) Thanks again!
Title: Re: [TMK] HHKB Alt Controller
Post by: esoomenona on Thu, 16 July 2015, 13:36:13
.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 16 July 2015, 19:35:06
Yes, Pro1 alt controller is identical electronically with Pro2 so you can use same binary hex file on both.
Title: Re: [TMK] HHKB Alt Controller
Post by: s00pcan on Tue, 21 July 2015, 18:50:42
Registered here to ask about possible usb type c on this board.  I'd buy one!
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 22 July 2015, 18:13:49
Yes Type-C is interesting. And I know it is next big thing on USB and some people are excited at that.
It doens't seems to be hard to replace mini B connector with Type-C but note that you have to file your case to fit it into.

The connector is so pricy at the time I feel like waiting till it becomes common everywhere and cheap.
Title: Re: [TMK] HHKB Alt Controller
Post by: flipjsio on Mon, 27 July 2015, 11:57:15
Hi Hasu. Id like to buy one controller please. I have Pro-2 Type-S. Can you pm me your paypal details and total to pay (including shipping) please. I am in the UK. Thanks.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Mon, 27 July 2015, 18:43:24
PM'd. Thanks.
Either USB or Bluetooth controller can be shipped in a few days right now.
Title: Re: [TMK] HHKB Alt Controller
Post by: grantr on Thu, 30 July 2015, 13:46:35
Hi Hasu! I'd like to buy the bluetooth board. I have a Pro2 and am in the US. Can you PM me the details? Thanks!
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 30 July 2015, 21:58:51
PM'd.
Post here or PM me if you have any question.
Title: Re: [TMK] HHKB Alt Controller
Post by: esoomenona on Wed, 12 August 2015, 14:36:33
.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 12 August 2015, 17:30:57
You have to build from source to define macro.
Title: Re: [TMK] HHKB Alt Controller
Post by: dustinhxc on Fri, 21 August 2015, 17:55:33
Hey Hasu, Id love a USB Controller! I sent a PM. Stoked to try one man, always loved your work.  :thumb:
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 21 August 2015, 19:48:51
dustinhxc,
Thanks for your interest.
Sorry not in stock currently, last three USB controllers have gone in this week.
Components for next batch were ordered but it will take a few weeks until starting assembly.


Updated STOCK in the first post.
Quote
Preassembled boards in stock:(can be shipped in a few days)
    USB: 0
    BT: 3

Components in stock:(can be assembled in a week)
    USB: 0
    BT: 0
Title: Re: [TMK] HHKB Alt Controller
Post by: dustinhxc on Fri, 21 August 2015, 19:50:19
dustinhxc,
Thanks for your interest.
Sorry not in stock currently, last three USB controllers have gone in this week.
Components for next batch were ordered but it will take a few weeks until starting assembly.


Updated STOCK in the first post.
Quote
Preassembled boards in stock:(can be shipped in a few days)
    USB: 0
    BT: 3

Components in stock:(can be assembled in a week)
    USB: 0
    BT: 0

Can I be added to the waiting list please? Id like one. Thanks!
Title: Re: [TMK] HHKB Alt Controller
Post by: ajx on Wed, 26 August 2015, 12:38:46
Hi, Hasu, nice thread  ;D
I am willing to buy a polymer battery on Sparkfun

Quote
Do not attempt to charge these with anything but a charger specifically designed for Lithium Ion batteries.

Is it safe to charge it through usb from keyboard?

Still any 2000 mah battery or more available that would fit into HHKB?

Thanks you, great works!


Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 26 August 2015, 12:50:16
yes, you can charge Lipo battery with USB, this controller uses Lipo charger chip MCP73831.

Check this for battery cavity size.

Quote
Bluetooth Battery
More
BT Controller doesn't include battery. I can recommend Sparkfun Lipo battery(850mA or 1000mA) but you will be able to find proper batteries at many sites on the net.

You need to use 3.7V Lithium Ion Polymer battery with JST PH 2pin connector and battery protection circuit. Battery space inside HHKB is around 54mm x 50mm and its height is 7mm(or 8mm).
https://geekhack.org/index.php?topic=56494.msg1597883#msg1597883

LIPO BATTERY IS VERY DANGEROUS, TAKE EXTRA CARE OF YOUR SAFETY AND PROPERTY. For your safety check this.
https://learn.adafruit.com/li-ion-and-lipoly-batteries
https://www.sparkfun.com/tutorials/241
Title: Re: [TMK] HHKB Alt Controller
Post by: ajx on Wed, 26 August 2015, 13:29:55
http://www.evita.lt/en/a-lp804550-akumuliatorius-3-7v-2000mah-8x45x50mm-li-polymer

What do you think about this 2000 mah polymer battery? That's the ony that may fit into HHKB case

It has no JST connectors and cables
How to attach it to the battery?


Title: Re: [TMK] HHKB Alt Controller
Post by: flabbergast on Wed, 26 August 2015, 14:11:51
http://www.evita.lt/en/a-lp804550-akumuliatorius-3-7v-2000mah-8x45x50mm-li-polymer

What do you think about this 2000 mah polymer battery? That's the ony that may fit into HHKB case

It has no JST connectors and cables
How to attach it to the battery?
I have one LiPo from SparkFun (I think) and the JST connector is not directly cabled to the battery leads like you see on the your picture, but there's a small PCB (JST -- wires -- PCB -- battery). It's hard to see on SparkFun's photos, it's kind of hidden in the battery cover.

So - I always thought that this small PCB has some kind of extra protection stuff on it (well maybe just a diode so that there's no reverse current going in). But I don't know enough about this stuff to tell. These things can be seriously dangerous, so I'm just trying to say that do some more research before just soldering wires straight to a LiPo like you posted.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 26 August 2015, 14:21:18
http://www.evita.lt/en/a-lp804550-akumuliatorius-3-7v-2000mah-8x45x50mm-li-polymer

What do you think about this 2000 mah polymer battery? That's the ony that may fit into HHKB case

It has no JST connectors and cables
How to attach it to the battery?
I have one LiPo from SparkFun (I think) and the JST connector is not directly cabled to the battery leads like you see on the your picture, but there's a small PCB (JST -- wires -- PCB -- battery). It's hard to see on SparkFun's photos, it's kind of hidden in the battery cover.

So - I always thought that this small PCB has some kind of extra protection stuff on it (well maybe just a diode so that there's no reverse current going in). But I don't know enough about this stuff to tell. These things can be seriously dangerous, so I'm just trying to say that do some more research before just soldering wires straight to a LiPo like you posted.

Yes, that raw battery has no protection circuit and you cannot use with BT controller.
I recommend buying battery with protection board from reliable vendor.
Title: Re: [TMK] HHKB Alt Controller
Post by: ajx on Wed, 26 August 2015, 15:44:12
Ok thanks, so those 2000 mah polymer batteries from Adafruit or Spakfun, are too large to be fitted into HHKB?
Only 1000 mah at best i guess?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 26 August 2015, 20:54:40
Perhpas they may fit but not sure.
I'd recommend to check dimension of the battery and HHKB case yourself.

BTW, someone reported 2500mAh battery could fit in the place.
https://geekhack.org/index.php?topic=56494.msg1600169#msg1600169
Title: Re: [TMK] HHKB Alt Controller
Post by: ajx on Thu, 27 August 2015, 17:42:31
I found this

http://www.miniinthebox.com/universal-replacement-3-7v-1800mah-li-polymer-battery-for-7-10-macbook-samsung-acer-sony-apple-tablet-pc-4-45-55_p1600818.html

It might fit well into the HHKB even if it sightly larger with 1mm more
Title: Re: [TMK] HHKB Alt Controller
Post by: shrubkeys on Tue, 01 September 2015, 22:24:00
Any chance the online keymap editor could generate its C code in all ASCII? It would be great to be able to use it to create a basic layout, which you could then edit further locally. As it stands, the source ouput at the bottom (for debugging) writes the keymap table in hex codes, which isn't all that useful for human reading.
Title: Re: [TMK] HHKB Alt Controller
Post by: deci on Sat, 05 September 2015, 19:54:15
Hey guys. I can now confirm that this 2000 mah battery easily fits in the case as well.
(I'm using it in my new Type S, and it is only slightly larger than the 1200 I have in my pro 2)

http://www.adafruit.com/products/2011

The connector side will overlap the pcb slightly but it is a little less thick than the rest of the battery so it's not a big deal.
(I also use 3m mounting tape for the battery so the slight boost in height fits perfectly over the pcb)

*Please note that if you use this battery do not mount it flush with the top of the case. There needs to be a little gap there for the support that presses down on the pcb.
You can leave a little gap or even mount it resting against the lower post for more security.


I also suspect that this 2500 mah might fit as well but there will be much more overlap so it might not be quite is neat.
I don't need the extra power so I did not test one of these yet:
http://www.adafruit.com/products/328
Title: Re: [TMK] HHKB Alt Controller
Post by: ajx on Sun, 06 September 2015, 11:34:52
I found and bought a 3000 mah that might fit, its on larger by 0,1mm margin
Its from Aliexpress, not really reliable as Adafruit/Sparkfun, that's why i would test if whether its safe and reliable as polymer battery, before dropping the link here
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 11 September 2015, 23:25:17
ANNOUNCE: Alt Controller for Pro1

You can order Alt Controller for Pro1 now.
Pro1(PD-KB300) is older EOL model from 2003-2006. ( http://deskthority.net/wiki/HHKB_Professional#HHKB_Professional.5B1.5D )
https://geekhack.org/index.php?topic=12047.msg1779801#msg1779801

(http://i.imgur.com/QPobtCMl.jpg)
Title: Re: [TMK] HHKB Alt Controller
Post by: ajx on Tue, 22 September 2015, 12:49:57
I having litige with the seller, he sold me a legit 3000 mah battery that could fit into HHKB case but as you may know, the possibility of finding such size capacity within HHKB case dimensions, is almost non existent

(http://img15.hostingpics.net/pics/787515DSC0012.jpg)

He claims its normal structure of lipo battery although i can see and touch a split in middle
What do you think guys, reliable battery?
Title: Re: [TMK] HHKB Alt Controller
Post by: TrptJim on Tue, 22 September 2015, 22:39:23
Just got my Pro2 BT board in this morning. Thanks so much Hasu!

I paired it with an Adafruit 2000mAh LiPo and have been testing it out for the past few hours. Everything functions great right out of the box.

I do hear a high pitch whine coming from what sounds like the battery/connector area, that only happens when plugged into a USB PC or charging port. Is this normal? I'll take a closer look tomorrow to narrow it down.

Jim
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Tue, 22 September 2015, 23:09:29
Thanks for the report back.

Yes, that whine is normal to my BT controller unfortunately, it comes from one of yellow tantalum capacitors. I can't hear it when the case is closed but if you are young and have good ears you can still hear perhaps. In developement phase I tried to remove the whine by changing capacitor value and size, but I couldn't in the end.

It doesn't indicate any defect of components but it may be annoying for good ears.
Title: Re: [TMK] HHKB Alt Controller
Post by: TrptJim on Wed, 23 September 2015, 00:54:35
It's inaudible anywhere outside my bedroom so it's a very minor thing, though I wonder if a dab of hot glue would improve it.
Title: Re: [TMK] HHKB Alt Controller
Post by: japanskcykel on Sat, 26 September 2015, 04:04:46
Hello hasu! Awesome project you have started, I have always wanted the hhkb to be programmable! The reason I found out about this project is because my original controller fried a couple of days ago at my University (one of the computers had a faulty USB connector) along with my friends Ducky controller too ('dmesg' in linux says it doesn't accept the device enumerator). My question is (in your opinion), would replacing the controller suffice or is the rest of the keyboard broken (the key switch PCB too)? I have seen that the controller is connected to the PCB that contains the keys with a 13-bit (or was it 12?) parallel cable, by the little experience I have of electronics I don't think that should have mitigated there right?

I look forward to buy a hasu controller soon!
Thanks for your help!
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sat, 26 September 2015, 15:18:03
I'm not sure but I don't think your switch board was broken. Topre controller board has voltage regulator chip on power line and I guess it may work as protection when power failure. But not sure again there.

Note that TMK USB controller has no protection, you can suffer from a damage more severely when that situation. BT has poly fuse(PPTC) but I don't think it is enough protection in that case.
Title: Re: [TMK] HHKB Alt Controller
Post by: Anonymous Coward on Sat, 26 September 2015, 19:57:50
I just received my bt controller as well and it is fantastic.

Thank you for making these available.  :thumb:
Title: Re: [TMK] HHKB Alt Controller
Post by: jgaddi on Wed, 21 October 2015, 02:44:40
Hey guys, I'm having trouble pairing with the bluetooth module. The battery is fully charged, and switching the bluetooth on (with USB unplugged) causes the battery LED to flash red twice. When plugged in, I can't detect a BT signal.

Here's my output from hid_listen after switching BT on. I don't think rn42 should read OFF at this point:

----- RN-42 info -----
protocol: LUFA
force_usb: 0
rn42: OFF
rn42_autoconnecting(): 1
config_mode: 0
USB State: Configured
battery: CHARG
RemoteWakeupEnabled: 0
VBUS: 1
uptime: 00 00:03:37

BAT: 4200mV        00:04:14



Initializing the bluetooth module with LShift+RShift+Del doesn't seem to change anything.

I was able to flash a custom layout, and the controller works great over USB. Any ideas?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 21 October 2015, 04:58:30
Hey guys, I'm having trouble pairing with the bluetooth module. The battery is fully charged, and switching the bluetooth on (with USB unplugged) causes the battery LED to flash red twice. When plugged in, I can't detect a BT signal.

Here's my output from hid_listen after switching BT on. I don't think rn42 should read OFF at this point:

----- RN-42 info -----
protocol: LUFA
force_usb: 0
rn42: OFF
rn42_autoconnecting(): 1
config_mode: 0
USB State: Configured
battery: CHARG
RemoteWakeupEnabled: 0
VBUS: 1
uptime: 00 00:03:37

BAT: 4200mV        00:04:14



Initializing the bluetooth module with LShift+RShift+Del doesn't seem to change anything.

I was able to flash a custom layout, and the controller works great over USB. Any ideas?


Weird, that output indicates Bluetooth module powers off.
This pic shows BT slide switch position and LEDs.
(http://i.imgur.com/1kD9tne.jpg)

You will see BT LED blinks in red when BT module powers on.
Quote
BT LED
It lights red when Bluetooth is connected to host, blinks red(once per second) when waiting for connection and blinks red(10 times per second) when Bluetooth module is config mode.

To initialize BT module you should press LShift+RShift+ScrollLock, not Delete. LShift+RShift+Delete enters module into command mode.
Quote
Magic commands
Prefix of magic command are LShift + RShift.

- i displays Bluetooth information on hid_listen console.
- b displays battery voltage on console.
- Delete enter/exits Bluetoot module RN-42 config mode on console. See RN-42 manual.
- Scroll Lock initialize module with TMK default configuration.
- p put keyboard into paring mode focibly.
- u switches between USB and Bluetooth mode.

Check the first post of this thread again for Magic command key combos.

Title: Re: [TMK] HHKB Alt Controller
Post by: jgaddi on Wed, 21 October 2015, 12:33:18

Quote
To initialize BT module you should press LShift+RShift+ScrollLock, not Delete. LShift+RShift+Delete enters module into command mode.

Thanks for the quick reply. Is LShift+RShift+ScrollLock supposed to output anything to hid_listen? The console becomes unresponsive after that key combo.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 21 October 2015, 13:03:42
You will see this output when BT initialize comand runs.
Note that if this command fails BT module will be configured incompletely or wrongly, you should take special care, do not touch keyboard while this until initilize command is finished. This command takes 5-10 seconds.
Code: [Select]
Entering config mode ...
CMD
Ver 6.15 04/26/2013
(c) Roving Networks
ECHO ON
SF,1
AOK
S-,TmkBT
AOK
SS,Keyboard/Mouse
AOK
SM,4
AOK
SW,8000
AOK
S~,6
AOK
SH,003C
AOK
SY,FFF4
AOK
R,1
Reboot!
Exiting config mode ...
Title: Re: [TMK] HHKB Alt Controller
Post by: jgaddi on Wed, 21 October 2015, 13:28:19
You will see this output when BT initialize comand runs.
Note that if this command fails BT module will be configured incompletely or wrongly, you should take special care, do not touch keyboard while this until initilize command is finished. This command takes 5-10 seconds.
Code: [Select]
Entering config mode ...
CMD
Ver 6.15 04/26/2013
(c) Roving Networks
ECHO ON
SF,1
AOK
S-,TmkBT
AOK
SS,Keyboard/Mouse
AOK
SM,4
AOK
SW,8000
AOK
S~,6
AOK
SH,003C
AOK
SY,FFF4
AOK
R,1
Reboot!
Exiting config mode ...

It seems like something's wrong.. I don't get any output from the initialization. Any other ideas to reinitialize the bluetooth module?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 21 October 2015, 13:49:49
You can initialize module when you are in trouble. But you should tarke care to prevent module from being cofigured incompletely or wrongly. Take the following steps.

0. Turn BT swich off and unplug USB cable.
1. open hid_listen. You can do without it but I recommend.
2. Plug USB cable and wait for keyboard to startup.
3. Press key combo LShift+RShift+ScrollLock(Fn+O).
4. Turn BT switch on. You will see output below on hid_listen.
5. Do not touch keyobard until the command completes or for twenty seconds.

Now module is configured with default setting and in pairing mode. You may need extra power cycle for pairing, try BT switch off and on.
Title: Re: [TMK] HHKB Alt Controller
Post by: jgaddi on Wed, 21 October 2015, 14:20:39
Hmm, I'm still getting no output from hid_listen here. Would rebuilding from source and reflashing help here?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 21 October 2015, 14:39:44
OK. I'd like to know your current situation exactly.

You flashed with firmware with your custom keymap, right?
Did you check the controller when it is delivered and Bluetooth worked before the reflash?
Do you think this is hardware problem or firmwre?

Assuming hardware is fine reflashing default firmware will be helpful. You should not change keymap, use default keymap until confirm your controller is fine.
You can build default firmware with "make -f Makefile.rn42" or just download it without keymap change from this page.
http://www.tmk-kbd.com/tmk_keyboard/editor/hhkb_bt/
Title: Re: [TMK] HHKB Alt Controller
Post by: jgaddi on Wed, 21 October 2015, 16:13:27
Unfortunately I flashed before testing the bluetooth functionality, and I still run into the same issues with the unmodified firmware. I'm beginning to think this is a hardware issue.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 21 October 2015, 16:31:42
OK.
I'll send another one, but it will take a week to ship, currently out of stock.
Please send your controller back with cheap carrier(maybe USPS) with tracking(insurance is not needed). I'll pay for the postage when I receive it and confirm it doesn't work.

BTW, Bluetooth LED is blinking when turn on module?
Title: Re: [TMK] HHKB Alt Controller
Post by: jgaddi on Wed, 21 October 2015, 17:01:25
Great, I'll do that.

The bluetooth LED has never come on. Turning on the module only causes the battery LED (right LED) to blink red twice.
Title: Re: [TMK] HHKB Alt Controller
Post by: IonutZ on Tue, 03 November 2015, 06:19:35
HASU! When's the next version coming out :D

Still having trouble with Fn + Shift combo when Fn = Layer 2 and on Layer 2, Shift = Layer 3 :(
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Tue, 03 November 2015, 21:17:22
next version? no plan for Alt controller board currently and Soon(TMTMK) for TMK firmware :D

what's your problem exactly? we discussed it somewhere before?

HASU! When's the next version coming out :D

Still having trouble with Fn + Shift combo when Fn = Layer 2 and on Layer 2, Shift = Layer 3 :(
Title: Re: [TMK] HHKB Alt Controller
Post by: IonutZ on Wed, 04 November 2015, 06:59:50
next version? no plan for Alt controller board currently and Soon(TMK) for TMK firmware :D

what's your problem exactly? we discussed it somewhere before?

HASU! When's the next version coming out :D

Still having trouble with Fn + Shift combo when Fn = Layer 2 and on Layer 2, Shift = Layer 3 :(

:D Here are the 2 bugs that I'm having, without which the TMK firmware would be the ultimate best:

1. My layout is the following
on Layer 0: Fn key = Momentary to Layer 1,
on Layer 1: RShift key = Momentary to Layer 2,
on Layer 2: > key = a function key.

If I hold down Fn + RShift + >, the function key is activated as expected. When I release however, if I don't release the > before release RShift and Fn, the keyboard gets stuck on Layer 2, and then I have to press Fn + RShift + > again and release them in the right order, so that the keyboard comes back to Layer 0.

2. The Next and Previous media buttons aren't the same buttons as the next and previous on the Macbook Pro's keyboard. Those keys allow me to move between songs on all the media software. The Previous and Next media buttons that I have on the HHKB, KC_MNXT, KC_MPRV, (171 and 172) only work with specific software.

Any ideas? At the same time, they might not be bugs, they might be features haha

Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 04 November 2015, 17:10:38
OK.
1. Yeah, this is the biggest limitation of current TMK keymap implementation. I hope this will be fixed in next version(tm) :D It will need more memory and code, this makes me hesitated.
https://github.com/tmk/tmk_keyboard/wiki/FAQ-Keymap#modifierlayer-stuck

2. See this.
https://github.com/tmk/tmk_keyboard/wiki/FAQ-Keymap#media-control-keys-in-mac-osx
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 08 November 2015, 21:14:41
Updated firmwre of keymap editor for both USB and BT. You can download the latest firmware from keymap editor now.
http://www.tmk-kbd.com/tmk_keyboard/editor/

This will fix some problems including "unneeded delay in momentary layer switch".
https://github.com/tmk/tmk_keyboard/issues/201
Title: Re: [TMK] HHKB Alt Controller
Post by: kaesve on Sun, 22 November 2015, 00:09:36
Hey Hasu,

I have one of your boards, and the USB socket just broke off. My HHKB is my daily driver so I really want to fix or replace it as fast as possible. I don't have much experience with soldering or fixing PCB's, so I hope you could help me with some questions; Will every mini-USB socket fit, or do I need a specific one? Would this be doable for someone new to soldering?

I am also considering buying a bluetooth controller, especially because you have the one I need in stock. Do you have any estimation of shipping time to the US?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 22 November 2015, 01:31:50
Hi,
Sorry to hearing that.

Could you post pic of PCB and the socket? I'm very interested in seeing how that broke.

The socket is Hirose UX60SC-MB-5ST and I can send it immediately(Tuesday) for nothing(via normal mail, probably will take a week or so to US).  It is not extremely difficult but may be PITA to solder it at correct place. You can re-solder it using decent iron and flux if PCB pads are safe.


Registered mail usually take 7-10 days to US. EMS is another shipping method and 3-4 days(in their estimate but I'm not sure in real), costs around extra $6. (I cannot use DHL and Fedex practically due to their ridiculous price and poor service in Japan.)


I have bluetooth controller in stock currently and it can be shipped on Tuesday. Unfortunately this Monday(tomorrow) is holiday and Post office is closed here.
Title: Re: [TMK] HHKB Alt Controller
Post by: kaesve on Sun, 22 November 2015, 03:13:28
Thanks for the quick response Hasu. I moved into a new apartment, so right now I don't even have screwdrivers to check the damage. I'll borrow tools and post a picture next week. I think I'll get the bluetooth controller -- I'll PM you with the details :)
Title: Re: [TMK] HHKB Alt Controller
Post by: Latin00032 on Sun, 22 November 2015, 09:06:07
Any possibility of making a version of this for the fc660c?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Tue, 24 November 2015, 03:52:31
I believe it is possible but I myself won't be deep into FC660C reverse-eng.
We are already very close to finish it, I think someone will complete this job eventually in the future. I'm happy to help and sitll keep subscribing the thread in fact.
https://geekhack.org/index.php?topic=54222.0
Title: Re: [TMK] HHKB Alt Controller
Post by: Vimto on Thu, 26 November 2015, 01:03:17
Just received my board, and it's fantastic, works in Bluetooth and USB modes.
I can confirm that the adafruit 2500 mAh battery doesn't fit, as it's just a touch too large and the support post can't slot down. I may try shortening / filing the the small plastic support post by 10 mm just to try the battery, but not sure how this would impact the stability of the keyboard so am reluctant

The adafruit 2000 mAh battery fits perfectly.

I will try reprogramming it when I get home from work tonight (want to flip the windows and alt keys around).

I had one question.
If the keyboard is in USB mode, will it still charge the battery?
Title: Re: [TMK] HHKB Alt Controller
Post by: Vimto on Thu, 26 November 2015, 08:42:45
I'm trying to pair the keyboard on my Alienware PC with Windows 10, and it doesn't seem to show up as a detected device.
It works fine on my iPhone, LG G3 phone and my Macbook Pro.

Has anyone else had this issue?
Title: Re: [TMK] HHKB Alt Controller
Post by: Vimto on Thu, 26 November 2015, 13:36:17
Having issues trying to program my controller using dfu programmer on a Macbook Pro,

I got the following error:

Code: [Select]
make -f Makefile.rn42 KEYMAP=hhkb dfu
dfu-programmer atmega32u4 erase --force
Erasing flash...  Success
Checking memory from 0x0 to 0x6FFF...  Empty.
dfu-programmer atmega32u4 erase
Checking memory from 0x0 to 0x6FFF...  Empty.
Chip already blank, to force erase use --force.
dfu-programmer atmega32u4 flash hhkb_rn42.hex
make: *** [dfu] Error 1

This made my keyboard completely unresponsive

I then tried:
Code: [Select]
dfu-programmer atmega32u4 flash hhkb_bt_firmware.hex
with a hex file i downloaded from the keyboard editor website, but this just returned nothing

Can anyone help?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 26 November 2015, 16:30:02
Having issues trying to program my controller using dfu programmer on a Macbook Pro,

I got the following error:

Code: [Select]
make -f Makefile.rn42 KEYMAP=hhkb dfu
dfu-programmer atmega32u4 erase --force
Erasing flash...  Success
Checking memory from 0x0 to 0x6FFF...  Empty.
dfu-programmer atmega32u4 erase
Checking memory from 0x0 to 0x6FFF...  Empty.
Chip already blank, to force erase use --force.
dfu-programmer atmega32u4 flash hhkb_rn42.hex
make: *** [dfu] Error 1

This made my keyboard completely unresponsive

hmm, I haven't found that erase command was executed twice in dfu target so far. On Ubuntu make doesn't stop here for some reason. Fixed it and updated the repository, use the latest source and try it again.
https://github.com/tmk/tmk_keyboard/commit/d0f174911e84be47d0f3b3d98b7d1adeb38b5411


Quote
I then tried:
Code: [Select]
dfu-programmer atmega32u4 flash hhkb_bt_firmware.hex
with a hex file i downloaded from the keyboard editor website, but this just returned nothing

Can anyone help?

I think this should work.
Code: [Select]
dfu-programmer atmega32u4 erase --force
dfu-programmer atmega32u4 flash hhkb_bt_firmware.hex
dfu-programmer atmega32u4 reset
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 26 November 2015, 17:12:25
I'm trying to pair the keyboard on my Alienware PC with Windows 10, and it doesn't seem to show up as a detected device.
It works fine on my iPhone, LG G3 phone and my Macbook Pro.

Has anyone else had this issue?

That Alienware PC supports classic bluetooth(BT3.0 or 2.1)? HHKB Alt controller uses Bluetooth 2.1, so host has to support classic Bluetooth. These days many PC/Mac/Phones have support for both BLE(4.1/4.0) and classic but some may have only BLE. With quick browsing on dell.com it says only about BT4.1 support on the latest Alienware product but does not refer to classic BT.

And when Alt controller is connected to a host, other hosts cannot find it. You have to disconnect from the host before trying new host. Easy way to disconnect is pressing LShift+RShift+p to enter pairing mode.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 26 November 2015, 17:23:36
Just received my board, and it's fantastic, works in Bluetooth and USB modes.
I can confirm that the adafruit 2500 mAh battery doesn't fit, as it's just a touch too large and the support post can't slot down. I may try shortening / filing the the small plastic support post by 10 mm just to try the battery, but not sure how this would impact the stability of the keyboard so am reluctant

The adafruit 2000 mAh battery fits perfectly.

I will try reprogramming it when I get home from work tonight (want to flip the windows and alt keys around).

I had one question.
If the keyboard is in USB mode, will it still charge the battery?

Thanks for the report on batteries.

Yes, controller charges battery regardless of its mode  while it is hooked up to USB port or power adapter.
Title: Re: [TMK] HHKB Alt Controller
Post by: Vimto on Thu, 26 November 2015, 19:17:57
hmm, I haven't found that erase command was executed twice in dfu target so far. On Ubuntu make doesn't stop here for some reason. Fixed it and updated the repository, use the latest source and try it again.
https://github.com/tmk/tmk_keyboard/commit/d0f174911e84be47d0f3b3d98b7d1adeb38b5411

I tried this and now the erase only happens once, but I still get the same error:
Code: [Select]
Creating load file for Flash: hhkb_rn42.hex
avr-objcopy -O ihex -R .eeprom -R .fuse -R .lock -R .signature hhkb_rn42.elf hhkb_rn42.hex
dfu-programmer atmega32u4 erase --force
Erasing flash...  Success
Checking memory from 0x0 to 0x6FFF...  Empty.
dfu-programmer atmega32u4 flash hhkb_rn42.hex
make: *** [dfu] Error 1


I think this should work.
Code: [Select]
dfu-programmer atmega32u4 erase --force
dfu-programmer atmega32u4 flash hhkb_bt_firmware.hex
dfu-programmer atmega32u4 reset

I tried this with the .hex i downloaded and with the hex built from the command above. Got the following output both times (erase works, but flash and reset don't give any output)
Code: [Select]
dfu-programmer atmega32u4 erase --force
Erasing flash...  Success
Checking memory from 0x0 to 0x6FFF...  Empty.
dfu-programmer atmega32u4 flash hhkb_rn42.hex
dfu-programmer atmega32u4 reset
No output during the flash or the reset commands.

Is there any way to know the keyboard is in program mode or not?
What should I do once the reset command is done, i unplugged / replugged the keyboard but still no response from it on my mac
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 26 November 2015, 19:31:30
In program(bootloader) mode controller should appear as USB device with VID=03eb(Atmel) and PID=2ff4, you will find this on Mac equivalent of 'device manager'.

Probably, you don't have permission to the device enough? Try sudo.

Quote
$ sudo dfu-programmer atmega32u4 erase --force
$ sudo dfu-programmer atmega32u4 flash hhkb_rn42.hex
$ sudo dfu-programmer atmega32u4 reset

EDIT:
or
Quote
$ sudo make dfu
but I don't recommend it. To run compilation by root(admin?) is not good idea.
Title: Re: [TMK] HHKB Alt Controller
Post by: Vimto on Thu, 26 November 2015, 20:08:36
In program(bootloader) mode controller should appear as USB device with VID=03eb(Atmel) and PID=2ff4, you will find this on Mac equivalent of 'device manager'.

Probably, you don't have permission to the device enough? Try sudo.

Quote
$ sudo dfu-programmer atmega32u4 erase --force
$ sudo dfu-programmer atmega32u4 flash hhkb_rn42.hex
$ sudo dfu-programmer atmega32u4 reset

EDIT:
or
Quote
$ sudo make dfu
but I don't recommend it. To run compilation by root(admin?) is not good idea.


I tried running it as sudo like you recommended and still no luck, so i increased the debug output for dfu programmer and got the following:

Code: [Select]
sudo dfu-programmer atmega32u4 flash hhkb_rn42.hex --debug 1000
     target: atmega32u4
    chip_id: 0x2ff4
  vendor_id: 0x03eb
    command: flash
      quiet: false
      debug: 1000
device_type: AVR
------ command specific below ------
   validate: true
   hex file: hhkb_rn42.hex

dfu.c:330: dfu_device_init( 1003, 12276, 0x7fff54010bd0, true, false )
dfu.c:332: dfu_device_init(000003eb, 00002ff4)
libusb: debug [libusb_get_device_list]
libusb: debug [discovered_devs_append] need to increase capacity
libusb: debug [libusb_get_device_descriptor]
dfu.c:347:  0: 0x03eb, 0x2ff4
dfu.c:356: found device at USB:20,10
dfu.c:595: dfu_find_interface()
libusb: debug [libusb_get_config_descriptor] index 0
dfu.c:605: config 0: maxpower=50*2 mA
dfu.c:612: interface 0
dfu.c:621: setting 0: class:0, subclass 0, protocol:0
dfu.c:634: Found DFU Interface: 0
libusb: debug [libusb_open] open 20.10
libusb: debug [darwin_open] device open for access
dfu.c:367: opened interface 0...
libusb: debug [libusb_set_configuration] configuration 1
dfu.c:369: set configuration 1...
libusb: debug [libusb_claim_interface] interface 0
libusb: debug [get_endpoints] building table of endpoints.
libusb: debug [darwin_claim_interface] interface opened
dfu.c:372: claimed interface 0...
dfu.c:301: dfu_abort( 0x7fff54010bd0 )
libusb: debug [libusb_alloc_transfer] transfer 0x7f9659c03e58
libusb: debug [libusb_submit_transfer] transfer 0x7f9659c03e58
libusb: debug [libusb_get_next_timeout] no URB with timeout or all handled by OS; no timeout!
libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling
libusb: debug [handle_events] poll fds modified, reallocating
libusb: debug [handle_events] poll() 1 fds with timeout in 60000ms
libusb: debug [darwin_async_io_callback] an async io operation has completed
libusb: debug [handle_events] poll() returned 1
libusb: debug [handle_events] caught a fish on the event pipe
libusb: debug [darwin_handle_transfer_completion] handling control completion with kernel status 0
libusb: debug [usbi_handle_transfer_completion] transfer 0x7f9659c03e58 has callback 0x10bc0c060
libusb: debug [sync_transfer_cb] actual_length=0
libusb: debug [libusb_free_transfer] transfer 0x7f9659c03e58
dfu.c:212: dfu_get_status( 0x7fff54010bd0, 0x7fff54010ae8 )
libusb: debug [libusb_alloc_transfer] transfer 0x7f9659f01198
libusb: debug [libusb_submit_transfer] transfer 0x7f9659f01198
libusb: debug [libusb_get_next_timeout] no URB with timeout or all handled by OS; no timeout!
libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling
libusb: debug [handle_events] poll() 1 fds with timeout in 60000ms
libusb: debug [darwin_async_io_callback] an async io operation has completed
libusb: debug [handle_events] poll() returned 1
libusb: debug [handle_events] caught a fish on the event pipe
libusb: debug [darwin_handle_transfer_completion] handling control completion with kernel status 0
libusb: debug [usbi_handle_transfer_completion] transfer 0x7f9659f01198 has callback 0x10bc0c060
libusb: debug [sync_transfer_cb] actual_length=6
libusb: debug [libusb_free_transfer] transfer 0x7f9659f01198
dfu.c:238: ==============================
dfu.c:240: status->bStatus: OK (0x00)
dfu.c:241: status->bwPollTimeout: 0x0001 ms
dfu.c:243: status->bState: dfuIDLE (0x02)
dfu.c:244: status->iString: 0x00
dfu.c:245: ------------------------------
dfu.c:696: State: dfuIDLE (2)
atmel.c:287: ERROR allocating 0x10000 bytes of memory.
commands.c:238: ERROR initializing a buffer.
libusb: debug [libusb_release_interface] interface 0
libusb: debug [libusb_close]
libusb: debug [libusb_exit]
libusb: debug [libusb_exit] destroying default context

do you think my version of libusb or the atmel libraries is bad?

Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 26 November 2015, 20:39:50
You can erase it but cannot flash?
hmm, I'm not sure what's wrong there :( maybe version of tool or library?
Are you using the latest version of dfu-programmer? If not try 0.7.2. I'm using 0.7.1 on Ubuntu and it works well for me.

Quote
atmel.c:287: ERROR allocating 0x10000 bytes of memory.
commands.c:238: ERROR initializing a buffer.

Looks like it fails at malloc()? 0x10000 is just 64KB, wierd.
https://github.com/dfu-programmer/dfu-programmer/blob/v0.7.0/src/atmel.c#L287
Title: Re: [TMK] HHKB Alt Controller
Post by: Vimto on Thu, 26 November 2015, 20:58:10
Thank you so much for that, i thought i was using the latest version of dfu-programmer because i clicked on the link from the dfu programmer page, but it was actually pointing to 0.7.0.
Just changed to 0.7.2 and it works (at least my keyboard is working again), thank you so much for your help.
Now to play with programming the board. :)
Title: Re: [TMK] HHKB Alt Controller
Post by: Vimto on Thu, 26 November 2015, 21:49:51
I'm trying to pair the keyboard on my Alienware PC with Windows 10, and it doesn't seem to show up as a detected device.
It works fine on my iPhone, LG G3 phone and my Macbook Pro.

Has anyone else had this issue?

That Alienware PC supports classic bluetooth(BT3.0 or 2.1)? HHKB Alt controller uses Bluetooth 2.1, so host has to support classic Bluetooth. These days many PC/Mac/Phones have support for both BLE(4.1/4.0) and classic but some may have only BLE. With quick browsing on dell.com it says only about BT4.1 support on the latest Alienware product but does not refer to classic BT.

And when Alt controller is connected to a host, other hosts cannot find it. You have to disconnect from the host before trying new host. Easy way to disconnect is pressing LShift+RShift+p to enter pairing mode.

My alienware is 4 years old and supports classic bluetooth as BLE was very new back then
I've seen this other post on another forum, about a similar issue someone had with the rn42 chipset and windows 10
http://www.microchip.com/forums/m892862.aspx

Title: Re: [TMK] HHKB Alt Controller
Post by: ccarlitos2 on Fri, 27 November 2015, 08:43:24
Is it possible to buy a HHKB Pro 2 with the BT controller straight from you? If so how much?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 27 November 2015, 09:45:57
Yes. See the first post of this thread.

Wait... you mean you want me to proxy HHKB?  No, I can't. Use tenso.com.
Title: Re: [TMK] HHKB Alt Controller
Post by: kaesve on Fri, 27 November 2015, 17:49:28
Hey Hasu,

My board arrived today and it is working perfectly. Typing this message on it right now -- I'm so happy to not have to use my laptop keyboard anymore :p

By the way, here's a picture of the broken board. Do you think it is still repairable? I might give it a go so I have a back-up board.

(http://i.imgur.com/8FeOy8D.jpg)
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 27 November 2015, 19:07:30
Hmmm, two big pads completely came off while five small pads seem to be safe.
If small pads are sitll there electrical connection will be ok with just resoldering. But It may be difficult to make connector stay in place firmly, you have to use glue, kind of epoxy to stick it on PCB, instead of soldering. Not sure glue is strong enough for daily usage.

EDIT:
I will think about what I can do for this. I'll PM later.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 09 December 2015, 15:29:57
Recent buyers,
Japan Post email service is a bit iffy as of now.
Let me know if you don't get tracking number from them in three days after payment.

Thanks
Title: Re: [TMK] HHKB Alt Controller
Post by: bocahgundul on Tue, 15 December 2015, 02:11:54
Bro i receive the BT controller today and when i try to test the NKRO it just dont work and just 6KRO. My Board is the BT one and i try it in USB mode
Title: Re: [TMK] HHKB Alt Controller
Post by: bocahgundul on Wed, 16 December 2015, 02:30:32
And i cannot use the magic commands pls help
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 16 December 2015, 23:30:19
Ah, I missed notification mail.

Sorry, with factory default BT firmware NKRO is disabled, as it is a bit old. (I'll update it from next shippment.)
You will be able to use NKRO after program with firmware from keymap editor. And keyboard still works with 6KRO by default, to use NKRO press LShift+RShift+n.

Which magic comand did you use?
did you find you need hid_listen tool to see output from keyboard yet?
https://github.com/tmk/tmk_keyboard#debugging
Title: Re: [TMK] HHKB Alt Controller
Post by: bocahgundul on Thu, 17 December 2015, 07:36:58
All fixed thank you hasu  :thumb:
Title: Re: [TMK] HHKB Alt Controller
Post by: witty on Thu, 07 January 2016, 09:49:35
Wo! Cool!
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Mon, 11 January 2016, 10:58:18
Updated keymap editor, it supports media keys for Mac now.

http://www.tmk-kbd.com/tmk_keyboard/editor/hhkb/
https://github.com/tmk/tmk_keyboard/wiki/FAQ-Keymap#media-control-keys-in-mac-osx

Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Mon, 11 January 2016, 17:45:46
Hi all,
Japan Post email service is still doubtful as of now. Let me know if you don't get tracking number in three days after payment. Sorry for this inconvenience.
Title: Re: [TMK] HHKB Alt Controller
Post by: ajx on Tue, 12 January 2016, 13:02:22
Hey Hasu, i may have an issue, its pretty rare, when i barely brush the key, the key repeats several times
e.g aaaaa or wwww
Dunno if it comes from the controller

Did you meet such issue?

I have pretty standard layout (only few things have been modified, i put arrows clusters on WASD, fn is toggled)



Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Tue, 12 January 2016, 13:27:57
Hi,
what do you mean with "barely brush"? you don't type the key but finger rests on the key?

capacitive sensing may be corrupted temporarily with half pressing for some period or low voltage of power.

and if you installed battery make sure it doesn't move inside case, it can prevent from sensing correctly.
Title: Re: [TMK] HHKB Alt Controller
Post by: ajx on Tue, 12 January 2016, 14:21:34
Yes my fingers flying over keys or resting on the key
I use your controller without battery
I thought it was an hardware issue, potentially with the pcb or the slider itself due to my silenced mod
Title: Re: [TMK] HHKB Alt Controller
Post by: ajx on Tue, 12 January 2016, 14:50:24
By the way your re right, it happens only when fingers rest on the key with half pressing after some period
Title: Re: [TMK] HHKB Alt Controller
Post by: Laser on Fri, 15 January 2016, 11:58:01
I have a HHKB Pro2 and your (awesome BTW) USB controller (without BT). Question: would it be possible to attach a LED to the board, and control it through the firmware?

Reason: I would like to use permanent extra layers (toggled, not momentary), but I don't like to have these permanent layers without any form of feedback/info about which is the current layer (e.g. a bright LED, 2 bright LEDs ...).
Or, if you have another solution? How can a keyboard report visually the active layer? I think the shortcoming of having permanent layers is that the user can forget in what layer (s)he is, without any type of information offered by the keyboard (- this is the problem).

Something like a generalization of CAPS LOCK Led showing activated CAPS LOCK state, but for custom permanent FN layers.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 15 January 2016, 20:55:47
ajx, even with TMK controller Topre chip still plays all of role in sensing capacitive switches, I think the chip has calibration process for gradual change of capacitance caused by temprature, moisture or etc. and I guess the half pressing can interfere the calibration under some conditions. Though I couldn't reproduce this problem by half pressing on my keyboard.

Laser, unfotunately TMK doesn't support any indication for layer switch at this time. But some people have added such function in some ways.
see this for example. https://github.com/tmk/tmk_keyboard/pull/198
Title: Re: [TMK] HHKB Alt Controller
Post by: Laser on Sat, 16 January 2016, 04:30:21
Laser, unfotunately TMK doesn't support any indication for layer switch at this time. But some people have added such function in some ways.
see this for example. https://github.com/tmk/tmk_keyboard/pull/198

Hasu, thanks! The link seems very useful. My other half of the question was this (because I'm not an expert with this stuff):

Is it physically possible, with your "Alt Controller Board for HHKB" (USB version), to solder 2 LEDs directly where the 2 USB hub ports were (where the Bluetooth version of the controller actually has and uses 2 LEDs)?

If it is possible, what are the corresponding ports to be used in firmware?

I ask because, since the right side of the USB controller PCB has missing components (for Bluetooth), I don't know if soldering the LEDs is enough, or other resistors etc. must also be soldered in.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sat, 16 January 2016, 05:08:14
You can use PD1 and  PD2 located on next to push button. You can control two LED with those two pins, just connect resister and LED between the pin and GND. PD1 and PD2 can be handled with 'PORTD' and 'DDRD' register in firmware. There are also other unused pins available but not easy to use like those pins.

Schematic is available here.
https://github.com/tmk/HHKB_controller/blob/master/schematic/HHKB_controller_revG.pdf
Title: Re: [TMK] HHKB Alt Controller
Post by: Laser on Sat, 16 January 2016, 05:21:34
That's really great, thanks for all the information! (Looking on the OP image, looks like PD0 and PD1 pins) :)
Title: Re: [TMK] HHKB Alt Controller
Post by: WesleyFE20 on Sat, 13 February 2016, 04:06:13
Would it be safe for the charging controller to connect two or three adafruit batteries in parallel? I saw a pic on imgur, and it kind of got me curious.

Link to imgur post: http://m.imgur.com/gallery/skOVz
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sat, 13 February 2016, 04:44:36
i think it is not safe in general or bad practice at least. don't do this with normal lipo battery.

but to be honest I'm not expert and not completely sure about how his setup works and battery spec.


Title: Re: [TMK] HHKB Alt Controller
Post by: Siraj on Fri, 19 February 2016, 05:15:37
Hey Hasu,

I wasn't sure if your USB controller would allow me to program my HHKB to Colemak and allow the Control button to be Backspace?
Thanks
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 19 February 2016, 11:45:23
Hey Hasu,

I wasn't sure if your USB controller would allow me to program my HHKB to Colemak and allow the Control button to be Backspace?
Thanks

You can remap HHKB to Colemak and no problem on the backspace with this controller.
Title: Re: [TMK] HHKB Alt Controller
Post by: ajx on Mon, 29 February 2016, 05:49:15
Hello Hasu, is there any way to make Shift key as toggled shift, i mean i want permanent shift
Thanks
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Mon, 29 February 2016, 07:34:03
there is no modifier toggle you will have to define your own action function in your keymap file.

or you may use tap toggle modifier for this perhaps.

https://github.com/tmk/tmk_keyboard/blob/master/tmk_core/doc/keymap.md#44-tap-toggle-mods

Title: Re: [TMK] HHKB Alt Controller
Post by: ajx on Mon, 29 February 2016, 09:04:15
Ok thanks, by the way, could Hasu's controller cause disconnection from usb?
I have sometimes but its pretty rare, my keyboard is stuck, any command/keys seems to work, i have to disconnect usb cable then connect it again and it eventually works
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Mon, 29 February 2016, 11:41:35
I have not had it long time but 'unresponsiveness' can occur with unknown bug, misconfigured keymap or hardware failure. If it occurs during typing it would be likely keymap or firmware bug.
Title: Re: [TMK] HHKB Alt Controller
Post by: ajx on Mon, 29 February 2016, 12:19:17
I dont know, it happens just very recently, i came from work and booted my computer up and the keyboard didn't seem to respond, disconnect the usb cable and connect it again its the only way i ve managed to make keyboard running again
What is the latest firmware from TMK (i use the TMK editor btw)
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Mon, 29 February 2016, 22:32:46
It sounds to me like USB conformity problem of firmware. I've not tested it thoroughly on warm boot and cold boot(power on).
I guess it has problem with some hardware with new USB3 host or specific BIOS/UEFI. What is your PC(it has USB3 interface?) and OS?
Title: Re: [TMK] HHKB Alt Controller
Post by: ajx on Tue, 01 March 2016, 12:08:26
Yes its usb3 interface, Windows 10 64 bits
Maybe its because i have two usb keyboards plugged at same time?
As far as i know, rare bug which keyboard doesnt seem to respond
Maybe a defect usb cable?
Title: Re: [TMK] HHKB Alt Controller
Post by: wodan on Wed, 09 March 2016, 14:38:37
Heya any idea when you get new PCBs ?
I want one :)
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 09 March 2016, 18:05:40
I have plenty of PCB now but lack of MCU is current problem. MCUs were ordered from China several weeks ago but not delivered yet.
I'm thinking about order them from reliable US distributer which costs more inevitably.
Title: Re: [TMK] HHKB Alt Controller
Post by: rdjack21 on Wed, 09 March 2016, 18:25:09
I have a question about programming the keyboard in particular about macros and how many of them you can have. If I'm reading the documentation correctly it looks like the number of macros you can define is limited by the number of FN Keys (32) which is really limiting for what I really want to do.

What I want is multiple layers full of macros. For instance lets say I want an Eclipse macro layer where I program LayerKey+f to mean open a File. Then lets say I want another layer defined for lets say Emacs where LayerKey+f would open a file. Then another layer for Vi where LayerKey+f would open a file and so on. If I'm limited to 32 keys for Macros I can't do something like this. So please tell me I'm missing something or is there another way of doing this.

Oh by the way Love the controler and the possibilities it opens.

Thanks
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 09 March 2016, 18:44:38
rdjack21,
youre right, it is limited to 32 in keymap framework unfortunately. If this is not enough you can actionmap framework which has no the 32-limitation. In actionmap you can define 256 macros, if this is not enough it is time to write your own firmware.

Try this 'actionmap' branch and you can find actionmap examples under keyboard/alps64/.
https://github.com/tmk/tmk_keyboard/tree/actionmap

EDIT: Note that actiomap uses 16-bit action codes instead of 8-bit keycodes this inflates your key mapping space twice in flash. Firmware is already bloated fairly this may cause short of flash memory.
Title: Re: [TMK] HHKB Alt Controller
Post by: rdjack21 on Wed, 09 March 2016, 21:14:38
rdjack21,
youre right, it is limited to 32 in keymap framework unfortunately. If this is not enough you can actionmap framework which has no the 32-limitation. In actionmap you can define 256 macros, if this is not enough it is time to write your own firmware.

Try this 'actionmap' branch and you can find actionmap examples under keyboard/alps64/.
https://github.com/tmk/tmk_keyboard/tree/actionmap

256 macros should be plenty for what I want to do seeing that I'm only looking to do two layers for this. Thanks for the link I will take a look. Not really wanting to write my own firmware and to be honest I have not touched C code in a very long time but really should look at it again as I do miss a good compiled language.

EDIT: Note that actiomap uses 16-bit action codes instead of 8-bit keycodes this inflates your key mapping space twice in flash. Firmware is already bloated fairly this may cause short of flash memory.

How tight are we talking about and how can I figure out where I'm at space wise?

Thanks
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 09 March 2016, 21:57:00
In end of build process you get output like below. This indicates firmware size in flash memory, in this case 21416(0x53a8) bytes in total(text+data+bss).
You will get error in build or flash program process if all of flash memroy is exhausted. You have to give up some of features like NKRO, mousekeys or debug console in that case.
The controller's available flash memory size is  24KB or 24576 bytes becuase 4KB out of 32KB flash is occupied by bootloader.

Quote
Size after:
   text    data     bss     dec     hex filename
  21178      56     182   21416    53a8 hhkb_lufa.elf

-------- end --------
Title: Re: [TMK] HHKB Alt Controller
Post by: rdjack21 on Wed, 09 March 2016, 22:08:05
Sounds good.. Question is there any plan to merge master into the actionmap branch? I noticed that it has not been updated in a while and some of the updates added more features for macros. I have a few things I need to finish off then I'm going to start working on getting this working for what I want.

Thanks for getting me going and pointing me in the right direction.

EDIT: Just noticed I really need to update my signature my collection has changed considerably from when I used to be active way back when...
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 09 March 2016, 22:57:24
Ah, I have forgot to update the branch and cannot update it now due to rebasing. Instead I pushed new 'actionmap2' branch  from my local.
Anyway, I'll merge it into master after some tests soon.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 23 March 2016, 13:19:17
I'm on the road and away from home unexpectedly, shipping for some of orders will be delayed until Monday. And I cannot check and reply to inquiry mails until then.
Thank you for your patience.
Title: Re: [TMK] HHKB Alt Controller
Post by: Bklyn11209 on Thu, 24 March 2016, 09:07:03
Hi,

Is the USB Pro2 (PD-KB400) still available for sale?

Thanks!
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 27 March 2016, 21:35:13
Yes, components for all variants are back in stock now. Lead time to ship will be less than a week.
Thanks
Title: Re: [TMK] HHKB Alt Controller
Post by: drpatrickbateman on Fri, 01 April 2016, 13:15:29
Sent you a PM about a bluetooth controller!
Title: Re: [TMK] HHKB Alt Controller
Post by: ajx on Sun, 03 April 2016, 02:59:34
Hey Hasu, in your TMK Editor

Momentary switching with Tap Toggle

By default, number of taps is set at 5 which i think its too much
Does it possible to reduce at 2 without passing on manual editing layout?

Thanks

Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 03 April 2016, 05:04:27
You have to compile firmware to change the parameter unfortunately.

I still think 5 is good for me, because I rarely use toggle and With 2 I had unintentional toggle.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Mon, 04 April 2016, 01:24:58
Hi,
I have to revise price of controllers due to rising cost of chips in short supply and recent exchange rate of JPY. I'll increase the prices soon in a week or so.

You will be able to save a few bucks by placing an order early.

Thanks.
Title: Re: [TMK] HHKB Alt Controller
Post by: joric on Fri, 08 April 2016, 04:18:18
Got my Bluetooth controller today, blazing fast - a week from Japan is very impressive I've never received local shipments in a less than a week, regards to Hasu. Of course, neither of those batteries I ordered in China haven't arrived yet, so I had to use 1200 mAh battery from Varmilo BT87M. Figures Varmilo battery has wrong polarity, which I discovered shortly after plugging it in (luckily I didn't kill the board). Had to switch the wires on Varmilo battery connector (it's safe, there are special latches). Varmilo battery is somewhat longer than suggested ones but it sits on top of the controller and the case assembles just fine.
(http://i.imgur.com/EOhhDJQ.jpg)

Is it possible to change behavior of LED's via firmware update? They always glow in bluetooth mode, that seems kind of wasteful (guess that's 20 to 40 mA combined). I'd prefer one of them off in bluetooth mode an the other one to blink briefly, as on most bluetooth devices.

Upd: Just noticed power LED is actually off most of the time. So how to make Bluetooth LED blink when connected, like 100 ms every 2000ms? I'm not really sure yet how to do that after skimming through the code. I don't quite get how those dualcolor LEDs work and which port is which, tried to replace status_led(true) with status_led((timer_read32()%2000)<100); in rn42_task.c - it blinks yellow but still glows red.

Upd2: I've just noticed Varmilo battery is Li-ion (it's written there and visible on the picture) not Li-Po (Li-Ions offer less energy, leak voltage and cheaper by 10-30%). So probably not suitable from the start. Also the case bulges, so a bit oversized too (Li-Po batteries also smaller at the same capacity).
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 08 April 2016, 17:16:33
Thanks for the headsup!
Yea, some battery has reverse polarity on its connector for some reason, I'll have to add a notice in the first post.

Green(yellow) one can be controlled with status_led() of rn42_task.c via PE6. Red one of BT LED is connected to GPIO5 of Bluetooth module directly and not controllable from firmware, you can remove resistor R25 to stop lighting it. Or perhaps you can change the module configuration by a command(S% maybe?).  Using hid_listen tool you can enter RN42 configuration mode by magic key combo LShift+RShift+Delete. Before tweaking configuration check RN42 manuals carefully.
http://www.microchip.com/wwwproducts/en/RN42
Quote
3.1.4 Disabling Output Drivers
Use the S%,1000 command to set all GPIO pins (0 to 11) to inputs. This command also
turns off the FireFly adapter LED (GPIO5). Refer to “GPIO Commands” on page 37 for
more information on using commands to control the GPIO pins.
See http://ww1.microchip.com/downloads/en/DeviceDoc/bluetooth_cr_UG-v1.0r.pdf

Title: Re: [TMK] HHKB Alt Controller
Post by: joric on Fri, 08 April 2016, 22:31:43
I broke that controller at the first day! RN42 became unresponsive for a while (LED is gone, it didn't pair anymore and hung in command mode). After a few hours of cursing I've fixed it with a hardware reset using a flat screwdriver on RST pins - shorted them, powered the bluetooth on, kept it for a second, then a couple of times more (ON-OFF-ON-OFF-ON, as in manual, apparently that works). Then hid_listen, ScrollLock, 20 seconds and pairing and it finally worked. The LED is back and I really glad to see it this time. Guess that "S%,1000" is deadly, it writes statuses to ROM - it can be done temporarily with S@. It also may help with power saving: "GPIO2 and GPIO5 are driven by the embedded software as outputs. You can disable them using the direction command (for example to save power)". And probably it's worth to route that pin (LED at GPIO5) through atmega, rather than hardwire it. Anyway, I'm glad bluetooth works again.

(http://i.imgur.com/4FxeD1H.jpg)

Upd: Probably because of that (I essentially disabled both GPIO2 and GPIO5 at once, so RN42 was always "linked"):

bool rn42_linked(void)
{
    // RN-42 GPIO2
    //   Hi-Z:  Not powered
    //   High:  Linked
    //   Low:   Connecting
    return PINF&(1<<6);
}
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sat, 09 April 2016, 02:36:40
Good to hear that factory reset(F.RST) worked for you! And thanks for good instruction image.
I myself failed to do factory reset before for some reason :D Maybe toggle timing is important.

According to manual "S%,1000" should change only GPIO5 keeping other GPIOs intact. wierd.
Title: Re: [TMK] HHKB Alt Controller
Post by: joric on Sat, 09 April 2016, 14:09:08
According to manual "S%,1000" should change only GPIO5 keeping other GPIOs intact. wierd.

From the manual (http://ww1.microchip.com/downloads/en/DeviceDoc/bluetooth_cr_UG-v1.0r.pdf):

3.1.4 Disabling Output Drivers
Use the S%,1000 command to set all GPIO pins (0 to 11) to inputs. This command also turns off the FireFly adapter LED (GPIO5).

GPIO Commands say nothing about 3.1.4 but there is a formula: PARAMETER[15:0] = MASK[7...0]<<8 || VALUE[7..0]
So, to turn off just GPIO5 that would be: (1<<5)*256 + (1<<5)*0 = 1000h, but I guess it also disables all output drivers, whatever that means.
I just tried S%,1000 in the config mode and effectively killed the board the second time, couldn't get access to command mode after that, had to reset again.
NB! It seems that to reset BT you have to unplug USB, switch BT on, short the F.RST and then plug USB back keeping F.RST shorted for a second.
Skipping rn42_linked() doesn't seem to help, maybe someone will investigate. I only have this controller for a couple of days.
S@,1000 had no effect whatsoever (even in the middle of the init_rn42() sequence). I'd be really glad to turn that freaking LED off...
In fact, there are 2 leds in bluetooth mode (red+green=orange) + one led when the battery is low, so 3 leds combined, 45-60 ma overall draw, I guess.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sat, 09 April 2016, 15:17:35
BT Leds have 1k ohm each and draws from 3.3v line so I guess they consume less than 10ma. But you still will be able to improve 10% of battery life?

Title: Re: [TMK] HHKB Alt Controller
Post by: MJ45 on Sat, 09 April 2016, 17:14:42
Hello Hasu,

I am wondering what LED next to the bootloader switch (red button) is for? I never noticed it illuminated.
Title: Re: [TMK] HHKB Alt Controller
Post by: Mirahine on Sat, 09 April 2016, 17:27:31
I have send a mail for buying the usb version, i don't have any reply.
It's normal?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sat, 09 April 2016, 17:46:24
Hi MJ45, it is capslock indicator with default firmware. But I used it for debug mainly during development.

Mirahine, I usually reply in a day, note that I'm in JST timezone.
Title: Re: [TMK] HHKB Alt Controller
Post by: alveeno on Fri, 15 April 2016, 17:46:19
Will this make the media controls work on windows?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 15 April 2016, 18:22:56
Will this make the media controls work on windows?

It should work. What is "media controls" you intend actually?
I usually use volume controls(up, down mute) but not others. I'll test them if you want.
Title: Re: [TMK] HHKB Alt Controller
Post by: cryptokey on Fri, 15 April 2016, 23:28:54
Do you ever stock HHKB Type-S with the USB controller?
Title: Re: [TMK] HHKB Alt Controller
Post by: alveeno on Sat, 16 April 2016, 12:52:41
Will this make the media controls work on windows?

It should work. What is "media controls" you intend actually?
I usually use volume controls(up, down mute) but not others. I'll test them if you want.

Vol up, Vol down, mute, play/pause, skip track, previous track!

Thanks! I'm just asking because I know by default they don't work on windows, only mac.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sat, 16 April 2016, 17:18:15
It should work and confirmed once at least some point in past. Which keycodes are you using in fact? And USB or Bluetooth?

Some keycodes work in Windows but not in Mac and vice versa, iirc.

EDIT: And what  app are you trying? winamp? media player?
Title: Re: [TMK] HHKB Alt Controller
Post by: alveeno on Sat, 16 April 2016, 22:45:00
It should work and confirmed once at least some point in past. Which keycodes are you using in fact? And USB or Bluetooth?

Some keycodes work in Windows but not in Mac and vice versa, iirc.

EDIT: And what  app are you trying? winamp? media player?
I haven't installed the controller yet, I just know stock controller works only in mac. I thought i'd just ask before I installed your controller, because media controls was the big thing I wanted to work
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sat, 16 April 2016, 23:51:34
It should work and confirmed once at least some point in past. Which keycodes are you using in fact? And USB or Bluetooth?

Some keycodes work in Windows but not in Mac and vice versa, iirc.

EDIT: And what  app are you trying? winamp? media player?
I haven't installed the controller yet, I just know stock controller works only in mac. I thought i'd just ask before I installed your controller, because media controls was the big thing I wanted to work

OK. I understood your question now. Yes, media control works well with Alt Controller on both USB and Bluetooth.

BTW, I looked into behaviour of system/consumer keys on Linux and Windows 10.
https://github.com/tmk/tmk_keyboard/issues/332
Title: Re: [TMK] HHKB Alt Controller
Post by: lenk on Thu, 21 April 2016, 16:50:41
hi Hasu, I know this is for HHKB only. Will you be making pcbs for other Topre keyboards? Like the realforce,novatouch and leopolds? If not, would the usb-usb converter be best if I want to fully program other topre keyboards? Thanks.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sat, 23 April 2016, 05:21:40
hi Hasu, I know this is for HHKB only. Will you be making pcbs for other Topre keyboards? Like the realforce,novatouch and leopolds? If not, would the usb-usb converter be best if I want to fully program other topre keyboards? Thanks.

Hi, I have no plan for those boards. You can use USB-USB converter with Realforce but I don't know about other boards. USB-USB converter doesn't support NKRO keyboards.
Title: Re: [TMK] HHKB Alt Controller
Post by: r3nfr0 on Sun, 24 April 2016, 08:28:51
Hello,

I have the controller working fine through USB.  When I try to pair via bluetooth on my mac, I am getting a bad passkey error (it is trying to use 0000).  My mac is kind of old.  Is it possible my bluetooth is too old?  Or is there a passkey that I don't know?

edit:  when i tried to pair it with my laptop (the computer i actually want bluetooth on) it just took a few attempts then it connected.  it is a little weird, but it is working!

Thanks!
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 24 April 2016, 17:51:28
Hello,

I have the controller working fine through USB.  When I try to pair via bluetooth on my mac, I am getting a bad passkey error (it is trying to use 0000).  My mac is kind of old.  Is it possible my bluetooth is too old?  Or is there a passkey that I don't know?

edit:  when i tried to pair it with my laptop (the computer i actually want bluetooth on) it just took a few attempts then it connected.  it is a little weird, but it is working!

Thanks!

Hi,
Pin code is 1234 it is usually not required in pairing process. But old host may require it, I don't know much about this and I've never used the pin code so far.
EDIT: If your buletooth host is 2.1 or up it suppors SSP(simple secure pairing) which doesn't require pin code as far as I know.
Title: Re: [TMK] HHKB Alt Controller
Post by: r3nfr0 on Sun, 24 April 2016, 18:01:33
This is a pretty old Mac, and the one that it worked on is much newer. I will try the pin and report back!  At work now.


Sent from my iPhone using Tapatalk
Title: Re: [TMK] HHKB Alt Controller
Post by: Jico on Thu, 28 April 2016, 19:38:48
Will this controller work with the new Bluetooth version of the HHKB?

(http://www.pfu.fujitsu.com/hhkeyboard/bt/)

Also, is there a way to map characters that aren't in the TMK Keymap Editor?  I'd like to have things like "∞" on the 2nd layer.  You can type an infinity symbol by hitting ALT+236 on the number-pad of a full-size keyboard.  Can I enter a macro like this using this controller?

Title: Re: [TMK] HHKB Alt Controller
Post by: r3nfr0 on Fri, 29 April 2016, 18:18:52
Hello,

I have the controller working fine through USB.  When I try to pair via bluetooth on my mac, I am getting a bad passkey error (it is trying to use 0000).  My mac is kind of old.  Is it possible my bluetooth is too old?  Or is there a passkey that I don't know?

edit:  when i tried to pair it with my laptop (the computer i actually want bluetooth on) it just took a few attempts then it connected.  it is a little weird, but it is working!

Thanks!

Hi,
Pin code is 1234 it is usually not required in pairing process. But old host may require it, I don't know much about this and I've never used the pin code so far.
EDIT: If your buletooth host is 2.1 or up it suppors SSP(simple secure pairing) which doesn't require pin code as far as I know.
I think my old Mac's Bluetooth is dying. My apple trackpad won't connect any more either.

Works fine on my newer MacBook.
Title: Re: [TMK] HHKB Alt Controller
Post by: joric on Sun, 01 May 2016, 13:42:21
Regarding that 2600 mAh battery from Ebay (http://www.ebay.com/itm/261625368941), got the following:

Because China Post reason, we re-send the Netherlands Post, please do not worry, thank you!
Thank you for your purchase from our store.The follow is your bid list:
3.7V 2600 mAh Li-polymer Rechargeable Battery Li-Po ion 785251 for Tablet PC * 1
We have sent this item out via {Netherlands Post} to you.


This battery didn't leave the China at all! Was re-shipped after a month.
Got two tracking numbers, CN and NL, CN stuck at China, hope it comes through via NL.
Pretty unfortunate, because my VB87M 1200 mAh Li-Ion battery works on this controller only for about 2 hours.
I don't know why, maybe a ****ty battery, I don't know how to test the capacity.
Also it doesn't charge up to 4.2V, the working voltage in hid_listen is about 3.7-3.5V then it shuts down.
I've already ordered Happy Hacking Professional BT, should arrive in a couple of days.

Upd: got the 2600 mAh battery today, took 2 months (minus 6 days). Oh this is fitting snugly, with a bent battery controller, rotated 90 degrees. Wires are way too short for just crimping, need extending. Batteries from e_goto ebay seller ordered the same two months ago never arrived.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 01 May 2016, 19:37:03
Ha, it is not rare with shopping from China. We tend to waste our time for sake of their incredibly cheap price and shipping cost  :p

My sparkfun 850mAh battery can drive 14hours, Apparently your battery or controller have something wrong. I hope your controller works well with new battery.
Title: Re: [TMK] HHKB Alt Controller
Post by: Glod on Mon, 02 May 2016, 16:31:08
Currently setting mine up; I just received my bt controller in the mail. I was a little worried about it being in a envelope and not a box but everything came out OK! i am using a 2000mah lipo.

hasu, you are amazing. This controller is extremely well made and worth the cost; usb wired and bluetooth appear to be checking out fine for me and i am going to program mine to dual colemak/qwerty switchable as i have done with my other programmable keyboards. This one of the main reasons i got this controller other than bluetooth.

You hasu, the tmk king!, put life into a dusty hhkb i gave up on (hopefully that translates properly), my hhkb never played nice with my usb hubs and kvms due to that stupid built in hub; and then i learned colemak, so i stopped using it in my keyboard rotation.... until now.

(https://farm2.staticflickr.com/1486/26778656605_520e4f8a51_b.jpg) (https://flic.kr/p/GNkBDX)

(https://farm2.staticflickr.com/1481/26174701664_6036128563_b.jpg) (https://flic.kr/p/FSYbTJ)
Title: Re: [TMK] HHKB Alt Controller
Post by: yaro_b on Thu, 05 May 2016, 16:55:59
hasu, any plans to tackle on the new HHKB ProBT? I wan't to get one, but without customization of your controllers it's useless.

Cheers.
Title: Re: [TMK] HHKB Alt Controller
Post by: yaro_b on Thu, 05 May 2016, 16:58:37
Oh, forgot to thank you for great Pro2 controller. Upgraded my 2 HHKBs. Much much better than stock ones.
Title: Re: [TMK] HHKB Alt Controller
Post by: qazeqaz on Fri, 06 May 2016, 14:11:23
hasu, any plans to tackle on the new HHKB ProBT? I wan't to get one, but without customization of your controllers it's useless.

Cheers.

I do not think he would have to compete. I love my Hasu controller in my HHKB. The programmability makes it so much better. Plus it can keep that sleek OG design, which I really like.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 06 May 2016, 19:40:31
hasu, any plans to tackle on the new HHKB ProBT? I wan't to get one, but without customization of your controllers it's useless.

Cheers.

I also missed my own keymap and mouse keys using HHKBBT and I understood I cannot live without those :D

Probably I won't tackle on this keyboard myself but still be interested in more detail of internals. It has a programmable MSP430 controller you will be able to flash your own firmware but you need to hook up programmer hardware. I don't think it can be flashed via USB or Bluetooth.

On desktop USB is enough for my daily use and  for occasional one day goout my BT controller works for me. I'll part with HHKBBT after investigation and stick on Pro1/Pro2 for a while.
Title: Re: [TMK] HHKB Alt Controller
Post by: ajx on Mon, 09 May 2016, 02:39:39
Just noob question: why does BT HHKB's battery last (way) longer than your?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Mon, 09 May 2016, 04:00:46
Ajx, interesting question. I guess primary source of difference is BT module, broadcom chip(BT3.0) vs CSR chip (BT2.1). Not sure how difference of Bluetooth version affects and how broadcom proprietary technology saves power.

Secondary one is power supply voltage, tmk requires 5V to scan switches while all of hhkbbt components work with 3V.

I don't know how it actually works in detail yet, though. I have to look into it more.
Title: Re: [TMK] HHKB Alt Controller
Post by: ipreferpie on Sat, 14 May 2016, 16:04:22
Hi there, I just was testing my Hasu BT HHKB 2 controller and seems to be have a problem. After setting it on USB mode (without battery installed) it'll get detected, but will disconnect after 10-20 seconds. The green LED flashes red twice then goes solid green; after 10-20s, it turns off and gets disconnected. Earlier, I tried connecting the controller directly to USB w/o attaching it on to the board. Did I fry something or do something wrong?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sat, 14 May 2016, 23:26:55
Hi there, I just was testing my Hasu BT HHKB 2 controller and seems to be have a problem. After setting it on USB mode (without battery installed) it'll get detected, but will disconnect after 10-20 seconds. The green LED flashes red twice then goes solid green; after 10-20s, it turns off and gets disconnected. Earlier, I tried connecting the controller directly to USB w/o attaching it on to the board. Did I fry something or do something wrong?

The green LED turns off completely after 10-20secs? It sounds to me like power failure somewhere. The green LED is just connected to USB 5V and not controlled by controller, it should light solid during hooked up to USB power line. Change USB cables or wiggle USB connectors on both PC and Alt controller side and see if the LED lights.

It is safe to hook up the controler to USB without battery and HHKB, unless it makes short circuit on it with something conductive.

EDIT:  I don't think you fired controller, it is really difficult to make it malfunctioning electrically. I've never had it, at least.
Title: Re: [TMK] HHKB Alt Controller
Post by: ipreferpie on Sun, 15 May 2016, 00:18:08
Hey, just took your suggestion, and tried a different USB cable. Still no go... Green LED turns on and keyboard works for around 10-20s and then LED blinks out and not connection :(
Title: Re: [TMK] HHKB Alt Controller
Post by: ipreferpie on Sun, 15 May 2016, 00:26:24
Hey, just took your suggestion, and tried a different USB cable. Still no go... Green LED turns on and keyboard works for around 10-20s and then LED blinks out and not connection :(

Here's the video link of the problem FYI:
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 15 May 2016, 01:18:45
Hmm, in the video it turns off just after starupt blinking of red LED,  it looks like power fail, short-circuit or low voltage of USB power line and the controller stops working. I'm still suspecting USB power, could you test some more?

Try hooking up only the controller to USB without HHKB, case and battery.  It should make red LED blink twice at startup and keep green one lit solid.

Do you have HHKB default cable?  It is very reliable, use it if possible. And if you are using external USB hub give it power with wall wart or use port on PC directly.  Or other PC are available to test?

If these tests still fail the controller likely has defect somewhere on it. Contact seller, maybe me?
Title: Re: [TMK] HHKB Alt Controller
Post by: ipreferpie on Sun, 15 May 2016, 02:40:08
Just tried following your recommendation of removing the controller from everything, and what happened was the Red LED blinked twice, with the Green LED being on. But just like in the video, the green LED shut off within 1-2 seconds. It used to be 10-20 seconds, but not it's getting even shorter. I believe I bought it from you a while back
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 15 May 2016, 20:08:58
Pretty unfortunate, because my VB87M 1200 mAh Li-Ion battery works on this controller only for about 2 hours.
I don't know why, maybe a ****ty battery, I don't know how to test the capacity.
Also it doesn't charge up to 4.2V, the working voltage in hid_listen is about 3.7-3.5V then it shuts down.
I've already ordered Happy Hacking Professional BT, should arrive in a couple of days.

Joric,
Now I come to think your battery charger was broken by connecting battery with reverse polarity. So the battery is not fully charged with the controller. The charger chips seems to have reverse polarity protection in power input side but not in battery side.

You can get replacement for the part from me, I think you have decent tools and skill to replace it but I can do it for you if you send it back to me. Contact me.
Title: Re: [TMK] HHKB Alt Controller
Post by: vegs on Sun, 22 May 2016, 09:15:14
Is it possible to map for example ("CTRL" + ",") to "<", and ("CTRL + ".") to ">"?

I recently changed to using my HHKB on a W10 PC instead of a Mac, and it turns out it's difficult to use custom keymaps :(
Title: Re: [TMK] HHKB Alt Controller
Post by: joric on Sun, 22 May 2016, 17:54:38
Joric,
Now I come to think your battery charger was broken by connecting battery with reverse polarity. So the battery is not fully charged with the controller. The charger chips seems to have reverse polarity protection in power input side but not in battery side.

You can get replacement for the part from me, I think you have decent tools and skill to replace it but I can do it for you if you send it back to me. Contact me.

Thanks, I did! Btw, people, check out my attempt at flashing RN-42 firmware into HC-06. http://imgur.com/a/1LHSR
Might be good for the community because learning RN-42 I could figure out a few things (switching between devices/energy saving, etc.). For example, it's possible to control connection without GPIO6 (that might not present on the board), just sending HID report 0 to disconnect or CFI in command mode to connect.

(http://i.imgur.com/9oqB0aN.jpg) (http://imgur.com/a/1LHSR)

Title: Re: [TMK] HHKB Alt Controller
Post by: pyro2927 on Sun, 22 May 2016, 18:42:43
Just replying to throw another battery in the ring. If you've got a MicroCenter near your house (like I do), the Wicked Device 2300 mAh battery fits, albeit just barely.

(http://i.imgur.com/36I9BRj.jpg)
http://www.microcenter.com/product/458057/2,300_mAh_Li-Po_Battery_and_Charger (http://www.microcenter.com/product/458057/2,300_mAh_Li-Po_Battery_and_Charger)
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 22 May 2016, 20:37:04
Is it possible to map for example ("CTRL" + ",") to "<", and ("CTRL + ".") to ">"?

I recently changed to using my HHKB on a W10 PC instead of a Mac, and it turns out it's difficult to use custom keymaps :(

In short answer, no unfortunately. You better change keyboard layout with OS configuration or tools on PC.
Longer one is that it is complex to implement and not perfect solution for your need even if it is possible.
Title: Re: [TMK] HHKB Alt Controller
Post by: pyro2927 on Mon, 23 May 2016, 10:23:01
Is there a known issue with BT mode and USB mode switching LGui and LAlt keys?  I am using the stock HHKB firmware that the controller came with, and when plugged in via USB they work as expected (Alt on the outside, Gui and on the inside), but when I switch over the BT mode, the keys are flipped.  Is this part of the stock firmware, and I just need to override it?
Title: Re: [TMK] HHKB Alt Controller
Post by: joric on Wed, 01 June 2016, 11:30:50
HHKB Alt Controller repair (MCP73832)

(http://i.imgur.com/V89f4GR.jpg)

Hasu had another user who connected battery reversely and his controller doesn't charge anymore. He was almost sure charger circuit doesn't work and charger chip MCP73832 was fried. Sent me a replacement chip, I've resoldered it and charging now works - 4.2V at the battery (was 3.6) and all status leds work as well (the chip above the battery connector, U4). Resoldered it with a thin solder tip (no heating gun). It's really tiny, 2x3 mm DFN.

Battery (2600 mAh from ebay)

(http://i.imgur.com/DPCtxQ7.jpg)

Hasu also sent me the battery connector. I've soldered longer wires to the battery and recrimped the connector, now it looks near-perfect. Battery fits really well, no problems at all. Bought the battery here http://www.ebay.com/itm/261625368941 Said to work at least 24 hours in a row. Edit: about 32 hours in a row - 4 working days, almost a 40-hour workweek. Charges up to full 4.2V.
Title: Re: [TMK] HHKB Alt Controller
Post by: Xe0n0 on Fri, 10 June 2016, 11:30:35
Hi,

Is it possible to usb micro usb instead of mini usb on the alt controller. Mini USB has really poor reliability and my Mini USB slot just broke today : ( It seems I need to redo the soldering to make it work again but I'm also thinking about to soldering a micro usb one instead.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 10 June 2016, 18:21:03
Micro USB doesn't fit on footprint of mini connector and you may have o file connector window of the case.

You can make breakout PCB for micro like Manistein did on type c.

https://github.com/manisteinn/usb-type-c-hhkb/blob/master/README.md

Can you post pic of your board?

Sent from my Nexus 5X using Tapatalk

Title: Re: [TMK] HHKB Alt Controller
Post by: joric on Sat, 11 June 2016, 01:55:56
Made a small patch that types battery level to screen if you're connected via bluetooth and hid_listen is unavailable.
Just press LShift+RShift+b and it will automatically type something like "BAT: 3790mV". Could be used for other messages as well.

Code: [Select]
diff --git a/keyboard/hhkb/rn42/rn42.c b/keyboard/hhkb/rn42/rn42.c
index 710169e..0af0daf 100644
--- a/keyboard/hhkb/rn42/rn42.c
+++ b/keyboard/hhkb/rn42/rn42.c
@@ -235,3 +235,16 @@ static void config_send_keyboard(report_keyboard_t *report) {}
 static void config_send_mouse(report_mouse_t *report) {}
 static void config_send_system(uint16_t data) {}
 static void config_send_consumer(uint16_t data) {}
+
+void rn42_printf(const char * format, ...) {
+    int i;
+    char buf[16];
+    va_list args;
+    va_start(args, format);
+    vsprintf(buf, format, args);
+    va_end(args);
+    for (i=0; i<strlen(buf); i++) {
+        serial_send(buf[i]);
+    }
+}
+
diff --git a/keyboard/hhkb/rn42/rn42.h b/keyboard/hhkb/rn42/rn42.h
index db6916f..9ec0d0c 100644
--- a/keyboard/hhkb/rn42/rn42.h
+++ b/keyboard/hhkb/rn42/rn42.h
@@ -19,5 +19,6 @@ void rn42_cts_hi(void);
 void rn42_cts_lo(void);
 bool rn42_linked(void);
 void rn42_set_leds(uint8_t l);
+void rn42_printf(const char * format, ...);
 
 #endif
diff --git a/keyboard/hhkb/rn42/rn42_task.c b/keyboard/hhkb/rn42/rn42_task.c
index 5107fef..e465eaa 100644
--- a/keyboard/hhkb/rn42/rn42_task.c
+++ b/keyboard/hhkb/rn42/rn42_task.c
@@ -364,6 +364,7 @@ bool command_extra(uint8_t code)
             xprintf("%02u:",   t/3600);
             xprintf("%02u:",   t%3600/60);
             xprintf("%02u\n",  t%60);
+            rn42_printf("BAT: %umV\t", b);
             return true;
         case KC_U:
             if (config_mode) return false;
Title: Re: [TMK] HHKB Alt Controller
Post by: WNovizar on Tue, 14 June 2016, 03:15:24
Hi, hasu and others.

I am interested in buying HHKB Pro2 BT Controller, however I have a few questions:

1. I have bad experience with LiPo batteries before, so are there alternatives from LiPo?
2. Where can I buy this LiPo battery?
3. This controller is TMK programmable, correct? Does it also programmable with EasyAVR?

Thank you.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Tue, 14 June 2016, 05:59:57
1. No, get lipo battery. Btw, what is your experience in fact?
2. Sparkfun or adafruit are recommended. See the first post.
3. Yes, this is completely programmable with tmk. Tmk primarily exists my hhkb controller. I guess it is compatible with easy avr in terms of hardware but not supported at this time.

Sent from my Nexus 5X using Tapatalk

Title: Re: [TMK] HHKB Alt Controller
Post by: WNovizar on Tue, 14 June 2016, 06:34:46
1. No, get lipo battery. Btw, what is your experience in fact?
2. Sparkfun or adafruit are recommended. See the first post.
3. Yes, this is completely programmable with tmk. Tmk primarily exists my hhkb controller. I guess it is compatible with easy avr in terms of hardware but not supported at this time.

Sent from my Nexus 5X using Tapatalk

Let's just say I short circuited when LiPo batteries on my phone overheated. Will check sparkfun and adafruit in the mean time
Title: Re: [TMK] HHKB Alt Controller
Post by: nothing4me on Tue, 14 June 2016, 16:28:58
Any plans for updating the editor for HHKB JP?  :)
Title: Re: [TMK] HHKB Alt Controller
Post by: wheeeeeeeeew on Wed, 22 June 2016, 15:25:16
Here to chime in with my experience. I just got the chip yesterday and my LiPo battery today, and I've pretty much gotten everything to work.

I used a generic I found on Canada Robotix: http://www.canadarobotix.com/battery-chargers/battery-lithium-2000mah, and it was pretty much a perfect fit. In fact, it's so snug that tape probably wouldn't even help more:

[attach=1][attach=2][attach=3]

Remapping is great, media keys work across Windows and OS X, so my experience has been great so far.

EDIT:

Looked up size comparisons.

Sparkfun 2000 mAh: 5.8 x 54 x 60mm
This one: 60 x 50 x 5 mm (±1 mm)

Given how snug this one is, the Sparkfun 2000 mAh will probably NOT fit.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 22 June 2016, 16:37:52
Thank you for the posting. Nice to know.

As for Sparkfun 2000mAh, I got one from local shop the other day and it does't fit in the place unfortunately.
(http://i.imgur.com/Zo8Uyq2l.jpg)
Title: Re: [TMK] HHKB Alt Controller
Post by: kaiserreich on Thu, 07 July 2016, 12:15:35
Looks like someone copied the pcb exactly and is selling it for roughly the same price in china

https://world.taobao.com/item/534841735234.htm?spm=a312a.7700714.0.0.llkFjX#detail
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 07 July 2016, 18:17:02
Oh my :(
Title: Re: [TMK] HHKB Alt Controller
Post by: mr.bean on Sun, 17 July 2016, 15:43:27
Hey, hasu

I have a strange problem with my controller. No input is registered but the keyboard is still recognized by my machine and I can still flash the firmware.
The keyboard works fine with original controller.

Any ideas?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 17 July 2016, 15:50:21
Hey, hasu

I have a strange problem with my controller. No input is registered but the keyboard is still recognized by my machine and I can still flash the firmware.
The keyboard works fine with original controller.

Any ideas?

First, download a firmware with default keymap from keymap editor and flash it. This will make your debug process easy and clear.

1) Plug with holding Space and Backspace key to clear BootMagic configuration.
2) Check if internal connecters are mated firmly.
Title: Re: [TMK] HHKB Alt Controller
Post by: mr.bean on Sun, 17 July 2016, 16:44:06
1) Plug with holding Space and Backspace key to clear BootMagic configuration.
This solved the issue, thanks.

Title: Re: [TMK] HHKB Alt Controller
Post by: childofthehorn on Wed, 20 July 2016, 13:15:31
Firstly, as someone else who designs and makes board, this is a well laid out and manufactured bit of kit.

I was able to do the swap with minimal time and effort.

Also, I was able to fit a 2000mah battery with no issues. These are batteries that we had made (also with longer leads) for a product we sell called LEDgoes/BriteBlox. I people want to buy the battery stateside, I could put just the Lipo battery for sale on Tindie or just PM me.

I finally got a HHKB because of this board and it does not disappoint. Now to make a new 3D printed case as Black is boring!

Title: Re: [TMK] HHKB Alt Controller
Post by: Trev on Thu, 21 July 2016, 20:17:01
Just swapped over to the BT board, very easy install. Looks like this thing will be useful! Thanks Hasu :)

I've noticed input from the keyboard isn't registered when the computer is in bios/EFI mode, is there a setting I need to change to get this working? I'm connected via USB.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 21 July 2016, 20:38:58
childofthehorn, Thanks for your report and offer. yes, longer wire is nice :D some of batteries has too short wire for my controller :(

Trev, some people have reported problems with UEFI and USB3, but unfortunately I don't have any system with those to debug yet. I have slightly a plan to update my computer though.
NKRO is well known for its problem with BIOS/UEFI, trun off NKRO mode if you using it.
Title: Re: [TMK] HHKB Alt Controller
Post by: Trev on Thu, 21 July 2016, 21:36:57
Ah, thanks. This was still with the default firmware (which I assume has NKRO disabled). I'll try other USB ports next time.
Title: Re: [TMK] HHKB Alt Controller
Post by: shrubkeys on Fri, 22 July 2016, 13:21:33
childofthehorn, Thanks for your report and offer. yes, longer wire is nice :D some of batteries has too short wire for my controller :(

Trev, some people have reported problems with UEFI and USB3, but unfortunately I don't have any system with those to debug yet. I have slightly a plan to update my computer though.
NKRO is well known for its problem with BIOS/UEFI, trun off NKRO mode if you using it.

Older Z77 motherboard/chipset. No conflicts with the keyboard and UEFI or USB 3. FWIW. :)
Title: Re: [TMK] HHKB Alt Controller
Post by: Trev on Fri, 22 July 2016, 23:25:28
Just wanted to confirm that switching to a low-speed USB port resolves the EFI mode issues.
Title: Re: [TMK] HHKB Alt Controller
Post by: OfTheWild on Tue, 02 August 2016, 21:41:38
Got mine installed the other night but still waiting on my battery to come. I opted to grab the 2300mAh from microcenter per pyro2927's previous post.
More details pics to come but here the idea:

(https://c4.staticflickr.com/9/8275/28732996355_fbd68b73c2_b.jpg) (https://flic.kr/p/KM37LT)
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 04 August 2016, 21:11:39
Just want to share URL of 'Space Fn' made on  keymap editor by request from some user.
It has 'Space (L4)' keycode on space bar and you can define 'Space Fn' mapping on Layer 4.

http://bit.ly/2apCeal
Title: Re: [TMK] HHKB Alt Controller
Post by: Trev on Thu, 04 August 2016, 22:18:39
I've still had intermittent issues with EFI/BIOS mode. It was working once, but haven't had any luck since then. No key presses are registered. USB port/speed doesn't appear to make a difference.

Motherboard is Z77 based (GA-Z77X-UP5 TH). The following keyboards are confirmed working ok in EFI mode on the same hardware: Realforce 87U, KBT Pure, random Logitech membrane kb, stock HHKB controller.

I wonder what the firmware could be doing differently that's causing issues?
Title: Re: [TMK] HHKB Alt Controller
Post by: OfTheWild on Thu, 04 August 2016, 22:37:38
put in the new battery..
(http://i.imgur.com/rPtSQaf.jpg)

Look ma! no hands!
(http://i.imgur.com/Qiv61FJ.jpg)
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 04 August 2016, 22:39:25
Trev,
Could you see if there is difference between stock HHKB with turning DIPSW6 on and off? This switch enable/disables USB remote wakeup function, which is related for wake a computer up from keyboard.

And please try this firmware without media keys, mouse keys and NKRO, which acts as a just very simple 6KRO keyboard. I think this confirms if those functions are culprit or not.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 04 August 2016, 23:22:20
Look ma! no hands!
Show Image
(http://i.imgur.com/Qiv61FJ.jpg)


hhkb on laptop is nice :D
I like this setup especially on the road and yes, it is exactly why I made this alt controller.

This was orignially my problem.
(http://i.imgur.com/AImr68Ph.jpg)

First, I did a case mod to place USB outlet on side, but cable was still annoying when I sit on floor with crossed legs.
(http://i.imgur.com/BydTHB3h.jpg)

Then, BT controller, and mouse keys instead of TrackPoint :D
(http://i.imgur.com/CaNGGgdh.jpg)



Title: Re: [TMK] HHKB Alt Controller
Post by: OfTheWild on Fri, 05 August 2016, 11:38:14
Yup ^^ thats exactly why I grabbed your board too. I plan on making 90 degree right angle coiled usb cables for my fc660c to reduce this issue as well. Now i just need some wide feet for my hhkb not to sit on the keys!
Title: Re: [TMK] HHKB Alt Controller
Post by: Trev on Fri, 05 August 2016, 17:28:55
Trev,
Could you see if there is difference between stock HHKB with turning DIPSW6 on and off? This switch enable/disables USB remote wakeup function, which is related for wake a computer up from keyboard.

And please try this firmware without media keys, mouse keys and NKRO, which acts as a just very simple 6KRO keyboard. I think this confirms if those functions are culprit or not.

Just tested. Using stock HHKB controller, both DIP6 ON or OFF work fine in EFI mode. I verified with both reboots and full cold starts for each mode.
Title: Re: [TMK] HHKB Alt Controller
Post by: bamtan on Thu, 11 August 2016, 03:04:35
Thank you for the posting. Nice to know.

As for Sparkfun 2000mAh, I got one from local shop the other day and it does't fit in the place unfortunately.
Show Image
(http://i.imgur.com/Zo8Uyq2l.jpg)


Is it possible to cut out that tiny part thats obstructing the battery? I just received mine and I'm having the same issue (theres no other room to place it)
Title: Re: [TMK] HHKB Alt Controller
Post by: bamtan on Thu, 11 August 2016, 04:27:10
Thank you for the posting. Nice to know.

As for Sparkfun 2000mAh, I got one from local shop the other day and it does't fit in the place unfortunately.
Show Image
(http://i.imgur.com/Zo8Uyq2l.jpg)


Is it possible to cut out that tiny part thats obstructing the battery? I just received mine and I'm having the same issue (theres no other room to place it)

I just answered my own question, cut it out and it fits! Typing on my bluetoothed HHKB, thanks Hasu!!

(http://i.imgur.com/LV50VvF.jpg)
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 11 August 2016, 06:47:43
nice and direct solution! :D
Title: Re: [TMK] HHKB Alt Controller
Post by: OfTheWild on Wed, 17 August 2016, 21:36:02
how does that impact the board stability though? I'm wondering if I can move it out of the way to another region of the board to help but still allow for a much larger or second battery.

I'm also curious, has anyone figured out how to get Mac OSX to read/report the bluetooth battery bar? For some reason its not picking it up from the board or maybe I need to do something to the board to report it to the host?

This is what i'm looking at which i thought would also show up in the top bar of the laptop:
(http://i.imgur.com/8AGp5Lv.png)

And lastly, How difficult would it be to have some kind of timer to automatically put the board into "sleep" mode if no input is seen for X amount of time? I'm just trying to brainstorm some ideas to make the battery last longer. I cant be the only one that constantly leaves it on and walks away.
Title: Re: [TMK] HHKB Alt Controller
Post by: debiatan on Thu, 25 August 2016, 13:05:00
A few days ago I ordered a couple of Hasu's alternate HHKB controllers (Pro1 and Pro2, both USB). They arrived yesterday. Setting them up and flashing them was a breeze. Thanks, Hasu!  :)
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 25 August 2016, 21:31:56
I'm also curious, has anyone figured out how to get Mac OSX to read/report the bluetooth battery bar? For some reason its not picking it up from the board or maybe I need to do something to the board to report it to the host?
Battery report is not supported by the bluetooth module, you cannot get battery status unfortunately.

Quote
And lastly, How difficult would it be to have some kind of timer to automatically put the board into "sleep" mode if no input is seen for X amount of time? I'm just trying to brainstorm some ideas to make the battery last longer. I cant be the only one that constantly leaves it on and walks away.
It is not difficult to enter power saving mode after some of unused duration but power saving methods of this bluetooth module is not so useful and effective. It will be impossible(or very difficult) to make it sleep with keeping connection or resume it from sleep quickly.

This module is extremely useful and stable to implement BT keyboard while very power hog or difficult to control for saving power.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 25 August 2016, 21:35:32
A few days ago I ordered a couple of Hasu's alternate HHKB controllers (Pro1 and Pro2, both USB). They arrived yesterday. Setting them up and flashing them was a breeze. Thanks, Hasu!  :)

Great.
Happy to see Pro1 user! Pro1 has been still my main daily board for decade.
Title: Re: [TMK] HHKB Alt Controller
Post by: OfTheWild on Thu, 25 August 2016, 22:40:49
I'm also curious, has anyone figured out how to get Mac OSX to read/report the bluetooth battery bar? For some reason its not picking it up from the board or maybe I need to do something to the board to report it to the host?
Battery report is not supported by the bluetooth module, you cannot get battery status unfortunately.

Quote
And lastly, How difficult would it be to have some kind of timer to automatically put the board into "sleep" mode if no input is seen for X amount of time? I'm just trying to brainstorm some ideas to make the battery last longer. I cant be the only one that constantly leaves it on and walks away.
It is not difficult to enter power saving mode after some of unused duration but power saving methods of this bluetooth module is not so useful and effective. It will be impossible(or very difficult) to make it sleep with keeping connection or resume it from sleep quickly.

This module is extremely useful and stable to implement BT keyboard while very power hog or difficult to control for saving power.

Ok so its the bluetooth module on the board that doesn't report batter level - oh well. One day!

As for the "sleep" function... but is it possible? Lets just say if you don't press a key for ~30 minutes it should shut off and you then have to hit a key to wake it up?
I feel like that would be so helpful. Or maybe i just keep going for larger and larger batteries!

Anyway, i just want to say that I absolutely love this mod... hands down one of my favorite things about an HHKB.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 25 August 2016, 23:28:44
Ok so its the bluetooth module on the board that doesn't report batter level - oh well. One day!

As for the "sleep" function... but is it possible? Lets just say if you don't press a key for ~30 minutes it should shut off and you then have to hit a key to wake it up?
I feel like that would be so helpful. Or maybe i just keep going for larger and larger batteries!

hmm, maybe possible but I think very difficult to get effective power saving without sacrificing typing experience, namely, latency and quickly resuming.

You will have to disconnect current session and turn the module into low power mode to reduce power consumption. But it takes several secs to connect it again when resuming.
Also you can configure Sniff parameter to save battery but it cause latency on typing experience.

You can consult documentations of the module, see 5 Power Management especially.
https://www.sparkfun.com/datasheets/Wireless/Bluetooth/rn-bluetooth-um.pdf
Title: Re: [TMK] HHKB Alt Controller
Post by: OfTheWild on Fri, 26 August 2016, 00:50:21
Ok so its the bluetooth module on the board that doesn't report batter level - oh well. One day!

As for the "sleep" function... but is it possible? Lets just say if you don't press a key for ~30 minutes it should shut off and you then have to hit a key to wake it up?
I feel like that would be so helpful. Or maybe i just keep going for larger and larger batteries!

hmm, maybe possible but I think very difficult to get effective power saving without sacrificing typing experience, namely, latency and quickly resuming.

You will have to disconnect current session and turn the module into low power mode to reduce power consumption. But it takes several secs to connect it again when resuming.
Also you can configure Sniff parameter to save battery but it cause latency on typing experience.

You can consult documentations of the module, see 5 Power Management especially.
https://www.sparkfun.com/datasheets/Wireless/Bluetooth/rn-bluetooth-um.pdf

Yeah that sounds exactly what i'd be wanting to test out. "Sniff" seems to be a bluetooth function that allows for a low power mode that wakes up on its own within milliseconds? Have you tried it and it does not "feel" right? I'm just wondering if we could push this battery life out for days instead of hours.

Quote
SW,<hex word> Enable low power SNIFF mode. Default is 0000=disabled. SNIFF mode allows
extreme low power operation. Device goes into a deep sleep, and wakes up every
 625us * <hex word> to send/receive chars.
Example: SW,0050 enables Sniff mode with interval time of 50 milliseconds
 This will cause the module to enter low power sleep, and wake once every 50
milliseconds to check for RF activity. See Section 5.2 for more details on Sniff and
managing power.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 26 August 2016, 01:35:32
Ok so its the bluetooth module on the board that doesn't report batter level - oh well. One day!

As for the "sleep" function... but is it possible? Lets just say if you don't press a key for ~30 minutes it should shut off and you then have to hit a key to wake it up?
I feel like that would be so helpful. Or maybe i just keep going for larger and larger batteries!

hmm, maybe possible but I think very difficult to get effective power saving without sacrificing typing experience, namely, latency and quickly resuming.

You will have to disconnect current session and turn the module into low power mode to reduce power consumption. But it takes several secs to connect it again when resuming.
Also you can configure Sniff parameter to save battery but it cause latency on typing experience.

You can consult documentations of the module, see 5 Power Management especially.
https://www.sparkfun.com/datasheets/Wireless/Bluetooth/rn-bluetooth-um.pdf

Yeah that sounds exactly what i'd be wanting to test out. "Sniff" seems to be a bluetooth function that allows for a low power mode that wakes up on its own within milliseconds? Have you tried it and it does not "feel" right? I'm just wondering if we could push this battery life out for days instead of hours.

Quote
SW,<hex word> Enable low power SNIFF mode. Default is 0000=disabled. SNIFF mode allows
extreme low power operation. Device goes into a deep sleep, and wakes up every
 625us * <hex word> to send/receive chars.
Example: SW,0050 enables Sniff mode with interval time of 50 milliseconds
 This will cause the module to enter low power sleep, and wake once every 50
milliseconds to check for RF activity. See Section 5.2 for more details on Sniff and
managing power.

It was a bit sluggish with noticeable latency when I tried Sniff mode. I decided not to use Sniff mode in default configuration in my firmware.

You can try it easily with using RN42 config mode(LShift+RShift+Del) and 'hid_listen' tool.
Check MANUAL>Bluetooth Controller section in the first post for detail.
Title: Re: [TMK] HHKB Alt Controller
Post by: ronanjia on Tue, 13 September 2016, 20:51:59
hi, hasu,

i just PM you yesterday, and i place an order here to buy a BT controller for HHKB Pro2, address in japan will be sent to you as well.
looking forward to receiving from you.
Title: Re: [TMK] HHKB Alt Controller
Post by: q1w2e3r4t5z on Wed, 28 September 2016, 11:05:07
Battery report is not supported by the bluetooth module, you cannot get battery status unfortunately.
Are you planning to support NTC in the near future? Maybe with another revision?

Apart from this it works flawlessly with Android!
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 28 September 2016, 16:21:54
Battery report is not supported by the bluetooth module, you cannot get battery status unfortunately.
Are you planning to support NTC in the near future? Maybe with another revision?

Apart from this it works flawlessly with Android!

What is NTC?

Yes, I prefer Android to iOS, it can accept mousekeys!
Title: Re: [TMK] HHKB Alt Controller
Post by: q1w2e3r4t5z on Thu, 29 September 2016, 06:06:26
https://electronics.stackexchange.com/questions/10588/why-are-there-3-pins-on-some-batteries

Measures temperature and to some extent capacity as well
Title: Re: [TMK] HHKB Alt Controller
Post by: cmd on Sun, 02 October 2016, 08:57:27
Anyone have any issues with hasu controller not being recognized on start up?

(i.e. shutting down > powering on > get the bios error "no keyboard recognized")
Title: Re: [TMK] HHKB Alt Controller
Post by: nimish on Mon, 03 October 2016, 03:56:09
interested in the BT for hhkb 2.0 but the power consumption is a bit much. HHKB BT official can get 3 months off 3 AA's. Is there any progress on improving battery life?

Atmel has the SAM B11 modules for very low power BLE SoC, or upgrading the atmega here to one that has onboard USB would be interesting...I'm more of a software than HW person so I couldn't help much on the board design (I'd be happy to learn)
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 05 October 2016, 19:28:46
Anyone have any issues with hasu controller not being recognized on start up?

(i.e. shutting down > powering on > get the bios error "no keyboard recognized")

Tried another PC? and what's your hardware, like chipset, motherboard and BIOS/UEFI? and what's your OS?
Perhaps NKRO causes this problem, firmware disabling NKRO may work.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 05 October 2016, 20:03:54
interested in the BT for hhkb 2.0 but the power consumption is a bit much. HHKB BT official can get 3 months off 3 AA's. Is there any progress on improving battery life?

Atmel has the SAM B11 modules for very low power BLE SoC, or upgrading the atmega here to one that has onboard USB would be interesting...I'm more of a software than HW person so I couldn't help much on the board design (I'd be happy to learn)

I think you basically need new hardware design and new module to save power greatly.
In current controller one half of power is consumed for scanning HHKB switches and another for Bluetooth. HHKB switches require 5V, draw around 15-20mA at all times and take long time(10-15ms) to scan all its matrix, it will need new desgin PCB with low voltage and fast capacitive sense method to save more power. Current bluetooth module is very useful and easy to make keyboard while it deosn't take care of power saving much. New modules would be great for power saving and new BT4.x. That said, my firmware is not optimized fully, there is still room to improvement battery life 30-40% longer.

I think PFU HHKB BT uses new fast scanning method with low voltage and Broadcom module well known for very low power drain.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 05 October 2016, 22:32:27
Does anyone have problem on USB suspend(sleep)/resume(wakeup) and BIOS/EFI with TMK Controller?
I am debuging and updating USB code in repository and wan to get infos on this from users, like which controller you are using, detailed problem description, OS, computer hardware and etc.

Can you sleep computer with keeping  keyboard connected?
Can you wakeup computer with keyboard? Pressing any key on keyboard should wake your computer.
Can you use keyboard normally after wakeup(resume)?

Can you use keyboard normally after reboot?
Can you use keyboard normally on BIOS/UEFI?
Can you use keyboard normally on BIOS/UEFI after reboot?

Thanks.
Title: Re: [TMK] HHKB Alt Controller
Post by: ronanjia on Fri, 07 October 2016, 20:52:05
Hi hasu,
    i got it working finally, i bought a battery in china which is 3.7v, 2800mha, the battery size is 80*48*54 which just fit in.
    the MacOS bluetooth did not recognize the keyboard after i switched on the "BT switch", and one LED blinked RED per second which i think is searching for BT signal. But the keyboard was recognized after i charged the battery for a while, so it might be the low voltage which cause the problem or it might be i tried magic command 'p' which fix the problem.

    anyway, it works perfect for me! and thank you again for making this great chip!
    btw, the LED lights ORANGE instead RED while charging, is it normal?
Title: Re: [TMK] HHKB Alt Controller
Post by: OfTheWild on Fri, 07 October 2016, 22:11:18
    btw, the LED lights ORANGE instead RED while charging, is it normal?

yeah mine looks orange too while charging... then green when it is full. I think that is normal.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 07 October 2016, 23:19:43
    btw, the LED lights ORANGE instead RED while charging, is it normal?

yeah mine looks orange too while charging... then green when it is full. I think that is normal.

Yes, it is normal. Green(yellow) lights when pluged in USB and Red turns on when charging or low voltage of battery.

And good to know it works with MacOS.
Title: Re: [TMK] HHKB Alt Controller
Post by: ronanjia on Sat, 08 October 2016, 00:09:08
Sys Power(Fn+ESC) key works in USB mode but fails in BT mode


From my iPhone,using Tapatalk
Title: Re: [TMK] HHKB Alt Controller
Post by: nimish on Sun, 09 October 2016, 11:57:56
interested in the BT for hhkb 2.0 but the power consumption is a bit much. HHKB BT official can get 3 months off 3 AA's. Is there any progress on improving battery life?

Atmel has the SAM B11 modules for very low power BLE SoC, or upgrading the atmega here to one that has onboard USB would be interesting...I'm more of a software than HW person so I couldn't help much on the board design (I'd be happy to learn)

I think you basically need new hardware design and new module to save power greatly.
In current controller one half of power is consumed for scanning HHKB switches and another for Bluetooth. HHKB switches require 5V, draw around 15-20mA at all times and take long time(10-15ms) to scan all its matrix, it will need new desgin PCB with low voltage and fast capacitive sense method to save more power. Current bluetooth module is very useful and easy to make keyboard while it deosn't take care of power saving much. New modules would be great for power saving and new BT4.x. That said, my firmware is not optimized fully, there is still room to improvement battery life 30-40% longer.

I think PFU HHKB BT uses new fast scanning method with low voltage and Broadcom module well known for very low power drain.

hmm thats what i was afraid of...it's relatively easy to change controller/module, but the capsense will be harder to change :(
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 09 October 2016, 15:27:35
Sys Power(Fn+ESC) key works in USB mode but fails in BT mode


From my iPhone,using Tapatalk

Unfortunately it is another limitation of BT module, it doens't send System Control keys like Power, Wake and Sleep.

Title: Re: [TMK] HHKB Alt Controller
Post by: ronanjia on Sun, 09 October 2016, 20:44:05
    btw, the LED lights ORANGE instead RED while charging, is it normal?

yeah mine looks orange too while charging... then green when it is full. I think that is normal.


hey OfTheWild, thanks for that!

and one more thing, with usb cable disconnected, after i switched off the BT mode and switched on again, my hhkb will not auto connect to my MacOS(which the keyboard connected last time), the keyboard icon in my BT setting stays "unconnected", and i have to reconnect it to let it work, is there any way to make it auto connected after i swtiched on?
Title: Re: [TMK] HHKB Alt Controller
Post by: sidejo on Mon, 10 October 2016, 07:16:26
Is it possible to map nordic characters like ÆØ  to certain keys? :)
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Mon, 10 October 2016, 23:25:10
Is it possible to map nordic characters like ÆØ  to certain keys? :)
I think it is possible but depends largely on your layout on your OS. Maybe you have to compile yourself to define macro or function. As of now keymap editor won't support this yet.

Sent from my Nexus 5X

Title: Re: [TMK] HHKB Alt Controller
Post by: Laser on Sun, 13 November 2016, 06:47:33
Couple of questions for Hasu regarding his alternative controller board for HHKB:

1. I read somewhere (here (https://deskthority.net/keyboards-f2/adventures-in-topre-land-t7436.html)) that the capacity is not actually read as 0/1, but as a continuous range of values (i.e. "analogic"). 
Is that actuation information available to the alternative controller / TMK firmware? 
I mean, at least in theory, could one setup a "piano mode" in which the HHKB key presses would be read as multiple values per key press? 
Instead of "key pressed", "key released" something like 0.1, 0.2, 0.3, 0.4 ... 0.8, 0.9, 1.0, 1.0, 1.0 ... 0.9, 0.8, 0.7 ... 0.2, 0.1, 0.0 etc.

2. If I would want to "mod" the HHKB to allow for an extra switch (not Topre), (e.g. to make a split spacebar), can the controller "learn" about this extra switch and use it in the TMK firmware?

Thanks!
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 13 November 2016, 19:58:16
Laser,

1. No. This controller reads digital(on/off) switch status from Topre capacitive sensor chip, to get analog status you have to read directly swtich capactive without the Topre chip. You need to modify switch matrix PCB, namely. See this thread, in this project I read real values direlctly from Realforce switches.
https://geekhack.org/index.php?topic=76040.0

2. You have to write code for the extra switch  in C. You can learn TMK code and C if needed.
Title: Re: [TMK] HHKB Alt Controller
Post by: Laser on Mon, 14 November 2016, 05:17:16
Laser,

1. No. This controller reads digital(on/off) switch status from Topre capacitive sensor chip, to get analog status you have to read directly swtich capactive without the Topre chip. You need to modify switch matrix PCB, namely. See this thread, in this project I read real values direlctly from Realforce switches.
https://geekhack.org/index.php?topic=76040.0

2. You have to write code for the extra switch  in C. You can learn TMK code and C if needed.

Thanks for answering (and for the link)!

I have no problem with C, and I can learn TMK - but I don't know the hardware aspects ... i.e where do I connect the extra switch to the Controller Board?
(or is it similar as when using extra LEDs, but with pins configured as inputs instead of outputs? - I asked you about extra LEDs some time ago and you told me how to do it - I have it noted somewhere).


Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Mon, 14 November 2016, 06:12:50
You can use debug pins near reset switch and ICSP pins  on left of board. Right, those pins can be configured as either input or output.

Sent from my Nexus 5X

Title: Re: [TMK] HHKB Alt Controller
Post by: Laser on Mon, 14 November 2016, 07:09:07
Thanks! :)
Title: Re: [TMK] HHKB Alt Controller
Post by: OfTheWild on Mon, 14 November 2016, 22:24:32
    btw, the LED lights ORANGE instead RED while charging, is it normal?

yeah mine looks orange too while charging... then green when it is full. I think that is normal.


hey OfTheWild, thanks for that!

and one more thing, with usb cable disconnected, after i switched off the BT mode and switched on again, my hhkb will not auto connect to my MacOS(which the keyboard connected last time), the keyboard icon in my BT setting stays "unconnected", and i have to reconnect it to let it work, is there any way to make it auto connected after i swtiched on?

Mine connects automatically each time I turn it on. I dont have to mess with bluetooth or devices at all.
Even when its not connected it still shows up in my devices like this: http://imgur.com/FbtESL2
(i renamed it to hhkb pro2). It should remember its settings. It does take a while to connect sometimes. I found that I usually need to be logged in when it connects from being asleep.
Title: Re: [TMK] HHKB Alt Controller
Post by: SawyeR on Sat, 26 November 2016, 10:26:16
My Hasu arrived today. It took 30 minutes to install, configure keymap and flash the firmware. Now my HHKB is 1000 times better!!!

Hasu is a genius.
Title: Re: [TMK] HHKB Alt Controller
Post by: andersonht365 on Tue, 06 December 2016, 22:06:19
Hey Hasu,
I have been using the BT controller for about 2 months now and it works great! Thank you!
Is it possible to switch to a different device that my hhkb is paird with, using keystrokes? Similar fashion to how the Logitech MX master handles device pairing?

Sorry if I am unclear, thank you!
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Tue, 06 December 2016, 23:06:46
Hey Hasu,
I have been using the BT controller for about 2 months now and it works great! Thank you!
Is it possible to switch to a different device that my hhkb is paird with, using keystrokes? Similar fashion to how the Logitech MX master handles device pairing?

Sorry if I am unclear, thank you!


Glad to hear it works for you! :D

Unfortunately it is not possible to switch connection between multiple hosts dynamically, this limitation comes from behaviour of BT module :(
The module baiscally connects to host connected the last time automatically, if the last host is not found it tries to connect second last host, thrid one then fourth one...
As far as the last host is searchable, connectable your keyboard keeps connection with it. To connect other host you have to turn off Bluetooth(or keep out of radio range) or delete pairing info of the last host.
Title: Re: [TMK] HHKB Alt Controller
Post by: ronanjia on Wed, 28 December 2016, 21:21:41
    btw, the LED lights ORANGE instead RED while charging, is it normal?

yeah mine looks orange too while charging... then green when it is full. I think that is normal.


hey OfTheWild, thanks for that!

and one more thing, with usb cable disconnected, after i switched off the BT mode and switched on again, my hhkb will not auto connect to my MacOS(which the keyboard connected last time), the keyboard icon in my BT setting stays "unconnected", and i have to reconnect it to let it work, is there any way to make it auto connected after i swtiched on?

Mine connects automatically each time I turn it on. I dont have to mess with bluetooth or devices at all.
Even when its not connected it still shows up in my devices like this: http://imgur.com/FbtESL2
(i renamed it to hhkb pro2). It should remember its settings. It does take a while to connect sometimes. I found that I usually need to be logged in when it connects from being asleep.

It connects automatically after several times, i wonder if it is because this BT mod can remember 8 devices connected, so after all the member slots are in use, it can connect automatically! Hahaha


从我的 iPhone 发送,使用 Tapatalk
Title: Re: [TMK] HHKB Alt Controller
Post by: SawyeR on Tue, 03 January 2017, 01:36:15
Update: I just discovered that it was an Wacom’s driver issue. Downgraded to the older driver and it works fine now.

Holding Shift and Cmd on my HASU HHKB no longer works in some apps (works fine using built-in Mac keyboard). Shortcuts with Cmd or Shift still work. Does anyone experience this?

Thanks!
Title: Re: [TMK] HHKB Alt Controller
Post by: testplsignore on Tue, 03 January 2017, 19:43:17
Is it possible to use the BT without a battery installed?

What I want to do is have the HHKB connected to my PC over USB, and flick the switch when needed to have it connect via BT to my phone, all while powered via the USB on the PC.

Is this possible?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Tue, 03 January 2017, 20:37:48
Is it possible to use the BT without a battery installed?

What I want to do is have the HHKB connected to my PC over USB, and flick the switch when needed to have it connect via BT to my phone, all while powered via the USB on the PC.

Is this possible?

Yes, it is possible. You can use the controller without battery and switch between USB and Bluetooth by slide switch or key combo(LShift+RShift+u).
Title: Re: [TMK] HHKB Alt Controller
Post by: testplsignore on Wed, 04 January 2017, 02:16:47
Yes, it is possible. You can use the controller without battery and switch between USB and Bluetooth by slide switch or key combo(LShift+RShift+u).

Awesome, that + programmable makes this perfect for me!

Has anyone here in Aus found a local source for the battery? Otherwise is the Adafruit 2000mah the current best option?
Title: Re: [TMK] HHKB Alt Controller
Post by: tkim on Sat, 07 January 2017, 03:54:06
Thanks Hasu for your work on this pcb

I actually noticed that the adafruit 2000 has been out of a stock for a while.

I managed to buy a 1000mah battery from this online retailer (located in Germany)

http://www.exp-tech.de/polymer-lithium-ion-battery-1000mah

But since the cable was a bit short I have a bit of the battery overlapping the PCB  :-[ I'm guessing this shouldn't be done?

My only option is to go with this battery

http://www.exp-tech.de/lipo-akku-2000mah

but the dimensions are : 73mm x 50mm x 5mm

Could this be an issue? or alternatively is there somewhere in Germany I can purchase this battery without paying a shipping cost that exceeds the cost of the initial battery?
Title: Re: [TMK] HHKB Alt Controller
Post by: happylacquer on Sat, 07 January 2017, 04:01:55
Thanks Hasu for your work on this pcb

I actually noticed that the adafruit 2000 has been out of a stock for a while.

I managed to buy a 1000mah battery from this online retailer (located in Germany)

http://www.exp-tech.de/polymer-lithium-ion-battery-1000mah

But since the cable was a bit short I have a bit of the battery overlapping the PCB  :-[ I'm guessing this shouldn't be done?

My only option is to go with this battery

http://www.exp-tech.de/lipo-akku-2000mah

but the dimensions are : 73mm x 50mm x 5mm

Could this be an issue? or alternatively is there somewhere in Germany I can purchase this battery without paying a shipping cost that exceeds the cost of the initial battery?

Have you tried aliexpress, free epacket shipping to Germany... all the sizes of the battery you could want ;)
Title: Re: [TMK] HHKB Alt Controller
Post by: dyrdevil on Sun, 08 January 2017, 02:45:15
I just installed the BT controller over the holidays - very cool! 
Question:  when connected to my laptop via BT, it seems to interfere with the laptop's wifi.  Is this a common occurrence?  Would it be fixed via firmware, or would it only be the laptop wifi card with the issues?

Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 08 January 2017, 19:58:41
But since the cable was a bit short I have a bit of the battery overlapping the PCB  :-[ I'm guessing this shouldn't be done?

Yeah, this BT controller requires a bit long cable  :( I think it is no harm as far as battery is insulated certainly and free from physical stress.

Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 08 January 2017, 20:15:59
I just installed the BT controller over the holidays - very cool! 
Question:  when connected to my laptop via BT, it seems to interfere with the laptop's wifi.  Is this a common occurrence?  Would it be fixed via firmware, or would it only be the laptop wifi card with the issues?



I for one didffn't found interference between wifi and bluetooth but it can happen. I just googled for this issue and found some said changing wifi channel mitigates. You can change channel on configuration of your wifi router. Or you can use 5GHz band wifi instead of 2.4GHz which bluetooth uses.

Firmware doesn't have anything to do for this except for changing emitting power, but I think it is small already.
Title: Re: [TMK] HHKB Alt Controller
Post by: Xe0n0 on Mon, 09 January 2017, 15:23:22
Hi hasu,

Do you have plan to release a version with USB-C port? I broke the usb mini port again and now trying to re soldering it...
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Mon, 09 January 2017, 18:00:15
Hi hasu,

Do you have plan to release a version with USB-C port? I broke the usb mini port again and now trying to re soldering it...

Hi Xe0n0,
No plan on USB-C, HHKB case is not compatible with Type-C unless you are willing to file connector hole.

sounds terrible :(
Email me if you want me to fix it or send component. I'm happy to help.
Or you can post pic of your controller here and let me think how I can help.
Title: Re: [TMK] HHKB Alt Controller
Post by: tkim on Fri, 13 January 2017, 14:34:26
Thanks Hasu for your work on this pcb

I actually noticed that the adafruit 2000 has been out of a stock for a while.

I managed to buy a 1000mah battery from this online retailer (located in Germany)

http://www.exp-tech.de/polymer-lithium-ion-battery-1000mah

But since the cable was a bit short I have a bit of the battery overlapping the PCB  :-[ I'm guessing this shouldn't be done?

My only option is to go with this battery

http://www.exp-tech.de/lipo-akku-2000mah

but the dimensions are : 73mm x 50mm x 5mm

Could this be an issue? or alternatively is there somewhere in Germany I can purchase this battery without paying a shipping cost that exceeds the cost of the initial battery?

Have you tried aliexpress, free epacket shipping to Germany... all the sizes of the battery you could want ;)

Thank for the advice, I will try this website, currently still trying to figure out how to display the remaining battery using HID Listen - it just prompts with "Waiting for device..."

 :-X

I noticed that it will detect the keyboard over USB but no luck over BT, so basically the battery voltage is showing what the board is receiving over USB, so I still can't tell how much charge is left in the lipo battery
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 15 January 2017, 21:44:57
I noticed that it will detect the keyboard over USB but no luck over BT, so basically the battery voltage is showing what the board is receiving over USB, so I still can't tell how much charge is left in the lipo battery

Yes, hid_listen needs USB connection. I had read voltage via serial on PD0 pin during debug/developement without USB connection. In normal operation you cannot read battery voltage.

In battery powered BT mode power LED lights red when battery is low.

Title: Re: [TMK] HHKB Alt Controller
Post by: testplsignore on Tue, 17 January 2017, 05:31:38
Hey Hasu,

I've got your BT controller on it's way to me from 1UP Keyboards!

Have you thought about adding a bluetooth switcher to a future revision?
Something like the Filco Majestouch Convertible, where you can press a key combo and then 1-4 to choose from 4 devices?

Also, have you considered / is it possible to ever have a controller for other realforce keyboards like the 87U?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Tue, 17 January 2017, 19:21:42
Hi testplsignore,
yes, I'll do if new module supports the function. But current module has no such feature unfortunately.

In general every Realforce has one large PCB and it would cost much to replace the PCB, plus controller have to do capacitive sensing. It is still possible and intriguing to me.

This project used modified original PCB but my TMK firmware sensing capacitive switches by itself. With this we can desgin our own PCB for Realforce to control by our own firmware.
https://geekhack.org/index.php?topic=76040.msg1894368#msg1894368
Title: Re: [TMK] HHKB Alt Controller
Post by: IonutZ on Wed, 18 January 2017, 06:16:52
Hi testplsignore,
yes, I'll do if new module supports the function. But current module has no such feature unfortunately.

In general every Realforce has one large PCB and it would cost much to replace the PCB, plus controller have to do capacitive sensing. It is still possible and intriguing to me.

This project used modified original PCB but my TMK firmware sensing capacitive switches by itself. With this we can desgin our own PCB for Realforce to control by our own firmware.
https://geekhack.org/index.php?topic=76040.msg1894368#msg1894368

There is a big demand for a FC660C controller that will run your firmware. There are a bunch of people asking for it ;D whenever you have time that is!!!


Sent from my iPhone using Tapatalk
Title: Re: [TMK] HHKB Alt Controller
Post by: Laser on Thu, 19 January 2017, 11:31:19

Also, it would be "more than awesome" to port TMK firmware on a Novatouch (Topre PCB) keyboard ... there are some resources about its build/firmware aspects, here:

 - http://vekkt0r.github.io/articles/novatouch-tkl-reverse-engineering-part-1/
 - http://vekkt0r.github.io/articles/novatouch-tkk-reverse-engineering-part-2/

And it's possible to reflash a modified firmware, in certain cases using just the default USB connection (2nd method here):

 - https://github.com/vekkt0r/novatools (and also the "Issue 1" thread (https://github.com/vekkt0r/novatools/issues/1))
Title: Re: [TMK] HHKB Alt Controller
Post by: Xe0n0 on Fri, 20 January 2017, 13:35:28
Hi hasu,

Do you have plan to release a version with USB-C port? I broke the usb mini port again and now trying to re soldering it...

Hi Xe0n0,
No plan on USB-C, HHKB case is not compatible with Type-C unless you are willing to file connector hole.

sounds terrible :(
Email me if you want me to fix it or send component. I'm happy to help.
Or you can post pic of your controller here and let me think how I can help.

Thanks for offering help : ) I just bought the usb-type-c mod for hhkb by manisteinn (https://github.com/manisteinn/usb-type-c-hhkb (https://github.com/manisteinn/usb-type-c-hhkb)) and trying to change the port to usb-c. I would not be hesitated to buy two boards from you again if you offer usb-c moded board with this mod!
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 20 January 2017, 23:05:46
Hi testplsignore,
yes, I'll do if new module supports the function. But current module has no such feature unfortunately.

In general every Realforce has one large PCB and it would cost much to replace the PCB, plus controller have to do capacitive sensing. It is still possible and intriguing to me.

This project used modified original PCB but my TMK firmware sensing capacitive switches by itself. With this we can desgin our own PCB for Realforce to control by our own firmware.
https://geekhack.org/index.php?topic=76040.msg1894368#msg1894368

There is a big demand for a FC660C controller that will run your firmware. There are a bunch of people asking for it ;D whenever you have time that is!!!


Sent from my iPhone using Tapatalk

I placed a bit for FC660C on Yahoo auction but failed to get it the other day :( I'll try again when I can find it. I guess it is not so difficult to design controller for the keyboard because it is very similar to HHKB basically.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 20 January 2017, 23:37:32

Also, it would be "more than awesome" to port TMK firmware on a Novatouch (Topre PCB) keyboard ... there are some resources about its build/firmware aspects, here:

 - http://vekkt0r.github.io/articles/novatouch-tkl-reverse-engineering-part-1/
 - http://vekkt0r.github.io/articles/novatouch-tkk-reverse-engineering-part-2/

And it's possible to reflash a modified firmware, in certain cases using just the default USB connection (2nd method here):

 - https://github.com/vekkt0r/novatools (and also the "Issue 1" thread (https://github.com/vekkt0r/novatools/issues/1))


Yeah, I saw it on DT. It is really great resource for people who want to mod their Novatouch. I hope users of this hack can reward vekkt0r for his great job in some form and he can keep it updated.

Seems that porting TMK to MSP430 requires someone falimiliar to the architecture and  some time because ChibiOS on MSP430 doesn't support USB driver yet.
Title: Re: [TMK] HHKB Alt Controller
Post by: testplsignore on Sat, 21 January 2017, 03:03:17
An FC660C BT controller would be awesome!

btw: I think the bluetooth module used by both the Filco Convertible and the PFU HHKB BT is the Broadcom BCM20730
I'm not sure if the switching is handled by the bluetooth module or some other other controller. The Filco supports switching via key combo, but the HHKB BT doesn't...
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 25 January 2017, 21:12:53
Updated repository and firmware of keymap editor to fix USB startup problem of BT controller on MacOS. See this for detail. https://github.com/tmk/tmk_keyboard/issues/407

If you have problem with BT controller on MacOS/OSX try the new firmware. USB controller is not affected with this problem.

Thanks
Title: Re: [TMK] HHKB Alt Controller
Post by: testplsignore on Thu, 26 January 2017, 01:07:24
I was having this problem, was about to post here so thanks for the update!

Will the web editor use the new firmware when it generates the hex file?



Otherwise, whats the best way to convert a hex generated by the web tool to use the new firmware?

I was able to make my own firmware using terminal, but I'm not too sure how to export my custom keymap from the webtool to the ".c" file used when building the firmware manually.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 26 January 2017, 06:16:39
To load your keymap select your hex file in file chooser of "Base Firmware File:" section and then push "Load Keymap from firmware" button. You will see your keymap on keymap editor at this point. Next, check radio button "Select" and select your controller("HHKB Pro1/Pro2 Controller Bluetooth"?) to download the latest firmware.

Bookmarking "Share URL" on your browser may be a simple and easy way to keep your keymap for later update.

You can get C source at "Keymap Output(for debug):" section and you can use it to compile firmware with small change probably. But The C source is comprised of only hexadicimal digits and is not useful for manual editing at this point at least.
Title: Re: [TMK] HHKB Alt Controller
Post by: happylacquer on Fri, 27 January 2017, 08:33:07
I apologize if this was already covered and I missed it, but can you use any unprotected battery of the proper voltage or must it have its own protection pcb?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 27 January 2017, 19:00:29
I apologize if this was already covered and I missed it, but can you use any unprotected battery of the proper voltage or must it have its own protection pcb?

Yes, you must use Li-ion battery with protection circuit. See "Bluetooth Battery" of "MANUAL" section in first post for detail.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sat, 28 January 2017, 17:14:17
Is there anyone uses BT controller via Bluetooth with MacOS Sierra 10.12 successfully?
Or let me know if you have any problem with the OS.
Title: Re: [TMK] HHKB Alt Controller
Post by: testplsignore on Sun, 29 January 2017, 05:24:13
I was able to learn how to compile the firmware myself and I even got macros working!  :thumb:

I was having the problem on OSX 10.11.6 El Capitan, and it's fixed for me!
Title: Re: [TMK] HHKB Alt Controller
Post by: DannyHuynh on Tue, 31 January 2017, 17:24:19
Is there anyone uses BT controller via Bluetooth with MacOS Sierra 10.12 successfully?
Or let me know if you have any problem with the OS.

Bluetooth work perfectly on MacOS Sierra 10.12.2.
However, the USB connection is really slow, I work around this by turning on the controller in Bluetooth mode, connect the cable, and turn it off, way faster than waiting for the Mac to recognize the keyboard via USB
Title: Re: [TMK] HHKB Alt Controller
Post by: DRAZAH on Thu, 02 February 2017, 09:31:16
 I apologize in advance if this does not apply (or makes no sense) but there was a discussion recently on other forums about Input Latency and keyboards. Does this hasu controller affect the input latency of the HHKB? Is it an improvement or no? Or does it not even effect the input latency?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 03 February 2017, 06:13:01
Link to the discussion?

Sent from my Nexus 5X

Title: Re: [TMK] HHKB Alt Controller
Post by: DRAZAH on Fri, 03 February 2017, 09:18:38
http://www.overclock.net/t/1622066/realkey-keyboards

Also another discussion from the same OP with similar topic. It just got me curious about my HHKB, I did some tests with my stock board, was going to get a HASU and see if that changed anything.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 03 February 2017, 21:41:46
I don't know how to measure overall latency but I do know scan rate. Topre original controller of HHKB Pro2 takes around 15ms to scan all 64(8x8) keys in matrix, and TMK Alt controler simulates it at almost same rate.

BTW, JP scans all 128(16x8) keys in same 15ms, so 'scan speed per key' is twice faster than Pro2. Pro2 has baiscally equivalent chips in terms of speed I think Pro2 can also scan at same speed of JP.
Title: Re: [TMK] HHKB Alt Controller
Post by: Xeonxu on Sun, 05 February 2017, 18:42:07
Hi Hasu,

Is there any plan to develop hasu controller for hhkb bt?


从我的 iPhone 发送,使用 Tapatalk
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 05 February 2017, 19:30:51
No plan.

Sent from my Nexus 5X

Title: Re: [TMK] HHKB Alt Controller
Post by: Xeonxu on Mon, 06 February 2017, 00:30:08
No plan.

Sent from my Nexus 5X
Sad. Looks like sell my hhkb bt is a better way.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Mon, 06 February 2017, 01:23:07
Check this. Novatouch is similar in terms of microcontroller. https://github.com/vekkt0r/novatools

This guy is a real hacker and I believe he or she can hack HHKB BT. Throw a lot of money or contribute the board on this person.

This is the best way to make BT programmable.


Sent from my Nexus 5X

Title: Re: [TMK] HHKB Alt Controller
Post by: cynviloq on Mon, 06 February 2017, 22:44:07
Check this. Novatouch is similar in terms of microcontroller. https://github.com/vekkt0r/novatools

This guy is a real hacker and I believe he or she can hack HHKB BT. Throw a lot of money or contribute the board on this person.

This is the best way to make BT programmable.


Sent from my Nexus 5X

Very cool reads on the NT reverse engineering by him/her: http://vekkt0r.github.io/tags/#keyboards

Nice find!
Title: Re: [TMK] HHKB Alt Controller
Post by: mmdango on Thu, 09 February 2017, 15:19:57
Hi guys! (I think I posted this on the wrong thread earlier)
Quote
System control is not supported
        It can't send Power, Wake and Sleep keys.
Not sure if this above quote is relevant, but...

I currently have the DIP switch 6 on for my HHKB which allows me to wake up my mac using the HHKB. Will the BT controller affect that functionality? If it's relevant, I am on Sierra OSx 10.12.2.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 10 February 2017, 00:23:15
Hi guys! (I think I posted this on the wrong thread earlier)
Quote
System control is not supported
        It can't send Power, Wake and Sleep keys.
Not sure if this above quote is relevant, but...

I currently have the DIP switch 6 on for my HHKB which allows me to wake up my mac using the HHKB. Will the BT controller affect that functionality? If it's relevant, I am on Sierra OSx 10.12.2.


At least, on Linux(Ubuntu) and Windows 10 you can wake up your computer by pressing any key in USB mode(with Bluetooth is turned off). I think it works also with Mac but I don't have the OS. Anyone with Mac can confirm it?

System control keys is not related to whether you can wake up computer, in this case.
Title: Re: [TMK] HHKB Alt Controller
Post by: naut on Fri, 10 February 2017, 07:47:04
Hi guys! (I think I posted this on the wrong thread earlier)
Quote
System control is not supported
        It can't send Power, Wake and Sleep keys.
Not sure if this above quote is relevant, but...

I currently have the DIP switch 6 on for my HHKB which allows me to wake up my mac using the HHKB. Will the BT controller affect that functionality? If it's relevant, I am on Sierra OSx 10.12.2.


At least, on Linux(Ubuntu) and Windows 10 you can wake up your computer by pressing any key in USB mode(with Bluetooth is turned off). I think it works also with Mac but I don't have the OS. Anyone with Mac can confirm it?

System control keys is not related to whether you can wake up computer, in this case.


Wake up from sleep works for me in both usb mode and in bluetooth mode. I'm on Sierra 10.12.3.

Title: Re: [TMK] HHKB Alt Controller
Post by: mmdango on Fri, 10 February 2017, 23:50:04
Hi guys! (I think I posted this on the wrong thread earlier)
Quote
System control is not supported
        It can't send Power, Wake and Sleep keys.
Not sure if this above quote is relevant, but...

I currently have the DIP switch 6 on for my HHKB which allows me to wake up my mac using the HHKB. Will the BT controller affect that functionality? If it's relevant, I am on Sierra OSx 10.12.2.


At least, on Linux(Ubuntu) and Windows 10 you can wake up your computer by pressing any key in USB mode(with Bluetooth is turned off). I think it works also with Mac but I don't have the OS. Anyone with Mac can confirm it?

System control keys is not related to whether you can wake up computer, in this case.


Wake up from sleep works for me in both usb mode and in bluetooth mode. I'm on Sierra 10.12.3.

Sweet! Thanks so much
Title: Re: [TMK] HHKB Alt Controller
Post by: happylacquer on Sat, 11 February 2017, 00:51:16
Is there any reason not to bluetooth a Pro non-2?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sat, 11 February 2017, 01:44:00
Is there any reason not to bluetooth a Pro non-2?

No reason technically but I never heard request from users of it. USB is enough for them including me.
Title: Re: [TMK] HHKB Alt Controller
Post by: johnthedong on Mon, 13 February 2017, 13:36:56
Hi testplsignore,
yes, I'll do if new module supports the function. But current module has no such feature unfortunately.

In general every Realforce has one large PCB and it would cost much to replace the PCB, plus controller have to do capacitive sensing. It is still possible and intriguing to me.

This project used modified original PCB but my TMK firmware sensing capacitive switches by itself. With this we can desgin our own PCB for Realforce to control by our own firmware.
https://geekhack.org/index.php?topic=76040.msg1894368#msg1894368


There is a big demand for a FC660C controller that will run your firmware. There are a bunch of people asking for it ;D whenever you have time that is!!!


Sent from my iPhone using Tapatalk

+1 - would buy one in a jiffy if there's one for a FC660C
Title: Re: [TMK] HHKB Alt Controller
Post by: testplsignore on Mon, 13 February 2017, 15:34:47
++1

A Hasu BT FC660C 'Hype-S' would be god tier level for me.

I'd buy the controller in an instant.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Mon, 13 February 2017, 15:51:50
I changed mind and got FC660C today :thumb:
Subscribe this thread I'll post there if you are interested.
https://geekhack.org/index.php?topic=54222.0
Title: Re: [TMK] HHKB Alt Controller
Post by: testplsignore on Tue, 14 February 2017, 05:13:39
Yes! :))

The only thing that might be interesting is that the FC660C doesn't have the USB slots that can be used for the LEDs and BT switch.

There is the space used for the DIP switches on the bottom, would it ever be possible to use a small vibration motor to indicate various things? Maybe an old iPod style clicker?

Either way, looking forward to where this goes!
Title: Re: [TMK] HHKB Alt Controller
Post by: IonutZ on Tue, 14 February 2017, 05:46:38
Lmao hasu I was gonna buy you a FC660C :D been looking around to see if i can snag one for cheap to send to you


Sent from my iPhone using Tapatalk
Title: Re: [TMK] HHKB Alt Controller
Post by: rsadek on Tue, 14 February 2017, 09:06:48
I changed mind and got FC660C today :thumb:
Subscribe this thread I'll post there if you are interested.
https://geekhack.org/index.php?topic=54222.0 (https://geekhack.org/index.php?topic=54222.0)
This is very exciting! You are the best, Hasu! ^-^
Title: Re: [TMK] HHKB Alt Controller
Post by: johnthedong on Tue, 14 February 2017, 13:18:57
I changed mind and got FC660C today :thumb:
Subscribe this thread I'll post there if you are interested.
https://geekhack.org/index.php?topic=54222.0

Damnnnnn this is awesome! Subscribed and watching!
Title: Re: [TMK] HHKB Alt Controller
Post by: dailyherold on Wed, 15 February 2017, 23:43:01
Hi hasu,

Do you have plan to release a version with USB-C port? I broke the usb mini port again and now trying to re soldering it...

Hi Xe0n0,
No plan on USB-C, HHKB case is not compatible with Type-C unless you are willing to file connector hole.

sounds terrible :(
Email me if you want me to fix it or send component. I'm happy to help.
Or you can post pic of your controller here and let me think how I can help.

Thanks for offering help : ) I just bought the usb-type-c mod for hhkb by manisteinn (https://github.com/manisteinn/usb-type-c-hhkb (https://github.com/manisteinn/usb-type-c-hhkb)) and trying to change the port to usb-c. I would not be hesitated to buy two boards from you again if you offer usb-c moded board with this mod!

Any luck on this? Looks like a pretty solid mod, and if you got it to work with Hasu's controller...verrrry cool!
Title: Re: [TMK] HHKB Alt Controller
Post by: IDN on Mon, 20 February 2017, 11:26:58
Is it possible to have NKRO over USB on the BT controller? If it is, how to enable it?
Thanks
Title: Re: [TMK] HHKB Alt Controller
Post by: clorex on Wed, 01 March 2017, 20:20:15
Is the JP BT controller in stock?

Has anyone installed this controller on an HHKB Pro JP before? I'm a bit worried about drilling holes into the case as I've never done this kind of thing before.
Any pics or advice on how to do it? (And I don't suppose I could buy an original HHKB Pro 2 case anywhere?)
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 01 March 2017, 22:50:10
Is the JP BT controller in stock?

Has anyone installed this controller on an HHKB Pro JP before? I'm a bit worried about drilling holes into the case as I've never done this kind of thing before.
Any pics or advice on how to do it? (And I don't suppose I could buy an original HHKB Pro 2 case anywhere?)

Yes, it can be ready in a day or two.

I guess someone with Pro2 and USB controller may be willing to swap case for JP one.
Title: Re: [TMK] HHKB Alt Controller
Post by: johnthedong on Fri, 03 March 2017, 00:57:11
I'm having some latency sometimes when I'm pressing multiple keys on my bt controller. It doesn't happen often, but sometimes it will fail to register when I try to press like 3 keys at once. (cmd + alt + arrow that I mapped to the lower right) for example. Is there a way to increase the scan rate or something? I might try reverting to the regular board to see if that's just the bt board having issues though, I got this hhkb in a trade that came with a hasu controller preinstalled. Thanks!
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 03 March 2017, 01:53:00
I'm having some latency sometimes when I'm pressing multiple keys on my bt controller. It doesn't happen often, but sometimes it will fail to register when I try to press like 3 keys at once. (cmd + alt + arrow that I mapped to the lower right) for example. Is there a way to increase the scan rate or something? I might try reverting to the regular board to see if that's just the bt board having issues though, I got this hhkb in a trade that came with a hasu controller preinstalled. Thanks!

Assuming you are using Pro2, so you press 4 keys actually including Fn to register the key combo, right? And it would be helpful to narrow possible causes and debug if you can share your keymap.

This latency happens with Bluetooth, USB or both? And you are using it on Mac, right?

Could you try this patch? This doesn't increase scan rate but may solve or mitigates the issue.
Code: [Select]
diff --git a/tmk_core/common/keyboard.c b/tmk_core/common/keyboard.c
index b031936..6057ea1 100644
--- a/tmk_core/common/keyboard.c
+++ b/tmk_core/common/keyboard.c
@@ -137,8 +137,10 @@ void keyboard_task(void)
                     hook_matrix_change(e);
                     // record a processed key
                     matrix_prev[r] ^= ((matrix_row_t)1<<c);
+
+                    // This can miss stroke when scan matrix takes long like Topre
                     // process a key per task call
-                    goto MATRIX_LOOP_END;
+                    //goto MATRIX_LOOP_END;
                 }
             }
         }
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 03 March 2017, 01:57:50
And you can increase scan rate with this patch, but not tested throughly and I don't recommend.
Try patch in previous post, first.
Code: [Select]
diff --git a/keyboard/hhkb/matrix.c b/keyboard/hhkb/matrix.c
index 08721fc..62f73c4 100644
--- a/keyboard/hhkb/matrix.c
+++ b/keyboard/hhkb/matrix.c
@@ -125,7 +125,7 @@ uint8_t matrix_scan(void)
             // or it can drop keys in fast key typing
             _delay_us(30);
 #else
-            _delay_us(75);
+            _delay_us(30);
 #endif
         }
         if (matrix[row] ^ matrix_prev[row]) matrix_last_modified = timer_read32();
Title: Re: [TMK] HHKB Alt Controller
Post by: johnthedong on Fri, 03 March 2017, 11:36:10
Thank you for your quick reply - my current keyboard configuration looks like this: http://imgur.com/a/kzD9Y. I've taken your advice and recompiled the firmware without the goto. It seems way more responsive now. It was lagging on both USB and bluetooth before this. I'll post here if anything arises, otherwise I think the fix totally works!
Title: Re: [TMK] HHKB Alt Controller
Post by: johnthedong on Fri, 03 March 2017, 11:39:22
I'm having some latency sometimes when I'm pressing multiple keys on my bt controller. It doesn't happen often, but sometimes it will fail to register when I try to press like 3 keys at once. (cmd + alt + arrow that I mapped to the lower right) for example. Is there a way to increase the scan rate or something? I might try reverting to the regular board to see if that's just the bt board having issues though, I got this hhkb in a trade that came with a hasu controller preinstalled. Thanks!

Assuming you are using Pro2, so you press 4 keys actually including Fn to register the key combo, right? And it would be helpful to narrow possible causes and debug if you can share your keymap.

This latency happens with Bluetooth, USB or both? And you are using it on Mac, right?

Could you try this patch? This doesn't increase scan rate but may solve or mitigates the issue.
Code: [Select]
diff --git a/tmk_core/common/keyboard.c b/tmk_core/common/keyboard.c
index b031936..6057ea1 100644
--- a/tmk_core/common/keyboard.c
+++ b/tmk_core/common/keyboard.c
@@ -137,8 +137,10 @@ void keyboard_task(void)
                     hook_matrix_change(e);
                     // record a processed key
                     matrix_prev[r] ^= ((matrix_row_t)1<<c);
+
+                    // This can miss stroke when scan matrix takes long like Topre
                     // process a key per task call
-                    goto MATRIX_LOOP_END;
+                    //goto MATRIX_LOOP_END;
                 }
             }
         }
Welp, the lag is still there sometimes. Yes, 4 key combos misses sometimes. I'm currently using 3 keys, and it seems better, but it still misses occasionally. I'm going to try to increase the scan rate too to test how it goes. (probably not to 30, 60 seems like a safe bet at the moment). Thanks! PS: yes I'm on a Mac

Edit: Identified a problem - if i press both cmd and alt at almost the same time, and press <- or -> , it fails to register correctly. Must be the way the keyscans work, will poke through the code afterwards.
Edit2: Realized that NKRO doesn't work over bluetooth, LOL. Will test again on USB when I get back from outside.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 03 March 2017, 19:18:53
johnthedong,
What happens accutally when pressing 'cmd + alt + arrow' successfully and what happens when it fails?
And what application are you using with this key combo in fact?
I need more info to know what happens, not that I'm blaming the OS, apps.
Title: Re: [TMK] HHKB Alt Controller
Post by: johnthedong on Sat, 04 March 2017, 01:00:06
johnthedong,
What happens accutally when pressing 'cmd + alt + arrow' successfully and what happens when it fails?
And what application are you using with this key combo in fact?
I need more info to know what happens, not that I'm blaming the OS, apps.
I'm using it with Chrome/terminal, to switch tabs. When it fails it simply doesn't change the tab. I'm sure I identified the problem though (no NKRO over bluetooth) as it works over USB nicely, but thanks again for helping! PS: the media keys (vol +, vol -, play/pause, next song) doesn't work over USB for some strange reason, but when I use bluetooth all is fine.
Title: Re: [TMK] HHKB Alt Controller
Post by: johnthedong on Tue, 07 March 2017, 23:52:41
Is it possible to turn off the BT LED using any Magic button combination? Reason being that I'm using the dust covers for both of the holes (led and switch), and while I can use the LSHIFT+RSHIFT+U to turn on/off the bluetooth, the LED stays on. If I change it to USB mode entirely via the switch, I can't enable the bluetooth again using LSHIFT+RSHIFT+U. Thanks!
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 08 March 2017, 00:17:31
Is it possible to turn off the BT LED using any Magic button combination? Reason being that I'm using the dust covers for both of the holes (led and switch), and while I can use the LSHIFT+RSHIFT+U to turn on/off the bluetooth, the LED stays on. If I change it to USB mode entirely via the switch, I can't enable the bluetooth again using LSHIFT+RSHIFT+U. Thanks!

You cannot control the LED unfortunately, red part of BT LED is connected directly to Bluetooth module and always indicates status of  the module as long as it it powered.
Title: Re: [TMK] HHKB Alt Controller
Post by: johnthedong on Wed, 08 March 2017, 00:24:45
I see, thanks for the fast reply!
Title: Re: [TMK] HHKB Alt Controller
Post by: DRAZAH on Wed, 08 March 2017, 08:40:06
Is there anyway to solder on a USB port to any of the HASU controllers? I really want to upgrade my stock HHKB controller to HASU but I can't without at least 1 USB port available.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 08 March 2017, 09:14:19
Is there anyway to solder on a USB port to any of the HASU controllers? I really want to upgrade my stock HHKB controller to HASU but I can't without at least 1 USB port available.

No support for usb hub unfortunately.
Title: Re: [TMK] HHKB Alt Controller
Post by: DRAZAH on Wed, 08 March 2017, 11:16:13
Dang, okay thank you.
Title: Re: [TMK] HHKB Alt Controller
Post by: devoi on Wed, 08 March 2017, 11:19:25
Is there anyway to solder on a USB port to any of the HASU controllers? I really want to upgrade my stock HHKB controller to HASU but I can't without at least 1 USB port available.

You could always jury-rig it and buy a two-port usb hub, disconnect the internal USB on the TMK controller, and rearrange and reconnect everything together so that the usb cable actually goes to the hub instead of the keyboard. I'm not even sure if there's enough space inside the case for that, though.
Title: Re: [TMK] HHKB Alt Controller
Post by: johnthedong on Sat, 11 March 2017, 20:15:28
:D it's me again with more tweaking. (PS: you're making my hhkb type s modded a dream to use. No more keyboards without the custom layout lol)

One thing I've not solved is that if I simultaneously press multiple keys on the hhkb over bluetooth, it fails to register the keys. The window for the failure is very small though as I have to literally press them at the same time, but is nonetheless irritating regardless. This problem does not occur when I switch to USB mode. Any pointers for this? Thanks again!

Edit: NKRO_enable glitches the Bluetooth mode out. Restored to no.
Title: Re: [TMK] HHKB Alt Controller
Post by: ajx on Sun, 19 March 2017, 07:28:29
Hello Hasu, do others BT peripherals interfere with Hasu BT controller HHKB?
I mean i noticed for example, two peripherals increase input lag (BT headset sound lagging/freezing while PS4 pad got heavy input lag)
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 19 March 2017, 07:44:40
Hello Hasu, do others BT peripherals interfere with Hasu BT controller HHKB?
I mean i noticed for example, two peripherals increase input lag (BT headset sound lagging/freezing while PS4 pad got heavy input lag)


I think so, bluetooth devices shares bandwidth and resourses on computer. Wifi and microwave can interfere each other too.
But I may be wrong, I'm not very familiar with the protocol and heavy user of bluetooth devices.
Title: Re: [TMK] HHKB Alt Controller
Post by: menuhin on Sun, 19 March 2017, 10:20:54
Have been contemplating to upgrade my HHKB with Hasu's controller.
One big question is if I can use my HHKB with an iPad, and I have the following questions around connecting a HHKB to an iPad (thunderbolt versions) using a 'USB Camera adapter' and a mini-B cable:

Does any of these settings work with an iPad?
1. HHKB Pro 2 with Hasu BT controller using cable+adapter connected to iPad
2. HHKB Pro 2 with Hasu controller using cable+adapter connected to iPad
3. HHKB Pro 1 with Hasu controller (for Pro 1) using cable+adapter connected to iPad

BT is nice but cable connectivity is essential.

Thanks in advance.
Title: Re: [TMK] HHKB Alt Controller
Post by: johnthedong on Sun, 19 March 2017, 10:42:22
Have been contemplating to upgrade my HHKB with Hasu's controller.
One big question is if I can use my HHKB with an iPad, and I have the following questions around connecting a HHKB to an iPad (thunderbolt versions) using a 'USB Camera adapter' and a mini-B cable:

Does any of these settings work with an iPad?
1. HHKB Pro 2 with Hasu BT controller using cable+adapter connected to iPad
2. HHKB Pro 2 with Hasu controller using cable+adapter connected to iPad
3. HHKB Pro 1 with Hasu controller (for Pro 1) using cable+adapter connected to iPad

BT is nice but cable connectivity is essential.

Thanks in advance.

I think if you have the bt controller the bluetooth works directly - I've had luck connecting via bluetooth to various devices I have. No need to fumble with the cable/adapter. Correct me if I'm wrong though - I can test with my iPad and BT hhkb tonight.
Title: Re: [TMK] HHKB Alt Controller
Post by: menuhin on Sun, 19 March 2017, 11:31:52
Hasu BT controller should work via BT connection to iPad, and BT is a big plus for either home use or on the road. But BT has its limitations and I'm not keen on always watching out for whether this or that device is going to run out of juice.

What is unfair is that HHKP Pro 1 and HHKP JP (with their unmodified original controllers) can connect to iPads through cable without any problem; it's just HHKB Pro 2's original controller.

Please do if you have the chance and I'm also looking forward to Hasu's answer (I'm not sure if he has access to an iPad model with thunderbolt socket)
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 19 March 2017, 15:41:20
Hasu BT controller should work via BT connection to iPad, and BT is a big plus for either home use or on the road. But BT has its limitations and I'm not keen on always watching out for whether this or that device is going to run out of juice.

What is unfair is that HHKP Pro 1 and HHKP JP (with their unmodified original controllers) can connect to iPads through cable without any problem; it's just HHKB Pro 2's original controller.

Please do if you have the chance and I'm also looking forward to Hasu's answer (I'm not sure if he has access to an iPad model with thunderbolt socket)

If you want USB connection to iPad you better have USB controller. Bluetooth controller draws fair amount of current for battery charging and iPad will refuse it. Charging current of Bluetooth controller can be up to 500mA. Original Pro2 draws around 120mA for its hubs, for reference.

USB Alt controller(of all variants) draws around 20mA and it should work with iPad on USB connection.
Title: Re: [TMK] HHKB Alt Controller
Post by: johnthedong on Sun, 19 March 2017, 22:07:35
Hasu BT controller should work via BT connection to iPad, and BT is a big plus for either home use or on the road. But BT has its limitations and I'm not keen on always watching out for whether this or that device is going to run out of juice.

What is unfair is that HHKP Pro 1 and HHKP JP (with their unmodified original controllers) can connect to iPads through cable without any problem; it's just HHKB Pro 2's original controller.

Please do if you have the chance and I'm also looking forward to Hasu's answer (I'm not sure if he has access to an iPad model with thunderbolt socket)

I can confirm 100% that it works with an iPad air 2. Just disconnected it from my laptop and connected it to the iPad, works like a charm. Skip the wires and use bluetooth. That's like the perfect travelling work setup if you use Vim over ssh on an iPad. :)
Title: Re: [TMK] HHKB Alt Controller
Post by: menuhin on Sun, 19 March 2017, 23:13:48
Hasu BT controller should work via BT connection to iPad, and BT is a big plus for either home use or on the road. But BT has its limitations and I'm not keen on always watching out for whether this or that device is going to run out of juice.

What is unfair is that HHKP Pro 1 and HHKP JP (with their unmodified original controllers) can connect to iPads through cable without any problem; it's just HHKB Pro 2's original controller.

Please do if you have the chance and I'm also looking forward to Hasu's answer (I'm not sure if he has access to an iPad model with thunderbolt socket)

I can confirm 100% that it works with an iPad air 2. Just disconnected it from my laptop and connected it to the iPad, works like a charm. Skip the wires and use bluetooth. That's like the perfect travelling work setup if you use Vim over ssh on an iPad. :)

Thanks!  :thumb:

Vim on my HHKB..?  :confused: Please don't get me started on the whole holy editor debate.  ;)
Title: Re: [TMK] HHKB Alt Controller
Post by: johnthedong on Sun, 19 March 2017, 23:17:54
Hasu BT controller should work via BT connection to iPad, and BT is a big plus for either home use or on the road. But BT has its limitations and I'm not keen on always watching out for whether this or that device is going to run out of juice.

What is unfair is that HHKP Pro 1 and HHKP JP (with their unmodified original controllers) can connect to iPads through cable without any problem; it's just HHKB Pro 2's original controller.

Please do if you have the chance and I'm also looking forward to Hasu's answer (I'm not sure if he has access to an iPad model with thunderbolt socket)

I can confirm 100% that it works with an iPad air 2. Just disconnected it from my laptop and connected it to the iPad, works like a charm. Skip the wires and use bluetooth. That's like the perfect travelling work setup if you use Vim over ssh on an iPad. :)

Thanks!  :thumb:

Vim on my HHKB..?  :confused: Please don't get me started on the whole holy editor debate.  ;)

Hey, I use Sublime text on most of my devices locally.  :p Vim is great for on server editing though. Also, no latency that I can observe from an iPad connected to both my headphones and the hhkb via BT. Buttery smooooottthhhh.  :)
Title: Re: [TMK] HHKB Alt Controller
Post by: adam.baranyai on Fri, 31 March 2017, 13:23:18
Hi All, Can anyone tell me if there's a key combo that puts HHKB USB Hasu controller into programming mode so I won't need to press the button on the controller? Can't seem to find this info anywhere. Currently I'm using this layout if that's relevant: https://goo.gl/U6wWNh.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 31 March 2017, 18:29:59
Hi All, Can anyone tell me if there's a key combo that puts HHKB USB Hasu controller into programming mode so I won't need to press the button on the controller? Can't seem to find this info anywhere. Currently I'm using this layout if that's relevant: https://goo.gl/U6wWNh.

You can start bootloader(programming/flash mode) with pressing both shifts and pause, which is called as "magic command".
https://github.com/tmk/tmk_keyboard#magic-commands

But it seems your layout has no pause key.
Title: Re: [TMK] HHKB Alt Controller
Post by: adam.baranyai on Fri, 31 March 2017, 20:41:32
Quote

You can start bootloader(programming/flash mode) with pressing both shifts and pause, which is called as "magic command".
https://github.com/tmk/tmk_keyboard#magic-commands

But it seems your layout has no pause key.

Thanks for the quick help Hasu, I guess I'll just setup one then. :)
Title: Re: [TMK] HHKB Alt Controller
Post by: mil on Sat, 01 April 2017, 16:00:15
Been using the alt controller for quite some time now -- very awesome work -- thanks Hasu!

Wondering if anyone has successful added a LED to the alt board? Are there specific pins I could solder to?

My idea is to use the empty holes left from the stock board USB ports and just poke a LED out (ideally RG/RGB multicolored/3/4 pin). I use alot of layers and would help a ton.

Any help greatly appreciated!
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 02 April 2017, 10:42:50
Unused pins on USB controler are PD0,1,2,3,5, PE6 and PF0,4,5,6,7. PC6,7 are also available unless controller is for JP. See shcematic for deital.
http://i.imgur.com/tIYI5TX.png
http://i.imgur.com/3EB0Lq8.png

Pins you can solder easily using through hole pads are PD0,1 and PF5.
http://i.imgur.com/EwIVNl3.jpg
Title: Re: [TMK] HHKB Alt Controller
Post by: mil on Sun, 02 April 2017, 14:17:13
Unused pins on USB controler are PD0,1,2,3,5, PE6 and PF0,4,5,6,7. PC6,7 are also available unless controller is for JP. See shcematic for deital.
http://i.imgur.com/tIYI5TX.png
http://i.imgur.com/3EB0Lq8.png

Pins you can solder easily using through hole pads are PD0,1 and PF5.
http://i.imgur.com/EwIVNl3.jpg

Wow this is great PD0/PD1 seem like exactly what I need and even have the through-hole. Thanks for the help!
Title: Re: [TMK] HHKB Alt Controller
Post by: NadavCE on Sat, 08 April 2017, 08:12:55
Hey all,
If I use the eBay battery in the "confirmed" section (this one (http://www.ebay.com/itm/261625368941)), instead of crimping the connectors - will connecting a premade one (like these (http://www.ebay.com/itm/222355430302?var=521219286311)) work? Thanks :)
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sat, 08 April 2017, 10:20:46
Hey all,
If I use the eBay battery in the "confirmed" section (this one (http://www.ebay.com/itm/261625368941)), instead of crimping the connectors - will connecting a premade one (like these (http://www.ebay.com/itm/222355430302?var=521219286311)) work? Thanks :)

It will work.
Title: Re: [TMK] HHKB Alt Controller
Post by: NadavCE on Sat, 08 April 2017, 15:43:38
It will work.

Awesome, thanks!
Title: Re: [TMK] HHKB Alt Controller
Post by: clorex on Fri, 14 April 2017, 04:09:48
Would a JP bottom case fit on a Pro 2 with the stock controller, or will it be blocked by the USB ports?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 14 April 2017, 04:23:46
Would a JP bottom case fit on a Pro 2 with the stock controller, or will it be blocked by the USB ports?

Yes, you can install Pro2 stock controller into JP bottom case. I just confirmed that. I cannot use two USB hub ports, of course.

You can put together either combination below:
- Pro2 top and Pro2 bottom case with Pro2 stock controller
- Pro2 top and Pro2 bottom case with TMK USB controller for Pro2
- Pro2 top and Pro2 bottom case with TMK Bluetooth controller for Pro2
- JP top and JP bottom case with JP stock controller
- JP top and JP bottom case with TMK USB controller for JP

- Pro2 top and JP bottom case with Pro2 stock controller
- Pro2 top and JP bottom case with TMK USB controller for Pro2
- JP top and Pro2 bttom case with JP stock controller
- JP top and Pro2 bttom case with TMK USB controller for JP
- JP top and Pro2 bttom case with TMK Bluetooth controller for JP
Title: Re: [TMK] HHKB Alt Controller
Post by: johnthedong on Tue, 18 April 2017, 00:42:40
Anyone got the HHKB BT Controller's media controllers working on a Mac via the USB cable? It works flawlessly over bluetooth but once I connect it via usb it doesn't work. Other keys and such work fine though.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Tue, 18 April 2017, 00:59:43
which key codes are you referring actually?

this wiki page may help.

https://github.com/tmk/tmk_keyboard/wiki/FAQ-Keymap#media-control-keys-in-mac-osx
Title: Re: [TMK] HHKB Alt Controller
Post by: johnthedong on Tue, 18 April 2017, 01:17:26
which key codes are you referring actually?

this wiki page may help.

https://github.com/tmk/tmk_keyboard/wiki/FAQ-Keymap#media-control-keys-in-mac-osx

Hmm, here's the key codes I tried:

Code: [Select]
MUTE,VOLD,VOLU,MPLY,MFFD
I discovered that they don't work on their own, even if I remap them to layer 1. I'm on MacOS Sierra.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Tue, 18 April 2017, 01:22:01
ah, Im not  if those keys work with sierra.

we need other Sierra users to help.
Title: Re: [TMK] HHKB Alt Controller
Post by: johnthedong on Tue, 18 April 2017, 01:34:17
ah, Im not  if those keys work with sierra.

we need other Sierra users to help.

Interesting, yep the newest version tested in the wiki was El Capitan. I'm noticing that the media controls still work if I press another media key before pressing the key though. It's like the other media keys are acting as a FN key on its own to activate the media key I'm pressing, which is super strange.
Title: Re: [TMK] HHKB Alt Controller
Post by: Gatix on Tue, 18 April 2017, 01:50:46
which key codes are you referring actually?

this wiki page may help.

https://github.com/tmk/tmk_keyboard/wiki/FAQ-Keymap#media-control-keys-in-mac-osx

Hmm, here's the key codes I tried:

Code: [Select]
MUTE,VOLD,VOLU,MPLY,MFFD
I discovered that they don't work on their own, even if I remap them to layer 1. I'm on MacOS Sierra.

I'm on Sierra and these codes are working. Tested on a Macbook Pro running 10.12.4 and a Hackintosh running 10.12.0
Title: Re: [TMK] HHKB Alt Controller
Post by: johnthedong on Tue, 18 April 2017, 01:53:19
which key codes are you referring actually?

this wiki page may help.

https://github.com/tmk/tmk_keyboard/wiki/FAQ-Keymap#media-control-keys-in-mac-osx

Hmm, here's the key codes I tried:

Code: [Select]
MUTE,VOLD,VOLU,MPLY,MFFD
I discovered that they don't work on their own, even if I remap them to layer 1. I'm on MacOS Sierra.

I'm on Sierra and these codes are working. Tested on a Macbook Pro running 10.12.4 and a Hackintosh running 10.12.0

Interesting, thanks for the data point! I'll reflash the controller with the stock version and try it out again.
Title: Re: [TMK] HHKB Alt Controller
Post by: johnthedong on Tue, 18 April 2017, 02:03:12
Recloned the newest version of TMK, imported my keyset (also tried the default hhkb one), and confirmed that it's still the same problem. It works 100% over bluetooth though, so it might be something with my laptop. I'll try on another Mac tomorrow and see if it works. Thanks everyone!
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 27 April 2017, 18:58:19
Updated "STOCK" section in first post.

Now, "All variants are virtually always in stock." and
"Lead time: Can be shipped usually in a few bussiness days, a week in the worst case."
Title: Re: [TMK] HHKB Alt Controller
Post by: lunr on Sun, 30 April 2017, 00:33:44
I couldn't​ find info on this but is there an estimate on how long a 2000mah battery will last before needing a charge?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 30 April 2017, 00:38:11
around 20 to 24 hrs I guess
Title: Re: [TMK] HHKB Alt Controller
Post by: clickityClackity on Sun, 30 April 2017, 12:01:21
I couldn't​ find info on this but is there an estimate on how long a 2000mah battery will last before needing a charge?
With all day use at work  (about 8 hours on and off) and some at home in the evenings,  I'm having to recharge every 3-4 days so I would say Hasu is right there. It's not bad at all. Just keep an eye on the battery indicator as letting it drain can mess up the battery.

Sent from my SAMSUNG-SM-G935A using Tapatalk

Title: Re: [TMK] HHKB Alt Controller
Post by: lunr on Sun, 30 April 2017, 12:07:34
Thanks
Title: Re: [TMK] HHKB Alt Controller
Post by: SICAR187 on Tue, 09 May 2017, 01:15:55
Hi,

 Want to purchase one of the BT for a JP (still waiting for it to ship from Jp), I'll email you once I get my tracking number, to start the process. I just have a few questions:


Thanks in advance!
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Tue, 09 May 2017, 03:10:56
1. yes
2. without case mod it will be difficult to find battery beyond that capacity.
3. not sure your concern but switch BT off when you want to save battery.
4. without USB power around 80-90mah from battery when BT is turned on,  vs 0 when off.
5. not sure. can you rephrase?

how do u discriminate between switch off and power off?
Title: Re: [TMK] HHKB Alt Controller
Post by: SICAR187 on Tue, 09 May 2017, 04:19:11
1. yes
2. without case mod it will be difficult to find battery beyond that capacity.
3. not sure your concern but switch BT off when you want to save battery.
4. without USB power around 80-90mah from battery when BT is turned on,  vs 0 when off.
5. not sure. can you rephrase?

how do u discriminate between switch off and power off?


Thanks for the quick reply!

No worries, you answered #5 with #4. I'll be contacting you soon, just waiting for the order to ship, shouldn't be more than 1 or 2 days.
Title: Re: [TMK] HHKB Alt Controller
Post by: 12on on Fri, 19 May 2017, 12:30:57
Hi -

I read your first page - after receiving your controller test it before flashing.  I am inexperience in modding and probably won't install it until I purchased all the mods which is a few months.  Do I need to worry about being out of stock (JP BT)?  or buy it now and if I find out it's defective few months later you'll still offer repair service?

Thanks
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 19 May 2017, 17:58:58
Hi -

I read your first page - after receiving your controller test it before flashing.  I am inexperience in modding and probably won't install it until I purchased all the mods which is a few months.  Do I need to worry about being out of stock (JP BT)?  or buy it now and if I find out it's defective few months later you'll still offer repair service?

Thanks

No worry, it is available regularly. Buy it after getting keyboard.
Title: Re: [TMK] HHKB Alt Controller
Post by: SICAR187 on Sat, 03 June 2017, 12:53:00
Just got my controller, thanks for the quick shipping! Now to figure out how it works:)
Title: Re: [TMK] HHKB Alt Controller
Post by: supersoul on Sat, 03 June 2017, 19:53:44
just got my controller today i'm not sure what i did wrong tho. i used the tmk layout editor(from http://www.tmk-kbd.com/tmk_keyboard/editor/index.html) to generate a hex file (https://drive.google.com/open?id=0B3ALbowUgqlSdFVaS2RUM1hIaWM) but when i try to load it onto my controller with flip nothing happens. the program function fails to do anything. am i doing something wrong? i could use some help.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sat, 03 June 2017, 20:11:41
just got my controller today i'm not sure what i did wrong tho. i used the tmk layout editor(from http://www.tmk-kbd.com/tmk_keyboard/editor/index.html) to generate a hex file (https://drive.google.com/open?id=0B3ALbowUgqlSdFVaS2RUM1hIaWM) but when i try to load it onto my controller with flip nothing happens. the program function fails to do anything. am i doing something wrong? i could use some help.

Assuming that you checked first post and followed this instruction, describe your problem for detail. Posting screenshot and error mesage would be helpful. And your os version and your controller variant would be useful.
https://github.com/tmk/tmk_keyboard/wiki#flash-firmware
Title: Re: [TMK] HHKB Alt Controller
Post by: supersoul on Sat, 03 June 2017, 20:29:45
Quote

Assuming that you checked first post and followed this instruction, describe your problem for detail. Posting screenshot and error mesage would be helpful. And your os version and your controller variant would be useful.
https://github.com/tmk/tmk_keyboard/wiki#flash-firmware

i had my friend help me out with it thank you hasu! great controller and fast shipping thank you for your work!
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sat, 03 June 2017, 20:36:15
Quote

Assuming that you checked first post and followed this instruction, describe your problem for detail. Posting screenshot and error mesage would be helpful. And your os version and your controller variant would be useful.
https://github.com/tmk/tmk_keyboard/wiki#flash-firmware

i had my friend help me out with it thank you hasu! great controller and fast shipping thank you for your work!

Great! Say hello to your kind friend for me :D
Title: Re: [TMK] HHKB Alt Controller
Post by: SICAR187 on Sun, 04 June 2017, 03:34:13
  I removed the ON/OFF switch on my JP Controller, by taking off the upper part of the switch housing (no issues, everything works). If desolder it and completely remove the whole assembly, will this affect the function?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 04 June 2017, 06:37:44
  I removed the ON/OFF switch on my JP Controller, by taking off the upper part of the switch housing (no issues, everything works). If desolder it and completely remove the whole assembly, will this affect the function?

yes, the switch is required to give Bluetooth module power. If you remove it Bluetooth won't work.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 09 June 2017, 17:38:23
Just FYI,

Adafruit 2000mAh battery is just resotcked, the battery was reported to be used successfully with bluetooth controller by users.

https://www.adafruit.com/product/2011
Title: Re: [TMK] HHKB Alt Controller
Post by: SICAR187 on Wed, 14 June 2017, 00:47:22
For some reason my controller is only working in BT mode now, I did not have the issue before. I flashed the stock JP hex file and still nothing. I connected another USB keyboard and it worked fine. I'm stuck any help would be appreciated, thanks in advance.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 14 June 2017, 01:43:47
when turn BT switch off and plug in, do you see power LED blinks a few times and then lights?
Title: Re: [TMK] HHKB Alt Controller
Post by: SICAR187 on Wed, 14 June 2017, 01:58:10
when turn BT switch off and plug in, do you see power LED blinks a few times and then lights?

 Gonna have open it to turn it off, I'll let you know what I get when I do, thanks.
Title: Re: [TMK] HHKB Alt Controller
Post by: Azzures on Thu, 15 June 2017, 12:25:07
Hey recently got my controller and installed it, but for some reason the default firmware on the controller works with normal alpha and numbers, but doesnt work for del, enter, backspace, arrow keys, etc. Did I do something wrong during installation? Should I try flashing on another firmware? Mine is a JP version. Sorry for the trouble, thanks for the help!
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 15 June 2017, 15:53:14
Hey recently got my controller and installed it, but for some reason the default firmware on the controller works with normal alpha and numbers, but doesnt work for del, enter, backspace, arrow keys, etc. Did I do something wrong during installation? Should I try flashing on another firmware? Mine is a JP version. Sorry for the trouble, thanks for the help!

Hmm, I don't think of cause of that. Do all of alpah and number keys work correctly? Didn't you flash firmware yourself yet? I'd suggest mating connector firmly again and flash firmware downloaded from Keymap Editor.

Let me know which OS you are on and  invoice number.

Title: Re: [TMK] HHKB Alt Controller
Post by: Azzures on Thu, 15 June 2017, 17:03:33
Hey recently got my controller and installed it, but for some reason the default firmware on the controller works with normal alpha and numbers, but doesnt work for del, enter, backspace, arrow keys, etc. Did I do something wrong during installation? Should I try flashing on another firmware? Mine is a JP version. Sorry for the trouble, thanks for the help!

Hmm, I don't think of cause of that. Do all of alpah and number keys work correctly? Didn't you flash firmware yourself yet? I'd suggest mating connector firmly again and flash firmware downloaded from Keymap Editor.

Let me know which OS you are on and  invoice number.

Im pretty sure they all do. underscore, period, colon, etc dont work either, but command works. I have yet to flash the firmware yet. I will redo the connector firmly again and flashing the firmware when I get home tonight. Im on OSX, and my invoice was #0880. Thanks for the help!
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 15 June 2017, 17:33:01
Hey recently got my controller and installed it, but for some reason the default firmware on the controller works with normal alpha and numbers, but doesnt work for del, enter, backspace, arrow keys, etc. Did I do something wrong during installation? Should I try flashing on another firmware? Mine is a JP version. Sorry for the trouble, thanks for the help!

Hmm, I don't think of cause of that. Do all of alpah and number keys work correctly? Didn't you flash firmware yourself yet? I'd suggest mating connector firmly again and flash firmware downloaded from Keymap Editor.

Let me know which OS you are on and  invoice number.

Im pretty sure they all do. underscore, period, colon, etc dont work either, but command works. I have yet to flash the firmware yet. I will redo the connector firmly again and flashing the firmware when I get home tonight. Im on OSX, and my invoice was #0880. Thanks for the help!

I'd suspect something hardware fault on cables, connector or Alt controller if those don't work. Also checking those problematic keys work with original controller would be helpful.
Thanks for your patience.
Title: Re: [TMK] HHKB Alt Controller
Post by: Azzures on Thu, 15 June 2017, 22:47:05
Hey recently got my controller and installed it, but for some reason the default firmware on the controller works with normal alpha and numbers, but doesnt work for del, enter, backspace, arrow keys, etc. Did I do something wrong during installation? Should I try flashing on another firmware? Mine is a JP version. Sorry for the trouble, thanks for the help!

Hmm, I don't think of cause of that. Do all of alpah and number keys work correctly? Didn't you flash firmware yourself yet? I'd suggest mating connector firmly again and flash firmware downloaded from Keymap Editor.

Let me know which OS you are on and  invoice number.

Im pretty sure they all do. underscore, period, colon, etc dont work either, but command works. I have yet to flash the firmware yet. I will redo the connector firmly again and flashing the firmware when I get home tonight. Im on OSX, and my invoice was #0880. Thanks for the help!

I'd suspect something hardware fault on cables, connector or Alt controller if those don't work. Also checking those problematic keys work with original controller would be helpful.
Thanks for your patience.

Ok so this is really weird. When I got home, i decided to try the keyboard one last time on a different (OSX) laptop. When I plugged it in, it worked perfectly fine, no problems at all. When I plug it back into the other laptop, the problems occur again. I also found, that if I am typing alphas in rapid succession, and then press space/enter at the end, it will register the space/enter.....then repeat the space/enter infinitely. I am stumped.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 15 June 2017, 23:25:57
Hey recently got my controller and installed it, but for some reason the default firmware on the controller works with normal alpha and numbers, but doesnt work for del, enter, backspace, arrow keys, etc. Did I do something wrong during installation? Should I try flashing on another firmware? Mine is a JP version. Sorry for the trouble, thanks for the help!

Hmm, I don't think of cause of that. Do all of alpah and number keys work correctly? Didn't you flash firmware yourself yet? I'd suggest mating connector firmly again and flash firmware downloaded from Keymap Editor.

Let me know which OS you are on and  invoice number.

Im pretty sure they all do. underscore, period, colon, etc dont work either, but command works. I have yet to flash the firmware yet. I will redo the connector firmly again and flashing the firmware when I get home tonight. Im on OSX, and my invoice was #0880. Thanks for the help!

I'd suspect something hardware fault on cables, connector or Alt controller if those don't work. Also checking those problematic keys work with original controller would be helpful.
Thanks for your patience.

Ok so this is really weird. When I got home, i decided to try the keyboard one last time on a different (OSX) laptop. When I plugged it in, it worked perfectly fine, no problems at all. When I plug it back into the other laptop, the problems occur again. I also found, that if I am typing alphas in rapid succession, and then press space/enter at the end, it will register the space/enter.....then repeat the space/enter infinitely. I am stumped.

Oh, that weird behiviour indicates power supply problem, Topre capacitive sense chip tends to go bad with low voltage.  Some of USB cables and USB hub causes this problem in some situations. If you are using external USB hub plug directly into port of laptop. Also wall wart power supply or changing USB cables may fix problem.

But still making sure internal connectors fit into each other is good idea. Bad connection there also can cause wierd problem like that.
Title: Re: [TMK] HHKB Alt Controller
Post by: Azzures on Fri, 16 June 2017, 00:19:27
Hey recently got my controller and installed it, but for some reason the default firmware on the controller works with normal alpha and numbers, but doesnt work for del, enter, backspace, arrow keys, etc. Did I do something wrong during installation? Should I try flashing on another firmware? Mine is a JP version. Sorry for the trouble, thanks for the help!

Hmm, I don't think of cause of that. Do all of alpah and number keys work correctly? Didn't you flash firmware yourself yet? I'd suggest mating connector firmly again and flash firmware downloaded from Keymap Editor.

Let me know which OS you are on and  invoice number.

Im pretty sure they all do. underscore, period, colon, etc dont work either, but command works. I have yet to flash the firmware yet. I will redo the connector firmly again and flashing the firmware when I get home tonight. Im on OSX, and my invoice was #0880. Thanks for the help!

I'd suspect something hardware fault on cables, connector or Alt controller if those don't work. Also checking those problematic keys work with original controller would be helpful.
Thanks for your patience.

Ok so this is really weird. When I got home, i decided to try the keyboard one last time on a different (OSX) laptop. When I plugged it in, it worked perfectly fine, no problems at all. When I plug it back into the other laptop, the problems occur again. I also found, that if I am typing alphas in rapid succession, and then press space/enter at the end, it will register the space/enter.....then repeat the space/enter infinitely. I am stumped.

Oh, that weird behiviour indicates power supply problem, Topre capacitive sense chip tends to go bad with low voltage.  Some of USB cables and USB hub causes this problem in some situations. If you are using external USB hub plug directly into port of laptop. Also wall wart power supply or changing USB cables may fix problem.

But still making sure internal connectors fit into each other is good idea. Bad connection there also can cause wierd problem like that.

I using the same usb cable, and for both I am plugging directly into the laptops. I tried making sure the internal connecters fit each other, I took them out and put them back in making sure they were in all the way. Tried typing on both again, still same thing happening.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 16 June 2017, 00:41:50
Hey recently got my controller and installed it, but for some reason the default firmware on the controller works with normal alpha and numbers, but doesnt work for del, enter, backspace, arrow keys, etc. Did I do something wrong during installation? Should I try flashing on another firmware? Mine is a JP version. Sorry for the trouble, thanks for the help!

Hmm, I don't think of cause of that. Do all of alpah and number keys work correctly? Didn't you flash firmware yourself yet? I'd suggest mating connector firmly again and flash firmware downloaded from Keymap Editor.

Let me know which OS you are on and  invoice number.

Im pretty sure they all do. underscore, period, colon, etc dont work either, but command works. I have yet to flash the firmware yet. I will redo the connector firmly again and flashing the firmware when I get home tonight. Im on OSX, and my invoice was #0880. Thanks for the help!

I'd suspect something hardware fault on cables, connector or Alt controller if those don't work. Also checking those problematic keys work with original controller would be helpful.
Thanks for your patience.

Ok so this is really weird. When I got home, i decided to try the keyboard one last time on a different (OSX) laptop. When I plugged it in, it worked perfectly fine, no problems at all. When I plug it back into the other laptop, the problems occur again. I also found, that if I am typing alphas in rapid succession, and then press space/enter at the end, it will register the space/enter.....then repeat the space/enter infinitely. I am stumped.

Oh, that weird behiviour indicates power supply problem, Topre capacitive sense chip tends to go bad with low voltage.  Some of USB cables and USB hub causes this problem in some situations. If you are using external USB hub plug directly into port of laptop. Also wall wart power supply or changing USB cables may fix problem.

But still making sure internal connectors fit into each other is good idea. Bad connection there also can cause wierd problem like that.

I using the same usb cable, and for both I am plugging directly into the laptops. I tried making sure the internal connecters fit each other, I took them out and put them back in making sure they were in all the way. Tried typing on both again, still same thing happening.

Hmm, Alt controller works on one laptop but not on the other, right? If you sitll have HHKB original USB cable try it.

And can you check if original controller works well on both laptops with the cable? If so it seems that Alt Controller has something wrong. I'll send replacement or refund.



Title: Re: [TMK] HHKB Alt Controller
Post by: Azzures on Fri, 16 June 2017, 01:03:26
Hey recently got my controller and installed it, but for some reason the default firmware on the controller works with normal alpha and numbers, but doesnt work for del, enter, backspace, arrow keys, etc. Did I do something wrong during installation? Should I try flashing on another firmware? Mine is a JP version. Sorry for the trouble, thanks for the help!

Hmm, I don't think of cause of that. Do all of alpah and number keys work correctly? Didn't you flash firmware yourself yet? I'd suggest mating connector firmly again and flash firmware downloaded from Keymap Editor.

Let me know which OS you are on and  invoice number.

Im pretty sure they all do. underscore, period, colon, etc dont work either, but command works. I have yet to flash the firmware yet. I will redo the connector firmly again and flashing the firmware when I get home tonight. Im on OSX, and my invoice was #0880. Thanks for the help!

I'd suspect something hardware fault on cables, connector or Alt controller if those don't work. Also checking those problematic keys work with original controller would be helpful.
Thanks for your patience.

Ok so this is really weird. When I got home, i decided to try the keyboard one last time on a different (OSX) laptop. When I plugged it in, it worked perfectly fine, no problems at all. When I plug it back into the other laptop, the problems occur again. I also found, that if I am typing alphas in rapid succession, and then press space/enter at the end, it will register the space/enter.....then repeat the space/enter infinitely. I am stumped.

Oh, that weird behiviour indicates power supply problem, Topre capacitive sense chip tends to go bad with low voltage.  Some of USB cables and USB hub causes this problem in some situations. If you are using external USB hub plug directly into port of laptop. Also wall wart power supply or changing USB cables may fix problem.

But still making sure internal connectors fit into each other is good idea. Bad connection there also can cause wierd problem like that.

I using the same usb cable, and for both I am plugging directly into the laptops. I tried making sure the internal connecters fit each other, I took them out and put them back in making sure they were in all the way. Tried typing on both again, still same thing happening.

Hmm, Alt controller works on one laptop but not on the other, right? If you sitll have HHKB original USB cable try it.

And can you check if original controller works well on both laptops with the cable? If so it seems that Alt Controller has something wrong. I'll send replacement or refund.

I dont have the original cable, but ive just checked across 3 different cables, but the results are the same. I then put back in the original controller, and it works perfectly fine on both laptops. I'd prefer a replacement if possible. Thanks again for the help, and sorry for the trouble!
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 16 June 2017, 01:17:32
Hey recently got my controller and installed it, but for some reason the default firmware on the controller works with normal alpha and numbers, but doesnt work for del, enter, backspace, arrow keys, etc. Did I do something wrong during installation? Should I try flashing on another firmware? Mine is a JP version. Sorry for the trouble, thanks for the help!

Hmm, I don't think of cause of that. Do all of alpah and number keys work correctly? Didn't you flash firmware yourself yet? I'd suggest mating connector firmly again and flash firmware downloaded from Keymap Editor.

Let me know which OS you are on and  invoice number.

Im pretty sure they all do. underscore, period, colon, etc dont work either, but command works. I have yet to flash the firmware yet. I will redo the connector firmly again and flashing the firmware when I get home tonight. Im on OSX, and my invoice was #0880. Thanks for the help!

I'd suspect something hardware fault on cables, connector or Alt controller if those don't work. Also checking those problematic keys work with original controller would be helpful.
Thanks for your patience.

Ok so this is really weird. When I got home, i decided to try the keyboard one last time on a different (OSX) laptop. When I plugged it in, it worked perfectly fine, no problems at all. When I plug it back into the other laptop, the problems occur again. I also found, that if I am typing alphas in rapid succession, and then press space/enter at the end, it will register the space/enter.....then repeat the space/enter infinitely. I am stumped.

Oh, that weird behiviour indicates power supply problem, Topre capacitive sense chip tends to go bad with low voltage.  Some of USB cables and USB hub causes this problem in some situations. If you are using external USB hub plug directly into port of laptop. Also wall wart power supply or changing USB cables may fix problem.

But still making sure internal connectors fit into each other is good idea. Bad connection there also can cause wierd problem like that.

I using the same usb cable, and for both I am plugging directly into the laptops. I tried making sure the internal connecters fit each other, I took them out and put them back in making sure they were in all the way. Tried typing on both again, still same thing happening.

Hmm, Alt controller works on one laptop but not on the other, right? If you sitll have HHKB original USB cable try it.

And can you check if original controller works well on both laptops with the cable? If so it seems that Alt Controller has something wrong. I'll send replacement or refund.

I dont have the original cable, but ive just checked across 3 different cables, but the results are the same. I then put back in the original controller, and it works perfectly fine on both laptops. I'd prefer a replacement if possible. Thanks again for the help, and sorry for the trouble!

OK. I'll email you.
Title: Re: [TMK] HHKB Alt Controller
Post by: passh on Wed, 28 June 2017, 06:00:52
Hi all  thanks 4 the great work ! i discover this post a few days ago and purchased 1 hhkb (http://www.smartimports.net/products/Happy-Hacking-Keyboard-Professional2-.html ) and a bt mod (  https://1upkeyboards.com/products/controllers.html )

I want to test this battery availiable on European Markets :

http://es.rs-online.com/web/p/products/1251266/?tpr=1

And here is the specs:

http://docs-europe.electrocomponents.com/webdocs/154f/0900766b8154f73b.pdf

But i dont know if is the correct one :S the other models are not availiables in my country.

Need help and want to help too ;) , sorry for my poor english.

I see there is a list of tested ones on the 1st Hasu's Post .
If i can finally test ill send the feedback . For now , still waiting the arrival of the orders (^^)

Thanks for your help!!

Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 28 June 2017, 06:44:01
Hi all  thanks 4 the great work ! i discover this post a few days ago and purchased 1 hhkb (http://www.smartimports.net/products/Happy-Hacking-Keyboard-Professional2-.html ) and a bt mod (  https://1upkeyboards.com/products/controllers.html )

I want to test this battery availiable on European Markets :

http://es.rs-online.com/web/p/products/1251266/?tpr=1

And here is the specs:

http://docs-europe.electrocomponents.com/webdocs/154f/0900766b8154f73b.pdf

But i dont know if is the correct one :S the other models are not availiables in my country.

Need help and want to help too ;) , sorry for my poor english.

I see there is a list of tested ones on the 1st Hasu's Post .
If i can finally test ill send the feedback . For now , still waiting the arrival of the orders (^^)

Thanks for your help!!



Hi,
The battery  is compatible form electrical point of view but according to the spec sheet its connector is JST XH, you need PH plug instead. Wire length is not enough, around 100mm is preferable. Also battery dimention may not fit into cavity in HHKB.

Quote from first post.
Quote
You need to use 3.7V Lithium Ion Polymer battery with JST PH 2pin connector and battery protection circuit. Battery space inside HHKB is around 54mm x 50mm and its height is 7mm(or 8mm).

Title: Re: [TMK] HHKB Alt Controller
Post by: passh on Thu, 29 June 2017, 09:59:34
Hi thansk for your response!  and 4 the info! i searching other compatible in size and with the right connector and try it when i have the keyboard on my hands .

I find this model, what do you think ? ty!
https://www.amazon.es/gp/product/B072B6ZVN9/ref=ox_sc_act_title_1?smid=A3EHA2IH6ZF2LL&psc=1


Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 29 June 2017, 15:58:01
Hi thansk for your response!  and 4 the info! i searching other compatible in size and with the right connector and try it when i have the keyboard on my hands .

I find this model, what do you think ? ty!
https://www.amazon.es/gp/product/B072B6ZVN9/ref=ox_sc_act_title_1?smid=A3EHA2IH6ZF2LL&psc=1




It has right connector and will work if it fits into case. I think 65mm may be a bit too long.

I had this Sparkfun 1000mAh battery years ago and it worked for me.
http://amzn.eu/a71dBKR
Title: Re: [TMK] HHKB Alt Controller
Post by: passh on Thu, 29 June 2017, 16:51:01
Hi ! thanks a lot i really aprecciate your help i spent a few hours looking some similar, in a few weeks i can test all components  , is really cheaper than the other and is enought for the use i want ,  4 o 5 h / day , the rest of time ill will use the usb.
Really impatient awainting the 3 components, keyboard hhkb pro2 US blank keys , increible hasu's controller and the battery .
Ill send some phothos of unboxing and assembly proccess when i have the items ! Meanwhile i have installed all software i want to include the  chars 'ñ/Ñ' (HEX F1/D1) on layer 2 or 3 (but this is the next quest ^^ ty hasu!)
Title: Re: [TMK] HHKB Alt Controller
Post by: Eugene94 on Sat, 08 July 2017, 19:25:37
Got mine installed the other night but still waiting on my battery to come. I opted to grab the 2300mAh from microcenter per pyro2927's previous post.
More details pics to come but here the idea:

(https://c4.staticflickr.com/9/8275/28732996355_fbd68b73c2_b.jpg) (https://flic.kr/p/KM37LT)

Beautiful :)
Title: Re: [TMK] HHKB Alt Controller
Post by: devoi on Mon, 10 July 2017, 18:14:06
Would it be difficult to have a key print out the percentage left in the battery?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 12 July 2017, 15:15:11
Would it be difficult to have a key print out the percentage left in the battery?
on text editor or something? it is not so difficult. i can help you.
Title: Re: [TMK] HHKB Alt Controller
Post by: Cocopah on Wed, 12 July 2017, 15:19:30
Is there any chance there will be a hasu controller made for the native HHKB Bluetooth?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 12 July 2017, 15:20:53
Is there any chance there will be a hasu controller made for the native HHKB Bluetooth?
no.
Title: Re: [TMK] HHKB Alt Controller
Post by: Cocopah on Wed, 12 July 2017, 15:23:18
Is there any chance there will be a hasu controller made for the native HHKB Bluetooth?
no.

(http://i.imgur.com/aSVjtu7.png)
Title: Re: [TMK] HHKB Alt Controller
Post by: devoi on Wed, 12 July 2017, 16:00:54
Would it be difficult to have a key print out the percentage left in the battery?
on text editor or something? it is not so difficult. i can help you.

yeah, that would be perfect. this really isn't my area of expertise, so any help would be wonderful.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 12 July 2017, 19:02:26
You can get battery voltage with this function. I don't know how to calc percentage of battery capacity but I think you can find it somewhere on the net.
https://github.com/tmk/tmk_keyboard/blob/master/keyboard/hhkb/rn42/battery.c#L87

And you can use register_code() and unregister_code() to print a charactor on text editor.
https://github.com/tmk/tmk_keyboard/blob/master/tmk_core/common/action.c#L359-L493

This code displays '1%' for example, assuming you are using US layout.
Code: [Select]
    // 1
    register_code(KC_1);
    unregister_code(KC_1);
    // % (Shift + 5)
    regsiter_code(KC_LSHIFT);
    register_code(KC_5);
    unregister_code(KC_5);
    unregsiter_code(KC_LSHIFT);
Title: Re: [TMK] HHKB Alt Controller
Post by: QuyenD on Fri, 21 July 2017, 03:40:13
I have received the controller but unluckily I cannot get the standard battery from our market. Is there a way to check if charger chip is still working fine? or to check if the board is stil fine without connecting it to a HHKB?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 21 July 2017, 04:28:06
it should be around 4.2V at connector without battery. the charger chip would be probably alright if you can see that voltage.
Title: Re: [TMK] HHKB Alt Controller
Post by: joric on Sun, 23 July 2017, 10:17:49
Resoldered miniusb with microusb (I hate having a separate miniusb cable just to charge the keyboard), looks and works fine.

(http://i.imgur.com/L6qTIVe.jpg)

(http://i.imgur.com/1FrihtS.jpg)

(http://i.imgur.com/la51uyG.jpg)

(http://i.imgur.com/HL5X3RV.jpg)

(http://i.imgur.com/d4V6bcI.jpg)


Title: Re: [TMK] HHKB Alt Controller
Post by: Acerk on Tue, 25 July 2017, 02:12:06
My controller appeared faster than I imagined. It worked flawlessly. Sorted all my layout issues. Thank you!
Title: Re: [TMK] HHKB Alt Controller
Post by: acevery on Sat, 19 August 2017, 09:01:59
Hi, how can I change the blue tooth name of the HHKB BT control board?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sat, 19 August 2017, 13:48:26
Hi, how can I change the blue tooth name of the HHKB BT control board?

The name 'TmkBT-XXXX' is stored actually in Bluetooth module RN42 and you can change 'TmkBT' part while '-XXXX' part is not configurable and it is last 4digits of bluetooth address.

You can change the name by editing this line then build and upload firmware.
https://github.com/tmk/tmk_keyboard/blob/master/keyboard/hhkb/rn42/rn42_task.c#L160

And you have to initialize RN42 module with LShift+RShift+ScrollLock(Fn+O). The intialization is nedeed just once after firmware is updated.

Quote from MANUAL of Bluetooth Controller in the first post.
https://geekhack.org/index.php?topic=71517.0
"""
RN42 initialize
You can initialize module when you are in trouble. But you should tarke care to prevent module from being cofigured incompletely or wrongly. Take the following steps.

0. Turn BT swich off and unplug USB cable.
1. open hid_listen. You can do without it but I recommend.
2. Plug USB cable and wait for keyboard to startup.
3. Press key combo LShift+RShift+ScrollLock(Fn+O).
4. Turn BT switch on. You will see output below on hid_listen.
5. Do not touch keyobard until the command completes or for twenty seconds.

Now module is configured with default setting and in pairing mode. You may need extra power cycle for pairing, try BT switch off and on.
"""
Title: Re: [TMK] HHKB Alt Controller
Post by: acevery on Sat, 19 August 2017, 23:44:38
Hi, how can I change the blue tooth name of the HHKB BT control board?

The name 'TmkBT-XXXX' is stored actually in Bluetooth module RN42 and you can change 'TmkBT' part while '-XXXX' part is not configurable and it is last 4digits of bluetooth address.

You can change the name by editing this line then build and upload firmware.
https://github.com/tmk/tmk_keyboard/blob/master/keyboard/hhkb/rn42/rn42_task.c#L160

And you have to initialize RN42 module with LShift+RShift+ScrollLock(Fn+O). The intialization is nedeed just once after firmware is updated.

Quote from MANUAL of Bluetooth Controller in the first post.
https://geekhack.org/index.php?topic=71517.0
"""
RN42 initialize
You can initialize module when you are in trouble. But you should tarke care to prevent module from being cofigured incompletely or wrongly. Take the following steps.

0. Turn BT swich off and unplug USB cable.
1. open hid_listen. You can do without it but I recommend.
2. Plug USB cable and wait for keyboard to startup.
3. Press key combo LShift+RShift+ScrollLock(Fn+O).
4. Turn BT switch on. You will see output below on hid_listen.
5. Do not touch keyobard until the command completes or for twenty seconds.

Now module is configured with default setting and in pairing mode. You may need extra power cycle for pairing, try BT switch off and on.
"""

Great! I changed the BT name to HHKB now, many thanks :)
Title: Re: [TMK] HHKB Alt Controller
Post by: Vadurr on Mon, 11 September 2017, 20:20:51
Hey guys, I've recently built a new pc and also made the switch from Windows 7 to Windows 10. The controller worked flawlessly while I had W7. At first I thought that the controller wouldn't work with W10 at all, but after tons of trial and error, I can seem to get it to work randomly for what seems like 1/25 attempts. Is anyone else here using the controller with Windows 10?

Update: I just paired everything to my buddies pc with w7 and everything works flawlessly. Bummer that I can't use it with my pc reliably but at least I can still take it everywhere with me!  :cool:
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Tue, 12 September 2017, 20:57:31
Hey guys, I've recently built a new pc and also made the switch from Windows 7 to Windows 10. The controller worked flawlessly while I had W7. At first I thought that the controller wouldn't work with W10 at all, but after tons of trial and error, I can seem to get it to work randomly for what seems like 1/25 attempts. Is anyone else here using the controller with Windows 10?

Update: I just paired everything to my buddies pc with w7 and everything works flawlessly. Bummer that I can't use it with my pc reliably but at least I can still take it everywhere with me!  :cool:

My top laptop with Windows10 works with BT controller, though, mine is very old Thinkpad X201s with Classic Bluetooth 2.1. Any other users have experience with Windows10?

I don't think BT controller has necessarily problem with Windows10. But there can be problem or incompatibility with some hardwares and drivers.


What is your hardware? laptop?
What is exactly your problem with your WIndows 10?
Pairing process(Add device) doesn't work? or Controller fails to auto-connect to host? or it works weirdly when connected?
Title: Re: [TMK] HHKB Alt Controller
Post by: Vadurr on Sat, 16 September 2017, 16:47:14
Hey guys, I've recently built a new pc and also made the switch from Windows 7 to Windows 10. The controller worked flawlessly while I had W7. At first I thought that the controller wouldn't work with W10 at all, but after tons of trial and error, I can seem to get it to work randomly for what seems like 1/25 attempts. Is anyone else here using the controller with Windows 10?

Update: I just paired everything to my buddies pc with w7 and everything works flawlessly. Bummer that I can't use it with my pc reliably but at least I can still take it everywhere with me!  :cool:

My top laptop with Windows10 works with BT controller, though, mine is very old Thinkpad X201s with Classic Bluetooth 2.1. Any other users have experience with Windows10?

I don't think BT controller has necessarily problem with Windows10. But there can be problem or incompatibility with some hardwares and drivers.


What is your hardware? laptop?
What is exactly your problem with your WIndows 10?
Pairing process(Add device) doesn't work? or Controller fails to auto-connect to host? or it works weirdly when connected?

I'm running w10 on a pc. It adds the device fine but just gets stuck on searching (red blink) forever. It will work randomly but for the most part, it just stays on searching.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Tue, 19 September 2017, 15:18:33
Hey guys, I've recently built a new pc and also made the switch from Windows 7 to Windows 10. The controller worked flawlessly while I had W7. At first I thought that the controller wouldn't work with W10 at all, but after tons of trial and error, I can seem to get it to work randomly for what seems like 1/25 attempts. Is anyone else here using the controller with Windows 10?

Update: I just paired everything to my buddies pc with w7 and everything works flawlessly. Bummer that I can't use it with my pc reliably but at least I can still take it everywhere with me!  :cool:

My top laptop with Windows10 works with BT controller, though, mine is very old Thinkpad X201s with Classic Bluetooth 2.1. Any other users have experience with Windows10?

I don't think BT controller has necessarily problem with Windows10. But there can be problem or incompatibility with some hardwares and drivers.


What is your hardware? laptop?
What is exactly your problem with your WIndows 10?
Pairing process(Add device) doesn't work? or Controller fails to auto-connect to host? or it works weirdly when connected?

I'm running w10 on a pc. It adds the device fine but just gets stuck on searching (red blink) forever. It will work randomly but for the most part, it just stays on searching.


For reference these are screeshots of pairing process on WIndows 10.
https://imgur.com/a/jW39K

You can basically do two thing with Bluetooth controller when you are in trouble.
1) Press 'LShift+RShift+p' to remove paring infomation from controller. This will be required when computer Bluetooth setting/stack/driver is changed.

2) Initialize Bluetooth module(RN42) on controller. This removes all paring informations and settings then configures moudule from the begining. This is not needed in many cases but you can try when other methods doesn't help. Also refer to the first post.

Quote
You can initialize module when you are in trouble. But you should tarke care to prevent module from being cofigured incompletely or wrongly. Take the following steps.

0. Turn BT swich off and unplug USB cable.
1. open hid_listen. You can do without it but I recommend.
2. Plug USB cable and wait for keyboard to startup.
3. Press key combo LShift+RShift+ScrollLock(Fn+O).
4. Turn BT switch on. You will see output below on hid_listen.
5. Do not touch keyobard until the command completes or for twenty seconds.

Now module is configured with default setting and in pairing mode. You may need extra power cycle for pairing, try BT switch off and on.


And on  Windows side these posts I found may help you.

https://answers.microsoft.com/en-us/windows/forum/windows_10-hardware/bluetooth-headphones-are-paired-but-dont/a34fc951-e292-4fbd-b1c7-7b00db5518f1?auth=1
https://answers.microsoft.com/en-us/windows/forum/windows_10-hardware/my-bluetooth-device-is-enabled-and-shows-as-paired/15bfab2d-678e-423f-964b-bd58c78bda6d?tm=1440804957480
Title: Re: [TMK] HHKB Alt Controller
Post by: Vadurr on Wed, 20 September 2017, 01:59:24
After trying all those methods, the best thing I could find is an error with Qualcomm Atheros QCA61x4a Bluetooth. Upon updating the driver, it'll just tell me that the best driver is already installed. I've also gone through every driver listed on option two here. https://www.drivereasy.com/knowledge/qualcomm-atheros-bluetooth-driver-not-working-on-windows-10-solved/ (https://www.drivereasy.com/knowledge/qualcomm-atheros-bluetooth-driver-not-working-on-windows-10-solved/) Lastly, I unpaired and repaired everything for it to work once on the first try. Every time after that, the status would just be paired instead of connected. Here's a SS of it connected: https://imgur.com/a/TZa0L (https://imgur.com/a/TZa0L)
Title: Re: [TMK] HHKB Alt Controller
Post by: Signature on Fri, 29 September 2017, 08:29:38
How hard would it be to make a BT hhkb 1? Don´t really wanna siwtch my kb just for the bluetooth and would be a fun project if it´s possible :D
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 29 September 2017, 16:36:05
How hard would it be to make a BT hhkb 1? Don´t really wanna siwtch my kb just for the bluetooth and would be a fun project if it´s possible :D

Definitely possible. Pro1 is electrically identical to pro2.
Title: Re: [TMK] HHKB Alt Controller
Post by: menuhin on Mon, 16 October 2017, 03:50:11
Hi Hasu,

Is the USB controller low-watt enough to be running as a wired-keyboard to the iPad / iPad mini (like the HHKB JP / HHKB Pro 1)?

As far as I know, only the HHKB Pro2 JP and HHKB Pro 1 can run as a wired-keyboard with the iPad / iPad mini because of their lack of USB ports. Correct?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Mon, 16 October 2017, 07:00:18
menuhin,
Assuming you are talking about original controllers.
Yes, Pro1 and JP worked with iPad while Pro2 didn't at some point. I can remember some people said so a few years ago. I don't know about recent iPad/iOS.

Title: Re: [TMK] HHKB Alt Controller
Post by: menuhin on Mon, 16 October 2017, 10:08:22
menuhin,
Assuming you are talking about original controllers.
Yes, Pro1 and JP worked with iPad while Pro2 didn't at some point. I can remember some people said so a few years ago. I don't know about recent iPad/iOS.

Hi Hasu,

I am asking also if the Hasu Controller for HHKB Pro1 to replace its original controller will be running at a Watt that allow its to just plug in an iPad / iPad mini and work. :)
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Mon, 16 October 2017, 16:47:39
menuhin,
Assuming you are talking about original controllers.
Yes, Pro1 and JP worked with iPad while Pro2 didn't at some point. I can remember some people said so a few years ago. I don't know about recent iPad/iOS.

Hi Hasu,

I am asking also if the Hasu Controller for HHKB Pro1 to replace its original controller will be running at a Watt that allow its to just plug in an iPad / iPad mini and work. :)


Also I can remember some users said USB Pro1/Pro2/JP Alt controller worked with iPad. I don't know about Bluetooth Alt controller.
Title: Re: [TMK] HHKB Alt Controller
Post by: mseaworthy on Thu, 19 October 2017, 15:05:41
Really appreciate some help on this...

What should be mapped on the fn key on the main layer for HHKB Pro 2 in order to take advantage of the key combination (LSHIFT + RSHIFT + Fn + P) to go into bootloader mode?

It seems I have accidentally re-mapped my fn key and I can no longer use the key combination to get into bootmapper mode.

Right now I'm having to open the board to press the reset button--don't want to be doing it that way.

Should it be "NO" or "L0" or something else?

NOTE: I was able to drop back to Hasu's default config .Hex and start fresh from there.

Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 19 October 2017, 19:53:49
To start up bootloader you can press both shifts and 'Pause' in TMK. In default HHKB keymap 'Pause' is assigned to FN+P but you can place the key('Pause') anywhere.
Title: Re: [TMK] HHKB Alt Controller
Post by: mseaworthy on Thu, 19 October 2017, 23:20:11
Thanks, Hasu. I was aware of the great key combo shortcut for getting into bootmapper mode, but I had just had this great idea that I should remap my RShift becuase I never use it...so when I went to use the RShift as part of the key combo for flashing...I was toast.

I was having a challenge getting back to a default layout (RShift was RShift) but I eventually figured it out.

Thanks for your help and for Making the HHKB "great again."
Title: Re: [TMK] HHKB Alt Controller
Post by: mseaworthy on Mon, 23 October 2017, 11:31:46
I have one of these 90 degree USB adapters on my Hasu HHKB controller in hopes of preserving the longevity of the port—I know some say there’s nothing to worry about but why take chances when you depend on the control offered by this great device.

The 90 degree adapter fits more loosely than a standard cable so I wonder if it’s actually worse by introducing a little lateral force?

[attachimg=1]
Title: Re: [TMK] HHKB Alt Controller
Post by: Atredl on Mon, 23 October 2017, 14:05:59
I have one of these 90 degree USB adapters on my Hasu HHKB controller in hopes of preserving the longevity of the port—I know some say there’s nothing to worry about but why take chances when you depend on the control offered by this great device.

The 90 degree adapter fits more loosely than a standard cable so I wonder if it’s actually worse by introducing a little lateral force?

(Attachment Link)
Using that adapter wouldn't reduce the force that's being applied to connector, it'll just move where that force is being applied. In this case it might increase the force experienced by the connector since you're basically adding in a moment arm (think lever) and moving the force away from the center of the connector.

That's all the physics of what's going on. In reality though, the cables we use don't have enough weight to cause any damage when they're just sitting on our desks. Unless your cable has one of those aviator connectors right up against the mini usb connector so that the aviator connector is lifted off your desk, there is no damage being done when everything is just sitting there.

If I was you, I would go without the adapter since it doesn't actually help what you are trying to achieve. However, if you need the cable to make a quick 90 degree turn because of space constraints, don't be afraid to use the adapter.

Edit: If you’re worried about connector longevity, I would pay attention to the way you connect/disconnect the cable since we are capable of exerting a lot more force than a sitting cable.
Title: Re: [TMK] HHKB Alt Controller
Post by: mseaworthy on Mon, 23 October 2017, 16:36:24
@Altedl - Thanks for your reply.

Yes, it was the later concern. Just trying to increase the longevity of the port. When I think of it, I'm careful inserting and removing the cable, but I switch keyboards and locations somewhat frequently so only a matter of time before I do something careless...

The adapter pictured is lousy. It is loose and as you suggested, I think it's applying more leverage than the cable does on its own. However, I remembered I had an Motorola adapter (USB A female to USB Mini male) that is nearly 2x longer, has a tight port fit. It seems to accomplish what I'm looking for.
Title: Re: [TMK] HHKB Alt Controller
Post by: mseaworthy on Wed, 25 October 2017, 17:15:34
Is there a code accessible within the TMK online editor that can help with the situation where you sort of get stuck between layers?

Sometimes when I get no result when I hit a key, and I’ll hit it a few more times before I realize “I’m stuck.” And I can typically get un-stuck by hitting my f3 layer key.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 25 October 2017, 23:30:53
When you have "stuck layer" you suffer from mess of keymap or bug of firmware.
First thing you should do is to fix keymap(or firmware) there.

what is "f3 layer key" exactly?
Title: Re: [TMK] HHKB Alt Controller
Post by: mseaworthy on Thu, 26 October 2017, 11:18:50
Sorry for being unclear. The f3 layer key I'm referring too in my HHKB layout is the bottom R-ALT.

I've attached my HEX produced from the online editor.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 27 October 2017, 17:50:19
mseaworthy, you have L3 on tab key in Layer 2 and this causes your problem probably.
Try this scenario,
1. hold Left Alt(L2) and hold the tab(L3), now Layer 2 and Layer 3 is turned on.
2. release Left Alt(L2) and  you turn Layer 2 off. But Layer 3 is still valid.
3. release tab. voila! Layer 3 is stuck now. Because tab key on Layer 3 is define 'TRNS' so firmware searches valid lower layers, at this time Layer 2 and 1 is not turned on and Layer 0(always on) is used in the end. The tab key on Layer 0 is defined 'TAB' so 'Tab release' event occurs, which makes no sense there.

You can solve this problem by placing 'L3' on tab key in Layer 3. Try this keymap.
https://goo.gl/YvtyoY
(BTW, you can use 'URL' to share your keymap, use 'URL shortener' button)


This layer stuck problem was fixed on this May in repository but HHKB keymap editor is not updated yet since then. I'll update it some later. Once it is updated your original keymap also should work without the change.
https://github.com/tmk/tmk_keyboard/wiki/FAQ-Keymap#modifierlayer-stuck
Title: Re: [TMK] HHKB Alt Controller
Post by: mseaworthy on Sat, 28 October 2017, 12:02:06
Thanks for the information, Hasu.

My motivation for having L2 and L3 active at the same time was to enable mouse keys on same keys as my arrow keys (L-CMD + IJKL).

Layer 1 = Arrow navigation on IJKL; Layer 1 activated by holding L-CMD
Layer 2 = IJKL are part of my embedded numpad; Layer 2 activated by holding L-ALT
Layer 3 = IJKL are mouse keys; Layer 2 and Layer 3 activated by holding L-ALT and L-CMD together

I wasn't aware holding two keys to turn on a layer would create a conflict.

As you can see from the layout, I have fn3 on the R-ALT, but I don't have the dexterity (nor is it comfortable) to hold R-ALT while reaching for IJKL.

Maybe the best idea for me would be to find another key on the left side of the board I can hold with my pinkie or thumb while using IJKL mouse keys (similar to the way I hold L-CMD + IJKL for arrows). Anyone else using mouse keys...how do you activate them?

EDIT: Looks like I might be able make it work by putting ACTION_LAYER_TAP_KEY on my Tab key to enable mouse keys on L3 (IJKL) without any conflict. https://goo.gl/MauU9n

I continue to be amazed at the power and control Hasu makes available to this community. Not trying to be condescending, but it makes you question the productivity of using a keyboard without the full control offered by the flexibility of this tool. Thanks again, Hasu.
Title: Re: [TMK] HHKB Alt Controller
Post by: jackielii on Fri, 03 November 2017, 04:33:55
Hi,

Got my BT controller a few days ago. Being able to remap my keys feels great.

Got a tiny problem but I'm not sure what could be the cause: The bluetooth sometimes randomly disconnects, and then re-connects after ~30 seconds. There is no pattern as to when it disconnects. But seems when it disconnects, I'm always typing something.

Can this be an hardware issue?

Here is my setup:

T440s
Xubuntu 1604
HHKB pro2
BT Controller
Title: Re: [TMK] HHKB Alt Controller
Post by: jackielii on Fri, 03 November 2017, 05:40:03
For those in the UK looking for batteries. Here is my experience:

1. be aware of the cable length:
[attach=1]
    I then tried extend the cable, but realised it doesn't fit  :( . I remember seeing the picture of this battery from one of the links in Hasu's post. It must be an example that doesn't work. So I won't post the buy link here

2. This works: https://shop.pimoroni.com/products/lipo-battery-pack
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 03 November 2017, 07:08:03
Hi,

Got my BT controller a few days ago. Being able to remap my keys feels great.

Got a tiny problem but I'm not sure what could be the cause: The bluetooth sometimes randomly disconnects, and then re-connects after ~30 seconds. There is no pattern as to when it disconnects. But seems when it disconnects, I'm always typing something.

Can this be an hardware issue?

Here is my setup:

T440s
Xubuntu 1604
HHKB pro2
BT Controller

Not sure what its cause is but try removing pairing infos from both host and keyboard.
Press both shifts and 'p' to remove the infos from keyboard. I think you know how to do it on the xubuntu.

Also restart these daemons may help or just reboot OS.
Code: [Select]
$ ps auxww|grep blue
noname   12941  0.0  0.0 150304     0 ?        S    Oct28   0:00 /usr/lib/bluetooth/obexd
root     13121  0.0  0.0  32960  2572 ?        Ss   Oct28   0:02 /usr/lib/bluetooth/bluetoothd
noname   14842  0.0  0.6 710144 24800 ?        Sl   Oct28   0:40 /usr/bin/python3 /usr/bin/blueman-applet


If things above doesn't help press both shifts and 'scrolllock' to initialize BT module.
Title: Re: [TMK] HHKB Alt Controller
Post by: tragedyfoundus on Sat, 02 December 2017, 07:20:40
So I flashed my firmware, all my layers work great but I can't get the bluetooth to work. I turn the switch on and the led flashes red, then I go to my bluetooth devices but it doesn't show up. I've attempted to pair it with other devices such as my laptop and even my phone and it works perfectly but it won't actually pair with my main PC, doesn't show up at all. I've updated my drivers, reset my bluetooth services, still nothing. Getting very frustrated here. Any ideas?
Title: Re: [TMK] HHKB Alt Controller
Post by: tragedyfoundus on Sat, 02 December 2017, 07:56:38
And how do I get NKRO to work? I used Flip to flash my firmware btw.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sat, 02 December 2017, 15:56:15
does the red led keep flashing?
Which os are you using on the main pc?

1) Try to turn off the laptop and phone, this keeps the devices from connecting to keyboard.
2) Press both shift and p to remove pairing info from bluetooth module

Currently default firmware for Bluetooth controller doesn't support NKRO. You have to build firmware yourself.

Add a line below to Makefile.unimap.rn42 and run 'make -f Makefile.unimap.rn42'. Note that NKRO works only on USB.
---
NKRO_ENABLE = yes
---
Title: Re: [TMK] HHKB Alt Controller
Post by: tragedyfoundus on Sun, 03 December 2017, 03:33:37
does the red led keep flashing?
Which os are you using on the main pc?

1) Try to turn off the laptop and phone, this keeps the devices from connecting to keyboard.
2) Press both shift and p to remove pairing info from bluetooth module

Currently default firmware for Bluetooth controller doesn't support NKRO. You have to build firmware yourself.

Add a line below to Makefile.unimap.rn42 and run 'make -f Makefile.unimap.rn42'. Note that NKRO works only on USB.
---
NKRO_ENABLE = yes
---

Yes, the red light keeps flashing. I've disconnected the keyboard from all other devices as well and it still won't discover the keyboard. I've pressed both shifts and P several times as well. As for building my own firmware; what programs would I need for that ? I'm currently using Windows 10 Pro 64bit which I know isn't ideal for building firmware or so I read. Thanks for the reply too, definitely need some help here haha.
Title: Re: [TMK] HHKB Alt Controller
Post by: tragedyfoundus on Sun, 03 December 2017, 14:51:55
Okay so I've managed to flash the firmware with Ubuntu on Oracle VM Virtual Box. But how do I exactly make my own layout for the keyboard? Like set my own custom layers?
Title: Re: [TMK] HHKB Alt Controller
Post by: RowanG on Sun, 03 December 2017, 18:09:52
So I am playing with the idea of starting to contribute to the source code and implementing a new more power efficient bluetooth le 4.0 module: https://www.aliexpress.com/item/nRF52832-2-4GHz-Wireless-rf-Module-CDSENET-E73-2G4M04S-SPI-SMD-rf-Receiver-transmitter-Bluetooth-Module/32819293925.html.

Is there any interest in this? I am not sure how much longer the battery lfie would be since the numbers aren't set in stone for that chip. I have not yet before worked with bluetooth le so I might be completely wrong but I think it might be worthwhile. Do you have any idea of this Hasu?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 03 December 2017, 18:27:35
Okay so I've managed to flash the firmware with Ubuntu on Oracle VM Virtual Box. But how do I exactly make my own layout for the keyboard? Like set my own custom layers?

There are two options for you.

1) use keymap edior with you
In 'Base Firmware File:' section select your own build firmware hex file 'hhkb_rn42.hex' with file chooser.
And just edit keymap and download as usual, you will get your own firmware with keymap you edited.

2) edit keymap in source code:
Copy unimap_hhkb.c or unimap_hasu.c to unimap_tragedyfoundus.c and edit it.
And run 'make -f Makefile.unimap.rn42 KEYMAP=tragedyfoundus' to compile it.


And what is your main PC's motherboard or bluetooth adapter? does it support Bluetooth 2.1 or 3?
To use this bluetooth controller you need those vesions support.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 03 December 2017, 19:11:31
So I am playing with the idea of starting to contribute to the source code and implementing a new more power efficient bluetooth le 4.0 module: https://www.aliexpress.com/item/nRF52832-2-4GHz-Wireless-rf-Module-CDSENET-E73-2G4M04S-SPI-SMD-rf-Receiver-transmitter-Bluetooth-Module/32819293925.html.

Is there any interest in this? I am not sure how much longer the battery lfie would be since the numbers aren't set in stone for that chip. I have not yet before worked with bluetooth le so I might be completely wrong but I think it might be worthwhile. Do you have any idea of this Hasu?

Yes, BLE and nRF chip are way to go for now. But I would start to use it with other project, such as usual mechaniral switch keyboard. It makes prototyping easy. HHKB requires 5V power source and I/O pins and power saving won't be easy job, you will need to design replacement pcb for existent keyboard switch unit to get copmlete control for power saving.

And assuming this is not just private project,
to obey radio regulation requirements I would have to be consevative a little when choosing products. They are wanted to have certifications of many countries as possible. For example this is one of cadidates. https://www.seeedstudio.com/MDBT40-256RV3-nRF51822-based-BLE-module-p-2503.html
Title: Re: [TMK] HHKB Alt Controller
Post by: tragedyfoundus on Mon, 04 December 2017, 00:48:03
Okay so I've managed to flash the firmware with Ubuntu on Oracle VM Virtual Box. But how do I exactly make my own layout for the keyboard? Like set my own custom layers?

There are two options for you.

1) use keymap edior with you
In 'Base Firmware File:' section select your own build firmware hex file 'hhkb_rn42.hex' with file chooser.
And just edit keymap and download as usual, you will get your own firmware with keymap you edited.

2) edit keymap in source code:
Copy unimap_hhkb.c or unimap_hasu.c to unimap_tragedyfoundus.c and edit it.
And run 'make -f Makefile.unimap.rn42 KEYMAP=tragedyfoundus' to compile it.


And what is your main PC's motherboard or bluetooth adapter? does it support Bluetooth 2.1 or 3?
To use this bluetooth controller you need those vesions support.

My motherboard is the problem in regards to the bluetooth, doesn't support the right version of it for the controller. I'll just get a bluetooth adapter on Amazon.

As for option 2; Would you mind running me through the process step by step from the very beginning? I'm pretty lost here, besides it would be a good guide for other people who don't know exactly what to do either. I know that's probably really tedious but I've been lost for hours so I'd really appreciate it! :)
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Mon, 04 December 2017, 04:40:41
tragedyfoundus,
Can I have exact model number of your motherboard? I'm interested in spec of its bluetooth chip.

Does this help?
In shell prompt:
Quote
cd tmk_keybaord/keyboard/hhkb
cp unimap_hhkb.c unimap_tragedyfoundus.c
vim unimap_tragedyfoundus.c

And edit keymap in text editor.

Check these pages
https://github.com/tmk/tmk_keyboard/wiki/FAQ-Keymap
https://github.com/tmk/tmk_core/blob/master/doc/keymap.md

and refer unimap_hasu.c to know how to define keymap.


Title: Re: [TMK] HHKB Alt Controller
Post by: tragedyfoundus on Mon, 04 December 2017, 04:59:57
I don't know the model number but the motherboard is an MSI X99 XPower Titanium. It says on the manufacturer's website that it supports Bluetooth 2.1, 3.0, and 4.0 so I'm not sure why my PC won't discover the keyboard.

I don't have unimap_tragedyfoundus.c, all I have are the files from the TMK Master folder I got from GitHub. So what should I type into the shell prompt since I don't have unimap_tragedyfoundus.c? I added a screenshot to show you exactly what files I have inside the HHKB folder
Title: Re: [TMK] HHKB Alt Controller
Post by: RowanG on Mon, 04 December 2017, 05:02:16
So I am playing with the idea of starting to contribute to the source code and implementing a new more power efficient bluetooth le 4.0 module: https://www.aliexpress.com/item/nRF52832-2-4GHz-Wireless-rf-Module-CDSENET-E73-2G4M04S-SPI-SMD-rf-Receiver-transmitter-Bluetooth-Module/32819293925.html.

Is there any interest in this? I am not sure how much longer the battery lfie would be since the numbers aren't set in stone for that chip. I have not yet before worked with bluetooth le so I might be completely wrong but I think it might be worthwhile. Do you have any idea of this Hasu?

Yes, BLE and nRF chip are way to go for now. But I would start to use it with other project, such as usual mechaniral switch keyboard. It makes prototyping easy. HHKB requires 5V power source and I/O pins and power saving won't be easy job, you will need to design replacement pcb for existent keyboard switch unit to get copmlete control for power saving.

And assuming this is not just private project,
to obey radio regulation requirements I would have to be consevative a little when choosing products. They are wanted to have certifications of many countries as possible. For example this is one of cadidates. https://www.seeedstudio.com/MDBT40-256RV3-nRF51822-based-BLE-module-p-2503.html

I see so the power savings won't be substantial by just using a lower power bluetooth module? How about modding the BT version of the HHKB itself. I looked online but I can't find pics of an opened one to check the connectors.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Mon, 04 December 2017, 07:33:56
I don't know the model number but the motherboard is an MSI X99 XPower Titanium. It says on the manufacturer's website that it supports Bluetooth 2.1, 3.0, and 4.0 so I'm not sure why my PC won't discover the keyboard.

I don't have unimap_tragedyfoundus.c, all I have are the files from the TMK Master folder I got from GitHub. So what should I type into the shell prompt since I don't have unimap_tragedyfoundus.c? I added a screenshot to show you exactly what files I have inside the HHKB folder

Yeah, your pc's bluetooth should work with the controller. do you get antena connected?

you have to create the file yourself with cp command quoted in my post. The method 2) requires very primary knowledge of unix/linux  and C programming knowledge and it seems you are not ready for this. You'll have to walk through some of Linux and C primer lessons, which you can find easily online.

But I'd recommend method 1) because you already have your own built firmware with NKRO enabled.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Mon, 04 December 2017, 07:48:25
So I am playing with the idea of starting to contribute to the source code and implementing a new more power efficient bluetooth le 4.0 module: https://www.aliexpress.com/item/nRF52832-2-4GHz-Wireless-rf-Module-CDSENET-E73-2G4M04S-SPI-SMD-rf-Receiver-transmitter-Bluetooth-Module/32819293925.html.

Is there any interest in this? I am not sure how much longer the battery lfie would be since the numbers aren't set in stone for that chip. I have not yet before worked with bluetooth le so I might be completely wrong but I think it might be worthwhile. Do you have any idea of this Hasu?

Yes, BLE and nRF chip are way to go for now. But I would start to use it with other project, such as usual mechaniral switch keyboard. It makes prototyping easy. HHKB requires 5V power source and I/O pins and power saving won't be easy job, you will need to design replacement pcb for existent keyboard switch unit to get copmlete control for power saving.

And assuming this is not just private project,
to obey radio regulation requirements I would have to be consevative a little when choosing products. They are wanted to have certifications of many countries as possible. For example this is one of cadidates. https://www.seeedstudio.com/MDBT40-256RV3-nRF51822-based-BLE-module-p-2503.html

I see so the power savings won't be substantial by just using a lower power bluetooth module? How about modding the BT version of the HHKB itself. I looked online but I can't find pics of an opened one to check the connectors.

I guess you can extend running time 2-3 times but you cannot get month long battery life without redesigning switch unit board.

Modding PFU HHKB BT is not bad idea, probably possible, I looked into it some.  Its controller is MSP430 and bluetooth module is bcm20730. You can reprogram the MSP430 with your own firmware. Though, I for one won't play with the keyboard anymore.
https://geekhack.org/index.php?topic=12047.msg2152474#msg2152474
Title: Re: [TMK] HHKB Alt Controller
Post by: tragedyfoundus on Mon, 04 December 2017, 11:29:00
I don't know the model number but the motherboard is an MSI X99 XPower Titanium. It says on the manufacturer's website that it supports Bluetooth 2.1, 3.0, and 4.0 so I'm not sure why my PC won't discover the keyboard.

I don't have unimap_tragedyfoundus.c, all I have are the files from the TMK Master folder I got from GitHub. So what should I type into the shell prompt since I don't have unimap_tragedyfoundus.c? I added a screenshot to show you exactly what files I have inside the HHKB folder

Yeah, your pc's bluetooth should work with the controller. do you get antena connected?

you have to create the file yourself with cp command quoted in my post. The method 2) requires very primary knowledge of unix/linux  and C programming knowledge and it seems you are not ready for this. You'll have to walk through some of Linux and C primer lessons, which you can find easily online.

But I'd recommend method 1) because you already have your own built firmware with NKRO enabled.

I don't have an antenna for my bluetooth, it's weird that it doesn't work. Went as far as to reinstall windows to see if that would fix it but it didn't. I tried method one and for some reason I lose NKRO. It's fine, sucks I can't have NKRO but at least I can program it.
Title: Re: [TMK] HHKB Alt Controller
Post by: cheynestoking on Mon, 04 December 2017, 16:05:17
Super excited to have received my replacement (BT) controller for my HHKB Pro 2 today!  Buuuut, Bluetooth doesn't seem to work correctly.  I installed the device fine, USB mode works OK (I'm typing this post on it!), and it's fully charged.  Flipping the switch for Bluetooth mode results in a flashing red LED, but it's discovered as a RNBT-786D and I can't seem to get either macOS or Windows 10 to successfully pair.  Even when the operating system says it's paired, the light continues to flash.  It's not detected as a keyboard and I can't type.

Running hid_listen and displaying info. while in USB mode shows:

Code: [Select]
----- RN-42 info -----
protocol: LUFA
force_usb: 0
rn42: OFF
rn42_autoconnecting(): 1
config_mode: 0
USB State: Configured
battery: FULL
RemoteWakeupEnabled: 1
VBUS: 1
uptime: 00 00:11:13

If I flip the switch to Bluetooth, I then see:

Code: [Select]
----- RN-42 info -----
protocol: RN-42
force_usb: 0
rn42: ON
rn42_autoconnecting(): 1
config_mode: 0
USB State: Configured
battery: FULL
RemoteWakeupEnabled: 1
VBUS: 1
uptime: 00 00:12:07

I've tried forcing pairing but this hasn't worked either.  FWIW the output from hid_listen when I do that is:

Code: [Select]
Entering config mode ...
CMD
Ver 6.15 04/26/2013
(c) Roving Networks
ECHO ON
SR,Z
AOK
R,1
Reboot!
Exiting config mode ...

Finally, version information is:

Code: [Select]
- Version -
DESC: t.m.k. keyboard firmware for HHKB mod
VID: 0xFEED(t.m.k.) PID: 0x4242(HHKB mod) VER: 0x0104
BUILD: 4190571-dirty (07:55:51 Oct 28 2017)
OPTIONS: LUFA MOUSEKEY EXTRAKEY CONSOLE COMMAND KEYMAP_SECTION 4096
GCC: 4.9.2 AVR-LIBC: 1.8.0svn AVR_ARCH: avr5

At this point I'm reaching the conclusion that I need to flash the firmware, but to be honest I thought BT mode would work as shipped.  What am I missing here?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Mon, 04 December 2017, 17:08:25
I don't know the model number but the motherboard is an MSI X99 XPower Titanium. It says on the manufacturer's website that it supports Bluetooth 2.1, 3.0, and 4.0 so I'm not sure why my PC won't discover the keyboard.

I don't have unimap_tragedyfoundus.c, all I have are the files from the TMK Master folder I got from GitHub. So what should I type into the shell prompt since I don't have unimap_tragedyfoundus.c? I added a screenshot to show you exactly what files I have inside the HHKB folder

Yeah, your pc's bluetooth should work with the controller. do you get antena connected?

you have to create the file yourself with cp command quoted in my post. The method 2) requires very primary knowledge of unix/linux  and C programming knowledge and it seems you are not ready for this. You'll have to walk through some of Linux and C primer lessons, which you can find easily online.

But I'd recommend method 1) because you already have your own built firmware with NKRO enabled.

I don't have an antenna for my bluetooth, it's weird that it doesn't work. Went as far as to reinstall windows to see if that would fix it but it didn't. I tried method one and for some reason I lose NKRO. It's fine, sucks I can't have NKRO but at least I can program it.

According its manual you should get two antennas with motherboard, install them for wifi and bluetooth refering to page 27. I don't know if bluetooth works without the antenna but you better install it.
Are other bluetooth devices working without the antenna?

You can get manual for X99A XPOWER GAMING TITANIUM(this is your board right?), if you don't have.
https://www.msi.com/Motherboard/support/X99A-XPOWER-GAMING-TITANIUM.html#down-manual
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Mon, 04 December 2017, 17:22:01
Super excited to have received my replacement (BT) controller for my HHKB Pro 2 today!  Buuuut, Bluetooth doesn't seem to work correctly.  I installed the device fine, USB mode works OK (I'm typing this post on it!), and it's fully charged.  Flipping the switch for Bluetooth mode results in a flashing red LED, but it's discovered as a RNBT-786D and I can't seem to get either macOS or Windows 10 to successfully pair.  Even when the operating system says it's paired, the light continues to flash.  It's not detected as a keyboard and I can't type.

Oh, sorry for this.
It seems the controler was shipped before bluetooth module was initialized properly, unless the module goes bad for some reason.

Could you try initialize process? After this you will find "TmkBT-786D" instead of "RNBT-786D" and it should work as expected.

Quote
RN42 initialize
You can initialize module when you are in trouble. But you should tarke care to prevent module from being cofigured incompletely or wrongly. Take the following steps.

0. Turn BT swich off and unplug USB cable.
1. open hid_listen. You can do without it but I recommend.
2. Plug USB cable and wait for keyboard to startup.
3. Press key combo LShift+RShift+ScrollLock(Fn+O).
4. Turn BT switch on. You will see output below on hid_listen.
5. Do not touch keyobard until the command completes or for twenty seconds.

Now module is configured with default setting and in pairing mode. You may need extra power cycle for pairing, try BT switch off and on.

Output on hid_listen from initialize command.
Quote
Entering config mode ...
CMD
Ver 6.15 04/26/2013
(c) Roving Networks
ECHO ON
SF,1
AOK
S-,TmkBT
AOK
SS,Keyboard/Mouse
AOK
SM,4
AOK
SW,8000
AOK
S~,6
AOK
SH,003C
AOK
SY,FFF4
AOK
R,1
Reboot!
Exiting config mode ...
Title: Re: [TMK] HHKB Alt Controller
Post by: tragedyfoundus on Mon, 04 December 2017, 17:32:25
I don't know the model number but the motherboard is an MSI X99 XPower Titanium. It says on the manufacturer's website that it supports Bluetooth 2.1, 3.0, and 4.0 so I'm not sure why my PC won't discover the keyboard.

I don't have unimap_tragedyfoundus.c, all I have are the files from the TMK Master folder I got from GitHub. So what should I type into the shell prompt since I don't have unimap_tragedyfoundus.c? I added a screenshot to show you exactly what files I have inside the HHKB folder

Yeah, your pc's bluetooth should work with the controller. do you get antena connected?

you have to create the file yourself with cp command quoted in my post. The method 2) requires very primary knowledge of unix/linux  and C programming knowledge and it seems you are not ready for this. You'll have to walk through some of Linux and C primer lessons, which you can find easily online.

But I'd recommend method 1) because you already have your own built firmware with NKRO enabled.

I don't have an antenna for my bluetooth, it's weird that it doesn't work. Went as far as to reinstall windows to see if that would fix it but it didn't. I tried method one and for some reason I lose NKRO. It's fine, sucks I can't have NKRO but at least I can program it.

According its manual you should get two antennas with motherboard, install them for wifi and bluetooth refering to page 27. I don't know if bluetooth works without the antenna but you better install it.
Are other bluetooth devices working without the antenna?

You can get manual for X99A XPOWER GAMING TITANIUM(this is your board right?), if you don't have.
https://www.msi.com/Motherboard/support/X99A-XPOWER-GAMING-TITANIUM.html#down-manual

I assumed the antennas were just for the wifi. I just hooked them up and my keyboard still wasn't detected over bluetooth. And yes, all other devices work without the antennas. I can't wrap my head around why it doesn't work. All my drivers are up to date and everything too.
Title: Re: [TMK] HHKB Alt Controller
Post by: cheynestoking on Mon, 04 December 2017, 17:32:55
Super excited to have received my replacement (BT) controller for my HHKB Pro 2 today!  Buuuut, Bluetooth doesn't seem to work correctly.  I installed the device fine, USB mode works OK (I'm typing this post on it!), and it's fully charged.  Flipping the switch for Bluetooth mode results in a flashing red LED, but it's discovered as a RNBT-786D and I can't seem to get either macOS or Windows 10 to successfully pair.  Even when the operating system says it's paired, the light continues to flash.  It's not detected as a keyboard and I can't type.

Oh, sorry for this.
It seems the controler was shipped before bluetooth module was initialized properly, unless the module goes bad for some reason.

Could you try initialize process? After this you will find "TmkBT-786D" instead of "RNBT-786D" and it should work as expected.



Haha, while waiting for a reply I poked around the relevant bits of code and stumbled across this: https://github.com/tmk/tmk_keyboard/blob/master/keyboard/hhkb/rn42/RN42.txt (https://github.com/tmk/tmk_keyboard/blob/master/keyboard/hhkb/rn42/RN42.txt) which nailed the problem and the fix which you described!  So yes, having done that it's now working perfectly - I'm still typing on my modified keyboard, only this time it's free of cables and via the wonder of Bluetooth!

Thanks again :D ❤️
Title: Re: [TMK] HHKB Alt Controller
Post by: tragedyfoundus on Mon, 04 December 2017, 17:44:21
Super excited to have received my replacement (BT) controller for my HHKB Pro 2 today!  Buuuut, Bluetooth doesn't seem to work correctly.  I installed the device fine, USB mode works OK (I'm typing this post on it!), and it's fully charged.  Flipping the switch for Bluetooth mode results in a flashing red LED, but it's discovered as a RNBT-786D and I can't seem to get either macOS or Windows 10 to successfully pair.  Even when the operating system says it's paired, the light continues to flash.  It's not detected as a keyboard and I can't type.

Oh, sorry for this.
It seems the controler was shipped before bluetooth module was initialized properly, unless the module goes bad for some reason.

Could you try initialize process? After this you will find "TmkBT-786D" instead of "RNBT-786D" and it should work as expected.



Haha, while waiting for a reply I poked around the relevant bits of code and stumbled across this: https://github.com/tmk/tmk_keyboard/blob/master/keyboard/hhkb/rn42/RN42.txt (https://github.com/tmk/tmk_keyboard/blob/master/keyboard/hhkb/rn42/RN42.txt) which nailed the problem and the fix which you described!  So yes, having done that it's now working perfectly - I'm still typing on my modified keyboard, only this time it's free of cables and via the wonder of Bluetooth!

Thanks again :D ❤️

Lucky. :( I can't get my bluetooth to work nor my NKRO. Pretty frustrating to say the least.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Mon, 04 December 2017, 17:51:17
I assumed the antennas were just for the wifi. I just hooked them up and my keyboard still wasn't detected over bluetooth. And yes, all other devices work without the antennas. I can't wrap my head around why it doesn't work. All my drivers are up to date and everything too.

I see, your pc hardware seems to be ok.

I'm not sure but initializing bluetooth module may work.

1) Download default firmware from keymap editor and flash it, first.
http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?hhkb_rn42

2) Initialize bluetooth module on controller as this post describe.
https://geekhack.org/index.php?topic=71517.msg2530988#msg2530988
you can downlade 'hid_listen' here: https://www.pjrc.com/teensy/hid_listen.html

After this could you check if it works with your desktop and laptop.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Mon, 04 December 2017, 18:03:39
I don't know the model number but the motherboard is an MSI X99 XPower Titanium. It says on the manufacturer's website that it supports Bluetooth 2.1, 3.0, and 4.0 so I'm not sure why my PC won't discover the keyboard.

I don't have unimap_tragedyfoundus.c, all I have are the files from the TMK Master folder I got from GitHub. So what should I type into the shell prompt since I don't have unimap_tragedyfoundus.c? I added a screenshot to show you exactly what files I have inside the HHKB folder

Yeah, your pc's bluetooth should work with the controller. do you get antena connected?

you have to create the file yourself with cp command quoted in my post. The method 2) requires very primary knowledge of unix/linux  and C programming knowledge and it seems you are not ready for this. You'll have to walk through some of Linux and C primer lessons, which you can find easily online.

But I'd recommend method 1) because you already have your own built firmware with NKRO enabled.

I don't have an antenna for my bluetooth, it's weird that it doesn't work. Went as far as to reinstall windows to see if that would fix it but it didn't. I tried method one and for some reason I lose NKRO. It's fine, sucks I can't have NKRO but at least I can program it.

According its manual you should get two antennas with motherboard, install them for wifi and bluetooth refering to page 27. I don't know if bluetooth works without the antenna but you better install it.
Are other bluetooth devices working without the antenna?

You can get manual for X99A XPOWER GAMING TITANIUM(this is your board right?), if you don't have.
https://www.msi.com/Motherboard/support/X99A-XPOWER-GAMING-TITANIUM.html#down-manual

I assumed the antennas were just for the wifi. I just hooked them up and my keyboard still wasn't detected over bluetooth. And yes, all other devices work without the antennas. I can't wrap my head around why it doesn't work. All my drivers are up to date and everything too.

If your motherboard is 'X99A XPOWER GAMING TITANIUM' it should have two antenna connectors on back panel. Isn't this yours?
https://www.msi.com/Motherboard/X99A-XPOWER-GAMING-TITANIUM.html
https://asset.msi.com/global/picture/image/feature/mb/RWD_Img/X99/Titanium/Connectivity_Xpower.png

The controller uses low Transmit power for bluetooth to save power,  so i worry about the antenna.

what if you place keyboard very near the motherboard?
And try turn off wifi, if you are using 2.4GHz wifi it may interfere with bluetooth.
Title: Re: [TMK] HHKB Alt Controller
Post by: tragedyfoundus on Mon, 04 December 2017, 18:05:50

Quote
I see, your pc hardware seems to be ok.

I'm not sure but initializing bluetooth module may work.

1) Download default firmware from keymap editor and flash it, first.
http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?hhkb_rn42

2) Initialize bluetooth module on controller as this post describe.
https://geekhack.org/index.php?topic=71517.msg2530988#msg2530988
you can downlade 'hid_listen' here: https://www.pjrc.com/teensy/hid_listen.html

After this could you check if it works with your desktop and laptop.

Alright, I ran hid_listen and it did its job but my desktop still won't discover it but the laptop does just fine.
Title: Re: [TMK] HHKB Alt Controller
Post by: tragedyfoundus on Mon, 04 December 2017, 18:08:14
I don't know the model number but the motherboard is an MSI X99 XPower Titanium. It says on the manufacturer's website that it supports Bluetooth 2.1, 3.0, and 4.0 so I'm not sure why my PC won't discover the keyboard.

I don't have unimap_tragedyfoundus.c, all I have are the files from the TMK Master folder I got from GitHub. So what should I type into the shell prompt since I don't have unimap_tragedyfoundus.c? I added a screenshot to show you exactly what files I have inside the HHKB folder

Yeah, your pc's bluetooth should work with the controller. do you get antena connected?

you have to create the file yourself with cp command quoted in my post. The method 2) requires very primary knowledge of unix/linux  and C programming knowledge and it seems you are not ready for this. You'll have to walk through some of Linux and C primer lessons, which you can find easily online.

But I'd recommend method 1) because you already have your own built firmware with NKRO enabled.

I don't have an antenna for my bluetooth, it's weird that it doesn't work. Went as far as to reinstall windows to see if that would fix it but it didn't. I tried method one and for some reason I lose NKRO. It's fine, sucks I can't have NKRO but at least I can program it.

According its manual you should get two antennas with motherboard, install them for wifi and bluetooth refering to page 27. I don't know if bluetooth works without the antenna but you better install it.
Are other bluetooth devices working without the antenna?

You can get manual for X99A XPOWER GAMING TITANIUM(this is your board right?), if you don't have.
https://www.msi.com/Motherboard/support/X99A-XPOWER-GAMING-TITANIUM.html#down-manual

I assumed the antennas were just for the wifi. I just hooked them up and my keyboard still wasn't detected over bluetooth. And yes, all other devices work without the antennas. I can't wrap my head around why it doesn't work. All my drivers are up to date and everything too.

If your motherboard is 'X99A XPOWER GAMING TITANIUM' it should have two antenna connectors on back panel. Isn't this yours?
https://www.msi.com/Motherboard/X99A-XPOWER-GAMING-TITANIUM.html
https://asset.msi.com/global/picture/image/feature/mb/RWD_Img/X99/Titanium/Connectivity_Xpower.png

The controller uses low Transmit power for bluetooth to save power,  so i worry about the antenna.

what if you place keyboard very near the motherboard?
And try turn off wifi, if you are using 2.4GHz wifi it may interfere with bluetooth.

Yes that is my motherboard. I've already tried placing the keyboard super close but it still doesn't work. :( Even with the antennas installed and my wifi off. I always have wifi off because I use LAN.
Title: Re: [TMK] HHKB Alt Controller
Post by: devoi on Mon, 15 January 2018, 19:07:10
any thought / possibility of making a main-board modification to replace whatever resistor the TP1684 uses with a digipot, to allow for variable lift actuation? that would be a really interesting project, seeing as the controller board does have a few open I/O ports.
Title: Re: [TMK] HHKB Alt Controller
Post by: riktors on Wed, 31 January 2018, 22:00:36
So I have the bluetooth version of the controller. Board shows 2017/06 Rev. N. At first everything was working great after getting my keymap done and the controller flashed. Now however when I use the keyboard USB it misses key presses and/or rapidly presses the key. So say I'm backspacing a number of characters, sometime it will just miss a press and other times it will hang up for a second then do say maybe 20 backspaces almost instantly. The strange part is this only happens in USB mode when I take the board to work every day and use it bluetooth it works perfectly. Shows the same issues on that work machine though in USB mode (different cable as well) so it doesn't look like it is just a problem with my home machine. I've tried flashing the board again several times but nothing seems to have worked. Any thoughts on what might be happening here/options to fix it?

Thanks!
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 31 January 2018, 22:37:17
So I have the bluetooth version of the controller. Board shows 2017/06 Rev. N. At first everything was working great after getting my keymap done and the controller flashed. Now however when I use the keyboard USB it misses key presses and/or rapidly presses the key. So say I'm backspacing a number of characters, sometime it will just miss a press and other times it will hang up for a second then do say maybe 20 backspaces almost instantly. The strange part is this only happens in USB mode when I take the board to work every day and use it bluetooth it works perfectly. Shows the same issues on that work machine though in USB mode (different cable as well) so it doesn't look like it is just a problem with my home machine. I've tried flashing the board again several times but nothing seems to have worked. Any thoughts on what might be happening here/options to fix it?

Thanks!

Hi,
I don't have idea why the problem appear only on USB, so far. The porblem happens on specific keys or random keys?

FIrst, to clear problem and narrow uncertainties, download default firmware from keymap editor without editing keymap and flash it before test.

And I would make sure connectors between controller pcb and keyswitch board mate each other firmly again.

Did you do some mod on keyswiches, such as lubrication, silencing or slider swap? If so you have to take apart and check conical ring placement.
Title: Re: [TMK] HHKB Alt Controller
Post by: riktors on Wed, 31 January 2018, 22:48:55
So I have the bluetooth version of the controller. Board shows 2017/06 Rev. N. At first everything was working great after getting my keymap done and the controller flashed. Now however when I use the keyboard USB it misses key presses and/or rapidly presses the key. So say I'm backspacing a number of characters, sometime it will just miss a press and other times it will hang up for a second then do say maybe 20 backspaces almost instantly. The strange part is this only happens in USB mode when I take the board to work every day and use it bluetooth it works perfectly. Shows the same issues on that work machine though in USB mode (different cable as well) so it doesn't look like it is just a problem with my home machine. I've tried flashing the board again several times but nothing seems to have worked. Any thoughts on what might be happening here/options to fix it?

Thanks!

Hi,
I don't have idea why the problem appear only on USB, so far. The porblem happens on specific keys or random keys?

FIrst, to clear problem and narrow uncertainties, download default firmware from keymap editor without editing keymap and flash it before test.

And I would make sure connectors between controller pcb and keyswitch board mate each other firmly again.

Did you do some mod on keyswiches, such as lubrication, silencing or slider swap? If so you have to take apart and check conical ring placement.

Thanks for the quick reply! I pulled down the default hex file from the online keymap editor and it seems to have cleared up the problem. Not sure what I got wrong on one I have from the TMK source but seems like it is definitely from that. I was able to make my edits in the online editor and have everything working still so I'll just stick to that in the future. Thank you very much for the help.
Title: Re: [TMK] HHKB Alt Controller
Post by: flac.head on Sun, 04 February 2018, 14:17:22
Does anyone know how to access the backslash key in UK layout?

BSLS gives me # and I cannot find backslash on any other key :/

Thanks! :)

EDIT: Found it!     NUBS     Non-US BackSlash :)
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 04 February 2018, 17:57:10
Does anyone know how to access the backslash key in UK layout?

BSLS gives me # and I cannot find backslash on any other key :/

Thanks! :)

EDIT: Found it!     NUBS     Non-US BackSlash :)

You already answered yourself :D but I added this entry on wiki for future reference.
https://github.com/tmk/tmk_keyboard/wiki/FAQ-Keymap#iso-or-international-keys

According to the spec NUHS is expected to be used instead of BSLS but either seems to work.
Title: Re: [TMK] HHKB Alt Controller
Post by: qq on Wed, 21 February 2018, 03:55:30
menuhin,
Assuming you are talking about original controllers.
Yes, Pro1 and JP worked with iPad while Pro2 didn't at some point. I can remember some people said so a few years ago. I don't know about recent iPad/iOS.

Hi Hasu,

I am asking also if the Hasu Controller for HHKB Pro1 to replace its original controller will be running at a Watt that allow its to just plug in an iPad / iPad mini and work. :)


Also I can remember some users said USB Pro1/Pro2/JP Alt controller worked with iPad. I don't know about Bluetooth Alt controller.

The Bluetooth controller works flawlessly with my iPhone 7, so I assume it does not have any issue with other iOS devices
Title: Re: [TMK] HHKB Alt Controller
Post by: raoulk on Thu, 08 March 2018, 02:56:59
Hello!
I have been scouring both the github and here on GH (outside of the normal google-fu) but I cannot seem to find a solution to my problem.

I am using my HHKB with the Hasu Controller (usb) and looking to have it perform the same functions as my typecover for my SP4.
Specifically, controlling the screen brightness. Now I can't seem to find a list, or guide for that matter, on how to send such hardware signals via the controller. And how I'd have to edit the keymap to perform that function.

Even just pointing me in the right direction would be much appreciated.
Best regards,
Raoul
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 08 March 2018, 08:53:59
What is typecover and SP4?
And what is your OS and computer hardware?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 16 March 2018, 05:04:31
Updated firmware for Bluetooth controller.
With this new firmware it does NKRO in USB mode by default now, still 6KRO in Bluetooth.
No other improvents at all. If you have no problem with 6KRO you don't have to update. This update is not for USB controller.

The firmware is available from Keymap Editor or github repo.
http://www.tmk-kbd.com/tmk_keyboard/editor/
https://github.com/tmk/tmk_keyboard/tree/master/keyboard/hhkb

Check this commit for detail.
https://github.com/tmk/tmk_keyboard/commit/f2761c9565e76706853a4a0b148c8e93369e49e5

Thanks
Title: Re: [TMK] HHKB Alt Controller
Post by: enchong on Sun, 18 March 2018, 20:41:49
Hi, I would like to buy a hasu bluetooth controller for my HHKB Pro2. O really don't know how this works though. I'm new in the forum.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 18 March 2018, 21:22:03
Hi, I would like to buy a hasu bluetooth controller for my HHKB Pro2. O really don't know how this works though. I'm new in the forum.

I'm happy to answer if you have any specific question after reading the first post.
Title: Re: [TMK] HHKB Alt Controller
Post by: kaesve on Wed, 04 April 2018, 14:26:58
Hi Hasu,

I'm having a problem with my hhkb (jp layout) with your controller. I'm not sure what the problem is caused, but I'm hoping you could help me figure this out. Two keys on my board are 'broken'; the left windows key now acts as the left alt key, and the left alt key is unresponsive. It actually started with both keys being completely unresponsive, but the win key started triggering the alt-key after I used compressed air to clean the board. This makes me think that there's just some dirt short-circuiting something, and that it is fixable, but I'm not sure where the problem would be. I took the case apart and removed the domes/springs for those keys but i did not see anything strange. Do you have an idea on how I can troubleshoot this issue?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 04 April 2018, 14:45:31
It sounds like boot magic functions like swap alt/win and win lock.

I like to know how you got firmware or what the version of it?
Can you get version info on hid_listen with pressing both shifts and v key?

Sent from my WAS-LX2J using Tapatalk

Title: Re: [TMK] HHKB Alt Controller
Post by: kaesve on Wed, 04 April 2018, 15:18:58
Thank you so much for your quick response. My firmware is tmk with a custom keymap. device info:

----- Version -----
DESC: t.m.k. keyboard firmware for HHKB mod
VID: 0xFEED(t.m.k.) PID: 0xCAFE(HHKB mod) VER: 0x0104
BUILD: 10a6b2c-dirty (18:37:16 Nov 27 2015)
OPTIONS: LUFA BOOTMAGIC MOUSEKEY EXTRAKEY CONSOLE COMMAND NKRO 4096
GCC: 4.8.1 AVR-LIBC: 1.8.0svn AVR_ARCH: avr5
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 04 April 2018, 20:12:32
Thank you so much for your quick response. My firmware is tmk with a custom keymap. device info:

----- Version -----
DESC: t.m.k. keyboard firmware for HHKB mod
VID: 0xFEED(t.m.k.) PID: 0xCAFE(HHKB mod) VER: 0x0104
BUILD: 10a6b2c-dirty (18:37:16 Nov 27 2015)
OPTIONS: LUFA BOOTMAGIC MOUSEKEY EXTRAKEY CONSOLE COMMAND NKRO 4096
GCC: 4.8.1 AVR-LIBC: 1.8.0svn AVR_ARCH: avr5

I beleive you accidentally held space bar and some keys down accidentally when plugin the keyboard.
Bootmagic settings are stored in EEPROM and you have to remove it by bootmagic command.

Hold space and backspace and plugin in to remove the settings.

Check this entry for detail.
https://github.com/tmk/tmk_keyboard/#boot-magic-configuration---virtual-dip-switch

After that optionally you can update the controller with the latest firmware downloaded from keymap editor. Current firmware disables the bootmagic and users never go wrong like this.
Title: Re: [TMK] HHKB Alt Controller
Post by: the_fascist on Thu, 05 April 2018, 19:02:32
question about the ACTION_LAYER_TAP_KEY function.  Is it possible to shorten the time you need to press the button down?  It is a bit too slow for me.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 05 April 2018, 20:00:19
question about the ACTION_LAYER_TAP_KEY function.  Is it possible to shorten the time you need to press the button down?  It is a bit too slow for me.


Currently 'TAPPING_TERM' is only parameter for tapping key. You will have to fix tmk_core code if this doesn't work for you.
https://github.com/tmk/tmk_keyboard/blob/51326077b085ad5c82cb0ea7c63405364c052cd5/tmk_core/common/action_tapping.h#L22-L25


EDIT: you can configure in config.h
https://github.com/tmk/tmk_keyboard/blob/master/keyboard/hhkb/config.h#L43-L44

EDIT2: Added FAQ entry for this now.
https://github.com/tmk/tmk_keyboard/wiki/FAQ-Keymap#tap-keydual-role-key-doesnt-work-for-me
Title: Re: [TMK] HHKB Alt Controller
Post by: LynnDeisky on Thu, 24 May 2018, 03:06:08
Nice work.

Would you consider the controller for HHKB BT?

Because I love BT’s case design but it does not support USB connection to type and keymapping.

Thanks
Title: Re: [TMK] HHKB Alt Controller
Post by: menuhin on Thu, 24 May 2018, 04:53:34
Updated firmware for Bluetooth controller.
With this new firmware it does NKRO in USB mode by default now, still 6KRO in Bluetooth.
No other improvents at all. If you have no problem with 6KRO you don't have to update. This update is not for USB controller.

The firmware is available from Keymap Editor or github repo.
http://www.tmk-kbd.com/tmk_keyboard/editor/
https://github.com/tmk/tmk_keyboard/tree/master/keyboard/hhkb

Check this commit for detail.
https://github.com/tmk/tmk_keyboard/commit/f2761c9565e76706853a4a0b148c8e93369e49e5

Thanks

A bit late to get to the good news.
Thanks for working on that Hasu!
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 24 May 2018, 17:26:16
Nice work.

Would you consider the controller for HHKB BT?

Because I love BT’s case design but it does not support USB connection to type and keymapping.

Thanks

I looked into that and decided not to. I have no plan on PD-KB600 at this point, at least.
Title: Re: [TMK] HHKB Alt Controller
Post by: locker47 on Sun, 27 May 2018, 16:41:59
I'm not sure if this is the correct place to post this, but is anyone interested in swapping their HHKB Pro 2 bottom casing (with openings for the USB) for one without (from HHKB JP)? I bought a BT controller and am looking for the clean solution to mount it on my JP case (no drilling).

On another note, great work hasu! Any new projects you're working on (HHKB-related or not)?
Title: Re: [TMK] HHKB Alt Controller
Post by: kaio on Sat, 02 June 2018, 22:46:39
(Thank you very much, Hasu-san. Hand waving from Brisbane, Australia! Received the module and worked perfectly. I have just ordered a LiPo on eBay but it scheduled the arrival in 2.5 months which is typical for those China sellers who always sent by ships...  :()

Hi, it is not difficult to drill 3 holes and very clean. You just need to measure the drill spots precisely, and be patient drilling from the smaller tips to the ideal tip size. I did about 5-6 times for avoiding the plastic crack. Done within 10 mins:

(https://preview.ibb.co/jmE6Cd/WIN_20180603_01_51_37_Pro.jpg) (https://ibb.co/eXbKXd)
I'm not sure if this is the correct place to post this, but is anyone interested in swapping their HHKB Pro 2 bottom casing (with openings for the USB) for one without (from HHKB JP)? I bought a BT controller and am looking for the clean solution to mount it on my JP case (no drilling).

On another note, great work hasu! Any new projects you're working on (HHKB-related or not)?
Title: Re: [TMK] HHKB Alt Controller
Post by: locker47 on Wed, 06 June 2018, 22:21:35
Thanks for the tips! That looks like it was done very cleanly. I guess I'll just give it a shot and hope for the best.

Just a small note, do you have any tips on how to measure the drill spots? And also how accessible is your power switch?

(Thank you very much, Hasu-san. Hand waving from Brisbane, Australia! Received the module and worked perfectly. I have just ordered a LiPo on eBay but it scheduled the arrival in 2.5 months which is typical for those China sellers who always sent by ships...  :()

Hi, it is not difficult to drill 3 holes and very clean. You just need to measure the drill spots precisely, and be patient drilling from the smaller tips to the ideal tip size. I did about 5-6 times for avoiding the plastic crack. Done within 10 mins:

(https://preview.ibb.co/jmE6Cd/WIN_20180603_01_51_37_Pro.jpg) (https://ibb.co/eXbKXd)
I'm not sure if this is the correct place to post this, but is anyone interested in swapping their HHKB Pro 2 bottom casing (with openings for the USB) for one without (from HHKB JP)? I bought a BT controller and am looking for the clean solution to mount it on my JP case (no drilling).

On another note, great work hasu! Any new projects you're working on (HHKB-related or not)?
Title: Re: [TMK] HHKB Alt Controller
Post by: the_marsbar on Tue, 19 June 2018, 12:29:22
Hasu BT controller should work via BT connection to iPad, and BT is a big plus for either home use or on the road. But BT has its limitations and I'm not keen on always watching out for whether this or that device is going to run out of juice.

What is unfair is that HHKP Pro 1 and HHKP JP (with their unmodified original controllers) can connect to iPads through cable without any problem; it's just HHKB Pro 2's original controller.

Please do if you have the chance and I'm also looking forward to Hasu's answer (I'm not sure if he has access to an iPad model with thunderbolt socket)

If you want USB connection to iPad you better have USB controller. Bluetooth controller draws fair amount of current for battery charging and iPad will refuse it. Charging current of Bluetooth controller can be up to 500mA. Original Pro2 draws around 120mA for its hubs, for reference.

USB Alt controller(of all variants) draws around 20mA and it should work with iPad on USB connection.

Does this mean that if the purpose is to connect the HHKB to an iPad using the camera adapter, then the USB controller is better than the BT controller?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Tue, 19 June 2018, 16:49:13
Hasu BT controller should work via BT connection to iPad, and BT is a big plus for either home use or on the road. But BT has its limitations and I'm not keen on always watching out for whether this or that device is going to run out of juice.

What is unfair is that HHKP Pro 1 and HHKP JP (with their unmodified original controllers) can connect to iPads through cable without any problem; it's just HHKB Pro 2's original controller.

Please do if you have the chance and I'm also looking forward to Hasu's answer (I'm not sure if he has access to an iPad model with thunderbolt socket)

If you want USB connection to iPad you better have USB controller. Bluetooth controller draws fair amount of current for battery charging and iPad will refuse it. Charging current of Bluetooth controller can be up to 500mA. Original Pro2 draws around 120mA for its hubs, for reference.

USB Alt controller(of all variants) draws around 20mA and it should work with iPad on USB connection.

Does this mean that if the purpose is to connect the HHKB to an iPad using the camera adapter, then the USB controller is better than the BT controller?

Yes, USB controller draws less current from USB port than Bluetooth controller does.
With the latest firmware setup, HHKB installed with USB Alt controller draws around 40mA  while it consumes around 50mA with Bluetooth Alt controller.

EDIT: But I don't know if this difference matters with iPad, except for power consumption. I don't have the camera adapter and iPad to test.
Title: Re: [TMK] HHKB Alt Controller
Post by: the_marsbar on Fri, 22 June 2018, 02:30:46
Thanks for your reply hasu.

I can see that the response time of the HHKB is listed at ~16 ms. Will installing a new controller not affect this (positively or negatively)? Or is the delay due to the sensing circuit?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 22 June 2018, 03:55:37
Thanks for your reply hasu.

I can see that the response time of the HHKB is listed at ~16 ms. Will installing a new controller not affect this (positively or negatively)? Or is the delay due to the sensing circuit?

It is scan rate, that is, original HHKB scans all keys on its matrix per 16ms.
This Alt controller emulates this behaviour basically by default. You will be able to configure firmware to scan upto twice faster safely, but I don't know if it works properly at further faster rate.
Yes, Topre capacitive sensing chip defines upper limit of this rate.
Title: Re: [TMK] HHKB Alt Controller
Post by: the_marsbar on Fri, 22 June 2018, 12:01:27
Great, thanks for that. I’ll do some experiment when I receive it. 16 ms is not that fast in terms of analog to digital conversion.
Title: Re: [TMK] HHKB Alt Controller
Post by: sabotai on Wed, 27 June 2018, 10:31:58
Hi everyone, I need some help. I just bought a BT controller and it seems to not register keypresses in bluetooth mode.

I connect to my PC just fine, solid red LED(right)
Keypress register when connected via USB

info that might help:
got my hex file from TMK Keymad Editor
flash my hex with qmk_toolbox

Thanks in advance!
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 27 June 2018, 18:07:32
Hi everyone, I need some help. I just bought a BT controller and it seems to not register keypresses in bluetooth mode.

I connect to my PC just fine, solid red LED(right)
Keypress register when connected via USB

info that might help:
got my hex file from TMK Keymad Editor
flash my hex with qmk_toolbox

Thanks in advance!

It looks to me like you are using firmware for USB controller for some reason. Try getting firmware from here and flash it again.
http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?hhkb_rn42
Title: Re: [TMK] HHKB Alt Controller
Post by: the_marsbar on Tue, 03 July 2018, 14:26:31
Within approx. one hour I managed to flash QMK firmware with an advertised power draw of 50 mA, and the keyboard now works with and iPad, iPhone etc.

Nice work :) I may consider adding a battery later on, but for now I don't need it.

One small issue though; there's a high-pitched noise when the controller is connected to the computer via USB. Are you aware of this, hasu?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 05 July 2018, 19:40:39
Within approx. one hour I managed to flash QMK firmware with an advertised power draw of 50 mA, and the keyboard now works with and iPad, iPhone etc.

Nice work :) I may consider adding a battery later on, but for now I don't need it.

One small issue though; there's a high-pitched noise when the controller is connected to the computer via USB. Are you aware of this, hasu?

With not-full charged battery the controller will try to draw charging current around 500mA max from iPad, this may cause problem.

Yes, it is normal with the DC-DC converter setup.
Title: Re: [TMK] HHKB Alt Controller
Post by: the_marsbar on Thu, 05 July 2018, 23:34:00
Wait, what? When I asked you about the power consumption you wrote the following to me
Notice that Bluetooth controller without battery consumes 50mA while USB controller consumes 40mA.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 06 July 2018, 00:08:46
Wait, what? When I asked you about the power consumption you wrote the following to me
Notice that Bluetooth controller without battery consumes 50mA while USB controller consumes 40mA.

Yes, it is ture but did it confuse you?
Bluetooth controller draws 50mA without battery or 500mA max with battery when charging.

Title: Re: [TMK] HHKB Alt Controller
Post by: the_marsbar on Fri, 06 July 2018, 01:06:56
Yes, it did confuse me a bit. Sorry, but just to make sure I understand you correctly then; I don't have a battery installed. I assume that means the power draw is approx. 50 mA, then?

Could you tell me where on the board to measure the power draw? +/- on the USB connection is suppose? There's a multimeter I can use in the office.

Thanks.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 06 July 2018, 01:27:52
Yes, it did confuse me a bit. Sorry, but just to make sure I understand you correctly then; I don't have a battery installed. I assume that means the power draw is approx. 50 mA, then?

Could you tell me where on the board to measure the power draw? +/- on the USB connection is suppose? There's a multimeter I can use in the office.

Thanks.

You are rIght, it draws 50mA when you don't install battery.

To measure current  with multimeter, you have to cut trace on the PCB or USB cable somewhere halfway.  otherwise you can use USB power meter without any hassle.
I'd recommend to get cheap USB meter from amazon or aliexpress.

Title: Re: [TMK] HHKB Alt Controller
Post by: the_marsbar on Fri, 06 July 2018, 01:35:42
Great, thanks for clearing that up, and sorry about the confusion.

I might get one of those small devices, thanks for the suggestion.
Title: Re: [TMK] HHKB Alt Controller
Post by: the_marsbar on Fri, 13 July 2018, 06:49:44
I'm sorry to bring this up again. This coil whine is bothering me a bit. I have sensitive ears, I'll admit that.

Would the USB controller (without wi-fi) also have this?

What about a Teensy?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 13 July 2018, 06:52:42
I'm sorry to bring this up again. This coil whine is bothering me a bit. I have sensitive ears, I'll admit that.

Would the USB controller (without wi-fi) also have this?

What about a Teensy?

No and No. They don't have the inductor and won't irritate your ears!
Title: Re: [TMK] HHKB Alt Controller
Post by: the_marsbar on Fri, 13 July 2018, 07:01:35
Alright, thanks for that. I don't mean to offend you by any means. For sure the frequency is high enough that some people won't hear it. The same applies if you're in a noisy environment.
Title: Re: [TMK] HHKB Alt Controller
Post by: tobikosu on Sun, 29 July 2018, 08:09:15
Hello, I`m tobikosu.
Thank you in advance
I bought a bluetooth alternative controler and attached on HHKB US pro2 . And made hex file by TMK Keymap, then flashed hex file to controler.
After that, I wanted to re-frash the ROM , but I changed the right shift button to another key.
So, I cannot change the controler to dfu-mode.
Is there an another way to reset? For example, is there any reset button on controler?
Can anyone help me?
Title: Re: [TMK] HHKB Alt Controller
Post by: tobikosu on Sun, 29 July 2018, 09:38:44
 :thumb:
Sorry, I`v found the button out of the keyboard box.
It`s red and pushed, the controler changed into the programing mode.
So, I`v done my job.
Thank you everyone.
Title: Re: [TMK] HHKB Alt Controller
Post by: pagosElite on Mon, 30 July 2018, 03:00:53
For the BT controller, I'm reading that if I have 2 devices that I want to use with it, I would have to keep re-pairing them? I have an iPad Pro and a Macbook that I carry to class together. If I pair the MacBook, then I have to "get it out of range" before I pair the iPad? Then once I have both paired, can I switch between the two devices just by using the "Bluetooth" menu on the two devices and making it connect from there? Or would I HAVE to force re-pair using "p" command?

I ask because if force re-pairing is needed, then I will have to keep changing the keyboard settings to Colemak every time manually. I guess I'm also just not unstandanding what force re-pairing does exactly too.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Mon, 30 July 2018, 05:12:23
For the BT controller, I'm reading that if I have 2 devices that I want to use with it, I would have to keep re-pairing them? I have an iPad Pro and a Macbook that I carry to class together. If I pair the MacBook, then I have to "get it out of range" before I pair the iPad? Then once I have both paired, can I switch between the two devices just by using the "Bluetooth" menu on the two devices and making it connect from there? Or would I HAVE to force re-pair using "p" command?

I ask because if force re-pairing is needed, then I will have to keep changing the keyboard settings to Colemak every time manually. I guess I'm also just not unstandanding what force re-pairing does exactly too.

Yes, mean of "out of range" includes below:
1) keep out computer away physically as its radio doesn't reach(next room, 10m or more?)
2) turn off bluetooth radio on computer
3) remove keyboard's pair info from computer
4) disconnect keyboard from computer?
5) Using "p" command to remove all pairing infos

I think 1. or 2.disabling bluetooth radio are desirable if possible because this retain pairing infomation intact so you don't have to pair it again.

I don't know how Mac and iPad "Bluetooth menu" works but I guess:

3. works but you will have to do pairing process for the computer again.

4.disconecting keyboard will not work because the controller's auto-connect feature tries to reconnect computer immediately after the disconnection.

If any of methods above doesn't work you have to use 5. method which removes all pairing infos.  This will be undesiarble in most cases and you have to pair with all hosts again from the bigining.
Title: Re: [TMK] HHKB Alt Controller
Post by: aspire5550 on Tue, 07 August 2018, 09:08:26
Hi Hasu, This is my first time programming a custom layout on a keyboard and first experience with TMK. I managed to configure a custom layout with tmk-kbd.com (https://goo.gl/pSaQPT) but I want to change the TAPPING_TERM and also to program a few macros.

May I know what are the best way to achieve this? I tried to use the keymap output to get a .c file and then tried using this command:
 make -f Makefile.jp KEYMAP=keymap.c clean
 make -f Makefile.jp KEYMAP=keymap.c

But was greeted with this message:
make: *** No rule to make target 'obj_hhkb_jp/keymap.c.o', needed by 'hhkb_jp.elf'.  Stop.

I am able to build properly if i just run: make -f Makefile.jp

May i know what am I missing? thank you.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Tue, 07 August 2018, 18:28:33
Hi Hasu, This is my first time programming a custom layout on a keyboard and first experience with TMK. I managed to configure a custom layout with tmk-kbd.com (https://goo.gl/pSaQPT) but I want to change the TAPPING_TERM and also to program a few macros.

May I know what are the best way to achieve this? I tried to use the keymap output to get a .c file and then tried using this command:
 make -f Makefile.jp KEYMAP=keymap.c clean
 make -f Makefile.jp KEYMAP=keymap.c

But was greeted with this message:
make: *** No rule to make target 'obj_hhkb_jp/keymap.c.o', needed by 'hhkb_jp.elf'.  Stop.

I am able to build properly if i just run: make -f Makefile.jp

May i know what am I missing? thank you.

When using Makefile.jp for JP model default keymap file is keymap_jp.c. You can copy your keymap file to keymap_jp.c and just run: 'make -f Makefile.jp', or name it to keymap_aspire5550.c and 'make -f Makefile.jp KEYMAP=aspire5550'.
Title: Re: [TMK] HHKB Alt Controller
Post by: aspire5550 on Thu, 09 August 2018, 05:47:08
Hi Hasu, This is my first time programming a custom layout on a keyboard and first experience with TMK. I managed to configure a custom layout with tmk-kbd.com (https://goo.gl/pSaQPT) but I want to change the TAPPING_TERM and also to program a few macros.

May I know what are the best way to achieve this? I tried to use the keymap output to get a .c file and then tried using this command:
 make -f Makefile.jp KEYMAP=keymap.c clean
 make -f Makefile.jp KEYMAP=keymap.c

But was greeted with this message:
make: *** No rule to make target 'obj_hhkb_jp/keymap.c.o', needed by 'hhkb_jp.elf'.  Stop.

I am able to build properly if i just run: make -f Makefile.jp

May i know what am I missing? thank you.

When using Makefile.jp for JP model default keymap file is keymap_jp.c. You can copy your keymap file to keymap_jp.c and just run: 'make -f Makefile.jp', or name it to keymap_aspire5550.c and 'make -f Makefile.jp KEYMAP=aspire5550'.

Thanks,i actually got everything to work  i just straight away made modifications on the keymap_jp.c instead of relying on the one provided by tmk-kbd keymap editor.

I have one question left, i have capslock key as tap for back space and hold for ctrl. Sometimes  when i do some back space, and then quickly continue typing,it will be considered as ctrl. sometimes when i want to quickly ctrl+a, ctrl+v to select all and paste, there is some delay.

Does this mean that i needed to mess around with the TAPPING_TERM value?
 
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 09 August 2018, 20:05:16
Tuning TAPPING_TERM  may work for you but if not you will have to refine code in tmk_core/common/action_tapping.c(this is very dirty and adhoc) or implement your own dual role key in keymap file.

TMK current implementation of dual role key is intended to be used as mainly key(tap) with occasional modifier(hold) due to my requirement, so that you can place the key in alphanumeric part and type it well without conscious effort, while you will have to develop special fingering habit when you use it as modifier.

I think you need opposite implementation of this but TMK doesn't has it yet unfortunately.
Title: Re: [TMK] HHKB Alt Controller
Post by: aspire5550 on Fri, 10 August 2018, 08:28:31
Tuning TAPPING_TERM  may work for you but if not you will have to refine code in tmk_core/common/action_tapping.c(this is very dirty and adhoc) or implement your own dual role key in keymap file.

TMK current implementation of dual role key is intended to be used as mainly key(tap) with occasional modifier(hold) due to my requirement, so that you can place the key in alphanumeric part and type it well without conscious effort, while you will have to develop special fingering habit when you use it as modifier.

I think you need opposite implementation of this but TMK doesn't has it yet unfortunately.

alright, thanks alot hasu . :)
Title: Re: [TMK] HHKB Alt Controller
Post by: rinodrops on Sun, 02 September 2018, 05:04:34
Hi I've just received Alt Controller BT for Pro 2, replaced the original PCB and installed a battery.
It works fine when plugging into USB port of Mac Pro, MacBook Pro and SurfaceBook, respectively.
After several hours, LED on right side changed from orange to green.
So I assume the battery is full charged, then turned the USB/BT switch to BT mode.
LED on left side keep blinking once in a second.
Here comes a trouble.
My Macs (Mojave DP9) Bluetooth Preferences never detect HHKB, while Surface shows as TmkBT-C611.
How can I trouble shoot to use on Mac/BT? Is this related to Vender ID/Product ID issue?

The result of hid_listen.mac (L+R Shift + V, B) as follows:
   - Version -
DESC: t.m.k. keyboard firmware for HHKB mod
VID: 0xFEED(t.m.k.) PID: 0x4242(HHKB mod) VER: 0x0104
BUILD: 1b76ea4 (18:02:40 Mar 16 2018)
OPTIONS: LUFA MOUSEKEY EXTRAKEY CONSOLE COMMAND NKRO KEYMAP_SECTION 4096
GCC: 4.9.2 AVR-LIBC: 1.8.0svn AVR_ARCH: avr5
BAT: 4135mV   00:00:23
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 02 September 2018, 09:14:29
Hi I've just received Alt Controller BT for Pro 2, replaced the original PCB and installed a battery.
It works fine when plugging into USB port of Mac Pro, MacBook Pro and SurfaceBook, respectively.
After several hours, LED on right side changed from orange to green.
So I assume the battery is full charged, then turned the USB/BT switch to BT mode.
LED on left side keep blinking once in a second.
Here comes a trouble.
My Macs (Mojave DP9) Bluetooth Preferences never detect HHKB, while Surface shows as TmkBT-C611.
How can I trouble shoot to use on Mac/BT? Is this related to Vender ID/Product ID issue?

The result of hid_listen.mac (L+R Shift + V, B) as follows:
   - Version -
DESC: t.m.k. keyboard firmware for HHKB mod
VID: 0xFEED(t.m.k.) PID: 0x4242(HHKB mod) VER: 0x0104
BUILD: 1b76ea4 (18:02:40 Mar 16 2018)
OPTIONS: LUFA MOUSEKEY EXTRAKEY CONSOLE COMMAND NKRO KEYMAP_SECTION 4096
GCC: 4.9.2 AVR-LIBC: 1.8.0svn AVR_ARCH: avr5
BAT: 4135mV   00:00:23


Those version info and VID/PID look ok.
Did you try pairing mode with pressing 'both Shifts + P'?
Title: Re: [TMK] HHKB Alt Controller
Post by: rinodrops on Sun, 02 September 2018, 13:43:52
Those version info and VID/PID look ok.
Did you try pairing mode with pressing 'both Shifts + P'?

When pressing 'both Shifts +P' during BT mode, LED turns on/off rapidly.
hid_listen says:
Entering config mode ...
CMD
Ver 6.15 04/26/2013
(c) Roving Networks
ECHO ON
SR,Z
AOK
R,1
Reboot!
Exiting config mode ...

Then LED turns on/off once in a second again.
Still not listed in Bluetooth Preferences.

Also I did RN42 initialize [LShift+RShift+ScrollLock(Fn+O)]
TmkBT appeared in the list, but couldn't connect to the device :'(
https://imgur.com/1cl7WNw (https://imgur.com/1cl7WNw)
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sun, 02 September 2018, 18:32:00
Hmm, isn't error message in any log or something?
Unless Mojave changed something on Bluetooth forever, methods below like SMC reset may help?

https://www.lifewire.com/fix-os-x-bluetooth-wireless-problems-2259967
http://osxdaily.com/2014/02/17/fix-bluetooth-not-available-error-mac/


Is any other Mac user with Mojave around here?
Title: Re: [TMK] HHKB Alt Controller
Post by: rinodrops on Sun, 02 September 2018, 22:34:12
Hmm, isn't error message in any log or something?
Unless Mojave changed something on Bluetooth forever, methods below like SMC reset may help?

https://www.lifewire.com/fix-os-x-bluetooth-wireless-problems-2259967
http://osxdaily.com/2014/02/17/fix-bluetooth-not-available-error-mac/


Is any other Mac user with Mojave around here?

I couldn't find any log except hid_listen; however,
I could resolve the issue!

Bluetooth failure on Mojave DP seems a common problem.
In this case, remove "/Library/Preferences/com.apple.Bluetooth.plist" file and restart the computer.
This file will be recreated during rebooting process. It erases all the paring information from the Mac as well.
I'm writing this post with HHKB Alt Controller BT mode. So far looks like no problem.
Thank you Hasu! This board is really awesome!  ;)

(So Alt Controller BT for Pro 2 works on macOS Mojave DP9)
Title: Re: [TMK] HHKB Alt Controller
Post by: 8BitDuck on Mon, 01 October 2018, 09:24:22
Hi, I have a suggestion for the TMK programmer.
Would it be possible to have the option of reprogramming the 2 and 3 keys to the iso uk symbols?
I'm not too bothered not having the " on the 2 but I can't really live without the £ symbol.
 
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Mon, 01 October 2018, 17:32:37
Hi, I have a suggestion for the TMK programmer.
Would it be possible to have the option of reprogramming the 2 and 3 keys to the iso uk symbols?
I'm not too bothered not having the " on the 2 but I can't really live without the £ symbol.
 

I'm not sure whether you tried this controller in fact, or are you asking before buying?

I think if you are using UK layout on your OS you don't have any problem, you will get pond singn with shift+3 regardless of what your keyboard legend says. Which symbol you get on OS depends totally on you keyboard configuration of your OS.

Assuming your model is JP,

Title: Re: [TMK] HHKB Alt Controller
Post by: 8BitDuck on Thu, 04 October 2018, 16:18:53
Hi, I have a suggestion for the TMK programmer.
Would it be possible to have the option of reprogramming the 2 and 3 keys to the iso uk symbols?
I'm not too bothered not having the " on the 2 but I can't really live without the £ symbol.
 

I'm not sure whether you tried this controller in fact, or are you asking before buying?

I think if you are using UK layout on your OS you don't have any problem, you will get pond singn with shift+3 regardless of what your keyboard legend says. Which symbol you get on OS depends totally on you keyboard configuration of your OS.

Assuming your model is JP,

Ah ok, I was under the assumption that you had to code the number row symbols as well as any of the other keys.
I was having a play around with your TMK configuration tool before receiving my keyboard.
Thanks for clearing that up
Title: Re: [TMK] HHKB Alt Controller
Post by: Jkshowman on Mon, 22 October 2018, 00:02:36
Hello! I have some trouble flashing right now? Whenever I try to flash the bluetooth firmware through QMK, the USB defaults to just DFU mode without me even clicking the red button? The bluetooth will also connect, but no typing happens?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Mon, 22 October 2018, 00:14:50
Hello! I have some trouble flashing right now? Whenever I try to flash the bluetooth firmware through QMK, the USB defaults to just DFU mode without me even clicking the red button? The bluetooth will also connect, but no typing happens?

Hi,
I'm not sure what QMK means, exactly, though...
Yes, if any firmware is not on Flash memory MCU starts up in DFU mode.
Yes, wIth no firmware or wrong one it results in 'no typing'.
Title: Re: [TMK] HHKB Alt Controller
Post by: Jkshowman on Mon, 22 October 2018, 06:10:30
hmmm, how do you flash bluetooth firmware?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu 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
Title: Re: [TMK] HHKB Alt Controller
Post by: Jkshowman 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?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu 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?
Title: Re: [TMK] HHKB Alt Controller
Post by: joric 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?

(https://gd2.alicdn.com/imgextra/i3/12420845/O1CN011I738iWlhl7wPLH_!!12420845.png)

(https://gd4.alicdn.com/imgextra/i4/12420845/O1CN011I738lYivfu4Pvc_!!12420845.png)

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.
Title: Re: [TMK] HHKB Alt Controller
Post by: Youthink 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?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu 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.

(http://i.imgur.com/1kD9tnel.jpg)
Title: Re: [TMK] HHKB Alt Controller
Post by: seerk 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
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu 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.
Title: Re: [TMK] HHKB Alt Controller
Post by: monkeyking24 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.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu 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
Title: Re: [TMK] HHKB Alt Controller
Post by: monkeyking24 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.
Title: Re: [TMK] HHKB Alt Controller
Post by: menuhin 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.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu 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.
Title: Re: [TMK] HHKB Alt Controller
Post by: menuhin 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?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu 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.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu 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
Title: Re: [TMK] HHKB Alt Controller
Post by: menuhin 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
Title: Re: [TMK] HHKB Alt Controller
Post by: Signature on Tue, 29 January 2019, 18:53:38
Congrats on the Linus TechTips shoutout, keep up the good work hasu!  :thumb:
Title: Re: [TMK] HHKB Alt Controller
Post by: Coeurl on Mon, 04 February 2019, 10:33:50
Thanks Hasu for a nice working alt controller :)
Title: Re: [TMK] HHKB Alt Controller
Post by: livewirerc 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.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu 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.
Title: Re: [TMK] HHKB Alt Controller
Post by: haskeller 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.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu 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.
Title: Re: [TMK] HHKB Alt Controller
Post by: spencerimp 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


Title: Re: [TMK] HHKB Alt Controller
Post by: hasu 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
Title: Re: [TMK] HHKB Alt Controller
Post by: spencerimp 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
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu 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.

Title: Re: [TMK] HHKB Alt Controller
Post by: nokidding 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.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu 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.
Title: Re: [TMK] HHKB Alt Controller
Post by: nokidding 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.
Title: Re: [TMK] HHKB Alt Controller
Post by: woppa 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?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu 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.
Title: Re: [TMK] HHKB Alt Controller
Post by: woppa 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.

Title: Re: [TMK] HHKB Alt Controller
Post by: hasu 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?
Title: Re: [TMK] HHKB Alt Controller
Post by: woppa 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
Title: Re: [TMK] HHKB Alt Controller
Post by: DSlayerZX 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?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu 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.
Title: Re: [TMK] HHKB Alt Controller
Post by: DSlayerZX on Sat, 16 March 2019, 23:22:50
ah man, really wish we can do that XD

thanks for the help though
Title: Re: [TMK] HHKB Alt Controller
Post by: DSlayerZX 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.
Title: Re: [TMK] HHKB Alt Controller
Post by: DSlayerZX 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
Title: Re: [TMK] HHKB Alt Controller
Post by: nathanchere 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.
Title: Re: [TMK] HHKB Alt Controller
Post by: menuhin 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
Title: Re: [TMK] HHKB Alt Controller
Post by: nathanchere 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
Title: Re: [TMK] HHKB Alt Controller
Post by: KebinPls 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.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu 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.
(http://i.imgur.com/1kD9tnel.jpg)

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.
Title: Re: [TMK] HHKB Alt Controller
Post by: KebinPls 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
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu 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.
Title: Re: [TMK] HHKB Alt Controller
Post by: nathanchere 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
Title: Re: [TMK] HHKB Alt Controller
Post by: yangdigi 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.
[attachimg=1]

I will post more infomation after it is done.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu 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.
Title: Re: [TMK] HHKB Alt Controller
Post by: nathanchere on Mon, 15 April 2019, 04:08:50
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.
(Attachment Link)

Super exciting news :D  Sorry for the ignorant question but what is the inner USB socket for?

I will post more infomation after it is done.
Title: Re: [TMK] HHKB Alt Controller
Post by: yangdigi on Tue, 16 April 2019, 02:25:39
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.
(Attachment Link)

Super exciting news :D  Sorry for the ignorant question but what is the inner USB socket for?

I will post more infomation after it is done.
Inner USB Disk and its power is controlled by keyboard.
[attachimg=1]
Title: Re: [TMK] HHKB Alt Controller
Post by: edencao on Tue, 30 April 2019, 17:16:38
I have received your board and it's works fine.Thanks for your work!
By the way,is there some plan to upgrade bluetooth to v4.x?
Title: Re: [TMK] HHKB Alt Controller
Post by: menuhin on Wed, 01 May 2019, 04:32:25
Yang's project added some nice extra features to the bluetooth controller.

Here're some questions:

1. the cables coming out of the socket circled on the right are quite crowded, you may turn the socket 180° or 90°.
2. What are these LEDs for? Just bugging for the project for yourself or there's some LED features?
3. Is the switch on the left going to face outward of the case in the final versions?

More
(https://i.imgur.com/2xdgQue.jpg)

I am also interested in how long you can foresee to stay inside the community to maintain contact for aftersales technical issues.
Title: Re: [TMK] HHKB Alt Controller
Post by: jgogstad on Wed, 10 July 2019, 12:09:38
Hi,

I received my hasu controller a couple of weeks ago for my HHKB2, and it worked perfectly. I flashed it twice, and now it has stopped working. The keyboard does not send events when I use it, and I don't seem to be able to contact it:

Code: [Select]
$ dfu-programmer atmega32u4 erase --force
dfu-programmer: no device present.

I have probably done something wrong, but I have no idea what as it worked the first time. I understand this is a very general error scenario, but do you have any tips on debugging it or resetting the firmware?

Some random facts and observations that might help

* The LED is orange when I plug in the keyboard, so the cable seems to work
* On macOS
* Using USB controller for HHKB Pro2

I've tried pushing the red button and doing the LSHIFT+RSHIFT+Fn+P combination to no avail.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 10 July 2019, 18:26:44
I think you already check first post but you may want to check it again, especially 'TROUBLESHOOT' section.
And refer to this about how to flash with dfu-programmer.
https://github.com/tmk/tmk_keyboard/wiki#dfu-programmer-for-windows-mac-and-linux

Did you try adding 'sudo' to the command?

Just push red button and then run commands. It should work.


[EDIT] And use proper firmware for your controller.
USB Alt controller has no orange LED and it is green which turns on only when capslock is activated.
yours is Bluetooth one, perhaps?

Hi,

I received my hasu controller a couple of weeks ago for my HHKB2, and it worked perfectly. I flashed it twice, and now it has stopped working. The keyboard does not send events when I use it, and I don't seem to be able to contact it:

Code: [Select]
$ dfu-programmer atmega32u4 erase --force
dfu-programmer: no device present.

I have probably done something wrong, but I have no idea what as it worked the first time. I understand this is a very general error scenario, but do you have any tips on debugging it or resetting the firmware?

Some random facts and observations that might help

* The LED is orange when I plug in the keyboard, so the cable seems to work
* On macOS
* Using USB controller for HHKB Pro2

I've tried pushing the red button and doing the LSHIFT+RSHIFT+Fn+P combination to no avail.
Title: Re: [TMK] HHKB Alt Controller
Post by: giammin on Thu, 11 July 2019, 02:35:49
USB Alt controller has no orange LED and it is green which turns on only when capslock is activated.
yours is Bluetooth one, perhaps?

lol
Title: Re: [TMK] HHKB Alt Controller
Post by: Altis on Thu, 11 July 2019, 16:33:08
Received my HHKB Pro 2 USB controllers. Installed and flashed without issues.

Really nice to be able to customize it a little bit. My biggest issue was with the navigation keys, so I created a Layer 2 using the Right OS key (the diamond one) and the existing arrow keys for PgUp/Home/End/PgDown. This lets me navigate quickly with either Fn or Right OS key (pinky and thumb naturally sit on) while leaving my hands on the arrow diamond.

Thanks Hasu!
Title: Re: [TMK] HHKB Alt Controller
Post by: jgogstad on Tue, 06 August 2019, 12:54:22
Thanks for the reply

I think you already check first post but you may want to check it again, especially 'TROUBLESHOOT' section.
And refer to this about how to flash with dfu-programmer.
https://github.com/tmk/tmk_keyboard/wiki#dfu-programmer-for-windows-mac-and-linux

Did you try adding 'sudo' to the command?

Yes, it made no difference

Code: [Select]
$ sudo dfu-programmer atmega32u4 erase --force
Password:
dfu-programmer: no device present.

Quote
Just push red button and then run commands. It should work.


[EDIT] And use proper firmware for your controller.
USB Alt controller has no orange LED and it is green which turns on only when capslock is activated.
yours is Bluetooth one, perhaps?

Pushing the red button does not make a difference. It might be that I flashed it using the wrong firmware, I don't think I did, but it's possible. Anyway, the LED is definitely orange and it's definitely a USB controller. See attached image.

Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Tue, 06 August 2019, 13:42:06
 jgogstad,
hmm, bootloader should work whenever the button is pressed unless its hardware is insane.
And LED never light when booloader is running. There may be someting wrong on hardware.

Contact seller with email. (probably me?)


Title: Re: [TMK] HHKB Alt Controller
Post by: joric on Sun, 25 August 2019, 13:07:29
Warning, YDKB battery connector is reversed comparing with Hasu. Why???

(https://i.imgur.com/EvKvP8m.jpg)

Also YDKB firmware for mdbt40 module is available here:
https://github.com/yangdigi/tmk_keyboard/tree/master/keyboard/hhkb_ble

Also here's my firmware for Pro Micro and nRFMicro but I'm still trying to figure out the timings. Do I really need a microsecond timer in the inner loop?
https://github.com/joric/nrfmicro/wiki/hhkb-ble

This one:
Code: [Select]
if (TIMER_DIFF_RAW(TIMER_RAW, last) > 20/(1000000/TIMER_RAW_FREQ)) {
    matrix[row] = matrix_prev[row];
}
May I just comment it out? I works with Atmega32u4 but there's no microsecond timer on Nordic and the millsecond one is not enough as figures.
Title: Re: [TMK] HHKB Alt Controller
Post by: nathanchere on Mon, 26 August 2019, 03:59:13
I've been using my Hasu BT controller without a battery for a loooong time because I never found a battery connector that fits the PCB and I didn't want to leave my prototyping pins in there. Can anyone recommend the appropriate part number or where to buy just the battery connector tip? I have a suitable battery, just without the connector at the end of the wires.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Tue, 27 August 2019, 03:17:56
joric,
I don't know and can't say about their controller. Just ask seller of your controller.

For TMK controller, don't comment the lines out. They are needed for reliable matrix scan.

nathanchere,
Battery connector is JST PH, you can find it anywhere including clones. I'd recommend genuine, though.
You can use AWG24 wire with these.

https://www.digikey.com/short/prj0z5
https://www.digikey.com/short/prj0mh
Title: Re: [TMK] HHKB Alt Controller
Post by: joric on Wed, 28 August 2019, 08:37:32
I mean, it kind of works, when I comment out the timer code, but there's trailing 222 after each key. Did you experience the same behavior while debugging the matrix code? Microsecond timer on nordic is not so easy to get as on AVR, I guess, there should be a clock register but I'm not entirely sure. See the video. Also https://github.com/joric/nrfmicro/wiki/HHKB-BLE

It's not bluetooth-related because I'm using wired USB connection for debug, it's just timings (bluetooth works, and behaves the same way). Tried uint32_t last = NRF_RTC0->COUNTER, if (NRF_RTC0->COUNTER > last) matrix[row] = matrix_prev[row]; but it just got worse (NRF_RTC0->COUNTER resolution is 32khz so every tick is about 30 us). The '2' key appears to be COL0/ROW0 but when I try to drop its bit it just repeats the nearest key (qqq, wwww and so on).

Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Wed, 28 August 2019, 19:02:38
joric,
You need to create own thread for your problem in "Making Stuff Together!" or talk with its designer and  It is not related to TMK Alt controller.
I want to use this thread for support and discussion about TMK controller and dont' want people here to be confused with infos of diferent controller.

EDIT: Or instead of creating your own thread you can discuss with people about technical topics of HHKB at this thread: https://geekhack.org/index.php?topic=12047.0
Title: Re: [TMK] HHKB Alt Controller
Post by: joric on Thu, 29 August 2019, 03:44:17
I AM "its designer" but okay.
Title: Re: [TMK] HHKB Alt Controller
Post by: emyebantracl on Thu, 29 August 2019, 18:57:20
Dear Hasu,

I have had my hhkb pro 2 with the hasu controller for about a year. This morning the keys were not working but the green light was on and I was connected via a cable. Bluetooth also would connect, but keys wouldn't work. I tried restarting my computer and resetting my Mac's SMC and pram. Nothing changed. I came back after a few hours and tried again. With the cable nothing worked and I got a notice from my mac saying: "USB Accessories Disabled" Unplug the accessory using to much power to re-enable USB device. Next, I tried plugging the keyboard into a different power source and using bluetooth. The bluetooth didn't work unless it wasn't plugged in. With the keyboard connected to power and bluetooth on I was able to type a little and then random keys started to execute. 


The keyboard has been on my desk for months, so I am doubtful it was damaged or spilled on without my knowledge.

I wasn't able to re-flash it, since when it is plugged in the computer didn't recognize it.

Any ideas on what to do next? Could I just need a new battery?

UPDATE: I removed the battery and the keyboard works with bluetooth, but not the cable alone.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 29 August 2019, 21:29:35
Hi,
That error "USB Accessories Disabled: Unplug the accessory using too much power to re-enable USB device." looks really bad symptom. It may happens short circuit or serious fault  somewehre.

I'd suspect USB cable or port first, though, the controller itself can be already damaged.
Did you try another cable or USB port?

A) At first, check where it works as USB keyobard.
1. Remove battery and turn off Bluetooth with the slide switch.
2. Plug into port with USB cable.

Does the LED turns green and the keyboard registers keys?
Also try Windows or Linux if you have any.

If not try another cables get from reliable source. There are many many bad cable in the market unfortunately.
Use cable comes with HHKB, it is enough reliable unless it is damaged.

If it doesn't still work, try reflashing default firmware downloaded from Keymap Editor.


B) Check your HHKB is still safe and work with its original controller.
Does the keyboard work well with the genuine contoller and the cable?




Dear Hasu,

I have had my hhkb pro 2 with the hasu controller for about a year. This morning the keys were not working but the green light was on and I was connected via a cable. Bluetooth also would connect, but keys wouldn't work. I tried restarting my computer and resetting my Mac's SMC and pram. Nothing changed. I came back after a few hours and tried again. With the cable nothing worked and I got a notice from my mac saying: "USB Accessories Disabled" Unplug the accessory using to much power to re-enable USB device. Next, I tried plugging the keyboard into a different power source and using bluetooth. The bluetooth didn't work unless it wasn't plugged in. With the keyboard connected to power and bluetooth on I was able to type a little and then random keys started to execute. 


The keyboard has been on my desk for months, so I am doubtful it was damaged or spilled on without my knowledge.

I wasn't able to re-flash it, since when it is plugged in the computer didn't recognize it.

Any ideas on what to do next? Could I just need a new battery?

UPDATE: I removed the battery and the keyboard works with bluetooth, but not the cable alone.

Title: Re: [TMK] HHKB Alt Controller
Post by: emyebantracl on Fri, 30 August 2019, 11:17:16
A)
- LED turns green, I have not tested on PC or Linux yet. I have tried a second mac.
- Mac isn't recognizing that there is a keyboard in the USB port.
- I tried two cables, including original hhkb cable.
- When I run: dfu-programmer atmega32u4 erase --force, I get the message "dfu-programmer: no device present." I am assuming that my mac isn't recognizing that the keyboard is there. Is "atmega32u4" the right controller?

B)
The original hhkb genuine controller does work with a cable. And the Hasu controller works with no battery and bluetooth on, but not with the cord by itself and no battery.


Hi,
That error "USB Accessories Disabled: Unplug the accessory using too much power to re-enable USB device." looks really bad symptom. It may happens short circuit or serious fault  somewehre.

I'd suspect USB cable or port first, though, the controller itself can be already damaged.
Did you try another cable or USB port?

A) At first, check where it works as USB keyobard.
1. Remove battery and turn off Bluetooth with the slide switch.
2. Plug into port with USB cable.

Does the LED turns green and the keyboard registers keys?
Also try Windows or Linux if you have any.

If not try another cables get from reliable source. There are many many bad cable in the market unfortunately.
Use cable comes with HHKB, it is enough reliable unless it is damaged.

If it doesn't still work, try reflashing default firmware downloaded from Keymap Editor.


B) Check your HHKB is still safe and work with its original controller.
Does the keyboard work well with the genuine contoller and the cable?




Dear Hasu,

I have had my hhkb pro 2 with the hasu controller for about a year. This morning the keys were not working but the green light was on and I was connected via a cable. Bluetooth also would connect, but keys wouldn't work. I tried restarting my computer and resetting my Mac's SMC and pram. Nothing changed. I came back after a few hours and tried again. With the cable nothing worked and I got a notice from my mac saying: "USB Accessories Disabled" Unplug the accessory using to much power to re-enable USB device. Next, I tried plugging the keyboard into a different power source and using bluetooth. The bluetooth didn't work unless it wasn't plugged in. With the keyboard connected to power and bluetooth on I was able to type a little and then random keys started to execute. 


The keyboard has been on my desk for months, so I am doubtful it was damaged or spilled on without my knowledge.

I wasn't able to re-flash it, since when it is plugged in the computer didn't recognize it.

Any ideas on what to do next? Could I just need a new battery?

UPDATE: I removed the battery and the keyboard works with bluetooth, but not the cable alone.
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Fri, 30 August 2019, 17:52:59
It seems like charger chip is fried or USB connector is damaged perhaps.
I can offer free repair service if you cover postage for both ways. Contact me at hasu@tmk-kbd.com.

A)
- LED turns green, I have not tested on PC or Linux yet. I have tried a second mac.
- Mac isn't recognizing that there is a keyboard in the USB port.
- I tried two cables, including original hhkb cable.
- When I run: dfu-programmer atmega32u4 erase --force, I get the message "dfu-programmer: no device present." I am assuming that my mac isn't recognizing that the keyboard is there. Is "atmega32u4" the right controller?

B)
The original hhkb genuine controller does work with a cable. And the Hasu controller works with no battery and bluetooth on, but not with the cord by itself and no battery.


Title: Re: [TMK] HHKB Alt Controller
Post by: the_marsbar on Thu, 12 December 2019, 06:10:13
I am experiencing something really strange.

I've used my keyboard a lot with the USB controller. All of a sudden, the CMD keys don't work. Any idea what that could be? How to solve it (probably re-flash)?
Title: Re: [TMK] HHKB Alt Controller
Post by: the_marsbar on Thu, 12 December 2019, 13:01:07
I am experiencing something really strange.

I've used my keyboard a lot with the USB controller. All of a sudden, the CMD keys don't work. Any idea what that could be? How to solve it (probably re-flash)?

Update: re-flashed the controller, and it seems to work again. However, I'm still curious how it happened, and I would definitely like to avoid it in the future. Especially since I use it as my travel-keyboard. Any ideas? I have been plugging the keyboard into two different computers several times today, but I wouldn't think that should be an issue (I also believe I have done this many times before)?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Thu, 12 December 2019, 17:17:43
One of Boot Magic features caused your problem probably. 'Disable GUI' feature is enabled by plugging in keyboard with holding down Space and LGUI key. You could clear all of its configurations by plugin with holding Space and Backspace.
https://github.com/tmk/tmk_keyboard#boot-magic-configuration---virtual-dip-switch

Many users had suffered from Boot Magic enabled unintentionally, Boot Magic have not been included in prebuilt firmware since Sep 2016.


I am experiencing something really strange.

I've used my keyboard a lot with the USB controller. All of a sudden, the CMD keys don't work. Any idea what that could be? How to solve it (probably re-flash)?

Update: re-flashed the controller, and it seems to work again. However, I'm still curious how it happened, and I would definitely like to avoid it in the future. Especially since I use it as my travel-keyboard. Any ideas? I have been plugging the keyboard into two different computers several times today, but I wouldn't think that should be an issue (I also believe I have done this many times before)?

Title: Re: [TMK] HHKB Alt Controller
Post by: Snappo on Fri, 17 January 2020, 11:10:48
Hi everyone,

Just to check, is there a way to map the shift output of a key? For example, changing the output of shift+4 from ($) to (£) etc using TMK?

Many thanks,


Title: Re: [TMK] HHKB Alt Controller
Post by: Aerizu on Sat, 18 January 2020, 10:01:29
Any plans for HHKB classic?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sat, 18 January 2020, 17:13:28
Hi everyone,

Just to check, is there a way to map the shift output of a key? For example, changing the output of shift+4 from ($) to (£) etc using TMK?

Many thanks,

What's your OS and keyboard layout? And how do you input £ on your current evironment?

This may help.
https://github.com/tmk/tmk_keyboard/wiki/FAQ-Keymap#input-special-charactors-other-than-ascii-like-c%C3%A9dille-%C3%87

Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Sat, 18 January 2020, 17:18:48
Any plans for HHKB classic?

Maybe. I got one  and open it at least :D
Title: Re: [TMK] HHKB Alt Controller
Post by: GoatMaster on Mon, 10 February 2020, 05:06:54
Hasu is there any chance for a hhkb alt controller for the new hhkb version?
Title: Re: [TMK] HHKB Alt Controller
Post by: hasu on Mon, 10 February 2020, 21:29:18
Hasu is there any chance for a hhkb alt controller for the new hhkb version?

Yes, I have vague plan for Classic. I got a Classic and looke into its internals at least.
But I don't start designing controller yet and it will take long.

Fun fact, Classic hardware itself is already programmable, though not spported officially unlike Hybrid.
Hackers in keyboard community with some efforts may find way to program open source firmeware without hardware modification in the end.

This is pic album of internal of my Classic if you are interested.
https://imgur.com/a/p9dWvM0
Title: Re: [TMK] HHKB Alt Controller
Post by: GoatMaster on Tue, 11 February 2020, 08:04:54
Nice, Classic is exactly what I am waiting for.

As soon as it is possible to progamm the Classic I will buy one.

Thank you for the information.
Title: Re: [TMK] HHKB Alt Controller
Post by: heyitsqi on Tue, 11 February 2020, 12:49:47
What are the chances we can potentially reverse engineer the base firmware (now that you can program in windows using their tool) to be able to flash our own firmware? Or where could I go to maybe mess around with?
Title: Re: [TMK] HHKB Alt Controller
Post by: crsayen on Tue, 21 April 2020, 18:03:12
What are the chances we can potentially reverse engineer the base firmware (now that you can program in windows using their tool) to be able to flash our own firmware? Or where could I go to maybe mess around with?

I have been digging around in the HHKBKeymapTool.exe looking to see if the Classic has been excluded superficially. There is a flag read from JSON file that's actually inside the install folder. (C:\\Program Files\PFU\Happy Hacking Keyboard Keymap Tool\keyboardDataList.json) the parameter is isKeymapChangeable.

I am not brave enough to try setting this to true. But I am following the logic from that point to see if it might not be as simple as changing that flag. I doubt it's so easy. I will keep you updated

edit:

(https://imgur.com/a/J5KYoSi)

setting the flag to true gets you past the "the Keymap can't be modified". I am tempted to see what happens. I am hoping I can just refresh the thing if it bricks. Otherwise I will be needing an alt board either way. hmm.

edit:

it successfully read the state of my dipswitches.
Title: Re: [TMK] HHKB Alt Controller with Mini-B connector
Post by: hasu on Tue, 21 April 2020, 18:38:33
What are the chances we can potentially reverse engineer the base firmware (now that you can program in windows using their tool) to be able to flash our own firmware? Or where could I go to maybe mess around with?

I have been digging around in the HHKBKeymapTool.exe looking to see if the Classic has been excluded superficially. There is a flag read from JSON file that's actually inside the install folder. (C:\\Program Files\PFU\Happy Hacking Keyboard Keymap Tool\keyboardDataList.json) the parameter is isKeymapChangeable.

I am not brave enough to try setting this to true. But I am following the logic from that point to see if it might not be as simple as changing that flag. I doubt it's so easy. I will keep you updated

edit:

Show Image
(https://imgur.com/a/J5KYoSi)


setting the flag to true gets you past the "the Keymap can't be modified". I am tempted to see what happens. I am hoping I can just refresh the thing if it bricks. Otherwise I will be needing an alt board either way. hmm.

edit:

it successfully read the state of my dipswitches.

Interesting. Nice find.
Did you try remapping keys actually on your board?
I believe you can recover it with simple hardware hack even if it brick your board. You can consult me if needed.

I will try it some later.
Title: Re: [TMK] HHKB Alt Controller with Mini-B connector
Post by: crsayen on Tue, 21 April 2020, 18:49:20
What are the chances we can potentially reverse engineer the base firmware (now that you can program in windows using their tool) to be able to flash our own firmware? Or where could I go to maybe mess around with?

I have been digging around in the HHKBKeymapTool.exe looking to see if the Classic has been excluded superficially. There is a flag read from JSON file that's actually inside the install folder. (C:\\Program Files\PFU\Happy Hacking Keyboard Keymap Tool\keyboardDataList.json) the parameter is isKeymapChangeable.

I am not brave enough to try setting this to true. But I am following the logic from that point to see if it might not be as simple as changing that flag. I doubt it's so easy. I will keep you updated

edit:

Show Image
(https://imgur.com/a/J5KYoSi)


setting the flag to true gets you past the "the Keymap can't be modified". I am tempted to see what happens. I am hoping I can just refresh the thing if it bricks. Otherwise I will be needing an alt board either way. hmm.

edit:

it successfully read the state of my dipswitches.

Interesting. Nice find.
Did you try remapping keys actually on your board?
I believe you can recover it with simple hardware hack even if it brick your board. You can consult me if needed.

I will try it some later.

With this in mind, I think I will try to map some keys.

FYI if anyone has experience with Windows software and is interested in hacking the Classic, please PM me, I have some good stuff.
Title: Re: [TMK] HHKB Alt Controller with Mini-B connector
Post by: crsayen on Tue, 21 April 2020, 19:05:28
What are the chances we can potentially reverse engineer the base firmware (now that you can program in windows using their tool) to be able to flash our own firmware? Or where could I go to maybe mess around with?

I have been digging around in the HHKBKeymapTool.exe looking to see if the Classic has been excluded superficially. There is a flag read from JSON file that's actually inside the install folder. (C:\\Program Files\PFU\Happy Hacking Keyboard Keymap Tool\keyboardDataList.json) the parameter is isKeymapChangeable.

I am not brave enough to try setting this to true. But I am following the logic from that point to see if it might not be as simple as changing that flag. I doubt it's so easy. I will keep you updated

edit:

Show Image
(https://imgur.com/a/J5KYoSi)


setting the flag to true gets you past the "the Keymap can't be modified". I am tempted to see what happens. I am hoping I can just refresh the thing if it bricks. Otherwise I will be needing an alt board either way. hmm.

edit:

it successfully read the state of my dipswitches.

Interesting. Nice find.
Did you try remapping keys actually on your board?
I believe you can recover it with simple hardware hack even if it brick your board. You can consult me if needed.

I will try it some later.


Success! I remapped a single key ( tilde now = right-alt ). I am now seeing how limited the remapping software actually is. So I am not sure this would have been worth it any way.

but the point is it worked. I don't advise anybody try this unless they are willing to brick their board.
Title: Re: [TMK] HHKB Alt Controller with Mini-B connector
Post by: hasu on Tue, 21 April 2020, 19:27:44
Great! Thanks for the info.
Title: Re: [TMK] HHKB Alt Controller with Mini-B connector
Post by: crsayen on Tue, 21 April 2020, 19:47:09
Just an update. I have remapped fn -> control, arrows -> fn+jkli, end -> fn+o, and home to fn+u.

so far so good. works as expected. I wouldn't be surprised if there was some mapping that is problematic. But I would also be unsurprised if PFU did this superficially to sell more expensive boards.
Title: Re: [TMK] HHKB Alt Controller with Mini-B connector
Post by: devoi on Tue, 28 July 2020, 13:26:42
after putting it on hold for a couple years I managed to get variable-distance actuation working after writing some simple C routines  ;D
i've been out of the loop, so for all I know this has already been done and shared by someone

as of right now it uses an external atmel development board to set the "distance" value (as I currently only have the stock controller) with a very simple serial interface to write the wiper position in BU9831 via the 3 "calibration" pads. there seems to be very little risk as of right now as it loads the "default" resistance value from memory every time it is power-cycled, so if anything goes wrong I can just re-plug it in :p

at a glance it could easily be implemented within the controller, assuming there are 3 I/O pins available and assuming the user wants to solder 3 small wires directly from the controller to the main board, there's just a risk of tearing the calibration pads off if not too careful
Title: Re: [TMK] HHKB Alt Controller with Mini-B connector
Post by: hasu on Fri, 31 July 2020, 07:59:07
Sounds fun!
More people would find this interesting than here if you can post your code or technical details in thread: https://geekhack.org/index.php?topic=12047.0


after putting it on hold for a couple years I managed to get variable-distance actuation working after writing some simple C routines  ;D
i've been out of the loop, so for all I know this has already been done and shared by someone

as of right now it uses an external atmel development board to set the "distance" value (as I currently only have the stock controller) with a very simple serial interface to write the wiper position in BU9831 via the 3 "calibration" pads. there seems to be very little risk as of right now as it loads the "default" resistance value from memory every time it is power-cycled, so if anything goes wrong I can just re-plug it in :p

at a glance it could easily be implemented within the controller, assuming there are 3 I/O pins available and assuming the user wants to solder 3 small wires directly from the controller to the main board, there's just a risk of tearing the calibration pads off if not too careful

Title: Re: [TMK] HHKB Alt Controller with Mini-B connector
Post by: menuhin on Fri, 31 July 2020, 09:20:08
...
I managed to get variable-distance actuation working after writing some simple C routines  ;D
...
at a glance it could easily be implemented within the controller, assuming there are 3 I/O pins available and assuming the user wants to solder 3 small wires directly from the controller to the main board, there's just a risk of tearing the calibration pads off if not too careful

 :thumb: :thumb: :thumb:
Title: Re: [TMK] HHKB Alt Controller with Mini-B connector
Post by: GoatMaster on Tue, 11 August 2020, 09:55:20
Any news?

Would love to see a new controller for the HHKB Professional Classic.
Title: Re: [TMK] HHKB Alt Controller with Mini-B connector
Post by: pfoff on Sat, 15 August 2020, 17:33:53
First of all: Thanks for all the great work, especially to hasu. I have 90% of my keyboards running via TMK.
I've been reading here for a while and it answered all the questions that arised on the way.
Today I got to a point, where I decided to ask you experts for advice(or just a don't do it, it won't work...).
I am writing this on my HHKB professional2 with a Revision N hasu controller(of course!) and I realy love it. It came with the standard controller, not the bluetooth version. But now a RN42 came along and so I think about converting it to the bluetooth version. Most of the components should already be in my box, so that shouldn't be the problem. But my RN42(picture attached) seems to be  different, but as far as I know only in terms of firmware, so I wonder, if I could use the UART Interface on the pcb to reprogram the firmware to be the matching one for tmk. Anybody any ideas/help?
Title: Re: [TMK] HHKB Alt Controller with Mini-B connector
Post by: hasu on Sat, 15 August 2020, 19:15:37
Any news?

Would love to see a new controller for the HHKB Professional Classic.

No progress.  I don't abandon my plan but it is slow as snail, it may take a few years.

I will update this thread when any news is available. Subscribe it if you are interested.
https://geekhack.org/index.php?topic=106213.0

Title: Re: [TMK] HHKB Alt Controller with Mini-B connector
Post by: hasu on Sat, 15 August 2020, 19:25:11
First of all: Thanks for all the great work, especially to hasu. I have 90% of my keyboards running via TMK.
I've been reading here for a while and it answered all the questions that arised on the way.
Today I got to a point, where I decided to ask you experts for advice(or just a don't do it, it won't work...).
I am writing this on my HHKB professional2 with a Revision N hasu controller(of course!) and I realy love it. It came with the standard controller, not the bluetooth version. But now a RN42 came along and so I think about converting it to the bluetooth version. Most of the components should already be in my box, so that shouldn't be the problem. But my RN42(picture attached) seems to be  different, but as far as I know only in terms of firmware, so I wonder, if I could use the UART Interface on the pcb to reprogram the firmware to be the matching one for tmk. Anybody any ideas/help?

The module seems same as one I used but it can have different firmware. You need version 6.15 or 6.30.

I think you can update the module through the UART interface but RN42 firmware won't be found via legal way. I don't have any experience and can't help there. Googling  'HC-05 firmware update' leads to some resources.


Edit: You better post in this thread if you need further help.
https://geekhack.org/index.php?topic=12047.0
Title: Re: [TMK] HHKB Alt Controller with Mini-B connector
Post by: tuan nguyen on Mon, 11 January 2021, 16:27:33
Hi Hasu, I've have your hhkb 2 alt board and using tmk web editor.
Howerver, I want to dig deeper into the customization. I read the wiki of tmk but didn't sure which file *.c I need to edit here.
In the folder keyboard/hhkb there are several .c file, such as, unimap_hhkb.c, unimap_hasu.c, keymap_hhkb.c.

Thank you!
Title: Re: [TMK] HHKB Alt Controller with Mini-B connector
Post by: hasu on Mon, 11 January 2021, 19:11:10
Try unimap one.

1. copy unimap_hhkb.c to unimap_you.c and edit it.
2. build and flash with commmand below:
Code: [Select]
make -f Makefile.unimap KEYMAP=you clean
make -f Makefile.unimap KEYMAP=you
make -f Makefile.unimap KEYMAP=you dfu
Title: Re: [TMK] HHKB Alt Controller with Mini-B connector
Post by: tuan nguyen on Tue, 09 February 2021, 20:46:49
Hi Hasu, thanks for your help!

Just wonder if I can use the board with HHKB JP, and in that case, is this able to map the keys exactly like HHKB EN layout. For example, when I press shift 2, it will return "@" but not the double quote as in the JP layout.



Title: Re: [TMK] HHKB Alt Controller with Mini-B connector
Post by: hasu on Tue, 09 February 2021, 23:58:39
It is dificult if not impossible and you will need to write some amount of code.

Hi Hasu, thanks for your help!

Just wonder if I can use the board with HHKB JP, and in that case, is this able to map the keys exactly like HHKB EN layout. For example, when I press shift 2, it will return "@" but not the double quote as in the JP layout.


Title: Re: [TMK] HHKB Alt Controller with Mini-B connector
Post by: Vadurr on Thu, 18 February 2021, 09:07:09
Hi Hasu, will you have any BLE controllers for Pro 1?
Title: Re: [TMK] HHKB Alt Controller with Mini-B connector
Post by: hasu on Thu, 18 February 2021, 15:12:36
Hi Hasu, will you have any BLE controllers for Pro 1?
No probably.
Title: Re: [TMK] HHKB Alt Controller with Mini-B connector
Post by: zhaochenhan1992 on Sun, 21 March 2021, 22:38:02
Hi Hasu.
Recently I am working on a project, that need to use led light on alt controller of hhkb to show which key is pressed. I have a question of your firmware code. When in BT pairing mode, the right led light flash into red once per second, how can I change this, for example flash twice per second or not flash at all. I just tried to adjust all the corresponding code snippet about DDRE6 and PORTE6 in rn42_task.c, rn42.c. Unluckily, none of them works. Could you please tell me which part of the code related to the BT led light and how can I change the code to achieve turn off the led light during pairing mode. Thanks a lot.
Title: Re: [TMK] HHKB Alt Controller with Mini-B connector
Post by: hasu on Sun, 21 March 2021, 22:53:33
Hi,
In sort answer, you can't change the behaviour basically from keyboard firmware, the red LED(D9) is controled directly by GPIO5(22) of RN42 module.

But I may be able to change or disable the GPIO5 using module commands. Check datasheet and references.
https://ww1.microchip.com/downloads/en/DeviceDoc/bluetooth_cr_UG-v1.0r.pdf
https://www.microchip.com/wwwproducts/en/RN42


EDIT:
what the PE6 pin controls is green(yellow) part(D9) of the dual color LED.
D9 is actually red/green dual LED. D10 is not populated on PCB, btw.

You can find schematics here.
https://github.com/tmk/HHKB_controller/blob/master/schematic/HHKB_controller_revG.pdf
Title: Re: [TMK] HHKB Alt Controller with Mini-B connector
Post by: zhaochenhan1992 on Mon, 22 March 2021, 08:09:09
Thanks Hasu! Do I need some extra cable to connect to RN42 in order to visit the command mode? Or I can just connect keyboard via usb cable to my pc and use uart terminal interacting with RN42? 
Hi,
In sort answer, you can't change the behaviour basically from keyboard firmware, the red LED(D9) is controled directly by GPIO5(22) of RN42 module.

But I may be able to change or disable the GPIO5 using module commands. Check datasheet and references.
https://ww1.microchip.com/downloads/en/DeviceDoc/bluetooth_cr_UG-v1.0r.pdf
https://www.microchip.com/wwwproducts/en/RN42


EDIT:
what the PE6 pin controls is green(yellow) part(D9) of the dual color LED.
D9 is actually red/green dual LED. D10 is not populated on PCB, btw.

You can find schematics here.
https://github.com/tmk/HHKB_controller/blob/master/schematic/HHKB_controller_revG.pdf
Title: Re: [TMK] HHKB Alt Controller with Mini-B connector
Post by: hasu on Mon, 22 March 2021, 09:41:59
I think you can access to config mode of RN42 with hid_listen console. But this function is not be fully supported, you may have some trouble. Refer to this.
https://github.com/tmk/tmk_keyboard/blob/master/keyboard/hhkb/rn42/RN42.txt#L102-L122

If this doesn't work you need to connect 3.3V-level UART cable to pinouts(RX,TX) on the pcb.
Title: Re: [TMK] HHKB Alt Controller with Mini-B connector
Post by: zhaochenhan1992 on Mon, 22 March 2021, 13:23:15
Thanks Hasu. For the battery led, is it possible to turn it off by changing the firmware? While in the firmware Battery_led(off) seems to let the led always on in green.
Title: Re: [TMK] HHKB Alt Controller with Mini-B connector
Post by: hasu on Mon, 22 March 2021, 18:25:52
Kind of. The batery LED is another green/red dual LED(D3). Green one is connected directly to USB power or Lipo battery, you can't control it at all. Red one always turns on during battery charging, you can control it by PF5 otherwise.
Title: Re: [TMK] HHKB Alt Controller with Mini-B connector
Post by: zhaochenhan1992 on Wed, 24 March 2021, 17:42:05
Hi, Hasu. Sorry to bother you again. I met a bug of the hook_matrix_change() function. If I randomly press a key which leads to a matrix  change, the hook_matrix_change() function would be excuted twiced. Have you ever met this problem when using hook?
Title: Re: [TMK] HHKB Alt Controller with Mini-B connector
Post by: zhaochenhan1992 on Wed, 24 March 2021, 18:22:12
Hi, Hasu. Sorry to bother you again. I met a bug of the hook_matrix_change() function. If I randomly press a key which leads to a matrix  change, the hook_matrix_change() function would be excuted twiced. Have you ever met this problem when using hook?
Hasu, I know where the problem is, maybe you could update the code and fix the bug. https://github.com/tmk/tmk_keyboard/blob/6271878a021fcf578b71e2b7e97cd43786efa7dd/tmk_core/common/keyboard.c (https://github.com/tmk/tmk_keyboard/blob/6271878a021fcf578b71e2b7e97cd43786efa7dd/tmk_core/common/keyboard.c) Line 137 and 138. In fact, the line 137 corresponds to the function
Code: [Select]
void action_exec(keyevent_t event)
{
    if (!IS_NOEVENT(event)) {
        dprint("\n---- action_exec: start -----\n");
        dprint("EVENT: "); debug_event(event); dprintln();
        hook_matrix_change(event);
    }
there is already a hook_matrix _change(event),but in line 138 hook_matrix _change(event) is excuted again.
So just delete either of them.
Title: Re: [TMK] HHKB Alt Controller with Mini-B connector
Post by: hasu on Wed, 24 March 2021, 18:25:11
Great! Open the issue on github.
I'll fix it later.
Title: Re: [TMK] HHKB Alt Controller with Mini-B connector
Post by: hasu on Sun, 11 April 2021, 19:38:09
Revised price of controller and shipping rate
Title: Re: [TMK] HHKB Alt Controller with Mini-B connector
Post by: note96e on Wed, 29 December 2021, 20:16:25
I want to switch layers and Bluetooth/USB at the same time.
I've tried changing the code, but is there another way?
https://github.com/note96e/tmk_keyboard/commit/7fbb65b431b65237d253a5d200fc814db56fe03a (https://github.com/note96e/tmk_keyboard/commit/7fbb65b431b65237d253a5d200fc814db56fe03a)
Title: Re: [TMK] HHKB Alt Controller with Mini-B connector
Post by: hasu on Wed, 29 December 2021, 21:56:03
It looks good. and I think it is right way.
Title: Re: [TMK] HHKB Alt Controller with Mini-B connector
Post by: note96e on Wed, 29 December 2021, 22:41:46
Thank you, Hasu.
I'll buy the Bluetooth controller when it comes in.
Title: Re: [TMK] HHKB Alt Controller with Mini-B connector
Post by: hasu on Thu, 30 December 2021, 00:18:37
Thank you, Hasu.
I'll buy the Bluetooth controller when it comes in.

Bluetooth controller is not in stock but I can make it on make-to-order basis.
Its price is 75USD now due to recent price rise of electronic components, especially Bluetooth module.
Assembly process will start after making payment and takes one week or so.

Email me if you are still interested.
Title: Re: [TMK] HHKB Alt Controller with Mini-B/Type-C connector
Post by: TheNeonKnight on Thu, 13 April 2023, 13:04:40
Hey Hasu! Is there any plans to do a revision of these with a new controller such as stm32 or RP2040? Would certainly lower the cost and allow for larger internal storage for things like VIAL 
Title: Re: [TMK] HHKB Alt Controller with Mini-B/Type-C connector
Post by: hasu on Thu, 13 April 2023, 18:04:35
No plan at this time.

Hey Hasu! Is there any plans to do a revision of these with a new controller such as stm32 or RP2040? Would certainly lower the cost and allow for larger internal storage for things like VIAL 

Title: Re: [TMK] HHKB Alt Controller with Mini-B/Type-C connector
Post by: sporkus on Fri, 19 May 2023, 16:23:02
Does qmk work on this board?
Title: Re: [TMK] HHKB Alt Controller with Mini-B/Type-C connector
Post by: hasu on Fri, 19 May 2023, 23:19:58
Does qmk work on this board?

Probably . It should work.
Just note that I won't support QMK and can't help you when you are in trouble. But this won't be a problem in most cases.
Title: Re: [TMK] HHKB Alt Controller with Mini-B/Type-C connector
Post by: hasu on Tue, 30 May 2023, 01:24:07
I found that the bluetooth module was back in stock in a shop with 50% higher price than before.

You can order bluetooth controller if you don't mind its cost.
The controller is assembled after your payment and it takes a week or two to be shipped.

Thanks
Title: Re: [TMK] HHKB Alt Controller with Mini-B/Type-C connector
Post by: hasu on Tue, 28 November 2023, 01:29:53
Type-C USB Controller for Pro1 is available now.

See the first post. Thank you
Title: Re: [TMK] HHKB Alt Controller with Mini-B/Type-C connector
Post by: TheOtherAdam on Tue, 02 January 2024, 22:10:07
Hey Hasu

Are you still selling these?

Cheers
Adam
Title: Re: [TMK] HHKB Alt Controller with Mini-B/Type-C connector
Post by: mohawk1367 on Wed, 03 January 2024, 07:46:50
Hey Hasu

Are you still selling these?

Cheers
Adam

they should be
Title: Re: [TMK] HHKB Alt Controller with Mini-B/Type-C connector
Post by: TheOtherAdam on Sun, 07 January 2024, 04:01:23
Hey Hasu

Are you still selling these?

Cheers
Adam

they should be

I emailed the email address in the first post on 2nd Jan and haven't heard back, maybe he is away!

Edit: Yup away, my controller is on its way.
Title: Re: [TMK] HHKB Alt Controller with Mini-B/Type-C connector
Post by: websitelover on Tue, 16 January 2024, 13:38:17

Hello,

For anyone wondering about the current EMS shipping time:

I ordered on 1/12/2023 (MM/DD/YYYY) and got my controller on 1/16/2023, I live in NY, USA.

Shipping time is great, the controller is awesome, and my Pro 2 is now wireless and USB-C without any modifications to the port holes. Thank you, Hasu!
Title: Re: [TMK] HHKB Alt Controller with Mini-B/Type-C connector
Post by: Djankie on Sat, 17 February 2024, 12:33:11
Any battery available for the pro 2? Everything seems to be sold out...
Title: Re: [TMK] HHKB Alt Controller with Mini-B/Type-C connector
Post by: hasu on Mon, 19 February 2024, 03:20:23
It is difficult to find proper Lipo battery recently.

These seem to fit in the cavity but it may be too thick a bit, perhaps.

https://www.ebay.co.uk/itm/124445009690
https://ja.aliexpress.com/item/4001270844363.html?gatewayAdapt=glo2jpn