Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use bluetooth on HHKB? #1096

Closed
adnanraharja opened this issue Feb 13, 2017 · 22 comments
Closed

How to use bluetooth on HHKB? #1096

adnanraharja opened this issue Feb 13, 2017 · 22 comments

Comments

@adnanraharja
Copy link

I just flash QMK to my HHKB, the problem is when I try to use the keyboard via bluetooth it doesn't register any keys (I connect it to my android phone) even though it's paired and connected. Before using QMK, I use TMK and the bluetooth works just fine. Any idea to solve this? I use Hasu BT Alt Controller Thanks

@uberjay
Copy link

uberjay commented May 9, 2017

I'm seeing the same thing here. Seems as though the rn42 (the BT radio) specific support only exists in tmk. (see https://github.com/tmk/tmk_keyboard/tree/master/keyboard/hhkb/rn42)

@blakedietz
Copy link
Contributor

Well uh, that sucks. I didn't realize that. What sort of work would need to be done in order to get qmk support for the rn42?

@blakedietz
Copy link
Contributor

Just for reference, I too can confirm that I'm having the same problem. I'm able to get the keyboard to pair, keys just aren't registered. This is for macOS 10.12.5 (16F73). I would be willing to put some work in to get this fixed, I would just need a few pointers to make it happen.

@uberjay
Copy link

uberjay commented Jun 1, 2017

Well, fwiw, I managed to cram the rn42 code into the qmk hhkb source tree and get everything linked up correctly. At least, it's working well enough that I'm posting this via BT using my freshly built firmware! :)

I think I'll have a little time over the next couple days to clean it up and submit a proper PR. Stay tuned.

@blakedietz
Copy link
Contributor

Let me know if theres anything I can do to help. I can demo it on my board for a few days if you'd like.

@blakedietz
Copy link
Contributor

@uberjay any updates on this one? Do you have a private repo with these changes?

@uberjay
Copy link

uberjay commented Jun 11, 2017

Ok, I cleaned up the changes a little, and pushed my bits to a branch. If you check out the hhkb-rn42-from-tmk branch from https://github.com/uberjay/qmk_firmware, you should be able to give it a try. I'm super unfamiliar with both qmk and tmk, so don't actually know what the right way to port these changes over is. See keyboards/hhkb/rules.mk for how to enable the rn42 support:

https://github.com/uberjay/qmk_firmware/blob/hhkb-rn42-from-tmk/keyboards/hhkb/rules.mk#L58

@fredizzimo
Copy link
Contributor

Hi @uberjay,

I quickly checked the integration, and I didn't find any major problems, so I suggest that you create a pull request.

The question is do we want to make this hhkb specific? I think not, and in that case the code should be moved to tmk_core/protocol. But that can be done later in another pull request. What do you think, @jackhumbert?

@uberjay
Copy link

uberjay commented Jun 11, 2017

Hey @fredizzimo -- thanks for taking a look at it! That's one of the questions I had, too, but I didn't know enough about the hardware (or the software, really :) to make that call. What I can say is the rn42 support in https://github.com/tmk/tmk_keyboard is in the keyboard/hhkb directory. Perhaps @tmk can shed some light on this?

Another thing that gave me pause was finding a handful of references to other rn42 support in the tmk_core bits, introduced in commit 71da013 just a couple months ago. But the changes aren't very extensive, so it's not clear to me if they should have worked. I tried building a stock qmk with BLUETOOTH_ENABLE=yes and BLUETOOTH=RN42, but it didn't do the trick for my BT HHKB module.

@uberjay
Copy link

uberjay commented Jun 11, 2017

Ohhh, interesting. After poking around and reading about the HC-05 module referenced in that commit, I see that this is actually for supporting a different module that's been re-flashed with firmware previously extracted from an rn-42 module... so given all that, I have no idea if the existing code changes in, e.g., 71da013#diff-81c48611e68de700597fb5c837914039 should work with the actual rn42 module in hasu's hardware, or... yeah. I'm totally in over my head here. grin

@blakedietz
Copy link
Contributor

I can confirm that @uberjay's aforementioned branch works with my wireless hasu controller. Nice job!

@jackhumbert
Copy link
Member

Nice! Yeah, I'd love for this to be a core feature that others could include in their projects, but just having it for the HHKB is a good start :)

@blakedietz
Copy link
Contributor

blakedietz commented Jun 11, 2017

Something to note for awareness, I'm not complaining here :D, but the size of the build is quite large including rn42. This is to no surprise. With my layout I'm getting a build size of about 96% of the alotted memory for the controller. I ended up having to remove tapdance and unicode from my keymaps in order to get this to work, which is totally fine (I was planning on removing td anyway).

On another note:

@uberjay can I buy you a beer? DM me on twitter @dietztweetz so I can send you some beer money.

@hugomd
Copy link

hugomd commented Sep 12, 2017

Sorry to bump this, but are there any plans for this to be merged in?

@uberjay
Copy link

uberjay commented Sep 26, 2017

I'm going to try to clean this up and get a PR together over the weekend!

@Enochen
Copy link
Contributor

Enochen commented Dec 22, 2017

Any updates on this feature?

edit: Applying the changes in uberjay's branch still works, should I just make a PR with his raw changes? As the commit said, it seems to work fine but it might not be integrated into qmk correctly

@drashna
Copy link
Member

drashna commented Mar 25, 2018

Still looks like this works. If somebody can still confirm that this works on an updated version, and make a PR, that would be awesome

@Enochen
Copy link
Contributor

Enochen commented Apr 6, 2018

Totally forgot about this haha

It still works, just made a PR
#2693

@BenKesselring
Copy link
Contributor

Question: For the hhkb, is the RN42 the controller, or is it just a BT module connected to the controller? If the latter, would this make it possible to set up BT on any keyboard using an RN42 module?

@shelaf
Copy link
Contributor

shelaf commented May 10, 2018

Hi @BenKesselring
The latter. cf. https://github.com/tmk/HHKB_controller/blob/master/schematic/HHKB_controller_revG.pdf
You can use RN42 module to set up BT, but it needs some knowledge about hardware hacking.

@BenKesselring
Copy link
Contributor

BenKesselring commented May 12, 2018 via email

@drashna
Copy link
Member

drashna commented Oct 21, 2018

Looks like this can be closed.

If not, please reopen.

@drashna drashna closed this as completed Oct 21, 2018
mattpcaswell pushed a commit to mattpcaswell/qmk_firmware that referenced this issue Jun 7, 2023
* Fix lfkeyboards/smk65/revb default keymap

* Update lfkeyboards_smk65_revf_default.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants