XHC-HB04 wireless MPG pendant HAL module
Now everything is running properly.
A nice side effect is that I have now learned a lot about EMC² .
Again, a special thanks for your support, dgarrett.
Please Log in or Create an account to join the conversation.
i have a problem with the XHC-HB04 iv'e done everything like on the wiki but at one point im stuck, my sample configuration folder from linuxcnc wich should be under the path usr/share/linuxcnc is missing i don't know why so i have no sample configuration.
i have the same problem like in this post www.linuxcnc.org/index.php/english/forum...-issue-step-interval
but i have no sample configurations so i can't see what i should write in the ini, but i need to know what i had to add like [XHC_HB04_CONFIG]
can anyone add the sample config. folder as an attachment for me?
Please Log in or Create an account to join the conversation.
can anyone add the sample config. folder as an attachment for me?
The sample config is here:
git.linuxcnc.org/gitweb?p=linuxcnc.git;a...2356f7a27fb4;hb=HEAD
Please Log in or Create an account to join the conversation.
I have read through this thread and cant really find any reference to the HB03.
Anyhow, can I recompile the XHC-HB04 module with a different deviceID (it is EB6E not EB70)? I presume I need to edit xhc-hb04.cc, make && make install. I am also aware that I will need to change the deviceID in etc/udev/rules.d/90-xhc.rules. I am also aware that I am likely to have to do a bit of button re-mapping.
Am I on the right track? Has anyone actually done this with an HB03? Anything else I need to look out for?
Is this likely to result in a functional solution or am I better off taking this back to the post office for a refund?
Please Log in or Create an account to join the conversation.
Is this likely to result in a functional solution or am I better off taking this back to the post office for a refund?
I think that it stands a good chance of working, but you might have some reverse-engineering to do.
I wonder if you can find what buttons it offers with hal_input?
Please Log in or Create an account to join the conversation.
I have run
xhc-hbo4
libusb error (libusb couldn't open USB device ...)
Living life dangerously I then tried running as root...
A partial success!!! xhc-hb04 now working and streaming rows of data on each button press. Not sure if I need to do anything to stop
libusb:warning [handle_bulk_completion] unrecognised urb status -108
john@john-desktop:~$ sudo xhc-hb04
[sudo] password for john:
Creating pin: xhc-hb04.x.pos-absolute
Creating pin: xhc-hb04.y.pos-absolute
Creating pin: xhc-hb04.z.pos-absolute
Creating pin: xhc-hb04.a.pos-absolute
Creating pin: xhc-hb04.x.pos-relative
Creating pin: xhc-hb04.y.pos-relative
Creating pin: xhc-hb04.z.pos-relative
Creating pin: xhc-hb04.a.pos-relative
Creating pin: xhc-hb04.feed-value
Creating pin: xhc-hb04.feed-override
Creating pin: xhc-hb04.spindle-rps
Creating pin: xhc-hb04.spindle-override
Creating pin: xhc-hb04.jog.enable-off
Creating pin: xhc-hb04.jog.enable-x
Creating pin: xhc-hb04.jog.enable-y
Creating pin: xhc-hb04.jog.enable-z
Creating pin: xhc-hb04.jog.enable-a
Creating pin: xhc-hb04.jog.enable-feed-override
Creating pin: xhc-hb04.jog.enable-spindle-override
Creating pin: xhc-hb04.jog.scale
Creating pin: xhc-hb04.jog.counts
Creating pin: xhc-hb04.jog.counts-neg
Creating pin: xhc-hb04.jog.velocity
Creating pin: xhc-hb04.jog.max-velocity
Creating pin: xhc-hb04.jog.increment
Creating pin: xhc-hb04.jog.plus-x
Creating pin: xhc-hb04.jog.minus-x
Creating pin: xhc-hb04.jog.plus-y
Creating pin: xhc-hb04.jog.minus-y
Creating pin: xhc-hb04.jog.plus-z
Creating pin: xhc-hb04.jog.minus-z
Creating pin: xhc-hb04.jog.plus-a
Creating pin: xhc-hb04.jog.minus-a
waiting for XHC-HB04 device
found XHC-HB04 device
libusb:warning [handle_bulk_completion] unrecognised urb status -108
04 17 00 00 00 1B
04 00 00 00 00 0C
04 16 00 00 00 1A
04 00 00 00 00 0C
04 01 00 00 00 0D
04 00 00 00 00 0C
04 02 00 00 00 0E
04 00 00 00 00 0C
04 03 00 00 00 0F
04 00 00 00 00 0C
04 04 00 00 00 08
04 00 00 00 00 0C
04 0C 00 00 00 00
However, I have also found this on Planet CNC - which says that the #_wc_frac is 8bit for the HB03 and 16bit for the HB04 as the former only displays to three significant figures. This sounds worrying to me as I am not a programmer and have not the faintest idea where to look to check this. Even more confusing is that my model displays not 2 or 4 but 3 significant digits!
How can I sort out the presumed permissions problem(s), what do I need to do to manage the 8bit vs 16 it words and how far away from a working solution am I? If this needs much more work it is definitely on its way back to the seller!#_wc_frac - it is 8bit for WHB03 and 16bit for WHB04 ... it is simple whan you look two display max frac part for WHB03 it is .99 and for WHB04 it is .9999 ... this value also have a SIGN bit if value is negarive you must set most significant bit to 1... little example:
WHB03
our X position is: -117.33
we put 117 to x_wc_int
we also put 33 to x_wc_frac
we have negative value... we also need to set most significant bit of x_wc_frac to 1...
Code: Select allx_wc_frac = x_wc_frac | 0x80;
WGB04
our X position is: -220.3345
we put 220 to x_wc_int
we also put 3345 to x_wc_frac
we have negative value... we also need to set most significant bit of x_wc_frac to 1...
Code: Select allx_wc_frac = x_wc_frac | 0x8000;
Please Log in or Create an account to join the conversation.
So, I just wanted to say thanks to everyone involved. This thing is the best thing since beer in cans.
Regards.
Steve.
Please Log in or Create an account to join the conversation.
Im a beginner in Linux and Linuxcnc.
i just installed my XBC-HB04 on my machine (Linuxcnc,Debian Wheezy 2.6 Buildbot, Display: gmoccapy).
So far the Buttons and spindle/feedoverride are working fine.
Selecting Axis and Jogging, also changing Scale works too. But Jogging works only in incremental Mode, i cannot make the machine go in Smooth Motion like when Jogging with the buttons on the Keyboard in continuos Mode. When turning the Wheel continuosly the machine jogs like hitting the Button on the Keyboard on and on in incremental Mode.
just normal behaviour ? or has anyone a tip where to look to change this ?
thanks in advance
Roland
Please Log in or Create an account to join the conversation.
But Jogging works only in incremental Mode, i cannot make the machine go in Smooth Motion like when Jogging with the buttons on the Keyboard in continuos Mode. When turning the Wheel continuosly the machine jogs like hitting the Button on the Keyboard on and on in incremental Mode.
This can be a problem with jog wheels, especially if the machine is a fast one with high accelleration.
There is a HAL component specifically for this situation:
www.linuxcnc.org/docs/html/man/man9/ilowpass.9.html
Please Log in or Create an account to join the conversation.
But Jogging works only in incremental Mode, i cannot make the machine go in Smooth Motion like when Jogging with the buttons on the Keyboard in continuos Mode. When turning the Wheel continuosly the machine jogs like hitting the Button on the Keyboard on and on in incremental Mode.
This can be a problem with jog wheels, especially if the machine is a fast one with high accelleration.
There is a HAL component specifically for this situation:
www.linuxcnc.org/docs/html/man/man9/ilowpass.9.html
I had the same issue, my mill is fairly small with 350oz in servos, it kind of snaps to each position when the jog wheel is turned at higher step settings. My workaround was to lower the feed override till it smoothed out, but I will check out the low-pass hal. Thanks for the link.
Steve.
Please Log in or Create an account to join the conversation.