Hi, the XHC-HB04 and the XHC-WHB04B-4(6) are different devices in terms of encoding the signal.
I have made a driver for the XHC-WHB04B-6, as I have this device, but Im pretty sure it will work with the whb04b-4.
Maybe de usb device identifier needs to be replaced.
it can be found here in this fork:
github.com/smalla/linuxcnc
It only works for linuxcnc 2.8 series as configured to use joints and axes. I havent pushed it to the mainline yet, as it still has some bugs, mainly with the display:
The 4th line of the display is not reachable, its quite impossible to display all the stuff needed.
It can be used to drive the axes, but the display is lagging behind the actual position, I couldnt figure out why, and where the data is leaking, why the screen is not updated.
I can help You to install this driver, its not too complicated.