Delphi Serial Port Tutorial
I am trying to write a program which will listen to the serial input from Arduino board connected via usb, and sending output to serial port (COM4). But I don't know how to get input from serial port in Delphi. I need program to listen to the port, and whenever the input comes, it should react to it. Any suggestions?
Tofig HasanovTofig HasanovUsing a PC's serial port. The best place to start is my tutorial on writing to the serial port. Serial communication in Delphi and related components. Links ¦ interviews misc ¦ tutorials ¦ Add&Win Game. First step is to open the communications device for read/write. To write data to the serial port. Do you like Torry's Delphi Pages? You can support it by donation at your choice by button. ZylSerialPort is a Delphi & C++Builder thread based serial port component.
Delphi Serial Port Component
closed as too broad by MSeifert, greg-449, ivan_pozdeev, EdChum, DavidJan 4 '17 at 10:30
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
Delphi Serial Port
3 Answers
http://sourceforge.net/projects/tpapro/ is a freeware tool we've used with great success for many years.
Delphi Serial Port Tutorial
RobertFrankRobertFrankThe already suggested tpapro will probably also do it, but I myself use TComport, which I consider slightly easier to use. It will has an event property onrxchar that triggers whenever a character arrives (and several options for other kinds of packets, including ASCII linediscipline).
I use it pretty much for the same kind of stuff, albeit with microchips mcus.
Marco van de VoortMarco van de VoortI've used the Comport library of WinSoft for many.. years. It´s excellent (0 bugs) and works with any version of windows.
The link is: http://www.winsoft.sk/comport.htm
Juan Carlos VelezJuan Carlos Velez