Android and I2C support in C++

SlyCom
Hi,

I'd like to install Android on my mini2440 and use my application written
in C++ for I2C interface. Currently I have installed Qtopia 2.2 and it
works good. I have no experience in Android. Could someone advice me if
it's possible to use I2C interface using C++ in Android as in other
systems?

Hagendorf
Yes, it is possible.
I'm using the i2c tools under Android (standard image: Android FS/Kernel
2009-08-25). I just compiled the tools with the cross compiler and copied
them to the board.

Regards,
Olaf

Haz
Can you describe how we do this? I am getting the Mini6410, and wanted to
use the I2C and UART with external hardware, and wanted to control through
a stadard activity.

Can you help point me to any such topics, or if you have a quick win on how
to do it?

Thanks,
Haz

Tom
As I remember, Android is based on Linux kernel, so You probably can access
to I2C by using, for example this:

http://www.mjmwired.net/kernel/Documentation/i2c/dev-interface

good luck
best regards
Tom

jignesh patel
I have Developed One C Android Application to Access External Hardware
Board Using i2c Protocol But Problem Is Look Like When I Run Application To
Lcd Its Getting Error : i2c open Permission Denied.

How Can I Open i2c device Using Android Framework API.

I2c Has Root Permission So Other Can't Access.
 
Any Buddy Have Idea About I2c Access From Android Framework Please Reply
Me.


Thanks
Jignesh Patel

ohagendorf
You have to check the permissions of the i2c device.
I had the same problem and added a chmod in the boot script.
The problem is that the Android app doesn't have root privileges but at a
console you have.

Regards
Olaf

An droid
Maybe take a look here
http://support.garz-fricke.com/projects/Vincell/Android/VINCELL-1.4.0/SD...