SlideShare a Scribd company logo
IJSRD - International Journal for Scientific Research & Development| Vol. 2, Issue 07, 2014 | ISSN (online): 2321-0613
All rights reserved by www.ijsrd.com 558
Restful Web server Based Domotic Home Using Power over Ethernet
Mr. M. M. Sonakatale1
Prof. A. S. Gundale 2
Mr. P. D. R. Patnaik3
1,2,3
Department of Electronics Engineering
1,2,3
Walchand Institute of Technology, Solapur University, Solapur, Maharashtra, India.
Abstract— This paper presents the way to provide Ethernet
internet connectivity and power to microcontroller based
embedded systems. This system uses arduino board to store
the main application source code, web pages and TCP/IP
stack which is a vital element of the system software. An
Ethernet controller chip, ENC28J60 is used to handle the
Ethernet communications and it is interfaced with the
microcontroller using SPI protocol. The site can be viewed
on any system with Internet/LAN connection by configuring
the specific IP address. There are several I/O pins available
at the microcontrollers which are used to interface with
lights, fans, curtains, Motors and relays for monitoring and
controlling DC appliances. Nowadays, Internet has spread
worldwide and most of the internet connections use Ethernet
as media for data transfer. In industries or in home
appliances, most of the time we need to monitor and control
using microcontrollers. Once we enable Ethernet interface to
such systems, we can communicate with them remotely over
the internet. At the same time power which require to run
the device is provided by using power over Ethernet
technology which minimize the cable requirement and
wastages of copper conductors. The concept of the "Internet
of Things" has tied in closely with the popularization of
home automation. Ethernet provides inexpensive, relatively
high speed network access to individual users and low delay
that can support many applications. This implementation is
an attempt to connect an embedded device to an Ethernet
Using Ethernet based system we can control various home
appliances from anywhere across the world.
Keywords: Arduino, Powerover Ethernet, Web server
I. INTRODUCTION
The main aim of our project is to implement IoT Home
automation solace that can be easily accessible from distant
places through a simple web server running inside the home.
The basic functionalities in this domotic home system
includes the power which is required to run the devices is
provided through Ethernet cable using Power Ethernet
technique and user defined control of Lights and other
electrical /electronic appliances. A real web server can be
implemented in a device in your is connected to a local area
network. This will allow you to do things like display
current status of devices and switch light/fan and controlling
their brightness/ speed remotely from any web browser in
the house.
II. SYSTEM ARCHITECTURE
The system design is a low cost domotic home for remotely
controlling and monitoring home appliances. The system
mainly consist of Arduino controller with power over
Ethernet power injector which sends data to the end
powered device along with injected power. The system
architecture is shown in below Fig.1
Fig. 1: System Architecture of Restful web server based
domotic home using power over Ethernet
This project comprises of two sub-parts. The first
part consists designing a power injector section in which
Cat 5 cable which is comes from switch is splitted and
power is inserted into the spare pair of Ethernet cable the
output at the end of power injector we get power plus data.
Power injector also consist of main Arduino controller with
ENC 28j60 webserver which control the power at output
port by activating particular relay. The second part also
consist of Arduino with ENC28j60 which control the device
connected to output port. Microcontrollers communicate
with each other via Ethernet a wired communication.
Because these systems use hard-wired Ethernet,
communication between components is reliable and fast.
III. DOMOTIC HOME DEVICES
The Arduino uno and the ENC28J60 have been used to
implement the Domotic home web-server. Arduino is an
open-source electronics prototyping platform based on
flexible, easy-to-use hardware and software. The Arduino
uno microcontroller board is based on the ATmega328
having 14 digital input/output pins. The Ethernet is
interfaced to the Arduino via the Arduino SPI pins.
Low voltage switching relays were used to integrate the
devices with the Arduino for demonstrating the switching
functionality.
IV. SOFTWARE DEVELOPMENT
The main controller hosting the ENC28J60 web-server
acts as the heart of the system consisting of the web
server application and the Arduino microcontroller
firmware. The server application software is the library
implementation of the web-server running on the Arduino
uno using the ENC28J60 connected to the internet over
TCP/IP, which can act as both the server and client. The
Ethernet library “"EtherShield.h" is used to send and
receive data in conjunction with the microcontroller. The
output messages sent to the domotic home application is in
JavaScript Object Notation (JSON) format. When sketch
loaded into the Arduino then modify MAC address and IP
address of Ethernet board. To turn on the fan attached to pin
9 we use http://192.168.43.2/9/1 shown in screenshot in
figure 3d. This will set the pin to the HIGH state and the fan
should ON. For checking pin status returns a tiny chunk of
JSON containing the pin requested and its current value
Restful Web server Based Domotic Home Using Power over Ethernet
(IJSRD/Vol. 2/Issue 07/2014/126)
All rights reserved by www.ijsrd.com 559
looks like figure 3b {"3":"LOW"},Similarly for checkout
analog value of analog pin a0 in which I have used current
sensor reading looks like this http://192.168.43.2/a0 and return
the same JSON formatted result as {"a0":"539"}shown in
figure 3a. Similarly for controlling stepper motor reading
looks like this shown in fig 3c.
Utilizing Web services is the most open and
interoperable way of providing access to remote services
or for enabling applications to communicate amongst each
other. There are two different classes such as Simple Object
Access Protocol (SOAP) and Representative State Transfer
(REST) are the two classes are available. However,
RESTful based Web service has been employed due to its
light-weight compared to the SOAP based Web service
offering similar functionalities. Standard GET and POST
request operations have been utilized for communication
between the domotic home app and the web-server. For
example, if the user action on the domotic home
application is to activate the fan then the message
exchange taking place is illustrated in Figure2
Fig. 2: Message exchange between Domotic home
application and webserver
In order to successfully connect and access the
Domotic home web-server, the user has to enter the
correct real IP address (see Figure 2). If the web-server
grants access to the Domotic home app, response packet
containing response code 200 will be received. The
application processes the response packet to determine the
web-server’s response. Response code 200 indicates the
Connection IP is correct, and the app will switch to the main
controller page and synchronize using the data from the
response packet to reflect the real time statuses of the
Domotic home devices (see Figure 3b main sceenshot
192.168.43.2).If the IP is incorrect , response code 404 will
be received. The response code and devices with their
statuses are separated by a slash (/) while the device and its
status is separated by a colon (:). For example when the
action requested by the user from the application to turn on
fan HIGH (192.168.43.2/9/1) is successful,, the response
packet will be “200 FAN_9:HIGH”. A LOW indicates off
state while a one indicates on state for the status for
switching functions.
Fig. 3a : screenshot of analog values of current sensor
Fig. 3b: screen shot of status of pin3
Fig. 3c : screen shot of stepper motor for step1
Fig. 3d: screenshot of Fan for step1
V. FLOW CHART FOR THE MAIN CONTROLLER
Figure 4 shows the general flowchart for the main
controller. Upon initializing, the system establishes the
connection with LAN. when connection is established then
it enters into the idle mode and waits for user command
.when commands are received controller decode this
command and take particular action according to
command.
Fig. 4: Home Gateway flow chart for the connection
establishment with the Internet
VI. RESULTS
The performance of our power injector is shown below table
1 .Though the results shows some power loss for every feet
increase in length of the POE cable to over- come this
problem we have to add more voltage at input stage.
t
Table 1: performance of POE Injector
Restful Web server Based Domotic Home Using Power over Ethernet
(IJSRD/Vol. 2/Issue 07/2014/126)
All rights reserved by www.ijsrd.com 560
VII. CONCLUSION
In this paper, an Restful web server based internet
controlled domotic home automation using power over
Ethernet implemented. All types of DC applications are
possible to control with the help of smart phones. The
implemented system uses standardized protocols for its
control. Implemented system can be integrated in already
installed Ethernet network. Though the results indicate some
power loss for every feet increase in length of the POE
cable, the benefits of the system are attractive.
REFERENCES
[1] G. Kortuem, F. Kawsar, D. Fitton, and V.
Sundramoorthy, "Smart objects as building blocks
for the internet of things," Internet Computing, IEEE,
vol. 14, pp. 44-51, 2010.
[2] R. J. C. Nunes and J. C. M. Delgado, "An Internet
application for home automation," in 10th
Mediterranean Electrotechnical Conference
(MELECON 2000), Lemesos, 2000, pp. 298-301.
[3] F. Kausar, E. A. Eisa, and I. Bakhsh, "Intelligent
Home Monitoring Using RSSI in Wireless Sensor
Networks," International Journal of Computer
Networks & Communications, vol. 4, pp. 33-46,
2012.
[4] R. Piyare and M. Tazil, "Bluetooth Based Home
Automation System Using Cell phone," in IEEE 15th
International Symposium on Consumer Electronics,
Singapore 2011, pp. 192 - 195.
[5] S. Anwaarullah and S. V. Altaf, "RTOS based
Home Automation System using Android,“
International Journal of Advanced Trends in
Computer Science and Engineering, vol. 2, pp. 480-
484, January 2013 2013.
[6] C. Chiu-Chiao, H. C. Yuan, W. Shiau-Chin, and
L. Cheng-Min, "Bluetooth-Based Android
Interactive Applications for Smart Living," in 2nd
International Conferenceon Innovations in Bio-
inspired Computing and Appplications (IBICA 2011),
2011, pp. 309-312.
[7] D. Javale, M. Mohsin, S. Nandanwar, and M.
Shingate, "Home Automation and Security System
Using Android ADK," International Journal of
Electronics Communication and Computer
Technology (IJECCT), vol. 3, pp. 382-385, March
2013 2013.
[8] J. Potts and S. Sukittanon, "Exploiting Bluetooth on
Android mobile devices for home security
applications," in Southeastcon, 2012 Proceedings of
IEEE Orlando, FL 2012.
[9] Al-Ali, A.R. ; AL-Rousan, M., “ Java-based
home automation system” Consumer Electronics,
IEEE Transactions volume: 50 , Issue: 2 , Page: 498
– 504, 2004.
[10]Adam Dunkels, "Design and Implementation of the l
wIP TCP/IP Stack", Swedish Institute of Computer
Science, 2001.
[11]Fahim A. Ahmed Ghanem and Vilas M. Thakare,
“Optimization of Ipv6 Packet’s Headers Over
Ethernet Frame”, International Journal of Electronics
and Communication Engineering & Technology
(IJECET), Volume 4, Issue 1, 2012, pp. 99 - 111,
ISSN Print: 0976- 6464, ISSN Online: 0976 –6472.
[12]S.K. Muthusundar and Dr. Paul Rodrigues,
“Automation Testing of Web Application Based on
the Navigation using Json”, International Journal of
Computer Engineering & Technology (IJCET),
Volume 3, Issue 1, 2012, pp. 191 - 197, ISSN Print:
0976 – 6367, ISSN Online: 0976 – 6375,
[13]R. Kavitha, Dr. G. M. Nasira and Dr. N. Nachamai,
“Smart Home Systems using Wireless Sensor
Network – A Comparative Analysis”, International
Journal of Computer Engineering & Technology
(IJCET), Volume 3, Issue 3, 2012, pp. 94 - 103,
ISSN Print: 0976 – 6367, ISSN Online: 0976 –
6375.

