|
-
May 18th, 2005, 07:49 AM
#1
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).
-
May 19th, 2005, 08:25 AM
#2
Re: Serial Communication
I don't want to use any ActiveX code at all.
-
May 19th, 2005, 11:36 AM
#3
Re: Serial Communication
Search in CodeGuru for "serial port". There were answers suggesting this, but somehow they disappeared...
"Programs must be written for people to read, and only incidentally for machines to execute."
-
May 19th, 2005, 11:41 AM
#4
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).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|