随笔分类 -  串口编程

C# MODBUS 通信
摘要:背景 电厂有多组监控设备,需要在指定的设备上显示某些数据(其他设备对接过来的)。通信协议是modbus主从结构。 源码: http://download.csdn.net/download/wolf12/8931267 阅读全文
posted @ 2017-11-29 12:49 wolf12 阅读(6285) 评论(0) 推荐(0)
CRC16校验码生成
摘要:/// <summary> /// 计算CRC-16 /// </summary> /// <param name="data"></param> /// <returns>高位在前</returns> public byte [] CRC_16(string data) { if ((data.L 阅读全文
posted @ 2014-04-04 15:11 wolf12 阅读(3106) 评论(0) 推荐(0)