Re: [Emc-users] Hostmot2 (Use two cards)
On Mon, 12 Oct 2015, Karlsson & Wang wrote: > Date: Mon, 12 Oct 2015 00:04:31 +0200 > From: Karlsson & Wang > Reply-To: "Enhanced Machine Controller (EMC)" > > To: emc-users@lists.sourceforge.net > Subject: [Emc-users] Hostmot2 (Use two cards) > > I am trying to use two ethernet cards at the same time with the hostmot2 > driver but get an error message "waitpid failed". I suspect this is because > I try to load the low level driver twice, do anybody have an idea if this > might be the case? > > Regards Nicklas Karlsson You load the driver only once with multiple sets of config info in the driver command line (IP addresses etc) I've had 4 cards running simultaneously for about a month at 2 KHz without issue > > -- > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > Peter Wallace Mesa Electronics (\__/) (='.'=) This is Bunny. Copy and paste bunny into your (")_(") signature to help him gain world domination. -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Hostmot2 (Use two cards)
The "waitpid" error is a very generic error that indicates some sub-program has failed. So look for other messages that give a more specific indication of the problem. Here is a loadrt line I used when I was testing 3 hostmot2 ethernet boards: loadrt hm2_eth config="num_encoders=1 num_pwmgens=1 num_stepgens=1 enable_raw=1,enable_raw=1" board_ip=192.168.1.123,192.168.1.122,192.168.1.121 To see which config goes with which board-ip, just look for the commas and match up the strings 192.168.1.123 num_encoders=1 num_pwmgens=1 num_stepgens=1 enable_raw=1 192.168.1.122 enable_raw=1 192.168.1.121 [defaults] You would only 'loadrt' hm2_eth once, even for multiple cards. If you have two separate loadrt lines, it's definitely not going to work. Check that each card works individually. Remember that you have to configure them manually to have distinct IP addresses. If you are still encountering trouble, show us your whole hal file and the whole output that occurs when trying to start linuxcnc from a terminal. Jeff -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Hostmot2 (Use two cards)
Now it works, there where a few other issues to in particular the two devices had the same MAC adress. I actually need to have two rows: loadrt hostmot2 loadrt hm2_eth ... similar as your row below Regards Nicklas Karlsson > The "waitpid" error is a very generic error that indicates some > sub-program has failed. So look for other messages that give a more > specific indication of the problem. > > Here is a loadrt line I used when I was testing 3 hostmot2 ethernet > boards: > > loadrt hm2_eth config="num_encoders=1 num_pwmgens=1 num_stepgens=1 > enable_raw=1,enable_raw=1" board_ip=192.168.1.123,192.168.1.122,192.168.1.121 > > To see which config goes with which board-ip, just look for the commas > and match up the strings > 192.168.1.123 num_encoders=1 num_pwmgens=1 num_stepgens=1 enable_raw=1 > 192.168.1.122 enable_raw=1 > 192.168.1.121 [defaults] > > You would only 'loadrt' hm2_eth once, even for multiple cards. If you > have two separate loadrt lines, it's definitely not going to work. > > Check that each card works individually. Remember that you have to > configure them manually to have distinct IP addresses. > > If you are still encountering trouble, show us your whole hal file and > the whole output that occurs when trying to start linuxcnc from a > terminal. > > Jeff > > -- > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Hostmot2 (Use two cards)
On 12 October 2015 at 03:37, Jeff Epler wrote: > loadrt hm2_eth config="num_encoders=1 num_pwmgens=1 num_stepgens=1 > enable_raw=1,enable_raw=1" board_ip=192.168.1.123,192.168.1.122,192.168.1.121 Does HAL support continuation lines? Some of the parameter lists are getting very unwieldy. loadrt hm2_eth config="num_encoders=1 num_pwmgens=1 num_stepgens=1 enable_raw=1, \\ enable_raw=1" \\ board_ip=192.168.1.123, \\ 192.168.1.122, \\ 192.168.1.121 Would be rather clearer. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Hostmot2 (Use two cards)
On 12 October 2015 at 13:07, andy pugh wrote: > Would be rather clearer. Well, it would if Gmail didn't re-format text anyway :-) -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Hostmot2 (Use two cards)
On Mon, Oct 12, 2015 at 01:07:42PM +0100, andy pugh wrote: > On 12 October 2015 at 03:37, Jeff Epler wrote: > > loadrt hm2_eth config="num_encoders=1 num_pwmgens=1 num_stepgens=1 > > enable_raw=1,enable_raw=1" > > board_ip=192.168.1.123,192.168.1.122,192.168.1.121 > > Does HAL support continuation lines? Some of the parameter lists are > getting very unwieldy. No, but the underdocumented option to use .tcl files for hal configuration does. Jeff -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users