![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
通信
初级打字员
这个作者很懒,什么都没留下…
展开
-
【C#】程序自动重新连接
int cnt = 0; do { try { workD(); cnt = 11; } catch (Exception e) { cnt++; Console.WriteLine("正在重连。。第" + ...原创 2022-05-19 11:05:00 · 561 阅读 · 0 评论 -
C# 串口接收小工具,数据校验完整接收
项目用的小工具,简单写的,算是做个备份。串口发送工具用的是sscom。模拟的是地磅仪表数据 格式如下:ZR,GS+002903kg配置文件写在app.config里面 static void Main(string[] args) { ReciveData.SerialPort_DataReceived(); Console.Read(); } public class ReciveData { p原创 2021-11-23 17:46:55 · 1684 阅读 · 2 评论