New component for keyboards and panels.

More
3 years 2 months ago #277472 by PCW
Replied by PCW on topic New component for keyboards and panels.
Did you do all the uinput setup?

Do the pin-events work?

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

More
3 years 2 months ago #277474 by COFHAL
Replied by COFHAL on topic New component for keyboards and panels.
YES, this shows in the terminal:
linuxcnc@raspberrypi:~ $ ls -l /dev/uinput
crw
1 root root 10, 223 Aug 9 12:06 /dev/uinput
linuxcnc@raspberrypi:~$
This is my configuration using Matrix_kb with SENDKEYS:
#---KEYPAD----#
loadrt matrix_kb config=4x8
addf matrix_kb.0 servo-thread
net keypad <= hm2_7i92.0.7i73.0.0.keycode => matrix_kb.0.keycode
#---KEYPAD----#

#----sendkeys----#

loadusr -W sendkeys config=16t2
#net scancodes hm2_7i92.0.7i73.0.0.keycode => sendkeys.0.keycode

setp sendkeys.0.scan-event-00 34 # Key G
setp sendkeys.0.scan-event-01 2 # Key 1
setp sendkeys.0.scan-event-02 3 # Key 2
setp sendkeys.0.scan-event-03 4 # Key 3
setp sendkeys.0.scan-event-04 50 # Key M
setp sendkeys.0.scan-event-05 05 # Key 4
setp sendkeys.0.scan-event-06 06 # Key 5
setp sendkeys.0.scan-event-07 07 # Key 6
setp sendkeys.0.scan-event-08 31 # Key S
setp sendkeys.0.scan-event-09 8 # Key 7
setp sendkeys.0.scan-event-10 9 # Key 8
setp sendkeys.0.scan-event-11 10 # Key 9
setp sendkeys.0.scan-event-12 20 # Key T
setp sendkeys.0.scan-event-13 11 # Key 0
setp sendkeys.0.scan-event-14 52 # Key Dot
setp sendkeys.0.scan-event-15 14 # Backspace
setp sendkeys.0.pin-event-00 29 # Left Ctrl
setp sendkeys.0.pin-event-01 57 # Space
setp sendkeys.0.init 1
#----sendkeys----#

Logically it gives me an error because hm2_7i92.0.7i73.0.0.keycode is already connected to matrix_kb.0.keycode, and I don't know how to remove that error.

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

More
3 years 2 months ago - 3 years 2 months ago #277476 by PCW
Replied by PCW on topic New component for keyboards and panels.
To use the pin events you would not connect sendkeys keycode input
(as all inputs would be pins)

This way you can verify sendkeys operation standalone
(no 7I73 or matrix_kb required)

Ultimately I also suspect it would be more reliable to capture keycodes
with matrix_kb (since its real time) and use individual hal pins from
matrix_kb to sendkeys pin events
Last edit: 3 years 2 months ago by PCW.

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

More
3 years 2 months ago #277484 by COFHAL
Replied by COFHAL on topic New component for keyboards and panels.
I don't really understand what he means.+

I have another question. From what I understand, the SENDKEYS component is created to send keys, that is, as if it were a virtual keyboard. And I understand that you can use the keypad inputs of the 7i73 as inputs to simulate these keys, I don't know if I'm wrong. Unfortunately I have searched in the for or some real example of the use of this component and I have not found it. In this same thread at the beginning andypugh shows a video of the use of this component but through another card. So from what I understand from that video this component would have to be used independently of the 7i73 using other different inputs.

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

More
3 years 2 months ago #277487 by PCW
Replied by PCW on topic New component for keyboards and panels.
What I mean is that you should be able to setup
sendkeys to send keystrokes by setting its input hal pins

This would allow you to verify sendkeys operation
without using any other components, In the example,
sendkeys.0.trigger-01 sends a space so if you

setp sendkeys.0.trigger-01 true

you should get a space pushed into the keyboard buffer

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

More
3 years 2 months ago #277491 by COFHAL
Replied by COFHAL on topic New component for keyboards and panels.
Thanks for your support, what I understand is that I can use the 7i73 as key input and convert these HAL pins to keystrokes.

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

Time to create page: 1.150 seconds
Powered by Kunena Forum