Adding a ShuttleXpress

More
24 Jul 2019 06:54 #140399 by JetForMe
It seems I should be able to add a ShuttleXpress with a simple line in custom.hal:
loadusr -W shuttlexpress4

But it dies with:
./custom.hal:9: execv(shuttlexpress): No such file or directory
./custom.hal:9: waitpid failed shuttlexpress shuttlexpress
./custom.hal:9: shuttlexpress exited without becoming ready

Am I missing something?

Full output:
$ linuxcnc ~/router/repo/linuxcnc/config/router3/router3.ini
LINUXCNC - 2.9.0-pre0-343-g57a0882c1
Machine configuration directory is '/home/rmann/router/repo/linuxcnc/config/router3'
Machine configuration file is 'router3.ini'
Starting LinuxCNC...
Found file(REL): ./router3.hal
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2
hm2_eth: 10.10.10.10: Hardware address: 00:60:1b:10:42:48
hm2_eth: discovered 7I76E-16
hm2/hm2_7i76e.0: Smart Serial Firmware Version 43
Board hm2_7i76e.0.7i76.0.0 Hardware Mode 0 = standard
Board hm2_7i76e.0.7i76.0.0 Software Mode 0 = io_spin
Board hm2_7i76e.0.7i76.0.0 Software Mode 1 = io_ana_spin
Board hm2_7i76e.0.7i76.0.0 Software Mode 2 = io_enc_ana_spin_fv
hm2/hm2_7i76e.0: 51 I/O Pins used:
hm2/hm2_7i76e.0:     IO Pin 000 (P1-01): StepGen #0, pin Direction (Output)
hm2/hm2_7i76e.0:     IO Pin 001 (P1-14): StepGen #0, pin Step (Output)
hm2/hm2_7i76e.0:     IO Pin 002 (P1-02): StepGen #1, pin Direction (Output)
hm2/hm2_7i76e.0:     IO Pin 003 (P1-15): StepGen #1, pin Step (Output)
hm2/hm2_7i76e.0:     IO Pin 004 (P1-03): StepGen #2, pin Direction (Output)
hm2/hm2_7i76e.0:     IO Pin 005 (P1-16): StepGen #2, pin Step (Output)
hm2/hm2_7i76e.0:     IO Pin 006 (P1-04): StepGen #3, pin Direction (Output)
hm2/hm2_7i76e.0:     IO Pin 007 (P1-17): StepGen #3, pin Step (Output)
hm2/hm2_7i76e.0:     IO Pin 008 (P1-05): StepGen #4, pin Direction (Output)
hm2/hm2_7i76e.0:     IO Pin 009 (P1-06): StepGen #4, pin Step (Output)
hm2/hm2_7i76e.0:     IO Pin 010 (P1-07): Smart Serial Interface #0, pin TxData0 (Output)
hm2/hm2_7i76e.0:     IO Pin 011 (P1-08): Smart Serial Interface #0, pin RxData0 (Input)
hm2/hm2_7i76e.0:     IO Pin 012 (P1-09): IOPort
hm2/hm2_7i76e.0:     IO Pin 013 (P1-10): IOPort
hm2/hm2_7i76e.0:     IO Pin 014 (P1-11): IOPort
hm2/hm2_7i76e.0:     IO Pin 015 (P1-12): IOPort
hm2/hm2_7i76e.0:     IO Pin 016 (P1-13): IOPort
hm2/hm2_7i76e.0:     IO Pin 017 (P2-01): IOPort
hm2/hm2_7i76e.0:     IO Pin 018 (P2-14): IOPort
hm2/hm2_7i76e.0:     IO Pin 019 (P2-02): IOPort
hm2/hm2_7i76e.0:     IO Pin 020 (P2-15): IOPort
hm2/hm2_7i76e.0:     IO Pin 021 (P2-03): IOPort
hm2/hm2_7i76e.0:     IO Pin 022 (P2-16): IOPort
hm2/hm2_7i76e.0:     IO Pin 023 (P2-04): IOPort
hm2/hm2_7i76e.0:     IO Pin 024 (P2-17): IOPort
hm2/hm2_7i76e.0:     IO Pin 025 (P2-05): IOPort
hm2/hm2_7i76e.0:     IO Pin 026 (P2-06): IOPort
hm2/hm2_7i76e.0:     IO Pin 027 (P2-07): IOPort
hm2/hm2_7i76e.0:     IO Pin 028 (P2-08): IOPort
hm2/hm2_7i76e.0:     IO Pin 029 (P2-09): IOPort
hm2/hm2_7i76e.0:     IO Pin 030 (P2-10): IOPort
hm2/hm2_7i76e.0:     IO Pin 031 (P2-11): IOPort
hm2/hm2_7i76e.0:     IO Pin 032 (P2-12): IOPort
hm2/hm2_7i76e.0:     IO Pin 033 (P2-13): IOPort
hm2/hm2_7i76e.0:     IO Pin 034 (P3-01): IOPort
hm2/hm2_7i76e.0:     IO Pin 035 (P3-14): IOPort
hm2/hm2_7i76e.0:     IO Pin 036 (P3-02): IOPort
hm2/hm2_7i76e.0:     IO Pin 037 (P3-15): IOPort
hm2/hm2_7i76e.0:     IO Pin 038 (P3-03): IOPort
hm2/hm2_7i76e.0:     IO Pin 039 (P3-16): IOPort
hm2/hm2_7i76e.0:     IO Pin 040 (P3-04): IOPort
hm2/hm2_7i76e.0:     IO Pin 041 (P3-17): IOPort
hm2/hm2_7i76e.0:     IO Pin 042 (P3-05): IOPort
hm2/hm2_7i76e.0:     IO Pin 043 (P3-06): IOPort
hm2/hm2_7i76e.0:     IO Pin 044 (P3-07): IOPort
hm2/hm2_7i76e.0:     IO Pin 045 (P3-08): IOPort
hm2/hm2_7i76e.0:     IO Pin 046 (P3-09): IOPort
hm2/hm2_7i76e.0:     IO Pin 047 (P3-10): IOPort
hm2/hm2_7i76e.0:     IO Pin 048 (P3-11): IOPort
hm2/hm2_7i76e.0:     IO Pin 049 (P3-12): IOPort
hm2/hm2_7i76e.0:     IO Pin 050 (P3-13): IOPort
hm2/hm2_7i76e.0: registered
Found file(REL): ./io.hal
Found file(REL): ./custom.hal
./custom.hal:9: execv(shuttlexpress): No such file or directory
./custom.hal:9: waitpid failed shuttlexpress shuttlexpress
./custom.hal:9: shuttlexpress exited without becoming ready
Shutting down and cleaning up LinuxCNC...
hm2_eth: HostMot2 ethernet driver unloaded
hm2: unloading
Note: Using POSIX realtime
LinuxCNC terminated with an error.  You can find more information in the log:
    /home/rmann/linuxcnc_debug.txt
