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
Post by: hasu on Fri, 01 May 2015, 00:44:13
This controller board replaces stock controller and makes your HHKB full programmable. This board is fully assembled and you can install it into your HHKB only with screw driver.

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) is not supported.

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.

Feel free to post your question or suggestion here! I basically prefer to discuss here to share info with community rather than email.

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



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 JP
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.



CONTROLLER VARIANTS:
USB Controller for Pro2(PD-KB400)(Type-S is also supported.)
USB Controller for JP(PD-KB420)(Type-S is also supported.)
USB Controller for Pro1(PD-KB300)
Bluetooth Controller for Pro2(PD-KB400)(Type-S is also supported.)
Bluetooth Controller for JP(PD-KB420)(Type-S is also supported.) - read
More

1. Case problem with Bluetooth Controller for JP
See this photo, black one is JP model and white is Pro2. As you can see JP 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 JP:
1) you need to drill bottom case to make holes or
2) you can use Pro2 bottom half with JP 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.



NOTE: Bluetooth controller has all functions of USB controller, no compromise as USB controller.
NOTE: This controller doesn't support "HHKB Professional BT"(PD-KB600/620).



STATUS & STOCK:
All variants are virtually always in stock.

    USB:  Pro2 / JP / Pro1
    BT:   Pro2 / JP

Lead time: Can be shipped usually in a few bussiness days, a week in the worst case (2017/08/16)



ORDER(RULE & CONDITION)
0. Read this post carefully and feel free to ask me if you have any question before placing an order.
1. Email me to let me know which variant of controller you want.
My email is: hasu@tmk-kbd.com

2. I'll send invoice mail via PayPal in a few days.
3. Make a payment within seven days. Please supply correct shipping address on PayPal when the payment.
4. You will receive an email with tracking number from Japan Post after shipping. Let me know if you don't get tracking number in three bussiness days after payment.
    You can trace it 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)


Price:
    42USD [for USB Controller]
    79USD [for Bluetooth Controller]
    For example, it costs 48USD(42+6) in total for an USB Controller and 164USD(79*2+6) for two Bluetooth Controller.
Payment:
    Paypal Invoice will be sent to your email. You'll be able to make a payment with credit card on Palpal even if you don't have Paypal account.
Shipping:
    World wide shipping at same rate 6USD. Registered Small Packet with tracking and insurance.

Shipping to CANADA: Sorry to say this but we've had very long delay on delivery in Canada these days and it takes even two months occasionally when you suffer from bad luck. In the case of trouble you have to wait two months(plus a week) before having me issue fully refund. If you are in Canada consider using EMS for shipping method, which is traceable and very fast(3 days or so) but it costs 20USD instead of 6 :( Let me know if you want to use EMS.


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 BT controller user, you can check both USB and BT 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)

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



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(BT)
    Bluetooth module which BT controller uses is RN42 of Mcirochip:   
    http://www.microchip.com/wwwproducts/Devices.aspx?product=RN42

- Bluetooth module RN42 limitations(BT)
  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. USB controller can send all usage.
  = 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(BT and USB)
    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(BT)
    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(BT)
    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(BT)
    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(BT)
    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:
- No plan for USB-C C is a bit too large to plug in USB-mini hole.
More
(http://i.imgur.com/LWB7prSh.jpg)

- 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
USB Type-C: https://geekhack.org/index.php?topic=12047.msg1876688#msg1876688
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/)



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

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


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 BT 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 also lights red to alarm when not powered and battery is low.

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.

Paring
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 BT 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 paring mode forcibly using magic command 'p' and redo pairing process.

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 RN42 config mode on console. See RN42 manual.
- Scroll Lock initializes module with TMK default configuration.
- p put keyboard into paring mode focibly.  Note that this removes all pairing infos.
- u switches between USB and Bluetooth mode.


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 ...


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 BT 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
BT 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

- 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
Title: Re: [TMK] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
Post by: lumogas on Sun, 07 June 2015, 12:41:11
Great news! ...I've sent a PM.
Title: Re: [TMK] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
Post by: yomammary on Mon, 13 July 2015, 07:21:15
Can someone link it? I couldn't find it.
Title: Re: [TMK] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
Post by: yomammary on Tue, 14 July 2015, 07:05:20
Thanks :)
Title: Re: [TMK] Alt Controller Board for HHKB
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: .
Post by: esoomenona on Thu, 16 July 2015, 13:36:13
.
Title: Re: [TMK] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
Post by: hasu on Thu, 30 July 2015, 21:58:51
PM'd.
Post here or PM me if you have any question.
Title: .
Post by: esoomenona on Wed, 12 August 2015, 14:36:33
.
Title: Re: [TMK] Alt Controller Board for HHKB
Post by: hasu on Wed, 12 August 2015, 17:30:57
You have to build from source to define macro.
Title: Re: [TMK] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
Post by: bocahgundul on Wed, 16 December 2015, 02:30:32
And i cannot use the magic commands pls help
Title: Re: [TMK] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
Post by: bocahgundul on Thu, 17 December 2015, 07:36:58
All fixed thank you hasu  :thumb:
Title: Re: [TMK] Alt Controller Board for HHKB
Post by: witty on Thu, 07 January 2016, 09:49:35
Wo! Cool!
Title: Re: [TMK] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
Post by: drpatrickbateman on Fri, 01 April 2016, 13:15:29
Sent you a PM about a bluetooth controller!
Title: Re: [TMK] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
Post by: alveeno on Fri, 15 April 2016, 17:46:19
Will this make the media controls work on windows?
Title: Re: [TMK] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
Post by: nothing4me on Tue, 14 June 2016, 16:28:58
Any plans for updating the editor for HHKB JP?  :)
Title: Re: [TMK] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
Post by: hasu on Thu, 07 July 2016, 18:17:02
Oh my :(
Title: Re: [TMK] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
Post by: hasu on Thu, 11 August 2016, 06:47:43
nice and direct solution! :D
Title: Re: [TMK] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
Post by: Laser on Mon, 14 November 2016, 07:09:07
Thanks! :)
Title: Re: [TMK] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
Post by: hasu on Fri, 03 February 2017, 06:13:01
Link to the discussion?

Sent from my Nexus 5X

Title: Re: [TMK] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
Post by: hasu on Sun, 05 February 2017, 19:30:51
No plan.

Sent from my Nexus 5X

Title: Re: [TMK] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
Post by: johnthedong on Wed, 08 March 2017, 00:24:45
I see, thanks for the fast reply!
Title: Re: [TMK] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
Post by: DRAZAH on Wed, 08 March 2017, 11:16:13
Dang, okay thank you.
Title: Re: [TMK] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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: Connectors for eBay battery
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
Post by: NadavCE on Sat, 08 April 2017, 15:43:38
It will work.

Awesome, thanks!
Title: Re: [TMK] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
Post by: hasu on Sun, 30 April 2017, 00:38:11
around 20 to 24 hrs I guess
Title: Re: [TMK] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
Post by: lunr on Sun, 30 April 2017, 12:07:34
Thanks
Title: Re: [TMK] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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] Alt Controller Board for HHKB
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? Dont really wanna siwtch my kb just for the bluetooth and would be a fun project if its 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? Dont really wanna siwtch my kb just for the bluetooth and would be a fun project if its 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 portI know some say theres 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 its actually worse by introducing a little lateral force?

[attachimg=1]
Title: [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 portI know some say theres 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 its 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 youre 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 Ill hit it a few more times before I realize Im 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.