Recent

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

mas steindorff

  • Sr. Member
  • ****
  • Posts: 438
Re: TLazSerial : serial port component for Lazarus (windows and linux).
« Reply #300 on: March 05, 2020, 03:11:13 am »
FYI: I use synaser as a unit in it's own thread running at 921,600 baud.  The end device streams binary data to my program using DMA so the spacing between bytes is as small as possible (2 or 3 bit times).  synaser works well for me here.  The (my) program is is responsive where other comm programs will lock up until there is a pause in the data stream.  Tested both Realterm and TaraTerm with the same results.  The big difference is they try to show each byte where I only display a summery.
IMHO you will find the display update is your bottle neck unless your using something like OpenGL.
windows 7/10 - laz 2.0 / 1.2.6 general releases

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 783
Re: TLazSerial : serial port component for Lazarus (windows and linux).
« Reply #301 on: May 01, 2020, 10:45:23 am »
hello,
a new version (0.3)  of the component is available here

 new in v0.3 version
 Add conditional macros for cpuarm rpi in lazsynaser.pas
 Hide Active property from IDE Object inspector

checked on Windows 10 Lazarus 2.0.8    and   Linux Centos 8  Lazarus 1.8.2 

wp,  you can put this update in your online package manager.

Friendly, J.P         
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

wp

  • Hero Member
  • *****
  • Posts: 7079
Re: TLazSerial : serial port component for Lazarus (windows and linux).
« Reply #302 on: May 01, 2020, 10:46:51 am »
wp,  you can put this update in your online package manager.
Please contact GetMem. I don't have access to the OPM repo.
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 783
Re: TLazSerial : serial port component for Lazarus (windows and linux).
« Reply #303 on: May 01, 2020, 10:50:11 am »
oops sorry  :-\    the message
Quote
you can put this update in your online package manager.
is for GetMem

Friendly, J.P
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

GetMem

  • Hero Member
  • *****
  • Posts: 3673
Re: TLazSerial : serial port component for Lazarus (windows and linux).
« Reply #304 on: May 01, 2020, 11:48:28 am »
Quote
you can put this update in your online package manager.
Done. Thank you!

BosseB

  • Full Member
  • ***
  • Posts: 195
Re: TLazSerial : serial port component for Lazarus (windows and linux).
« Reply #305 on: May 08, 2020, 09:59:59 am »
Probably stupid question, but:
Can LazSerial be used with Delphi 2007 in some way?

I am trying to prepare a D2007 service project for porting to FPC/Lazarus by identifying stuff that relies on external components and the like and converting these to somewhat native Delphi or else FPC type units.
I have already moved a lot of stuff I could understand myself to no longer rely on the external units, but the serial comm is not there yet. I use the Turbo Async Pro serial component for the original code and I want to exclude this before using the Lazarus Delphi converter since otherwise it will bring in so many of the Async Pro units...

And today I just flashed a thought:
Maybe LazSerial can be used already in Delphi 2007? That would simplify the porting a lot since LazSerial is what I intend to use in the final solution.
But I must make sure the prepared project in D2007 still builds and works the same as before...

Note:
In the project all components are created in code, there is no "drop on form" automatic handling of them, so I know exactly where they are actually handled.
--
Bo Berglund
Sweden

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 783
Re: TLazSerial : serial port component for Lazarus (windows and linux).
« Reply #306 on: May 10, 2020, 12:35:16 am »
hello,
Probably stupid question, but:
Can LazSerial be used with Delphi 2007 in some way?
No.

Quote
In the project all components are created in code, there is no "drop on form" automatic handling of them, so I know exactly where they are actually handled.

Use Synaser library.

Friendly, J.P

Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

 

TinyPortal © 2005-2018