
Android Hardware Interfacing with the BeagleBone Black
Beschreibung
Who this book is for
Alle Preise
Weitere Details
Weitere Ausgaben
Inhalt
- Intro
- Android for the BeagleBone Black
- Table of Contents
- Android for the BeagleBone Black
- Credits
- About the Authors
- About the Reviewers
- www.PacktPub.com
- Support files, eBooks, discount offers, and more
- Why subscribe?
- Free access for Packt account holders
- Preface
- What this book covers
- What you need for this book
- Who this book is for
- Conventions
- Reader feedback
- Customer support
- Downloading the example code
- Errata
- Piracy
- Questions
- 1. Introduction to Android and the BeagleBone Black
- Looking back on Android and BeagleBone Black development
- Shopping for the hardware essentials
- The FTDI cable
- Power supply
- Breadboard and the mounting plate
- MicroSD cards
- Learning about the hardware you'll interface with
- General-purpose components
- The AdaFruit memory breakout board
- The AdaFruit sensor breakout board
- Preparing the breakout boards
- Installing Android on the BeagleBone Black
- Downloading a premade Android image
- Creating your Android microSD card using Windows
- Creating your Android microSD card using Linux
- Summary
- 2. Interfacing with Android
- Understanding the Android HAL
- Android managers
- The HAL development workflow
- Working with PacktHAL
- Installing PacktHAL
- Preparing PacktHAL under Linux
- Preparing PacktHAL under Windows
- The PacktHAL directory structure
- Preparing Android for PacktHAL
- Pushing PacktHAL files under Linux
- Pushing PacktHAL files under Windows
- Setting up the Android NDK for PacktHAL
- Adding the header to the NDK under Linux
- Adding the header to the NDK under Windows
- Multiplexing the BBB pins
- The kernel Device Tree and capemgr
- Defining a cape
- Summary
- 3. Handling Inputs and Outputs with GPIOs
- Understanding GPIOs
- Nuts and bolts of GPIO
- GPIO access methods under Android
- Pros and cons of the file I/O method
- Pros and cons of the memory-mapping method
- Preparing Android for GPIO use
- Building a GPIO-interfacing circuit
- Constructing the circuit
- Checking your wiring
- Including PacktHAL within your apps
- Understanding the Java Native Interface
- Creating a new app project that uses PacktHAL
- Building PacktHAL under Windows
- Building PacktHAL under Linux
- Exploring the GPIO example app
- Installing the app and source under Windows
- Installing the app and source under Linux
- The app's user interface
- Calling the PacktHAL functions
- Using the PacktHAL GPIO functions
- Summary
- 4. Storing and Retrieving Data with I2C
- Understanding I2C
- Devices that use I2C
- Multiplexing for I2C on the BBB
- Connecting to I2C via the P9 header
- Multiplexing for I2C
- Representing I2C devices in the Linux kernel
- Preparing Android for FRAM use
- Building an I2C-interfacing circuit
- Connecting the FRAM
- Checking the FRAM connection with I2C tools
- Exploring the I2C FRAM example app
- The app's user interface
- Calling the PacktHAL FRAM functions
- Understanding the AsyncTask class
- Learning the details of the HardwareTask class
- Summary
- 5. Interfacing with High-speed Sensors Using SPI
- Understanding SPI
- Multiplexing for SPI on the BBB
- Representing SPI devices in the Linux kernel
- Preparing Android for SPI sensor use
- Building an SPI interface circuit
- Connecting the sensor
- Exploring the SPI sensor example app
- The app's user interface
- Calling the PacktHAL sensor functions
- Using the HardwareTask class
- Summary
- 6. Creating a Complete Interfacing Solution
- Building the complete interface circuit
- Exploring the complete example app
- The app's user interface
- Understanding hardware polling in an app
- Using AsyncTask with long-lived threads
- Using the HardwareTask class
- Summary
- 7. Where to Go from Here
- Integrating your solution with Android
- Creating a custom kernel and Device Tree
- Adding hardware communication into the kernel
- Integrating into existing managers
- Creating new managers for custom hardware
- Combining your project with other hardware
- Constructing your own prototype capes
- Commercial capes that interface with Android
- Exploring the BBB's other interfaces
- Programmable real-time units
- Serial communications
- Controller area network
- The analog-to-digital converter
- Pulse width modulation
- Summary
- Index
Systemvoraussetzungen
Dateiformat: ePUB
Kopierschutz: Adobe-DRM (Digital Rights Management)
Systemvoraussetzungen:
- Computer (Windows; MacOS X; Linux): Installieren Sie bereits vor dem Download die kostenlose Software Adobe Digital Editions (siehe E-Book Hilfe).
- Tablet/Smartphone (Android; iOS): Installieren Sie bereits vor dem Download die kostenlose App Adobe Digital Editions oder die App PocketBook (siehe E-Book Hilfe).
- E-Book-Reader: Bookeen, Kobo, Pocketbook, Sony, Tolino u.v.a.m. (nicht Kindle)
Das Dateiformat ePUB ist sehr gut für Romane und Sachbücher geeignet – also für „fließenden” Text ohne komplexes Layout. Bei E-Readern oder Smartphones passt sich der Zeilen- und Seitenumbruch automatisch den kleinen Displays an.
Mit Adobe-DRM wird hier ein „harter” Kopierschutz verwendet. Wenn die notwendigen Voraussetzungen nicht vorliegen, können Sie das E-Book leider nicht öffnen. Daher müssen Sie bereits vor dem Download Ihre Lese-Hardware vorbereiten.
Bitte beachten Sie: Wir empfehlen Ihnen unbedingt nach Installation der Lese-Software diese mit Ihrer persönlichen Adobe-ID zu autorisieren!
Weitere Informationen finden Sie in unserer E-Book Hilfe.
Dateiformat: PDF
Kopierschutz: Adobe-DRM (Digital Rights Management)
Systemvoraussetzungen:
- Computer (Windows; MacOS X; Linux): Installieren Sie bereits vor dem Download die kostenlose Software Adobe Digital Editions (siehe E-Book Hilfe).
- Tablet/Smartphone (Android; iOS): Installieren Sie bereits vor dem Download die kostenlose App Adobe Digital Editions oder die App PocketBook (siehe E-Book Hilfe).
- E-Book-Reader: Bookeen, Kobo, Pocketbook, Sony, Tolino u.v.a.m. (nicht Kindle)
Das Dateiformat PDF zeigt auf jeder Hardware eine Buchseite stets identisch an. Daher ist eine PDF auch für ein komplexes Layout geeignet, wie es bei Lehr- und Fachbüchern verwendet wird (Bilder, Tabellen, Spalten, Fußnoten). Bei kleinen Displays von E-Readern oder Smartphones sind PDF leider eher nervig, weil zu viel Scrollen notwendig ist.
Mit Adobe-DRM wird hier ein „harter” Kopierschutz verwendet. Wenn die notwendigen Voraussetzungen nicht vorliegen, können Sie das E-Book leider nicht öffnen. Daher müssen Sie bereits vor dem Download Ihre Lese-Hardware vorbereiten.
Bitte beachten Sie: Wir empfehlen Ihnen unbedingt nach Installation der Lese-Software diese mit Ihrer persönlichen Adobe-ID zu autorisieren!
Weitere Informationen finden Sie in unserer E-Book Hilfe.