Closed codev123 closed 7 months ago
Hi @codev123, thanks for making the issue! What baud rate and microcontroller + additional hardware are you using?
I'm wondering if this is the same behavior as the more generalized issue I'm seeing on my RP2040: https://github.com/arduino-libraries/ArduinoModbus/issues/125
Thanks!
@codev123, any update / status + additional info? Thanks
I have increased serial buffer size for uart to 256 bytes and issue is resolved. Thankyou sir
@codev123, thanks for the update! Can you specify which specific file / line you changed for this? Thank you!
Please consider that Modbus RTU requires a termination resistor at the end of the line. i personally don't have problems with the buffer size. I used the Arduino Opta RS485 and i read currently 30 registers without problems.
Probably it can be helpful: I currently writing a class for reading and writing registers of a mppt charger.
@codev123, thanks for the update! Can you specify which specific file / line you changed for this? Thank you!
I have used serial1 on my pico board, added this line in setup()
code:
Serial1.setFIFOSize(256);
And it works fine.
Issue with library is that it doesn't fix modbus response buffer size, it's microcontroller specific.
I am using ArduinoModbus library with RP2040 Pico with Arduino Pico core.
I am able to communicate with Modbus slave and client using this library, the limitation I am facing is that I need to read around 100 holding registers from energy meter slave and process that data to serve it on to Modbus TCP server. but i can only read up to 14 holding registers using Modbus RTU client. please guide me how to fix the issue.
the error shows: