[fpc-pascal] Serial communications: synaser vs FPC's serial unit
gebylist
gebylist at mlp.cz
Thu Aug 17 19:05:39 CEST 2017
Dne 17.08.2017 v 15:45 Graeme Geldenhuys napsal(a):
>
> Now for the Synaser unit - the one I have is from 2013, and I already
> noticed that there is no support for FreeBSD's /dev/* names to access
> serial ports. Granted I added FreeBSD support to the
> GetSerialPortNames() function in 5 minutes, but this doesn't bode to
> well then for the Synaser unit - what else could be missing that I
> don't know of?
For most actual Synaser version you must look at Synapse SVN server. ;-)
Synaser have class TBlockSerial. It can work with *any* device name. (It
know to emulate Windows COMxx names on Linux too.)
GetSerialPortnames is just helper funcion, what is designed for windows
only first. Some platforms are added later, but it cannot be fully
multiplatform. However it is just helper for get list of existing serial
ports. If you know serial device name, you not need it.
Lukas Gebauer
More information about the fpc-pascal
mailing list