- Thank you received: 0
Keyboard simulation within a userspace component
- AnnoyingMutt
- New Member
-
Please Log in to join the conversation.
- AnnoyingMutt
- New Member
-
- Thank you received: 0
forum.linuxcnc.org/10-advanced-configura...m-via-userspace-comp
Please Log in to join the conversation.
Please Log in to join the conversation.
- AnnoyingMutt
- New Member
-
- Thank you received: 0
A While loop is used here
forum.linuxcnc.org/forum/18-computer/225...pendant-for-linuxcnc
Please Log in to join the conversation.
- AnnoyingMutt
- New Member
-
- Thank you received: 0
DaOne wrote: I am trying to create a custom keypad using an arduino to matrix the 130 key membrane keypad. I got the arduino side done sending each key as a code via serial. I plan to use the component that ArcEye created a while back as a base. I think I have all the pins figured as hal pins but I want the standard keyboard part to work as an actual keyboard for input. Is the a way in the .comp file to send a keystroke like if it was a real keyboard? Also if there is how would I handle "shift" commands? I can manage the shift key on the arduino side and just give every uppercase key a different key code.
This company has some interesting products
www.hagstromelectronics.com/usb-asc232-shp.html
Please Log in to join the conversation.
if someone interested can share the code, but it is a bit more than a little messy, i think...
Please Log in to join the conversation.
- AnnoyingMutt
- New Member
-
- Thank you received: 0
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
- Posts: 22010
- Thank you received: 3
+1AnnoyingMutt wrote: Ok that is cool.
Please Log in to join the conversation.
- AnnoyingMutt
- New Member
-
- Thank you received: 0
One wonders if this could be extended to read a serial port rather than stdin and emulate a keyboard & joystick device.
Linux kernel sample code for user space HID.
github.com/torvalds/linux/blob/master/sa.../uhid/uhid-example.c
Please Log in to join the conversation.
1) The matrix is scanned in realtime, and keys with a real-time permanent function are netted directly.
2) Keys which are "only" used for typing and data entry are passed through to a user-space component to be converted to keystrokes.
This should remove the problem with keyboard-jogging where sometimes the OS appears to not spot the key-up code, leading to longer-than-desired jogs.
Please Log in to join the conversation.
