Demo Android app using BBBAndroid



Final Report:

Aim of the project: To develop demo Android applications for BeagleBone Black for all its supported interfaces and develop an Android HAL to support future development.

Code repositories:
1) bbbandroidHAL (link): This is the native C code library which can be used to develop Android Application for BeagleBone Black.
2) demoapps-bbbandroid (link): Demo application for BBBAndroid using bbbandroidHAL. It is just to demonstrate how one can develop android applications using bbbandroidHAL.

Documentation:
1) Videos (link): This playlist contains video demonstrations for all the demo apps (i.e. gpio, adc, pwm, i2c, spi, uart, can, usb).
2) Doxygen documentation for bbbandroidHAL (link).
3) Wiki for bbbnadroidHAL (link): This wiki also example codes along with function explanation.

Code completed in GSoC time Frame:
1) HAL Code for GPIOADCPWMI2CSPIUARTCAN and USB.
2) Demo android apps for GPIOADCPWMI2CSPIUARTCANUSB and for BACON cape.

I have tried to complete almost everything in the proposal, but there is always a chance of improvement. The HAL code and demo apps should help developers accelerate process of Android App development for beaglebone black. I would like to help anyone who wants to try out HAL or wants to develop his/her own Android app for beagle.

It was a great learning experience for me. I would like to thank my mentors Andrew Henderson and Anuj Deshpande for their support and guidance which made it possible for me to complete this project. I would also like to thank this wonderful beagleboard community for their support and Google for giving us this opportunity.

Regards,
Ankur Yadav

Demo Android app using BBBAndroid


Week #12:

Goals Achieved:
  • Completed wiki with some examples. (link).
  • Completed android app for bacon cape. (link)
  • Completed 50min video explaining all the APIs briefly. (link)
Issues:
  • No issues.

Regards,
Ankur Yadav

Demo Android app using BBBAndroid


Week #11:

Goals Achieved:
  • Doxygen documentation completed (link).
  • Wiki content add for bbbandroidHAL (link). 
Issues:
  • No issues.
 Goals for next week:
  • Add some example codes in wiki contents.
  • Make final video explaining all the APIs briefly.

Regards,
Ankur Yadav

Demo Android app using BBBAndroid


Week #10:

Goals Achieved:
  • Android app for USB completed (link).
  • Video tutorials for i2cspiuartcanusb.
  • Started documentation using doxygen (link).
Issues:
  • No issues.
 Goals for next week:
  • Complete doxygen documentation.
  • To do some blog posts for demo apps.

Regards,
Ankur Yadav

Demo Android app using BBBAndroid


Week #9:

Goals Achieved:
  • Android app for CAN completed (link)
  • Got sample program for USB working using libusb. (gives lsusb type output)
  • Video tutorials for i2c, spi.
Issues:
  • Due to heavy rain fall in my area (Bhuj, Kutch) there was a power cut for 2 days and internet is also not working properly. So, I was not able to upload videos. I will upload it soon this week.
  • Also I will try to compensate for the this week's work next week.
 Goals for next week:
  • Video tutorials for uart and can.
  • Wiki content for gpio, pwm, adc, i2c, spi, uart and can.

Regards,
Ankur Yadav

Demo Android app using BBBAndroid



Week #8:

Goals Achieved:
  • Android app for UART completed (link)
  • After lot of try I was able to enable can bus.
  • Android app for CAN (link).
Issues:
  • Even after installing BB-DCAN1 overlay can0 was not created, found that some can bus kernel modules were not loaded in bbbandroid. (issue).
  • Send and Read for can bus is working properly in binary through shell but Read is not working properly in apk.
 Goals for next week:
  • Video tutorials for i2c, spi, and uart
  • Wiki content for gpio, pwm, adc, i2c, spi and uart.

Regards,
Ankur Yadav

Demo Android app using BBBAndroid


Week #7:

Goals Achieved:
  • Android app for SPI for 74HC595 present on bacon cape completed (link).
  • Video tutorial for GPIO app (link).
  • Video tutorial for PWM app (link).
  • Video tutorial for ADC app (link).
Issues:
  • Have problem with one of my beaglebone(its not working) :(
  • My adxl345 breakout board is also not working. (So could not develop Android app for SPI using it).
  • I have ordered new adxl345 breakout board. After that I will try to access it using SPI.
 Goals for next week:
  • Android app for UART.
  • Sample Code to access USB.

Regards,
Ankur Yadav