Unable to run TCP Slave Modbus example in v2.0
Posted: Mon Feb 10, 2025 9:39 am
When I've update my dependencies the ESP Modbus component was upgraded to v2.0.
I got errors in the code and looking at the source code I was able to fix them, but at run-time my modbus client did not work anymore (i.e. it does not process the incoming requests).
Hence I compiled the official example: https://github.com/espressif/esp-modbus ... _tcp_slave but it also this does not answer to the modbus requests.
It continues to print this:
Compiling the example from the previous version 1.x it works again.
Was anyone able to run the example from version 2.0?
I got errors in the code and looking at the source code I was able to fix them, but at run-time my modbus client did not work anymore (i.e. it does not process the incoming requests).
Hence I compiled the official example: https://github.com/espressif/esp-modbus ... _tcp_slave but it also this does not answer to the modbus requests.
It continues to print this:
Code: Select all
D (36640) mb_port.tcp.slave: loop:0x3fcb6710 mbs_on_timeout: fd: -1
D (36910) mb_driver: 0x3fcb6710, fd event get: 0x100:-1, |MB_EVENT_TIMEOUT
D (36910) event: running post loop:0x3fcb6710:256 with handler 0x4200d488 and context 0x3fcb8574 on loop 0x3fcb6adc
--- 0x4200d488: mbs_on_timeout at /home/andrea/myapp/managed_components/espressif__esp-modbus/modbus/mb_ports/tcp/port_tcp_slave.c:595
Was anyone able to run the example from version 2.0?