ShuttleXpress pins not fond after updating to 2.9.0-pre0-2180-ga14b08a70

More
6 years 4 months ago #171099 by JetForMe
Prior to this I had 2.9.0 7xx-something. The ShuttleXpress was found and installed just fine. Now it finds it, but it doesn't seem to create the pins for it.:
Code:
Found file(REL): ./custom.hal shuttle: checking /dev/hidraw0 shuttle: found Contour Design ShuttleXpress on /dev/hidraw0 shuttle: checking /dev/hidraw1 shuttle: error opening /dev/hidraw1: Permission denied shuttle: make sure you have read permission on /dev/hidraw1, read the shuttle(1) manpage for more info shuttle: checking /dev/hidraw2 shuttle: error opening /dev/hidraw2: Permission denied shuttle: make sure you have read permission on /dev/hidraw2, read the shuttle(1) manpage for more info shuttle: checking /dev/hidraw3 shuttle: error opening /dev/hidraw3: Permission denied shuttle: make sure you have read permission on /dev/hidraw3, read the shuttle(1) manpage for more info ./custom.hal:19: Pin 'shuttlexpress.button-0' does not exist

My HAL:
Code:
# # Contour ShuttleXpress # loadusr -W shuttle LINE 19: net select-axis-x halui.joint.0.select <= shuttlexpress.0.button-0 net select-axis-y halui.joint.1.select <= shuttlexpress.0.button-1 net select-axis-z halui.joint.3.select <= shuttlexpress.0.button-2 net sxp.continuous <= shuttlexpress.0.spring-wheel-s32

Is there a way to get LinuxCNC to log the pins as it creates them?

Please Log in to join the conversation.

More
6 years 4 months ago #171103 by rodw
My guess is you need to change permissions as mentioned in the error message. Because you cannot open files and/or devices, the relevant pins cannot exist. It should be a simple fix.

Please Log in to join the conversation.

More
6 years 4 months ago #171123 by tommylight
Search for arduino permission denied, the the user has to be added to dialout group to be able to access it.

Please Log in to join the conversation.

More
6 years 4 months ago #171124 by dgarrett
Code:
./custom.hal:19: Pin 'shuttlexpress.button-0' does not exist

linuxcnc.org/docs/2.8/html/getting-start...med_to_tt_shuttle_tt


github.com/LinuxCNC/linuxcnc/commit/ba077f564

edit: rereading, you have correct loadusr line so the messages about
permission are most relevant, maybe this helps:

linuxcnc.org/docs/master/html/drivers/shuttle.html

Please Log in to join the conversation.

More
6 years 4 months ago #171130 by bbsr_5a
you also need to be member of the Dialout group to get this pins viewed in Hal
Code:
sudo usermod -a -G dialout $USER

Please Log in to join the conversation.

More
6 years 4 months ago #171188 by JetForMe
I do have it configured as shown in the man page. If you look you can see it found the ShuttleXpress on /dev/hidraw0. That one is world-readable. The other three devices are the keyboard and mouse and one other thing I can't remember. Those are owned by the system and only root-readable. Not sure why it would need to find those.

Unless I misinterpreted what I saw, in which case all I can say is I *do* have the udev stuff configured as specified in the man page, so I'm not sure why it's not changing the rest of it to readable.

Note that this worked before I updated to the latest build, and I haven't changed any configuration. I also updated from Stretch 9.11 to 9.12.

Please Log in to join the conversation.

More
6 years 4 months ago #171189 by JetForMe
Sorry, missed the other replies. Let me try that again. Not sure why it broke, though.

Please Log in to join the conversation.

More
6 years 4 months ago #171590 by JetForMe
Yeah, so it has proper permissions. The problem seems to be that the name changed to "shuttle", not "shuttlexpress" or "shuttlepro". I thought I tried "shuttle" earlier (it was the first thing I did), but I must've typed it wrong.

Please Log in to join the conversation.

Time to create page: 0.101 seconds
Powered by Kunena Forum