New component for keyboards and panels.

More
24 Oct 2023 17:07 #283729 by COFHAL
I have two keyboards working with the 7i73. One of 5x4 that I use to generate HAL pins, this works without problem, the other of 4x8 I am using to simulate keys with sendkey. This one also responds, but the problem is that it responds very slowly when you press a key or you have to do it several times until it responds. Also, most of the time it stays as if it were pressed and starts typing the same character and only stops when another key is pressed. What will be the problem?

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

More
29 Oct 2023 17:09 #284052 by COFHAL
andypugh please help.

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

More
29 Oct 2023 17:57 #284061 by andypugh
To be honest, I don't know what the problem is. It's a user-space HAL component and it sounds like it just isn't getting enough CPU time.

Are you running a base thread? How does the base thread execution time compare to the base thread period?

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

More
31 Oct 2023 21:28 - 31 Oct 2023 21:32 #284222 by COFHAL
Thank you for your response,
I'm running linuxcnc on a raspberry PI 4, with a 7i92 + 7i73.
but I really don't understand what you mean, could you explain?
Last edit: 31 Oct 2023 21:32 by COFHAL.

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

More
31 Oct 2023 22:36 #284225 by andypugh
If you are running with Mesa cards then you probably are not running a base thread.
It's unlikely that you are running out of time, but comparing the value of the hal parameter servo-thread.tmax with the servo thread period might give some idea how much CPU time is left for other services.
The following user(s) said Thank You: COFHAL

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

More
06 Nov 2023 22:23 #284734 by COFHAL
Attachments:

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

More
06 Nov 2023 22:26 #284735 by COFHAL
Attachments:

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

More
06 Nov 2023 22:29 #284736 by andypugh
960575 does seem worryingly close to 1000000.

I wonder if there is any scope for pruning your servo thread tasks?

halcmd show funct

Will give a snapshot of which servo-thread functions are using a lot of time.
The following user(s) said Thank You: COFHAL

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

More
07 Nov 2023 22:22 #284829 by COFHAL
This is what appears when I run halcmd show funct.  I attach the entire file by running just halcmd show.

File Attachment:

File Name: halcmd.txt
File Size:28 KB
Attachments:

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

More
16 May 2024 10:47 #300721 by abdulasis12
Thank you COFHAL, for share link to here topic
this is my old topic forum.linuxcnc.org/49-basic-configuratio...ey-how-to-map-number

I start with try from link : linuxcnc.org/docs/2.8/html/man/man1/sendkeys.1.html

all look good  except  ls -l /dev/uinput
In link show  : crw-rw----
But my Terminal show  : crw
      only  (no rw)

I try open linuxcnc from terminal 

cannot /dev/uinput. Suggest chmod 666 /dev/uinput

How to can access chmod 666 ?



FYI:
- I use 7i73 matrixkey 8x8  (good work)

- I already add loadusr -W sendkeys config=16t2
net scancodes hm2_7i73.0.0.keycode => sendkeys.0.keycodesetp 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 


 
Attachments:

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

Time to create page: 0.200 seconds
Powered by Kunena Forum