Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
Serial communication
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
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Lazarus Image Editor
by
Paolo
[
Today
at 10:29:54 am]
I can write your README.m...
by
domasz
[
Today
at 09:53:02 am]
fp-h2pas: New C header tr...
by
ccrause
[
Today
at 09:48:31 am]
Omitting semicolon on las...
by
440bx
[
Today
at 09:48:31 am]
Remote desktop software i...
by
Xenno
[
Today
at 09:41:55 am]
Can /my/ AI help me with ...
by
cdbc
[
Today
at 08:59:28 am]
FPC Unleashed (inline var...
by
440bx
[
Today
at 05:42:39 am]
The ever re-appearing /= ...
by
440bx
[
Today
at 05:05:57 am]
android attack (inc)
by
speter
[
Today
at 04:19:54 am]
Little bit...
by
n7800
[
Today
at 03:51:08 am]
[ANN] Unofficial FPC 3.3....
by
440bx
[
Today
at 01:00:04 am]
NiceGrid component for La...
by
wp
[
Today
at 12:03:57 am]
Track windows cross-platf...
by
dsiders
[April 10, 2026, 07:43:43 pm]
[ANN] PasBuild v1.8.0 Rel...
by
Graeme
[April 10, 2026, 06:43:13 pm]
Подписи кнопок панели инс...
by
Raskaton
[April 10, 2026, 06:37:48 pm]
HTTPS-сервер с ГОСТ-серти...
by
Raskaton
[April 10, 2026, 06:29:36 pm]
Strange behavior with dat...
by
JanRoza
[April 10, 2026, 06:20:38 pm]
RegExpr matchting empty s...
by
Thaddy
[April 10, 2026, 04:35:27 pm]
TLazSerial : serial port ...
by
CM630
[April 10, 2026, 03:45:42 pm]
Can't pass string to TEdi...
by
lazarusprogrammer
[April 10, 2026, 02:04:36 pm]
Messing with Gemini AI an...
by
gidesa
[April 10, 2026, 12:48:03 pm]
Lazarus Bugfix Release 4....
by
dbannon
[April 10, 2026, 10:09:07 am]
[SOLVED] How to enter gen...
by
PascalDragon
[April 10, 2026, 07:27:12 am]
AI Assist Python - to - P...
by
PascalDragon
[April 10, 2026, 07:25:42 am]
How to remove a FORM from...
by
Martin_fr
[April 10, 2026, 12:29:46 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Serial communication (Read 2778 times)
osbritod
Newbie
Posts: 1
Serial communication
«
on:
September 02, 2015, 10:21:27 pm »
How do I communicate with the COM1 my computer? I want to get the data received from a serial device.
Logged
Chronos
Sr. Member
Posts: 256
Re: Serial communication
«
Reply #1 on:
September 02, 2015, 11:02:40 pm »
There are multiple ways:
http://wiki.freepascal.org/Hardware_Access#Serial_Communication
Logged
Henppy
Jr. Member
Posts: 60
Re: Serial communication
«
Reply #2 on:
September 03, 2015, 04:37:43 am »
I'm actually using Synaser at this very moment. First time I use it and it... works... kind of. I was having some weird problems, that could be my own lack of experience with it.
If you go with Synaser, then I can say:
Here's something to look to get you started:
http://forum.arduino.cc/index.php?topic=37577.25;wap2
And here's another blog that probed useful:
https://bigdanzblog.wordpress.com/2014/11/06/serial-communications-between-a-pc-and-an-arduino-using-lazarus-free-pascal/
Both things are for arduinos because that's just what I was doing, but the library should work for other things as well.
Note: pay attention to the waitingData call (as opposed to CanRead on the example on the first link).
«
Last Edit: September 03, 2015, 04:39:17 am by Henppy
»
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
Serial communication
TinyPortal
© 2005-2018