- Posts: 461
- Thank you received: 0
New component for keyboards and panels.
3 years 1 week ago #283729
by COFHAL
Replied by COFHAL on topic New component for keyboards and panels.
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 to join the conversation.
3 years 2 days ago #284052
by COFHAL
Replied by COFHAL on topic New component for keyboards and panels.
andypugh please help.
Please Log in to join the conversation.
3 years 2 days ago #284061
by andypugh
Replied by andypugh on topic New component for keyboards and panels.
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?
Are you running a base thread? How does the base thread execution time compare to the base thread period?
Please Log in to join the conversation.
2 years 11 months ago #284222
by COFHAL
Replied by COFHAL on topic New component for keyboards and panels.
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?
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?
Please Log in to join the conversation.
2 years 11 months ago #284225
by andypugh
Replied by andypugh on topic New component for keyboards and panels.
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.
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.
Please Log in to join the conversation.
2 years 11 months ago #284734
by COFHAL
Replied by COFHAL on topic New component for keyboards and panels.
Attachment not found
Please Log in to join the conversation.
2 years 11 months ago #284735
by COFHAL
Replied by COFHAL on topic New component for keyboards and panels.
Attachment not found
Please Log in to join the conversation.
2 years 11 months ago #284736
by andypugh
Replied by andypugh on topic New component for keyboards and panels.
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.
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.
Please Log in to join the conversation.
2 years 11 months ago #284829
by COFHAL
Replied by COFHAL on topic New component for keyboards and panels.
This is what appears when I run halcmd show funct. I attach the entire file by running just halcmd show.
Attachment not found
Attachment not found
Please Log in to join the conversation.
- abdulasis12
- Offline
- Premium Member
-
Less
More
- Posts: 134
- Thank you received: 0
2 years 5 months ago #300721
by abdulasis12
Replied by abdulasis12 on topic New component for keyboards and panels.
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
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
Attachment not found
Attachment not found
Please Log in to join the conversation.
Time to create page: 0.165 seconds
