XHC-HB04 wireless MPG pendant HAL module

More
11 years 6 months ago - 11 years 6 months ago #57543 by etnur
Thank you for your support !
Excuse my bad English

The Script run :) .

One little problem is still here.
The Macro-2 button doesn't work, only this button :(
I hope the pedant isn't defect.

If I watch the Macro-button in the HAL-SHOW module, it doesn't toggle the light, after push the button, the OK LED at the pedant flashed.

But if I push the SAFE-Z Button the Macro-2 light change the state too.
Also there is a connection between SAFE-Z and Macro-2 button.
Where is defined the connection . I can't find it.

All other button works fine, so I see.

I hope you can follow my explanation, and you can help me.

Thanks a LOT !!!!
Frank
Last edit: 11 years 6 months ago by etnur. Reason: expanded the text

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

More
11 years 6 months ago - 11 years 6 months ago #57548 by dgarrett
You can test the pendant without using any parts of linuxCNC
or Hal by running the driver program from the command line.

This test should help determine if the device is not generating codes
as expected.

Example (18 button pendant, rotary switch in off postion):
Code:
$ xhc-hb04 -h # -h shows usage $ $ xhc-hb04 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.jog.minus-a xhc-hb04: waiting for XHC-HB04 device xhc-hb04: found XHC-HB04 device ... ... 04 0B 00 00 00 07 <--- macro-2 button pressed (BUTTON=0B) 04 00 00 00 00 0C <--- macro-2 button released ... 04 08 00 00 00 04 <--- Safe-Z button pressed (BUTTON=08) 04 00 00 00 00 0C <--- Safe-Z button released ...
(The BUTTON codes in the second byte position correspond to the
items in the xhc-hb04-layout2.cfg)
Last edit: 11 years 6 months ago by dgarrett.

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

More
11 years 6 months ago #57604 by etnur
The error was in the config file .
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.

More
11 years 6 months ago - 11 years 6 months ago #57683 by nooob
hi,

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?
Last edit: 11 years 6 months ago by nooob.

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

More
11 years 6 months ago #57699 by andypugh

nooob wrote: 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.

More
11 years 6 months ago #57979 by Gasman
I recently ordered what I believed to be an HB04 pendant from Ebay. The pictures didn't show the model number and the device has taken a while to arrive. The device that has been shipped is an HB03. Bit cross with the seller as the model number is clearly visible on the device but has been airbrushed out of the advert photos. :angry: Otherwise, visually it looks the same as the 18 button HB04.

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.

Time to create page: 0.070 seconds
Powered by Kunena Forum