zhaopeiym / IoTClient

This is an IoT device communication protocol implementation client, which will include common industrial communication protocols such as mainstream PLC communication reading, ModBus protocol, and Bacnet protocol. This component is open source and free for life, using the most relaxed MIT open source agreement, you can modify and commercial use at will (commercial use please evaluate and test). 这是一个物联网设备通讯协议实现客户端,将会包括主流PLC通信读取、ModBus协议、Bacnet协议等常用工业通讯协议。本组件终身开源免费,采用最宽松的MIT开源协议,您可以随意修改和商业使用(商业使用请做好评估和测试)。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

功能建议

Larpx opened this issue · comments

commented

我遇到的问题是使用RS485设备链接ModbusRTU协议的设备,收到的数据头和尾分别多了一个0,导致CRC校验失败。
我修改了您的代码,在SerialPortBase类中的SerialPortRead方法末尾添加了过滤首尾00,建议您增加这个小功能

收到