SmartEVSE-3 icon indicating copy to clipboard operation
SmartEVSE-3 copied to clipboard

RTUutils.cpp patches

Open mstegen opened this issue 4 years ago • 0 comments

In order to receive/send data correctly i had to patch the RTUutils.cpp file which is part of the eModbus library

line 213: after // Toggle rtsPin, if necessary rts(LOW); serial.read(); // <- add this

comment out line 327: // No, packet was too short for anything usable. Return error //rv.push_back(PACKET_LENGTH_ERROR);

This might not be needed when your rs485 bus is correctly terminated, and biased correctly.

mstegen avatar Mar 11 '22 20:03 mstegen