I use Lazarus quite a bit. For serial and ethernet comms the package I've settled on is Synapse synapse.ararat.cz/doku.php; it works reliably and predictably under Linux and Win without drama.
I appreciate the feedback. I did finally manage to make a very small project that allows me to do what I want in a coming real-world project:
* Scan/Re-scan for available serial ports
* Select port from drop-down and connect to it
* Send simple data
* Receive data asynchronously
I've only run this in Window 10 though I am thinking about dropping into onto my RPi this week. The target for the test is a PAB with a simple program.
Comments
We've used it under Windows fine.
There is also this thread I find
https://forum.lazarus.freepascal.org/index.php?topic=38283.0
that mentions some new alternatives. Not used those.
I see the comment "Note TLazSerial is just a component wrapper for Synaser....(Synapse)"
Mike R...
* Scan/Re-scan for available serial ports
* Select port from drop-down and connect to it
* Send simple data
* Receive data asynchronously
I've only run this in Window 10 though I am thinking about dropping into onto my RPi this week. The target for the test is a PAB with a simple program.
I did end up using the SynaSer library.