帧格式:1个起始位,8个数据位,1个停止位;无校验位;
起始位、停止位应该设置为1还是0阿?

解决方案 »

  1.   

    起始位不用设。都是1位
    StopBits
        Number of stop bits to be used. This member can be one of the following values.
        Value  Meaning
        ONESTOPBIT
        0  1 stop bit.
        ONE5STOPBITS
        1  1.5 stop bits.
        TWOSTOPBITS
        2  2 stop bits.
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/dcb_str.asp