HC Security Network News With the increasing economic level and accelerating pace of life, home users demand for security is gradually increasing in many cities, people choose luxury apartments and villas at the same time, the awareness of home security The land is constantly improving. In addition to the security engineering designed and constructed by real estate developers and construction contractors and the existing "community security, security and civil defense" model, it gradually integrates people's independent choice and purchase. As an integral part of smart homes, home security systems will also be a family expense that must be considered after choosing to buy a home and buying a home. The smart home system that emerged at the historic moment can not only realize the control of smart home appliances, intelligent lighting, intelligent curtains, etc., but also facilitates life and improves quality. It can also realize all-weather three-dimensional security monitoring and build a three-dimensional security system for residents to protect the family. Life and property security.
The working principle and structure distribution of smart home security system
A comprehensive smart home security alarm system ensures the safety of every user's life and property. The smart home security system provides a basic home security system for smart home residents, which is divided into front-end detectors, intelligent home controllers, network signal transmission systems, and control center control systems. In particular, the front-end detectors of the security system can be divided into door magnets, window magnets, gas detectors, smoke detectors, infrared probes, and emergency buttons.
If someone illegally invades, the corresponding detector will be triggered, and the home alarm host will immediately send the alarm signal to the cell management center or the user-specified phone, so that the security personnel can quickly alert, and the alarm host of the community management center will record these. Information is available for inspection. In addition, the smart home security system has strong adaptability and compatibility, and has different functions such as indoor intelligent alarm, perimeter automatic alarm, video monitoring, proximity card access control and internal communication. Various functions utilize the intelligent system network transmission part and The front-end home intelligent controller of the system can complete its own control based on setting its own controller and management software. At the same time, the system also provides users with various control methods for the electrical equipment in the home, no matter where the owner lives. They are able to keep abreast of the use of home appliances and control them. For example, if the owner is on a business trip, the air conditioner and electric curtains in the home can be opened by telephone or network to keep the indoor air fresh; or when the owner is at home, the remote control can be used to switch the scene lighting.
Smart home security system specific performance characteristics
From the security point of view, the smart home security system can achieve the level of arming of the home security alarm point, and use logic to avoid system false alarm; the remote control or keyboard can be used to arm and disarm the system, once an alarm occurs, the system automatically Confirm alarm information, status and location, and automatically force busy when alarming. The following categories describe the smart home security system in the home as long as the device and application features:
Major equipment
1, wireless router
2, smart host wireless gateway
3. Mobile terminal, wall hanging machine, control terminal
4, smart phone or computer
5, wireless infrared detector, door magnet, smoke, gas, smart switches, sockets, etc.
6, (the above settings can be increased or decreased according to actual conditions)
The main function
1, alarm and linkage function. By installing the door magnet and the window magnet to prevent illegal intrusion, the owner and the community guard can obtain the signal in the cell management center through the alarm controller installed in the household room to quickly receive the alarm. At the same time, the alarm linkage control can automatically open the indoor lighting and start the alarm when the alarm occurs in the room.
2. Emergency help function, the alarm controller installed indoors has emergency call function, and the community management center can respond and rescue the emergency help signal of the residents.
3. Alarm management display function. When the household leaves the house, the security enters the home mode, that is, the burglar alarm state. In order to effectively prevent illegal invasion, the management system of the residential property center can receive the alarm signal in real time, automatically display the alarm household number and alarm type, and automatically archive the system information.
4. Set/disarm linkage control: At the same time that the owner starts the safety defense system before going out, the system can cut off the power of some household appliances, for example: turn off all the lights, cut off the electric iron, electric kettle, TV and other household appliances. Socket power supply, etc.; when the owner returns home, it can be adjusted to normal, enter the home disarm mode, some lights are automatically turned on, the door magnet and the window magnetic are offline, and the indoor smoke detector and the kitchen flammable gas detector are still in the alarm mode.
5. Preset alarm function. The intelligent security system can preset alarm calls, such as 110, 120, 119, etc. to perform different alarms and network with the community. In addition, an alarm can be sent to the resident's mobile phone or designated phone by default.
Of course, the family intelligent security system is an important part of the intelligent residential community. Through the community and home security system, real-time monitoring and layered defense of the community and home key areas, the community residents can live in the invisible anti-theft network, advanced Humanized prevention also enables the intelligent residential community to have a three-dimensional, all-round security.
Design of remote server scheme for smart home security system
Traditional server solutions often use a single server model. Traditional services do not require a long connection between the client and the server. A client sends a connection when it acquires data. And the client runs on the PC. After the client initiates the connection to the server, the server can temporarily store the IP address and port of the client. When the server needs to send data to the client, it can directly use the IP address and port number of the client. So with a single server you can meet the needs of traditional business.
Introduction to Intelligent Security Solutions
When the traffic is large, the traditional server uses server cluster technology to ensure that the server is not too large due to excessive traffic. As smart home gateway users gradually rise, users will reach a million. Each gateway has to maintain a long connection with the server, and the server also communicates with the mobile phone. In order to ensure that the load of the server will reach a million level, it can still work normally. This solution adopts the master-slave server framework to achieve load balancing. The primary server is responsible for establishing the connection between the gateway and the server for the first time, and then assigning a secondary server to the gateway according to factors such as geographical location and informing its IP and other information. The gateway then initiates a connection according to the slave server information to the slave server, and the gateway and the slave server remain long after the connection is established. Connect and disconnect from the primary server. It is composed of the primary server and the secondary server. The first connection of the gateway or the reconnection of the connection to the server is initiated by the primary server. After receiving the connection information initiated by the gateway, the primary server performs authentication to check whether it is in the service gateway list. After assigning the server IP and service number to the gateway. The slave server is used to maintain a long connection with the gateway. On the one hand, the control command can be sent to the gateway, and on the other hand, the monitoring information reported by the gateway can be received. The alternate primary server is used for switching when the primary server fails.
Design of connection scheme between home gateway and remote server
The network environment to which the home gateway belongs is the subnet environment of the service provider. The IP is dynamically changed, and after multiple layers of NAT translation, the server cannot initiate an active connection to the gateway. The user needs to control the home device at any time, and the server must be able to initiate a connection to the gateway at any time. In order to achieve mutual communication between the home gateway and the remote server.
Design implementation of long-term connection between gateway and server and accidental interrupt recovery
The user needs to remotely monitor the home information at any time, such as turning on the air conditioner on the way home, turning off the power on the way out, etc. The gateway also needs to feedback the home abnormality to the user at any time, such as smoke alarm information, so the home gateway must keep connected with the server at any time.
Intelligent Security Solution This solution uses a heartbeat packet to monitor the long connection between the gateway and the server. After the gateway and the server are successfully connected, the server sends a heartbeat packet to the gateway at intervals (temporarily set to 15s). After receiving the heartbeat packet, the gateway receives the heartbeat packet. You need to respond to the heartbeat packet immediately to the server. If there is no response for more than 5 times, it is determined that the connection is broken.
The server will set the secondary gateway online flag to 0. Similarly, the home gateway will monitor the heartbeat thread after the online connection. If there is no heartbeat information within 75s, it will determine that the server has been disconnected, and the gateway will automatically restart the connection server thread.
Editor in charge: Zhang Zequn
NINGBO BRIGHT MAX CO., LTD. , https://www.smartrider-horsecare.com