After using a number of serial-port-components, I've got the best results until now, by using CreateFile('? COM1',GENERICREAD or GENERICWRITE,0,nil,OPENEXISTING, FILEATTRIBUTENORMAL,0), passing that handle to a THandleStream instance, and starting a dedicated thread to read from it.I know threads take a little more work than writing an event handler, but it still is the best way to.
Serial Communications Library for Delphi: Delphi serial port library, serial component, Codegear Delphi serial controlSerial Communication Library for Delphi - Borland - Embarcadero serial port component, serial port control, virtual serial ports, usb serial and RS232, RS422, RS485 software tool for DelphiWindows Standard Serial Communication Library for DelphiThe Windows Standard Serial Communications Library for Delphi(WSC4D) is an serial communication library based on the WindowsAPI. Includes 52 functions plus modem control, serial comm API.
WSC4D uses the core Windows API to communicate with any device connectedto a serial port from within a Delphi application.A simple interface allows accessing data from a serial port using RS232 or multi-drop RS422 / RS485 serial ports. WSC also supports virtual ports such as those created by Bluetooth and USB/serial converters.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |