* * *

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

allan.brito

  • Newbie
  • Posts: 2
Re: TLazSerial : serial port component for Lazarus (windows and linux).
« Reply #225 on: March 08, 2017, 04:02:07 pm »
Hello Everybody,

I'm using LazSerial and it's very useful, but I'm getting some trouble because I want to receive 15 bytes from a barCode Scanner and I can't get it. In Java I get it because i put that I'm receiving 15 bytes. Can anyone help me in this case? Thanks in Advance.

Thaddy

  • Hero Member
  • *****
  • Posts: 3429
Re: TLazSerial : serial port component for Lazarus (windows and linux).
« Reply #226 on: March 08, 2017, 04:49:27 pm »
Well. There still isn't an overloaded function ReadData(Size) for that. It is still string instead of buffer of byte, with length... (That's why I don't use it!)
Since "//    function ReadBuffer(var buf; size: integer): integer;"  is not available....
Why? Dunno, I simply ignore LazSerial and use synaser direct. Lazserial is a bit of a hoax anyway.  It hardly adds anything useful. (I am opiniated  ;D :D,don't take that too serious )
« Last Edit: March 08, 2017, 04:54:15 pm by Thaddy »

allan.brito

  • Newbie
  • Posts: 2
Re: TLazSerial : serial port component for Lazarus (windows and linux).
« Reply #227 on: March 08, 2017, 05:35:49 pm »
No problem, I'm new in this language and LazSerial had helped me so much. And Thanks everybody, I get it... I had to disable the RcvLineCRLF and worked well. Thanks.

Stan17

  • Newbie
  • Posts: 3
Re: TLazSerial : serial port component for Lazarus (windows and linux).
« Reply #228 on: April 06, 2017, 10:05:16 am »
Is it supposed to be working under Win 7 64 Lazarus 1.6.4 64?
When I am trying to install the package, I am getting notorious
"CPort.pas(28,1) Fatal: Syntax error, "identifier" expected but "TYPE" found"

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 602
Re: TLazSerial : serial port component for Lazarus (windows and linux).
« Reply #229 on: April 08, 2017, 03:48:09 am »
hello,
Strange !   :-\  because cport.pas belongs to the comport library not lazserial.

Friendly, J.P

avra

  • Hero Member
  • *****
  • Posts: 922
    • Additional info
Re: TLazSerial : serial port component for Lazarus (windows and linux).
« Reply #230 on: May 20, 2017, 01:10:15 am »
TLazSerial in Online Package Manager should be updated to v0.2 from github because v0.1 has a conflict with synaser file names when Synapse package is installed.
ct2laz - Easily convert components and projects between Lazarus and CodeTyphon

 

Recent

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