[fpc-pascal] (Unix) serial port handling

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Thu Mar 10 12:50:14 CET 2011

Henry Vermaak wrote:
> On 9 March 2011 15:54,  <johnelee1944 at googlemail.com> wrote:
>> On , Mark Morgan Lloyd <markMLl.fpc-pascal at telemetry.co.uk> wrote:
>>> I was using this to communicate with an HP instrument a few weeks ago, so
>>> have my own re-implementation of some of the stuff. I'll look at doing a
>>> patch, preparatory to seeing if I can hack a complementary Win-32
>>> equivalent.
>> Mark, afaik there isn't a way of reading com ports for xp/w7 etc in the fpc
>> win distro at the moment -hope you'll be able to hack it soon either as part
>> of the distro or as a contrib!
>> Or did I miss something?
> In Windows you use CreateFile and (Read|Write)File.
> (Set|Get)CommState, EscapeCommFunction, and friends do the serial port
> specific stuff.
> There is no nice cross platform pascal implementation included in
> freepascal, though, to my knowledge.  They exist in other packages, as
> you've probably seen on this list.

[Nod] There's obviously Synaser, but there's also the freeware TComPort 
by Dejan Crnila which is well-regarded by Delphi hackers with unusual 

Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

More information about the fpc-pascal mailing list