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

Please provide error control code using CRC #14

Open
rtek1000 opened this issue Mar 4, 2024 · 3 comments
Open

Please provide error control code using CRC #14

rtek1000 opened this issue Mar 4, 2024 · 3 comments

Comments

@rtek1000
Copy link

rtek1000 commented Mar 4, 2024

Hi, I don't know why all the tutorials I saw on the internet about using Dwin displays don't deal with CRC error control.

It is very important to have error handling in noisy environments, especially in places that have machines with brush motors and other types of machines with high power switching and commutation.

From what I understand, Dwin displays use the Modbus-type CRC16 calculation, but with the bytes swapped.

So I asked for some guidance on an Arduino library that calculates the CRC16 Modbus, but needs to change the bytes before comparing with the Dwin communication data.

RobTillaart/CRC#40

@rtek1000
Copy link
Author

rtek1000 commented Mar 4, 2024

Code added:

#16

@rtek1000
Copy link
Author

rtek1000 commented Mar 8, 2024

Added more functions with CRC, response check as well

@rtek1000
Copy link
Author

rtek1000 commented Mar 8, 2024

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