XHC-WHB04B-6 LinuxCNC not working

More
7 years 1 week ago #148666 by jonch919
Thanks, sounds like it's working alright.
Have you got all buttons and the display working now?
If you'd shoot a video that would be greatly appreciated!

What drivers are you using now, and would it be easy to install the same as you to get it up running fast?

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

More
7 years 1 week ago #148668 by satiowadahc
Currently modifying the stock xhc-04 driver, which works on ubuntu and debian,
Currently working features (on my machines):
1) One set of coordinates -> I set to absolute but could be set to relative
2) All buttons with 1 function
3) Step Size Selector and Jog Wheel.
4) Speed and Feed override displays on update on the display
TODO:
1) Macro/2nd function on the buttons
2) Add flags for Second Set of Coordinates, Step/Continous, Reset Indicator
(tbh, I use the step knob to select between step and cont so that may not get done. Like wise the reset indicator is not high on the todo list)
3) Figure out why debian and ubuntu need different versions
4) Refactor so I can install it alongside the original driver as currently it overwrites it.

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

More
7 years 1 week ago #148669 by satiowadahc
Randi, Do you have any halui pins available in halmeter? specifically halui.axis or halui.joint

?

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

More
7 years 6 days ago #148826 by JanPan
Hey everyone,
I used this Saturday to also play with the Handwheel (the 4 Axis version XHC-WHB04B-4).
I followed Talla83's instructions on talla83.de/xhcwhb04b.html and talla83.homepage.t-online.de/linuxcnc/XHC-WHB04B-6.zip , respectively.

So what I did is compiling the the current version with the files provided by talla and running it (in place; 2.9).

Some (maybe all) buttons work well, also the select switches, but unfortunately the jog wheel doesn't do anything. When checking
Code:
whb.axis.0.jog-counts
(what I expected to change during rotation of the wheel) nothing happens, it stays at 0 (but in the console you can see one line for every step).

Recompiling with modifying the ID to 0xEB93 in xhc-hb04.cc and using that module,
Code:
xhc-hb4.jog.counts
increases when turning the jog wheel (it always increases nevertheless turning to left or right but I guess thats ok...)

So is it correct that whb.axis.0.jog-counts should increase (or decrease) when I rotate the jog wheel? Any suggestions why it doesn't do it like it should?

Best
JanPan

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

More
7 years 6 days ago - 7 years 6 days ago #148834 by satiowadahc
Disclosure, I haven't used the machinekit drivers (That particular one was written by rubien for machinekit, looks like Talla83 modified it for linuxcnc, and was a massive help in writing this one).

You should be able to test it from the command line: xhc-whb04b-6

let me know if the output changes as you change the job wheel

Also there is protocol differences in the xhc-hb04 to the xhc-whb04. if you want to use that driver replace it with this one:
github.com/satiowadahc/linuxcnc/blob/2.8...er_comps/xhc-hb04.cc
Last edit: 7 years 6 days ago by satiowadahc.

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

More
7 years 5 days ago - 7 years 5 days ago #148865 by JanPan
Hi,
so I tested it from the command line and also running Linuxcnc from command line I can see the output that doesn't change:
Code:
pndnt handwheel total counts {counts=0 activeCounter=0 isLeadActive=0} pndnt handwheel total counts {counts=0 activeCounter=0 isLeadActive=0} pndnt handwheel total counts {counts=0 activeCounter=0 isLeadActive=0} pndnt handwheel total counts {counts=0 activeCounter=0 isLeadActive=0}
but I was not sure whether this is ok as it looks pretty the same in tallas video at 16:42 (unable to link it with the correct time):


It was more an "academic" question why it worked in tallas setup and not in mine. Maybe there is a lesson for me to learn...
Thanks satiowadahc, I already compiled your version and will use it today...

So what I definitely learned from this experiment is that compiling the current version of linuxcnc is really easy, straight forward and my favorite way to use linuxcnc in the future!
Thanks!
Jan Pan
Last edit: 7 years 5 days ago by JanPan.
The following user(s) said Thank You: Diederik

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

Time to create page: 0.116 seconds
Powered by Kunena Forum