본문 바로가기

언어/라즈베리파이

시리얼통신 관련 TLazSerial

https://github.com/JurassicPork/TLazSerial

TLazSerial-master.zip

LazSerial v0.2
Serial Port Component for Lazarus (windows and linux).
by Jurassic Pork  03/2013   - 01/2017
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
  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
   paco@fe.up.pt
 
- 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   
ex : 

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
===========================================================
V 0.2  01/2017 : BaudRates for UNIX fixed - synaser files units renamed (with laz prefix)
                 scan port for linux improved

codetyphoon에서 패키지등록해서 사용할려면 컨버팅을 거쳐야 한다.


http://www.pilotlogic.com/sitejoom/index.php/about-us/90-wiki/ctcenter/541-converter-old-ct-files


 

CodeTyphon from ver 6.xx use new files extensions:

from ver 6.10:

"ctmpr"  = Typhon Multi-Project Info file extension
"ctpr"
     = Typhon Project Info file extension, old "lpi"
"ctpkg"  = Typhon Package file extension,      old "lpk" 
"ppr"      = Typhon Project file extension,       old "lpr" 
"frm"     = Typhon form file extension,           old "lfm"

from ver 6.30:

"ctrs"      = Typhon resources file extension, old "lrs" 
"ctps"     = Typhon Project Session file extension,  old "lps"

 

With this CTCenter tool you can convert old CT files or Lazarus files to new files extensions.


 

1) Backup your old files 
2) Give the directory of files you want to convert.
3) Hit "Start Conversions"