* * *

Author Topic: TLazSerial : serial port component for Lazarus (windows and linux).  (Read 106106 times)

avra

  • Hero Member
  • *****
  • Posts: 922
    • Additional info
Re: TLazSerial : serial port component for Lazarus (windows and linux).
« Reply #30 on: July 24, 2013, 11:40:38 pm »
I have installed Lazarus 1.0.6 on the PC and LazSerial installs fine and the test app works. However, nowhere can I find out clearly how to install 1.0.6 on the Raspberry Pi with Raspbian. apt-get install lazarus gives me the same 0.9.28.2 version, so I seem stuck!
The link I gave says this:
Quote
...you might try to install FPC from repository, and then install Laz 1.0.6 from source (I think that was the last version that could be compiled with FPC 2.6.0)
This means that FPC is installed through apt-get (as you already did), and Lazarus from source as in wiki described here:
http://wiki.lazarus.freepascal.org/Installing_Lazarus#Downloading_Lazarus_Source_Code. You need to have subversion installed first, of course.

This might also help:
http://www.michellcomputing.co.uk/blog/2012/11/lazarus-on-the-raspberry-pi/
ct2laz - Easily convert components and projects between Lazarus and CodeTyphon

BLL

  • Full Member
  • ***
  • Posts: 189
Re: TLazSerial : serial port component for Lazarus (windows and linux).
« Reply #31 on: July 25, 2013, 06:30:54 pm »
Hi, Thanks for that. In the second link, I see that he installs fpc 2.6.0 from the repository, then updates it to 2.7 and then installs Lazarus 1.0.6. He provides 2 scripts to do this but I gather they have mistakes in them! I will give it a try with a fresh installation of Raspbian as soon as I get the time. Thanks for your help. I did also have the thought that the gps daemon makes the gps info available at local port 2947. Is there a function in fpc to open a local port? That saves messing around with USB!

lu7hz

  • Newbie
  • Posts: 2
Re: TLazSerial : serial port component for Lazarus (windows and linux).
« Reply #32 on: July 31, 2013, 02:58:26 pm »
Likely to be a dumb question, but where I could download TLazSerial from?

I'm in the process to migrate my Delphi stuff into Lazarus and quite not yet familiar with the structure of the different resources.

Thanks in advance! Pedro

BLL

  • Full Member
  • ***
  • Posts: 189
Re: TLazSerial : serial port component for Lazarus (windows and linux).
« Reply #33 on: July 31, 2013, 03:07:06 pm »
If you are using a raspi, forget TLazSerial as it won't install. Nor will 5dpo!!

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 602
Re: TLazSerial : serial port component for Lazarus (windows and linux).
« Reply #34 on: July 31, 2013, 03:21:28 pm »
hello,
if you are on Windows or linux and with Lazarus >= 1.x  , look at the first post of this topic and read the how to install.

Friendly J.P

avra

  • Hero Member
  • *****
  • Posts: 922
    • Additional info
