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

add I2C locking #60

Open
sibnick opened this issue Feb 26, 2023 · 1 comment
Open

add I2C locking #60

sibnick opened this issue Feb 26, 2023 · 1 comment

Comments

@sibnick
Copy link

sibnick commented Feb 26, 2023

There is no locking in I2C implementation. It is an issue if there are several I2C devices and parallel processes. Every I2C read operation contains two independent syscalls. I suggest calling "fcntl.flock". Unfortunately, SMBus package does not provide direct access to I2C file descriptor. Can we use SMBus2 package?

@github-actions
Copy link

Thank you for creating your first issue on this repo! Give me some time to review and respond to your problem.

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