meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
homeautomation2018:group3:start [2018/05/17 18:19]
anpham [Documentation]
homeautomation2018:group3:start [2018/05/21 14:11] (current)
anpham [Documentation]
Line 2: Line 2:
 ====== Group 3: Pied Piper ====== ====== Group 3: Pied Piper ======
 ^ Name ^ Student ID ^  ^ Name ^ Student ID ^ 
-| Amir RAHAFROUZ | 0000 +| Amir RAHAFROUZ | 0528941
-| An PHAM | 0000 +| An PHAM | 0528938 
-| Meruyert NURGAZY | 0000 |  +| Meruyert NURGAZY | 0528899 |  
-Sunnat SAMADOV | 0000 +Sunnatillo SAMADOV | 0528970
 \\ \\
 ====== Problem Description ====== ====== Problem Description ======
Line 246: Line 246:
 </code> </code>
  
-====== Protocol for Home Automation ======+====== Home Automation Protocol: Zigbee ====== 
 +{{ :homeautomation2018:group3:zigbee1.png?400 |}} 
 +===== Intro ===== 
 +Nowadays, there are different high data rate protocols and technologies available, but none of these meet requirements of home sensors and control devices. These high data rate technologies provide wide bandwidth and low latency, but energy consumption is high. Zigbee technology is low cost, low power and it is an excellent communication candidate which makes communication best suited for embedded applications, industrial control, home automation and so on. 
 +===== What is Zigbee technology? ===== 
 +Zigbee is the product of Zigbee Alliance and it is specifically built for control and sensor networks on IEEE 802.15.4 standard. The communication standard defines physical and MAC (Media Access Control) layers to handle many devices. The Zigbee WPAN works at 868 MHz, 902-928MHz, and 2.4 GHz frequencies.  The data rate of 250 kbps is best suited for periodic as well as intermediate two-way transmission of data between sensors and controllers. 
 +==== Interference Problem between ZigBee and WiFi ==== 
 +There are different wireless technologies that share the same 2.4 GHz frequency band. Such technologies usually operate in proximity and have to co-exist with each other. For example, WiFi uses the same frequency band that is used by ZigBee, however, WiFi uses higher power levels compared with ZigBee. When the ZigBee and WiFi use the channel at the same time, an interference problem appears which causes loss of the data packets being transmitted. This will result in retransmission in both WiFi and ZigBee until a successful transmission is achieved. This, in turn, causes delay and mitigation in the delivery ratio for both technologies. Moreover, ZigBee would wait longer to get free medium for transmission, and with the expected packet loss and retransmission, faster draining of the sensor battery is expected.  
 + 
 +Interference Problem between ZigBee and WiFi (PDF Download Available). Available from: https://www.researchgate.net/publication/277903615_Interference_Problem_between_ZigBee_and_WiFi [accessed May 17 2018]. 
 + 
 +==== Zigbee Features ==== 
 +Zigbee is low-cost and low-powered mesh network widely deployed for controlling and monitoring applications where it covers 10-100 meters within the range. This communication system is less expensive and simpler than the other proprietary short-range wireless sensor networks as Bluetooth and Wi-Fi. 
 +Zigbee supports different network configurations for the master to master or master to slave communications. And also, it can be operated in different modes, as a result, the battery power is conserved. Zigbee networks are extendable with the use of routers and allow many nodes to interconnect with each other for building a wider area network. Most important features are: 
 +  * Support for multiple network topologies such as point-to-point, point-to-multipoint and mesh networks 
 +  * Low duty cycle – provides long battery life 
 +  * Low latency 
 +  * Direct Sequence Spread Spectrum (DSSS) 
 +  * Up to 65,000 nodes per network 
 +  * 128-bit AES encryption for secure data connections 
 +  * Collision avoidance, retries, and acknowledgments 
 + 
 +{{ :homeautomation2018:group3:zigbee2.png?400 |}} 
 + 
 +==== Zigbee Architecture ==== 
 +{{:homeautomation2018:group3:zigbee4.png?400 |}} 
 +Zigbee system structure consists of three different types of devices such as **Zigbee coordinator**, **Router** and **End device**. Every Zigbee network must consist of at least one coordinator which acts as a root and bridge of the network. The coordinator is responsible for handling and storing the information while performing receiving and transmitting data operations. Zigbee  
 +routers act as intermediary devices that permit data to pass to and go through them to other devices. End devices have limited functionality to communicate with the parent nodes such that the battery power is saved as shown in the figure. The number of routers, coordinators and end devices depends on the type of networks such as star, tree and mesh networks. 
 +Zigbee protocol architecture consists of a stack of various layers where IEEE 802.15.4 is defined by physical and MAC layers while this protocol is completed by accumulating Zigbee’s own network and application layers. 
 +==== Zigbee Protocol ==== 
 +Zigbee protocol architecture consists of a stack of various layers where IEEE 802.15.4 is defined by physical and MAC layers while this protocol is completed by accumulating Zigbee’s own network and application layers. 
 +=== Zigbee Protocol Architecture === 
 +== Physical Layer == 
 +This layer does modulation and demodulation operations upon transmitting and receiving signals respectively. This layer’s frequency, data rate and the number of channels are given below. 
 +== MAC Layer == 
 +This layer is responsible for reliable transmission of data by accessing different networks with the carrier sense multiple access collision avoidances (CSMA). This also transmits the beacon frames for synchronizing communication. 
 +Network Layer: This layer takes care of all network related operations such as network setup, end device connection, and disconnection to network, routing, device configurations, etc. 
 +== Application Support Sub-layer == 
 +This layer enables the services necessary for Zigbee device object and application objects to interface with the network layers for data managing services. This layer is responsible for matching two devices according to their services and needs. 
 +== Application Framework == 
 +It provides two types of data services as a key-value pair and generic message services. A generic message is a developer-defined structure, whereas the key-value pair is used for getting attributes within the application objects. ZDO provides an interface between application objects and APS layer in Zigbee devices. It is responsible for detecting, initiating and binding other devices to the network. 
 + 
 +=== Zigbee Packet === 
 +Zigbee networks can be configured in many different ways. Let’s consider the simple case of a single full-function device controlling multiple reduced-function devices in a time-slotted manner using beacon frames. Figure 6.17 shows the case where the Zigbee network divides time into recurring superframes, each of which begins with a beacon frame. Each beacon frame divides the superframe into an active period (during which devices may transmit) and an inactive period (during which all devices, including the controller, can sleep and thus conserve power). The active period consists of 16 timeslots, some of which are used by devices in a CSMA/CA random access manner, and some of which are allocated by the controller to specific devices, thus providing guaranteed channel access for those devices. More details about Zigbee networks can be found at [Baronti 2007, IEEE 802.15.4 2012].  
 +{{ :homeautomation2018:group3:zigbee3.png?400 |}} 
 + 
 +==== Zigbee Operation Modes ==== 
 +Zigbee two-way data is transferred in two modes: Non-beacon mode and Beacon mode. In a beacon mode, the coordinators and routers continuously monitor the active state of incoming data hence more power is consumed. In this mode, the routers and coordinators do not sleep because at any time any node can wake up and communicate. However, it requires more power supply and its overall power consumption is low because most of the devices are in an inactive state for over long periods in the network. 
 +{{ :homeautomation2018:group3:zigbee5.png?400 |}} 
 +In a beacon mode, when there is no data communication from end devices, then the routers and coordinators enter into the sleep state. Periodically this coordinator wakes up and transmits the beacons to the routers in the network. These beacon networks are work for time slots which means, they operate when the communication needed results in lower duty cycles and longer battery usage. These beacon and non-beacon modes of Zigbee can manage periodic (sensors data), intermittent (Light switches) and repetitive data types. 
 + 
 +==== Zigbee Topologies ==== 
 +Zigbee supports several network topologies; however, the most commonly used configurations are the star, mesh and cluster tree topologies. Any topology consists of one or more coordinator. In a star topology, the network consists of one coordinator which is responsible for initiating and managing the devices over the network. All other devices are called end devices that directly communicate with the coordinator. This is used in industries where all the endpoint devices are needed to communicate with the central controller, and this topology is simple and easy to deploy. 
 +In mesh and tree topologies, the Zigbee network is extended with several routers where the coordinator is responsible for staring them. These structures allow any device to communicate with any other adjacent node for providing redundancy to the data. If any node fails, the information is routed automatically to other devices by these topologies. As the redundancy is the main factor in industries, hence mesh topology is mostly used. In a cluster-tree network, each cluster consists of a coordinator with leaf nodes, and these coordinators are connected to parent coordinator which initiates the entire network. 
 +{{ :homeautomation2018:group3:zigbee6.png?400 |}} 
 +==== Zigbee Use-cases ==== 
 +=== Industrial Automation ===   
 +In manufacturing and production industries, a communication link continually monitors various parameters and critical equipment. Hence Zigbee considerably reduces this communication cost as well as optimizes the control process for greater reliability. 
 +=== Home Automation === 
 +Zigbee is perfectly suited for controlling home appliances remotely as a lighting system control, appliance control, heating and cooling system control, safety equipment operations and control, surveillance, and so on. 
 +Smart Metering: Zigbee remote operations in smart metering include energy consumption response, pricing support, security overpower theft, etc. 
 +===Smart Grid Monitoring === 
 +Zigbee operations in this smart grid involve remote temperature monitoring, fault locating, reactive power management, and so on.  
 +This is all about a brief description of Zigbee technology’s architecture, operations modes, configurations, and applications. We hope that we have given you enough content on this title, for you to understand it better. We are pioneers in developing Zigbee based projects. For further help and technical assistance, you can contact us by commenting below. 
 + 
  
-Discuss one protocol here 
  
  
 ====== Poster ====== ====== Poster ======
 +{{ :homeautomation2018:group3:home_automation_poster.jpg?600 |}}
 +
 +====== Documentation ======
 +1. Report: {{ :homeautomation2018:group3:smart-shopping-mall-report.pdf |Final-report.pdf}}
 +
 +2. FHEM config file: {{ :homeautomation2018:group3:fhem.cfg.zip |Source code}}
  
-====== Presentation ======+3. [[https://docs.google.com/presentation/d/1S-luzZ9zFRt6hKrcRyHZ2sBRzvmOjTR6riTJxKI851E/edit?usp=sharing|Online presentation]]
  
-[[https://docs.google.com/presentation/d/1S-luzZ9zFRt6hKrcRyHZ2sBRzvmOjTR6riTJxKI851E/edit?usp=sharing|Our presentation]]+4{{ :homeautomation2018:group3:code_camp_-_pied_piper.pdf |Presentation.pdf}}
  
 ====== References ====== ====== References ======
Line 268: Line 338:
   - https://environmentamerica.org/sites/environment/files/reports/AME%20Solar%20Stores%20Feb16.pdf   - https://environmentamerica.org/sites/environment/files/reports/AME%20Solar%20Stores%20Feb16.pdf
   - https://news.energysage.com/understanding-your-solar-panel-payback-period/   - https://news.energysage.com/understanding-your-solar-panel-payback-period/
 +  - Kurose, James F., and Keith W. Ross. "Computer networking: a top-down approach." Addison Wesley Computing (2013).