More Related Content

PDF
2012 UH-HNEI Smart Grid Inverter Project System Architecture
PDF
Smart home
PPTX
Bluetooth controlled home appliances
PDF
Implementation and Controlling of Electrical Appliances by using Bluetooth
PDF
Ijecet 06 06_007
DOCX
A minor project report HOME AUTOMATION USING MOBILE PHONES
DOCX
HOME AUTOMATION USING ARDUINO
PDF
Domotics – A Cost Effective Smart Home Automation System Using Wifi as Networ...
2012 UH-HNEI Smart Grid Inverter Project System Architecture
Smart home
Bluetooth controlled home appliances
Implementation and Controlling of Electrical Appliances by using Bluetooth
Ijecet 06 06_007
A minor project report HOME AUTOMATION USING MOBILE PHONES
HOME AUTOMATION USING ARDUINO
Domotics – A Cost Effective Smart Home Automation System Using Wifi as Networ...

What's hot (20)

PDF
Home security automation
PPTX
Development of a Low Cost, Reliable & Scalable Home Automation System.
PPTX
Bluetooth based home appliances control
PDF
Raspberry Pi controlled Home Automation
DOCX
PDF
Home automation system using arduino with android
DOCX
Home automation System
DOCX
Home Appliances Controlling using Android Mobile via Bluetooth
PPTX
Presentation on bluetooth controlled electronic home appliances
PDF
Project Report Webcasa Final(1)
PDF
Home Automation with Android - Intro
PDF
D041121722
PDF
Home Automation Using Mobile Communication
DOCX
A PROTOTYPE REMOTE CONTROL FOR HOME APPLIANCE USING r
PDF
An Intro to Power over Ethernet Systems
PDF
An improved electricity efficiency method based on microcontroller and IoT wi...
DOC
HOME AUTOMATION USING ANDROID PHONE OVER BLUETOOTH
PDF
Design and implementation smart home alarm system with zigbee transceiver
PDF
IRJET- Android based Home Automation System with Power Optimization Modes
PPTX
Android based home automation
Home security automation
Development of a Low Cost, Reliable & Scalable Home Automation System.
Bluetooth based home appliances control
Raspberry Pi controlled Home Automation
Home automation system using arduino with android
Home automation System
Home Appliances Controlling using Android Mobile via Bluetooth
Presentation on bluetooth controlled electronic home appliances
Project Report Webcasa Final(1)
Home Automation with Android - Intro
D041121722
Home Automation Using Mobile Communication
A PROTOTYPE REMOTE CONTROL FOR HOME APPLIANCE USING r
An Intro to Power over Ethernet Systems
An improved electricity efficiency method based on microcontroller and IoT wi...
HOME AUTOMATION USING ANDROID PHONE OVER BLUETOOTH
Design and implementation smart home alarm system with zigbee transceiver
IRJET- Android based Home Automation System with Power Optimization Modes
Android based home automation
Ad

