var bt = new byte[] { 0x03, 0x00, 0x01, 0xD9, 0x23 };
               var result = new byte[] { 0x01, 0x00, 0x03, 0x00, 0xFC };
               var tmp = new byte[5];
               _sp.Write(bt, 0, bt.Length);
               Thread.Sleep(500);
               var recive = new byte[_sp.BytesToRead];
               _sp.Read(recive, 0, _sp.BytesToRead);
               Array.Copy(recive, 6, tmp, 0, 5);
               return CompareArray(tmp, result);

相关文章:

  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-15
  • 2021-10-14
  • 2022-12-23
  • 2021-05-29
  • 2022-12-23
  • 2022-01-06
相关资源
相似解决方案