oe1wkl / Morserino-32

Morserino-32 multi-functional Morse code machine, based on ESP32
GNU General Public License v3.0
253 stars 99 forks source link

HID Keyboard Mode #47

Closed arkorobotics closed 1 month ago

arkorobotics commented 3 years ago

Hello!

I noticed the Morserino-32 in "CW Keyer" mode enumerates as a com port device and outputs the same decoded string (sent by the user) as shown on the display. Would it be possible to make it enumerate as an HID Keyboard instead? I would like to practice typing and sending text messages with CW. Just an idea. Thanks!

oe1wkl commented 3 years ago

Hi!

I haven’t found a way to do that with the Heltec module, the firmware it comes with does not support HID as far as I know.

73

Willi

Am 24.10.2021 um 00:30 schrieb Arko @.***>:

Hello!

I noticed the Morserino-32 in "CW Keyer" mode enumerates as a com port device and outputs the same decoded string (sent by the user) as shown on the display. Would it be possible to make it enumerate as an HID Keyboard instead? I would like to practice typing and sending text messages with CW. Just an idea. Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/oe1wkl/Morserino-32/issues/47, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACZR72BXDEHRHIQGXNJRLE3UIMZRZANCNFSM5GSXFJFA.

allthelazorz commented 3 years ago

Hi, just chiming in.

First, thank you Willi for this awesome product, and your hard work!

I also wanted to use the Morserino as a keyboard, so I wrote a small program to translate the characters from the serial port to Windows keypress events to any active window. I have made it this weekend, just mindlessly throwing together snippets from the net, so it is very ugly, probably buggy, but it seemed to work so far. I won't spend much time on it as far as it works, but if somebody wants do to the same, feel free to use it.

https://github.com/allthelazorz/serial2keypress/

I have compiled it in Visual Studio as a C++ Console App. If it doesn't work properly, I re-plug the Morserino, and restart the program, but didn't have to do that much so far. I intentionally don't let the spaces through, because I'm still slow at Morse, and I cannot keep proper pacing yet. You can change this at the bottom of the code if you want. I use the Morserino with my right hand, pressing spaces and (lots of) backspaces with the left on the keyboard. Shift can make some letters capital, but not all, I haven't figured that out yet. Caps lock works on all letters. You need to switch your keyboard layout to English for the symbols to work properly.

It is very far from a good and usable solution, but you can use it until something better comes along. I have happily beeped URLs into my browser, typed short notes, even did some runs with it on typeracer.com :)