Code Monkey home page Code Monkey logo

android-things-on-intel-edison's Introduction

Android Things

Android Things is a device-based OS for Internet of Things. It helps to build rapid prototypes of connected devices with the ease and power of Android.

Android-Things-On-Intel-Edison

This repository is created to offer step-by-step procedure to get started with Android Things on Intel Edison to build connected devices for a wide variety of consumer, retail, and industrial applications. It has (almost) no dependencies and is designed for developers from Beginners to Intermediate level.

1. Setup

You can setup this project in your local machine by cloing this repository or downloading the zip file.

2. Downloads & Installations

3. Flashing

Before starting to flash, keep the swicth on the board in the position towards the micro-USB ports.

Intel Edison

Open Intel Platform Flash Lite tool to flash the following images:

  • Flash image on Intel Edison

Platform Flash Lite tool

To flash Android Things onto Intel Edison, press the combination of keys as follows:

  • Press FW button on Intel Edison's Arduino breakout board
  • Insert the cable to the OTG port and then release the FW button and then flash it using the Platform Flash lite tool
  • In the Platform Flash Lite tool, select configuration as 'Non_OS' and flash the latest preview of AndroidThings_Edison_DevPreview on Intel Edison

Intel Edison

Once flashed, enter into the androidthings_edison_devpreview directory and use fastboot to flash system images:

$fastboot devices

$fastboot \
    flash gpt partition-table.img \
    flash u-boot u-boot-edison.bin \
    flash boot_a boot.img \
    flash boot_b boot.img \
    flash system_a system.img \
    flash system_b system.img \
    flash userdata userdata.img \
    erase misc \
    set_active _a

$fastboot \
    flash gapps_a gapps.img \
    flash gapps_b gapps.img

$fastboot \
    flash oem_a oem.img \
    flash oem_b oem.img

Once flashed, reboot the device to enter into adb mode:

$fastboot reboot

Upon reboot, check if the device (Intel Edison with Android Things) is detected as android device and detected by the following command:

$adb devices

In case, you're unable to start the adb daemon, restart the adb server as:

$adb kill-server
$adb start-server

$adb devices

4. Configurations

After flashing the board, we'll connect the board with internet using adb.

Connecting Wi-Fi:

To achieve this, get the SSID and password of the Wi-Fi and execute the following commands:

$adb shell am startservice \
    -n com.google.wifisetup/.WifiSetupService \
    -a WifiSetupService.Connect \
    -e ssid <Network_SSID> \
    -e passphrase <Network_Passcode>

5. Development

Want to contribute? Great! We're expanding features such as adding voice commands to contol things from Android App. Keep watching this space.

Meanwhile, you can contribute to this by:

  • Filing issues
  • Contributing Code
  • Contributing Feature
  • Please contact the author for more information on contributing

6. License

MIT Licensed

7. Author

Anuj Duggal (LinkedIn | Twitter | Facebook)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.