XHC-WHB04B-04 Got it working

More
21 Jan 2024 18:14 #291265 by Hendrixx
XHC-WHB04B-04 Got it working was created by Hendrixx
I spent hours upon hours on trying to get the new xhc wireless pendant working. While all the forum posts helped it wasn't until I started trying to match pins signals and tracking down errors that I realized the only thing throwing errors was the halui already connected mesage so instead of commenting out that line I just deleted the halui part of each of those connections and it viola. It is working for both my QTdragon and QTPlasma configs next step is to start assigning the macros, and buttons hope this helps someone.
Attachments:
The following user(s) said Thank You: tommylight, smc.collins, gardenweazel, Halbear, raf1110, GeckoWorks, Beukes, marcelovx23

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

More
22 Jan 2024 03:55 #291304 by smc.collins
Replied by smc.collins on topic XHC-WHB04B-04 Got it working
I will have to take a look, because I ran out of patience last year with it and walkd away.

and thank you
The following user(s) said Thank You: Halbear

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

More
22 Jan 2024 10:09 #291327 by Hendrixx
Replied by Hendrixx on topic XHC-WHB04B-04 Got it working
I should also mention I changed machine.is.on to machine-is-on, and i had to edit the udev rules so that the pendant was seen by my system,besides that, I just deleted the halui connection to all the startup errors one by one. All the functions seem to be working and the pendant is displaying the positional information. Remember to press continuous to allow it to jog, if you don't it will adjust the feedrate if you spin the pendant.
The following user(s) said Thank You: beefy, Vegolas, Halbear, GeckoWorks

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

More
09 Oct 2025 03:02 #336129 by marcelovx23
Replied by marcelovx23 on topic XHC-WHB04B-04 Got it working
[SOLVED] XHC-WHB04B-6 on LinuxCNC 2.9.6 (QtDragonHD + 7i96S) — Beginner notes
(I am sharing the exact steps I followed, written simply. Many threads assume advanced users; I am a beginner.)My machine / system
  • Gantry router XYYZ (dual Y motors), work area approx. 1300 x 1210 mm
  • Controller: Mesa 7i96S (Ethernet, step/dir)
  • Spindle: 2.2 kW, 24,000 RPM
  • UI: QtVCP / QtDragon_HD
  • OS: Raspberry Pi 5, Debian 12 (Bookworm)
  • LinuxCNC 2.9.6
What actually fixed it (short version)
  1. Load the pendant HAL file as a HALFILE (before the post-GUI), same as the donor machine.
  2. Add MDI_COMMAND lines under [HALUI] so pins halui.mdi-command-XX exist.
  3. Keep qtvcp_postgui.hal clean (only GUI signals, no pendant driver).
  4. In my case, moving the WHB USB dongle to another port made the wheel/jog and DRO updates work.
STEP 1 — Copy the pendant HAL file
Place xhc-whb04b-6.hal in your config folder (the same folder that has your .ini and main .hal), e.g.:
~/linuxcnc/configs/YOUR-MACHINE/xhc-whb04b-6.hal
STEP 2 — Load the pendant before the post-GUI
Open your .ini and in the [HAL] section add this line and keep this exact order:
[HAL]
HALUI = halui
HALFILE = CNC-CARPINTERA.hal
HALFILE = custom.hal
HALFILE = xhc-whb04b-6.hal ; <<< NEW: load the pendant here
POSTGUI_HALFILE = qtvcp_postgui.hal ; keep this AFTER
SHUTDOWN = shutdown.hal
Important: do not load the WHB driver inside qtvcp_postgui.hal.STEP 3 — Create MDI pins under [HALUI]
In the same .ini, find (or create) the [HALUI] section and paste this block right under it:
[HALUI]
MDI_COMMAND = (DEBUG,<1>) ; <<< NEW (good for testing macros)
MDI_COMMAND = G10 L20 P0 X[#<_x>/2.0] ; <<< NEW (zero X at part center)
MDI_COMMAND = G10 L20 P0 Y[#<_y>/2.0] ; <<< NEW (zero Y at part center)
MDI_COMMAND = (DEBUG,<4>) ; <<< NEW
MDI_COMMAND = (DEBUG,<5>) ; <<< NEW
MDI_COMMAND = G10 L20 P0 X0 ; <<< NEW (Zero X)
MDI_COMMAND = G10 L20 P0 Y0 ; <<< NEW (Zero Y)
MDI_COMMAND = G10 L20 P0 Z0 ; <<< NEW (Zero Z)
This creates halui.mdi-command-00..07 (indexes follow the order above).
Add more MDI_COMMAND lines if your xhc-whb04b-6.hal uses higher indices.Notes so jogging actually works
  • E-STOP released, Machine ON
  • Manual mode
  • Fully homed (for XYYZ: X, Y1, Y2, Z)
  • On the pendant, use Continuous, or Step + Step size
  • If the wheel does nothing or DRO does not update: try a different USB port/dongle (this was the final fix for me)
Thanks and request
Many thanks to the original thread’s author for sharing files and guidance.
If possible, could you post a short summary of the final button mapping (what each macro-N does, Continuous/Step, ABS/REL, etc.)? That would help beginners keep their configs consistent.If anyone needs it, I can share my final .ini, xhc-whb04b-6.hal, and a minimal qtvcp_postgui.hal exactly as they ended up.

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

More
09 Oct 2025 16:20 #336158 by Hendrixx
Replied by Hendrixx on topic XHC-WHB04B-04 Got it working
I don't use the pendant anymore and rely on a touch screen and wireless keyboard because my machine is a dual-use plasma /router, and I couldn't get plasmac.comp to play nice with the pendant. But once I get the table put back together, I will revisit and see if the berry is worth the squeeze.

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

More
09 Oct 2025 17:31 #336163 by marcelovx23
Replied by marcelovx23 on topic XHC-WHB04B-04 Got it working
First of all, thank you so much for your effort and for sharing your files—without them I never would have gotten mine working.
I learned the hard way that it’s not practical to have one machine serve as both a router and a plasma cutter, so I developed a very affordable “plasma router” that works perfectly, and now I keep the two machines separate.
I’m leaving a video so you can see it running in case it helps, and a link where you can download the 3D model and wiring diagrams. I’m sharing it as open-hardware to give back a little of the much that the community—and generous acts like yours—have given me.


3D model and wiring files here
opencnc.mx/wordpress/index.php/elementor-420/

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

More
09 Oct 2025 20:21 #336174 by Hendrixx
Replied by Hendrixx on topic XHC-WHB04B-04 Got it working
You're welcome, I'm glad you got it worked out. On the topic of separate machines, the logic is there and holds water; it's almost like multiprocess welders, unless you drop some serious money, you're compromising. And I, for one reason or another in the past, needed both couldn't afford both, or didnt have the space, I know I'm basically handicapping the machine, whichever gui is loaded but not ot the point, parts are out spec, or customers bringing stuff back. The plan is to build another machine for a 3 to 5k fiber laser, ditch the plasma altogether, and mount an ATC spindle and vacuum holding to this current one. I've been really good this year, hopefully a smoking deal comes through on BidSpotter for a laser source. This is the 5th iteration of a CNC gantry-style machine I've built. I went HAM on it just because I'm tired of being tired of not being satisfied with it.  The .5" flat bar on top has a reference shoulder machined in and a skimmed on both sides im gonna use jack screws every 12" or so in pairs to get this thing as coplanar, square and level as pyhics will allow, me to and then use a metalized epoxy to bed the bar to the frame and finaly a few stitch welds to lock it in.  ce la vie i gues. Your set up is pretty gangster 

 
Attachments:
The following user(s) said Thank You: tommylight

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

More
10 Oct 2025 16:57 #336199 by marcelovx23
Replied by marcelovx23 on topic XHC-WHB04B-04 Got it working
We have very similar goals. In the future, I also want an ATC and a fiber laser machine for metal cutting. I’ll be keeping an eye on BidSpotter as you mentioned, but I think I’ll end up buying the resonator and all the necessary parts for the fiber laser from some affordable Chinese supplier. Thank you so much for your support with the MPG, you’re a legend!

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

More
10 Oct 2025 20:27 #336226 by andypugh
Replied by andypugh on topic XHC-WHB04B-04 Got it working

it's almost like multiprocess welders, unless you drop some serious money, you're compromising. 
 

Off-topic but I am impressed with the multiprocess welder at my local Hackspace. It allows you to keep both MIG and TIG torches permanently connected and has separate gas input spigots for each process gas. 
You are not wrong about the "serious money" part, though. 

parweld.com/product/xtm211di/

(#notsponsored :-) )
The following user(s) said Thank You: tommylight

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

Time to create page: 0.230 seconds
Powered by Kunena Forum