List Info

Thread: com port communication with a device




com port communication with a device
country flaguser name
United States
2007-05-30 06:35:23

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]

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )