Re: [Emc-users] Joypad as a pendant - help?
Hello John, please look at the time setting of your PC. I received this mail with sending date 17.04.2004! Peter Blodow At 14:25 17.04.2004, you wrote: On 17 Apr 2009 at 1:06, Michael Jones wrote: Does anyone have a good example of a HAL file for a joypad that I can build on. This should get you going. http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Simple_Remote_Pendant John -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Joypad as a pendant - help?
On 17 Apr 2009 at 1:06, Michael Jones wrote: Does anyone have a good example of a HAL file for a joypad that I can build on. This should get you going. http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Simple_Remote_Pendant John -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Joypad as a pendant - help?
On Fri, 2009-04-17 at 01:06 -0700, Michael Jones wrote: ... snip I've used the first script in the knowledgebase as a initial attempt, but am having a slight problem. When I let go of the stick on the pad the axis keeps going.. UHOH! ;-) I've looked at the other scripts in the knowledgebase and noticed a setting called a deadzone. Would this solve my problem? Any useful tips? Thanks - Micahel I seem to recall that there was either a loadrt parameter or component parameter that let you set the jog mode to either follow the commanded position or follow the input activity. In other words, when the joystick is held the position commands build up, when you release the joystick, EMC2 continues to try to move to the commanded position causing a run-on. In the other mode, when you release the joystick, the motion stops at the release and cancels the position command. I did a brief search and couldn't find the parameter information, maybe you came across something like this in your research? Maybe someone else remembers where it is. -- Kirk Wallace http://www.wallacecompany.com/machine_shop/ http://www.wallacecompany.com/E45/index.html California, USA -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Joypad as a pendant - help?
On Fri, 2009-04-17 at 10:48 -0700, Kirk Wallace wrote: On Fri, 2009-04-17 at 01:06 -0700, Michael Jones wrote: ... snip I've used the first script in the knowledgebase as a initial attempt, but am having a slight problem. When I let go of the stick on the pad the axis keeps going.. UHOH! ;-) I've looked at the other scripts in the knowledgebase and noticed a setting called a deadzone. Would this solve my problem? Any useful tips? Thanks - Micahel I seem to recall that there was either a loadrt parameter or component parameter that let you set the jog mode to either follow the commanded position or follow the input activity. In other words, when the joystick is held the position commands build up, when you release the joystick, EMC2 continues to try to move to the commanded position causing a run-on. In the other mode, when you release the joystick, the motion stops at the release and cancels the position command. I did a brief search and couldn't find the parameter information, maybe you came across something like this in your research? Maybe someone else remembers where it is. I think I found more: axis.N.jog-vel-mode IN bit When FALSE (the default), the jog wheel operates in position mode. The axis will move exactly jog-scale units for each count, regardless of how long that might take. When TRUE, the wheel operates in velocity mode - motion stops when the wheel stops, even if that means the commanded motion is not completed. in: http://www.linuxcnc.org/docs/html/config_emc2hal.html -- Kirk Wallace http://www.wallacecompany.com/machine_shop/ http://www.wallacecompany.com/E45/index.html California, USA -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Joypad as a pendant - help?
When I use this setup, I get a response to the command: loadusr -W hal_input -KRAL name I've replaced the name with everything I can think of.. including various permutations of quotes and the like and get this every time.Somehow the hal stuff isn't recognizing the name of the device Traceback (most recent call last): File /usr/bin/hal_input, line 189, in module d.append(HalInputDevice(w, i, f, parts)) File /usr/bin/hal_input, line 52, in __init__ self.device = linux_event.InputDevice(name) File debian/tmp/usr/lib/python2.5/site-packages/linux_event.py, line 700, in __init__ File debian/tmp/usr/lib/python2.5/site-packages/linux_event.py, line 685, in find LookupError: No input device matching 'Action' was found --- This time I used Action in place of name stdin:0: hal_input exited without becoming ready Suggestions? Fixes? Thanks, - Michael On Apr 17, 2004, at 5:25 AM, John Thornton wrote: On 17 Apr 2009 at 1:06, Michael Jones wrote: Does anyone have a good example of a HAL file for a joypad that I can build on. This should get you going. http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Simple_Remote_Pendant John -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Joypad as a pendant - help?
On Fri, 2009-04-17 at 01:06 -0700, Michael Jones wrote: ... snip I've used the first script in the knowledgebase as a initial attempt, but am having a slight problem. When I let go of the stick on the pad the axis keeps going.. UHOH! ;-) I've looked at the other scripts in the knowledgebase and noticed a setting called a deadzone. Would this solve my problem? Any useful tips? Thanks - Micahel I seem to recall that there was either a loadrt parameter or component parameter that let you set the jog mode to either follow the commanded position or follow the input activity. In other words, when the joystick is held the position commands build up, when you release the joystick, EMC2 continues to try to move to the commanded position causing a run-on. In the other mode, when you release the joystick, the motion stops at the release and cancels the position command. What you are reffering to is valid for MPGs, not for joysticks. (there counts are remembered, and if you stop spinning, the machine might still move to get to the count you intended). For joysticks you need to see what each axis outputs. There are joysticks which output (-value .. 0 .. value), and others that go (0 .. value). The first kind you can easily connecto to halui jogging with speed presetting. (then based on how far you move the stick, halui will command the speed of the jog move). Deadband is used so the axis doesn't slowly creep away if your joystick doesn't output quite 0 when in the neutral position. Before you start hooking the joystick up to halui for jogging, I would first load the joystick component (just like in the HAL file), then use a halmeter and look for the values it outputs for +max, neutral and -max. Also see how linear the values are. Based on these numbers, we'll try to suggest you the best way to hook it up. Regards, Alex -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Joypad as a pendant - help?
Kirk, That looks promising.. I'll try inserting that into the Hal. Thanks, - Michael On Apr 17, 2009, at 11:13 AM, Kirk Wallace wrote: On Fri, 2009-04-17 at 10:48 -0700, Kirk Wallace wrote: On Fri, 2009-04-17 at 01:06 -0700, Michael Jones wrote: ... snip I've used the first script in the knowledgebase as a initial attempt, but am having a slight problem. When I let go of the stick on the pad the axis keeps going.. UHOH! ;-) I've looked at the other scripts in the knowledgebase and noticed a setting called a deadzone. Would this solve my problem? Any useful tips? Thanks - Micahel I seem to recall that there was either a loadrt parameter or component parameter that let you set the jog mode to either follow the commanded position or follow the input activity. In other words, when the joystick is held the position commands build up, when you release the joystick, EMC2 continues to try to move to the commanded position causing a run-on. In the other mode, when you release the joystick, the motion stops at the release and cancels the position command. I did a brief search and couldn't find the parameter information, maybe you came across something like this in your research? Maybe someone else remembers where it is. I think I found more: axis.N.jog-vel-mode IN bit When FALSE (the default), the jog wheel operates in position mode. The axis will move exactly jog-scale units for each count, regardless of how long that might take. When TRUE, the wheel operates in velocity mode - motion stops when the wheel stops, even if that means the commanded motion is not completed. in: http://www.linuxcnc.org/docs/html/config_emc2hal.html -- Kirk Wallace http://www.wallacecompany.com/machine_shop/ http://www.wallacecompany.com/E45/index.html California, USA -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Joypad as a pendant - help?
When I use: http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?HereIsHowToCheck I get the (-value...0...value) sequence when I move the sticks. On Apr 17, 2009, at 11:17 AM, Alex Joni wrote: On Fri, 2009-04-17 at 01:06 -0700, Michael Jones wrote: ... snip I've used the first script in the knowledgebase as a initial attempt, but am having a slight problem. When I let go of the stick on the pad the axis keeps going.. UHOH! ;-) I've looked at the other scripts in the knowledgebase and noticed a setting called a deadzone. Would this solve my problem? Any useful tips? Thanks - Micahel I seem to recall that there was either a loadrt parameter or component parameter that let you set the jog mode to either follow the commanded position or follow the input activity. In other words, when the joystick is held the position commands build up, when you release the joystick, EMC2 continues to try to move to the commanded position causing a run-on. In the other mode, when you release the joystick, the motion stops at the release and cancels the position command. What you are reffering to is valid for MPGs, not for joysticks. (there counts are remembered, and if you stop spinning, the machine might still move to get to the count you intended). For joysticks you need to see what each axis outputs. There are joysticks which output (-value .. 0 .. value), and others that go (0 .. value). The first kind you can easily connecto to halui jogging with speed presetting. (then based on how far you move the stick, halui will command the speed of the jog move). Deadband is used so the axis doesn't slowly creep away if your joystick doesn't output quite 0 when in the neutral position. Before you start hooking the joystick up to halui for jogging, I would first load the joystick component (just like in the HAL file), then use a halmeter and look for the values it outputs for +max, neutral and -max. Also see how linear the values are. Based on these numbers, we'll try to suggest you the best way to hook it up. Regards, Alex -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Joypad as a pendant - help?
Kirk, Hey! That worked perfectly! Thanks! I inserted: setp axis.0.jog-vel-mode TRUE setp axis.1.jog-vel-mode TRUE setp axis.2.jog-vel-mode TRUE into the hal file right after the: setp axis.0.jog-enable TRUE setp axis.1.jog-enable TRUE setp axis.2.jog-enable TRUE commands and now when I let go of the stick, the axis stops moving. Now I have to figure out how to map the buttons the way I want. - Michael On Apr 17, 2009, at 11:30 AM, Michael Jones wrote: Kirk, That looks promising.. I'll try inserting that into the Hal. Thanks, - Michael On Apr 17, 2009, at 11:13 AM, Kirk Wallace wrote: On Fri, 2009-04-17 at 10:48 -0700, Kirk Wallace wrote: On Fri, 2009-04-17 at 01:06 -0700, Michael Jones wrote: ... snip I've used the first script in the knowledgebase as a initial attempt, but am having a slight problem. When I let go of the stick on the pad the axis keeps going.. UHOH! ;-) I've looked at the other scripts in the knowledgebase and noticed a setting called a deadzone. Would this solve my problem? Any useful tips? Thanks - Micahel I seem to recall that there was either a loadrt parameter or component parameter that let you set the jog mode to either follow the commanded position or follow the input activity. In other words, when the joystick is held the position commands build up, when you release the joystick, EMC2 continues to try to move to the commanded position causing a run-on. In the other mode, when you release the joystick, the motion stops at the release and cancels the position command. I did a brief search and couldn't find the parameter information, maybe you came across something like this in your research? Maybe someone else remembers where it is. I think I found more: axis.N.jog-vel-mode IN bit When FALSE (the default), the jog wheel operates in position mode. The axis will move exactly jog-scale units for each count, regardless of how long that might take. When TRUE, the wheel operates in velocity mode - motion stops when the wheel stops, even if that means the commanded motion is not completed. in: http://www.linuxcnc.org/docs/html/config_emc2hal.html -- Kirk Wallace http://www.wallacecompany.com/machine_shop/ http://www.wallacecompany.com/E45/index.html California, USA -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Joypad as a pendant - help?
On Fri, 2009-04-17 at 21:17 +0300, Alex Joni wrote: ... snip What you are reffering to is valid for MPGs, not for joysticks. (there counts are remembered, and if you stop spinning, the machine might still move to get to the count you intended). For joysticks you need to see what each axis outputs. There are joysticks which output (-value .. 0 .. value), and others that go (0 .. value). The first kind you can easily connecto to halui jogging with speed presetting. (then based on how far you move the stick, halui will command the speed of the jog move). Deadband is used so the axis doesn't slowly creep away if your joystick doesn't output quite 0 when in the neutral position. Oops, that makes more sense. So it's more like an ADC interface. I guess I need to actually install one sometime. -- Kirk Wallace http://www.wallacecompany.com/machine_shop/ http://www.wallacecompany.com/E45/index.html California, USA -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Joypad as a pendant - help?
Oops, that makes more sense. So it's more like an ADC interface. I guess I need to actually install one sometime. Well, there are 2 ways of interfacing the joystick. The older one, (which I don't think is that good) is taking the output from the joystick, using a stepgen to generate quadrature, and feeding that to the MPG input to the appropriate axis. The newer one, ( which I think is cleaner, better) is taking the value from the joystick and driving halui velocity jogging with it. Both are in the wiki. For the first one your suggestion actually makes sense, and probably fixes things. Regards, Alex -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Joypad as a pendant - help?
When I: cat /proc/bus/input/devices it returns: I: Bus=0003 Vendor=046d Product=c216 Version=0110 N: Name=Logitech Logitech Dual Action P: Phys=usb-:02:00.0-1/input0 S: Sysfs=/devices/pci:00/:00:11.0/:02:00.0/ usb1/1-1/1-1:1.0/input/input5 U: Uniq= H: Handlers=event4 js0 B: EV=1b B: KEY=fff 0 0 0 0 0 0 0 0 0 B: ABS=30027 B: MSC=10 when I go into Halrun or try to enter this into my hal file: loadusr -W hal_input -KRAL c216 or loadusr -W hal_input -KRAL Product=c216 I get: Traceback (most recent call last): File /usr/bin/hal_input, line 189, in module d.append(HalInputDevice(w, i, f, parts)) File /usr/bin/hal_input, line 52, in __init__ self.device = linux_event.InputDevice(name) File debian/tmp/usr/lib/python2.5/site-packages/linux_event.py, line 700, in __init__ File debian/tmp/usr/lib/python2.5/site-packages/linux_event.py, line 685, in find LookupError: No input device matching 'Product=c216' was found stdin:1: hal_input exited without becoming ready Now, I do have a different method working.. loadusr hal_joystick -d /dev/input/js0 -p joypad can this method be interchanged? Does it make a difference? - Michael On Apr 17, 2009, at 11:47 AM, Lars Andersson wrote: Look up your device in the output of cat /proc/bus/input/devices Select any string you like from any of the properties Bus= Vendor= Product= Version= No quotes needed, it does not have to be the whole string either. Unfortunately the property Uniq= cannot be used // Lars -Original Message- From: Michael Jones [mailto:ma...@michaelandholly.com] Sent: den 17 april 2009 20:17 To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] Joypad as a pendant - help? When I use this setup, I get a response to the command: loadusr -W hal_input -KRAL name I've replaced the name with everything I can think of.. including various permutations of quotes and the like and get this every time.Somehow the hal stuff isn't recognizing the name of the device Traceback (most recent call last): File /usr/bin/hal_input, line 189, in module d.append(HalInputDevice(w, i, f, parts)) File /usr/bin/hal_input, line 52, in __init__ self.device = linux_event.InputDevice(name) File debian/tmp/usr/lib/python2.5/site-packages/linux_event.py, line 700, in __init__ File debian/tmp/usr/lib/python2.5/site-packages/linux_event.py, line 685, in find LookupError: No input device matching 'Action' was found --- This time I used Action in place of name stdin:0: hal_input exited without becoming ready Suggestions? Fixes? Thanks, - Michael On Apr 17, 2004, at 5:25 AM, John Thornton wrote: On 17 Apr 2009 at 1:06, Michael Jones wrote: Does anyone have a good example of a HAL file for a joypad that I can build on. This should get you going. http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Simple_Remote_Pendant John - - Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users --- --- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p
Re: [Emc-users] Joypad as a pendant - help?
Alex Joni wrote: Oops, that makes more sense. So it's more like an ADC interface. I guess I need to actually install one sometime. Well, there are 2 ways of interfacing the joystick. Well, there are 3 ways... :) Third is with X driver and remapping events into AXIS. -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Joypad as a pendant - help?
Probably loadusr -W hal_input -KRAL Action would work also. Any text fragment from the selected properties seems to work. -Original Message- From: Michael Jones [mailto:ma...@michaelandholly.com] Sent: den 17 april 2009 21:27 To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] Joypad as a pendant - help? When I: cat /proc/bus/input/devices it returns: I: Bus=0003 Vendor=046d Product=c216 Version=0110 N: Name=Logitech Logitech Dual Action P: Phys=usb-:02:00.0-1/input0 S: Sysfs=/devices/pci:00/:00:11.0/:02:00.0/ usb1/1-1/1-1:1.0/input/input5 U: Uniq= H: Handlers=event4 js0 B: EV=1b B: KEY=fff 0 0 0 0 0 0 0 0 0 B: ABS=30027 B: MSC=10 when I go into Halrun or try to enter this into my hal file: loadusr -W hal_input -KRAL c216 or loadusr -W hal_input -KRAL Product=c216 I get: Traceback (most recent call last): File /usr/bin/hal_input, line 189, in module d.append(HalInputDevice(w, i, f, parts)) File /usr/bin/hal_input, line 52, in __init__ self.device = linux_event.InputDevice(name) File debian/tmp/usr/lib/python2.5/site-packages/linux_event.py, line 700, in __init__ File debian/tmp/usr/lib/python2.5/site-packages/linux_event.py, line 685, in find LookupError: No input device matching 'Product=c216' was found stdin:1: hal_input exited without becoming ready Now, I do have a different method working.. loadusr hal_joystick -d /dev/input/js0 -p joypad can this method be interchanged? Does it make a difference? - Michael On Apr 17, 2009, at 11:47 AM, Lars Andersson wrote: Look up your device in the output of cat /proc/bus/input/devices Select any string you like from any of the properties Bus= Vendor= Product= Version= No quotes needed, it does not have to be the whole string either. Unfortunately the property Uniq= cannot be used // Lars -Original Message- From: Michael Jones [mailto:ma...@michaelandholly.com] Sent: den 17 april 2009 20:17 To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] Joypad as a pendant - help? When I use this setup, I get a response to the command: loadusr -W hal_input -KRAL name I've replaced the name with everything I can think of.. including various permutations of quotes and the like and get this every time.Somehow the hal stuff isn't recognizing the name of the device Traceback (most recent call last): File /usr/bin/hal_input, line 189, in module d.append(HalInputDevice(w, i, f, parts)) File /usr/bin/hal_input, line 52, in __init__ self.device = linux_event.InputDevice(name) File debian/tmp/usr/lib/python2.5/site-packages/linux_event.py, line 700, in __init__ File debian/tmp/usr/lib/python2.5/site-packages/linux_event.py, line 685, in find LookupError: No input device matching 'Action' was found --- This time I used Action in place of name stdin:0: hal_input exited without becoming ready Suggestions? Fixes? Thanks, - Michael On Apr 17, 2004, at 5:25 AM, John Thornton wrote: On 17 Apr 2009 at 1:06, Michael Jones wrote: Does anyone have a good example of a HAL file for a joypad that I can build on. This should get you going. http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Simple_Remote_Pendant John --- -- - Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users --- --- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - - Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ Emc-users mailing list Emc-users@lists.sourceforge.net
Re: [Emc-users] Joypad as a pendant - help?
On Apr 17, 2009, at 1:11 PM, Lars Andersson wrote: Probably loadusr -W hal_input -KRAL Action this doesn't seem to work no matter what text fragment I use.. Loading by the /dev/input/js0 seems to work though.. would work also. Any text fragment from the selected properties seems to work. ..snip... -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Joypad as a pendant - help?
Michael Jones wrote: On Apr 17, 2009, at 1:11 PM, Lars Andersson wrote: Probably loadusr -W hal_input -KRAL Action this doesn't seem to work no matter what text fragment I use.. Loading by the /dev/input/js0 seems to work though.. One thing I noticed in your /proc/bus/input/devices file, the number on the S: Sysfs ... line is different from the number on the H: Handlers= line. Your Sysfs node is input5, but the Handlers line shows event4. On my system, the two numbers match, and the driver loads just fine. (I didn't use c216, I only tried Dual and Action) I don't know how to get the numbers to be the same, or if that's the problem, but it did seem interesting. - Steve -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Joypad as a pendant - help?
On Sat, 2004-04-17 at 06:25 -0600, John Thornton wrote: On 17 Apr 2009 at 1:06, Michael Jones wrote: Does anyone have a good example of a HAL file for a joypad that I can build on. This should get you going. http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Simple_Remote_Pendant John John, I just noticed this message. My inbox sorts by date, so it was at the beginning of my +1k message inbox. I think your computer timestamps your message, so having the correct date may be better. I have ntpdate running on my computers to avoid that issue. Of course ideally, I should not have any stale messages in my inbox. Just FYI. -- Kirk Wallace http://www.wallacecompany.com/machine_shop/ http://www.wallacecompany.com/E45/index.html California, USA -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users