Project

General

Profile

Actions

Bug #101

closed

modbus-binding serial - After an "action: read" times out, another "action: read" reads the answer to the previous query instead of the current one

Added by Louis-Baptiste Sobolewski 9 months ago. Updated 9 months ago.

Status:
Resolved
Priority:
Normal
Target version:
-
Start date:
03/14/2024
Due date:
% Done:

100%

Estimated time:
Hardware platform:
Other
OS Affects Version/s:
batz-2.0
OS Fix Version/s:
Labels:

Description

Could be that the RTU answers properly but after the timeout, which means that the binding's next read reads the answer which was late and is waiting in the device's read buffer.


Files

afb-binder.txt (7.35 KB) afb-binder.txt Louis-Baptiste Sobolewski, 03/14/2024 04:09 PM
afb-client.txt (5.89 KB) afb-client.txt Louis-Baptiste Sobolewski, 03/14/2024 04:09 PM
trace.log (111 KB) trace.log afb-binder's strace Louis-Baptiste Sobolewski, 03/14/2024 04:09 PM
Actions #1

Updated by Louis-Baptiste Sobolewski 9 months ago

  • Status changed from New to In Progress
Actions #2

Updated by Louis-Baptiste Sobolewski 9 months ago

  • % Done changed from 0 to 10
Actions #3

Updated by Louis-Baptiste Sobolewski 9 months ago

  • % Done changed from 10 to 50
Actions #4

Updated by Louis-Baptiste Sobolewski 9 months ago

  • % Done changed from 50 to 70
Actions #5

Updated by Louis-Baptiste Sobolewski 9 months ago

  • % Done changed from 70 to 100
Actions #6

Updated by Louis-Baptiste Sobolewski 9 months ago

  • Status changed from In Progress to Resolved
Actions #7

Updated by Louis-Baptiste Sobolewski 9 months ago

Fix which flushes input buffer before sending a request after a time out: any possible late answer is discarded before sending a new request

Please note that the timeout value of this device should still be increased to avoid errors

Actions

Also available in: Atom PDF