com port communication with a device
"niko svako" <[email protected]> Wed, 30 May 2007 14:35:23 +0300
| Newsgroups | gmane.comp.lang.delphi.jedi |
|---|---|
| Message-ID | <[email protected]> |
How can I write a program which are communication with a device which is
connected to comport? The device reuirements are below:
- The data format of the interface is 4800 baud,
- 1 start bit,
- 8 data bits,
- 1 stop bit,
- no parity.
- For the protocol,XON/XOFF should be set. Data are transmitted and
received
as ASCII characters.
For this communication I can use some codes and some components. But I was
not able to do this.
hComm = CreateFile("COM1",
GENERIC_READ | GENERIC_WRITE,
0,
NULL,
OPEN_EXISTING,
0,
NULL);
I am thinking that my problem is about handshaking(1 start bit, ASCII,
XON/XOFF) ... etc.
But I did not solve this. Can you help me about this problem.
Best regards.
niko svako.
[Non-text portions of this message have been removed]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Delphi-JEDI/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/Delphi-JEDI/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[email protected]
mailto:[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/