Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于CRC16modbus校验计算的问题反馈 #326

Open
Xinshao520 opened this issue Mar 18, 2024 · 0 comments
Open

关于CRC16modbus校验计算的问题反馈 #326

Xinshao520 opened this issue Mar 18, 2024 · 0 comments

Comments

@Xinshao520
Copy link

开发者你好:
我很喜欢用你的开发工具,但是在使用过程中发现了以下的问题:crc16modbus校验算法与实际计算结果不符合的问题。
在你的工具上使用crc16modbus计算以下“01 03 02 01 84”数据时计算的结果是“b7 b9”;但是我们根据实际的crc16modbus算法去计算数据得出的结果是“B9 B7” ;在这边你会发现你的计算结果与实际的计算结果数据真好相反的,我做过多次测试,计算结果都与实际计算数据相仿。
在这里我推测你是误用了CRC-16(MSB-LSB)算法,CRC-16(MSB-LSB)与crc16modbus算法计算顺序是相反的,所以通常计算结果也是相反的。
在这里我希望作者能修复好crc16modbus算法并且增加CRC-16(MSB-LSB)算法;期待开发者能更好的完善此工具。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant