帮助看看串口监视结果显示的有没有数据传输
下面是串口监视结果截取的内容,请问有没有数据传输,如何有的话是从哪句到哪表示数据传输的,并且希望介绍下中间的语句都是表示什么意思?
124800:21:39z?exeIRP_MJ_CREATESerial1SUCCESSOptions: Open
124900:21:39z?exeIOCTL_SERIAL_SET_QUEUE_SIZESerial1SUCCESSInSize: 8192 OutSize: 8192
125000:21:39z?exeIOCTL_SERIAL_GET_BAUD_RATESerial1SUCCESS
125100:21:39z?exeIOCTL_SERIAL_GET_LINE_CONTROLSerial1SUCCESS
125200:21:39z?exeIOCTL_SERIAL_GET_CHARSSerial1SUCCESS
125300:21:39z?exeIOCTL_SERIAL_GET_HANDFLOWSerial1SUCCESS
125400:21:39z?exeIOCTL_SERIAL_SET_BAUD_RATESerial1SUCCESSRate: 57600
125500:21:39z?exeIOCTL_SERIAL_CLR_RTSSerial1SUCCESS
125600:21:39z?exeIOCTL_SERIAL_CLR_DTRSerial1SUCCESS
125700:21:39z?exeIOCTL_SERIAL_SET_LINE_CONTROLSerial1SUCCESSStopBits: 1 Parity: NONE WordLength: 8
125800:21:39z?exeIOCTL_SERIAL_SET_CHARSerial1SUCCESSEOF:54 ERR:0 BRK:0 EVT:0 XON:11 XOFF:13
125900:21:39z?exeIOCTL_SERIAL_SET_HANDFLOWSerial1SUCCESSShake:0 Replace:0 XonLimit:2048
XoffLimit:2048
126000:21:39z?exeIOCTL_SERIAL_SET_TIMEOUTSSerial1SUCCESSRI:-1 RM:0 RC:0 WM:100 WC:1000
126100:21:39z?exeIOCTL_SERIAL_SET_WAIT_MASKSerial1SUCCESSMask: RXCHAR TXEMPTY DSR
126200:21:39z?exeIOCTL_SERIAL_WAIT_ON_MASKSerial1SUCCESS
126300:21:39z?exeIOCTL_SERIAL_GET_MODEMSTATUSSerial1SUCCESS
126400:21:39z?exeIOCTL_SERIAL_GET_MODEMSTATUSSerial1SUCCESS
126500:21:39z?exeIOCTL_SERIAL_GET_MODEMSTATUSSerial1SUCCESS
126600:21:39z?exeIOCTL_SERIAL_SET_RTSSerial1SUCCESS
126700:21:39z?exeIOCTL_SERIAL_SET_DTRSerial1SUCCESS
126800:21:39z?exeIOCTL_SERIAL_GET_MODEMSTATUSSerial1SUCCESS
126900:21:39z?exeIOCTL_SERIAL_GET_MODEMSTATUSSerial1SUCCESS
127000:21:39z?exeIOCTL_SERIAL_GET_COMMSTATUSSerial1SUCCESS
127100:21:39z?exeIOCTL_SERIAL_PURGESerial1SUCCESSPurge: TXCLEAR RXCLEAR
[解决办法]
你这里面似乎没有收发数据吧,这是打开串口并设置波特率,奇偶校验,数据缓冲等操作的IOCTL消息;
例如IRP_MJ_CREATE是调用CreateFile()打开串口时发送给内核的消息,
IOCTL_SERIAL_SET_QUEUE_SIZE是设置串口驱动中收发缓冲的大小的消息
IOCTL_SERIAL_GET_BAUD_RATE是取当前波特率的消息等等
如果想详细了解这些消息的类型,建议看看MSDN中相关的内容。
收数据的派遣消息是IRP_MJ_RREAD, 发数据的派遣消息是IRP_MJ_WRITE