Similar to Restful Webserver Based Domotic Home Using Power over Ethernet (20)

PDF
HOME AUTOMATION SYSTEM VIA INTERNET USING ANDROID PHONE
PDF
IRJET- Designing of Smart Switch for Home Automation
PDF
Bluetooth based home automation system
PDF
Icacci2017 lowcostimplementationofsmarthomeautomation
PDF
Home Automation System using ZigBee and PandaBoard as a Gateway (HAS-ZP)
PPTX
Jaswanth iidt intenship b.tech engineering.pptx
PPTX
Jaswanth iidt intenship document b.tech .pptx
PPTX
Jaswanth iidt intenship document b.tech .pptx
DOCX
Home Automation with MATLAB and ARDUINO Interface
PDF
SOCIAL NETWORK FOR SMART DEVICES USING EMBEDDED ETHERNET
PDF
Mobile robotic platform to gathering real time sensory data in wireless perso...
PDF
Paxton Access 477-901-US Instruction Manual
PDF
IoT Based Home Appliances Control
PDF
home automation digital
PDF
IRJET- IoT based System for Smart and Secured Home
PDF
30 9137 e implementation of cloud connected smart plug (edit lafi)
PDF
IRJET- Portable Surveillance Robot using IoT
PDF
IRJET - IoT based Home Automation using ATmega328 Microcontroller
DOCX
Home Automation using NodeMCU .docx
PDF
Ethernet Enabled Digital I/O Control in Embedded Systems
HOME AUTOMATION SYSTEM VIA INTERNET USING ANDROID PHONE
IRJET- Designing of Smart Switch for Home Automation
Bluetooth based home automation system
Icacci2017 lowcostimplementationofsmarthomeautomation
Home Automation System using ZigBee and PandaBoard as a Gateway (HAS-ZP)
Jaswanth iidt intenship b.tech engineering.pptx
Jaswanth iidt intenship document b.tech .pptx
Jaswanth iidt intenship document b.tech .pptx
Home Automation with MATLAB and ARDUINO Interface
SOCIAL NETWORK FOR SMART DEVICES USING EMBEDDED ETHERNET
Mobile robotic platform to gathering real time sensory data in wireless perso...
Paxton Access 477-901-US Instruction Manual
IoT Based Home Appliances Control
home automation digital
IRJET- IoT based System for Smart and Secured Home
30 9137 e implementation of cloud connected smart plug (edit lafi)
IRJET- Portable Surveillance Robot using IoT
IRJET - IoT based Home Automation using ATmega328 Microcontroller
Home Automation using NodeMCU .docx
Ethernet Enabled Digital I/O Control in Embedded Systems
Ad

