XHC-HB04 wireless MPG pendant HAL module
1) Start linuxcnc
2) Go to the xhc-hb04 directory:
3) Select one of the configurations that matches button layout, for example:Sample Configurations/sim/axis/xhc-hb04
xhc-hb04-layout2_mm
Note the instructions provided in the configuration picker right hand window for modifying an existing configuration.
Ref:
git.linuxcnc.org/gitweb?p=linuxcnc.git;a...21;hb=refs/heads/2.6
git.linuxcnc.org/gitweb?p=linuxcnc.git;a...e8;hb=refs/heads/2.6
Example Session:
Please Log in or Create an account to join the conversation.
the XHC-HB04 works, but the problem is that I must give the address of the USB receptor to chmod command, and not always is the same addr. I tested with "lsusb" but it don't recognize the command ("command not found")
Please Log in or Create an account to join the conversation.
$ sudo apt-get install usbutils
It was recently found that the udev rules file needs to be named 99-xhc.rules (_not_ 90-xhc.rules) to have it in correct order.
With commit 4d7f5ee, the linuxcnc package installs it to:
This commit applies to 2.6.3 and beyond -- packages are available from the buildbot./lib/udev/rules.d/99-xhc.rules
Ref:
git.linuxcnc.org/gitweb?p=linuxcnc.git;a...e779f243a6e508a6c73a
For a RIP install, you can manually place the file in /etc/udev/rules.d/99-xhc.rules
Ref:
git.linuxcnc.org/gitweb?p=linuxcnc.git;a...e779f243a6e508a6c73a
Please Log in or Create an account to join the conversation.
- Connor9220
- Offline
- Junior Member
- Posts: 21
- Thank you received: 2
I just purchased one of these pendants. I have a few questions. First, I spent $120.99 trying to get the 16 button version (layout1) because I liked the layout better. However, they sent me the newer version even thought the ebay action had the pictures for the old style displayed.. needless to say, I'm not happy... and, It's missing the Knob that screws into the hand wheel.
Now, With that all being said.. I've been playing with it.. I'm running it on my 12.04 machine in 2.8.0-xxx in the simulator on a non realtime kernel. I'm noticing that the MPG will sometimes miss when I change directions.. Is this because I'm not running it in realtime kernel ?
2nd, I want the steps to be .1 .01, .001, and .0001 Doesn't look like you can do anything below .001 ??
3rd, the Pendant always say mm and only has 3 decimal places.. is this normal ? anyone figured out how to toggle it to inch mode and 4 decimal places?
Thanks, Connor
Please Log in or Create an account to join the conversation.
have not observed this but the device is limited by its usb (not realtime) implementation. you would have to give more details on the behavior and how to reproduce it.I'm noticing that the MPG will sometimes miss when I change directions.. Is this because I'm not running it in realtime kernel ?
A number of sequences are supported ([XHC_HB04_CONFIG]sequence=), see the ini file examples:2nd, I want the steps to be .1 .01, .001, and .0001 Doesn't look like you can do anything below .001 ?
[XHC_HB04_CONFIG]
...
# sequence 1: 0.001,0.010,0.100,1.000 (mm-based machine)
# sequence 2: 0.001,0.005,0.010,0.020 (inch-based machine)
# sequence 3: 0.001,0.010,0.100
# sequence 4: 0.001,0.005,0.010,0.020,0.050,0.100
# sequence 5: 0.001,0.010,0.050,0.100,1.000
sequence = 3
3rd, the Pendant always say mm and only has 3 decimal places.. is this normal ? anyone figured out how to toggle it to inch mode and 4 decimal places?
You could try more reverse engineering on the undocumented protocols used by the device to explore this.
Please Log in or Create an account to join the conversation.
- Connor9220
- Offline
- Junior Member
- Posts: 21
- Thank you received: 2
I think the encoder on the MPG is faulty.. I'm running xhc-hb04 on the command line and watching the raw output.. turning the wheel the same direction.. It will do the following..
have not observed this but the device is limited by its usb (not realtime) implementation. you would have to give more details on the behavior and how to reproduce it.I'm noticing that the MPG will sometimes miss when I change directions.. Is this because I'm not running it in realtime kernel ?
04 00 00 11 01 0C delta +1
04 00 00 11 01 0C delta +1
04 00 00 11 01 0C delta +1
04 00 00 11 00 0C
04 00 00 11 FF 0C delta -1
04 00 00 11 FF 0C delta -1
As you can see it starts sending out -1 instead of +1 even when turning the MPG the same direction. I've tried it on both my linuxcnc sim machine, and my real machine with real-time kernel.. so, it's not anything to do with the computers, or running a realtime kernel or not.
A number of sequences are supported ([XHC_HB04_CONFIG]sequence=), see the ini file examples:2nd, I want the steps to be .1 .01, .001, and .0001 Doesn't look like you can do anything below .001 ?
In theory the [XHC_HB04_CONFIG]scales= setting could be set to the fraction 0.1 to make sequence 1 behave as .0001 .001 .01 .1 but fractional scale values are not yet supported. I will make a patch for 2.7 to improve this (the axis gui display will show the 0.0001 digit but the device display will not since it has only 3 decimal places)[XHC_HB04_CONFIG] ... # sequence 1: 0.001,0.010,0.100,1.000 (mm-based machine) # sequence 2: 0.001,0.005,0.010,0.020 (inch-based machine) # sequence 3: 0.001,0.010,0.100 # sequence 4: 0.001,0.005,0.010,0.020,0.050,0.100 # sequence 5: 0.001,0.010,0.050,0.100,1.000 sequence = 3
Okay, I tried setting the sales to 0.1, but.. it only sends out a .01 after 10 ticks (looking at the DRO on axis, not on the Pendant). So.. really not useful..
3rd, the Pendant always say mm and only has 3 decimal places.. is this normal ? anyone figured out how to toggle it to inch mode and 4 decimal places?
You could try more reverse engineering on the undocumented protocols used by the device to explore this.
Yea, they're has to be a way to flip it to inch mode.
Please Log in or Create an account to join the conversation.
yes -- that sequence looks defectiveAs you can see it starts sending out -1 instead of +1 even when turning the MPG the same direction.
Okay, I tried setting the sales to 0.1, but.. it only sends out a .01 after 10 ticks (looking at the DRO on axis, not on the Pendant). So.. really not useful..
yes, as i said:
there will be a patch soon to address fractional scalesfractional scale values are not yet supported
Please Log in or Create an account to join the conversation.
- Connor9220
- Offline
- Junior Member
- Posts: 21
- Thank you received: 2
yes -- that sequence looks defectiveAs you can see it starts sending out -1 instead of +1 even when turning the MPG the same direction.
Okay, I tried setting the sales to 0.1, but.. it only sends out a .01 after 10 ticks (looking at the DRO on axis, not on the Pendant). So.. really not useful..
yes, as i said:there will be a patch soon to address fractional scalesfractional scale values are not yet supported
Got the replacement Pendant and it works as expected. Bad encoder on the first one. Just waiting for the patch for fractional scales. I'm looking into seeing if the pendant supports 4 digits after the decimal place.
Please Log in or Create an account to join the conversation.
$ git branch --contains 56ba56afb
2.7
Please Log in or Create an account to join the conversation.
- Connor9220
- Offline
- Junior Member
- Posts: 21
- Thank you received: 2
Please Log in or Create an account to join the conversation.