ESP-IDF libmodbus compatibility

playmean
Posts: 2
Joined: Wed Oct 11, 2017 11:18 am

ESP-IDF libmodbus compatibility

Postby playmean » Wed Oct 11, 2017 11:27 am

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?

shamsul
Posts: 4
Joined: Tue Jul 25, 2017 6:11 pm

Re: ESP-IDF libmodbus compatibility

Postby shamsul » Wed Nov 08, 2017 5:42 pm

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.

spanky
Posts: 13
Joined: Thu Nov 30, 2017 6:35 pm

Re: ESP-IDF libmodbus compatibility

Postby spanky » Thu Nov 30, 2017 8:08 pm

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.

casmeiron
Posts: 4
Joined: Thu Dec 07, 2017 7:39 pm

Re: ESP-IDF libmodbus compatibility

Postby casmeiron » Mon Mar 05, 2018 6:18 pm

Hello,

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

Thanks!

franzhoepfinger
Posts: 21
Joined: Wed Mar 04, 2020 7:14 pm

Re: ESP-IDF libmodbus compatibility

Postby franzhoepfinger » Sat Aug 17, 2024 6:49 pm

Hi,

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

i will publish once running.


Who is online

Users browsing this forum: Bing [Bot], jsmith56x, sterisa and 262 guests