Controlling the GPIO from Android

23 views
Skip to first unread message

Massimo Banzi

unread,
Jan 5, 2010, 7:34:48 AM1/5/10
to 0xlab-discuss
Hello

I'm looking for suggestions on how to drive the GPIO pins on the beagleboard from Android.
I would imagine the best way would be to write a native library that gets loaded by some android intent and
made available to the other apps.

do you guys have any suggestion?

somewhere I can look at?

maybe it has been done and I haven't found it :)

thanks

m

Jim Huang

unread,
Jan 11, 2010, 8:20:58 PM1/11/10
to 0xlab-...@googlegroups.com
2010/1/5 Massimo Banzi <massim...@gmail.com>:

> Hello
>
> I'm looking for suggestions on how to drive the GPIO pins on the beagleboard
> from Android.
> I would imagine the best way would be to write a native library that gets
> loaded by some android intent and
> made available to the other apps.
>

hi Massimo,

You can refer to the classical HelloJNI example for accessing native
library. However, be aware of the
permission issues if your C library attempts to do ioctl. I would
suggest to write a dedicated system
service with the interface exporting to binder.

Regards,
Jim Huang (jserv)
http://0xlab.org/

Massimo Banzi

unread,
Jan 12, 2010, 11:41:15 AM1/12/10
to 0xlab-discuss
thanks for the suggestion, I'll report back with my results

--
You received this message because you are subscribed to the Google Groups "0xlab-discuss" group.
To post to this group, send email to 0xlab-...@googlegroups.com.
To unsubscribe from this group, send email to 0xlab-discus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/0xlab-discuss?hl=en.




pasqual...@gmail.com

unread,
Aug 17, 2013, 1:52:57 PM8/17/13
to 0xlab-...@googlegroups.com, massim...@gmail.com
Hello Massimo,
any news about GPIO from Android ? any snapshot of sample code?

best regards
pg
Reply all
Reply to author
Forward
0 new messages