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.

Mobile terminal design of smart home security system based on iOS

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.

Mobile terminal design of smart home security system based on iOS

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.

(2) Software main program architecture design

First enter the mobile program, the user needs to log in to the corresponding account. The mobile terminal receives the alarm message sent by the alarm management server through WLAN/GPRS in real time. If there is an alarm message, the user can take corresponding alarm operation according to different alarm messages. If the current alarm operation has been completed, the status of receiving the push message is entered again. In the above manner, the program is executed cyclically, and Figure 2 shows the flow chart of the main program of the software.

Mobile terminal design of smart home security system based on iOS

(3) main interface design

As shown in FIG. 3, the mobile terminal application main interface includes a monitoring area, a scene setting, monitoring details, and other four functional modules.

Mobile terminal design of smart home security system based on iOS

1. Monitoring area: delete or add monitoring of the specified room;

2. Scenario setting: Set different monitoring conditions for different monitoring areas, including three monitoring status settings: home, home and rest. In addition, users can add other custom alarm actions;

3. Monitoring details: display the monitoring area screen in the form of pictures, the user can take human alarm operation based on this monitoring screen;

4. Other: Provides information about the mobile program, such as user login, software, version update and other functions.

(4) Alarm message push design

The mobile client uses the iOS message push mechanism to implement the push of the alarm message. The message push mechanism is implemented between the application APP, the APP server (Your Server) and the APNS (Apple Push Notification Service) server. The message push process is shown in Figure 4. The push process function is described as follows:

Mobile terminal design of smart home security system based on iOS

1. The application (APP) registers a message push service with the Apple Push Notification Service (APNS server) through the iOS system and applies for a Device Token (device identification);

2. The APNS server sends the Device Token to the APP.

3. The APP sends the Device Token to the Your Server (APP server);

4. The APP server sends a push message to the APNS server;

5. The APNS server sends a push message to the APP. The mobile terminal alarm message push prompt interface is shown in Figure 5.

(5) User alarm operation design

The user alarm operation interface is shown in Figure 6. When the mobile device receives the push message sent by the APNS server, the user takes the relevant alarm operation according to the push message, such as clicking the "light" button to realize the switch control of the monitor area light. Features. Click the “Photograph” button to realize the function of the photo recording monitoring area. Click the “Alarm Call” button to implement the dialing alarm function. The above operations are all implemented in the iOS mobile client. The user operates the mobile terminal and forwards the relevant operation information to the data collection end through the alarm management server, and finally the data acquisition end realizes the corresponding operation, thereby achieving the purpose of the home environment intelligent home security.

Mobile terminal design of smart home security system based on iOS

Third, system analysis and testing

Software testing is an important part of program development, and it is also the key to ensuring the normal operation of the application. The programs developed in this article were tested on the Xcode Simulator (Xcode Simulator) and iOS real machine devices. Including delay test and iOS device compatibility test.

Mobile terminal design of smart home security system based on iOS

Delay testing, including intrusion alarm message push delay and security operation delay, where the delay includes the sum of hardware delay and software delay. It can be seen from the test statistics that different delays have met the requirements of the system, and the results of the delay test are shown in Figure 7. The compatibility test of the iOS device includes the compatibility of the alarm system software to the current domestic mainstream iPhone models. After testing, the mobile client can be compatible with the current mainstream iPhone models. The iOS device compatibility test results are shown in Table 1. After continuous testing and improvement, the delay and equipment compatibility of the smart home alarm system meet the design requirements.

Mobile terminal design of smart home security system based on iOS


The iOS platform-based personnel intrusion alarm system designed in this paper focuses on the needs of smart home security and can be applied to many different scenarios, such as homes, warehouses, small supermarkets, and individual stores. Combined with the advantages of wireless networking of ZigBee nodes, flexible networking of different monitoring areas is realized. Developed for the iOS mobile client, enabling users with iOS devices to use the system, which will increase the target users of the smart home security system. Therefore, the design of the system is better adapted to the needs of the smart home security system and adapts to the development direction of the smart home industry. Future work will further optimize the performance of iOS mobile terminals according to the characteristics of ZigBee wireless network, and add more monitoring measures to help users get a more perfect experience.

0 times
Window._bd_share_config = { "common": { "bdSnsKey": {}, "bdText": "", "bdMini": "2", "bdMiniList": false, "bdPic": "", "bdStyle": " 0", "bdSize": "24" }, "share": {}, "image": { "viewList": ["qzone", "tsina", "tqq", "renren", "weixin"], "viewText": "Share to:", "viewSize": "16" }, "selectShare": { "bdContainerClass": null, "bdSelectMiniList": ["qzone", "tsina", "tqq", "renren" , "weixin"] } }; with (document) 0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.' + ~(-new Date() / 36e5)];

Laminate Flooring

Indoor Flooring,Laminate Flooring,Engineered Flooring,E0 Laminate Flooring

Jinan Caiming Wood Co.,LTD ,