请问楼主你连接串口的数据包是这样的吗?
24.0 CTL a1 21 00 00 00 00 07 00 GET LINE CODING 58.1.0(4)
24.0 DI 00 c2 01 00 00 00 08 ....... 58.2.0
24.0 CTL 21 20 00 00 00 00 07 00 SET LINE CODING 62.1.0
24.0 DO 00 c2 01 00 00 00 08 ....... 62.2.0
24.0 CTL a1 21 00 00 00 00 07 00 GET LINE CODING 63.1.0
24.0 DI 00 c2 01 00 00 00 08 ....... 63.2.0
24.0 CTL 21 22 02 00 00 00 00 00 SET CTRL LINE ST 64.1.0
24.0 CTL 21 20 00 00 00 00 07 00 SET LINE CODING 65.1.0
24.0 DO 00 c2 01 00 00 00 08 ....... 65.2.0
24.0 CTL a1 21 00 00 00 00 07 00 GET LINE CODING 66.1.0
24.0 DI 00 c2 01 00 00 00 08 ....... 66.2.0
如果是,请问你连接后,是怎么样进行数据传输的啊,host给你的in 令牌包是怎么产生的?
连接串口工具的过程中,CTL 21 20 00 00 00 00 07 00 SET LINE CODING 这个命令,pc发送是7个字节吗?我这里怎么收的是8个字节啊,而且有一个字节卡在rxfifo中卡死了,您是怎么处理的啊 |