Page 1 of 1

ESP-IDF libmodbus compatibility

Posted: Wed Oct 11, 2017 11:27 am
by playmean
Hello, I tried to add libmodbus as component to ESP-IDF environment, but compilation throws me this errors:

Code: Select all

$ make all
CC build/modbus/modbus-tcp.o
C:/msys32/opt/esp/esp-idf/components/modbus/modbus-tcp.c:31:24: fatal error: sys/ioctl.h: No such file or directory
compilation terminated.
make[1]: *** [/opt/esp/esp-idf/make/component_wrapper.mk:243: modbus-tcp.o] Error 1
make: *** [C:/msys32/opt/esp/esp-idf/make/project.mk:421: component-modbus-build] Error 2
How it can be fixed or maybe another esp32-friendly lib is present?

Re: ESP-IDF libmodbus compatibility

Posted: Wed Nov 08, 2017 5:42 pm
by shamsul
Hello Playmean,
Did you have a success with libmodbus? I'm looking for a Modbus library that people have successfully used with esp32.
Please share your experience.
Thanks in advance.

Re: ESP-IDF libmodbus compatibility

Posted: Thu Nov 30, 2017 8:08 pm
by spanky
I'm also interested in this.

I've used libmodbus a bunch in a linux environment, but it needs some non-trivial tweaks to get it to work on the esp32. Unfortunately some of the basic libraries are not yet implemented, so its either a case of heavily modifying libmodbus to workaround these missing components, or implementing the underlying libraries for the architecture.

Re: ESP-IDF libmodbus compatibility

Posted: Mon Mar 05, 2018 6:18 pm
by casmeiron
Hello,

Did anyone get this working? We're also in need of such library for ESP32 ESP-IDF platform.

Thanks!

Re: ESP-IDF libmodbus compatibility

Posted: Sat Aug 17, 2024 6:49 pm
by franzhoepfinger
Hi,

working on it.
seems reasonable effort to port libmodbus to ESP-IDF.

i will publish once running.

Re: ESP-IDF libmodbus compatibility

Posted: Sun Aug 18, 2024 9:12 pm
by franzhoepfinger