万本电子书0元读

万本电子书0元读

顶部广告

Android for the BeagleBone Black电子书

售       价:¥

2人正在读 | 0人评论 9.8

作       者:Andrew Henderson

出  版  社:Packt Publishing

出版时间:2015-02-19

字       数:75.9万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
If you are an Android app developer who wants to experiment with the hardware capabilities of the BeagleBone Black platform, then this book is ideal for you. You are expected to have basic knowledge of developing Android apps but no prior hardware experience is required.
目录展开

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

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部