ljean / modbus-tk

Create Modbus app easily with Python
Other
557 stars 211 forks source link

Add delays to avoid corrupting packages. #185

Open Magic-Doufu opened 10 months ago

Magic-Doufu commented 10 months ago

Add delays to solve corruption pack issue. (CH341 working well, but ft232 with vcp driver always corrupting.)

-->1-3-0-0-0-10-197-205
<--1-3-20-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-163-103
-->1-3-0-0-0-10-197-205
<--1-3-20-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-163-103
-->1-3-0-0-0-10-197-205
<--1-3-20-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-163-103
-->1
invalid request: Request length is invalid 1
-->3-0-0-0-10-197-205
invalid request: Invalid CRC in request