update-ethercat-config

More
1 year 7 months ago #324676 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
1 year 7 months ago #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
1 year 7 months ago - 1 year 7 months ago #325146 by Hakan
Replied by Hakan on topic update-ethercat-config
To reload the settings in /etc/ethercat.conf I restart the ethercat service
Code:
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: 1 year 7 months ago by Hakan.
The following user(s) said Thank You: Grotius, CORBETT

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

More
1 year 7 months ago #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
1 year 7 months ago #325199 by papagno-source
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
1 year 7 months ago #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.

Time to create page: 0.342 seconds
Powered by Kunena Forum