[SOLVED] sendkeys help {manual error, corrrected}

More
20 Mar 2021 18:53 - 20 Mar 2021 18:53 #203008 by andypugh
Replied by andypugh on topic sendkeys help
thermistor and sendkeys are both userspace components.

That means that they are just ordinary executables.

Have you tried looking for them _without_ the .so or .ko suffix?
Last edit: 20 Mar 2021 18:53 by andypugh.

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

More
20 Mar 2021 18:55 #203010 by andypugh
Replied by andypugh on topic sendkeys help
Does "loadusr sendkeys" in a HAL file (or halcmd session) work?

I have assumed that you are looking for the files because you can't load the modules. But I have just realised that you never actually said that.

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

More
20 Mar 2021 19:01 - 20 Mar 2021 19:02 #203015 by robertspark
Replied by robertspark on topic sendkeys help

I have assumed that you are looking for the files because you can't load the modules. But I have just realised that you never actually said that.


yes that is correct.
rob@RobsCNC:/$ sudo find -name 'sendkeys.*'
./home/rob/Downloads/sendkeys.c
./usr/share/man/man1/sendkeys.1.gz
rob@RobsCNC:/$ sudo find -name 'thermistor.*'
./usr/src/linux-headers-4.19.0-14-rt-amd64/include/config/sensors/ntc/thermistor.h
./usr/share/man/man1/thermistor.1.gz
rob@RobsCNC:/$ 

Does "loadusr sendkeys" in a HAL file (or halcmd session) work?


No, it fails to load {I'll try again now and post the error report}
Last edit: 20 Mar 2021 19:02 by robertspark.

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

More
20 Mar 2021 19:06 #203016 by andypugh
Replied by andypugh on topic sendkeys help
_What_ is correct?

Is it correct that "loadusr sendkeys" does not work?

If you do the following, what is the output?
halrun
loadusr sendkeys config=s8t5

...oops! I have just noticed that the sendkeys manpage is wrong!
Sendkeys is a userspace comp, the command to load it is "loadusr". The manual says "loadrt"

Your search for "sendkeys.*" won't find "sendkeys". You could try looking for "sendkeys*"

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

More
20 Mar 2021 19:09 #203017 by robertspark
Replied by robertspark on topic sendkeys help
hang on......

is sendkeys a realtime component or a userspace component???

manual says
loadrt sendkeys config=s8t5, 16, t12
linuxcnc.org/docs/devel/html/man/man1/sendkeys.1.html

and also says:

The config parameter to the loadrt HAL command defines


Am I loading it wrong?
loadrt sendkeys config=t2

setp sendkeys.0.pin-event-00 29 # Left Ctrl
setp sendkeys.0.pin-event-01 57 # Space
setp sendkeys.0.init 1

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

More
20 Mar 2021 19:11 #203018 by robertspark
Replied by robertspark on topic sendkeys help
wow, that was hard work...
rob@RobsCNC:~$ halrun
halcmd: loadusr sendkeys config=s8t5
halcmd: sendkeys: inst 1 codes 8 triggers 5

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

More
20 Mar 2021 19:25 #203020 by andypugh
Replied by andypugh on topic sendkeys help

hmanual says
loadrt sendkeys config=s8t5, 16, t12


It did. Sorry, it is fixed now.

The example section in the manpage was right...

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

Time to create page: 0.245 seconds
Powered by Kunena Forum