esp-modbus
esp-modbus copied to clipboard
ESP_ERR_INVALID_RESPONSE after few days of work (IDFGH-13723)
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