Device
Device
Hi, I've tested the RTU-RS485 Client and with a few tweaks the code works like a charm with the ESP32dev Kit. I make a Pull Request after complete testing. (need...
that is not completely right. The Modbus protocol has a frame width of 256 bytes. (253 bytes for user data). We are currently only using 128 bytes here, according to...
No Problem to read 125 Words of an 03 Register:  so your Master is not support more Register?

Hello, first thing, delete this: //remove from final version if (Serial1.available() > 100) { byte incomingByte1 = Serial1.read(); // read the incoming byte: Serial.print(">>"); Serial.println(incomingByte1); digitalWrite(RS485DEPin, HIGH); // (Pin RS485DEPin...
here is the next one: `union { struct ClientStatusEx ClSt[N_Slots]; uint8_t MB_HoldReg[sizeof(ClientStatusEx) * N_Slots]; } hr;` declare it as uint16_t 2. use Modbus wtith own array for registers. 3. clean...
It looks like you want implement the Modbus Protocol. It gaves a lot of working librarys for this. i.e.: https://github.com/yaacov/ArduinoModbusSlave Have you tried Serial.flush()? It does similar like "uart_wait_tx_done", without...
Ok, you can use it for auto-toggle the DE Pin, but the rest of the implementation must affect to this. :wink:
@hitecSmartHome Just a correction: a.) Modbus does have a minimum frame length. It's 8 bytes. b.) You also have the option of identifying a complete frame using the 2 CRC...
You can try my fork. I have eliminated the timing for push down the DE Pin. I had no time to test the other functions in the fork but you...