Listening to serial port on Delphi 7 [closed]
Asked Answered
I

3

5

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?

Inexpungible answered 10/5, 2011 at 14:25 Comment(0)
Q
11

http://sourceforge.net/projects/tpapro/ is a freeware tool we've used with great success for many years.

Quietude answered 10/5, 2011 at 14:46 Comment(2)
+1 Why was this voted down? It is a wellknown serial lib for Delphi?Web
Also works with older versions of Delphi, hurray! +1Covering
W
5

The 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.

Web answered 10/5, 2011 at 16:34 Comment(0)
S
1

I'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

Spenserian answered 11/5, 2011 at 22:23 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.