update-ethercat-config

More
23 Mar 2025 18:18 #324676 by papagno-source
update-ethercat-config was created by papagno-source
Hi . on Debian 10 with ethercat , for refresh configuraztion the ethercat i was use command : sudo -S update-ethercat-config

Now stey use debian 12 with ethercat 1.6 installed with step-by step procedure, but the command  sudo -S update-ethercat-config
 return command not know.

When change the file etc/ethercat.conf how can refresh ethercat on debian 12 ?

Thanks

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

More
27 Mar 2025 22:49 #325121 by Grotius
Replied by Grotius on topic update-ethercat-config
Hi,

At the end of this file are some commands like : systemctl restart systemd-modules-load.service
 
The following user(s) said Thank You: CORBETT

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

More
28 Mar 2025 08:48 - 28 Mar 2025 08:49 #325146 by Hakan
Replied by Hakan on topic update-ethercat-config
To reload the settings in /etc/ethercat.conf I restart the ethercat service
sudo service ethercat restart

There are probably ways to just have the ethercat service re-read the config but that's how I do it.
Last edit: 28 Mar 2025 08:49 by Hakan.
The following user(s) said Thank You: Grotius, CORBETT

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

More
28 Mar 2025 16:47 #325174 by CORBETT
Replied by CORBETT on topic update-ethercat-config
Just to expand on what Grotius and Hakan have pointed you in the right direction as they are totally correct for how things are done today, and you are thinking of how it was done the old way.

I remember your name and I'm sure you were using "ec-debianize" and you are most likely still use to the old way of how it was done.  Things changed a few years back as "ec-debianize" has been deprecated and therefore the "sudo update-ethercat-config" command is no longer used.

Just to clarify a little further, you don't have to do a reload for how things are done today whether you do a full source build or Rod's Repo install.  Neither way requires a reload after the install as once you do all the "systemctl enable and systemctl start" commands from the install, then it works over and over and what is confusing you is that you are use to doing a "sudo update-ethercat-config" after setting up the ethercat.conf file.  Trust me, it's fully burned into my brain also... I will never forget that command LOL.

Also this command was used for 2 purposes back in the day.  #1 was for loading the ethercat.conf file and getting E-CAT working from a fresh build, but #2 it was also if you had a setup with startup hardware/permission issues.  So, if you did an "ec-debianize" build and once everything was installed but yet when you did a "ethercat master" you would get a "Failed to obtain number of masters... ", so you could do a "sudo update-ethercat-config" to get it reloaded and working.  For some reason, an ec-debianize build would once in awhile not work on start-up and this was an easy quick fix instead of doing a reboot of the system over and over until the master worked.  If you have this issue with Rod's Repo install or a source build and need to do the same type of fix, use the "sudo chmod 777 /dev/EtherCAT0" command as this will do the same as "sudo update-ethercat-conf" to get the master up and working.  None of the other commands will work for this problem as I have checked all the different ways.  I have several setups that work flawlessly, but I have 2 with hardware issues and this is the quick fix to get the master up.

Hope it helps.
Robert


@Grotius and Hakan: Alway's glad to see you guys here helping us all.


 
The following user(s) said Thank You: Grotius

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

More
28 Mar 2025 21:59 #325199 by papagno-source
Replied by papagno-source on topic update-ethercat-config
Yes , in 2.9.0-pre0 i use ec-debianize.
Now stay test debian 12 with ethercat and have execute step-by step procedure, writed by CORBETT.
Thanks for this.
I have see on debian 12 , but stay again study this problem , the value the all pin the Ethercat drives , they are written late in the associated hal pins, compared to the version I currently use with debian 10 and I can't understand why.
I tried using ethercat version 1.6 and 1.5, but the problem persists.
basically, once linuxcnc is started, the position values ​​of the axes are written in hal after a few seconds and starting from the sequence order of connection of the drives, that is, first the position value of x appears, after 1 second y, after z and so on, after having finished writing all the drives the positions are updated quickly.
Could it be that in the xml file, I configured drives that in reality are not on the machine?
I do this so as to still have all the associated pins in hal and then depending on the machine configuration they work or not equally.

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

More
28 Mar 2025 22:47 #325201 by Hakan
Replied by Hakan on topic update-ethercat-config
Wortwhile checking, you almost said it yourself.

You can also check "sudo dmesg" for suspicuous messages from the ethercat server. 
Provided your version logs diagnostics that way. The ethercat server installed with "sudo apt install linuxcnc-ethercat" does it anyway.

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

More
28 Mar 2025 23:32 #325205 by rodw
Replied by rodw on topic update-ethercat-config
Just to confim its not my repository, I just made existing repositories usable as easy as we could and joined some dots...
I started this because I was trying to install into Debian 11 and the old code repo was no longer maintained (it had moved).
The Etherlab team who provide the Ethercat master published their own repository
Then they got permission to add the ethercat-linuxcnc hal driver to that repository
Then Scott Laird got permission to take over management of the Ethercat hal driver and added a lot of extra drivers
Following that I made some introductions and now Scott's hal driver has a Buildbot that pushes any changes across to the Etherlab repo so everything is kept up to date in one place.
The cool thing about all this is Ethercat is available to Linuxcnc without Linuxcnc hosting anything which it cannot do due to licencing restrictions that require licencees of Ethercat be a registered company.

Finally, because I built the 2.9.x installer, I preinstalled the Etherlab repository into apt in the ISO on our downloads page.

So the easiest path to install Ethercat is to install the Debian 12 ISO and follow the sticky which is loosely Rod's repo install.
Now if you are using another Operating System or Linuxcnc 2.10, I wrote a script on this sticky which should set up apt on your system and install Ethercat.
forum.linuxcnc.org/ethercat/53785-instal...thercat-repositories

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

More
29 Mar 2025 12:34 #325242 by papagno-source
Replied by papagno-source on topic update-ethercat-config
I apologize, but I ask you for help.
At this point if I used 2.9.x I have to perform a procedure, while for 2.10, I have to perform another procedure.
I installed debian 12 with uspace, from the iso image downloaded from the lunuxcnc download.
The next procedure to correctly install Ethercat and linux cnc to compile, where can I find it?

Many thanks

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

More
29 Mar 2025 15:11 #325251 by Hakan
Replied by Hakan on topic update-ethercat-config
That should be here forum.linuxcnc.org/ethercat/45336-etherc...step-by-step?start=0
You don't need to compile anything, it is ready to use.

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

Time to create page: 0.077 seconds
Powered by Kunena Forum