Request: Gpio Access from Android - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4) +--- Forum: Pine A64 Hardware, Accessories and POT (https://forum.pine64.org/forumdisplay.php?fid=32) +--- Thread: Request: Gpio Access from Android (/showthread.php?tid=1950) |
Request: Gpio Access from Android - Zoidiano0 - 08-05-2016 Hello i was looking in the android image but seems that the gpio pins are not avaliable in the /sys/class/gpio directory the directory does not even exist so please any way that we can make this think work on android:>?? of course there is no a single tablet with GPIO of course its a TABLET not a Development BOARD!! then why have android working on the board that have more thant 50+ gpio but u cant acceso from the OS u want to run on >?? so i think that we need some examples to control them from android with working pwm, spi, i2c, interrupts etc... other wise its like y get this board if u need other board to do the things u want to do with it in the first place and the board itself have the gpio u need ???? thanks! : RE: Request: Gpio Access from Android - MarkHaysHarris777 - 08-05-2016 I have sent a query to tllim asking for a development api from the engineers for access to the GPIO in Android. At some level this is avilable, because all tablet sensors are connected internally to some form of GPIO bus... ... we'll see what tllim says. RE: Request: Gpio Access from Android - xalius - 08-06-2016 Usually the GPIOs for sensors are directly implemented in the drivers and exposed to the Android HAL for that particular device, same for the hardware buttons on phones/tablets. Android Linux runtime usually does not use /sys or /dev devices with some rare exceptions... it's not a general purpose OS. That's not to say you can't write a driver that exposes GPIOs through the HAL as an Android service, maybe there is already somehting like that around somewhere... Look at : http://de.slideshare.net/linaroorg/sfo15505-introducing-i2c-gpio-user-space-apis-for-android for an example how I2C and GPIO can be implemented RE: Request: Gpio Access from Android - dkryder - 08-06-2016 (08-05-2016, 08:41 PM)Zoidiano0 Wrote: Hello try search for [android gpio raspberry pi], i was reading some stuff there. btw, /sys/class/gpio exists on my nexus 7 android 4.4 , nexus 7 (2013) android 5.1, pixel c android 7, and nexus 9 android 7. so there is possibilities in basic android. it surprises me that your pine64 android does not have that directory. i wonder if remix build does. i'm pretty sure device needs to be rooted and have a file manager with root access to see it. google spends time developing ioio so not so much gpio. but others seem to have made hopeful advances. good luck with this RE: Request: Gpio Access from Android - Zoidiano0 - 08-06-2016 thanks guys i hope to see more development on this topic soon and ya i have tried the rooted version but nope there is no such a directory ill keep searching info about it thanks! RE: Request: Gpio Access from Android - MarkHaysHarris777 - 08-06-2016 I heard back from tllim; there are plans in the works for exposing the GPIO in Android , and the effort is underway; at this point I have no solid details as to how that will look, but tllim said my question came with good timing because the engineers responsible for the Android images are working on it for soon release. Stay tuned , and stay positive ! The following is tllim's reply to my query requesting Android GPIO API : Quote:Your question comes in the right timing. We are currently working on open up GPIO at the Android Kernel level and work on the way up. The first one is i2C that currently trying out. However, you may aware that enable GPIO in Android is not as easy as Linux. So, this is really good news. Everyone, sit tight, exciting things are on the way ! RE: Request: Gpio Access from Android - Zoidiano0 - 10-01-2016 News About this.?? o.O |