More from ijsrd.com (20)

PDF
IoT Enabled Smart Grid
PDF
A Survey Report on : Security & Challenges in Internet of Things
PDF
IoT for Everyday Life
PDF
Study on Issues in Managing and Protecting Data of IOT
PDF
Interactive Technologies for Improving Quality of Education to Build Collabor...
PDF
Internet of Things - Paradigm Shift of Future Internet Application for Specia...
PDF
A Study of the Adverse Effects of IoT on Student's Life
PDF
Pedagogy for Effective use of ICT in English Language Learning
PDF
Virtual Eye - Smart Traffic Navigation System
PDF
Ontological Model of Educational Programs in Computer Science (Bachelor and M...
PDF
Understanding IoT Management for Smart Refrigerator
PDF
DESIGN AND ANALYSIS OF DOUBLE WISHBONE SUSPENSION SYSTEM USING FINITE ELEMENT...
PDF
A Review: Microwave Energy for materials processing
PDF
Web Usage Mining: A Survey on User's Navigation Pattern from Web Logs
PDF
APPLICATION OF STATCOM to IMPROVED DYNAMIC PERFORMANCE OF POWER SYSTEM
PDF
Making model of dual axis solar tracking with Maximum Power Point Tracking
PDF
A REVIEW PAPER ON PERFORMANCE AND EMISSION TEST OF 4 STROKE DIESEL ENGINE USI...
PDF
Study and Review on Various Current Comparators
PDF
Reducing Silicon Real Estate and Switching Activity Using Low Power Test Patt...
PDF
Defending Reactive Jammers in WSN using a Trigger Identification Service.
IoT Enabled Smart Grid
A Survey Report on : Security & Challenges in Internet of Things
IoT for Everyday Life
Study on Issues in Managing and Protecting Data of IOT
Interactive Technologies for Improving Quality of Education to Build Collabor...
Internet of Things - Paradigm Shift of Future Internet Application for Specia...
A Study of the Adverse Effects of IoT on Student's Life
Pedagogy for Effective use of ICT in English Language Learning
Virtual Eye - Smart Traffic Navigation System
Ontological Model of Educational Programs in Computer Science (Bachelor and M...
Understanding IoT Management for Smart Refrigerator
DESIGN AND ANALYSIS OF DOUBLE WISHBONE SUSPENSION SYSTEM USING FINITE ELEMENT...
A Review: Microwave Energy for materials processing
Web Usage Mining: A Survey on User's Navigation Pattern from Web Logs
APPLICATION OF STATCOM to IMPROVED DYNAMIC PERFORMANCE OF POWER SYSTEM
Making model of dual axis solar tracking with Maximum Power Point Tracking
A REVIEW PAPER ON PERFORMANCE AND EMISSION TEST OF 4 STROKE DIESEL ENGINE USI...
Study and Review on Various Current Comparators
Reducing Silicon Real Estate and Switching Activity Using Low Power Test Patt...
Defending Reactive Jammers in WSN using a Trigger Identification Service.

Recently uploaded (20)

PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
master seminar digital applications in india
PPTX
Lesson notes of climatology university.
PDF
01-Introduction-to-Information-Management.pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Complications of Minimal Access Surgery at WLH
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Cell Structure & Organelles in detailed.
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Insiders guide to clinical Medicine.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Computing-Curriculum for Schools in Ghana
PDF
Pre independence Education in Inndia.pdf
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
master seminar digital applications in india
Lesson notes of climatology university.
01-Introduction-to-Information-Management.pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
O5-L3 Freight Transport Ops (International) V1.pdf
Complications of Minimal Access Surgery at WLH
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Module 4: Burden of Disease Tutorial Slides S2 2025
Supply Chain Operations Speaking Notes -ICLT Program
Cell Structure & Organelles in detailed.
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Insiders guide to clinical Medicine.pdf
Microbial disease of the cardiovascular and lymphatic systems
Abdominal Access Techniques with Prof. Dr. R K Mishra
Computing-Curriculum for Schools in Ghana
Pre independence Education in Inndia.pdf
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf

Restful Webserver Based Domotic Home Using Power over Ethernet

  • 1. IJSRD - International Journal for Scientific Research & Development| Vol. 2, Issue 07, 2014 | ISSN (online): 2321-0613 All rights reserved by www.ijsrd.com 558 Restful Web server Based Domotic Home Using Power over Ethernet Mr. M. M. Sonakatale1 Prof. A. S. Gundale 2 Mr. P. D. R. Patnaik3 1,2,3 Department of Electronics Engineering 1,2,3 Walchand Institute of Technology, Solapur University, Solapur, Maharashtra, India. Abstract— This paper presents the way to provide Ethernet internet connectivity and power to microcontroller based embedded systems. This system uses arduino board to store the main application source code, web pages and TCP/IP stack which is a vital element of the system software. An Ethernet controller chip, ENC28J60 is used to handle the Ethernet communications and it is interfaced with the microcontroller using SPI protocol. The site can be viewed on any system with Internet/LAN connection by configuring the specific IP address. There are several I/O pins available at the microcontrollers which are used to interface with lights, fans, curtains, Motors and relays for monitoring and controlling DC appliances. Nowadays, Internet has spread worldwide and most of the internet connections use Ethernet as media for data transfer. In industries or in home appliances, most of the time we need to monitor and control using microcontrollers. Once we enable Ethernet interface to such systems, we can communicate with them remotely over the internet. At the same time power which require to run the device is provided by using power over Ethernet technology which minimize the cable requirement and wastages of copper conductors. The concept of the "Internet of Things" has tied in closely with the popularization of home automation. Ethernet provides inexpensive, relatively high speed network access to individual users and low delay that can support many applications. This implementation is an attempt to connect an embedded device to an Ethernet Using Ethernet based system we can control various home appliances from anywhere across the world. Keywords: Arduino, Powerover Ethernet, Web server I. INTRODUCTION The main aim of our project is to implement IoT Home automation solace that can be easily accessible from distant places through a simple web server running inside the home. The basic functionalities in this domotic home system includes the power which is required to run the devices is provided through Ethernet cable using Power Ethernet technique and user defined control of Lights and other electrical /electronic appliances. A real web server can be implemented in a device in your is connected to a local area network. This will allow you to do things like display current status of devices and switch light/fan and controlling their brightness/ speed remotely from any web browser in the house. II. SYSTEM ARCHITECTURE The system design is a low cost domotic home for remotely controlling and monitoring home appliances. The system mainly consist of Arduino controller with power over Ethernet power injector which sends data to the end powered device along with injected power. The system architecture is shown in below Fig.1 Fig. 1: System Architecture of Restful web server based domotic home using power over Ethernet This project comprises of two sub-parts. The first part consists designing a power injector section in which Cat 5 cable which is comes from switch is splitted and power is inserted into the spare pair of Ethernet cable the output at the end of power injector we get power plus data. Power injector also consist of main Arduino controller with ENC 28j60 webserver which control the power at output port by activating particular relay. The second part also consist of Arduino with ENC28j60 which control the device connected to output port. Microcontrollers communicate with each other via Ethernet a wired communication. Because these systems use hard-wired Ethernet, communication between components is reliable and fast. III. DOMOTIC HOME DEVICES The Arduino uno and the ENC28J60 have been used to implement the Domotic home web-server. Arduino is an open-source electronics prototyping platform based on flexible, easy-to-use hardware and software. The Arduino uno microcontroller board is based on the ATmega328 having 14 digital input/output pins. The Ethernet is interfaced to the Arduino via the Arduino SPI pins. Low voltage switching relays were used to integrate the devices with the Arduino for demonstrating the switching functionality. IV. SOFTWARE DEVELOPMENT The main controller hosting the ENC28J60 web-server acts as the heart of the system consisting of the web server application and the Arduino microcontroller firmware. The server application software is the library implementation of the web-server running on the Arduino uno using the ENC28J60 connected to the internet over TCP/IP, which can act as both the server and client. The Ethernet library “"EtherShield.h" is used to send and receive data in conjunction with the microcontroller. The output messages sent to the domotic home application is in JavaScript Object Notation (JSON) format. When sketch loaded into the Arduino then modify MAC address and IP address of Ethernet board. To turn on the fan attached to pin 9 we use http://192.168.43.2/9/1 shown in screenshot in figure 3d. This will set the pin to the HIGH state and the fan should ON. For checking pin status returns a tiny chunk of JSON containing the pin requested and its current value
  • 2. Restful Web server Based Domotic Home Using Power over Ethernet (IJSRD/Vol. 2/Issue 07/2014/126) All rights reserved by www.ijsrd.com 559 looks like figure 3b {"3":"LOW"},Similarly for checkout analog value of analog pin a0 in which I have used current sensor reading looks like this http://192.168.43.2/a0 and return the same JSON formatted result as {"a0":"539"}shown in figure 3a. Similarly for controlling stepper motor reading looks like this shown in fig 3c. Utilizing Web services is the most open and interoperable way of providing access to remote services or for enabling applications to communicate amongst each other. There are two different classes such as Simple Object Access Protocol (SOAP) and Representative State Transfer (REST) are the two classes are available. However, RESTful based Web service has been employed due to its light-weight compared to the SOAP based Web service offering similar functionalities. Standard GET and POST request operations have been utilized for communication between the domotic home app and the web-server. For example, if the user action on the domotic home application is to activate the fan then the message exchange taking place is illustrated in Figure2 Fig. 2: Message exchange between Domotic home application and webserver In order to successfully connect and access the Domotic home web-server, the user has to enter the correct real IP address (see Figure 2). If the web-server grants access to the Domotic home app, response packet containing response code 200 will be received. The application processes the response packet to determine the web-server’s response. Response code 200 indicates the Connection IP is correct, and the app will switch to the main controller page and synchronize using the data from the response packet to reflect the real time statuses of the Domotic home devices (see Figure 3b main sceenshot 192.168.43.2).If the IP is incorrect , response code 404 will be received. The response code and devices with their statuses are separated by a slash (/) while the device and its status is separated by a colon (:). For example when the action requested by the user from the application to turn on fan HIGH (192.168.43.2/9/1) is successful,, the response packet will be “200 FAN_9:HIGH”. A LOW indicates off state while a one indicates on state for the status for switching functions. Fig. 3a : screenshot of analog values of current sensor Fig. 3b: screen shot of status of pin3 Fig. 3c : screen shot of stepper motor for step1 Fig. 3d: screenshot of Fan for step1 V. FLOW CHART FOR THE MAIN CONTROLLER Figure 4 shows the general flowchart for the main controller. Upon initializing, the system establishes the connection with LAN. when connection is established then it enters into the idle mode and waits for user command .when commands are received controller decode this command and take particular action according to command. Fig. 4: Home Gateway flow chart for the connection establishment with the Internet VI. RESULTS The performance of our power injector is shown below table 1 .Though the results shows some power loss for every feet increase in length of the POE cable to over- come this problem we have to add more voltage at input stage. t Table 1: performance of POE Injector
  • 3. Restful Web server Based Domotic Home Using Power over Ethernet (IJSRD/Vol. 2/Issue 07/2014/126) All rights reserved by www.ijsrd.com 560 VII. CONCLUSION In this paper, an Restful web server based internet controlled domotic home automation using power over Ethernet implemented. All types of DC applications are possible to control with the help of smart phones. The implemented system uses standardized protocols for its control. Implemented system can be integrated in already installed Ethernet network. Though the results indicate some power loss for every feet increase in length of the POE cable, the benefits of the system are attractive. REFERENCES [1] G. Kortuem, F. Kawsar, D. Fitton, and V. Sundramoorthy, "Smart objects as building blocks for the internet of things," Internet Computing, IEEE, vol. 14, pp. 44-51, 2010. [2] R. J. C. Nunes and J. C. M. Delgado, "An Internet application for home automation," in 10th Mediterranean Electrotechnical Conference (MELECON 2000), Lemesos, 2000, pp. 298-301. [3] F. Kausar, E. A. Eisa, and I. Bakhsh, "Intelligent Home Monitoring Using RSSI in Wireless Sensor Networks," International Journal of Computer Networks & Communications, vol. 4, pp. 33-46, 2012. [4] R. Piyare and M. Tazil, "Bluetooth Based Home Automation System Using Cell phone," in IEEE 15th International Symposium on Consumer Electronics, Singapore 2011, pp. 192 - 195. [5] S. Anwaarullah and S. V. Altaf, "RTOS based Home Automation System using Android,“ International Journal of Advanced Trends in Computer Science and Engineering, vol. 2, pp. 480- 484, January 2013 2013. [6] C. Chiu-Chiao, H. C. Yuan, W. Shiau-Chin, and L. Cheng-Min, "Bluetooth-Based Android Interactive Applications for Smart Living," in 2nd International Conferenceon Innovations in Bio- inspired Computing and Appplications (IBICA 2011), 2011, pp. 309-312. [7] D. Javale, M. Mohsin, S. Nandanwar, and M. Shingate, "Home Automation and Security System Using Android ADK," International Journal of Electronics Communication and Computer Technology (IJECCT), vol. 3, pp. 382-385, March 2013 2013. [8] J. Potts and S. Sukittanon, "Exploiting Bluetooth on Android mobile devices for home security applications," in Southeastcon, 2012 Proceedings of IEEE Orlando, FL 2012. [9] Al-Ali, A.R. ; AL-Rousan, M., “ Java-based home automation system” Consumer Electronics, IEEE Transactions volume: 50 , Issue: 2 , Page: 498 – 504, 2004. [10]Adam Dunkels, "Design and Implementation of the l wIP TCP/IP Stack", Swedish Institute of Computer Science, 2001. [11]Fahim A. Ahmed Ghanem and Vilas M. Thakare, “Optimization of Ipv6 Packet’s Headers Over Ethernet Frame”, International Journal of Electronics and Communication Engineering & Technology (IJECET), Volume 4, Issue 1, 2012, pp. 99 - 111, ISSN Print: 0976- 6464, ISSN Online: 0976 –6472. [12]S.K. Muthusundar and Dr. Paul Rodrigues, “Automation Testing of Web Application Based on the Navigation using Json”, International Journal of Computer Engineering & Technology (IJCET), Volume 3, Issue 1, 2012, pp. 191 - 197, ISSN Print: 0976 – 6367, ISSN Online: 0976 – 6375, [13]R. Kavitha, Dr. G. M. Nasira and Dr. N. Nachamai, “Smart Home Systems using Wireless Sensor Network – A Comparative Analysis”, International Journal of Computer Engineering & Technology (IJCET), Volume 3, Issue 3, 2012, pp. 94 - 103, ISSN Print: 0976 – 6367, ISSN Online: 0976 – 6375.