[SOLVED] sendkeys help {manual error, corrrected}

More
5 years 7 months ago #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?

Please Log in to join the conversation.

More
5 years 7 months ago #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 to join the conversation.

More
5 years 7 months ago #203015 by robertspark
Replied by robertspark on topic sendkeys help

andypugh wrote: 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.
Code:
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:/$

andypugh wrote: 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}

Please Log in to join the conversation.

More
5 years 7 months ago #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?
Code:
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 to join the conversation.

More
5 years 7 months ago #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?
Code:
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 to join the conversation.

More
5 years 7 months ago #203018 by robertspark
Replied by robertspark on topic sendkeys help
wow, that was hard work...
Code:
rob@RobsCNC:~$ halrun halcmd: loadusr sendkeys config=s8t5 halcmd: sendkeys: inst 1 codes 8 triggers 5

Please Log in to join the conversation.

More
5 years 7 months ago #203020 by andypugh
Replied by andypugh on topic sendkeys help

robertspark wrote: 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 to join the conversation.

Time to create page: 0.053 seconds
Powered by Kunena Forum