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]
.