XHC-HB04 wireless MPG pendant HAL module

More
30 Oct 2014 21:17 - 30 Oct 2014 21:22 #52586 by dgarrett
Please try one of the provided sim configs on a machine (not a vm):

1) Start linuxcnc
2) Go to the xhc-hb04 directory:

Sample Configurations/sim/axis/xhc-hb04

3) Select one of the configurations that matches button layout, for example:

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:
Last edit: 30 Oct 2014 21:22 by dgarrett. Reason: typo
The following user(s) said Thank You: mario_rl

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

More
31 Oct 2014 03:03 #52602 by mario_rl
Ok...Very pleased for your kind explanations :) the trouble was I used "broken" XHC-HB04 in the machines selection dialog, these do nothing when launched. They are at the end of the tree. I used the ones in the "sim" branch and worked...Definetively it is a prermissions issue. When I launch the config the pop up window tell me that can't get acces to the USB device. If I do chmod to changue these permissions,
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") :unsure:

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

More
31 Oct 2014 05:04 #52603 by dgarrett
For lsusb for debian, it seems you need to install:
$ 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:

/lib/udev/rules.d/99-xhc.rules

This commit applies to 2.6.3 and beyond -- packages are available from the buildbot.

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.

More
15 Nov 2014 07:59 #53100 by Connor9220
Hey Guys,

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.

More
15 Nov 2014 11:31 #53103 by dgarrett

I'm noticing that the MPG will sometimes miss when I change directions.. Is this because I'm not running it in realtime kernel ?

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.

2nd, I want the steps to be .1 .01, .001, and .0001 Doesn't look like you can do anything below .001 ?

A number of sequences are supported ([XHC_HB04_CONFIG]sequence=), see the ini file examples:
[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
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)

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.

More
15 Nov 2014 11:48 #53105 by Connor9220

I'm noticing that the MPG will sometimes miss when I change directions.. Is this because I'm not running it in realtime kernel ?

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 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..

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.

2nd, I want the steps to be .1 .01, .001, and .0001 Doesn't look like you can do anything below .001 ?

A number of sequences are supported ([XHC_HB04_CONFIG]sequence=), see the ini file examples:
[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
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)


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.

More
15 Nov 2014 12:01 #53106 by dgarrett

As you can see it starts sending out -1 instead of +1 even when turning the MPG the same direction.

yes -- that sequence looks defective

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:

fractional scale values are not yet supported

there will be a patch soon to address fractional scales

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

More
27 Nov 2014 08:38 #53470 by Connor9220

As you can see it starts sending out -1 instead of +1 even when turning the MPG the same direction.

yes -- that sequence looks defective

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:

fractional scale values are not yet supported

there will be a patch soon to address fractional scales


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.

More
27 Nov 2014 08:59 #53471 by dgarrett

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

More
30 Nov 2014 07:27 #53539 by Connor9220
okay, so, what do you change in the config files to support .0001 ?

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

Time to create page: 0.366 seconds
Powered by Kunena Forum