Based on the design and development technology of the iOS platform, a smart home alarm system is implemented in a heterogeneous network to solve the security problem in the smart home. In the security system, the information collection end is composed of a ZigBee wireless sensor node (monitoring node) in a self-organizing manner, and real-time information of the monitoring area can be collected and the alarm information can be transmitted to the server. The mobile client developed based on iOS technology can help users to take appropriate alarm handling and operation measures.
First, the overall program design
The overall design scheme is shown in Figure 1. The alarm system mainly includes three subsystems: ZigBee data acquisition end, alarm management server end, and iOS mobile client. The data collection end is connected to the alarm management server through the serial port, and is responsible for collecting the monitoring information in the home environment, and taking corresponding alarm operations according to the hardware intelligent control mechanism. The iOS mobile client is responsible for the push of alarm information and the control of alarm operations, and is connected to the alarm management server through the WLAN/GPRS network. The alarm management server is responsible for forwarding and processing the alarm information sent by the information collection end, and responding to the operation information of the mobile client. The data collection end and the alarm management server are only briefly introduced. This article will introduce the iOS-based mobile client development in detail.
Second, system design and implementation
1. Design and implementation of ZigBee data acquisition end
The data acquisition system uses the Zig-Bee wireless node to collect and send out alarm information, and uses the human pyroelectric infrared sensor (HC-SR501 human body sensing module) to sense the human intrusion information in real time, and uses the magnetic switch module (KTMC8) to sense the passiveness of the door or window. Turn on the operation. The data collection scheme utilizes the advantages of ZigBee ad hoc network without fixed infrastructure and the characteristics of multi-source sensor information fusion, which can ensure the real-time and accuracy of home environment information perception.
2. Design and implementation of alarm management server
The alarm management server uses the Tomcat 8.0 server. The Tomcat 8.0 server is a free open source web application server. It consumes a small amount of system resources and has good scalability. It is suitable for small application servers.
3, iOS mobile client software design and implementation
The mobile client is developed based on the iOS mobile terminal, and the release of the alarm information can be realized by means of information bearing such as text and images. Considering other unfavorable factors, such as unstable network speed of terminal equipment and load change of information processing, the smart home alarm system based on iOS platform in this paper uses the form of text information push to issue alarm information. After receiving the push message, the terminal reminds the user to take corresponding alarm operations in the terminal, such as turning on the lights, taking photos, making calls, and the like.
(1) Development platform
iOS is a mobile operating system developed by Apple Inc. The main application target is related mobile devices produced by Apple. The operating system has an easy-to-use interface, powerful features and superior stability. According to the global smartphone quarterly sales report released by Kantar Worldpanel Com Tech, in the second quarter of 2015, the domestic mobile terminal equipment field, iOS equipment It has a 24.4% share, a record high, and more and more mobile users choose to use iOS devices. Compared with the Android platform, the mobile terminal device using the iOS system uses the view priority principle and uses fewer frameworks to ensure the most effective use of the hardware by the developer. At the same time, iOS systems have high security, so the advantages of such devices are mainly reflected in a good user experience and a safer use environment. The iOS mobile client is developed using the non-open source integrated development environment Xcode 6.1 provided by Apple. The programming language is Objective-C. The pre-commissioning of the smart home alarm program is done on the Xcode simulator, and the later test and debugging is done on the real machine.
Forklift Battery,Lithium-Ion Forklift Batteries,Industrial Forklift Batteries,Lifepo4 Forklift Batteries
JIANGMEN RONDA LITHIUM BATTERY CO., LTD. , https://www.ronda-battery.com