budulinek / arduino-modbus-rtu-tcp-gateway

Arduino-based Modbus RTU to Modbus TCP/UDP gateway with web interface. Allows you to connect Modbus RTU slaves (such as sensors, energy meters, HVAC devices) to Modbus TCP/UDP masters (such as home automation systems). You can adjust settings through web interface.
GNU General Public License v3.0
172 stars 51 forks source link

the last version doesn't work well #10

Closed dl9msr closed 2 years ago

dl9msr commented 2 years ago

Hello, the last version v3.0 doesn't work well. The connection freezes after a few minutes and I have to reset the Arduiono. Troubleshooting from last issue didn't help I'm back to version v2.3

Best regards Michael

budulinek commented 2 years ago

Hi, thanks for your report.

My Arduino is fine at the moment. In version 3.0 I have increased webOutBufferSize from 64 bytes to 128 bytes in order to speed up web UI loading. I thought the step is safe... Could you PLS try to go back to 64 bytes and check whether it helps?

https://github.com/budulinek/arduino-modbus-rtu-tcp-gateway/blob/ac497050e0fdd2a4397ac155dacb7308a479f9c6/arduino-modbus-rtu-tcp-gateway/05-pages.ino#L26

dl9msr commented 2 years ago

Hi,

thank you for your prompt reply. I have changed to 64byte. I'll get back to you tomorrow

Good night.

Michael

dl9msr commented 2 years ago

Hello, I think the problem is my Arduino Mega 2560 on the test board and not your sketch. I have to take a closer look at that.

I loaded the sketch in the production system with the Arduino Mega 2560 R3 pro mini and it works fine there.

Thanks for your support

budulinek commented 2 years ago

OK.