Serial Port In Delphi
ComPort, Delphi and C++ Builder component for serial communication on Windows 95/98 and Windows NT/2000. Enables communications with modems or other devices connected to serial port. Uses multithreading and overlapping for maximum performance. FabulaTech Technical Documentation - Serial Port Control SDK - Developer API - Integration into Development Environment - Borland Component Integration - Borland Delphi 7.
Serial Port Component Delphi 7
I am still having issues with the TComPort component but this time is not the component itself is the logic behind it. I have a device witch sends some ascii strings via serial port i need to prase those strings the problem is the computer reacts very fast so in the event char it captures only a part of the string the rest of the string comes back later. So parsing it when it is recived makes it impossible.Serial I/O (RS232) Using Delphi (RS232) All Intel PCs have one or two serial ports usually referred to as Com1 and Com2. These comm ports provide voltages and pin outs consistent with RS-232C.I was thinking in writing a timer witch verify if there was no serial activity 10 secons or more and then prase the string that i am saving into a buffer. But this method is unprofessional isn't there a idle event witch i can listen.Waiting for the best solution for my problem.
Assume you use Djean Crnila's et al TComport (several components are called 'TComport'). This issue might be related to the data event trigger but also possible the baud rate of your serial device is set to a rate different from the rate of your comport control. If your device sends packets once every few ms, you should easily be able to capture and parse the entire data packet if the packet is a reasonable length. Does the device send an end of packet control character?-makes it easier.
If you provide a more info about the device, received packet etc. Someone might be able to provide help. – May 11 '12 at 13:56.