Re: [RFC] Driver for Arduino-as-I2C-adapter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Bernhard,

There are many cheap I2C adapter projects (mostly USB though). One of the simple ones (i2c-tiny-usb) is included in the kernel, while LinkM (https://github.com/todbot/LinkM) stayed userspace.

As regarding to cheap serial line based adapters, there are two I have seen before (http://www.gedanken.org.uk/electronics/rs232-converters/i2c.html and http://www.robot-electronics.co.uk/acatalog/USB_I2C.html) and both define a different protocol.

Personally I would suggest to try follow one of those protocols to avoid creating a new one and would be happy to see an open sourced Arduino sketch as well.

I am afraid handling serial devices within a i2c kernel driver might be tricky and purists probably dislike the idea.

Best,
Alex

Bernhard Kraft wrote:
Hi,

For a project I needed to communicate with external hardware via the I2C protocol. I took a look at the existing drivers in the linux kernel source "drivers/i2c/busses".

Instead of buying yet another interface dongle (this time for I2C) I decided to use an Arduino with an apropriate sketch as I2C adapter.

Currently I access the I2C adapter (Arduino) via a custom program reading/writing to /dev/ttyACM0.


Do you think it would make sense to add an I2C driver to the Linux kernel for an "Arduino as I2C adapter" solution?

Or could you propose another solution? Maybe just an "external" module like the nvidia kernel module?



greetings,
Bernhard
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux