-
Serial Communication
I am trying to communicate between serial ports. The MSCOMM activex code works, but it is not what I want to use because you need the license and so forth. I have found a few examples on the web, but do any of you know a flawless way to do serial communication (read/write).
-
Re: Serial Communication
I don't want to use any ActiveX code at all.
-
Re: Serial Communication
Search in CodeGuru for "serial port". There were answers suggesting this, but somehow they disappeared...
-
Re: Serial Communication
Well...assuming the Windows operating system...
Depending on what you are trying to do take a look at the functions
Code:
BuildCommDCB()
ClearCommError()
CreateFile()
EscapeCommFunction()
GetCommModemStatus()
GetCommState()
GetCommTimeouts()
GetOverlappedResult()
ReadFile()
SetCommMask()
SetCommTimeouts()
WaitCommEvent()
WriteFile()
Additionally, the MSDN provides a detailed article about serial communication in Windows. Open MSDN, choose Index and type "Serial Communications". There are several subitems, choose 'Win32'... (it's also available online).