Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Operating Systems
»
macOS / Mac OS X
»
Mac OS serial port access
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
[maybe SOLVED] BUG in Inp...
by
robert rozee
[
Today
at 04:20:51 pm]
TPrintDialog disable Prop...
by
Zvoni
[
Today
at 04:19:29 pm]
IDE tabs and spaces, auto...
by
Martin_fr
[
Today
at 04:14:36 pm]
Zebra printer and LazRepo...
by
tito_livio
[
Today
at 03:55:17 pm]
Cannot update a record us...
by
Zvoni
[
Today
at 02:39:34 pm]
Lazarus Release Candidate...
by
Martin_fr
[
Today
at 01:16:07 pm]
Move tab to other pagecon...
by
majid.ebru
[
Today
at 01:15:57 pm]
How to get and use the ma...
by
Hansaplast
[
Today
at 12:46:42 pm]
Tcsvdataset issue
by
Zvoni
[
Today
at 12:17:21 pm]
[Solved] DBEXPORT TFixedl...
by
Zvoni
[
Today
at 10:15:53 am]
NIL vs. Assign: when to u...
by
MarkMLl
[
Today
at 09:47:37 am]
Converting a Project from...
by
Zvoni
[
Today
at 08:11:37 am]
Uninstall
by
TRon
[
Today
at 03:56:15 am]
Using Bresenham's line al...
by
TBMan
[
Today
at 02:40:18 am]
[SOLVED] Remote access to...
by
wcage03
[
Today
at 02:12:39 am]
Hooking to `OnISupport` d...
by
Gustavo 'Gus' Carreno
[
Today
at 02:12:35 am]
Remote access to database...
by
wcage03
[
Today
at 12:48:40 am]
Program crashing with exc...
by
jamie
[March 19, 2025, 11:20:14 pm]
Checking for number or no...
by
Bart
[March 19, 2025, 10:05:18 pm]
Form goes Frame - drag an...
by
Nicole
[March 19, 2025, 07:08:08 pm]
How to block mouse withou...
by
Yurgenz
[March 19, 2025, 06:45:54 pm]
How to download/compile l...
by
zeljko
[March 19, 2025, 06:13:35 pm]
LazTTF2Vector - An Enhanc...
by
maurog
[March 19, 2025, 06:07:44 pm]
AVRPascal – free code edi...
by
ackarwow
[March 19, 2025, 05:22:53 pm]
Freepascal Toolkit in VS ...
by
PhoenixHawk
[March 19, 2025, 04:04:16 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Mac OS serial port access (Read 4402 times)
Alexandr F
New Member
Posts: 26
Mac OS serial port access
«
on:
February 15, 2019, 05:56:33 pm »
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.
Logged
MarkMLl
Hero Member
Posts: 8330
Re: Mac OS serial port access
«
Reply #1 on:
February 15, 2019, 06:09:07 pm »
FPC has a standard unit called (IIRC) serial.pp which is tested for Linux and Solaris.
MarkMLl
Logged
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories:
https://github.com/MarkMLl?tab=repositories
Alexandr F
New Member
Posts: 26
Re: Mac OS serial port access
«
Reply #2 on:
February 15, 2019, 07:35:32 pm »
Mac os version of Lazarus can't found (have not ?)
serial
unit.
Logged
dsiders
Hero Member
Posts: 1377
Re: Mac OS serial port access
«
Reply #3 on:
February 15, 2019, 07:51:46 pm »
Quote from: Alexandr F on February 15, 2019, 07:35:32 pm
Mac 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
Logged
Preview the next Lazarus documentation release at:
https://dsiders.gitlab.io/lazdocsnext
MarkMLl
Hero Member
Posts: 8330
Re: Mac OS serial port access
«
Reply #4 on:
February 16, 2019, 06:26:47 pm »
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.
Logged
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories:
https://github.com/MarkMLl?tab=repositories
Alexandr F
New Member
Posts: 26
Re: Mac OS serial port access
«
Reply #5 on:
February 20, 2019, 02:38:53 pm »
I used BaseUnix unit and FpOpen, FpRead and FpWrite. It working properly for Macintosh.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Operating Systems
»
macOS / Mac OS X
»
Mac OS serial port access
TinyPortal
© 2005-2018