Serial unit

From Lazarus wiki
Revision as of 15:32, 19 September 2022 by Alextp (talk | contribs) (`)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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.