[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN114627580B - Intelligent door lock, state reporting method thereof and household equipment linkage system - Google Patents

Intelligent door lock, state reporting method thereof and household equipment linkage system Download PDF

Info

Publication number
CN114627580B
CN114627580B CN202210239356.5A CN202210239356A CN114627580B CN 114627580 B CN114627580 B CN 114627580B CN 202210239356 A CN202210239356 A CN 202210239356A CN 114627580 B CN114627580 B CN 114627580B
Authority
CN
China
Prior art keywords
door lock
intelligent door
wireless communication
cloud platform
communication module
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.)
Active
Application number
CN202210239356.5A
Other languages
Chinese (zh)
Other versions
CN114627580A (en
Inventor
韩盈盈
秦熙
岳公和
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Hisense Smart Life Technology Co Ltd
Original Assignee
Qingdao Hisense Smart Life Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Qingdao Hisense Smart Life Technology Co Ltd filed Critical Qingdao Hisense Smart Life Technology Co Ltd
Priority to CN202210239356.5A priority Critical patent/CN114627580B/en
Publication of CN114627580A publication Critical patent/CN114627580A/en
Application granted granted Critical
Publication of CN114627580B publication Critical patent/CN114627580B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00571Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated by interacting with a central unit
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • H04W12/033Protecting confidentiality, e.g. by encryption of the user plane, e.g. user's traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • H04W12/084Access security using delegated authorisation, e.g. open authorisation [OAuth] protocol
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L2012/284Home automation networks characterised by the type of medium used
    • H04L2012/2841Wireless

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The application discloses an intelligent door lock, a state reporting method thereof and a household equipment linkage system, and belongs to the technical field of electronics. The wireless communication module can send the state of the intelligent door lock to the cloud platform after receiving the token sent by the cloud platform, so that the cloud platform can start the home equipment linked with the intelligent door lock based on the state of the intelligent door lock, and after receiving the communication parameters, the wireless communication module sends the current unlocking record of the intelligent door lock to the cloud platform. Therefore, the cloud platform can timely start other household devices, and the instantaneity of linkage of the intelligent door lock and the other household devices is ensured, so that the linkage effect between the intelligent household devices is ensured.

Description

Intelligent door lock, state reporting method thereof and household equipment linkage system
Technical Field
The disclosure relates to the technical field of electronics, in particular to an intelligent door lock, a state reporting method thereof and a household equipment linkage system.
Background
The intelligent home system generally comprises a plurality of intelligent home devices such as an intelligent door lock and a lamp, and the intelligent home devices are in communication connection with the cloud platform. The cloud platform can adjust the working states of other intelligent household devices based on the working state of one of the intelligent household devices. That is, the linkage of a plurality of smart home devices can be realized. For example, the cloud platform may adjust the on-off state of the light based on the on-off state of the intelligent door lock.
However, the linkage effect between the smart home devices in the related art is poor.
Disclosure of Invention
The embodiment of the application provides an intelligent door lock, a state reporting method thereof and a household equipment linkage system, which can solve the problem of poor linkage effect between intelligent household equipment in the related technology. The technical scheme is as follows:
in one aspect, there is provided an intelligent door lock, the intelligent door lock comprising: a processor and a wireless communication module;
the processor is used for acquiring a current unlocking record of the intelligent door lock and controlling the wireless communication module to be in a power-on state if unlocking operation is executed based on a received unlocking instruction in the process that the wireless communication module is in a power-off state, wherein the current unlocking record comprises the state of the intelligent door lock;
the wireless communication module is used for:
after power-on, a networking request is sent to a cloud platform, wherein the networking request is used for indicating the cloud platform to send a token for communication to the wireless communication module;
if a token sent by the cloud platform is received, sending the token and the state of the intelligent door lock to the cloud platform, wherein the state of the intelligent door lock is used for enabling the cloud platform to start home equipment linked with the intelligent door lock;
And after receiving the communication parameters sent by the cloud platform, sending the current unlocking record to the cloud platform based on the communication parameters.
Optionally, the wireless communication module includes a first memory; the wireless communication module is further used for:
before a networking request is sent to the cloud platform, if the number of first historical unlocking records of the intelligent door lock stored in the first memory does not exceed a number threshold, acquiring a current unlocking record of the intelligent door lock from the processor, and storing the current unlocking record into the first memory.
Optionally, the wireless communication module is further configured to:
and after the token sent by the cloud platform is received, acquiring the state of the intelligent door lock from the processor if the number of the first historical unlocking records of the intelligent door lock stored in the first memory exceeds the number threshold after the first historical unlocking records are detected to be powered on.
Optionally, the wireless communication module is further configured to:
after receiving the communication parameters sent by the cloud platform, sending a record acquisition instruction to the processor, wherein the record acquisition instruction is used for indicating the processor to send a current unlocking record of the intelligent door lock;
And after receiving the current unlocking record sent by the processor, sending the current unlocking record and the first historical unlocking record to the cloud platform based on the communication parameters.
Optionally, the intelligent door lock further includes: the second memory is used for storing a second historical unlocking record of the intelligent door lock, and the recording time of the second historical unlocking record is later than that of the first historical unlocking record;
the processor is used for responding to the record acquisition instruction and sending the current unlocking record and the second historical unlocking record of the intelligent door lock to the wireless communication module;
and the wireless communication module is used for sending the current unlocking record, the first historical unlocking record and the second historical unlocking record to the cloud platform based on the communication parameters after receiving the current unlocking record and the second historical unlocking record of the intelligent door lock sent by the processor.
Optionally, the intelligent door lock further includes: a second memory;
the wireless communication module is further configured to send a storage instruction to the processor if the token is not received, where the storage instruction is used to instruct the processor to store the current unlocking record into the second memory.
Optionally, the communication parameters include encryption parameters and configuration parameters; the wireless communication module is used for:
after the encryption parameters and the configuration parameters sent by the cloud platform are received, encrypting the current unlocking record by adopting the encryption parameters, packaging the encrypted current unlocking record by adopting the configuration parameters, and sending the packaged current unlocking record to the cloud platform.
Optionally, the wireless communication module is a WiFi communication module.
On the other hand, a status reporting method of an intelligent door lock is provided, and the intelligent door lock comprises: a processor and a wireless communication module; the method comprises the following steps:
in the process that the wireless communication module is in a power-off state, if the processor executes unlocking operation based on the received unlocking instruction, the processor acquires the current unlocking record of the intelligent door lock and controls the wireless communication module to be in a power-on state, wherein the current unlocking record comprises the state of the intelligent door lock;
the wireless communication module sends a networking request to a cloud platform after being electrified, wherein the networking request is used for indicating the cloud platform to send a token for communication to the wireless communication module;
If the wireless communication module receives the token sent by the cloud platform, the wireless communication module sends the token and the state of the intelligent door lock to the cloud platform, wherein the state of the intelligent door lock is used for enabling the cloud platform to start home equipment linked with the intelligent door lock;
after receiving the communication parameters sent by the cloud platform, the wireless communication module sends the current unlocking record to the cloud platform based on the communication parameters.
In one aspect, a method for reporting a state of an intelligent door lock is provided, and the method is applied to a cloud platform, and comprises the following steps:
receiving a networking request sent by a wireless communication module of the intelligent door lock after power-on;
responsive to the networking request, sending a token for communication to the wireless communication module;
receiving the token and the state of the intelligent door lock, which are sent by the wireless communication module;
starting household equipment linked with the intelligent door lock based on the state of the intelligent door lock;
transmitting communication parameters to the wireless communication module;
receiving a current unlocking record of the intelligent door lock, which is sent by the wireless communication module;
the current unlocking record is obtained after the processor of the intelligent door lock executes unlocking operation based on the received unlocking instruction in the process that the wireless communication module is in a power-off state.
In yet another aspect, a home device linkage system is provided, the system comprising: the intelligent door lock comprises an intelligent door lock, a cloud platform and household equipment linked with the intelligent door lock;
the wireless communication module of the intelligent door lock is used for sending a networking request to the cloud platform after power-on;
the cloud platform is used for responding to the networking request and sending a token for communication to the wireless communication module of the intelligent door lock;
the wireless communication module of the intelligent door lock is further used for sending the token and the state of the intelligent door lock to the cloud platform;
the cloud platform is further used for starting household equipment linked with the intelligent door lock based on the state of the intelligent door lock.
The technical scheme provided by the embodiment of the application has the beneficial effects that at least:
the embodiment of the application provides an intelligent door lock, a state reporting method thereof and a household equipment linkage system, wherein a wireless communication module can firstly send the state of the intelligent door lock to a cloud platform after receiving a token sent by the cloud platform, so that the cloud platform can firstly start household equipment linked with the intelligent door lock based on the state of the intelligent door lock, and after receiving communication parameters, the wireless communication module can then send a current unlocking record of the intelligent door lock to the cloud platform. Therefore, the cloud platform can timely start other household devices, and the instantaneity of linkage of the intelligent door lock and the other household devices is ensured, so that the linkage effect between the intelligent household devices is ensured.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present disclosure, and other drawings may be obtained according to these drawings without inventive effort for a person of ordinary skill in the art.
Fig. 1 is a schematic diagram of a home appliance linkage system according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an intelligent door lock according to an embodiment of the present application;
fig. 3 is a flowchart of a status reporting method of an intelligent door lock according to an embodiment of the present application;
fig. 4 is a flowchart of another method for reporting a status of an intelligent door lock according to an embodiment of the present application;
fig. 5 is a flowchart of a status reporting method of another intelligent door lock according to an embodiment of the present application;
fig. 6 is a flowchart of a status reporting method of another intelligent door lock according to an embodiment of the present application;
fig. 7 is a flowchart of a status reporting method of another intelligent door lock according to an embodiment of the present application;
fig. 8 is a flowchart of a status reporting method of another intelligent door lock according to an embodiment of the present application.
Detailed Description
For the purposes of clarity, technical solutions and advantages of the present disclosure, the following further details the embodiments of the present disclosure with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of a home equipment linkage system according to an embodiment of the present application. As shown in fig. 1, the system may include an intelligent door lock 10, a cloud platform 20, and at least one home device 30 in linkage with the intelligent door lock.
The cloud platform 20 and the intelligent door lock 10, and the cloud platform 20 and each home device 30 can be connected by wireless communication. The cloud platform 20 may be a server, or may be a server cluster formed by a plurality of servers, or may also be a cloud computing service center.
The intelligent door lock 10 is configured to send a state of the intelligent door lock 10 to the cloud platform 20, and the cloud platform 20 is configured to start the home device 30 that is linked with the intelligent door lock 10 based on the state of the intelligent door lock 10. Alternatively, the home devices 30 coupled to the smart door lock 10 may include a light, a refrigerator, a television, and the like. For example, referring to fig. 1, the home device 30 may be a light fixture.
Fig. 2 is a schematic structural diagram of an intelligent door lock according to an embodiment of the present application, and as shown in fig. 2, the intelligent door lock 10 may include a processor 101, a wireless communication module 102, a battery 103, and a switch circuit 104. Alternatively, the processor 10 may be a micro-controller unit (MCU). The wireless communication module 102 may be a wireless fidelity (wireless fidelity, wiFi) communication module. The battery 103 may be a disposable battery, for example, a dry cell battery. The battery 103 may power the processor 101, the wireless communication module 102, and other devices in the smart door lock 10.
The processor 101 is connected with the wireless communication module 102, the battery 103 and the switch circuit 104, and the switch circuit 104 is also connected with the battery 103 and the wireless communication module 102.
In order to save the electric quantity of the battery 103, if the processor 101 does not receive the unlocking instruction within the target duration, the switch circuit 104 may control the battery 103 to stop supplying power to the wireless communication module 102, so that the wireless communication module 102 enters the power-off state, thereby reducing the electric quantity of the wireless communication module 102. And, the processor 101 may also control the battery 103 to stop powering other devices in the smart door lock 10 through the switch circuit 104, so that the smart door lock enters a sleep state.
If the processor 101 performs the unlocking operation based on the received unlocking instruction, the switch circuit 104 can control the battery 103 to supply power to the wireless communication module 102, so that the wireless communication module 102 is in a power-on state.
Fig. 3 is a flowchart of a method for reporting a state of an intelligent door lock according to an embodiment of the present application, where the method may be applied to the intelligent door lock 10 shown in fig. 1 or fig. 2. As shown in fig. 3, the method may include:
step 301, in the process that the wireless communication module is in the power-off state, if the processor executes the unlocking operation based on the received unlocking instruction, the processor obtains the current unlocking record of the intelligent door lock, and controls the wireless communication module to be in the power-on state.
In the process that the wireless communication module is in the power-off state, if the processor receives an unlocking instruction to execute unlocking operation, the processor can acquire the current unlocking record of the intelligent door lock and can control the wireless communication module to be in the power-on state. The current unlocking record may include a state of the intelligent door lock, received unlocking information, a receiving time of the unlocking information, and the like.
In the embodiment of the application, if the processor receives unlocking information of the user, the processor can confirm that the unlocking instruction is received. And the processor may perform an unlocking operation based on the unlocking information in response to the unlocking instruction.
Step 302, the wireless communication module sends a networking request to the cloud platform after power-on.
The wireless communication module can send a networking request to the cloud platform after being electrified, wherein the networking request is used for indicating the cloud platform to send a token (token) for communication to the wireless communication module.
Optionally, the networking request may carry an identifier of the intelligent door lock, and the cloud platform may verify the identifier of the intelligent door lock after receiving the networking request. If the identification verification of the intelligent door lock is successful, the intelligent door lock can be determined to be a device capable of communication, and therefore a token for communication can be sent to the wireless communication module.
Step 303, if the wireless communication module receives the token sent by the cloud platform, the wireless communication module sends the token and the state of the intelligent door lock to the cloud platform.
After the wireless communication module sends a networking request to the cloud platform, if the token sent by the cloud platform is received, the wireless communication module can be determined to be capable of communicating with the cloud platform, so that the states of the token and the intelligent door lock can be sent to the cloud platform. After receiving the token and the state of the intelligent door lock, the cloud platform can start the household equipment linked with the intelligent door lock based on the state of the intelligent door lock.
Step 304, after receiving the communication parameters sent by the cloud platform, the wireless communication module sends a current unlocking record to the cloud platform based on the communication parameters.
After the wireless communication module sends the token and the state of the intelligent door lock to the cloud platform, the wireless communication module can acquire communication parameters from the cloud platform. After the wireless communication module receives the communication parameters sent by the cloud platform, the current unlocking record can be sent to the cloud platform based on the communication parameters, so that the cloud platform stores the current unlocking record.
In an alternative implementation manner, after the wireless communication module successfully establishes communication connection with the cloud platform after being powered on and obtains communication parameters, the unlocking record is sent to the cloud platform based on the communication parameters. So that the cloud platform opens the lamp linked with the intelligent door lock based on the state of the intelligent door lock in the unlocking record. However, because the time consumed for the wireless communication module to acquire the communication parameters is generally long, the cloud platform cannot timely start other household devices, and therefore the linkage effect between the intelligent household devices is poor. Moreover, under the condition that the network between the wireless communication module and the cloud platform is poor, the time consumption of the wireless communication module for acquiring the communication parameters is long, and the time consumption of the cloud platform for receiving unlocking records of the intelligent door lock is also long, so that the linkage effect between intelligent household equipment is further poor.
In the above implementation manner, under the condition that the network is good, the time period required for the wireless communication module to start other home devices from power-on to the cloud platform is about 4 seconds. In the case of poor network, the wireless communication module may need to transmit the unlock record to the cloud platform multiple times. In this case, the duration required for the wireless communication module to start other home devices from power-on to the cloud platform is about 14 seconds.
According to the state reporting method of the intelligent door lock, the wireless communication module can firstly send the state of the intelligent door lock to the cloud platform after receiving the token sent by the cloud platform, so that the cloud platform can start the home equipment linked with the intelligent door lock firstly based on the state of the intelligent door lock. After the communication parameters are received, the wireless communication module sends the current unlocking record of the intelligent door lock to the cloud platform. Compared with the implementation mode, the current unlocking record of the intelligent door lock is sent to the cloud platform after the communication parameters are received. The state reporting method of the intelligent door lock provided by the embodiment of the application ensures that the cloud platform can timely start other household equipment, and ensures the real-time linkage of the intelligent door lock and the other household equipment, thereby ensuring the linkage effect between the intelligent household equipment.
And because the data volume of the state of the intelligent door lock is smaller than the data volume of the current unlocking record of the intelligent door lock, the time for the cloud platform to receive the state of the intelligent door lock is shortened, and the real-time of the linkage of the intelligent door lock and other household equipment is further ensured. According to the state reporting method of the intelligent door lock, under the condition that the network is good, the time period required for starting other household equipment from power-on to cloud platform by the wireless communication module is about 1.8 seconds. Under the condition of poor network, the time required by the wireless communication module to start the household equipment linked with the intelligent door lock from power-on to the cloud platform is at most 6 seconds.
In summary, the embodiment of the application provides a status reporting method for an intelligent door lock, where after receiving a token sent by a cloud platform, a wireless communication module may first send the status of the intelligent door lock to the cloud platform, so that the cloud platform may first start a home device linked with the intelligent door lock based on the status of the intelligent door lock, and after receiving a communication parameter, the wireless communication module sends a current unlocking record of the intelligent door lock to the cloud platform. Therefore, the cloud platform can timely start other household devices, and the instantaneity of linkage of the intelligent door lock and the other household devices is ensured, so that the linkage effect between the intelligent household devices is ensured.
Fig. 4 is a flowchart of another method for reporting a state of an intelligent door lock according to an embodiment of the present application, which can be applied to the intelligent door lock 10 shown in fig. 1 or fig. 2. As shown in fig. 4, the method may include:
step 401, a networking request sent by the wireless communication module after power-on is received.
In the embodiment of the application, the wireless communication module can send a networking request to the cloud platform after being electrified, and correspondingly, the cloud platform can receive the networking request sent by the wireless communication module.
Step 402, in response to the networking request, a token for communication is sent to the wireless communication module.
The networking request may carry an identification of the intelligent door lock. After receiving the networking request, the cloud platform can verify the identification of the intelligent door lock. If the identification verification of the intelligent door lock is successful, the cloud platform can determine that the intelligent door lock is a device capable of communicating, so that a token for communication can be sent to a wireless communication module of the intelligent door lock. The token can identify the wireless communication module as a safe device, namely, the data sent by the wireless communication module has validity.
Step 403, receiving the token and the state of the intelligent door lock sent by the wireless communication module.
After receiving the token sent by the cloud platform, the wireless communication module can send the token and the state of the intelligent door lock to the cloud platform, and correspondingly, the cloud platform can receive the token and the state of the intelligent door lock sent by the wireless communication module.
Step 404, starting household equipment linked with the intelligent door lock based on the state of the intelligent door lock.
After receiving the state of the intelligent door lock, the cloud platform can start the household equipment linked with the intelligent door lock based on the state of the intelligent door lock.
Step 405, sending communication parameters to the wireless communication module.
After the cloud platform starts the home equipment linked with the intelligent door lock based on the state of the intelligent door lock, the cloud platform can send communication parameters to the wireless communication module, so that the wireless communication module can send the current unlocking record of the intelligent door lock based on the communication parameters.
Step 406, receiving a current unlocking record of the intelligent door lock sent by the wireless communication module.
After the wireless communication module sends the current unlocking record of the intelligent door lock to the cloud platform, the corresponding cloud platform can receive the current unlocking record of the intelligent door lock sent by the wireless communication module and can store the current unlocking record.
Wherein the current unlocking record is obtained after the processor of the intelligent door lock executes unlocking operation based on the received unlocking instruction in the process that the wireless communication module is in the power-off state
In summary, the embodiment of the application provides a method for reporting the state of an intelligent door lock, wherein a cloud platform receives the state of the intelligent door lock sent by a wireless communication module when sending a token to the wireless communication module, and further the cloud platform can start a home device linked with the intelligent door lock based on the state of the intelligent door lock and receive a current unlocking record sent by the wireless communication module after sending communication parameters to the wireless communication module. Therefore, the cloud platform can timely start other household devices, and the instantaneity of linkage of the intelligent door lock and the other household devices is ensured, so that the linkage effect between the intelligent household devices is ensured.
Fig. 5 is a flowchart of a status reporting method of another intelligent door lock according to an embodiment of the present application, and the method may be applied to the intelligent door lock 10 shown in fig. 1 or fig. 2. As shown in fig. 5, the method may include:
step 501, in the process that the wireless communication module is in the power-off state, if the processor executes the unlocking operation based on the received unlocking instruction, the processor obtains the current unlocking record of the intelligent door lock, and controls the wireless communication module to be in the power-on state.
In the process that the wireless communication module is in the power-off state, if the processor receives an unlocking instruction to execute unlocking operation, the processor can acquire the current unlocking record of the intelligent door lock. The current unlocking record may include a state of the intelligent door lock, an electric quantity of the intelligent door lock, received unlocking information, a receiving time of the unlocking information, and the like. The unlocking information may be fingerprint information or password information.
In the process that the wireless communication module is in the power-off state, if the processor receives unlocking information of a user, an unlocking instruction can be generated. And the processor can respond to the unlocking instruction to detect whether the received unlocking information is matched with the stored unlocking information. If the received unlocking information is detected to be matched with the stored unlocking information, the processor can execute unlocking operation of unlocking the intelligent door lock, determine that the state of the intelligent door lock is an unlocking state, record the received unlocking information and the receiving time of the unlocking information, and obtain the current unlocking record of the intelligent door lock.
If the processor detects that the received unlocking information is not matched with the stored unlocking information, the processor can determine that the state of the intelligent door lock is a closed state without executing unlocking operation of the intelligent door lock, and records the unlocking information received for the first time and the receiving time of the unlocking information, thereby obtaining the current unlocking record of the intelligent door lock.
In the embodiment of the application, if the processor executes the unlocking operation based on the received unlocking instruction, the battery can be controlled by the switch circuit to supply power to the wireless communication module, so that the wireless communication module is in a power-on state to wake up the wireless communication module.
Step 502, the wireless communication module establishes a network connection with the router after power-on.
In the embodiment of the application, the home equipment linkage system can also comprise a router. The wireless communication module can be initialized after being electrified, and network connection is established with the router after the initialization is completed, so that the wireless communication module is networked, and the wireless communication module can interact with the cloud platform. Optionally, the wireless communication module is initialized for about 0.28 seconds. The wireless communication module takes about 1.47 seconds to establish a network connection with the router.
The wireless communication module can send the pre-stored distribution network information to the router, and the router can establish network connection with the wireless communication module if the verification of the distribution network information is successful after receiving the distribution network information. If the configuration information verification fails, an information verification failure instruction can be sent to the wireless communication module, so that the wireless communication module resends the distribution network information. The network allocation information may include an address of the wireless communication module and a password for performing authentication.
Step 503, if the wireless communication module detects that the number of the first historical unlocking records of the intelligent door lock stored in the first memory does not exceed the number threshold, the current unlocking record of the intelligent door lock is obtained from the processor, and the current unlocking record is stored in the first memory.
The wireless communication module may include a first memory having a first historical unlocking record of the intelligent door lock stored therein. The first historical unlocking record is obtained from the processor and is not sent to the cloud platform before the unlocking instruction is received.
After the wireless communication module establishes network connection with the router, whether the number of the first historical unlocking records of the intelligent door lock stored in the first memory exceeds a number threshold value can be detected. If the number of the first historical unlocking records of the intelligent door lock stored in the first memory is detected not to exceed the number threshold, the wireless communication module can determine that the first memory can also store data, so that the current unlocking record of the intelligent door lock can be obtained from the processor and stored into the first memory. The number threshold may be a value stored in advance by the processor. By way of example, the number threshold may be 10. Optionally, the wireless communication module and the processor may communicate by using a serial port.
Step 504, the wireless communication module sends a networking request to the cloud platform.
After storing the current unlocking record obtained from the processor to the first memory, the wireless communication module may send a networking request to the cloud platform, where the networking request is used to instruct the cloud platform to send a token (token) for communication to the wireless communication module.
In the embodiment of the application, after the current unlocking record is stored in the first memory, the wireless communication module can also establish communication connection with the cloud platform, and the communication connection can be a transmission control protocol (transmission control protocol, TCP) connection. After the communication connection is successfully established with the cloud platform, the wireless communication module can send a networking request to the cloud platform through the communication connection. Optionally, the wireless communication module may send a networking request to the cloud platform according to a private protocol 101 in the TCP, where the private protocol 101 is used to instruct the wireless communication module to send the networking request to the cloud platform, so as to obtain the token from the cloud platform.
Step 505, the cloud platform sends a token to the wireless communication module in response to the networking request.
In the embodiment of the application, the networking request can carry the identification of the intelligent door lock. After receiving the networking request, the cloud platform can verify the identification of the intelligent door lock. If the identification verification of the intelligent door lock is successful, the cloud platform can determine that the intelligent door lock is a device capable of communicating, so that a token for communication can be sent to a wireless communication module of the intelligent door lock. The token can identify the wireless communication module as a safe device, namely, the data sent by the wireless communication module has validity. Optionally, the cloud platform may send the token to the wireless communication module according to a private protocol 101 in TCP, where the private protocol 101 is further configured to instruct the cloud platform to send the token to the wireless communication module. If the identification verification of the intelligent door lock fails, the cloud platform can determine that the intelligent door lock is not a device capable of communicating, so that a failure instruction can be verified to the wireless communication module.
Optionally, the cloud platform stores the identifiers of the plurality of intelligent door locks in advance. If the cloud platform determines that the identification of the intelligent door lock carried in the networking request is the same as any one of the identifications of the intelligent door locks, the cloud platform can determine that the identification verification of the intelligent door lock is successful. If the cloud platform determines that the identification of the intelligent door lock is different from the identification of the plurality of intelligent door locks, the identification verification of the intelligent door lock can be determined to fail.
Step 506, the wireless communication module sends the token and the state of the intelligent door lock to the cloud platform.
After the wireless communication module sends a networking request to the cloud platform, if a token sent by the cloud platform is received, the state of the intelligent door lock can be obtained from the first memory, and the token and the state of the intelligent door lock are sent to the cloud platform. The state of the intelligent door lock is used for enabling the cloud platform to start household equipment linked with the intelligent door lock. Optionally, the duration taken by the wireless communication module to send the token and the state of the intelligent door lock to the cloud platform is about 0.1 seconds.
After the wireless communication module sends the networking request to the cloud platform, if the token is not received, the wireless communication module can determine that communication with the cloud platform cannot be performed, so that the current unlocking record can be stored in the first memory. In the next unlocking process, if the token sent by the cloud platform is received, all the first historical unlocking records stored in the first memory (the all the first historical unlocking records comprise the current unlocking record stored in the first memory this time) can be sent to the cloud platform. Therefore, the situation that the current unlocking record of the intelligent door lock is discarded because the wireless communication module cannot communicate with the cloud platform can be avoided, and the integrity of information of the intelligent door lock stored in the cloud platform is ensured.
Step 507, the cloud platform starts the home equipment linked with the intelligent door lock based on the state of the intelligent door lock.
After receiving the token sent by the wireless communication module and the state of the intelligent door lock, the cloud platform can start the household equipment linked with the intelligent door lock based on the state of the intelligent door lock. If the state of the intelligent door lock is an open state, the cloud platform can start household equipment linked with the intelligent door lock. If the state of the intelligent door lock is a closed state, the cloud platform can not start the household equipment linked with the intelligent door lock. If the state of the intelligent door lock is an alarm state, the cloud platform can start the home equipment linked with the intelligent door lock, for example, the cloud platform can start an alarm linked with the intelligent door lock.
In the embodiment of the application, the current unlocking record of the intelligent door lock can also comprise unlocking times in a specified duration. The specified duration may be a fixed duration stored in the processor in advance, for example, the specified duration may be 1 minute.
In the process that the wireless communication module is in the power-off state, if the processor receives unlocking information of a user for the first time, an unlocking instruction can be generated, and the unlocking frequency can be recorded to be 1. If the processor responds to the unlocking instruction to detect that the unlocking information received for the first time is matched with the stored unlocking information, unlocking operation of unlocking the intelligent door lock can be executed, the state of the intelligent door lock is determined to be an unlocking state, the received unlocking information and the receiving time of the unlocking information are recorded, and therefore the current unlocking record of unlocking the intelligent door lock for the first time is obtained. The processor and the wireless communication module can execute the state reporting method of the intelligent door lock, and when executing step 507, the cloud platform can start the household equipment linked with the intelligent door lock if the state of the intelligent door lock is determined to be an open state.
If the processor responds to the unlocking instruction to detect that the unlocking information received for the first time is not matched with the stored unlocking information, the unlocking operation of unlocking the intelligent door lock is not executed, the state of the intelligent door lock is determined to be a closed state, the unlocking information received for the first time and the receiving time of the unlocking information are recorded, and therefore the current unlocking record of unlocking the intelligent door lock for the first time is obtained. The processor and the wireless communication module can execute the state reporting method of the intelligent door lock according to the embodiment of the application, and when executing step 507, if the cloud platform determines that the state of the intelligent door lock is a closed state, the home equipment linked with the intelligent door lock can not be started.
And if the processor receives the unlocking information for the second time within the appointed time period from the first time of receiving the unlocking instruction, the processor can generate the unlocking instruction again and record the unlocking times as 2. If the processor responds to the unlocking instruction to detect that the unlocking information received for the second time is not matched with the stored unlocking information, the unlocking operation of unlocking the intelligent door lock is not executed, the state of the intelligent door lock is determined to be a closed state, the unlocking information received for the second time and the receiving time of the unlocking information are recorded, and therefore the current unlocking record of unlocking the intelligent door lock for the second time is obtained. The processor and the wireless communication module can execute the state reporting method of the intelligent door lock according to the embodiment of the application, and when executing step 507, if the cloud platform determines that the state of the intelligent door lock is a closed state, the home equipment linked with the intelligent door lock can not be started.
And so on, if the processor receives the unlocking information for the fifth time within the appointed duration from the first time of receiving the unlocking instruction, the processor can generate the unlocking instruction again and record that the unlocking frequency is 5. If the processor detects that the unlocking information received for the fifth time is not matched with the stored unlocking information in response to the unlocking instruction, the unlocking operation for unlocking the intelligent door lock can not be executed. Because the unlocking information received for 5 times within the appointed duration is not successfully matched with the stored unlocking information, the processor can determine that the user who unlocks the intelligent door lock at present is likely to be a stranger, and then the processor can determine the state of the intelligent door lock as an alarm state and record the unlocking information received for the fifth time and the receiving time of the unlocking information, so that the current unlocking record of unlocking the intelligent door lock for the fifth time is obtained. The processor and the wireless communication module can execute the state reporting method of the intelligent door lock, and when executing step 507, the cloud platform can start the household equipment linked with the intelligent door lock if the state of the intelligent door lock is determined to be an alarm state.
After receiving the states of the token and the intelligent door lock sent by the wireless communication module, the cloud platform can also send a confirmation message to the wireless communication module, wherein the confirmation message is used for indicating the cloud platform to successfully receive the states of the token and the intelligent door lock.
Step 508, the wireless communication module sends an encryption parameter acquisition request to the cloud platform.
After sending the token and the state of the intelligent door lock to the cloud platform, the wireless communication module can also send an encryption parameter acquisition request to the cloud platform, wherein the encryption parameter acquisition request is used for indicating the cloud platform to send communication parameters, and the communication parameters can comprise encryption parameters. Optionally, the wireless communication module may send an encryption parameter obtaining request to the cloud platform according to a private protocol 102 in TCP, where the private protocol 102 is used to instruct the wireless communication module to send the encryption parameter obtaining request to the cloud platform, so as to obtain the encryption parameter from the cloud platform.
In the embodiment of the application, the encryption parameter acquisition request can carry a token, so that the cloud platform can determine that the wireless communication module is a device capable of communication based on the token.
Step 509, the cloud platform sends the encryption parameters to the wireless communication module in response to the encryption parameter obtaining request.
After receiving the encryption parameter acquisition request, the cloud platform can respond to the encryption parameter acquisition request to generate an encryption parameter and send the encryption parameter to the wireless communication module. Optionally, the encryption parameter may be a string randomly generated by the cloud platform. The cloud platform may send the encryption parameters to the wireless communication module according to a private protocol 102 in the TCP, where the private protocol 102 is further configured to instruct the cloud platform to send the encryption parameters to the wireless communication module.
Step 510, the wireless communication module sends a configuration parameter acquisition request to the cloud platform.
After receiving the encryption parameters sent by the cloud platform, the wireless communication module can also send a configuration parameter acquisition request to the cloud platform, wherein the configuration parameter acquisition request is used for indicating the cloud platform to send communication parameters. The communication parameters may include configuration parameters indicating a format of an unlock record package for the smart door lock, which may be JSON (javascript object notation) format, which is a lightweight data exchange format. Optionally, the wireless communication module may send a configuration parameter obtaining request to the cloud platform according to a private protocol 103 in the TCP, where the private protocol 103 is used to instruct the wireless communication module to send the configuration parameter obtaining request to the cloud platform, so as to obtain the configuration parameter from the cloud platform.
In the embodiment of the application, the configuration parameter acquisition request can carry a token, so that the cloud platform can determine that the wireless communication module is a device capable of communication based on the token.
In step 511, the cloud platform sends the configuration parameters to the wireless communication module in response to the configuration parameter obtaining request.
After receiving the configuration parameter acquisition request, the cloud platform can respond to the configuration parameter acquisition request and send the pre-stored configuration parameters to the wireless communication module. Optionally, the cloud platform may send the configuration parameters to the wireless communication module according to a private protocol 103 in TCP, where the private protocol 103 is further configured to instruct the cloud platform to send the configuration parameters to the wireless communication module.
Step 512, the wireless communication module sends the current unlocking record of the intelligent door lock to the cloud platform based on the communication parameters.
After receiving the communication parameters (i.e., the encryption parameters and the configuration parameters) sent by the cloud platform, the wireless communication module can send the current unlocking record of the intelligent door lock to the cloud platform based on the communication parameters, so that the cloud platform stores the current unlocking record of the intelligent door lock. After receiving the current unlocking record of the intelligent door lock, the cloud platform can send a confirmation message to the wireless communication module, wherein the confirmation message is used for indicating that the cloud platform has received the current unlocking record of the intelligent door lock.
Optionally, after receiving the encryption parameter and the configuration parameter sent by the cloud platform, the wireless communication module may encrypt the current unlocking record with the encryption parameter, package the encrypted current unlocking record with the configuration parameter, and send the packaged current unlocking record to the cloud platform.
In the embodiment of the application, the wireless communication module can send the token while sending the current unlocking record to the cloud platform, so that the cloud platform can determine that the wireless communication module is a device capable of communicating based on the token.
In the embodiment of the application, after receiving the encryption parameter and the configuration parameter sent by the cloud platform, if the wireless communication module detects that the first historical unlocking record of the intelligent door lock in the first memory is 0, the wireless communication module can only send the current unlocking record of the intelligent door lock to the cloud platform. If the first historical unlocking record of the intelligent door lock in the first memory is detected to be not 0, the wireless communication module can send the current unlocking record of the intelligent door lock and a plurality of first historical unlocking records in the first memory to the cloud platform, so that the integrity of the unlocking record of the intelligent door lock stored by the cloud platform is ensured. Optionally, the confirmation message is further used to indicate that the cloud platform has received the first historical unlocking record. The duration of the current unlocking record and the first history record sent to the cloud platform by the wireless communication module is about 0.2 seconds, and the duration of the confirmation message sent to the wireless communication module by the cloud platform is about 0.1 seconds.
For each first historical unlocking record, the wireless communication module can encrypt the first historical unlocking record by adopting encryption parameters, can package the encrypted first historical unlocking record by adopting configuration parameters, and sends the packaged first historical unlocking record to the cloud platform.
The following describes a process of the state of the intelligent door lock interacted by the wireless communication module and the cloud platform under the condition that the number of the first historical unlocking records of the intelligent door lock in the first memory does not exceed the number threshold, and referring to fig. 6, the process may include:
in step 601, the processor controls the wireless communication module to be in a power-on state.
Step 602, if the wireless communication module detects that the number of the first historical unlocking records of the intelligent door lock stored in the first memory does not exceed the number threshold, the current unlocking record of the intelligent door lock is obtained from the processor.
Step 603, the wireless communication module sends a networking request to the cloud platform.
Step 604, if the wireless communication module receives the token sent by the cloud, the state of the intelligent door lock is obtained from the first memory and sent to the cloud platform.
Step 605, if the wireless communication module does not receive the token, the state of the current unlocking record in the first memory is kept unchanged.
In summary, the embodiment of the application provides a status reporting method for an intelligent door lock, where after receiving a token sent by a cloud platform, a wireless communication module may first send the status of the intelligent door lock to the cloud platform, so that the cloud platform may first start a home device linked with the intelligent door lock based on the status of the intelligent door lock, and after receiving a communication parameter, the wireless communication module sends a current unlocking record of the intelligent door lock to the cloud platform. Therefore, the cloud platform can timely start other household devices, and the instantaneity of linkage of the intelligent door lock and the other household devices is ensured, so that the linkage effect between the intelligent household devices is ensured.
Fig. 7 is a flowchart of a status reporting method of another intelligent door lock according to an embodiment of the present application, and the method may be applied to the intelligent door lock 10 shown in fig. 1 or fig. 2. As shown in fig. 7, the method may include:
in step 701, in the process that the wireless communication module is in the power-off state, if the processor executes the unlocking operation based on the received unlocking instruction, the processor obtains the current unlocking record of the intelligent door lock, and controls the wireless communication module to be in the power-on state.
Step 702, the wireless communication module establishes a network connection with the router after power-on.
For specific implementation procedures of the steps 701 and 702, reference may be made to the steps 501 and 502, and detailed descriptions of the embodiments of the present application are omitted here.
Step 703, if the wireless communication module detects that the number of the first historical unlocking records of the intelligent door lock stored in the first memory exceeds the number threshold, sending a networking request to the cloud platform.
After the wireless communication module establishes network connection with the router, whether the number of the first historical unlocking records of the intelligent door lock stored in the first memory exceeds a number threshold value can be detected. If the number of the first historical unlocking records of the intelligent door lock stored in the first memory is detected to exceed the number threshold, the wireless communication module can determine that the data cannot be stored in the first memory any more, and therefore a networking request can be sent to the cloud platform. The networking request is used for indicating the cloud platform to send a token for communication to the wireless communication module.
Step 704, the cloud platform responds to the networking request and sends a token to the wireless communication module.
For a specific implementation process of step 704, reference may be made to step 505, and the embodiments of the present application are not described herein.
Step 705, the wireless communication module obtains the state of the intelligent door lock from the processor.
After receiving the token sent by the cloud platform, the wireless communication module can acquire the state of the intelligent door lock in the current unlocking record from the processor. Because the number of the first historical unlocking records stored in the first memory exceeds the number threshold, the wireless communication module acquires the state of the intelligent door lock after receiving the token, and the situation that the wireless communication module needs to discard the acquired state of the intelligent door lock under the condition that the state of the intelligent door lock is acquired before sending the networking request but the token is not received can be avoided, so that the workload of the wireless communication module is effectively reduced.
Referring to fig. 2, the intelligent door lock may further include a second memory 105, and a second history of unlocking records of the intelligent door lock is stored in the second memory 105, and a recording time of the second history is later than a recording time of the first history of unlocking records. The second historical unlocking record is the current unlocking record stored in the second memory under the conditions that the first memory cannot store data and the wireless communication module does not receive the token before the current unlocking instruction is received.
If the wireless communication module does not receive the token, it may determine that communication with the cloud platform is impossible, and because the first memory is unable to store data, the wireless communication module may send a storage instruction to the processor, and after receiving the storage instruction, the processor may store the current unlocking record in the second memory 105 in response to the storage instruction. Therefore, the situation that the wireless communication module does not receive the token and the processor discards the current unlocking record can be avoided, and the integrity of the unlocking record of the intelligent door lock is ensured by storing the current unlocking record into the second memory.
Step 706, the wireless communication module sends the token and the state of the intelligent door lock to the cloud platform.
After the wireless communication module obtains the state of the intelligent door lock, the state of the intelligent door lock of the token can be sent to the cloud platform.
Step 707, the cloud platform starts the home equipment linked with the intelligent door lock based on the state of the intelligent door lock.
After the cloud platform receives the states of the token and the intelligent door lock, the home equipment linked with the intelligent door lock can be started based on the state of the intelligent door lock.
Step 708, the wireless communication module sends an encryption parameter acquisition request to the cloud platform.
Step 709, the cloud platform sends the encryption parameters to the wireless communication module in response to the encryption parameter obtaining request.
Step 710, the wireless communication module sends a configuration parameter acquisition request to the cloud platform.
In step 711, the cloud platform sends the configuration parameters to the wireless communication module in response to the configuration parameter obtaining request.
For the specific implementation of steps 706 to 711, reference may be made to steps 506 to 511, and the embodiments of the present application are not described herein.
Step 712, the wireless communication module sends a record acquisition instruction to the processor.
After receiving the encryption parameters and the configuration parameters sent by the cloud, the wireless communication module can send a record acquisition instruction to the processor.
Step 713, the processor sends a current unlocking record of the intelligent door lock to the wireless communication module in response to the record acquisition instruction.
After receiving the record acquisition instruction sent by the wireless communication module, the processor can send the current unlocking record to the wireless communication module.
Step 714, the wireless communication module sends the current unlocking record of the intelligent door lock to the cloud platform based on the communication parameters.
After receiving the current unlocking record sent by the processor, the wireless communication module can send the current unlocking record to the cloud platform based on communication parameters.
Optionally, the wireless communication module may encrypt the current unlocking record by using an encryption parameter, and encapsulate the encrypted current unlocking record by using a configuration parameter, and then send the encapsulated current unlocking record to the cloud platform.
Because the number of the first historical unlocking records of the intelligent door lock in the first memory exceeds the number threshold, namely, the first historical unlocking records of the intelligent door lock are not 0, the wireless communication module can send the first historical unlocking records of the intelligent door lock to the cloud platform based on the communication parameters while sending the current unlocking records to the cloud platform based on the communication parameters.
For each first historical unlocking record, the wireless communication module can encrypt the first historical unlocking record by adopting encryption parameters, package the encrypted first historical unlocking record by adopting configuration parameters, and send the packaged first historical unlocking record to the cloud platform.
In the embodiment of the application, if the processor determines that the number of the second historical unlocking records of the intelligent door lock is not 0, the processor can respond to the record acquisition instruction and send the current unlocking record and the second historical unlocking record of the intelligent door lock to the wireless communication module. And then after receiving the current unlocking record and the second historical unlocking record of the intelligent door lock sent by the processor, the wireless communication module can send the current unlocking record, the first historical unlocking record and the second historical unlocking record to the cloud platform based on communication parameters. Through sending first history record and second history record of unblanking to the high in the clouds platform, ensured the integrality of the record of unblanking of intelligent lock that high in the clouds platform stored.
For each second historical unlocking record, the wireless communication module can encrypt the second historical unlocking record by adopting encryption parameters, package the encrypted second historical unlocking record by adopting configuration parameters, and send the packaged second historical unlocking record to the cloud platform.
In the embodiment of the application, if the wireless communication module detects that the number in the first historical unlocking record of the intelligent door lock in the first memory does not exceed the number threshold, the state of the current unlocking record stored in the first memory can be kept unchanged after the token is not received. If the wireless communication module detects that the number in the first historical unlocking record of the intelligent door lock in the first memory exceeds the number threshold, the current unlocking record can be stored in the second memory through the processor after the token is not received. After the unlocking instruction is received next time, if the wireless communication module receives the token of the cloud platform, the first historical unlocking record of the intelligent door lock in the first memory and the second historical unlocking record of the intelligent door lock in the second memory can be both sent to the cloud platform, so that the integrity of the unlocking record of the intelligent door lock stored by the cloud platform is ensured.
The following describes a process in which the wireless communication module interacts with the cloud platform to form a state of the intelligent door lock when the number of first historical unlocking records of the intelligent door lock in the first memory exceeds a number threshold, and referring to fig. 8, the process may include:
Step 801, the processor controls the wireless communication module to be in a power-on state.
Step 802, if the wireless communication module detects that the number of the first historical unlocking records of the intelligent door lock stored in the first memory exceeds a number threshold, a networking request is sent to the cloud platform.
Step 803, if the wireless communication module receives the token sent by the cloud platform, the state of the intelligent door lock is obtained from the processor.
Step 804, the wireless communication module sends the token and the state of the intelligent door lock to the cloud platform.
Step 805, if the wireless communication module does not receive the token sent by the cloud platform, the current unlocking record of the intelligent door lock is stored in the second memory.
In summary, the embodiment of the application provides a status reporting method for an intelligent door lock, where after receiving a token sent by a cloud platform, a wireless communication module may first send the status of the intelligent door lock to the cloud platform, so that the cloud platform may first start a home device linked with the intelligent door lock based on the status of the intelligent door lock, and after receiving a communication parameter, the wireless communication module sends a current unlocking record of the intelligent door lock to the cloud platform. Therefore, the cloud platform can timely start other household devices, and the instantaneity of linkage of the intelligent door lock and the other household devices is ensured, so that the linkage effect between the intelligent household devices is ensured.
It should be noted that, the sequence of the steps of the status report method for an intelligent door lock provided in the embodiment of the present application may be appropriately adjusted, and the steps may be deleted according to the situation, for example, the step 605 may be deleted according to the situation. Or steps 712 and 713 described above may be deleted as appropriate. Or step 805 described above may be deleted as appropriate. Any method that can be easily conceived by those skilled in the art within the technical scope of the present disclosure should be covered in the protection scope of the present application, and thus will not be repeated.
An embodiment of the present application provides an intelligent door lock, as shown in fig. 2, the intelligent door lock 10 may include: a processor 101 and a wireless communication module 102.
The processor 101 is configured to, in a process that the wireless communication module 102 is in a power-off state, obtain a current unlocking record of the intelligent door lock if an unlocking operation is performed based on the received unlocking instruction, and control the wireless communication module 102 to be in a power-on state, where the current unlocking record includes a state of the intelligent door lock.
A wireless communication module 102 for:
after power-up, a networking request is sent to the cloud platform 20, and the networking request is used for indicating the cloud platform 20 to send a token for communication to the wireless communication module 102.
If the token sent by the cloud platform 20 is received, the token and the state of the intelligent door lock are sent to the cloud platform 20, and the state of the intelligent door lock is used for enabling the cloud platform 20 to start the home equipment 30 linked with the intelligent door lock.
And after receiving the communication parameters sent by the cloud platform 20, sending a current unlocking record to the cloud platform 20 based on the communication parameters.
In summary, the embodiment of the application provides an intelligent door lock, wherein a wireless communication module in the intelligent door lock can firstly send the state of the intelligent door lock to a cloud platform after receiving a token sent by the cloud platform, so that the cloud platform can firstly start a home device linked with the intelligent door lock based on the state of the intelligent door lock, and after receiving communication parameters, the wireless communication module can send a current unlocking record of the intelligent door lock to the cloud platform. Therefore, the cloud platform can timely start other household devices, and the instantaneity of linkage of the intelligent door lock and the other household devices is ensured, so that the linkage effect between the intelligent household devices is ensured.
Optionally, the wireless communication module 102 includes a first memory 1021; the wireless communication module 102 is further configured to:
before sending the networking request to the cloud platform 20, if the number of the first historical unlocking records of the intelligent door lock stored in the first memory 1021 does not exceed the number threshold, acquiring the current unlocking record of the intelligent door lock from the processor 101, and storing the current unlocking record to the first memory 1021.
Optionally, the wireless communication module 102 is further configured to:
if it is detected after power-up that the number of first historical unlocking records of the intelligent door lock stored in the first memory 1021 exceeds a number threshold, after receiving the token sent by the cloud platform 20, the state of the intelligent door lock is obtained from the processor 101.
Optionally, the wireless communication module 102 is further configured to:
after receiving the communication parameters sent by the cloud platform 20, sending a record acquisition instruction to the processor 101, where the record acquisition instruction is used to instruct the processor 101 to send a current unlocking record of the intelligent door lock.
And after receiving the current unlocking record sent by the processor 101, sending the current unlocking record and the first historical unlocking record to the cloud platform 20 based on the communication parameters.
Optionally, the intelligent door lock further includes: and the second memory 105 is used for storing a second historical unlocking record of the intelligent door lock, and the recording time of the second historical unlocking record is later than that of the first historical unlocking record.
The processor 101 is configured to send, in response to the record acquisition instruction, a current unlocking record and a second historical unlocking record of the intelligent door lock to the wireless communication module 102.
The wireless communication module 102 is configured to, after receiving the current unlocking record and the second historical unlocking record of the intelligent door lock sent by the processor 101, send the current unlocking record, the first historical unlocking record and the second historical unlocking record to the cloud platform 20 based on the communication parameters.
Optionally, the intelligent door lock may further include: a second memory 105.
The wireless communication module 102 is further configured to send a storage instruction to the processor 101 if the token is not received, where the storage instruction is used to instruct the processor 101 to store the current unlocking record in the second memory 105.
Optionally, the communication parameters include encryption parameters and configuration parameters; a wireless communication module 102 for:
after receiving the encryption parameters and the configuration parameters sent by the cloud platform 20, encrypting the current unlocking record by adopting the encryption parameters, packaging the encrypted current unlocking record by adopting the configuration parameters, and sending the packaged current unlocking record to the cloud platform 20.
Optionally, the wireless communication module 102 is a WiFi communication module.
In summary, the embodiment of the application provides an intelligent door lock, wherein a wireless communication module in the intelligent door lock can firstly send the state of the intelligent door lock to a cloud platform after receiving a token sent by the cloud platform, so that the cloud platform can firstly start a home device linked with the intelligent door lock based on the state of the intelligent door lock, and after receiving communication parameters, the wireless communication module can send a current unlocking record of the intelligent door lock to the cloud platform. Therefore, the cloud platform can timely start other household devices, and the instantaneity of linkage of the intelligent door lock and the other household devices is ensured, so that the linkage effect between the intelligent household devices is ensured.
The embodiment of the application provides a home equipment linkage system, as shown in fig. 1, the system can comprise an intelligent door lock 10, a cloud platform 20 and home equipment 30 linked with the intelligent door lock 10.
The intelligent door lock 10 is configured to send a state of the intelligent door lock 10 to the cloud platform 20, and the cloud platform 20 is configured to activate the home device 30 that is linked with the intelligent door lock 10 based on the state of the intelligent door lock 10.
The wireless communication module 102 of the intelligent door lock 10 is configured to send a networking request to the cloud platform 20 after power-up.
The cloud platform 20 is configured to send a token for communication to the wireless communication module 102 of the intelligent door lock 10 in response to the networking request.
The wireless communication module 102 of the intelligent door lock 10 is further configured to send a token and a status of the intelligent door lock 10 to the cloud platform 20.
The cloud platform 20 is further configured to activate the home device 30 that is linked with the intelligent door lock 19 based on the state of the intelligent door lock 10.
Referring to fig. 2, the intelligent door lock 10 includes a first memory 1021, a wireless communication module 102, and a computer program stored in the first memory 1021 and executable on the wireless communication module 102. The wireless communication module 102 implements the steps executed by the wireless communication module 102 in the method for reporting the status of the intelligent door lock according to the above embodiment when executing the computer program, for example, the steps executed by the wireless communication module 102 in the method for reporting the status of the intelligent door lock shown in fig. 3 to 8.
Referring to fig. 2, the smart door lock may further include a second memory 105, a processor 101, and a computer program stored on the second memory 105 and executable on the processor 101. The processor 101 executes a computer program to implement steps executed by the processor 101 in the method for reporting the status of the intelligent door lock according to the above embodiment, for example, steps executed by the processor 101 in the method for reporting the status of the intelligent door lock shown in fig. 3 to 8.
An embodiment of the present application provides a computer readable storage medium, in which a computer program is stored, where the computer program is loaded by a wireless communication module and executes a step executed by the wireless communication module in the method for reporting a state of an intelligent door lock provided in the foregoing embodiment, for example, a step executed by the wireless communication module in the method for reporting a state of an intelligent door lock shown in fig. 3 to 8.
The embodiment of the present application further provides a computer readable storage medium, in which a computer program is stored, where the computer program is loaded by a processor and executes steps executed by the processor in the method for reporting the status of the intelligent door lock provided in the above embodiment, for example, steps executed by the processor in the method for reporting the status of the intelligent door lock shown in fig. 3 to 8.
The embodiment of the application provides a computer program product containing instructions, which when run on a computer, causes the computer to execute steps executed by a wireless communication module in a method for reporting the state of an intelligent door lock provided by the method, for example, the steps executed by the wireless communication module in the method for reporting the state of the intelligent door lock shown in fig. 3 to 8.
The embodiment of the application also provides a computer program product containing instructions, when the computer program product runs on a computer, the computer is caused to execute the steps executed by a processor in the method for reporting the state of the intelligent door lock provided by the method, for example, the steps executed by the processor in the method for reporting the state of the intelligent door lock shown in fig. 3 to 8.
It should be noted that, the information (including but not limited to fingerprint information, password information, etc.) and the data (including but not limited to data for encryption, stored data, encapsulated data, etc.) related to the present application are authorized by the user or are fully authorized by the parties, and the collection, use and processing of the related data need to comply with the relevant laws and regulations and standards of the relevant country and region. For example, the fingerprint information and the password information referred to in the present application are obtained under the condition of sufficient authorization.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The terms "first," "second," and the like in this disclosure are used for distinguishing between similar elements or items having substantially the same function and function, and it should be understood that there is no logical or chronological dependency between the terms "first," "second," and "n," and that there is no limitation on the amount and order of execution.
The foregoing description of the preferred embodiments of the present disclosure is provided for the purpose of illustration only, and is not intended to limit the disclosure to the particular embodiments disclosed, but on the contrary, the intention is to cover all modifications, equivalents, alternatives, and alternatives falling within the spirit and principles of the disclosure.

Claims (10)

1. An intelligent door lock, characterized in that the intelligent door lock comprises: a processor and a wireless communication module;
the processor is used for acquiring a current unlocking record of the intelligent door lock and controlling the wireless communication module to be in a power-on state if unlocking operation is executed based on a received unlocking instruction in the process that the wireless communication module is in a power-off state, wherein the current unlocking record comprises the state of the intelligent door lock;
The wireless communication module is used for:
after power-on, a networking request is sent to a cloud platform, wherein the networking request is used for indicating the cloud platform to send a token for communication to the wireless communication module;
if a token sent by the cloud platform is received, sending the token and the state of the intelligent door lock to the cloud platform, wherein the state of the intelligent door lock is used for enabling the cloud platform to start home equipment linked with the intelligent door lock;
sending an encryption parameter acquisition request to the cloud platform, wherein the encryption parameter acquisition request is used for indicating the cloud platform to send communication parameters, and the communication parameters comprise encryption parameters;
after the communication parameters sent by the cloud platform are received, the current unlocking record is sent to the cloud platform based on the communication parameters, and the data size of the state of the intelligent door lock is smaller than the data size of the current unlocking record.
2. The intelligent door lock according to claim 1, wherein the wireless communication module comprises a first memory; the wireless communication module is further used for:
before a networking request is sent to the cloud platform, if the number of first historical unlocking records of the intelligent door lock stored in the first memory does not exceed a number threshold, acquiring a current unlocking record of the intelligent door lock from the processor, and storing the current unlocking record into the first memory.
3. The intelligent door lock according to claim 2, wherein the wireless communication module is further configured to:
and after the token sent by the cloud platform is received, acquiring the state of the intelligent door lock from the processor if the number of the first historical unlocking records of the intelligent door lock stored in the first memory exceeds the number threshold after the first historical unlocking records are detected to be powered on.
4. The intelligent door lock according to claim 3, wherein the wireless communication module is further configured to:
after receiving the communication parameters sent by the cloud platform, sending a record acquisition instruction to the processor, wherein the record acquisition instruction is used for indicating the processor to send a current unlocking record of the intelligent door lock;
and after receiving the current unlocking record sent by the processor, sending the current unlocking record and the first historical unlocking record to the cloud platform based on the communication parameters.
5. The intelligent door lock according to claim 4, further comprising: the second memory is used for storing a second historical unlocking record of the intelligent door lock, and the recording time of the second historical unlocking record is later than that of the first historical unlocking record;
The processor is used for responding to the record acquisition instruction and sending the current unlocking record and the second historical unlocking record of the intelligent door lock to the wireless communication module;
and the wireless communication module is used for sending the current unlocking record, the first historical unlocking record and the second historical unlocking record to the cloud platform based on the communication parameters after receiving the current unlocking record and the second historical unlocking record of the intelligent door lock sent by the processor.
6. The intelligent door lock according to claim 3 or 4, further comprising: a second memory;
the wireless communication module is further configured to send a storage instruction to the processor if the token is not received, where the storage instruction is used to instruct the processor to store the current unlocking record into the second memory.
7. The intelligent door lock according to any one of claims 1 to 5, wherein the communication parameters include encryption parameters and configuration parameters; the wireless communication module is used for:
after the encryption parameters and the configuration parameters sent by the cloud platform are received, encrypting the current unlocking record by adopting the encryption parameters, packaging the encrypted current unlocking record by adopting the configuration parameters, and sending the packaged current unlocking record to the cloud platform.
8. The utility model provides a state reporting method of intelligent lock which characterized in that, intelligent lock includes: a processor and a wireless communication module; the method comprises the following steps:
in the process that the wireless communication module is in a power-off state, if the processor executes unlocking operation based on the received unlocking instruction, the processor acquires the current unlocking record of the intelligent door lock and controls the wireless communication module to be in a power-on state, wherein the current unlocking record comprises the state of the intelligent door lock;
the wireless communication module sends a networking request to a cloud platform after being electrified, wherein the networking request is used for indicating the cloud platform to send a token for communication to the wireless communication module;
if the wireless communication module receives the token sent by the cloud platform, the wireless communication module sends the token and the state of the intelligent door lock to the cloud platform, wherein the state of the intelligent door lock is used for enabling the cloud platform to start home equipment linked with the intelligent door lock;
the wireless communication module sends an encryption parameter acquisition request to the cloud platform, wherein the encryption parameter acquisition request is used for indicating the cloud platform to send communication parameters, and the communication parameters comprise encryption parameters;
After the wireless communication module receives the communication parameters sent by the cloud platform, the current unlocking record is sent to the cloud platform based on the communication parameters, and the data size of the state of the intelligent door lock is smaller than the data size of the current unlocking record.
9. The utility model provides a state reporting method of intelligent door lock, its characterized in that is applied to high in the clouds platform, and the method includes:
receiving a networking request sent by a wireless communication module of the intelligent door lock after power-on;
responsive to the networking request, sending a token for communication to the wireless communication module;
receiving the token and the state of the intelligent door lock, which are sent by the wireless communication module;
starting household equipment linked with the intelligent door lock based on the state of the intelligent door lock;
receiving an encryption parameter acquisition request sent by the wireless communication module, wherein the encryption parameter acquisition request is used for indicating the cloud platform to send communication parameters, and the communication parameters comprise encryption parameters;
transmitting the communication parameters to the wireless communication module;
receiving a current unlocking record of the intelligent door lock, which is sent by the wireless communication module, wherein the data volume of the state of the intelligent door lock is smaller than the data volume of the current unlocking record;
The current unlocking record is obtained after the processor of the intelligent door lock executes unlocking operation based on the received unlocking instruction in the process that the wireless communication module is in a power-off state.
10. A home appliance linkage system, the system comprising: the intelligent door lock comprises an intelligent door lock, a cloud platform and household equipment linked with the intelligent door lock;
the wireless communication module of the intelligent door lock is used for sending a networking request to the cloud platform after power-on;
the cloud platform is used for responding to the networking request and sending a token for communication to the wireless communication module of the intelligent door lock;
the wireless communication module of the intelligent door lock is further used for sending the token and the state of the intelligent door lock to the cloud platform;
the cloud platform is also used for starting household equipment linked with the intelligent door lock based on the state of the intelligent door lock;
the wireless communication module of the intelligent door lock is further used for sending an encryption parameter acquisition request to the cloud platform, wherein the encryption parameter acquisition request is used for indicating the cloud platform to send communication parameters, and the communication parameters comprise encryption parameters;
The cloud platform is further used for sending communication parameters to the wireless communication module and receiving the current unlocking record of the intelligent door lock sent by the wireless communication module, and the data size of the state of the intelligent door lock is smaller than the data size of the current unlocking record.
CN202210239356.5A 2022-03-11 2022-03-11 Intelligent door lock, state reporting method thereof and household equipment linkage system Active CN114627580B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210239356.5A CN114627580B (en) 2022-03-11 2022-03-11 Intelligent door lock, state reporting method thereof and household equipment linkage system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210239356.5A CN114627580B (en) 2022-03-11 2022-03-11 Intelligent door lock, state reporting method thereof and household equipment linkage system

Publications (2)

Publication Number Publication Date
CN114627580A CN114627580A (en) 2022-06-14
CN114627580B true CN114627580B (en) 2023-10-27

Family

ID=81901525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210239356.5A Active CN114627580B (en) 2022-03-11 2022-03-11 Intelligent door lock, state reporting method thereof and household equipment linkage system

Country Status (1)

Country Link
CN (1) CN114627580B (en)

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5909553A (en) * 1997-02-19 1999-06-01 International Business Machines Corporation Systems and methods for controlling the transmission of relatively large data objects in a communications system
CN102932365A (en) * 2012-11-13 2013-02-13 黄昱钊 Device control method and system based on mobile phone camera
CN103297225A (en) * 2013-05-14 2013-09-11 顾纯祥 Unicast secret communication method and multicast secret communication method based on identity
CN103345214A (en) * 2013-06-17 2013-10-09 四川长虹电器股份有限公司 Intelligent household electrical appliance linkage control method based on middleware
CN103929428A (en) * 2014-04-24 2014-07-16 吴刚 Method for achieving communication safety of vehicle-mounted electronic information system
CN104378271A (en) * 2014-12-12 2015-02-25 深圳市芯通信息科技有限公司 Access method for visible light communication network
CN105022275A (en) * 2015-05-29 2015-11-04 四川长虹电器股份有限公司 Intelligent household electrical appliance coordinated control system based on cloud platform
CN105376062A (en) * 2015-10-26 2016-03-02 努比亚技术有限公司 Communication safety interaction method, device and system
CN105657050A (en) * 2016-03-03 2016-06-08 深圳卡易科技股份有限公司 Low-flow POS machine communication system and communication method
CN107465720A (en) * 2017-06-23 2017-12-12 杭州云乐车辆技术有限公司 It is a kind of based on wireless automobile mounted NMS and its power-economizing method
CN107948030A (en) * 2017-12-21 2018-04-20 广东汇泰龙科技有限公司 A kind of household audio control method based on cloud lock, system
CN109509283A (en) * 2018-08-07 2019-03-22 胡渐佳 Intelligent door lock is wireless method for unlocking
CN109547357A (en) * 2018-12-03 2019-03-29 郑州云海信息技术有限公司 Transmission method, device, equipment and the medium of data information in a kind of storage system
CN109945295A (en) * 2019-03-13 2019-06-28 广东汇泰龙科技有限公司 A kind of control method of the ground heating system based on cloud lock
CN110333679A (en) * 2019-07-11 2019-10-15 青岛海尔空调器有限总公司 household appliance control method
CN110677899A (en) * 2019-08-19 2020-01-10 深圳绿米联创科技有限公司 Data transmission method and device, terminal equipment and storage medium
CN111183660A (en) * 2017-10-11 2020-05-19 金泰克斯公司 System and method for operating a transmitter
CN113284273A (en) * 2021-04-13 2021-08-20 嘉兴聚鑫隆科技有限公司 Intelligent door lock and unlocking method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102265560B (en) * 2008-12-25 2014-07-09 三菱电机株式会社 Communication management device, communication device, and communication method

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5909553A (en) * 1997-02-19 1999-06-01 International Business Machines Corporation Systems and methods for controlling the transmission of relatively large data objects in a communications system
CN102932365A (en) * 2012-11-13 2013-02-13 黄昱钊 Device control method and system based on mobile phone camera
CN103297225A (en) * 2013-05-14 2013-09-11 顾纯祥 Unicast secret communication method and multicast secret communication method based on identity
CN103345214A (en) * 2013-06-17 2013-10-09 四川长虹电器股份有限公司 Intelligent household electrical appliance linkage control method based on middleware
CN103929428A (en) * 2014-04-24 2014-07-16 吴刚 Method for achieving communication safety of vehicle-mounted electronic information system
CN104378271A (en) * 2014-12-12 2015-02-25 深圳市芯通信息科技有限公司 Access method for visible light communication network
CN105022275A (en) * 2015-05-29 2015-11-04 四川长虹电器股份有限公司 Intelligent household electrical appliance coordinated control system based on cloud platform
CN105376062A (en) * 2015-10-26 2016-03-02 努比亚技术有限公司 Communication safety interaction method, device and system
CN105657050A (en) * 2016-03-03 2016-06-08 深圳卡易科技股份有限公司 Low-flow POS machine communication system and communication method
CN107465720A (en) * 2017-06-23 2017-12-12 杭州云乐车辆技术有限公司 It is a kind of based on wireless automobile mounted NMS and its power-economizing method
CN111183660A (en) * 2017-10-11 2020-05-19 金泰克斯公司 System and method for operating a transmitter
CN107948030A (en) * 2017-12-21 2018-04-20 广东汇泰龙科技有限公司 A kind of household audio control method based on cloud lock, system
CN109509283A (en) * 2018-08-07 2019-03-22 胡渐佳 Intelligent door lock is wireless method for unlocking
CN109547357A (en) * 2018-12-03 2019-03-29 郑州云海信息技术有限公司 Transmission method, device, equipment and the medium of data information in a kind of storage system
CN109945295A (en) * 2019-03-13 2019-06-28 广东汇泰龙科技有限公司 A kind of control method of the ground heating system based on cloud lock
CN110333679A (en) * 2019-07-11 2019-10-15 青岛海尔空调器有限总公司 household appliance control method
CN110677899A (en) * 2019-08-19 2020-01-10 深圳绿米联创科技有限公司 Data transmission method and device, terminal equipment and storage medium
CN113284273A (en) * 2021-04-13 2021-08-20 嘉兴聚鑫隆科技有限公司 Intelligent door lock and unlocking method thereof

Also Published As

Publication number Publication date
CN114627580A (en) 2022-06-14

Similar Documents

Publication Publication Date Title
CN102496199B (en) Intelligent entrance guard control system with wireless ad hoc network function and control method thereof
CN106780901A (en) A kind of intelligent door lock system and its application based on mobile phone MAC Address
CN113014599B (en) Method, equipment and system for safely keeping alive
CN107770226B (en) Control method and device for smart home, home gateway and mobile terminal
US20240048949A1 (en) Remote control method and apparatus
CN105704157A (en) Remote control method and system, intelligent terminal and service terminal application to remote control method and system
CN109905869A (en) Data transmission method between a kind of charging equipment and smart machine
CN107795199A (en) The control method and control device of a kind of electronic lock
CN111585745A (en) Method for accessing intelligent household control panel to network and intelligent household system
CN108966218A (en) A kind of wireless network access method and system based on management terminal control
CN107770152B (en) Security method and device, electric appliance, server and storage medium
CN114627580B (en) Intelligent door lock, state reporting method thereof and household equipment linkage system
CN106066658B (en) Internet of things intelligent household temperature control system
CN110866999A (en) Control method and device for intelligent door lock and storage medium
CN113542242A (en) Device management method and device management apparatus
CN104054315A (en) Secure information access over network
CN113037720B (en) Vehicle network access method, device, readable storage medium and gateway
CN216391430U (en) Power distribution automation terminal access control system with quantum encryption function
CN109445296A (en) A kind of safety access device and method applied to smart home system
CN110300105B (en) Remote key management method of network cipher machine
CN106331142A (en) Cloud service based intelligent home control system
CN114339972B (en) IOT equipment remote wakeup method, terminal and IOT equipment
CN114331598A (en) Rental management terminal, rental equipment and machine locking control method thereof
CN114666196B (en) Distribution network method and device of low-power-consumption equipment, proxy equipment and storage medium
US20110030033A1 (en) Managing secure use of a terminal

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