Recent

Author Topic: Synaser or Tserial  (Read 5145 times)

coradi

  • Full Member
  • ***
  • Posts: 148
Synaser or Tserial
« on: September 15, 2017, 12:22:18 pm »
Hallo,
I'm reading the Lazarus Book from C&L.
There is Synaser used for RS232
Where is there difference between Synaser and TSerial?
Is Tseriel for anything better or easier to use?
I allready know, that Synaser is for Linux to and TSirial not
Amstrad Schneider CPC 6128
AVR8/ARM(STM32)

mig-31

  • Sr. Member
  • ****
  • Posts: 305
Re: Synaser or Tserial
« Reply #1 on: September 15, 2017, 12:38:24 pm »
I think you mean Serial unit instead of TSerial.

Serial unit is also present in Linux installation.

You can use both, but the most simple is TLazSerial.
 
Lazarus 2.2.6 - OpenSuse Leap 15.4, Mageia 8, CentOS 7

wp

  • Hero Member
  • *****
  • Posts: 11916
Re: Synaser or Tserial
« Reply #2 on: September 15, 2017, 01:11:50 pm »
Are you referring to the chapter written by Jörg Braun? He is the author of a series of articles in the no-longer existing German journal "Toolbox" in which he presented a Delphi component named TSerial.

Beyond the fact that TSerial is Windows-only I think TSerial and synaser are pretty much the same. This latter is cross-platform and definitely works with Lazarus, I doubt whether TSerial can be used with Lazarus out of the box (of course, it can after some modifications).

From the transfer of an old Delphi project to Lazarus and switching from TSerial to synaser I remember that it is advantageous to run synaser in a separate thread. IIRC, TSerial has this built-in.

The advantage of TSerial is that, if you have a copy of these old articles (and speak German), you get a good documentation of the component (if you need them contact me by PM, and I'll try to find them). The documentation of synaser is... well, let me call it positively: "open-source standard". But on the other hand again, you'll get excellent support for synaser here in this forum because it is a wide-spread library.

McStep

  • Newbie
  • Posts: 6
Re: Synaser or Tserial
« Reply #3 on: September 15, 2017, 02:01:56 pm »
What about
https://github.com/JurassicPork/TLazSerial
It seems to work on W7 and UbuLinux. THe Sertest comiles fine on both systems,

Thaddy

  • Hero Member
  • *****
  • Posts: 14373
  • Sensorship about opinions does not belong here.
Re: Synaser or Tserial
« Reply #4 on: September 15, 2017, 03:49:28 pm »
What about
https://github.com/JurassicPork/TLazSerial
It seems to work on W7 and UbuLinux. THe Sertest comiles fine on both systems,
Yes, I would recommend that too. Note TLazSerial is just a component wrapper for Synaser....(Synapse)
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

 

TinyPortal © 2005-2018