Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Getting Started with Electronic Projects

You're reading from   Getting Started with Electronic Projects Build thrilling and intricate electronic projects using LM555, ZigBee, and BeagleBone

Arrow left icon
Product type Paperback
Published in Jan 2015
Publisher
ISBN-13 9781783554515
Length 176 pages
Edition 1st Edition
Arrow right icon
Toc

Table of Contents (10) Chapters Close

Part 3 – building the actual network (software)


First of all, we have to install the software that will be required to communicate with the XBee modules.

Step 1 – installing Oracle's JDK on BeagleBone Black

The software we will be writing requires Java and JavaScript, so the first step is to install Oracle's JDK. Then download the Linux ARM v6/v7 Hard Float ABI Version:

  1. Copy jdk-7u40-linux-arm-vfp-*.gz to your BeagleBone Black.

  2. Perform tar xzf jdk-7u40-linux-arm-vfp-*.gz to extract the JDK.

  3. Perform export PATH=$PATH:/home/root/jdk1.7.0_40/bin to add the JDK to your path.

  4. Perform export JAVA_HOME=/home/root/jdk1.7.0_40 to set the JAVA_HOME on your installation.

  5. Perform java -version to verify your installation.

Step 2 – installing the Java serial port extension package

To install this package, perform the following commands on your terminal:

apt-get install build-essential
sudo apt-get install nodejs
npm install serialport

Step 3 – enabling serial ports on startup

In the serials.sh file, use the following...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image