Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Home Automation with Intel Galileo

You're reading from  Home Automation with Intel Galileo

Product type Book
Published in Mar 2015
Publisher
ISBN-13 9781785285776
Pages 188 pages
Edition 1st Edition
Languages
Author (1):
Onur Dundar Onur Dundar
Profile icon Onur Dundar

Table of Contents (16) Chapters

Home Automation with Intel Galileo
Credits
About the Author
Acknowledgements
About the Reviewers
www.PacktPub.com
Preface
Getting Started with Intel Galileo Getting Started with Home Automation Applications Energy Management with Environmental and Electrical Sensors Energy Management with Light Sensors and Extending Use Cases Home Monitoring with Common Security Sensors Home Surveillance and Extending Security Use Cases Building Applications and Customizing Linux for Home Automation 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:

  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 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 
    
You have been reading a chapter from
Home Automation with Intel Galileo
Published in: Mar 2015 Publisher: ISBN-13: 9781785285776
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 $15.99/month. Cancel anytime}