Pendant WHB04B on LinuxCNC 2.7 / Debian

More
06 Apr 2020 21:56 #162974 by Peterdeleu
Hi,

I've received my Pendant a few days ago and I've spend many hours trying to get it working.
The receiver is visible in Linux, so I thing I miss a driver.
There are a few articles where there's a solution described, but still the pendant isn't working.
I've followed this :
but even after upgrading to Debian 2.9, there are things missing to run the command ./configure --with-realtime=uspace. (error : Bwidget is missing, but it installed, ... )

I'm a linux newby, so it is not easy to read and interpret the available articles.
Is there a "easy" way to get the pendant working? (Linuxcnc upgrade, Debian upgrade, ....)

Regards
Peter

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

More
06 Apr 2020 23:46 #162982 by alkabal
Hi

Maybee you can try to use my fork with updated pendant driver

github.com/alkabal/linuxcnc

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

More
06 Apr 2020 23:51 - 07 Apr 2020 00:11 #162985 by alkabal
If you dont want to compile the whole linucnc 2.9 i share my bin for LCNC 2.9 and HAL exemple

You need to rename the file "example-configuration.md" to "xhc-whb04b-6.hal" copy this file to your config folder

edit your ini file and add in this section
[HAL]
HALFILE = xhc-whb04b-6.hal

You need to copy the file "xhc-whb04b-6" in the bin folder where you can locate axis and other LCNC binaries (i think for apt-get version in the folder "/usr/bin" and for run in place in the source subfolder "bin")
You need to copy the files "99-xhc-whb04b-6.rules" in the folder /lib/udev/rules.d
Attachments:
Last edit: 07 Apr 2020 00:11 by alkabal.

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

More
07 Apr 2020 11:09 #163039 by Peterdeleu
Ok, I'll give it a try.
First I have to install a new Debian/LinuxCNC (2.9).
I'll do the installation in a virtual machine. Because I don't want to blow up my original configuration :).

Tx!!

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

More
07 Apr 2020 11:19 #163041 by Peterdeleu
What ISO do I have to download to be up to date?
Is this the best version?

found on : linuxcnc.org/downloads/

LinuxCNC Uspace 2.7.0 Debian 9 Stretch
The LinuxCNC Buildbot builds several different versions of OS’s and is the best way to get the 2.8 (master) version. If you have a gantry type of machine the 2.8 supports dual motor gantry homing.

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

More
07 Apr 2020 18:57 #163087 by alkabal
Sorry i can't really help for install selection, i have followed the raspberry information from JT

i think they are other helpfull information
gnipsel.com/linuxcnc/uspace/

Br

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

More
07 Apr 2020 20:15 #163088 by Peterdeleu
I tried this, but I have an error message during startup.
See the screenshot.
Attachments:

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

More
07 Apr 2020 20:18 - 07 Apr 2020 20:26 #163089 by alkabal
It is XHC-WHB04B-6 or XHC-WHB04B-4 ?

have you do : You need to copy the files "99-xhc-whb04b-6.rules" in the folder /lib/udev/rules.d

i think the error is related to this rules file because you have error waitpid displayed, if your device is XHC-WHB04B-4 i haven't test this one but i can try to compile a version with correct PID/VID with another rules file

in your ini you need to have something like this :

[HALUI]
MDI_COMMAND=(debug,macro0)
MDI_COMMAND=(debug,macro1)
MDI_COMMAND=(debug,macro2)
MDI_COMMAND=(debug,macro3)
MDI_COMMAND=(debug,macro4)
MDI_COMMAND=(debug,macro5)
MDI_COMMAND=(debug,macro6)
MDI_COMMAND=(debug,macro7)
MDI_COMMAND=(debug,macro8)
MDI_COMMAND=(debug,macro9)
MDI_COMMAND=(debug,macro10)
MDI_COMMAND=(debug,macro11)
MDI_COMMAND=(debug,macro12)
MDI_COMMAND=(debug,macro13)
MDI_COMMAND=(debug,macro14)
MDI_COMMAND=(debug,macro15)
MDI_COMMAND=(debug,macro16)
Last edit: 07 Apr 2020 20:26 by alkabal.

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

More
07 Apr 2020 20:27 - 08 Apr 2020 12:03 #163091 by alkabal
asap this driver is planned to add to current master

github.com/LinuxCNC/linuxcnc/pull/714
Last edit: 08 Apr 2020 12:03 by alkabal.

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

More
07 Apr 2020 20:29 #163092 by Peterdeleu
It is a XHC-WHB04B-4.

The rule file is in the /lib/udev/rules.d folder.
But I don't have the HALUI in the ini file.
Do I need to ad this?

[HALUI]
MDI_COMMAND=(debug,macro0)
...

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

Time to create page: 0.115 seconds
Powered by Kunena Forum