modbus-esp8266 icon indicating copy to clipboard operation
modbus-esp8266 copied to clipboard

help needed on actual modbusRTU implementation

Open rzylius opened this issue 4 years ago • 27 comments

Dear Alexander,

I have a solar inverter with quite a specification:

The IMEON RS485 port is configured to use the following

  • Baud rate : 9600
  • Data bits per Byte : 8
  • Parity : None
  • Stop bits : 1
  • Encoding: big endian(MSB LSB: value 0x
  • CRC: little endian (LSB MSB: value 0x3412 is 0x1234)
  • Slave address: 0x01
  • Data message format: Hexadecimal
  • The instant read values in the database are updated each 10 seconds.
  • The set values are updated each 1 minute in database.
  • Response timeout is 10 seconds.

I got connected and all works pretty ok out of the box. But I quite often I receive error (not consistently)

EX_TIMEOUT = 0xE4, // Custom. Operation not finished within reasonable time

I tried to play with #define MODBUSIP_TIMEOUT 1000 setting, without apparent improvement. maybe you may advise the logic how I should try to customize settings for it to work reliably?

Very much appreciate your work,

regards, Rimantas

rzylius avatar Mar 24 '21 07:03 rzylius