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

ESP_ERR_INVALID_RESPONSE after few days of work (IDFGH-13723)

Open Silvesterrr opened this issue 5 months ago • 3 comments

Checklist

  • [X] Checked the issue tracker for similar issues to ensure this is not a duplicate.
  • [X] Provided a clear description of your suggestion.
  • [X] Included any relevant context or examples.

Issue or Suggestion Description

Hello, I switched to esp-modbus 1.0.15 from 1.0.7. Now after few days of work I get error as below:

E (872259047) MB_PORT_COMMON: 872259042655:Frame send error = 5 E (872259047) MB_CONTROLLER_MASTER: mbc_master_send_request(97): Master send request failure error=(0x108) (ESP_ERR_INVALID_RESPONSE).

The device reads from devices in repeat every 600-1000ms. After error happens it is show while trying to read any slave.

Note that after reboot everything works normally. Even if ESP_ERR_INVALID_RESPONSE occures shoud'nt it get back up?

And what means error = 5 which is MB_EIO. Is ESP_ERR_INVALID_RESPONSE the result of

MB_EIO or the other way around?

Maybe I should impement vMBMasterRxFlush() as discussed in other issue?

Im using modbus rtu master with modbus tcp slave.

here is my sdkconfig: sdkconfig.txt

Silvesterrr avatar Sep 17 '24 05:09 Silvesterrr