and
    /home/rmann/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal

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

More
24 Jul 2019 17:45 #140446 by pl7i92
Replied by pl7i92 on topic Adding a ShuttleXpress
did you do a halcompile with the DEV version of your linuxcnc

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

More
25 Jul 2019 00:47 #140487 by JetForMe
Replied by JetForMe on topic Adding a ShuttleXpress
I did not. I have no idea how to get the dev version, and although I've seen reference to halcompile before, I don't know how to do it. Up until now, every component I've needed has been available already.

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

More
25 Jul 2019 04:51 #140500 by PCW
Replied by PCW on topic Adding a ShuttleXpress
Works for me ( as well as it can work without the hardware )
peter@dc7800:~/linuxcnc-dev/lib/python$ halcmd -f
halcmd: loadusr shuttlexpress
halcmd: shuttlexpress: checking /dev/hidraw0
shuttlexpress: error opening /dev/hidraw0: Permission denied
shuttlexpress: make sure you have read permission on /dev/hidraw0, read the shuttlexpress(1) manpage for more info
shuttlexpress: no devices found

What LinuxCNC version are you running?

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

More
25 Jul 2019 09:32 #140517 by JetForMe
Replied by JetForMe on topic Adding a ShuttleXpress

What LinuxCNC version are you running?


LINUXCNC - 2.9.0-pre0-343-g57a0882c1

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

More
25 Jul 2019 15:47 #140534 by PCW
Replied by PCW on topic Adding a ShuttleXpress
I am also using 2.9
Did you try using halcmd ?

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

More
25 Jul 2019 19:39 #140559 by JetForMe
Replied by JetForMe on topic Adding a ShuttleXpress
I did. I get the exact same error as when I launch linuxcnc from the command line: "execv(shuttlexpress): No such file or directory"

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

More
25 Jul 2019 20:17 #140563 by PCW
Replied by PCW on topic Adding a ShuttleXpress
Is this a RIP installtion?
What does "locate shuttlexpress" show?

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

More
25 Jul 2019 23:01 #140583 by JetForMe
Replied by JetForMe on topic Adding a ShuttleXpress

Is this a RIP installtion?
What does "locate shuttlexpress" show?


I don't know what a RIP installation is. I think I started here , and have since used apt to update.

I'll check on `locate shuttlexpress` when I get back to the shop. Unfortunately I left the machine turned off so I can't ssh into it.

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

More
26 Jul 2019 00:02 #140595 by PCW
Replied by PCW on topic Adding a ShuttleXpress
RIP is short for Run In Place

You can do a normal install of LinuxCNC (a system install like any other Linux
program), or a RIP install. RIP installs run linuxCNC from a local (usually user
owned directory) RIP installs are convenient for experimenting with different
LinuxCNC versions since you can change versions trivially.

I asked because the executable will be in different places depending on the install method

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

Time to create page: 0.168 seconds
Powered by Kunena Forum