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
WIKI Timeout issues
Please read here if you have trouble connecting to the wiki
Recent
new private messages fly ...
by
Martin_fr
[
Today
at 09:51:50 am]
outsource RTTI
by
paule32
[
Today
at 09:45:00 am]
About Skia graphics engin...
by
aydın
[
Today
at 09:31:19 am]
Setting up an ARM embedde...
by
DonAlfredo
[
Today
at 09:26:44 am]
Circumvent the assignment...
by
bytebites
[
Today
at 08:41:02 am]
Triple Gosper Space Filli...
by
Boleeman
[
Today
at 08:21:47 am]
Fragmented Window Grid Pa...
by
Boleeman
[
Today
at 07:55:53 am]
Is there a Lazbuild compi...
by
440bx
[
Today
at 04:10:23 am]
Tedit control that adjust...
by
simsee
[
Today
at 12:36:13 am]
Compare two text lines an...
by
simone
[
Today
at 12:04:05 am]
ChatGPT and ObjectPascal ...
by
Joanna
[July 12, 2025, 08:02:23 pm]
problem by export and imp...
by
paule32
[July 12, 2025, 07:43:53 pm]
Searching for current wor...
by
Thaddy
[July 12, 2025, 07:22:28 pm]
Has anyone installed TeeB...
by
Thaddy
[July 12, 2025, 07:06:19 pm]
Fpcupdeluxe
by
DonAlfredo
[July 12, 2025, 04:45:54 pm]
[SOLVED] SQLite query to ...
by
DanishMale
[July 12, 2025, 04:37:24 pm]
Pulsating Radial Segments...
by
Boleeman
[July 12, 2025, 04:11:52 pm]
Object Pascal Playing Car...
by
marcov
[July 12, 2025, 02:53:25 pm]
Fast Canvas Library V1.05...
by
Gigatron
[July 12, 2025, 02:49:43 pm]
Trouchet Koch (Snowflake ...
by
Boleeman
[July 12, 2025, 02:34:31 pm]
Extended Module Player
by
Gigatron
[July 12, 2025, 02:27:09 pm]
controls.lpr(731,15) Erro...
by
Martin_fr
[July 12, 2025, 11:44:05 am]
Amigo programming languag...
by
paxscript
[July 12, 2025, 08:48:11 am]
[Solved]Garbled web page ...
by
PeterHu
[July 12, 2025, 08:34:38 am]
Rainbowed Rotating Square...
by
Boleeman
[July 12, 2025, 07:33:00 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Serial communication (Read 2668 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: 252
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