开发者

What is DCB in "Communications Structures"?

What does DCB stand for in Communications 开发者_如何学编程Structures? Is it a text file reside somewhere in the reference? What is the difference in the baud rate in DCB and the baud rate in SerialPort Class? When I'm using a SerialPort class am I also using DCB?


DCB = Data or Device Control Block

It is not a text file. It is typically a struct. MSDN lists more information on DCB at MSDN. At CodeProject, there is a good introduction to Serial Port Communications using the Win32 DCB Structure. The SerialPort object/class is a wrapper. Baud Rates will be the same because the device will require a consistent baud rate.


It is simply a structure that contains the serial port configuration. Baudrate, handshaking etcetera. You need it when you write native code, SetCommState() requires it. Yes, you still use it when you use the SerialPort class. It however hides it from view and gives you friendly properties. Like BaudRate, Handshake, etcetera. It uses the property values to create a DCB and pinvoke SetCommState when you call the Open() method.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