Re: [Emc-users] Shuttle Express

2021-06-24 Thread marcus . bowman

On 2021-06-24 17:29, John Dammeyer wrote:


Anyway, for now the Shuttle is back on the MACH3 based CNC router
where it's currently in use carving up MDF so I can't borrow it back
for a few days.




I have the Shuttle (not the Express, but the other one with the extra 
buttons etc).

It works a treat in Mach3 and is really useful.
It doesn't work in LinuxCNC, which is a right pain. Some years ago I 
tried that driver on the basis that it might at least give some 
functionality, but no; it doesn't want to play ball.
It was suggested that this model may not behave in quite the same way as 
the Express, but I can't say one way or the other, and never had the 
time to try to find out. At the time, I could find no information from 
the manufacturers, and they were not interested in supplying a driver.
I feel your frustration... especially given the price of these things, 
and the fact that it works so well in MACH3, which I don't run much 
these days.


Marcus


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Shuttle Express

2021-06-24 Thread John Dammeyer
> On Wed, 23 Jun 2021 at 03:08, John Dammeyer  wrote:
> 
> > shuttle: error opening /dev/hidraw0: Permission denied
> > shuttle: make sure you have read permission on /dev/hidraw0, read the 
> > shuttle(1) manpage for more info
> 
> I wonder if this is a setuid root thing?
> 
> https://github.com/LinuxCNC/linuxcnc/blob/325caafff458f6675d3954885a951078b5c433e0/src/Makefile#L554
> 
> You could try doing that to the shuttle driver.
> 
> --
> atp

For some reason the issue went away after a reboot and the /dev/hidraw0 changed 
to -r for user and group.  Perhaps it's a timing thing.  Like the MESA 7i92 
needs a minute or two after LinuxCNC has started before it will work.

The really unusable thing about the Shuttle Express is that the center wheel 
doesn't move at the requested increment distance and once a G-Code program has 
run the Shuttle is completely unresponsive until LinuxCNC is restarted.

It behaves as if the system is still in MDI mode, just like my PC based 
LinuxCNC on the mill,  which won't allow the XHC_HB04 pendant to function when 
the MDI screen is active.  But unlike the pendant, tapping an F3 to return to 
the first screen does not allow the Shuttle to move axis.The original 
author of the hal file did not mention either of those issues so I'm going to 
guess it's something to do with the Pi4 implementation or the main INI/HAL that 
he has different from the one I'm using.

Likely both issues are in the HAL file.

Anyway, for now the Shuttle is back on the MACH3 based CNC router where it's 
currently in use carving up MDF so I can't borrow it back for a few days.

Thanks
John



shuttle1_2020-07-10.hal
Description: Binary data
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Shuttle Express

2021-06-24 Thread andy pugh
On Wed, 23 Jun 2021 at 03:08, John Dammeyer  wrote:

> shuttle: error opening /dev/hidraw0: Permission denied
> shuttle: make sure you have read permission on /dev/hidraw0, read the 
> shuttle(1) manpage for more info

I wonder if this is a setuid root thing?

https://github.com/LinuxCNC/linuxcnc/blob/325caafff458f6675d3954885a951078b5c433e0/src/Makefile#L554

You could try doing that to the shuttle driver.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Shuttle Express

2021-06-22 Thread John Dammeyer
Studying the hal file shows how the spring loaded wheel changes the jog speed.  
Although the documentation claims percentage of full jog speed that's actually 
not true since 100 creates 100 ipm and 500 creates 150 ipm which is the top 
speed of the Z axis.  (I have a stepper motor on the floor reacting to what I 
do).

The result of that is the scaled value is connected to halui.joint.jog-speed 
and the motor turns.

The inner wheel which is scaled by 1000 is supposed to send 1000 count for each 
click of the wheel to 
axis.z.jog-counts

And it does based on the HAL Meter output.

But nothing moves.
I'm wondering if I have an hold shuttle hal file although 10JUL2020 doesn't 
seem that old.  However I can't seem to find a newer one.  Am I not looking in 
the right place?

Thanks
John




> -Original Message-
> From: John Dammeyer [mailto:jo...@autoartisans.com]
> Sent: June-22-21 7:20 PM
> To: 'Enhanced Machine Controller (EMC)'
> Subject: Re: [Emc-users] Shuttle Express
> 
> Ah!  Semi success.  One more reboot of the Pi4.
> Then address the new error messages since this time it actually found the 
> Shuttle Express.
> The hal file I used had commented out
> loadrt or2 count=3
> 
> and worse also did addf for or2.1 or2.2 and or2.3
> So that was broken too.  I changed the count to 4 and now LinuxCNC runs and 
> the jog feature works with the spring loaded outer
> wheel with the first 3 buttons selecting XYZ and the last two doing nothing.
> 
> The inner wheel does not do individual steps as expected so I'm guessing 
> there is more wrong with this hal file.
> 
> John
> 
> 
> > -Original Message-
> > From: John Dammeyer [mailto:jo...@autoartisans.com]
> > Sent: June-22-21 7:05 PM
> > To: 'Enhanced Machine Controller (EMC)'
> > Subject: [Emc-users] Shuttle Express
> >
> > I believe I've followed all the instructions on configuring for the Shuttle 
> > Express on the Pi4 using LINUXCNC 2.8.1
> >
> > Entering ls -al /dev/hidr* shows that with the shuttle not plugged in I 
> > have hidraw1..hidraw3
> > Plug in the shuttle and hidraw0 shows up.
> >
> > I've put source shuttle1_2020-07-10.hal into the config folder and added 
> > into postgui_call_list.hal
> > source shuttle1_2020-07-10.hal
> >
> > I've also created the file 99-shuttle.rules to properly set the 
> > permissions.  The USB vender and product are 0B33 and 0020 on this
> > device.
> >
> > The various web sites all show this type of error which is what I am also 
> > seeing:
> >
> > shuttle: error opening /dev/hidraw0: Permission denied
> > shuttle: make sure you have read permission on /dev/hidraw0, read the 
> > shuttle(1) manpage for more info
> > 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: 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: error opening /dev/hidraw3: Permission denied
> > shuttle: make sure you have read permission on /dev/hidraw3, read the 
> > shuttle(1) manpage for more info
> > shuttle: no devices found
> > shuttle1_2020-07-10.hal:11: waitpid failed shuttle shuttle
> > shuttle1_2020-07-10.hal:11: shuttle exited without becoming ready
> >
> > So what could I be missing and what approach do I use to try and find out 
> > what is missing?  I've included the rules file just in case I
> > have a typo that I can't see.
> >
> > And here's the list of sites I've used to try and solve this problem.
> > http://linuxcnc.org/docs/master/html/drivers/shuttle.html
> > https://github.com/LinuxCNC/linuxcnc/commit/ba077f564
> > http://linuxcnc.org/docs/2.8/html/getting-started/updating-linuxcnc.html#_tt_shuttlexpress_tt_driver_renamed_to_tt_shuttle_tt
> > https://forum.linuxcnc.org/24-hal-components/39302-shuttlexpress-pins-not-fond-after-updating-to-2-9-0-pre0-2180-
> ga14b08a70
> >
> > Thanks
> > John
> >
> 
> 
> 
> 
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Shuttle Express

2021-06-22 Thread John Dammeyer
Ah!  Semi success.  One more reboot of the Pi4.
Then address the new error messages since this time it actually found the 
Shuttle Express.
The hal file I used had commented out 
loadrt or2 count=3

and worse also did addf for or2.1 or2.2 and or2.3
So that was broken too.  I changed the count to 4 and now LinuxCNC runs and the 
jog feature works with the spring loaded outer wheel with the first 3 buttons 
selecting XYZ and the last two doing nothing.

The inner wheel does not do individual steps as expected so I'm guessing there 
is more wrong with this hal file.

John


> -Original Message-
> From: John Dammeyer [mailto:jo...@autoartisans.com]
> Sent: June-22-21 7:05 PM
> To: 'Enhanced Machine Controller (EMC)'
> Subject: [Emc-users] Shuttle Express
> 
> I believe I've followed all the instructions on configuring for the Shuttle 
> Express on the Pi4 using LINUXCNC 2.8.1
> 
> Entering ls -al /dev/hidr* shows that with the shuttle not plugged in I have 
> hidraw1..hidraw3
> Plug in the shuttle and hidraw0 shows up.
> 
> I've put source shuttle1_2020-07-10.hal into the config folder and added into 
> postgui_call_list.hal
> source shuttle1_2020-07-10.hal
> 
> I've also created the file 99-shuttle.rules to properly set the permissions.  
> The USB vender and product are 0B33 and 0020 on this
> device.
> 
> The various web sites all show this type of error which is what I am also 
> seeing:
> 
> shuttle: error opening /dev/hidraw0: Permission denied
> shuttle: make sure you have read permission on /dev/hidraw0, read the 
> shuttle(1) manpage for more info
> 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: 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: error opening /dev/hidraw3: Permission denied
> shuttle: make sure you have read permission on /dev/hidraw3, read the 
> shuttle(1) manpage for more info
> shuttle: no devices found
> shuttle1_2020-07-10.hal:11: waitpid failed shuttle shuttle
> shuttle1_2020-07-10.hal:11: shuttle exited without becoming ready
> 
> So what could I be missing and what approach do I use to try and find out 
> what is missing?  I've included the rules file just in case I
> have a typo that I can't see.
> 
> And here's the list of sites I've used to try and solve this problem.
> http://linuxcnc.org/docs/master/html/drivers/shuttle.html
> https://github.com/LinuxCNC/linuxcnc/commit/ba077f564
> http://linuxcnc.org/docs/2.8/html/getting-started/updating-linuxcnc.html#_tt_shuttlexpress_tt_driver_renamed_to_tt_shuttle_tt
> https://forum.linuxcnc.org/24-hal-components/39302-shuttlexpress-pins-not-fond-after-updating-to-2-9-0-pre0-2180-ga14b08a70
> 
> Thanks
> John
> 




___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users