Difference between revisions of "Serial unit"
From Lazarus wiki
Jump to navigationJump to search (`) |
|||
Line 1: | Line 1: | ||
− | Unit | + | Unit '''Serial''' in FPC supports work with serial port. It provides many Ser* functions. |
==When timeout starts== | ==When timeout starts== |
Revision as of 15:32, 19 September 2022
Unit Serial in FPC supports work with serial port. It provides many Ser* functions.
When timeout starts
Q: I'm trying to figure out is when the timeout timer in SerRead/SerReadTimeout starts.
A by FPC developer Christo Crause: FPC uses the OS provided functionality to interact with the serial port. On Windows the timeout seems to start when the read request is made - Link. On POSIX (at least Linux) it depends on the specific set of flags specified , scroll down to the discussion on canonical/noncanonical mode for the details - Link.