我使用 labview 写的是没有问题的,通过串口助手发送产品也有反应
但是在使用 C#就没办法正常通讯
首先 我确认了线是没问题的,串口属性是没问题的 9600-8-n-1
byte[] command = new byte[] { 0xAA, 0x55, 0x12, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xEE };
// 发送数据 serialPort.Write(command, 0, command.Length);
就很奇怪
1
sunmker 13 天前
先打开串口,.open
|