Project

General

Profile

Actions

Bug #101

closed
LS LS

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

Bug #101: 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 about 2 years ago. Updated about 2 years 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

LS Updated by Louis-Baptiste Sobolewski about 2 years ago Actions #1

  • Status changed from New to In Progress

LS Updated by Louis-Baptiste Sobolewski about 2 years ago Actions #2

  • % Done changed from 0 to 10

LS Updated by Louis-Baptiste Sobolewski about 2 years ago Actions #3

  • % Done changed from 10 to 50

LS Updated by Louis-Baptiste Sobolewski about 2 years ago Actions #4

  • % Done changed from 50 to 70

LS Updated by Louis-Baptiste Sobolewski about 2 years ago Actions #5

  • % Done changed from 70 to 100

LS Updated by Louis-Baptiste Sobolewski about 2 years ago Actions #6

  • Status changed from In Progress to Resolved

LS Updated by Louis-Baptiste Sobolewski about 2 years ago Actions #7

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: PDF Atom