CN109471412A - Building distributed security control method and control system based on ZigBee gateway - Google Patents
Building distributed security control method and control system based on ZigBee gateway Download PDFInfo
- Publication number
- CN109471412A CN109471412A CN201811071527.8A CN201811071527A CN109471412A CN 109471412 A CN109471412 A CN 109471412A CN 201811071527 A CN201811071527 A CN 201811071527A CN 109471412 A CN109471412 A CN 109471412A
- Authority
- CN
- China
- Prior art keywords
- zigbee
- message
- information
- action
- gateway
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/418—Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM]
- G05B19/4185—Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM] characterised by the network communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/02—Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/18—Self-organising networks, e.g. ad-hoc networks or sensor networks
Abstract
The present invention discloses a kind of building distributed security control method and control system based on ZigBee gateway, include the following steps: the warning message packet collected, the short connection request of TCP is established in transmission, after receiving the message for agreeing to carry out the short connection of TCP, it sends the warning message packet and updates request, the instruction for beating door opening action is sent, the short connection of TCP is simultaneously switched off;The instruction for beating door opening action is reported, receives and beats the instruction of door opening action and the message of more new database described in acknowledging receipt of.The present invention provide it is a kind of facilitate lay safety equipment, cost is relatively low, be easy to later maintenance and can real-time report security information the building distributed security control method and control system based on ZigBee gateway.
Description
Technical field
The present invention relates to ZigBee security control fields, distributed more particularly to a kind of building based on ZigBee gateway
Method of controlling security and control system.
Background technique
The Floor layer Technology of ZigBee is based on IEEE 802.15.4, i.e. its physical layer and MAC layer directly uses
The definition of IEEE 802.15.4.In the use process of Bluetooth technology, it has been found that Bluetooth technology although having many advantages,
But there are still many defects.To industry, for home automation controlling and industrial telemetry field of remote control, Bluetooth technology is too complicated,
Power consumption is big, and distance is close, and networking scale is too small etc..And industrial automation, the demand to wireless data communication are more more and more intense, and
And for industry spot, this wireless transmission must be highly reliable, and can resist the various electromagnetic interferences of industry spot.Cause
This, by people's long-term endeavour, Zigbee protocol is formal in 2003 to come out.It is ground before it in addition, ZigBee has been used
The communication protocol Home RF Lite for the home network-oriented studied carefully.
Traditional building to guarantee safety, is necessarily required to install a series of peace additional due to the higher densely populated place of floor
Full equipment is to guarantee to find dangerous situation at the first time and handle, in order to avoid cause more huge economic loss.However, traditional building safety
Equipment mostly uses wired mode to be laid out, not only wiring trouble, and at high cost, and the later period, which goes wrong, safeguards to be even more to bother, i.e.,
The wireless sensor for keeping current market more advanced, will still rely on the closer WIFI of transmission range to carry out the transmission of data,
Once building occur power-off fall net situation by the safety equipment that will cause building can not reported data cause security system to fail.
Summary of the invention
The purpose of the present invention is overcoming shortcoming in the prior art, a kind of facilitate is provided and lays safety equipment, cost
The building distributed security control method based on ZigBee gateway that is lower, being easy to later maintenance and energy real-time report security information
And control system.
The purpose of the present invention is achieved through the following technical solutions:
A kind of building distributed security control method based on ZigBee gateway, includes the following steps:
Power on signal broadcast is received, confirmation is returned and powers on instruction, receive and save ZigBee node description information, is sent true
The message of ZigBee node description information is acknowledged receipt of, meanwhile, allow to carry out into net operation;
Send data networking request, and receive agree to data networking message after, carry out networking operation, then, send packet
The heartbeat packet of the description information containing ZigBee node receives the message that confirmation updates heartbeat packet;
Key information is received, and sends the message for acknowledging receipt of key information, saves the key information;
The key information is carried out to be packaged into data packets, sends the data information with the key information
Packet receives the message for acknowledging receipt of data packets and more new database;
The short connection request of TCP is established in the warning message packet collected, transmission, is received and is agreed to carry out the short connection of TCP
After message, sends the warning message packet and update request, send the instruction for beating door opening action, simultaneously switch off the short connection of TCP;
The instruction for beating door opening action is reported, receives and acknowledges receipt of the instruction for beating door opening action and more new data
The message in library.
The reception power on signal broadcast in one of the embodiments, returns to confirmation and powers on instruction, receive and save
ZigBee node description information, the operation for sending the message for acknowledging receipt of ZigBee node description information specifically include following step
It is rapid: to establish informational table of nodes, ZigBee node description information is saved into the informational table of nodes.
The reception key information in one of the embodiments, and the message for acknowledging receipt of key information is sent, it saves
The operation of the key information specifically comprises the following steps:
Mac address information is received, becomes key information after carrying out cryptographic operation to the mac address information;
The message for acknowledging receipt of key information is sent, meanwhile, the key information is saved into the informational table of nodes,
Update the informational table of nodes.
Described in one of the embodiments, to report the instruction for beating door opening action, reception acknowledges receipt of the opening
Further include following steps after the operation of the message of the instruction and more new database of door movement:
Reception prestores action message, prestores action message after treatment for described, obtains prestoring action directive,
In, the action message that prestores is " if a ZigBee node equipment breaks down, corresponding opening door ";
Action directive is prestored described in transmission, and is reported and described prestored action directive.
The reception prestores action message in one of the embodiments, prestores action message after treatment for described,
The operation for obtaining prestoring action directive specifically comprises the following steps:
The short connection request of TCP is established in reception, and after receiving the message for agreeing to carry out the short connection of TCP, transmission prestores action message,
Action message is prestored after treatment for described, obtains prestoring action directive, simultaneously switches off the short connection of TCP;
Action directive is prestored described in reporting, and is received and is prestored action directive and more new data described in acknowledging receipt of
The message in library.
Transmission data networking request in one of the embodiments, and after receiving the message for agreeing to data networking, into
Row networking operates, and then, sends the heartbeat packet comprising ZigBee node description information, receives the message of confirmation update heartbeat packet
After operation and the reception key information, and the message for acknowledging receipt of key information is sent, saves the key information
Further include following steps before operation:
Default first time threshold judges whether there is every the first time threshold and receives ZigBee node description
Information saves node failure information if nothing, while reporting the node failure information.
Described in one of the embodiments, to report the instruction for beating door opening action, reception acknowledges receipt of the opening
Further include following steps after the operation of the message of the instruction and more new database of door movement:
It receives action control information and after treatment by the action control information obtains action directive;
The action directive is sent, and reports the action directive.
The ZigBee node description information includes ZigBee door sensor information and ZigBee cigarette in one of the embodiments,
Mist information.
The building distributed security control system based on ZigBee gateway that the present invention also provides a kind of, comprising:
Node networking module, the node networking module return to confirmation and power on instruction, connect for receiving power on signal broadcast
ZigBee node description information is received and saved, the message for acknowledging receipt of ZigBee node description information is sent, meanwhile, allow to carry out
Enter net operation;
Gateway networking module, the gateway networking module receive agreement data networking for sending data networking request
Message after, carry out networking operation, then, send include ZigBee node description information heartbeat packet, receive confirmation update the heart
Jump the message of packet;
Key information preserving module, the key information preserving module send and acknowledge receipt of for receiving key information
The message of key information saves the key information;
Key information sending module, the key information sending module is for carrying out the key information to be packaged into data
Packet, sends the data packets with the key information, and reception acknowledges receipt of data packets and more new data
The message in library;
Alarm information processing module, the alarm information processing module are used for the warning message packet collected, send
The short connection request of TCP is established, after receiving the message for agreeing to carry out the short connection of TCP, the warning message packet is sent and updates and ask
It asks, sends the instruction for beating door opening action, simultaneously switch off the short connection of TCP;And
Data reporting module, the data reporting module are used to report the instruction for beating door opening action, receive confirmation and receive
To the instruction for beating door opening action and the message of more new database.
The control system further includes that information table establishes module in one of the embodiments, and the information table establishes mould
Block saves ZigBee node description information into the informational table of nodes for establishing informational table of nodes.
The present invention compared with the prior art the advantages of and have the beneficial effect that:
The present invention is a kind of building distributed security control method and control system based on ZigBee gateway, is used
The characteristic of ZigBee ad hoc network and mesh network function, meanwhile, a PAN network will be established, PAN network will be into when establishing
The encryption of row channel ensures the safety communicated.Each ZigBee smog mould group and ZigBee can be bound by ZigBee gateway
Magnetic mould group, the ZigBee door sensor mould group that will link immediately when ZigBee smog mould group detects smog fire behavior open corresponding fire-fighting
Exit passageway.It is thus possible to be provided for traditional security protection control system a kind of based on Internet of Things, reliable, long-range in real time
Communication means, with least wiring, the trouble for solving traditional building wiring increases greatly simultaneously because ZigBee is largely laid out
Added access of the client for internet client terminal, the Cloud Server of ZigBee gateway accessing realize the transfer of data with
And processing;Client checks current each end node status information by what PC and mobile phone can be convenient, and reversely can remotely control
The work of ZigBee door sensor mould group processed.For between the equipment of binding, as long as triggering ZigBee smog mould group will be made immediately
Linkage can flexibly be modified when client, which needs to remove, to be bound and bind other equipment again by the end PC, realized and needed
Function;The present invention provide it is a kind of facilitate lay safety equipment, cost is relatively low, be easy to later maintenance and can real-time report safely believe
The building distributed security control method and control system based on ZigBee gateway of breath.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the process of the building distributed security control method based on ZigBee gateway of an embodiment of the present invention
Figure;
Fig. 2 is the function mould of the building distributed security control system based on ZigBee gateway of an embodiment of the present invention
Block figure.
Specific embodiment
To facilitate the understanding of the present invention, a more comprehensive description of the invention is given in the following sections with reference to the relevant attached drawings.In attached drawing
Give better embodiment of the invention.But the invention can be realized in many different forms, however it is not limited to herein
Described embodiment.On the contrary, the purpose of providing these embodiments is that making to understand more the disclosure
Add thorough and comprehensive.
It should be noted that it can directly on the other element when element is referred to as " being fixed on " another element
Or there may also be elements placed in the middle.When an element is considered as " connection " another element, it, which can be, is directly connected to
To another element or it may be simultaneously present centering elements.Term as used herein " vertical ", " horizontal ", " left side ",
" right side " and similar statement for illustrative purposes only, are not meant to be the only embodiment.
Unless otherwise defined, all technical and scientific terms used herein and belong to technical field of the invention
The normally understood meaning of technical staff is identical.Term as used herein in the specification of the present invention is intended merely to description tool
The purpose of the embodiment of body, it is not intended that in the limitation present invention.Term " and or " used herein includes one or more
Any and all combinations of relevant listed item.
Referring to Fig. 1, a kind of building distributed security control method based on ZigBee gateway, includes the following steps:
S110 receives power on signal broadcast, returns to confirmation and powers on instruction, receives and saves ZigBee node description information,
The message for acknowledging receipt of ZigBee node description information is sent, meanwhile, allow to carry out into net operation.
It is appreciated that the ZigBee node mould group is then sent when ZigBee node mould group is in running order
Power on signal declaration perhaps broadcast and ZigBee gateway receive power on signal declaration or broadcast when, then ZigBee gateway is anti-
Feedback confirmation powers on instruction to the ZigBee node mould group, and the ZigBee node mould group then sends ZigBee node description information
To the ZigBee gateway, wherein the ZigBee node description information includes nodal community, node MAC addr.At this point, institute
ZigBee node description information can then be received and saved by stating ZigBee gateway;So that the networking of ZigBee node mould group
The connection of ZigBee node mould group and ZigBee gateway is realized in operation.
S120, send data networking request, and receive agree to data networking message after, carry out networking operation, then, hair
The heartbeat packet comprising ZigBee node description information is sent, the message that confirmation updates heartbeat packet is received.
It is appreciated that ZigBee gateway sends data networking request to Cloud Server, when Cloud Server agreement is attached
When, after Cloud Server agrees to that the message of data networking, the reception agree to the message of data networking by sending, network
Operation;Then, ZigBee gateway sends the heartbeat packet comprising ZigBee node description information, this is included by Cloud Server
The heartbeat packet of ZigBee node description information is updated into the node database of Cloud Server, that is, can update ZigBee section
The information of point mould group.It should be noted that the heartbeat packet is periodically to notify other side certainly between ZigBee gateway and Cloud Server
The command word of one of own state oneself definition, sends according to certain time interval, heartbeat is similar to, so being called heartbeat
Packet.
So as to realize the networking of ZigBee gateway and Cloud Server, so that ZigBee gateway can be by received node
Description information is reported in Cloud Server, and is sent to mobile client by Cloud Server, wherein the mobile client packet
Include mobile phone, plate or other mobile devices.So far, the ZigBee node mould group is connect with the ZigBee gateway,
The ZigBee gateway is also connect with the Cloud Server, so as to carry out the normal work of installation control system, i.e., in time
Smog information, fire alarm information and the fault message etc. near each ZigBee node mould group are detected and acquired, and these are believed
Breath is sent to gateway, and is sent in Cloud Server by gateway.
S130 receives key information, and sends the message for acknowledging receipt of key information, saves the key information.
It is appreciated that after ZigBee node mould group has received the instruction of ZigBee gateway allowed into net operation, it is described
ZigBee node mould group will issue a key information to the ZigBee gateway, and the ZigBee gateway can then save this
Key information other mould groups or sets so as to have a code key communicated between the ZigBee node mould group
It is ignorant when standby, after the ZigBee node mould group is interacted with each other with the ZigBee gateway, respectively this code key is deposited
Inside the memory (flash) of oneself, it can be communicated later by this code key;It ensure that ZigBee node mould group
Information exchange only occurs with the ZigBee gateway with code key, will not be interacted with other equipment, improves information transmission
Accuracy and safety.It should be noted that the key information contains the status information of ZigBee node mould group.
The key information is carried out being packaged into data packets, sends the data with the key information by S140
Packet receives the message for acknowledging receipt of data packets and more new database.
It is appreciated that the key information is also packaged into data information after ZigBee gateway saves key information
Packet, and the data packets are sent to Cloud Server, therefore, after the Cloud Server receives data packets, then by band
The data packets of key information are updated into the node database of Cloud Server.
The short connection request of TCP is established in S150, the warning message packet collected, transmission, is received and is agreed to carry out the short company of TCP
After the message connect, sends the warning message packet and update request, send the instruction for beating door opening action, it is short to simultaneously switch off TCP
Connection.
It is appreciated that ZigBee node mould group acquires smog information and fire alarm information around mould group in real time, if occurring
Smoke signal perhaps fire alarm when then the ZigBee node mould group by smoke signal or fire alarm be converted into alarm disappear
Breath packet, then, the warning message packet is sent to ZigBee gateway by the ZigBee node mould group;The ZigBee gateway connects
After receiving collected warning message packet, the short connection request of TCP is established to Cloud Server transmission immediately, when the Cloud Server returns
Agree to after carrying out the short connection of TCP, the ZigBee gateway send the warning message packet and update node database request to
The Cloud Server, at the same time, the ZigBee gateway also send the instruction for beating door opening action to the ZigBee node mould
Group, so that the movement of door is opened in ZigBee node mould group control, later, the ZigBee gateway, which is also sent, disconnects TCP
The request of short connection is to the Cloud Server, and then, the Cloud Server will receive warning message packet, and update node data
Library, that is, the state of ZigBee node mould group is updated, then, disconnect the short connection with the ZigBee gateway.
S160 reports the instruction for beating door opening action, receives the instruction that door opening action is beaten described in acknowledging receipt of and more
The message of new database.
It is appreciated that the ZigBee node mould group will send and open after ZigBee node mould group opens door
After the instruction of door movement gives ZigBee gateway, the ZigBee gateway to receive signal, then the ZigBee gateway described will be beaten
The instruction of door opening action is reported to Cloud Server, and the Cloud Server will update node database, and return is acknowledged receipt of institute
The message of the instruction and more new database of beating door opening action is stated to the ZigBee gateway.
In this way, the present invention is a kind of building distributed security control method and control system based on ZigBee gateway, it is
Traditional security protection control system provides a kind of reliable, real-time telecommunication scheme based on Internet of Things, with least wiring, solution
The trouble of certainly traditional building wiring considerably increases client for interconnection simultaneously as ZigBee node mould group is largely laid out
The access of net client terminal, the Cloud Server of ZigBee gateway accessing realize the transfer and processing of data, and client passes through
What PC and mobile phone can be convenient checks current each ZigBee node mould group status information, and reversely can remotely control ZigBee
Magnetic mould group, between the equipment of binding, as long as triggering ZigBee smog mould group will make linkage immediately, when client needs clearly
When except binding and bind other equipment again, it can flexibly be modified by the end PC, realize the function of needs.The present invention provides
It is a kind of facilitate lay safety equipment, cost is relatively low, be easy to later maintenance and can real-time report security information based on ZigBee net
The building distributed security control method of pass.
In one embodiment, the reception power on signal broadcast returns to confirmation and powers on instruction, receives and saves ZigBee section
Point description information, the operation for sending the message for acknowledging receipt of ZigBee node description information specifically comprise the following steps: to establish section
Point information table, ZigBee node description information is saved into the informational table of nodes.
It should be noted that after ZigBee node mould group has sent ZigBee node description information to ZigBee gateway, institute
It states and needs to save ZigBee node description information in ZigBee gateway, therefore, the ZigBee gateway needs to establish a node
Then information table saves ZigBee node description information into the informational table of nodes.It thereby may be ensured that data can return
Collect together, then, if necessary to can more accurately and rapidly be updated, also ensure data when update
Accuracy and transmission data real-time effectiveness so that ZigBee node mould group can be monitored in real time in mobile client
State can be further improved the accuracy of ZigBee gateway response.
In one embodiment, the reception key information, and the message for acknowledging receipt of key information is sent, it saves described secret
The operation of key information specifically comprises the following steps:
Mac address information is received, becomes key information after carrying out cryptographic operation to the mac address information.It needs to illustrate
, ZigBee node mould group will send mac address information and give ZigBee gateway, when ZigBee gateway receives MAC Address letter
After breath, just mac address information is encrypted, so that become a key information after encryption, that is, one with MAC Address
KEY value.In this way, a ZigBee node mould group can be made only to be communicated with the ZigBee gateway, improved after by encryption
The accuracy of communication.
The message for acknowledging receipt of key information is sent, meanwhile, the key information is saved into the informational table of nodes,
Update the informational table of nodes.It should be noted that the ZigBee gateway sends the message for acknowledging receipt of key information to institute
ZigBee node mould group is stated, at this point, the ZigBee node mould group is just communicated with ZigBee gateway realization, and should
ZigBee node mould group is also only communicated with the ZigBee gateway;Moreover, the ZigBee gateway also can be by key information
It saves into the informational table of nodes, timely update the informational table of nodes.
It is described to report the instruction for beating door opening action in one embodiment, it receives and beats door opening action described in acknowledging receipt of
Instruction and more new database message operation after, further include following steps:
Reception prestores action message, prestores action message after treatment for described, obtains prestoring action directive,
In, the action message that prestores is " if a ZigBee node equipment breaks down, corresponding opening door ";Send institute
It states and prestores action directive, and report and described prestore action directive.
It should be noted that at the beginning when, an action command has been prestored in Cloud Server, that is, prestore dynamic
Make information, " if a ZigBee node equipment breaks down, corresponding opening door ";Also, the Cloud Server will
The action message that prestores is sent to ZigBee gateway, and the ZigBee gateway prestores action message after treatment for described,
It obtaining prestoring action directive, the action directive that prestores can then be transmitted directly to ZigBee node equipment, so that
ZigBee node equipment can directly control opening door.
When ZigBee node equipment, which collects, smoke signal or fire alarm has occurred, then the ZigBee is saved
Smoke signal or fire alarm are converted into warning message packet by point mould group, and then, the ZigBee node mould group is by the report
Alert message package is sent to ZigBee gateway;After the warning message packet that the ZigBee gateway collects, immediately to cloud service
The short connection request of TCP is established in device transmission, after Cloud Server return agreement progress TCP short connection, the ZigBee gateway
It sends the warning message packet and updates node database and request to the Cloud Server, at the same time, the ZigBee net
It closes and also sends the instruction for beating door opening action to the ZigBee node mould group, so that ZigBee node mould group control is opened
Door movement, later, the ZigBee gateway also sends disconnection the short connection of TCP request to the Cloud Server, it is then, described
Cloud Server will receive warning message packet, and update node database, that is, update the state of ZigBee node mould group, so
Afterwards, the short connection with the ZigBee gateway is disconnected.After ZigBee node mould group opens door, the ZigBee section
Point mould group will send beat door opening action instruction give ZigBee gateway, the ZigBee gateway to receive signal after, then described in
The instruction for beating door opening action is reported to Cloud Server by ZigBee gateway, and the Cloud Server will update node database,
And the message for acknowledging receipt of the instruction for beating door opening action and more new database will be returned to the ZigBee gateway.
In this way, the case where prestoring action message by setting, can more quickly respond the alarm signal of appearance, so that
ZigBee gateway carries out reporting alarm in time and opens door, and thereby may be ensured that can do when encountering dangerous situation immediately
It reacts, also, local device can remotely be controlled by Cloud Server out.It is thus possible to improve the reality of control system
Shi Xing, so as to further increase the safety of system.
In one embodiment, the reception prestores action message, prestores action message after treatment for described, obtains pre-
The operation for depositing action directive specifically comprises the following steps:
The short connection request of TCP is established in reception, and after receiving the message for agreeing to carry out the short connection of TCP, transmission prestores action message,
Action message is prestored after treatment for described, obtains prestoring action directive, simultaneously switches off the short connection of TCP.It needs to illustrate
, when ZigBee gateway and Cloud Server establish the short connection of TCP, then Cloud Server can be sent pre- to the ZigBee gateway
Action message is deposited, in this way, the validity of response can be improved.
Action directive is prestored described in reporting, and is received and is prestored action directive and more new data described in acknowledging receipt of
The message in library.
In one embodiment, transmission data networking request, and after receiving the message for agreeing to data networking, it networks
Operation, then, send include ZigBee node description information heartbeat packet, receive confirmation update heartbeat packet message operation it
Afterwards and the reception key information, and send the message for acknowledging receipt of key information, save the key information operation it
Before, further include following steps:
Default first time threshold judges whether there is every the first time threshold and receives ZigBee node description
Information saves node failure information if nothing, while reporting the node failure information.
Being in order to ensure ZigBee node mould group is not in failure at work, to guarantee that the peace of system can be improved
The timeliness of full property and response, ZigBee gateway can also judge whether ZigBee node mould group has hair every first time threshold
ZigBee node description information is sent, i.e., whether ZigBee gateway receives ZigBee node description information, if so, then illustrating
ZigBee node mould group is at work, not break down.If do not received, illustrate that ZigBee node mould group occurs
The case where failure, updates ZigBee node mould group fault message to informational table of nodes at this point, then saving node failure information
In, meanwhile, Xiang Suoshu Cloud Server reports the ZigBee node fault message.So, it can be ensured that ZigBee node mould group
Being is not in failure at work, to guarantee can be improved the timeliness of safety and the response of system.
Specifically, it after the ZigBee gateway receives ZigBee node mould group fault message, is sent immediately to Cloud Server
The short connection request of TCP is established, after Cloud Server return agreement progress TCP short connection, the ZigBee gateway sends institute
It states ZigBee node mould group fault message and updates node database and request to the Cloud Server, it is at the same time, described
ZigBee gateway also sends the instruction for beating door opening action to the ZigBee node mould group, so that the ZigBee node mould group
The movement of door is opened in control, and later, the ZigBee gateway also sends the request of the disconnection short connection of TCP to the Cloud Server,
Then, the Cloud Server will receive ZigBee node mould group fault message, and update node database, that is, update
Then the state of ZigBee node mould group disconnects the short connection with the ZigBee gateway.
It should also be noted that, the first time threshold is 0.5h~1.5h.Preferably, the first time threshold is
1h.So, it is ensured that ZigBee node mould group is in working condition.
It is described to report the instruction for beating door opening action in one embodiment, it receives and beats door opening action described in acknowledging receipt of
Instruction and more new database message operation after, further include following steps:
It receives action control information and after treatment by the action control information obtains action directive;Send institute
Action directive is stated, and reports the action directive.
It should be noted that after ZigBee gateway has sent the instruction for beating door opening action, if Cloud Server is also thought
It controls other ZigBee node mould groups and opens corresponding door, the ZigBee gateway is then received from the Cloud Server
Action control information, action control information here includes opening door control information, closing door control information, inspection
Smog or fire alarm control information etc. are surveyed, then, the action control information is changed into action directive by ZigBee gateway, and
The action directive is sent to the ZigBee node mould group, so that corresponding ZigBee node mould group is made accordingly
Control action, also, the ZigBee gateway reports the action directive to Cloud Server, and the Cloud Server is then more
New corresponding node database.
It should also be noted that, after ZigBee gateway has sent the instruction for beating door opening action, if computer end is also thought
It controls other ZigBee node mould groups and opens corresponding door, the ZigBee gateway is then received from the computer end
Action control information, action control information here include opening door control information, closing door control information, detection
The action control information is changed into action directive by smog or fire alarm control information etc., then, ZigBee gateway, and will
The action directive is sent to the ZigBee node mould group, so that corresponding ZigBee node mould group is made accordingly
Control action, also, the ZigBee gateway reports the action directive to computer end and Cloud Server, the computer end
Corresponding node database is then updated with the Cloud Server.
It should also be noted that, after ZigBee gateway has sent the instruction for beating door opening action, if mobile client
Also want that controlling other ZigBee node mould groups opens corresponding door, then the mobile client sending action controls information
To Cloud Server, then sending action control information gives ZigBee gateway to the Cloud Server, and the ZigBee gateway, which then receives, to be come
From the action control information of the Cloud Server, action control information here includes opening door control information, closing door
Channel Control, detection smog or fire alarm control information etc., then, the action control information is changed by ZigBee gateway
Action directive, and the action directive is sent to the ZigBee node mould group, so that corresponding ZigBee
Node mould group makes corresponding control action, also, the ZigBee gateway reports the action directive to Cloud Server,
The Cloud Server then updates corresponding node database, and then, the Cloud Server transmission is completed the action control and refers to
It enables to mobile client.Mobile client mentioned here includes mobile phone, plate and other mobile devices.
In one embodiment, the ZigBee node description information includes ZigBee door sensor information and ZigBee smog letter
Breath.It should be noted that it is ZigBee node mould group that ZigBee node description information is corresponding, then, the ZigBee door sensor
Corresponding information is ZigBee door sensor equipment;The corresponding ZigBee smog information is ZigBee smoke detection apparatus, described
ZigBee door sensor equipment, which is mounted on door, perhaps can control the on or off of door or window on window;The ZigBee smog
Detection device is used to monitor neighbouring smog information and fire alarm information, when there is smog alarm or fire alarm, then immediately
It sends warning message packet and gives ZigBee gateway, open door to control ZigBee door sensor equipment.
The present invention uses a kind of super low-power consumption, and the system that flexibly can be wirelessly laid out networking on a large scale will significantly
Improve the convenience of security system.It include ZigBee door sensor equipment in this system, administrative staff can be by ZigBee Smoke Detection
Equipment and ZigBee door sensor equipment are separately mounted on each room and door, each ZigBee smoke detection apparatus and ZigBee
It is also routing device that door sensor equipment, which serves as endpoint node in entire ZigBee wireless network, from each other can be with interaction data
A mesh network is constituted, even if one of those or several equipment go wrong, message can also pass by way of multi-hop
It is defeated to arrive gateway.
The present invention is used using ZigBee gateway as control centre, and ZigBee is based on IEEE802.15.4 standard, symbol
The Radio Transmission Technology of ZigBee alliance is closed, there is open 2.4G working channel, ultralow power consumption is surveyed under suspend mode
Only 1.236 microamperes, a normal button cell can be used persistently 1 to 2 years, and have powerful ad hoc capability,
65000 sub- equipment can be added in single Zigee network, have in the acquisition and monitoring of data just because of its these advantage
Very vast application.Our ZigBee gateway includes ZigBee JN516x wireless protocols chip stack and the wireless mould of GPRS
Group, security detection equipment include that ZigBee smoke detection apparatus and ZigBee door sensor equipment can be transferred to by way of multi-hop
ZigBee gateway, also, Cloud Server is uploaded to by GPRS mould group, when ZigBee smoke detection apparatus detects abnormal conditions
When will reported data to gateway and by the door sensor bound in advance control mould group and open corresponding door and facilitate evacuation personnel.
Present invention employs the characteristic of ZigBee ad hoc network and mesh network function, by our Cloud Server platform,
The end PC of monitoring room can control the networking of ZigBee gateway permission equipment, and ZigBee gateway will establish a PAN network, PAN at this time
The safety that the encryption that will do it channel is ensured to communicate by network when establishing.When ZigBee smoke detection apparatus and ZigBee door sensor
Equipment detects that PAN network will record the ID number of this PAN network simultaneously when being under search network networking state
ZigBee gateway is that it distributes the unique short address of PAN network, and forming one group of mesh network our PC monitor supervision platform can be with
Each ZigBee smoke detection apparatus and ZigBee door sensor equipment are bound, when ZigBee smoke detection apparatus detects cigarette after binding
The ZigBee door sensor equipment that will link immediately when mist fire behavior opens corresponding fire safety passage.The core setting of system is existed
On ZigBee gateway, ZigBee smoke detection apparatus and being bundled on local and Cloud Server for ZigBee door sensor equipment are tied up
Determine information, can both accomplish the warning on local area network, long-range operation and prompting can also be carried out, it can be with when encountering dangerous situation
It makes a response, and local device can remotely be controlled by Cloud Server immediately.It can be convenient using cloud service
Statistical data, to may occur dangerous situation make prejudge and make corresponding prevention.
Referring to Fig. 2, the present invention also provides a kind of building distributed security control system based on ZigBee gateway, packet
It includes: node networking module 100, gateway networking module 200, key information preserving module 300, key information sending module 400, report
Alert message processing module 500 and data reporting module 600, the node networking module 100, gateway networking module 200, code key letter
Breath preserving module 300, key information sending module 400, alarm information processing module 500 and 600 sequence of data reporting module connect
It connects.
The node networking module returns to confirmation and powers on instruction, receive and save for receiving power on signal broadcast
ZigBee node description information sends the message for acknowledging receipt of ZigBee node description information, meanwhile, allow to carry out networking behaviour
Make.It should be noted that the ZigBee node mould group is then sent when ZigBee node mould group is in running order
Electric signal declaration perhaps broadcast and ZigBee gateway receive power on signal declaration or broadcast when, then ZigBee gateway feed back
Confirmation power on instruction to the ZigBee node mould group, the ZigBee node mould group then send ZigBee node description information to
The ZigBee gateway, wherein the ZigBee node description information includes nodal community, node MAC addr.At this point, described
ZigBee gateway can then receive and save ZigBee node description information;So that the networking of ZigBee node mould group is grasped
Make, realizes the connection of ZigBee node mould group and ZigBee gateway.
The gateway networking module for send data networking request, and receive agree to data networking message after, carry out
Then networking operation sends the heartbeat packet comprising ZigBee node description information, receive the message that confirmation updates heartbeat packet.It needs
It is noted that ZigBee gateway sends data networking request to Cloud Server, when Cloud Server agreement is attached,
After Cloud Server agrees to that the message of data networking, the reception agree to the message of data networking by sending, networking operation is carried out;So
Afterwards, ZigBee gateway sends the heartbeat packet comprising ZigBee node description information, this is included ZigBee node by Cloud Server
The heartbeat packet of description information is updated into the node database of Cloud Server, that is, can update the letter of ZigBee node mould group
Breath.It should be noted that the heartbeat packet is periodically notify other side oneself state between ZigBee gateway and Cloud Server one
The command word of oneself a definition, sends according to certain time interval, heartbeat is similar to, so being called heartbeat packet.
So as to realize the networking of ZigBee gateway and Cloud Server, so that ZigBee gateway can be by received node
Description information is reported in Cloud Server, and is sent to mobile client by Cloud Server, wherein the mobile client packet
Include mobile phone, plate or other mobile devices.So far, the ZigBee node mould group is connect with the ZigBee gateway,
The ZigBee gateway is also connect with the Cloud Server, so as to carry out the normal work of installation control system, i.e., in time
Smog information, fire alarm information and the fault message etc. near each ZigBee node mould group are detected and acquired, and these are believed
Breath is sent to gateway, and is sent in Cloud Server by gateway.
The key information preserving module sends the message for acknowledging receipt of key information for receiving key information, protects
Deposit the key information.It should be noted that when ZigBee node mould group has received the allowing into net operation of ZigBee gateway
After instruction, the ZigBee node mould group will issue a key information to the ZigBee gateway, the ZigBee gateway
This key information can be then saved, so as to have a code key communicated between the ZigBee node mould group, other
Mould group or equipment when it is ignorant, after the ZigBee node mould group and the ZigBee gateway interact with each other, respectively
By this code key there are inside the memory of oneself (flash), can be communicated later by this code key;It ensure that
Only with the ZigBee gateway with code key information exchange occurs for ZigBee node mould group, will not interact with other equipment,
Improve the accuracy and safety of information transmission.It should be noted that the key information contains ZigBee node mould group
Status information.
The key information sending module is used to carry out the key information to be packaged into data packets, sends described in band
The data packets of key information receive the message for acknowledging receipt of data packets and more new database.It needs to illustrate
, after ZigBee gateway saves key information, the key information is also packaged into data packets, and by the number
It is sent to Cloud Server according to packet, therefore, after the Cloud Server receives data packets, then by the data with key information
Packet update is into the node database of Cloud Server.
The alarm information processing module is used for the warning message packet collected, and the short connection request of TCP is established in transmission,
After receiving the message for agreeing to carry out the short connection of TCP, sends the warning message packet and update request, door opening action is beaten in transmission
Instruction, simultaneously switches off the short connection of TCP.It should be noted that ZigBee node mould group acquires the smog information around mould group in real time
And fire alarm information, if there is smoke signal or fire alarm, the ZigBee node mould group by smoke signal or
Fire alarm is converted into warning message packet, and then, the warning message packet is sent to ZigBee by the ZigBee node mould group
Gateway;After the warning message packet that the ZigBee gateway collects, the short connection of TCP is established to Cloud Server transmission immediately and is asked
Ask, after the Cloud Server, which returns, agrees to carry out TCP short connection, the ZigBee gateway send the warning message packet and
It updates node database to request to the Cloud Server, at the same time, the ZigBee gateway also sends the finger for beating door opening action
It enables to the ZigBee node mould group, so that the movement of door is opened in ZigBee node mould group control, it is later, described
ZigBee gateway also sends the request for disconnecting the short connection of TCP to the Cloud Server, and then, the Cloud Server will be received and be alarmed
Message package, and update node database, that is, update the state of ZigBee node mould group, then, disconnect with it is described
The short connection of ZigBee gateway.
The data reporting module is used to report the instruction for beating door opening action, and it is dynamic that reception acknowledges receipt of the opening door
The message of the instruction of work and more new database.It should be noted that after ZigBee node mould group opens door, it is described
ZigBee node mould group will send beat door opening action instruction give ZigBee gateway, the ZigBee gateway to receive signal after,
Then the instruction for beating door opening action is reported to Cloud Server by the ZigBee gateway, and the Cloud Server will update number of nodes
According to library, and the message for acknowledging receipt of the instruction for beating door opening action and more new database will be returned to the ZigBee net
It closes.
In this way, the present invention is a kind of building distributed security control method and control system based on ZigBee gateway, it is
Traditional security protection control system provides a kind of reliable, real-time telecommunication scheme based on Internet of Things, with least wiring, solution
The trouble of certainly traditional building wiring considerably increases client for interconnection simultaneously as ZigBee node mould group is largely laid out
The access of net client terminal, the Cloud Server of ZigBee gateway accessing realize the transfer and processing of data, and client passes through
What PC and mobile phone can be convenient checks current each ZigBee node mould group status information, and reversely can remotely control ZigBee
Magnetic mould group, between the equipment of binding, as long as triggering ZigBee smog mould group will make linkage immediately, when client needs clearly
When except binding and bind other equipment again, it can flexibly be modified by the end PC, realize the function of needs.The present invention provides
It is a kind of facilitate lay safety equipment, cost is relatively low, be easy to later maintenance and can real-time report security information based on ZigBee net
The building distributed security control system of pass.
In one embodiment, the building distributed security control system based on ZigBee gateway includes ZigBee section
Point mould group, ZigBee gateway and cloud server end, the ZigBee gateway respectively with the ZigBee node mould group and the cloud
Server end connection.The ZigBee gateway includes coordinator and WIFI module, and the coordinator and the WIFI module are electrically connected
It connects.A memory is provided in the coordinator, the memory is used for memory node information table.
It should be noted that Cloud Server provides the binding node database of memory node, and as ZigBee gateway
Intermediate with mobile client connects medium, and the ZigBee node mould group includes that ZigBee door sensor equipment and ZigBee smog are examined
Measurement equipment, just ZigBee gateway establishes TCP long connection after binding between two types ZigBee equipment.ZigBee door sensor
Equipment and ZigBee smoke detection apparatus are stored in local ZigBee gateway in addition to binding informational table of nodes, are taken in cloud
Business device also stores the node database of the binding informational table of nodes as portion, when mobile client carries out cloud clothes using internet
It, will be directly by access Amazon cloud when communication monitoring and the control ZigBee door sensor equipment and ZigBee smoke detection apparatus of being engaged in
Binding node database come carry out quickly access reduce access time interval.
It should be noted that the ZigBee node mould group can link, when ZigBee smoke detection apparatus is found
Just ZigBee door sensor equipment is triggered after exception, while by the information reporting of node to ZigBee gateway.For PC and cell phone
The control message that end is sent passes through the control ZigBee door sensor equipment that gateway also can be reversed.
It should be noted that ZigBee gateway is the command centre of entire PAN network, the transmission of all ZigBee data
Finally will be by the coordinator end processing in ZigBee gateway, and the wifi chip in coordinator and gateway is logical using serial ports
Convenient for establishing heartbeat packet receiving or sending thread between Cloud Server after news, wifi mould group and wireless routing connection, for guaranteeing data
Real-time Transmission.
The building distributed security control system based on ZigBee gateway further includes computer terminal and mobile client,
The computer terminal is connect with the ZigBee gateway, and the mobile client is connect with the Cloud Server.Computer terminal and
Mobile client can clearance internet monitor the state of end ZigBee node mould group in real time, also, client can lead to
The switch for crossing computer terminal control door sensor, realizes the function of remotely controlling.
It should be noted that the control system further includes that information table establishes module, the information table is established module and is used for
Informational table of nodes is established, ZigBee node description information is saved into the informational table of nodes.ZigBee node mould group is sent
After ZigBee node description information is to ZigBee gateway, need to save ZigBee node description letter in the ZigBee gateway
Breath, therefore, the ZigBee gateway needs to establish an informational table of nodes, then, by ZigBee node description information save to
In the informational table of nodes.It thereby may be ensured that data can collect together, then, when update if necessary,
It can more accurately and rapidly be updated, also ensure the accuracy of data and the real-time effectiveness of transmission data, so that
The state of ZigBee node mould group can be monitored in real time in mobile client, can be further improved the standard of ZigBee gateway response
True property.
In one embodiment, the key information preserving module includes receiving MAC Address unit and key information preservation list
Member, the reception MAC Address unit are connected with the key information storage unit.The reception MAC Address unit is for receiving
Mac address information becomes key information after carrying out cryptographic operation to the mac address information.It should be noted that ZigBee is saved
Point mould group will send mac address information and give ZigBee gateway, after ZigBee gateway receives mac address information, just to MAC
Location information is encrypted, so that becoming a key information, that is, a KEY value with MAC Address after encryption.In this way, logical
After crossing encryption, a ZigBee node mould group can be made only to be communicated with the ZigBee gateway, improve the accuracy of communication.
The key information storage unit is used to send the message for acknowledging receipt of key information, meanwhile, the code key is believed
Breath is saved into the informational table of nodes, updates the informational table of nodes.It should be noted that the ZigBee gateway is sent really
The message of key information is acknowledged receipt of to the ZigBee node mould group, at this point, the ZigBee node mould group just with it is described
ZigBee gateway realizes communication, and the ZigBee node mould group is also only communicated with the ZigBee gateway;Moreover, described
ZigBee gateway can also save key information into the informational table of nodes, and timely update the informational table of nodes.
In one embodiment, the safety control system further includes prestored information processing module and prestored information storage mould
Block, the prestored information processing module are connected with the prestored information memory module.The prestored information processing module is for connecing
Receipts prestore action message, prestore action message after treatment for described, obtain prestoring action directive, wherein described pre-
Depositing action message is " if a ZigBee node equipment breaks down, corresponding opening door ";The prestored information is deposited
Storage module for send it is described prestore action directive, and report and described prestore action directive.
It should be noted that at the beginning when, an action command has been prestored in Cloud Server, that is, prestore dynamic
Make information, " if a ZigBee node equipment breaks down, corresponding opening door ";Also, the Cloud Server will
The action message that prestores is sent to ZigBee gateway, and the ZigBee gateway prestores action message after treatment for described,
It obtaining prestoring action directive, the action directive that prestores can then be transmitted directly to ZigBee node equipment, so that
ZigBee node equipment can directly control opening door.
When ZigBee node equipment, which collects, smoke signal or fire alarm has occurred, then the ZigBee is saved
Smoke signal or fire alarm are converted into warning message packet by point mould group, and then, the ZigBee node mould group is by the report
Alert message package is sent to ZigBee gateway;After the warning message packet that the ZigBee gateway collects, immediately to cloud service
The short connection request of TCP is established in device transmission, after Cloud Server return agreement progress TCP short connection, the ZigBee gateway
It sends the warning message packet and updates node database and request to the Cloud Server, at the same time, the ZigBee net
It closes and also sends the instruction for beating door opening action to the ZigBee node mould group, so that ZigBee node mould group control is opened
Door movement, later, the ZigBee gateway also sends disconnection the short connection of TCP request to the Cloud Server, it is then, described
Cloud Server will receive warning message packet, and update node database, that is, update the state of ZigBee node mould group, so
Afterwards, the short connection with the ZigBee gateway is disconnected.After ZigBee node mould group opens door, the ZigBee section
Point mould group will send beat door opening action instruction give ZigBee gateway, the ZigBee gateway to receive signal after, then described in
The instruction for beating door opening action is reported to Cloud Server by ZigBee gateway, and the Cloud Server will update node database,
And the message for acknowledging receipt of the instruction for beating door opening action and more new database will be returned to the ZigBee gateway.
In this way, the case where prestoring action message by setting, can more quickly respond the alarm signal of appearance, so that
ZigBee gateway carries out reporting alarm in time and opens door, and thereby may be ensured that can do when encountering dangerous situation immediately
It reacts, also, local device can remotely be controlled by Cloud Server out.It is thus possible to improve the reality of control system
Shi Xing, so as to further increase the safety of system.
In one embodiment, the alarm information processing module 500, which is also used to receive, establishes the short connection request of TCP, receives
After the message for agreeing to the progress short connection of TCP, transmission prestores action message, prestores action message after treatment for described, obtains
Action directive is prestored, the short connection of TCP is simultaneously switched off.It should be noted that when ZigBee gateway and Cloud Server establish TCP
Short connection, then Cloud Server can send to the ZigBee gateway and prestore action message, in this way, the effective of response can be improved
Property.The data reporting module 600 for report it is described prestore action directive, reception, which acknowledges receipt of, described prestores movement control
The message of system instruction and more new database.
It further include judgment module in one embodiment;The judgment module is for presetting first time threshold, every described
First time threshold judges whether there is and receives ZigBee node description information, if nothing, saves node failure information, simultaneously
Report the node failure information.
Being in order to ensure ZigBee node mould group is not in failure at work, to guarantee that the peace of system can be improved
The timeliness of full property and response, ZigBee gateway can also judge whether ZigBee node mould group has hair every first time threshold
ZigBee node description information is sent, i.e., whether ZigBee gateway receives ZigBee node description information, if so, then illustrating
ZigBee node mould group is at work, not break down.If do not received, illustrate that ZigBee node mould group occurs
The case where failure, updates ZigBee node mould group fault message to informational table of nodes at this point, then saving node failure information
In, meanwhile, Xiang Suoshu Cloud Server reports the ZigBee node fault message.So, it can be ensured that ZigBee node mould group
Being is not in failure at work, to guarantee can be improved the timeliness of safety and the response of system.
Specifically, it after the ZigBee gateway receives ZigBee node mould group fault message, is sent immediately to Cloud Server
The short connection request of TCP is established, after Cloud Server return agreement progress TCP short connection, the ZigBee gateway sends institute
It states ZigBee node mould group fault message and updates node database and request to the Cloud Server, it is at the same time, described
ZigBee gateway also sends the instruction for beating door opening action to the ZigBee node mould group, so that the ZigBee node mould group
The movement of door is opened in control, and later, the ZigBee gateway also sends the request of the disconnection short connection of TCP to the Cloud Server,
Then, the Cloud Server will receive ZigBee node mould group fault message, and update node database, that is, update
Then the state of ZigBee node mould group disconnects the short connection with the ZigBee gateway.
It should also be noted that, the first time threshold is 0.5h~1.5h.Preferably, the first time threshold is
1h.So, it is ensured that ZigBee node mould group is in working condition.
In one embodiment, the alarm information processing module 500 is also used to receive action control information, by the movement
It controls information after treatment, obtains action directive;The data reporting module 600 is also used to send the action control
Instruction, and report the action directive.
It should be noted that after ZigBee gateway has sent the instruction for beating door opening action, if Cloud Server is also thought
It controls other ZigBee node mould groups and opens corresponding door, the ZigBee gateway is then received from the Cloud Server
Action control information, action control information here includes opening door control information, closing door control information, inspection
Smog or fire alarm control information etc. are surveyed, then, the action control information is changed into action directive by ZigBee gateway, and
The action directive is sent to the ZigBee node mould group, so that corresponding ZigBee node mould group is made accordingly
Control action, also, the ZigBee gateway reports the action directive to Cloud Server, and the Cloud Server is then more
New corresponding node database.
It should also be noted that, after ZigBee gateway has sent the instruction for beating door opening action, if computer end is also thought
It controls other ZigBee node mould groups and opens corresponding door, the ZigBee gateway is then received from the computer end
Action control information, action control information here include opening door control information, closing door control information, detection
The action control information is changed into action directive by smog or fire alarm control information etc., then, ZigBee gateway, and will
The action directive is sent to the ZigBee node mould group, so that corresponding ZigBee node mould group is made accordingly
Control action, also, the ZigBee gateway reports the action directive to computer end and Cloud Server, the computer end
Corresponding node database is then updated with the Cloud Server.
It should also be noted that, after ZigBee gateway has sent the instruction for beating door opening action, if mobile client
Also want that controlling other ZigBee node mould groups opens corresponding door, then the mobile client sending action controls information
To Cloud Server, then sending action control information gives ZigBee gateway to the Cloud Server, and the ZigBee gateway, which then receives, to be come
From the action control information of the Cloud Server, action control information here includes opening door control information, closing door
Channel Control, detection smog or fire alarm control information etc., then, the action control information is changed by ZigBee gateway
Action directive, and the action directive is sent to the ZigBee node mould group, so that corresponding ZigBee
Node mould group makes corresponding control action, also, the ZigBee gateway reports the action directive to Cloud Server,
The Cloud Server then updates corresponding node database, and then, the Cloud Server transmission is completed the action control and refers to
It enables to mobile client.Mobile client mentioned here includes mobile phone, plate and other mobile devices.
In one embodiment, the ZigBee node description information includes ZigBee door sensor information and ZigBee smog letter
Breath.It should be noted that it is ZigBee node mould group that ZigBee node description information is corresponding, then, the ZigBee door sensor
Corresponding information is ZigBee door sensor equipment;The corresponding ZigBee smog information is ZigBee smoke detection apparatus, described
ZigBee door sensor equipment, which is mounted on door, perhaps can control the on or off of door or window on window;The ZigBee smog
Detection device is used to monitor neighbouring smog information and fire alarm information, when there is smog alarm or fire alarm, then immediately
It sends warning message packet and gives ZigBee gateway, open door to control ZigBee door sensor equipment.
The present invention compared with the prior art the advantages of and have the beneficial effect that:
The present invention is a kind of building distributed security control method and control system based on ZigBee gateway, is used
The characteristic of ZigBee ad hoc network and mesh network function, meanwhile, a PAN network will be established, PAN network will be into when establishing
The encryption of row channel ensures the safety communicated.Each ZigBee smog mould group and ZigBee can be bound by ZigBee gateway
Magnetic mould group, the ZigBee door sensor mould group that will link immediately when ZigBee smog mould group detects smog fire behavior open corresponding fire-fighting
Exit passageway.It is thus possible to be provided for traditional security protection control system a kind of based on Internet of Things, reliable, long-range in real time
Communication means, with least wiring, the trouble for solving traditional building wiring increases greatly simultaneously because ZigBee is largely laid out
Added access of the client for internet client terminal, the Cloud Server of ZigBee gateway accessing realize the transfer of data with
And processing;Client checks current each end node status information by what PC and mobile phone can be convenient, and reversely can remotely control
The work of ZigBee door sensor mould group processed.For between the equipment of binding, as long as triggering ZigBee smog mould group will be made immediately
Linkage can flexibly be modified when client, which needs to remove, to be bound and bind other equipment again by the end PC, realized and needed
Function;The present invention provide it is a kind of facilitate lay safety equipment, cost is relatively low, be easy to later maintenance and can real-time report safely believe
The building distributed security control method and control system based on ZigBee gateway of breath.
Only several embodiments of the present invention are expressed for embodiment described above, and the description thereof is more specific and detailed, but
It cannot be construed as a limitation to the scope of the present invention.It should be pointed out that for the ordinary skill people of this field
For member, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to of the invention
Protection scope.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.
Claims (10)
1. a kind of building distributed security control method based on ZigBee gateway, which comprises the steps of:
Power on signal broadcast is received, confirmation is returned and powers on instruction, receive and save ZigBee node description information, confirmation is sent and receives
To the message of ZigBee node description information, meanwhile, allow to carry out into net operation;
Send data networking request, and receive agree to data networking message after, carry out networking operation, then, transmission includes
The heartbeat packet of ZigBee node description information receives the message that confirmation updates heartbeat packet;
Key information is received, and sends the message for acknowledging receipt of key information, saves the key information;
The key information is carried out to be packaged into data packets, the data packets with the key information is sent, connects
Receive the message for acknowledging receipt of data packets and more new database;
The short connection request of TCP is established in the warning message packet collected, transmission, receives the message for agreeing to carry out the short connection of TCP
Afterwards, it sends the warning message packet and updates request, send the instruction for beating door opening action, simultaneously switch off the short connection of TCP;
The instruction for beating door opening action is reported, the instruction and more new database for beating door opening action described in acknowledging receipt of are received
Message.
2. the building distributed security control method according to claim 1 based on ZigBee gateway, which is characterized in that institute
It states and receives power on signal broadcast, return to confirmation and power on instruction, receive and save ZigBee node description information, transmission acknowledges receipt of
The operation of the message of ZigBee node description information specifically comprises the following steps: to establish informational table of nodes, ZigBee node is retouched
Information preservation is stated into the informational table of nodes.
3. the building distributed security control method according to claim 2 based on ZigBee gateway, which is characterized in that institute
State reception key information, and send the message for acknowledging receipt of key information, save the key information operation specifically include as
Lower step:
Mac address information is received, becomes key information after carrying out cryptographic operation to the mac address information;
The message for acknowledging receipt of key information is sent, meanwhile, the key information is saved into the informational table of nodes, is updated
The informational table of nodes.
4. the building distributed security control method according to claim 1 based on ZigBee gateway, which is characterized in that institute
It states and reports the instruction for beating door opening action, receive and play the instruction of door opening action and disappearing for more new database described in acknowledging receipt of
Further include following steps after the operation of breath:
Reception prestores action message, prestores action message after treatment for described, obtains prestoring action directive, wherein
The action message that prestores is " if a ZigBee node equipment breaks down, corresponding opening door ";
Action directive is prestored described in transmission, and is reported and described prestored action directive.
5. the building distributed security control method according to claim 4 based on ZigBee gateway, which is characterized in that institute
It states reception and prestores action message, prestore action message after treatment for described, obtain the operation tool for prestoring action directive
Body includes the following steps:
The short connection request of TCP is established in reception, and after receiving the message for agreeing to carry out the short connection of TCP, transmission prestores action message, by institute
It states and prestores action message after treatment, obtain prestoring action directive, simultaneously switch off the short connection of TCP;
Report it is described prestore action directive, receive and acknowledge receipt of action directive and the more new database of prestoring
Message.
6. the building distributed security control method according to claim 1 based on ZigBee gateway, which is characterized in that institute
State send data networking request, and receive agree to data networking message after, carry out networking operation, then, transmission includes
The heartbeat packet of ZigBee node description information, after the operation for the message that reception confirmation updates heartbeat packet and the reception is secret
Key information, and the message for acknowledging receipt of key information is sent, it further include walking as follows before the operation for saving the key information
It is rapid:
Default first time threshold judges whether there is every the first time threshold and receives ZigBee node description information,
If nothing, node failure information is saved, while reporting the node failure information.
7. the building distributed security control method according to claim 1 based on ZigBee gateway, which is characterized in that institute
It states and reports the instruction for beating door opening action, receive and play the instruction of door opening action and disappearing for more new database described in acknowledging receipt of
Further include following steps after the operation of breath:
It receives action control information and after treatment by the action control information obtains action directive;
The action directive is sent, and reports the action directive.
8. the building distributed security control method according to claim 1 based on ZigBee gateway, which is characterized in that institute
Stating ZigBee node description information includes ZigBee door sensor information and ZigBee smog information.
9. a kind of building distributed security control system based on ZigBee gateway characterized by comprising
Node networking module, the node networking module return to confirmation and power on instruction, receive simultaneously for receiving power on signal broadcast
ZigBee node description information is saved, the message for acknowledging receipt of ZigBee node description information is sent, meanwhile, allow to network
Operation;
Gateway networking module, the gateway networking module receive for sending data networking request and agree to disappearing for data networking
After breath, networking operation is carried out, then, sends the heartbeat packet comprising ZigBee node description information, confirmation is received and updates heartbeat packet
Message;
Key information preserving module, the key information preserving module send for receiving key information and acknowledge receipt of code key
The message of information saves the key information;
Key information sending module, the key information sending module is for carrying out the key information to be packaged into data information
Packet sends the data packets with the key information, receives and acknowledges receipt of data packets and more new database
Message;
Alarm information processing module, the alarm information processing module are used for the warning message packet collected, send and establish
The short connection request of TCP after receiving the message for agreeing to carry out the short connection of TCP, sends the warning message packet and updates request, hair
The instruction for beating door opening action is sent, the short connection of TCP is simultaneously switched off;And
Data reporting module, the data reporting module are used to report the instruction for beating door opening action, and reception acknowledges receipt of institute
State the message of the instruction and more new database of beating door opening action.
10. the building distributed security control system according to claim 9 based on ZigBee gateway, which is characterized in that
The control system further includes that information table establishes module, and the information table establishes module and is used to establish informational table of nodes, will
ZigBee node description information is saved into the informational table of nodes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811071527.8A CN109471412B (en) | 2018-09-14 | 2018-09-14 | Building distributed safety control method and control system based on ZigBee gateway |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811071527.8A CN109471412B (en) | 2018-09-14 | 2018-09-14 | Building distributed safety control method and control system based on ZigBee gateway |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109471412A true CN109471412A (en) | 2019-03-15 |
CN109471412B CN109471412B (en) | 2021-07-06 |
Family
ID=65664463
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811071527.8A Active CN109471412B (en) | 2018-09-14 | 2018-09-14 | Building distributed safety control method and control system based on ZigBee gateway |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109471412B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111325558A (en) * | 2020-02-24 | 2020-06-23 | 支付宝(杭州)信息技术有限公司 | Face brushing payment method, device and equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104281116A (en) * | 2013-07-12 | 2015-01-14 | 深圳光启创新技术有限公司 | Wireless control system |
CN105225449A (en) * | 2014-06-30 | 2016-01-06 | 艾默生网络能源有限公司 | Supervisory system and monitoring collector |
CN106170077A (en) * | 2016-09-13 | 2016-11-30 | 联思普瑞(武汉)电子科技有限公司 | Merge the Intelligent home monitoring system of ZigBee sensor network |
CN106950847A (en) * | 2017-05-09 | 2017-07-14 | 青岛理工大学 | A kind of intelligent home control system based on ZigBee and cloud computing |
CN107230313A (en) * | 2017-07-03 | 2017-10-03 | 山东泉恒消防工程有限公司 | A kind of building fire-fighting linked system |
CN107728590A (en) * | 2017-09-29 | 2018-02-23 | 四川长虹电器股份有限公司 | ZigBee intelligent domestic systems and its scene inter-linked controlling method |
-
2018
- 2018-09-14 CN CN201811071527.8A patent/CN109471412B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104281116A (en) * | 2013-07-12 | 2015-01-14 | 深圳光启创新技术有限公司 | Wireless control system |
CN105225449A (en) * | 2014-06-30 | 2016-01-06 | 艾默生网络能源有限公司 | Supervisory system and monitoring collector |
CN106170077A (en) * | 2016-09-13 | 2016-11-30 | 联思普瑞(武汉)电子科技有限公司 | Merge the Intelligent home monitoring system of ZigBee sensor network |
CN106950847A (en) * | 2017-05-09 | 2017-07-14 | 青岛理工大学 | A kind of intelligent home control system based on ZigBee and cloud computing |
CN107230313A (en) * | 2017-07-03 | 2017-10-03 | 山东泉恒消防工程有限公司 | A kind of building fire-fighting linked system |
CN107728590A (en) * | 2017-09-29 | 2018-02-23 | 四川长虹电器股份有限公司 | ZigBee intelligent domestic systems and its scene inter-linked controlling method |
Non-Patent Citations (2)
Title |
---|
冯云 等: "《物联网概论》", 31 January 2013, 北京:首都经济贸易大学出版社 * |
董耀华 等: "《物联网技术与应用》", 31 December 2011, 上海:上海科学技术出版社 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111325558A (en) * | 2020-02-24 | 2020-06-23 | 支付宝(杭州)信息技术有限公司 | Face brushing payment method, device and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109471412B (en) | 2021-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103999500B (en) | communication system and automatic meter reading system | |
US20190294449A1 (en) | Distributed processing system | |
CN101053213B (en) | Multi-interface communication equipment, terminal and path switching method | |
CN107644502A (en) | A kind of wisdom fire-fighting Internet of things system | |
CN109742855A (en) | A kind of switchgear house remote supervision system | |
CN100471141C (en) | Mixed intrusion detection method of wireless sensor network | |
CN102215263B (en) | Data transmission and remote control method for self-organizing wireless internet of things (IoT) system | |
US8538407B2 (en) | Fixed mobile convergence home control system | |
CN102202298B (en) | The method of network is added in conjunction with network and Wireless Sensor Network Terminal | |
CN102202302B (en) | The method of network is added in conjunction with network and Wireless Sensor Network Terminal | |
US10050865B2 (en) | Maintaining routing information | |
CN104012136B (en) | Base station, communication system and the control method for base station | |
CN108235156A (en) | A kind of wireless communication control system based on V/UHF channels | |
CN103889034B (en) | Mobile terminal receives the method and mobile terminal of mobile communications network information | |
CN106249727A (en) | A kind of management system of lithium battery pole slice assembly line | |
KR20100010641A (en) | Method, system, and computer-readable recording medium for supervising real-time fire using zigbee wireless communication | |
US9451074B2 (en) | Method of installing a home-automation system, and an associated home-automation system | |
CN110446206B (en) | Wireless network system and information transmission method | |
Mai et al. | IEC 60870-5-104 network characterization of a large-scale operational power grid | |
CN109471412A (en) | Building distributed security control method and control system based on ZigBee gateway | |
CN106656653A (en) | Method and device for processing registration and keeping alive | |
CN110220273A (en) | A kind of Heating,Ventilating and Air Conditioning monitor supervision platform and its control method based on Internet of Things | |
CN208188987U (en) | Intelligent power monitoring early warning and safety alarm platform | |
CN110247786A (en) | Household appliance, Cloud Server, client, control method and storage medium based on NB-IoT | |
KR102272204B1 (en) | System for Managing of Switchboard Using Ring Network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |