Serial Port Component For Lazarus In The Bible
1.) Thanks for the Lazserial, great work. I wish it would be included in the Laz.distribution package, because the installation needs some hands on. To have it work for me, I needed to point the poject inspector to the location of 'LazSerialPort.pas'.
[Lazarus] [LAZARUS] Any Free/Cheap Async Serial Port Component. This newbie is familiar with COMPORT from WINSOFT from my olden Delphi days, but I can no longer. The Lazarus Pit Bible Serial Port Component For Lazarus Come Forth Scripture. Arduino or BASICstamp, or PIC or other microprocessor. TLazSerial: serial port component for Lazarus. // add some delays to allow for serial port setup. Open the file and uncompress it in the Lazarus/components. TLazSerial: serial port component for Lazarus (windows and linux). Free Pascal Website Downloads Wiki Bugtracker Mailing List Lazarus.
Now the compiler gives me the warning: 'other unit files search path (aka unit path) of. Contains: lararus components Lazserial. Maybe my fault, since I am an absolute Lazarus newbie(noob). Anyway, it works now, thanks alot again for the great piece of software. 2.) I noticed that I am loosing characters on the RS232, whenever 'Windows-Defender' is running, regardless of UART configuration/speed/workload/etc.
Setup: IntelAtom Win10home-32bit with a RS232/USB converter with FT232 chipset. It's not Lazarus(Serial) fault, but is there a workaround? Hello JP, yes, I 'RTFM', that's how I installed it in LZ1.4.2, after that way of installing it, it gave me when compiling a program the first time an 'LazSerialPort' not found error'. Sorry, I cant remember what it was exactly. That error message went away, only after using the projectinspector. I just removed the path from the projectinspector, voila, now it works without the earlier added path and compiles without any warnings. Again, might have been my mistake (maybe because I tried to use synaser additionally in the 'uses' declaration (sometimes mentioned here in the discussion), what I should not have done/needed).
The FT232 drivers I had been using, were from something beginning 2015, which came with Win10-'Out-Of-The-Box'. I just checked, and you're right, there are newer ones. I just updated to version 2.8.30. Florida Driver License Font. 2011 Black List Scripts Pdf Reader. 0 dated.
Now it works perfectly, even without tweaking inside the driver setup, not loosing any characters at all, even with heavy system workload on the weak IntelAtom. Thanks for the hint. Two more question: Right now, I am using only the OnRxData event for receiving chunks of incoming bytes via LazSerial.ReadData.
Is there a way to know, if or which of the byte(s) that I read had frame or parity error(s)? Or will the badly transmitted bytes be skipped and only the OnStatus event be raised? Another thing: When trying to open a none existing COM the debugger raises an exception, when continuing, message says that 'pressing Ok might risk data corruption', normal, or how to avoid that? Is there some detailed documentation (of the (class)interface) of LazSerial somewhere that I havent found, so I would not bother putting up those (dumb) questions? Thanks again, really appreciated. Greets, AD P.S.
My native language is also not english. Hi, tnx for this Lazarus-forum-item. Got the whole stuf compiled/installed/Lazarus-rebuild. E Howard Clock. My question is: What do I use/need from all the stuff for just an easy RS232-communication between Lazarus and a mikrocontroller. I don't need that GPS-example.
By the way, got my Arduino2560 ( using mikroPAscal ) allready usable for RS232. Using wires: RX and TX. The PC-mikroPascal-IDE-USARTterminal and my Arduino are allready communicating in both ways with a native RSR232-port at my PC and a MAX232-convertor-pcb to my Arduino. LCD at Arduino is displaying the received string from PC-mikroPAscal-IDE-USARTterminal, and sends it back to PC-mikroPascal-IDE-USARTterminal and displays it. Thanks in advance.
So far so good! For testing and see thing clears I send from Arduino secuently a 27 char string: ( instead of a string filled with 24 'values' ending with 'end') 'N888end' N: string with numbers 'Laabbbcccdddeeefffggghhhend' L: string with letters Now I can see if a diplayed string on my Lazarus form is from one and the same sended string or an mixed string from 2 sended string! After a while and lots of coding and 'adjustments' I got a stable displayed string. ( apearently I don't need a delimiter in Lazars, but I DO in mikropAscal Arduino when receving from RS232 ) Next thing I wanted to run the application for a long time and 'catch' wrong strings by just checking: first char is it an 'L' or an 'N'? If not: increment and display the errornumber on my form. As learned the first char in a string is placed at position 0 as in stringIN[0], but then I found out i had to check stringIN[1]. See, picture.