New component for keyboards and panels.

More
3 years 2 months ago #277810 by SOLD
want matchbox-keyboard or not.

Please Log in to join the conversation.

More
3 years 2 months ago #277816 by COFHAL

Please Log in to join the conversation.

More
3 years 2 months ago #277818 by SOLD
what did I do wrong?
Code:
loadrt matrix_kb config=4x8 addf matrix_kb.0              servo-thread  loadusr -W sendkeys config=16t2 setp sendkeys.0.pin-event-01 57 # Space setp sendkeys.0.init 1 setp sendkeys.0.trigger-01 true

Please Log in to join the conversation.

More
3 years 2 months ago #277819 by SOLD
ls -l /dev/uinput
crw
1 root root 10, 223 Aug 13 06:37 /dev/uinput

or shouid be 
crw-rw----

Please Log in to join the conversation.

More
3 years 2 months ago #277821 by COFHAL
From what I see in the picture of the terminal, you do not have access to write to the file an input, to correct this type in the terminal sudo chmod +666 /dev/un input and again check with ls -l /dev/input what permissions to write crw-crw crw are already enabled. Finally run LCN from the terminal to see that there are no errors. For the moment, I have only tested the function with events, that is, when pressing a key, write the letter corresponding to the event in the terminal, as in the example of SENKEYS.

Please Log in to join the conversation.

More
3 years 2 months ago #277829 by SOLD
when 
$ sudo chmod 0660 /dev/uinput
result
crw-rw---- 1 root root 10, 223 Aug 13 10:13 /dev/uinput
test
setp sendkeys.0.trigger-01 true
unresponsive Matchbox
when restart PC and check  
$ ls -l /dev/uinput
resultcrw
1 root root 10, 223 Aug 13 10:13 /dev/uinput


Hal,will this work?
Code:
loadrt matrix_kb config=4x8 addf matrix_kb.0              servo-thread  loadusr -W sendkeys config=16t2 net keypad hm2_7i96s.0.7i73.0.0.keycode => matrix_kb.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 net sendkeys.0.scan-event-00  <= matrix_kb.0.key.r0c0 net sendkeys.0.scan-event-01  <= matrix_kb.0.key.r0c1 net sendkeys.0.scan-event-02  <= matrix_kb.0.key.r0c2 net sendkeys.0.scan-event-03  <= matrix_kb.0.key.r0c3 net sendkeys.0.scan-event-04  <= matrix_kb.0.key.r1c0 net sendkeys.0.scan-event-05  <= matrix_kb.0.key.r1c1 net sendkeys.0.scan-event-06  <= matrix_kb.0.key.r1c2 net sendkeys.0.scan-event-07  <= matrix_kb.0.key.r1c3 net sendkeys.0.scan-event-08  <= matrix_kb.0.key.r2c0 net sendkeys.0.scan-event-09  <= matrix_kb.0.key.r2c1 net sendkeys.0.scan-event-10  <= matrix_kb.0.key.r2c2 net sendkeys.0.scan-event-11  <= matrix_kb.0.key.r2c3 net sendkeys.0.scan-event-12  <= matrix_kb.0.key.r3c0 net sendkeys.0.scan-event-13  <= matrix_kb.0.key.r3c1 net sendkeys.0.scan-event-14  <= matrix_kb.0.key.r3c2 net sendkeys.0.scan-event-15  <= matrix_kb.0.key.r3c3  

Please Log in to join the conversation.

More
3 years 2 months ago #277832 by COFHAL
From where you are running LNC, PI or PC? . The same thing is happening to me, when I restarted, it again removed the permissions to write to input. Now I don't have PC in me apto. Or see him tomorrow I can see him and I'll explain better.

Please Log in to join the conversation.

More
3 years 2 months ago #277957 by SOLD
i use PC Linuxcnc2.8.4 Live cd
I wonder if the uinput module started working or not.

Please Log in to join the conversation.

More
3 years 2 months ago #277977 by COFHAL
As far as I can tell you are running from a LIVE CD, so any changes are only effective while it is running.
I don't know if executing from a LIVE CD can modify permissions.

No, please type sudo chmod 0660 /dev/uinput, but don't reboot, because rebooting will remove permissions to write to the uinput file.
To verify that the permissions have changed, run the command ls -l /dev/uinput
If crw-rw---- 1 root root 10, 223 Aug 13 10:13 /dev/uinput appears, you already have permissions to write to the uiinput file.
Run LCN from the teminial:
linuxcnc /home/linuxcnc/linuxcnc/configs/xxx.ini
and this should appear
SET_EVBIT 34
SET_EVBIT 2
SET_EVBIT 3
SET_EVBIT 4
SET_EVBIT 50
SET_EVBIT 5
SET_EVBIT 6
SET_EVBIT 7
SET_EVBIT 31
SET_EVBIT 8
SET_EVBIT 9
SET_EVBIT 10
SET_EVBIT 20
SET_EVBIT 11
SET_EVBIT 52
SET_EVBIT 14

Please Log in to join the conversation.

More
3 years 2 months ago #278004 by COFHAL
When using the 7i73 with MATRIX_KB with a 4x8 keypad I have solved the sendkeys.N.scan-event-MM issue, when I press any of the keys of that keypad it writes me the assigned character. Now what I don't quite understand is what is related to sendkeys.N.pin-event-MM. I have not been able to understand very well what is the use. I thought that its use was to create HAL pin and that they could be used as inputs to execute some action such as enable the machine etc. but when testing there is no answer. In the example of the SENDKEYS component, the only use is in:
setp sendkeys.0.pin-event-00 29 # Left Ctrl
setp sendkeys.0.pin-event-01 57 # Space
#Send Ctl + Space from one trigger
net clear-errors parport.0.pin.00.in sendkeys.0.trigger-00 sendkeys.0.trigger-01
Unfortunately, nowhere on the forum is there a use for the sendkeys.0.pin-event-MM parameter.

Please Log in to join the conversation.

Time to create page: 0.119 seconds
Powered by Kunena Forum