XHC LHB04B-4: fails to detect - SOLVED

More
19 Nov 2019 19:15 #150673 by travis036
i think it is loaded via HAL, so i posted it here.

LinuxCNC fails to detect my new XHC LHB04B-4 (cost a lot, so i hope it is compatible).
info about it from dmesg:

[ 2534.612057] usb 2-2: new full-speed USB device number 6 using uhci_hcd
[ 2534.766028] usb 2-2: New USB device found, idVendor=10ce, idProduct=eb93
[ 2534.766036] usb 2-2: New USB device strings: Mfr=1, Product=0, SerialNumber=0
[ 2534.766041] usb 2-2: Manufacturer: KTURT.LTD
[ 2534.774062] generic-usb 0003:10CE:EB93.0005: hiddev0,hidraw0: USB HID v1.10 Device [KTURT.LTD] on usb-0000:00:10.0-2/input0


any thoughts?
Thanks,
~Travis

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

More
19 Nov 2019 19:38 #150674 by travis036
i have tried to re-compile the module from wiki.linuxcnc.org/cgi-bin/wiki.pl?Using_...Wireless_MPG_Pendant
wiki.linuxcnc.org/uploads/xhc-hb04-V06.tgz

but i get:
make: Warning: File `Makefile' has modification time 2e+08 s in the future
g++ -I/usr/include/linuxcnc -DVERSION=V06 xhc-hb04.cc -o xhc-hb04 -lusb-1.0 -lm -llinuxcnchal -llinuxcncini
xhc-hb04.cc:31:31: fatal error: libusb-1.0/libusb.h: No such file or directory
compilation terminated.
make: *** [xhc-hb04] Error 1

so i try:
sudo apt-get install libusb-1.0-0-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libusb-1.0-0-dev
E: Couldn't find any package by regex 'libusb-1.0-0-dev'

any thoughts?

~Travis

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

More
19 Nov 2019 21:42 #150682 by travis036
well, this is an interesting turn of events... i used "sudo apt-get remove libusb-1.0" thinking all i had to do was re-install it... well, it managed to uninstall LinucCNC, and a bunch of other important files... :(

so... i am downloading the 2.7.14 distro (only had a distro copy of 2.7.0), and i am going to start fresh. i still have my config files, but i am going to start over with the distro install.

With any luck, i will be back up and going, at some point...

~Travis

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

More
20 Nov 2019 11:45 #150740 by travis036
so, i am planning to do the distro re-install a bit later this morning.

in the meantime, i have located the "driver" source on the LinuxCNC GitHub ( github.com/LinuxCNC/linuxcnc/blob/master...er_comps/xhc-hb04.cc ).

i was reading through the source, and found references to the USB hardware addresses on line 822 (0x10CE, and 0xEB70). would it be as simple as changing 0xEB70 to 0xEB93, and somehow re-compiling the "driver"?

~Travis

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

More
20 Nov 2019 18:57 #150780 by travis036
Ok, my CNC computer is back up and running... how do i get my pendant to work? will i have to write a HAL module from scratch? or has somebody figured it out already? i can't return the pendant (China), so somehow i have to make it work.

~Travis

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

More
20 Nov 2019 21:26 #150799 by travis036
i found this thread: forum.linuxcnc.org/10-advanced-configura...-pulse-coder?start=0

deeper in, i found reference to this GitHub: github.com/ctbenergy/linuxcnc/tree/2.7-feature-xhc-whb04b-6
further into that, a folder: github.com/ctbenergy/linuxcnc/tree/2.7-f...r_comps/xhc-whb04b-6

assuming i can even get it to compile, can i take that folder, and insert it into the same folder for the 2.7.14 source, and compile it, and use it on my machine? mine is the LHB04B-4 (wired version, 4 axis, vs wireless, 6 axis). i am assuming that from a fresh install of distro 2.7.14, that the dependencies are there already.
i am not sure if i will have time tomorrow or not, to try it. i have downloaded both source versions of LinuxCNC already, but my CNC computer is off, out in the CNC shed, so i can't SSH into it right now to try it (just made a cup of coffee, and i don't feel like going out in the cold right now ;) ).

i hope it works, or can be made to work. the price of the pendant, if i can't use it, is quite a lot.

~Travis

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

More
20 Nov 2019 21:37 #150800 by Leon82

well, this is an interesting turn of events... i used "sudo apt-get remove libusb-1.0" thinking all i had to do was re-install it... well, it managed to uninstall LinucCNC, and a bunch of other important files... :(

so... i am downloading the 2.7.14 distro (only had a distro copy of 2.7.0), and i am going to start fresh. i still have my config files, but i am going to start over with the distro install.

With any luck, i will be back up and going, at some point...

~Travis


Ouch.

I managed to rm my system app folder on my Driodx once. I battled waves of force close pop-ups and managed to get to the recovery to load a backup.

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

More
21 Nov 2019 10:21 #150820 by travis036

Ouch.

I managed to rm my system app folder on my Driodx once. I battled waves of force close pop-ups and managed to get to the recovery to load a backup.


yeah, glad the LinuxCNC distro is so complete in it's install, all i had to do was setup a BS configuration (to create the files not in the backup), and then copy my backed up configs over the BS ones, and i was back up to date. it really is a well designed distro.

now if i can just get my new pendant to work, i will be very happy. i think the hal "driver" i referenced will likely work, maybe with some modifications if needed, but it depends on if the distro comes with the needed dependencies to compile it. i will follow the instructions on linuxcnc.org/docs/devel/html/code/building-linuxcnc.html and hope for the best.

~Travis

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

More
21 Nov 2019 16:38 #150846 by travis036
ok, i downloaded the source, copied the "driver" code to the source tree, and ran from the root of the source folder:
>cd debian
> ./configure uspace
> cd ../

>dpkg-buildpackage -b -uc
dpkg-buildpackage: source package linuxcnc
dpkg-buildpackage: source version 1:2.9.0~pre0
dpkg-buildpackage: source changed by Sebastian Kuzminsky <seb@highlab.com>
dpkg-buildpackage: host architecture i386
 dpkg-source --before-build linuxcnc-master
dpkg-checkbuilddeps: Unmet build dependencies: libudev-dev libgnomeprintui2.2-dev tcl8.5-dev tk8.5-dev libreadline-gplv2-dev asciidoc (>= 8.5) dblatex (>= 0.2.12) dvipng graphviz groff imagemagick inkscape python-lxml source-highlight texlive-extra-utils texlive-font-utils texlive-fonts-recommended texlive-lang-cyrillic texlive-lang-french texlive-lang-german texlive-lang-polish texlive-lang-spanish texlive-latex-recommended w3c-linkchecker xsltproc libxmu-dev libglu1-mesa-dev libgl1-mesa-dev | libgl1-mesa-swx11-dev libboost-python-dev libmodbus-dev (>= 3.0) libusb-1.0-0-dev yapps2
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)

so, i have a bunch of dependencies needed...
> sudo apt-get install libudev-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libudev-dev

so right off the bat, i have some real issues... how can i compile anything, if the deps i need, are unavailible?

contents of /etc/apt/sources.list:
deb http://archive.debian.org/debian wheezy main contrib non-free
deb-src http://archive.debian.org/debian wheezy main contrib non-free
deb http://archive.debian.org/debian wheezy/updates main contrib non-free
deb-src http://archive.debian.org/debian wheezy/updates main contrib non-free
deb http://archive.debian.org/debian-security wheezy/updates main contrib non-free
deb-src http://archive.debian.org/debian-security/ wheezy/updates main contrib non-free
>sudo nano /etc/apt/sources.list
changed to:
# deb http://archive.debian.org/debian wheezy main contrib non-free
# deb-src http://archive.debian.org/debian wheezy main contrib non-free
# deb http://archive.debian.org/debian wheezy/updates main contrib non-free
# deb-src http://archive.debian.org/debian wheezy/updates main contrib non-free
# deb http://archive.debian.org/debian-security wheezy/updates main contrib non-free
# deb-src http://archive.debian.org/debian-security/ wheezy/updates main contrib non-free
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free
deb http://ftp.us.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.us.debian.org/debian/ wheezy main contrib non-frees main contrib non-free
>sudo apt-get install libudev-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libudev-dev

is there an easier way to get the 2.7.14 distro to resolve dependencies? is there a dev package i can install?

thanks in advance for any help!

~Travis

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

More
21 Nov 2019 21:22 #150859 by travis036
reinstalled distro 2.7.14, again. whatever i did, didn't like me.

so, unless somebody knows how to get my computer to compile code, i will sadly leave it be, and use the PITA old one. maybe i can convert it to external power, while i wait for help on my new wired pendant.

~Travis

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

Time to create page: 0.129 seconds
Powered by Kunena Forum