Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Listening to serial port on Delphi 7 [closed]

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?

like image 550
Tofig Hasanov Avatar asked May 10 '11 14:05

Tofig Hasanov


2 Answers

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

like image 126
RobertFrank Avatar answered Oct 03 '22 14:10

RobertFrank


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.

like image 27
Marco van de Voort Avatar answered Oct 03 '22 16:10

Marco van de Voort