is there driver for the new XHC-WHB04B-4

More
13 Dec 2017 19:38 #103089 by wolrah
I'm sorry, I could have phrased the question to be more clear.

Can I install your branch of 2.8 on top of the same Linux installation that is presently on the computer?

Asked another way;
Do I need to install a fresh copy of Linux RTAI and then download/build your branch?

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

More
14 Dec 2017 06:07 #103099 by smalla
You can download to a separate directory and compile there, and run from there or copy the binaries to your build. You can even merge with current branch as it can be done without errors, and should compile.

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

More
15 Dec 2017 19:49 #103144 by Alex.Shamilich
Hi Smalla!
I have WHB04B-6 to and trying to connect to my linuxcnc 2.7.11.

* I've cloned and compiled fork (github.com/smalla/linuxcnc) - without errors, all tests ok.
* connected usb receiver
* setup rules for /etc/udev/rules.d/90-whb04b.rules
* get working from /usr/bin/whb04b and get answers form controller
at@linuxcnc:~$ /usr/bin/whb04b 
Creating pin: whb04b.x.pos-absolute
...
...
Creating pin: whb04b.jog.minus-c
whb04b: waiting for whb04b device
whb04b: found whb04b device
04 DF 00 00 0D 11 02 07 MPG delta  +2
04 54 00 00 0D 11 00 04 
04 B5 00 00 0D 11 FF 05 MPG delta  -1
04 3D 00 00 0D 11 00 05 
04 9D 0F 00 0D 11 00 16 
04 87 00 00 0D 11 00 07 
* but when i'm trying to start LinuxCNC with config, and i'm getting duplicate component name ERROR:
Found file(REL): ./core_sim9.hal
Found file(lib): /usr/share/linuxcnc/hallib/whb04b.tcl
HAL: ERROR: duplicate component name 'whb04b'
whb04b: ERROR: hal_init failed

whb04b.tcl: loadusr whb04b:
<waitpid failed whb04b whb04b
whb04b exited without becoming ready>

 Is it plugged in?

 Are permissions correct?

 Continuing without whb04b
 
Failing cmd:
loadusr -W whb04b -I /usr/share/linuxcnc/hallib/whb04b-layout1.cfg -H -x -s 3
* HALFILE = whb04b.tcl - only once in whb04b-6.ini file


Please help :)

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

More
18 Dec 2017 09:30 #103277 by smalla
It will be a recursion in the configuration somehow, and it tries to load the module twice.

I will try to reproduce the error.
The following user(s) said Thank You: Alex.Shamilich

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

More
19 Dec 2017 19:47 #103354 by Alex.Shamilich
Smalla, thanks for your reply :)

I' recompiled again and get working controller on 2.8.0 (LCD on controller works not correct - coordinates not changes)
May be i'm not correctly transfer compiled whb04b module from your fork to my production 2.7.11 ?

Which files i have to copy ?
1) All from config
2) ~/linuxcnc-dev/bin/whb04b

I'm not find whb04b_util.ko - only ~/linuxcnc-dev/rtlib/whb04b_util.so

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

More
20 Dec 2017 06:54 #103382 by smalla
Hi, it wont work with 2.7.xxx, only with 2.8.xxx. There is a whb04b.tcl file somewhere in the tree (search whb04b), that converts the joints and axes and build up the display. As 2.7 doesnt have joints, it would probably fail, You need to rewrite it for axes only.

there is no .ko file, as far as I remember.

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

More
23 Apr 2019 16:53 #131668 by careyer
Hello everybody,
Hello smalla,

ordered a regular (old) HB04 from China and they shipped a WHB04B-4 instead. Even though I really like the layout of this unit it does not work with my LinuxCNC 2.7.11 - Is there any progress in getting this to work with 2.7?

Thank you very much for your kind help!
Cheers!
Thomas

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

More
23 Apr 2019 18:00 #131676 by fixer
if you scroll to the bottom of the page in this subforum you will find my python component for the new WHB. I use it on production machine for over one month now and haven't had any issues.

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

More
23 Apr 2019 18:47 - 23 Apr 2019 18:59 #131678 by careyer
Hello fixer,

thank you very much for your quick answer! Sorry.. but what page exactly should I scroll down to the bottom? Can you please gimme a hint/link? Thank you very much! Update: I suppose you refer to this: forum.linuxcnc.org/24-hal-components/361...4-4-python-component ?

How do I install it? Display still ain't working, right?

Thank you very much!
Cheers!
Last edit: 23 Apr 2019 18:59 by careyer.

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

More
02 May 2019 07:19 #132493 by smalla
My code should work with the WHB04B-4 with some USB ID changes in the code, but only with LinuCNC v 2.8.

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

Time to create page: 0.098 seconds
Powered by Kunena Forum