售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
BeagleBone Black Cookbook
Table of Contents
BeagleBone Black Cookbook
Credits
About the Author
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
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Setting Up for the First Time
Introduction
First boot up
Getting ready
How to do it…
Getting ready
How to do it...
Power requirements – basic guidelines
Display
Connecting an HDMI LCD
How to do it...
Connecting a non-HDMI LCD or cape
How to do it...
There's more…
Essential GNU/Linux commands – the command shell
Getting ready
How to do it...
How it works...
Essential GNU/Linux commands – typical commands
Getting ready
System navigational command – change your directory – cd
How to do it…
There's more…
System navigational command – show your current directory – pwd
How to do it…
System navigational command – find a file – find
How to do it…
Device and system insight – shows what's inside a directory – ls
How to do it…
Device and system insight – find out what USB devices are connected – lsusb
How to do it…
Device and system insight – get information about connected devices – cat/proc/bus/input/devices
How to do it…
There's more…
Device and system insight – get your version of Linux
How to do it…
Device and system insight – find out running processes – ps
How to do it…
Device and system insight – find out the resources used by running processes – top and htop
How to do it…
Device and system insight – quitting processes – kill
How to do it…
Device and system insight – message reports – dmesg
How to do it…
Device and system insight – shows disk space – df -h
How to do it…
Device and system insight – explore network – Ifconfig
How to do it…
Modify content / data commands – make a new directory – mkdir
How to do it…
Modify content/data commands – remove a file or directory – rm
How to do it…
Modify content / data commands – download files – wget
How to do it…
There's more…
Modify content / data commands – open a tar file – tar [options]
How to do it…
There's more…
Modify content / data commands – clean up files – autoclean
How to do it…
Modify content / data commands – purge a package – apt-get purge, apt-get remove --purge
How to do it…
Modify content/data commands – shutdown the system – [options]
How to do it…
See also
Edit a text file from the command shell
How it works...
How to do it...
See also
Connectivity
Connectivity – Ethernet
Getting ready
How to do it...
Connectivity – Wi-Fi
Getting ready
How to do it...
There's more…
See also
Package management – Installing packages using apt-get
Getting ready
How to do it…
See also
SSH / Remote access
Using SSH to control your BBB
How to do it…
Using VNC to control your BBB
Getting ready…
How to do it...
There's more...
System images
OS image flashing – internal drive boot
Getting ready
How to do it...
There's more…
Expand your partition
Backing up a code image to a file
OS image flashing – the SD card boot
Getting ready
How to do it...
Updating your current OS kernel
See also
2. Basic Programming Recipes
Introduction
Introduction to BoneScript
Toggle LED
How to do it...
See also
Using the Cloud9 IDE
How to do it…
See also
Node.js basic recipes
Adding a new module to Node.js
Getting ready
How to do it...
There's more…
See also
Using Node.js with Johnny-Five
How to do it…
There's more…
Python basic recipes
Getting ready
Adding libraries
How to do it…
Running a Python script to control the LEDs
How to do it…
There's more…
3. Physical Computing Recipes Using JavaScript, the BoneScript Library, and Python
Introduction
The essentials of electronics
Header pins and pinmuxing
The process of pinmuxing
There's more…
Controlling external LEDs
Getting ready
How to do it...
Writing an alternative script with Python
There's more…
Using buttons – button press function
Pull-up, pull-down, and floating
Getting ready
How to do it...
There's more…
Using analog sensors
Temperature sensors
Getting ready
How to do it...
There's more…
See also
Variable resistance sensor – photocell
Getting ready
How to do it…
Using motors
DC motors
Getting ready
How to do it...
How it works...
Servo motors
A crash course in pulse width modulation
Getting ready
How to do it...
There's more…
4. Exploring GNU/Linux Recipes Using Bash, Autotools, Debugger, and systemd
Introduction
The basic shell script
How to do it...
Epoch Time shell script
How to do it...
There's more...
Compile and install
See also
Compile and install Git from source
How to do it...
Debugging
See also
Debug a simple C-code application from the command line using GDB
How to do it...
See also
Debug an application remotely from Eclipse and GDB server
How to do it...
There's more…
systemd services
There's more…
See also
Basic commands for systemd services
How to do it...
There's more…
Optimize boot time
How to do it...
Create a systemd service to run at boot time
How to do it...
5. Basic Programming Recipes with the Linux Kernel
Introduction
Kernel building basics
See also
Kernel application binary interface
Getting ready
How to do it...
How it works…
Installing the latest kernel image
Getting ready
How to do it...
Installing and building a custom kernel
Getting ready
How to do it...
Interactions with the kernel – sysfs entries and controlling the GPIOs
Getting ready
How to do it...
There's more…
Device Tree and its roots
There's more…
Device Tree / basic build
Getting ready
How to do it...
Device Tree / advanced – adding DT overlay to run a custom cape
Getting ready
How to do it...
There's more…
See also
Universal cape overlay
Getting ready
How to do it…
There's more…
Running a script to check DT usage on GPIO pins
Getting ready
How to do it…
6. Run Faster, Run Real Time
Introduction
Installing a test tool
Getting ready
How to do it...
See also
Modifying the kernel using RT-PREEMPT
Getting ready
How to do it…
There's more…
Modifying the kernel using Xenomai
Getting ready
How to do it...
There's more…
See also
Programmable real-time units – an introduction
Getting ready
How to do it…
A simple PRU test with an assembler
Getting ready
How to do it…
See also
Running an ultrasonic range sensor with the PRUs
Getting ready
How to do it…
Using Python with the PRUs
Getting ready
How to do it…
See also
7. Applied Recipes – Sound, Picture, and Video
Introduction
Wiring up a mini amp and speakers
Getting ready
How to do it…
Creating a high-quality audio platform with Volumio
Getting ready
How to do it…
There's more…
See also
Using videos and displays in projects
Getting ready
How to do it…
There's more…
Testing a mini LCD cape
Getting ready
How to do it…
Making a video chat client prototype using Linphone
Getting ready
How to do it…
Part I – compiling and installing a Linphone binary from the repository
Part II – compiling and installing Linphone from source
Getting ready
How to do it…
8. The Internet of Things
Introduction
Location-based recipes – hooking up GPS
Getting ready
How to do it…
There's more...
Location-based recipes – Bluetooth LE and Beacons
Getting ready
How to do it…
There's more...
Using sensors and data with ThingSpeak
Getting ready
How to do it…
See also
Making things smarter – building a wireless digital picture frame
Getting ready
How to do it...
See also
9. The Black in Outer Space
Introduction
Grabbing the International Space Station flyover data and visualizing it
Getting ready
How to do it…
There's more…
Tracking using RTL-SDR
See also
Airplane tracking with RTL-SDR
Getting ready
How to do it…
There's more…
Satellite tracking using GPredict and RTL-SDR
Getting ready
How to do it…
There's more…
Satellite tracking using the SatNogs Network client / ground station and RTL-SDR
Getting ready
How to do it…
Adding other interfaces – ISS tracking and text to speech
Getting ready
How to do it…
There's more…
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