USB controller - USB jogging

More
15 Nov 2022 16:58 #256783 by Ondrej
Hello,

I bought xbox controller from aliexpress and I wanted to use that for moving my machine. I was testing the controller on my testing PC with linuxcnc {no any hardware, just pc} I programmed that in pncconf in advanced - External commands. It worked, I was able to see what hal pins I am using when touching something on controller.

Now I wanted to do this on my machine, I opened the pncconf and modified everything in adding device rule. Then when I click on test device, I get error -


PNCconf encountered an error.  The following information may be useful in troubleshooting:

LinuxCNC Version:  2.8

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pncconf/pages.py", line 841, in on_joysticktest_clicked
    self.a.test_joystick()
  File "/usr/bin/pncconf", line 1613, in test_joystick
    halrun.stdin.write("show pin\n")
IOError: [Errno 32] Broken pipe


any thoughts? :]

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

More
16 Nov 2022 01:22 #256825 by andypugh
Does it do that every time?

It looks a bit like a disconnect, and that would be fairly random.

You might be able to ad the joypad code by hand, the HAL files are meant to be hand-editable and legible.

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

More
22 Dec 2022 20:29 - 22 Dec 2022 20:30 #260104 by Ondrej
Replied by Ondrej on topic USB controller - USB jogging
Now Iam playing with another PC and linuxcnc+mesa. I also wanted to add the usb controller.  Everything in PNCCONF is ok but when I run the configuration I get an error. The output is :

Note: Using POSIX realtime
No input device matching "USB-CONTROLLER" was found (1 device checked).
./07Mesa.hal:11: waitpid failed hal_input hal_input
./07Mesa.hal:11: hal_input exited without becoming ready
3685
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime.

I named controller USB-CONTROLLER. I was looking for some info on the internet but without sucess. 
Last edit: 22 Dec 2022 20:30 by Ondrej.

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

More
23 Dec 2022 11:03 #260145 by andypugh

I named controller USB-CONTROLLER. I was looking for some info on the internet but without sucess. 

You can't name it, you need to use the name it gives itself. 

Use "lsusb" to get  a list of the devices connected, and then pick something unambiguous from that. For example I used "dragon" when I had a "dragonrise technologies super game controller" (or something like that)
The following user(s) said Thank You: Ondrej

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

Moderators: cmorley
Time to create page: 0.745 seconds
Powered by Kunena Forum