UART and I2C are simple enough. The underlying Linux drivers should be part 
of the kernel and you simply open them from /dev in your Android App. The 
only issue you may have is not having user rights access to them.

What I did was give user access to GPIO, UART, I2C, and SPI from the 
init.rc and then wrote a JNI to access the /dev or /sys/class/gpio etc. 

This is assuming you are developing the Android OS build yourself. That 
certainly makes it easier to set up access rights from init.rc.

Check your /dev directory and see if the tty or i2c devices are already 
present in your build. If so, you just need to check the access rights and 
write a JNI to use them from an Android App.

Dave...


On Thursday, 25 June 2020 22:42:13 UTC+7, NANDAKUMAR S wrote:
>
> Hi all,
>
>   Iam working on an android aosp project, in which now i want to develop 
> drivers for UART,I2C communication protocols. But iam new to this LINUX and 
> Android platform.
> Can anyone suggest me some resources or a procedure on how to learn this.
>
>

-- 
-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups 
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-porting+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-porting/f6ab2a50-30fc-4dfe-aee1-c21c67bc5cd9o%40googlegroups.com.

Reply via email to