Has anyone had any luck connecting an I2C device to Linux? Not talking about a Raspberry PI. That is very easy since I2C support is built in. Unfortunately, the PI is somewhat short on horsepower.
With an old (Very old) pc with a parallel printer port it is no problem, since the legacy port is just a GPIO that can be read and written straight to the metal. Unfortunately, those hard addressed ports are long gone from any motherboard in the last 15 or so years. There are PCI-e parallel port cards available, but while they might work, the documentation is nil and the supposed Linux drivers are just boilerplate crap. Have yet to find one that even compiles, let alone work. And without documentation on the card, writing a driver is almost impossible.
Amazon has small USB to I2C devices that are cheap, but most of them are slave devices - i.e., going the wrong way, allowing the connection of USB to an I2C master, rather than the other way around. There are a couple that seem to be USB Master to Slave I2C, but again, lousy or no documentation and drivers that are phony, calling for libraries that don't exist in Google search or in any of the Distro sources.
All I need are three pins to the outside. Or two if one of them is bi-directional.
For now, I use dedicated Arduinos with a self-built shield to make the interface, but I continue my search for a native solution.
Anybody?
With an old (Very old) pc with a parallel printer port it is no problem, since the legacy port is just a GPIO that can be read and written straight to the metal. Unfortunately, those hard addressed ports are long gone from any motherboard in the last 15 or so years. There are PCI-e parallel port cards available, but while they might work, the documentation is nil and the supposed Linux drivers are just boilerplate crap. Have yet to find one that even compiles, let alone work. And without documentation on the card, writing a driver is almost impossible.
Amazon has small USB to I2C devices that are cheap, but most of them are slave devices - i.e., going the wrong way, allowing the connection of USB to an I2C master, rather than the other way around. There are a couple that seem to be USB Master to Slave I2C, but again, lousy or no documentation and drivers that are phony, calling for libraries that don't exist in Google search or in any of the Distro sources.
All I need are three pins to the outside. Or two if one of them is bi-directional.
For now, I use dedicated Arduinos with a self-built shield to make the interface, but I continue my search for a native solution.
Anybody?