Question about keyboard for cnc build

More
8 years 11 months ago #101297 by Toolman321
Thankyou, im not sure what you mean by user space text entry?

Please Log in or Create an account to join the conversation.

More
8 years 11 months ago #101298 by andypugh
Things like typing into a text editor, or the Axis MDI window.
The following user(s) said Thank You: Toolman321

Please Log in or Create an account to join the conversation.

  • HumanDebris
  • New Member
  • New Member
More
8 years 11 months ago #101299 by HumanDebris
Replied by HumanDebris on topic Question about keyboard for cnc build
Author says the project is for Barcode scanner, but maybe it could be adapted if you can find the protocol of the keyboard you have.

github.com/theatrus/softwedge

Also found this, maybe of use

www.denfordata.com/bb/viewtopic.php?t=3103

Please Log in or Create an account to join the conversation.

More
6 years 8 months ago #156663 by bymccoy
I've got one of these, with the intention of using it as a nice console...

It's serial - it has a DB25 port like all Denford stuff had (don't think they ever knew about DB9s), but just needs a basic adapter.

Checking the circuitry out, can confirm it's a very simple two-wire RX/TX, plus ground, and then uses the RX/DTS/RTS for power from the host.

Using screen, or something similar (I'm using CoolTerm), you can get the HEX and ASCII output - and it's simply ASCII corresponding to each button. Nicely there's a button down character and a button up character (handy for modifiers, and repeating an entry until the up character is received). The character is sent only once on either down or up, no repeats etc like a keyboard.

Mine is the fixed variety, so no "overlays" which the later models had (they were a grid of buttons, and plastic overlay cards with the graphics on them). Those are the same, but there's a predefined grid corresponding to the ASCII generated, and each "overlay" had a mapping file accordingly. But, hooking this to a serial converter/port, and watching the ASCII is the easiest way of figuring out what each button generates.

So, my thought is a simple Python script etc to take the ASCII, map it etc and then send it to a pipe, for some function in LXCNC to listen to. The only thing I'm trying to figure out, is how to enable the 2x LED (one for "coolant on" and the other for "external keyboard").

They'll be ASCII I'm sure, but need to figure out what they are.

All in all, quite a nice input device given how cheap they are, and simple they are to get working. I'd class them as "driverless", as they produce ASCII, and you just need to map the ASCII somehow...

Please Log in or Create an account to join the conversation.

More
6 years 8 months ago #156665 by bymccoy
Well, the Python API would appear to have most of the functions that are on the keyboard - so a listening loop etc, would seem to be the solution... Some logic for the key being pressed down, so you can use modifiers (if even needed).

So no point of a pipe, just a Python script listening and sending API calls...

Please Log in or Create an account to join the conversation.

More
6 years 8 months ago #156666 by bymccoy
Okay, we'll found the LED commands. Just mashed the keyboard and copied/pasted blocks of ASCII characters until they went on, and then did the same until they went off, and kept narrowing it down...

Please Log in or Create an account to join the conversation.

Time to create page: 0.451 seconds
Powered by Kunena Forum