Communication over a RS-232 Serial Port with Scilab on Windows and Linux (8583 downloads for this version - 67183 downloads for all versions) Details. Non-visual components for Lazarus/Delphi; network (TCP/UDP/HTTP) serial port (UART, COM-port, FTDI) device file (ioctl supported) and conventional file; named pipes; Coming soon: listener (server) paralel port (LPT) DDE; IPC; TDataPort. TDataPort is abstract component for reading and writing data to some port. Urdu logo maker software, free download.
- Com Port Lazarus
- Serial Port For Lazarus Island
- Serial Port For Lazarus Youtube
- Serial Port For Lazarus Free
As I have only USB ports on my development machine, is quite common at connecting a serial device that I have to go to the device manager to see in which COM port it was installed.
I am developing an application that needs to access a serial device, so I need to get aware of the COM ports installed, either to indicate which to use or to verify the existence of which was already configured.
Com Port Lazarus
Researching a bit to not reinvent the wheel, I found this page: http://www.lazarus.freepascal.org/index.php?topic=14313.0 which publishes three interesting functions.Serial Port For Lazarus Island
Serial Port For Lazarus Youtube
The last function GetComPortList seeks information from another part of the registry and gets the common name (FriendlyName) of the device installed, which is what I'm wanting.
But there is a problem with this last feature, it's looking for the information only in HKEY_LOCAL_MACHINESystemCurrentControlSetServicesSerEnum. To test I plugged in two serial devices, a generic USB-to-RS232 adapter and a Blu Samba Q cellphone. One of them appears on the sheet SerEnum but the other appears under USBSER, which makes me assume that depending on how it is programmed the device driver, service name is arbitrary and therefore its location in the tree HKEY_LOCAL_MACHINESystemCurrentControlSetServices too.
To solve my problem I took as example the first and the third function and made my own.
Serial Port For Lazarus Free
TLazSerial v0.1
Serial Port Component for Lazarus (windows and linux).
by Jurassic Pork 03/2013
This library is Free software; you can rediStribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This program is diStributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; withOut even the implied warranty of MERCHANTABILITY or
Pokemon diamond portugues. FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License
for more details.
You should have received a Copy of the GNU Library General Public License
along with This library; if not, Write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. }
Based on :
- SdpoSerial v0.1.4
CopyRight (C) 2006-2010 Paulo Costa
This email address is being protected from spambots. You need JavaScript enabled to view it.
- Synaser library by Lukas Gebauer
- TcomPort component
Features :
Changed : baudrate values.
stop bits new value : 1.5
new event : onstatus
new property FRcvLineCRLF : if this property is true, you use RecvString
in place of RecvPacket when you read data from the port.
new procedure ShowSetupDialog to open a port settings form :
the device combobox contain the enumerated ports.
new procedure to enumerate real serial port on linux ( in synaser).
Demo : a simulator of serial port gps + serial port receiver :
you can send NMEA frames ( GGA GLL RMC) to the opened serial port
(start gps simulator). You can change speed and heading.
In the memo you can see what is received from the opened serial port.
In the status bar you can see the status events.
tested with windows 7 and Ubuntu 12.04
if you haven't serial ports in your PC you can use virtual ports :
1 - WINDOWS
To simulate a paired serial ports on windows : com0com
2 - Linux
To simulate a paired serial ports on linux : socat
ex : socat -d -d PTY: PTY:
To connect to a bluetooth GPS on Linux
echo connection to a bluetooth GPS(/dev/rfcomm0)
sudo rfcomm bind 0 xx:xx:xx:xx:xx:xx 1
How to install the component ( lazarus version >= 1.x) :
1 - Download the file LazSerial.7z (you must be logged in the forum to see and download the file).
2 - Open the file and uncompress it in the Lazarus/components directory.
3 - Open Lazarus IDE , Open the package ( packages/open a package file) LazSerialPort.lpk
4 - Compile
5 - Install
Sorry for my poor english but it isn't my natural language.
to be continued if it is usable ..
Serial Port Component for Lazarus (windows and linux).
by Jurassic Pork 03/2013
This library is Free software; you can rediStribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This program is diStributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; withOut even the implied warranty of MERCHANTABILITY or
Pokemon diamond portugues. FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License
for more details.
You should have received a Copy of the GNU Library General Public License
along with This library; if not, Write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. }
Based on :
- SdpoSerial v0.1.4
CopyRight (C) 2006-2010 Paulo Costa
This email address is being protected from spambots. You need JavaScript enabled to view it.
- Synaser library by Lukas Gebauer
- TcomPort component
Features :
Changed : baudrate values.
stop bits new value : 1.5
new event : onstatus
new property FRcvLineCRLF : if this property is true, you use RecvString
in place of RecvPacket when you read data from the port.
new procedure ShowSetupDialog to open a port settings form :
the device combobox contain the enumerated ports.
new procedure to enumerate real serial port on linux ( in synaser).
Demo : a simulator of serial port gps + serial port receiver :
you can send NMEA frames ( GGA GLL RMC) to the opened serial port
(start gps simulator). You can change speed and heading.
In the memo you can see what is received from the opened serial port.
In the status bar you can see the status events.
tested with windows 7 and Ubuntu 12.04
if you haven't serial ports in your PC you can use virtual ports :
1 - WINDOWS
To simulate a paired serial ports on windows : com0com
2 - Linux
To simulate a paired serial ports on linux : socat
ex : socat -d -d PTY: PTY:
To connect to a bluetooth GPS on Linux
echo connection to a bluetooth GPS(/dev/rfcomm0)
sudo rfcomm bind 0 xx:xx:xx:xx:xx:xx 1
How to install the component ( lazarus version >= 1.x) :
1 - Download the file LazSerial.7z (you must be logged in the forum to see and download the file).
2 - Open the file and uncompress it in the Lazarus/components directory.
3 - Open Lazarus IDE , Open the package ( packages/open a package file) LazSerialPort.lpk
4 - Compile
5 - Install
Sorry for my poor english but it isn't my natural language.
to be continued if it is usable ..