-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP_ERR_INVALID_RESPONSE after few days of work (IDFGH-13723) #74
Comments
Hello @ Silvesterrr, I need more information to identify the reason for the issue. Could you store and then send to me the bigger portion of log with the debug severity set in the kconfig menu? This should include the last logging messgaes when the error occur. I need to check how the master and slave are used in your device application. (ESP_ERR_INVALID_RESPONSE) - means that the master RTU sent the request to the slave and got incorrect response from slave or response was fragmented because the slave responds to previous transaction when the new one is in progress. This may be due to increased slave response time which longer than the time between transactions and incorrect value of slave response time option in master = 500 ms. The log can clarify this. |
Sure, from that moment the device can't send any more frames. Just to clarify behavior. In the rs485 network there are other 8 devices. My device tries to read ids 1-16 in loop. It reads 1-8 and fails to read 9-16. That is expected behavior of my code. |
What I can see from the log the slave response time = 500ms in your project. Please also try to disable the |
Checklist
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 ofMaybe I should impement
vMBMasterRxFlush()
as discussed in other issue?Im using modbus rtu master with modbus tcp slave.
here is my sdkconfig:
sdkconfig.txt
The text was updated successfully, but these errors were encountered: