GPIO access running Android
#1
Has any progress been made getting access to the GPIO pins while running Android?
#2
GPIO on Android does not really make any sense... how many tablets (or phones) have you seen with GPIO pins ?

... that said, there are Android apps that let you talk to your raspberry PI from your phone, tablet, to the PI GPIO pins.

The GPIO software is a work-in-progress. RPi.GPIO-PineA64 is available as a package from github/ but, i2c is not ready, nor SPI, nor pwm. So, sit tight, and be patient; some of us are working on it.

I cannot confirm who (if anyone) is working on GPIO access from Android. If so, it will be a PineA64 only kinda thingy... and probably not a high priority (as apposed to video acceleration, CEC, and so on).

marcus
#3
Of course on a normal android device gpio is not needed or possible but on a board like the pine it would be nice.
I would be happy if it will be possible to use i2c or gpio in the future.
#4
It would be interesting to use the gpio for ambient lighting and the likes as a media center. That said, android with gpio sounds weird. How would you even interface with the pins? Would probs only work on rooted devices any way, since it'd requirehw access. But idk.
#5
i think that would be pretty great, for doing something such as building a wall mounted home automation controller.
could hook up temp monitors and humidity and a furnace interface, etc.
would have to probably write some custom app.
but then again, could just use openhab on linux on the pine64 to do the hardware interfacing and use an android tablet as the frontend for the wallmount.
#6
I want to build such a home automation center. I ordered the pine board along with the touch display.
My first idea was to use android because the frontend would easy to build but now I have to use Linux I think.
#7
This was my intention as well, and the reason I bought the pine64.

Hopefully it works in the future.
#8
Hi guys!

On Android you can access to any interface that kernel provide! If kernel already provide gpio, uart etc. you can use it on android too. Just create App with special permissions, chmod and/or chown drivers files that you need to access.

If many people want, I can do a tutorial in near future.

Best regards,
Patryk Czarnota
Poland
#9
(08-25-2016, 02:12 PM)neyron Wrote: Hi guys!

On Android you can access to any interface that kernel provide! If kernel already provide gpio, uart etc. you can use it on android too. Just create App with special permissions, chmod and/or chown drivers files that you need to access.

If many people want, I can do a tutorial in near future.

Best regards,
Patryk Czarnota
Poland

I'm very much interested in doind this and wondering if anyone can give me a heads up on how to build my own android pine64 kernel with gpio access?
#10
I was reading in the sunxi manual for gpio access, and found that the kernel option CONFIG_GPIO_SYSFS must be enabled.  I checked my Android /sys/class/ folder and found that gpio is not there;  the kernel in my Android has not been anabled for CONFIG_GPIO_SYSFS.

It should be easy to enable this option, and frankly, it should be enabled by default.


edit:  PS  I spoke with ayufan about this, and will be updating the configs for his kernel, so that the CONFIG_GPIO_SYSFS will be enabled in his kernel soon...

marcus
marcushh777    Cool

please join us for a chat @  irc.pine64.xyz:6667   or ssl  irc.pine64.xyz:6697

( I regret that I am not able to respond to personal messages;  let's meet on irc! )


Possibly Related Threads…
Thread Author Replies Views Last Post
  Android 6.0 Tablet and TV (release candidate, maintained) ayufan 228 381,812 12-29-2020, 01:13 AM
Last Post: firmwarefile
Shocked Remote for Android? liodra 18 29,167 12-23-2020, 06:11 AM
Last Post: Learnincurve
  Adding an accelerometer to Android modsbyus 11 16,530 11-02-2020, 08:12 PM
Last Post: Little_Johnny
  Android Things OS dqvsra 2 6,864 12-03-2019, 09:52 AM
Last Post: hangglider
  Is there another link for Android images? Maalth 3 6,936 10-10-2019, 07:57 AM
Last Post: tophneal
Question Android SDK Oreo NGC6691 2 5,519 07-15-2019, 08:29 PM
Last Post: dazza5000
  Putting Android 9 RockPro64 source into easier to manage repositories dazza5000 0 3,291 07-15-2019, 08:29 PM
Last Post: dazza5000
  Android 5.1.1 TV (old-stable, no longer maintained) ayufan 194 253,818 03-12-2019, 04:53 PM
Last Post: neosapien
  Issues with SD Card and Running Android Twistedx 0 3,495 02-26-2019, 11:58 AM
Last Post: Twistedx
  Android 7.1 (PINE A64(+)) pineadmin 59 103,804 02-10-2019, 07:44 PM
Last Post: mmmarcus

Forum Jump:


Users browsing this thread: 1 Guest(s)