kelly / node-i2c

Node.js native bindings for i2c-dev. Plays well with Raspberry Pi and Beaglebone.
Other
216 stars 91 forks source link

Kernel ioctl concurrency control #59

Open joraff opened 9 years ago

joraff commented 9 years ago

I apologize: this is more of a question than an issue.

What are others doing to avoid I/O errors from simultaneous access to a linux i2c device file? I am thinking of creating a module that implements a job queue for i2c actions on a single device (/dev/i2c-1) using this module and something like https://github.com/caolan/async queue.

Is anyone else already doing this?