Reader small image

You're reading from  Home Automation with Intel Galileo

Product typeBook
Published inMar 2015
Publisher
ISBN-139781785285776
Edition1st Edition
Tools
Right arrow
Author (1)
Onur Dundar
Onur Dundar
author image
Onur Dundar

Onur Dundar is a software engineer who graduated from the Computer Engineering Department of Boazii University. He started working on embedded systems while he was at the university, and in his senior year project, he worked with wireless sensor networks for security and health monitoring. Onur started his career at JPMorgan Chase & Co. Then, he worked at Intel Corporation for 4 years as a software application engineer. He has specialized in embedded Linux and mostly worked on IPTV platforms, Android, as well as IoT platforms, such as Intel Galileo and Edison, and has developed applications for them. He has also helped software developers enhance their applications on these platforms. He has attended many conferences and developer events to introduce Intel Galileo and Edison. He developed the first application and wrote the public collaterals of Intel Edison when he worked at Intel Corporation. Onur is continuing his career at Invent Analytics, implementing algorithms for data analytics.
Read more about Onur Dundar

Right arrow

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 page is locked
Previous PageNext Page
You have been reading a chapter from
Home Automation with Intel Galileo
Published in: Mar 2015Publisher: ISBN-13: 9781785285776

Author (1)

author image
Onur Dundar

Onur Dundar is a software engineer who graduated from the Computer Engineering Department of Boazii University. He started working on embedded systems while he was at the university, and in his senior year project, he worked with wireless sensor networks for security and health monitoring. Onur started his career at JPMorgan Chase & Co. Then, he worked at Intel Corporation for 4 years as a software application engineer. He has specialized in embedded Linux and mostly worked on IPTV platforms, Android, as well as IoT platforms, such as Intel Galileo and Edison, and has developed applications for them. He has also helped software developers enhance their applications on these platforms. He has attended many conferences and developer events to introduce Intel Galileo and Edison. He developed the first application and wrote the public collaterals of Intel Edison when he worked at Intel Corporation. Onur is continuing his career at Invent Analytics, implementing algorithms for data analytics.
Read more about Onur Dundar