alde103
Hi all, has anyone worked with EtherCAT and Nerves before?
I’m quite new with Ethercat, so I’m looking for a good starting point like a reliable and recommended library (and easy to use haa) that handles Ethercat that can be added to a nerves custom system.
Thanks in advance
.
Trending in Questions
Hello everyone!
I am new to coding with Elixir/Erlang. And i am looking for some utilities for fuzzing testing like AFL++.
Does anyone ...
New
I’m very new to Elixir, so sorry if this is a silly question:
I am wondering what happens to the mailbox of a process when the machine i...
New
How do I tell Hologram not to escape HTML when substituting into templates?
{Textile.render(@product.long_description)}
escapes the HTM...
New
Background
When trying to execute mix release on a Windows 11 machine for a Phoenix project I get the following error:
* assembling mark...
New
I load tested a plain Phoenix chat app backed by Postgres with 100 million messages in it, everything on default settings, to see what br...
New
I’d like to create a file with 600 permissions (rw-------), but there’s a race condition if I create it and then change the permissions. ...
New
Is there a way to import record definitions in the iex shell for pretty printing (similar to the rr command in the erl shell)? This woul...
New
Other Trending Topics
Edit: 2026 May 15 - This post is archived.
Mob is alive!!
Main docs: mob v0.7.11 — Documentation
A bit of explanation for the slightly c...
New
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly)
AI dream has many faces, but general...
New
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Hi everyone :waving_hand:
I’ve been working on PhiaUI, an open-source UI component library for Phoenix LiveView, and I wanted to share i...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #code-sync
- #discussion
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #ai
- #elixirconf-us
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #blog-post
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #security
- #elixirconf-eu
- #processes
- #api
- #forms
- #hex










Showing Posts 1 to 5- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
ElixirTip
I’ve worked with EtherCAT. Nerves uses Buildroot which includes an EtherCAT package
igh-ethercat. It goes through the standard network stack. It also has a few hardware drivers such ase100for better performance. To include it you need to make a custom Nerves system and add the package.Ultimately, we found it didn’t have the performance we needed for our specific hardware. So we made a custom, private Nerves system that uses Acontis’s EtherCAT offering.
alde103
Thanks for the answer, you give me a good path to follow !!! :).
If you do not mind to tell us, did you used the nerves official supported hardware or another one?
I’m asking it because I’m planning to use a Rpi3 and I want to know if it’s worth to looking at igh-ethercat or directly to the Arcontis, or which were your performance limitations that igh-ethercat doesn’t accomplished?
Also I want to ask:
In your opinion, which package is more friendly to use (or to make an elixir wrapper)?
Thanks in advance…
ElixirTip
We had problems with
igh-ethercatwith raspberry pi. It simply couldn’t compile theigh-ethercatpackage. We never figured out why. It worked with BeagleBone Black and that’s what we’re still using.We needed sub-millisecond response times on EtherCAT.
igh-ethercatdoesn’t provide hardware drivers for BBB (or RPi). So it was taking several milliseconds for a round trip.If you don’t need that level of performance, then go with
igh-ethercat. It’s also open source. Actontis provides proprietary, enterprise-level solutions so you’ll be paying quite a bit for it.alde103
Hi all, here is an update of this thread; first, I tried to build
igh-ethernetpackage in buildroot for a rpi3, however, since rpi3 doesn’t have anyigh-ethernetsupported hardware. Theigh-ethernetneeds to be compiled with--enable-genericoption, therefore, I needed to add a customigh-ethernetpackage to buildroot, also I enabled udev, taskset packages. Despite this, I had these types of warnings during compilation:The following error was shown during runtime:
At this point I thought it could be a kernel version issue, since when compiling a similar repository (for bbb), the compilation works without warnings, therefore, I lost interest in using
igh-ethernethaha.The second option was the arcontis software
atemsys, which it appears to be easier to compile, so I added a custom package to buildroot, however, during compilation I had the same type of warning (only 1 warning) as before:Therefore, it also fails at runtime.
My third option was the SOEM project, I had no issue with this library (compiles with no warnings), however, this package is refered by the community more as a library than a master software, therefore, I think that its better to make an Elixir wrapper than add the package in buildroot.
Giving another chance to the previous options (atmsys, igh-ethernet) and looking the bbb project, it seems that by disabling
CONFIG_TRIM_UNUSED_KSYMS=yin linux-x.x.defconfig both packages works in runtime !!!The option
CONFIG_TRIM_UNUSED_KSYMS=yseem to be to trim exported kernel symbols that are not used, which for me seems that it makes the opposite, I also do not know what kind of problems I am creating when disabling this option :(, Does anyone knows?Currently, the problem in which I am working with
igh-ethernetis to open a device/dev/EtherCAT0that does not exist, but I think it’s a matter of executing some package commands and defining some rules in/etc/udev/rule.d(this directory does not exist either).Does anyone know how to define these rules in Nerves?, or does it have to be done in Buildroot?
Regards.
n0gg1n
If anyone is still stumbling upon this problem, I’ve written two libraries which are both running on <10ms cycle time on a Rpi4: