New component for keyboards and panels.

More
09 Aug 2023 21:17 - 09 Aug 2023 21:18 #277476 by PCW
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: 09 Aug 2023 21:18 by PCW.

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

More
09 Aug 2023 23:20 #277484 by COFHAL
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
09 Aug 2023 23:40 #277487 by PCW
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
10 Aug 2023 01:02 #277491 by COFHAL
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.

More
10 Aug 2023 02:15 #277494 by PCW
Yes, but to determine why you are not getting keystrokes, it would be
valuable to see if sendkeys works by itself...
The following user(s) said Thank You: COFHAL

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

More
10 Aug 2023 16:15 #277542 by SOLD
I tested the 48 keyboard matrix, it works fine.
I want to use numeric keys and some keypads of the screen gmoccapy.
From HAL, I tested, run a specific task. loadusr -W sendkeys config=16t2
setp sendkeys.0.trigger-01 true. and check in hal show it works
Could you please provide an example Hal's component procedure that works with a matrix keyboard?
Thank you.
 
Attachments:

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

More
10 Aug 2023 16:19 #277543 by COFHAL
Could you post your configuration?

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

More
10 Aug 2023 23:55 #277580 by COFHAL
"Yes, but to determine why you are not getting keystrokes, it would be
valuable to see if sendkeys works by itself.." Thanks for your support, but the truth is I don't know exactly how to do what you tell me, I think it refers to using commands like halrun, loading that component and so on.

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

More
11 Aug 2023 01:43 #277586 by PCW
If you take your test configuration and simply

setp sendkeys.0.trigger-01 true

a space keystroke should be created
(to do it again you would need to

setp sendkeys.0.trigger-01 false
setp sendkeys.0.trigger-01 true

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

More
12 Aug 2023 18:21 #277745 by COFHAL
Replied by COFHAL on topic Solved
The problem is that I followed the instructions given by andypugh in SENDKEYS to get permission to write to /dev/uinput and it wasn't working. I had to do it manually with sudo chmod 666 /dev/uinput. Since I'm using the rasperry PI4 every time I rebooted it, it again took away my permissions to write to uinput, I solved it by adding the command @sudo chmod 666/dev/uinput so that it runs automatically when the PI4 is rebooted. Now the problem is that according to andypugh's instructions, to see which event each key pressed corresponds to, the component must be loaded and and open a halmeter showing sendkeys.0.current-event. but this pin in halmeter always shows -1 even though if you write to the terminal the character corresponding to the key pressed.

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

Time to create page: 0.100 seconds
Powered by Kunena Forum