Jump to content
彼岸论坛
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[问与答] C#串口通信问题 求教


Recommended Posts

Posted

我使用 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);

就很奇怪

  • 游客注册

    游客注册

  • Members

    No members to show

  • Recent Status Updates

    No Recent Status Updates
  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...