richw
Using version 4.1.1.
 
Using a generic esp32 and selecting modbus tcp ethernet interface is there a default driver used like in version 3 or do you have to create your own, if so is there any documentation on doing so? Once the ethernet driver is installed and working can the device be programmed and debugged over the ethernet interface instead of serial?
Reply 0 0
thiagoralves
v3 didn’t allow users to pick Ethernet drivers. Pretty much the same firmware code used on v3 for microcontrollers is also used on v4 except for a few bug fixes and the Arduino extension that was transformed into C/C++ blocks. It should work the same way on v4 that it worked on v3.
Reply 0 0
richw
Not sure you understand what I'm trying to explain. In v3 when selecting esp32 with ethernet the default driver was for lan8720 chip. My esp32 had a different chip and I had to edit the ModbusSlave.h file to make it work. I didn't no if I had to do the same thing with v4 or if I could use a c/c++ function block or some other method instead of modifying the editor file. If I have to modify a file which file would it be.
 
Also once the ethernet is working can it be programmed and debugged through the ethernet port with v4?
Reply 0 0
thiagoralves
Oh, now I see. Yeah, you would have to modify exactly the same ModbusSlave.h file. The firmware is nearly identical to v3. Once Ethernet is working, yes, you can debug the device through Ethernet just like you can over serial.
Reply 0 0
Reply