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

PEC #4

Open
foobarbecue opened this issue Nov 1, 2017 · 1 comment
Open

PEC #4

foobarbecue opened this issue Nov 1, 2017 · 1 comment

Comments

@foobarbecue
Copy link

Is it possible to enable Packet Error Checking in this library?

@pdg137
Copy link
Member

pdg137 commented Nov 10, 2017

I don't know anything about Packet Error Checking, but it would be nice to have that option; do you have information about how to enable it on the Pi's I2C port?

One of my concerns with CRC-based error-checking is that it's hard to be sure that it's actually working, without deliberately introducing noise into your system. Also, I have no idea what the error rate in a normal I2C setup is, and since a 1-byte CRC can only reduce the rate by a factor of 256, it's hard to know that the CRC is needed or good enough. What if you need to get the error rate down from 1 in a million to 1 in a billion? For a lot of robotics applications, it might be simpler and easier to just periodically overwrite all the values or to read them back. Or if you really need good error checking, set up your own 2-byte CRC.

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

2 participants