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

Adding security features to the Smart Home application


We have already added the Philio multisensor to our system to read illumination and temperature values. Let's add a flood detector to the Aeon USB controller; and as you have in previous chapters, follow inclusion instructions from its manual. Then we can start the required implementation in the application.

Before proceeding to work with security sensors, we need to define sensor types and command classes to identify messages.

The following commands are used to report sensor changes:

Sensor type

Message sent

Report value

Binary sensor

COMMAND_CLASS_BINARY_SENSOR, 0x30

BINARY_REPORT, 0x03

Sensor alarm

COMMAND_CLASS_SENSOR_ALARM, 0x9C

SENSOR_ALARM_REPORT, 0x02

These constants have been defined in the message.h file, as shown here:

#define FloodSensorNodeID    0x05

enum BINARY_SENSOR_TYPE {
  GENERAL_PURPOSE = 0x01,
  WATER_DETECTION_SENSOR = 0x06,
  TAMPER_SENSOR = 0x08,
  DOOR_WINDOW_SENSOR = 0x0A,
  MOTION_DETECTION_SENSOR = 0x0C...
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