使用VB进行COM口通信的问题
现有一个VB串口通信的程序,它的初始化过程如下:
1,13:34:42,?酊??蠏?(2?ⅲ).exe(3380),IRP_MJ_CREATE,COM1,0,,2,13:34:42,?酊??蠏?(2?ⅲ).exe(3380),IOCTL_SET_QUEUE_SIZE ,COM1,8, QueueSize.InSize: 10, QueueSize.OutSize: 10,3,13:34:42,?酊??蠏?(2?ⅲ).exe(3380),IOCTL_SET_BAUD_RATE ,COM1,4, 9600,4,13:34:42,?酊??蠏?(2?ⅲ).exe(3380),IOCTL_CLR_RTS ,COM1,0,,5,13:34:42,?酊??蠏?(2?ⅲ).exe(3380),IOCTL_SET_DTR ,COM1,0,,6,13:34:42,?酊??蠏?(2?ⅲ).exe(3380),IOCTL_SET_LINE_CONTROL ,COM1,3, WordLength: 8 StopBits: 1 Parity:0(None),7,13:34:42,?酊??蠏?(2?ⅲ).exe(3380),IOCTL_SET_CHARS ,COM1,6, Chars Eof: 26, Error: 0, break: 0, Event: 0, Xon: 17, Xoff: 19,8,13:34:42,?酊??蠏?(2?ⅲ).exe(3380),IOCTL_SET_HANDFLOW ,COM1,16, DCB.fRtsControl=RTS_CONTROL_DISABLE DCB.fDtrControl=DTR_CONTROL_ENABLE DCB.fDsrSensitivity=FALSE DCB->XonLim: 2 DCB->XoffLim: 2,9,13:34:42,?酊??蠏?(2?ⅲ).exe(3380),IOCTL_SET_BAUD_RATE ,COM1,4, 4800,10,13:34:42,?酊??蠏?(2?ⅲ).exe(3380),IOCTL_CLR_RTS ,COM1,0,,11,13:34:42,?酊??蠏?(2?ⅲ).exe(3380),IOCTL_SET_DTR ,COM1,0,,12,13:34:42,?酊??蠏?(2?ⅲ).exe(3380),IOCTL_SET_LINE_CONTROL ,COM1,3, WordLength: 8 StopBits: 1 Parity:3(M),13,13:34:42,?酊??蠏?(2?ⅲ).exe(3380),IOCTL_SET_CHARS ,COM1,6, Chars Eof: 26, Error: 63, break: 63, Event: 0, Xon: 17, Xoff: 19,14,13:34:42,?酊??蠏?(2?ⅲ).exe(3380),IOCTL_SET_HANDFLOW ,COM1,16, DCB.fErrorChar=TRUE DCB.fRtsControl=RTS_CONTROL_DISABLE DCB.fDtrControl=DTR_CONTROL_ENABLE DCB.fDsrSensitivity=FALSE DCB->XonLim: 2 DCB->XoffLim: 2,