Re: TLazSerial : serial port component for Lazarus (windows and linux).
« Reply #35 on: August 01, 2013, 11:26:45 am »
If you are using a raspi, forget TLazSerial as it won't install. Nor will 5dpo!!
Try Synaser from synapse.ararat.cz, or just use FPC serial unit instead (search for serial.pp file since that's all docs you will get for it).
« Last Edit: August 01, 2013, 11:29:49 am by avra »
ct2laz - Easily convert components and projects between Lazarus and CodeTyphon

ireverse

  • Guest
Re: TLazSerial : serial port component for Lazarus (windows and linux).
« Reply #36 on: August 10, 2013, 12:13:35 pm »
Thanks ever so much, I've been looking for such a component since a year!! nice work. Just installed and tested on CodeTypon 4.41.
MfG.

wylton

  • New member
  • *
  • Posts: 33
Re: TLazSerial : serial port component for Lazarus (windows and linux).
« Reply #37 on: August 20, 2013, 12:46:49 am »
i don't have serial port, how can i make port like you use '/dev/pts/5' ? i'm in linuxmint.

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 602
Re: TLazSerial : serial port component for Lazarus (windows and linux).
« Reply #38 on: August 20, 2013, 04:04:41 am »
hello,

1 - install socat in your linux distro
2 - launch this command in a terminal :
Code: [Select]
socat -d -d PTY: PTY:if it is good you can see in your terminal window something like this :
Quote
2013/08/20 03:41:03 socat[4275] N PTY is /dev/pts/5
2013/08/20 03:41:03 socat[4275] N PTY is /dev/pts/6
2013/08/20 03:41:03 socat[4275] N starting data transfer loop with FDs [3,3] and [5,5]

if you have successfully compiled the example of lazserial  sertest:
1 -  launch sertest
2 - in port settings/port enter your first virtual serial port ( ex for me /dev/pts/5)  don't use combo button because virtual serial ports are not detected)
3 - close the port settings window and click on the open button.

4 - launch another sertest
5 - in port settings/port enter your second virtual serial port ( ex for me /dev/pts/6)
6 - close the port settings window and click on the open button.

7 - in your first sertest check RMC and click on the start simulator button.
8 - if all is good , you can see RMC frames in the memo of the second sertest  like this :
Quote
$GPRMC,035654,A,4851.184,N,00220.977,E,000.5,054.7,200813,020.3,E*71

friendly, J.P




wylton

  • New member
  • *
  • Posts: 33
Re: TLazSerial : serial port component for Lazarus (windows and linux).
« Reply #39 on: August 20, 2013, 10:32:54 am »
thanks.

other question:
I have a Epson Tm 70 connect to Usb, and have virtual port ESDPRT001, can I use Lazserial to communicate with it?

freris

  • New member
  • *
  • Posts: 26
  • A Retired hobbist programmer from Greece
Re: TLazSerial : serial port component for Lazarus (windows and linux).
« Reply #40 on: October 07, 2013, 09:20:51 pm »
Dear friend, have a good day from Athens - Greece.

Can you please provide me the link for the component?

Many many thanks

Panagiotis
As I get older, the more I learn !!

Paul Breneman

  • Full Member
  • ***
  • Posts: 225
    • Control Pascal
Re: TLazSerial : serial port component for Lazarus (windows and linux).
« Reply #41 on: October 08, 2013, 05:01:55 am »
I'd like to port www.CtrlTerm.com to LazSerial and Lazarus, so if anyone sends me code I will consider publishing it.
Regards,
Paul Breneman
www.ControlPascal.com

eldonfsr

  • Jr. Member
  • **
  • Posts: 96
Re: TLazSerial : serial port component for Lazarus (windows and linux).
« Reply #42 on: December 14, 2013, 03:32:53 am »
Hi jurassic do you know how to emulate delay line and delay character with synaser, i sow documentation but only one function is  about delay time , sorry for my topic?

thanks.

CM630

  • Hero Member
  • *****
  • Posts: 686
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: TLazSerial : serial port component for Lazarus (windows and linux).
« Reply #43 on: December 14, 2013, 02:12:55 pm »
Mr. Pork,
I tried several libs, before getting to this one, and the good thing about is that it really works.
What bothers me is that usually a timeout can be set, but I saw nothing like that in TLazSerial.
Lazarus 1,6,4;XP 32bit or W7 64bit ;FPC3,0,2;rev 54278

eldonfsr

  • Jr. Member
  • **
  • Posts: 96
Re: TLazSerial : serial port component for Lazarus (windows and linux).
« Reply #44 on: December 24, 2013, 10:37:31 pm »
I tried to compile lazserial on mac and send this error

/Developer/lazarus/componentes/LazSerial/synaser.pas(1959,54) Error: Incompatible types: got "ShortInt" expected "Pointer"
/Developer/lazarus/componentes/LazSerial/synaser.pas(2345,41) Warning: range check error while evaluating constants
/Developer/lazarus/componentes/LazSerial/synaser.pas(2348,36) Hint: Mixing signed expressions and longwords gives a 64bit result
/Developer/lazarus/componentes/LazSerial/synaser.pas(2358,38) Error: Identifier not found "TIOCGSERIAL"
/Developer/lazarus/componentes/LazSerial/synaser.pas(2387) Fatal: There were 2 errors compiling module, stopping
some body compiled that on mac.

best regards.
fernando

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus