Mac OS serial port access lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- Alexandr F · 2019-02-15 16:56 For Windows I use CreateFile, ReadFile, Writefile for serial port communicatrion. Have Mac os similar function? I found some examples for Linux (like " fp = open()"), but I can found it in Laxarus for Mac os. ---------------------------------------------------------------------- MarkMLl · 2019-02-15 17:09 FPC has a standard unit called (IIRC) serial.pp which is tested for Linux and Solaris. MarkMLl ---------------------------------------------------------------------- Alexandr F · 2019-02-15 18:35 Mac os version of Lazarus can't found (have not ?) serial unit. ---------------------------------------------------------------------- dsiders · 2019-02-15 18:51 Quote from: Alexandr F on February 15, 2019, 07:35:32 pmMac os version of Lazarus can't found (have not ?) serial unit. FPC has it for UNIX-like environments... i guess that includes MacOS. packages/rtl-extra/src/unix/serial.pp ---------------------------------------------------------------------- MarkMLl · 2019-02-16 17:26 With the important caveat that it's only- as far as I know- been tested in Windows, Linux and Solaris. The thing to watch out for is the precise behaviour of the select() function, see the comments which should be adequately detailed and please make the core developers aware if you can conclusively say that the unit works properly /including/ the various timeouts. ---------------------------------------------------------------------- Alexandr F · 2019-02-20 13:38 I used BaseUnix unit and FpOpen, FpRead and FpWrite. It working properly for Macintosh.