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
Home Automation with Intel Galileo

You're reading from   Home Automation with Intel Galileo Create thrilling and intricate home automation projects using Intel Galileo

Arrow left icon
Product type Paperback
Published in Mar 2015
Publisher
ISBN-13 9781785285776
Length 188 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Onur Dundar Onur Dundar
Author Profile Icon Onur Dundar
Onur Dundar
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. Getting Started with Intel Galileo 2. Getting Started with Home Automation Applications FREE CHAPTER 3. Energy Management with Environmental and Electrical Sensors 4. Energy Management with Light Sensors and Extending Use Cases 5. Home Monitoring with Common Security Sensors 6. Home Surveillance and Extending Security Use Cases 7. Building Applications and Customizing Linux for Home Automation 8. Extending Use Cases Index

Connecting and booting Intel Galileo

We can now proceed to power up Intel Galileo and connect it to its terminal.

Before going forward with the board connection, you need to install a modem control program to your host system in order to connect Intel Galileo from its UART interface with minicom.

Note

Minicom is a text-based modem control and terminal emulation program for Unix-like operating systems. If you are not comfortable with text-based applications, you can use graphical serial terminals such as CuteCom or GtkTerm.

To start with Intel Galileo, perform the following steps:

  1. Install minicom:
    $ sudo apt-get install minicom
    

    Tip

    Downloading the example code

    You can download the example code files from your account at http://www.packtpub.com for all the Packt Publishing books you have purchased. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

  2. Attach the USB of your 6-pin TTL cable and start minicom for the first time with the –s option:
    $ sudo minicom –s
    
  3. Before going into the setup details, check the device is connected to your host. In our case, the serial device is /dev/ttyUSB0 on our host system. You can check it from your host's device messages (dmesg) to see the connected USB.
  4. When you start minicom with the –s option, it will prompt you. From minicom's Configuration menu, select Serial port setup to set the values, as follows:
    Connecting and booting Intel Galileo
  5. After setting up the serial device, select Exit to go to the terminal. This will prompt you with the booting sequence and launch the Linux console when the Intel Galileo serial device is connected and powered up.
  6. Next, complete connections on Intel Galileo. Connect the TTL-232R cable to your Intel Galileo board's UART pins. UART pins are just next to the Ethernet port.

    Make sure that you have connected the cables correctly. The black-colored cable on TTL is the ground connection. It is written on TTL pins which one is ground on Intel Galileo.

  7. We are ready to power up Intel Galileo. After you plug the power cable into the board, you will see the Intel Galileo board's boot sequence on the terminal. When the booting process is completed, it will prompt you to log in; log in with the root user, where no password is needed.
  8. The final prompt will be as follows; we are in the Intel Galileo Linux console, where you can just use basic Linux commands that already exist on the board to discover the Intel Galileo filesystem:
    Poky 9.0.2 (Yocto Project 1.4 Reference Distro) 1.4.2 clanton
    clanton login: root
    root@clanton:~#

Your board will now look like the following image:

Connecting and booting Intel Galileo

Connecting to Intel Galileo via Telnet

If you have connected Intel Galileo to a local network with an Ethernet cable, you can use Telnet to connect it without using a serial connection, after performing some simple steps:

  1. Run the following commands on the Intel Galileo terminal:
    root@clanton:~# ifup eth0
    root@clanton:~# ifconfig
    root@clanton:~# telnetd
    
  2. The ifup command brings the Ethernet interface up, and the second command starts the Telnet daemon. You can check the assigned IP address with the ifconfig command.
  3. From your host system, run the following command with your Intel Galileo board's IP address to start a Telnet session with Intel Galileo:
    $ telnet 192.168.2.168 
    
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