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.

Time to create page: 0.291 seconds
Powered by Kunena Forum