The content of the invention
It is a primary object of the present invention to provide a kind of control method of the intelligent door lock based on arrowband Internet of Things, based on narrow
Intelligent door lock and computer-readable recording medium with Internet of Things, it is intended to solve to communicate in intelligent door lock of the prior art
Link easily breaks down the problem of causing temporary password disabler.
To achieve the above object, the present invention provides a kind of control method of the intelligent door lock based on arrowband Internet of Things, described
Intelligent door lock is connected to mobile communications network, including step by arrowband Internet of Things:
The default dormancy period of predetermined registration operation or interval that the intelligent door lock is triggered is responded, controls the intelligent door
The protenchyma connected network communication unit of lock switches to communications status, is established in a manner of by arrowband Internet of Things with mobile communications network
Communication connection;
The temporary password sent received from server end, and store the temporary password;
Judge whether the intelligent door lock is in closure state;
When the intelligent door lock is in closure state, the sky that the intelligent door lock does not receive any trigger action is obtained
Between idle;
When the free time reaching preset value, the protenchyma connected network communication unit is controlled to switch to resting state,
To disconnect the data interaction with the mobile communications network.
Further, the default dormancy period of predetermined registration operation or interval that the response intelligent door lock is triggered,
The protenchyma connected network communication unit of the intelligent door lock is controlled to switch to communications status, in a manner of by arrowband Internet of Things and shifting
After the step of dynamic communication network establishes communication connection, in addition to:
Communication state switching mark is sent to the server end, to update the protenchyma that the server end is recorded
The state of connected network communication unit is to the communications status.
Further, it is described when the intelligent door lock is in closure state, obtain the intelligent door lock and do not receive to take office
After the step of free time of what trigger action, in addition to:
When the free time reaching preset value, dormant state switching mark is sent to the server end, to update
The state of the protenchyma connected network communication unit that server end is recorded is stated to the resting state.
Further, the temporary password is the end matched from one and the intelligent door lock that the received server-side arrives
The transmitted temporary password in end or the temporary password generated for the server end according to default algorithm.
Further, the intelligent door lock and the server end are provided with the identical and synchronous default dormancy week
Phase.
Further, in addition to step:
The identification code information of the intelligent door lock is sent to the server by the protenchyma connected network communication unit
End, to register the intelligent door lock in the server end.
Further, in addition to step:
Respond the Password Input operation being triggered on the intelligent door lock, judge the password that receives whether with it is described interim
Password match;
When the password received matches with the temporary password, the intelligent door lock is controlled to open.
Further, after the step of Password Input operation being triggered on the response intelligent door lock, in addition to:
Whether the unlocking pin to be prestored with the intelligent door lock matches the password that judgement receives;
When the password received matches with the unlocking pin to prestore, the intelligent door lock is controlled to open.
The present invention also provides a kind of intelligent door lock based on arrowband Internet of Things, including protenchyma connected network communication unit, storage
Device, processor and storage are on a memory and the computer program that can run on a processor, it is characterised in that the processor
The step of control method of the intelligent door lock described in any of the above-described is realized when performing the computer program.
The present invention also provides a kind of computer-readable recording medium, and calculating is stored with the computer-readable recording medium
Machine program, the computer program realize the step of the control method of the intelligent door lock described in any of the above-described when being executed by processor
Suddenly.
The present invention is reached by the default dormancy period the in during predetermined registration operation that is triggered in the intelligent door lock or interval
When, control the protenchyma connected network communication unit of the intelligent door lock to switch to communications status, it is logical to be established with mobile communications network
Letter connection;And the temporary password sent received from server end, and store the temporary password;Further in the intelligent door lock
During in closure state, and when the intelligent door lock does not receive free time of any trigger action and reaches preset value, control
The protenchyma connected network communication unit switches to resting state, to disconnect the data interaction with the mobile communications network.It is described
Intelligent door lock accessing mobile communication network by way of NB-IoT, cost low-power consumption are small;Intelligent door lock is directly by described narrow
Band Internet of Things communication unit receives data from mobile communications network, avoids and is transmitted via intelligent gateway and the multistage of router
Failure occurs caused by possible;Intelligent door lock accessing mobile communication network by way of NB-IoT simultaneously, compared to BLE/
The connected modes such as ZigBee/Wi-Fi, stability is good, strong antijamming capability.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in figure 1, the modular structure schematic diagram for the intelligent domestic system 101 that Fig. 1, which is scheme of the embodiment of the present invention, to be related to;
Fig. 2 is the modular structure schematic diagram of the intelligent door lock 102 in the intelligent domestic system 101 in Fig. 1.
Intelligent domestic system 101 in the embodiment of the present invention includes server end 100, multiple intelligent home devices and extremely
A few terminal 103.Wherein, the terminal 103 is a kind of setting for intelligent home device being used in intelligent domestic system 101
Standby, the terminal 103 can pass through the direct or indirect company of communicating of the intelligent home device in network and intelligent domestic system 101
Connect, the intelligent home device in intelligent domestic system 101 can be controlled to perform corresponding operation by the terminal 100.
It is understood that the terminal 103 can be Intelligent bracelet, mobile phone, tablet personal computer, wearable electronic equipment,
Portable electron device etc..
The server end 100 directly controls the intelligent home device to perform corresponding behaviour according to default control model
Make, the control instruction for sending self terminal 103 can also be received, and control the intelligent home device to hold according to the control instruction
The corresponding operation of row.
The intelligent home device can be air-conditioning, refrigerator, safety monitoring equipment, TV, smart jack, head and door sensor
Sensor etc..In the present invention, intelligent home device is intelligent door lock 102.
The intelligent door lock 102 passes through arrowband Internet of Things (Narrow Band Internet of Things, NB-IoT)
The mode of communication connects in the mobile communication network.Wherein, NB-IoT is Internet of Things (IoT) one, field branch, supports low work(
The cellular data for consuming equipment in wide area network connects, and NB-IoT is implemented in cellular network, only consumes about 180KHz bandwidth, can be straight
Socket part is deployed in the 2G/3G/4G networks such as GSM network, UMTS network or LTE network, can be reduced lower deployment cost, be realized smooth rise
Level.
The server end 100 can be server or cloud service platform of the intelligent domestic system 101 etc..It is described
Server end 100 connects with the intelligent door lock 102 and the communication of at least one terminal 103 simultaneously;The server end 100 with
The communication modes of the terminal 103 can be various wire communications mode or by WLAN, internet,
The modes such as blue tooth wireless communication, infrared wireless communication, ZigBee wireless telecommunications, herein and are not specifically limited.
In one alternatively embodiment, the intelligent home device 102 is connected in a manner of being communicated by NB-IoT
In mobile communications network, the terminal 103 and server end 100, it is again connected in mobile communications network.
The intelligent door lock 102 can include protenchyma connected network communication unit 20, memory 30, processor 40 and input
The grade part of unit 50.It will be understood by those skilled in the art that the intelligent door lock 102 shown in Fig. 1 can also be included than diagram
More or less parts, either combine some parts or different parts arrangement.
Wherein, the processor 40 is connected with the memory 30, is stored with computer program on the memory 30, institute
State computer program while performed by processor 40.
Protenchyma connected network communication unit 20, the intelligent door lock 102 are connected to by the protenchyma connected network communication unit 20
In mobile communications network, instructed so as to be sent by the protenchyma connected network communication unit 20 via the mobile communications network
To server end 100.
Memory 30, available for storage software program and various data.Memory 30 can mainly include storing program area
And storage data field, wherein, storing program area can storage program area, the application program needed at least one function (for example refer to
Make systematic function etc.) etc.;Storage data field can store data (such as key data) required when intelligent door lock 102 uses etc..
In addition, memory 30 can include high-speed random access memory, nonvolatile memory, for example, at least one can also be included
Disk memory, flush memory device or other volatile solid-state parts.
Processor 40, it is the control centre of intelligent door lock 102, utilizes various interfaces and the whole intelligent door lock of connection
102 various pieces, by running or performing the software program and/or module that are stored in memory 30, and call storage
Data in memory 30, the various functions and processing data of intelligent door lock 102 are performed, so as to be carried out to intelligent door lock 102
Integral monitoring.Processor 40 may include one or more processing units;Preferably, processor 40 can integrate application processor and tune
Demodulation processor processed, wherein, application processor mainly handles operating system, user interface and application program etc., and modulatedemodulate is mediated
Reason device mainly handles radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 40.
Input block 50 can be used for the numeral or character information for receiving input, and produces and set with the user of intelligent door lock
And the key signals input that function control is relevant.
It will be understood by those skilled in the art that the structure of the intelligent door lock 102 shown in Fig. 2 is not formed to control terminal
Limit, can include than illustrating more or less parts, either combine some parts or different parts arrangement.
Based on above-mentioned hardware configuration, each embodiment of the inventive method is proposed.
Reference picture 3, the present invention provide a kind of matching method of intelligent door lock and terminal based on arrowband Internet of Things, are applied to
The matching method of intelligent domestic system 101, the intelligent door lock and terminal includes:
Step S01, the identification code information of intelligent door lock is obtained by terminal, and the identification code information is sent to service
Device end;
Step S02, the intelligent door lock are led to the identification code information of the intelligent door lock by protenchyma connected network communication unit
Mobile communications network is crossed to send to server end;
Step S03, server end verify that the terminal identification code information sent and the identification code that intelligent door lock is sent are believed
During breath matching, the terminal and the intelligent door lock are matched.
Specifically, in the present embodiment, the terminal 103 and the communication of the server end 100 can be coded communications;
The intelligent door lock 102 communication with the server end 100 can also be the mode of coded communication;Specific coded communication side
Formula is not specifically limited herein.
The mode that the terminal 103 obtains the identification code information of intelligent door lock 102 can be in intelligence by scan setting
Quick Response Code on door lock 102, the identification code information is included in the Quick Response Code.Wherein, the identification code is the intelligent door lock 102
Unique mark, when dispatching from the factory set generation.
Reference picture 4, the present invention provides a kind of control method of the intelligent door lock based on arrowband Internet of Things, applied to intelligent family
System 101 is occupied, in the first embodiment, the control method 201 of the intelligent door lock includes:
Step S10, the default dormancy period of predetermined registration operation or interval that the intelligent door lock is triggered is responded, controls institute
The protenchyma connected network communication unit for stating intelligent door lock switches to communications status, in a manner of by arrowband Internet of Things and mobile communication
Network establishes communication connection.
Specifically, in the present embodiment, the protenchyma connected network communication unit 20 of the intelligent door lock 102 has communications status
And resting state.
Generally in 102 normal work of intelligent door lock, such as the Password Input that is triggered, door lock is in open mode, with clothes
When business device end 100 is carrying out state in the work such as data interaction, the protenchyma connected network communication unit 20 is in communications status.
Under the communications status, the intelligent door lock 102 is established logical by the protenchyma connected network communication unit 20 and mobile communications network
Letter connection.
In the case where intelligent door lock 102 is in long-term holding state, for example, the intelligent door lock 102 do not receive for a long time it is any
During operation, the protenchyma connected network communication unit 20 is in a dormant state.Under the resting state, the intelligent door lock 102 with
Data interaction between mobile communications network is to disconnect, i.e., protenchyma connected network communication unit 20 is neither to the mobile radio communication
The uplink of network sends information, does not also receive data from the downlink of the mobile communications network.It is understood that
In other embodiment, under the resting state, the connection between the intelligent door lock 102 and mobile communications network can also be
It is fully disconnected.
Further, the intelligent door lock 102 can preset a dormancy period, at interval of corresponding time, intelligent door
Lock 102 is revived and switches to communications status, is established with the server end 100 and is connected and carry out data interaction, has reached saving
The purpose of energy consumption and the communication resource.
In the step S10, when user triggers default operation on the intelligent door lock 102, such as open manual
From the indoor unlatching intelligent door lock 102, the input signal triggered from the input block 50 of the outdoor triggering intelligent door lock
Deng, or the interval default dormancy period, control the protenchyma connected network communication unit 20 of the intelligent door lock 102 to switch to
Communications status, communicated to connect with being established with the mobile communications network.
Step S20, the temporary password for sending and being sent from server end is received, and store the temporary password.
When user wants to assign temporary visitor and opens the authority of the intelligent door lock 102 temporarily, it can pass through
The terminal 103 sends corresponding temporary password to the server end 100, then via the server end 100 by described in
Temporary password is sent to the intelligent door lock 102;Or temporary password is directly generated by the server end 100 and fed back to
The terminal 103 and intelligent door lock 102;So that temporary visitor can open the intelligent door lock 102 by the temporary password.
Specifically, in step S20, intelligent door lock 102 is received by the protenchyma connected network communication unit 20 and sent
From the temporary password of the server end 100, and store the temporary password.
Step S30, judges whether the intelligent door lock is in closure state.
Step S40, when the intelligent door lock is in closure state, obtains the intelligent door lock and do not receive any triggering
The free time of operation.
Step S50, when the free time reaching preset value, the protenchyma connected network communication unit is controlled to switch to not
Dormancy state, to disconnect the data interaction with the mobile communications network.
When the intelligent door lock 102 is in closure state, and it is not received by any input signal for a long time or connects
When receiving any data, the intelligent door lock 102 can be switched to resting state.
In other embodiments, the intelligent door lock 102 can also according to direct control or remote control, passively
The switching for carrying out communications status and resting state.
Specifically, in step s 40, the intelligent door lock does not receive the free time of any trigger action, refers to
The intelligent door lock 102 is not received by any input signal or received appoints via what mobile communications network transmitted
The cumulative time of what data.
It is pre- by being triggered in the intelligent door lock 102 using the control method 201 of the intelligent door lock in the present embodiment
If the default dormancy period in during operation or interval reaches, the protenchyma connected network communication unit of the intelligent door lock 102 is controlled
20 switch to communications status, are communicated to connect with being established with mobile communications network;And the temporary password sent received from server end,
And store the temporary password;Further when the intelligent door lock is in closure state, and the intelligent door lock does not receive
When the free time of any trigger action reaches preset value, the protenchyma connected network communication unit is controlled to switch to resting state,
To disconnect the data interaction with the mobile communications network.
The accessing mobile communication network by way of NB-IoT of intelligent door lock 102, cost low-power consumption are small;Intelligent door lock
102 directly receive data by the protenchyma connected network communication unit 20 from mobile communications network, avoid via intelligent network
Close and the multistage transmission of router may caused by failure occur;Intelligent door lock 102 accesses shifting by way of NB-IoT simultaneously
Dynamic communication network, compared to connected modes such as BLE/ZigBee/Wi-Fi, stability is good, strong antijamming capability.
Further, in one embodiment, the control method 201 of the intelligent door lock also includes step:
Step S00, the identification code information of the intelligent door lock is sent to institute by the protenchyma connected network communication unit
Server end is stated, to register the intelligent door lock in the server end.
User can obtain the mark in the Quick Response Code on intelligent door lock 102 by the scan setting of terminal 103
Code information, and the identification code information is sent to server end 1000;Server end 100 verifies what the terminal 103 was sent
When identification code information matches with the identification code information that intelligent door lock 102 is sent, by the terminal 103 and the intelligent door lock 102
Pairing.
Further, the terminal 103 can also generate after successful matching in corresponding Intelligent housing software
The control interface of the intelligent door lock 102, and show the communications status or resting state of the intelligent door lock 102.
Further, the temporary password can be the server end 100 received from being matched with the intelligent door lock 102
Terminal 103 transmitted by temporary password or the temporary password that is generated according to default algorithm for the server end.
Further, reference picture 5, proposed for the control method 201 based on the intelligent door lock in first embodiment of the invention
The method flow diagram of the control method 202 of intelligent door lock in second embodiment of the invention.
In the present embodiment, the step S10~S50 in the control method 202 of the intelligent door lock is real with first
It is identical to apply example, will not be repeated here;Its difference is, after the step S10, can also include:
Step S11, communication state switching mark is sent to the server end, to update the institute that the server end is recorded
The state of protenchyma connected network communication unit is stated to the communications status.
Further, in this second embodiment, after the step S40, can also include:
Step S51, when the free time reaching preset value, dormant state switching mark is sent to the server end,
To update the state for the protenchyma connected network communication unit that the server end is recorded to the resting state.
In this second embodiment, the intelligent door lock 102 is when carrying out the switching of communications status and resting state, actively
The communication state switching mark or dormant state are switched into identification feedback to server end 100, remembered with updating the server end
The state of the protenchyma connected network communication unit of record;It is the shape that server end 100 can correctly obtain the intelligent door lock 102
State.
Further, in one embodiment, the intelligent door lock 102 and the server end 100 can be provided with it is identical and
The synchronous default dormancy period, so that the intelligent door lock 102 and the server end 100 can synchronous dormancy
And revival, recover communication faster on one side and save communication overhead.
Fig. 6 is refer to, the present invention the is proposed for the control method 201 based on the intelligent door lock in first embodiment of the invention
The method flow diagram of the control method 203 of intelligent door lock in three embodiments.
In the present embodiment, the step S10~S50 in the control method 203 of the intelligent door lock is real with first
It is identical to apply example, will not be repeated here;Its difference is, can also include:
Step S60, respond the Password Input operation being triggered on the intelligent door lock, judge the password that receives whether with
The temporary password matching;
Step S70, when the password received matches with the temporary password, the intelligent door lock is controlled to open.
In the present embodiment, after the step S20, the intelligent door lock 102 has stored the temporary password,
Intelligent door lock 102 has been provided with authorizing the condition of the unlatching authority of temporary visitor.When the temporary visitor for knowing the temporary password exists
When inputting the temporary password on the intelligent door lock 10, intelligent door lock 102 responds the password being triggered on the intelligent door lock 102
Whether input operation, the password for judging to receive match with the temporary password;And face in the password received with described
When password match when, control the intelligent door lock 102 to open.
Further, in the 3rd embodiment, the control method 203 of the intelligent door lock also includes can be with step:
Step S80, respond the Password Input operation being triggered on the intelligent door lock, judge the password that receives whether with
The unlocking pin matching that the intelligent door lock prestores;
Step S90, when the password received matches with the unlocking pin to prestore, control the intelligent door lock
Open.
The intelligent door lock 102 can carry out the unlatching of door lock with normal response unlocking pin, the temporary password with it is pre-
If unlocking pin can open the intelligent door lock simultaneously, only the temporary password is only capable of using once.Specifically
, in the present embodiment, also include after the step S70:Step S71, remove the temporary password.
Referring once again to Fig. 2, in one embodiment, the present invention also proposes a kind of intelligent door lock based on arrowband Internet of Things
102, wherein the computer program being stored on the memory 30 realized when being performed by the processor 40 it is any of the above-described
The step of control method of intelligent door lock in embodiment, specifically include:
Step S10, the default dormancy period of predetermined registration operation or interval that the intelligent door lock is triggered is responded, controls institute
The protenchyma connected network communication unit for stating intelligent door lock switches to communications status, in a manner of by arrowband Internet of Things and mobile communication
Network establishes communication connection;
Step S20, the temporary password for sending and being sent from server end is received, and store the temporary password;
Step S30, judges whether the intelligent door lock is in closure state.
Step S40, when the intelligent door lock is in closure state, obtains the intelligent door lock and do not receive any triggering
The free time of operation.
Step S50, when the free time reaching preset value, the protenchyma connected network communication unit is controlled to switch to not
Dormancy state, to disconnect the data interaction with the mobile communications network.
Using the intelligent domestic system 101 of the intelligent door lock 102 in the present embodiment, by the quilt of intelligent door lock 102
When the default dormancy period the in during predetermined registration operation of triggering or interval reaches, the arrowband Internet of Things of the intelligent door lock 102 is controlled
Communication unit 20 switches to communications status, is communicated to connect with being established with mobile communications network;And sent received from server end
Temporary password, and store the temporary password;Further when the intelligent door lock is in closure state, and the intelligent door lock
When not receiving free time of any trigger action and reaching preset value, the protenchyma connected network communication unit is controlled to switch to not
Dormancy state, to disconnect the data interaction with the mobile communications network.
The accessing mobile communication network by way of NB-IoT of intelligent door lock 102, cost low-power consumption are small;Intelligent door lock
102 directly receive data by the protenchyma connected network communication unit 20 from mobile communications network, avoid via intelligent network
Close and the multistage transmission of router may caused by failure occur;Intelligent door lock 102 accesses shifting by way of NB-IoT simultaneously
Dynamic communication network, compared to connected modes such as BLE/ZigBee/Wi-Fi, stability is good, strong antijamming capability.
Further, the temporary password is the end matched from one and the intelligent door lock that the received server-side arrives
The transmitted temporary password in end or the temporary password generated for the server end according to default algorithm.
Further, when the computer program is performed by processor 40, in addition to step:
Step S00, the identification code information of the intelligent door lock is sent to institute by the protenchyma connected network communication unit
Server end is stated, to register the intelligent door lock in the server end.
Further, when the computer program is performed by processor 40, after the step S10, can also include:
Step S11, communication state switching mark is sent to the server end, to update the institute that the server end is recorded
The state of protenchyma connected network communication unit is stated to the communications status;
After the step S40, it can also include:
Step S51, when the free time reaching preset value, dormant state switching mark is sent to the server end,
To update the state for the protenchyma connected network communication unit that the server end is recorded to the resting state.
Further, in one embodiment, the intelligent door lock 102 and the server end 100 can be provided with it is identical and
The synchronous default dormancy period, so that the intelligent door lock 102 and the server end 100 can synchronous dormancy
And revival, recover communication faster on one side and save communication overhead.
Further, when the computer program is performed by processor 40, can also include:
Step S60, respond the Password Input operation being triggered on the intelligent door lock, judge the password that receives whether with
The temporary password matching;
Step S70, when the password received matches with the temporary password, the intelligent door lock is controlled to open.
Further, when the computer program is performed by processor 40, in addition to can be with step:
Step S80, respond the Password Input operation being triggered on the intelligent door lock, judge the password that receives whether with
The unlocking pin matching that the intelligent door lock prestores;
Step S90, when the password received matches with the unlocking pin to prestore, control the intelligent door lock
Open.
The present invention also provides a kind of computer-readable recording medium, is stored thereon with computer program, the computer program
The step of above-mentioned control method is realized when being executed by processor.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or system including a series of elements not only include those key elements, and
And also include the other element being not expressly set out, or also include for this process, method, article or system institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Other identical element also be present in the process of key element, method, article or system.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone,
Computer, server, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.