Door lock communication control method and device, door lock and storage medium
By generating encrypted data and power carrier signals in the smart door lock system, and controlling the opening and closing of the lock body, the problem of low security in physical cracking of the existing smart door lock system is solved, achieving higher security and protection effects.
Patent Information
- Application Number
- CN202510450296.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-11
- Publication Date
- 2025-05-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing smart door lock system is relatively low in physical cracking and is easily turned on illegally.
By generating random numbers on the front panel of the door lock, and generating encrypted data according to the preset key and encryption algorithm, a power carrier signal is generated and sent to the lock body control board, controlling the opening and closing of the lock body.
Improve the safety of the door lock, prevent illegal opening, avoid the risk of signal line communication, and add protection of the door lock when physical cracking.
Smart Images

Figure CN119992696A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent door locks, and in particular to a door lock communication control method, device, door lock and storage medium. Background Art
[0002] With the popularity of smart door locks, door lock systems based on biometric recognition are gradually becoming popular. In this type of door lock system, the function of identifying the user to unlock the door is achieved by identifying whether the face or fingerprint of the unlocking person is a registered user. In the current unlocking solution, the front panel interacts with the lock body through two signal lines and controls the lock body. This technical solution is easily physically cracked, which leads to lower security of the door lock.
[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present invention is to provide a door lock communication control method, device, door lock and storage medium, aiming to improve the safety of the door lock. To achieve the above purpose, the present invention provides a door lock communication control method, the door lock communication control method comprising the following steps: When the person who opens the door lock is the target user, the front panel of the door lock is controlled to generate a first random number and generate first encrypted data corresponding to the first random number according to a preset key and a preset encryption algorithm; Generate a power carrier signal according to the first random number and the first encrypted data, and send the power carrier signal to a lock body control board; The lock body control board is controlled to generate second encrypted data according to the power carrier signal, and the lock body of the door lock is controlled according to the first encrypted data and the second encrypted data.
[0005] Optionally, the step of sending the power carrier signal to the lock body control board includes: coupling the power carrier signal to a power supply line of a lock body of the door lock; Before the step of controlling the lock body control board to generate second encrypted data according to the power carrier signal, the step further includes: The lock body control board is controlled to extract the high-frequency carrier signal on the power supply line, and the power carrier signal is determined according to the high-frequency carrier signal.
[0006] Optionally, before the step of generating first encrypted data corresponding to the first random number according to a preset key and a preset encryption algorithm, the method further includes: Acquiring power supply parameters of the power supply line; Determine a first key according to the first random number, the power supply parameter and a key mapping relationship, where the key mapping relationship is a correspondence between the first random number, the power supply parameter and the first key; The first key is used as the preset key.
[0007] Optionally, while controlling the lock body control board to extract the high-frequency carrier signal on the power supply line, the step further includes: Extracting power supply parameters on the power supply line; The step of controlling the lock body control board to generate second encrypted data according to the power carrier signal comprises: Determine the first random number according to the power carrier signal; Determine a second key according to the power supply parameter, the first random number and the key mapping relationship; The second encrypted data is generated according to a second key and a preset encryption algorithm.
[0008] Optionally, the step of generating a power carrier signal according to the first random number and the first encrypted data includes: Concatenate the first random number and the first encrypted data to obtain target transmission data; The power carrier signal is generated according to the target transmission data and modulation algorithm parameters.
[0009] Optionally, the step of controlling the lock body of the door lock according to the first encrypted data and the second encrypted data includes: When the first encrypted data and the second encrypted data are the same, controlling the lock body of the door lock to open; When the first encrypted data and the second encrypted data are different, the lock body of the door lock is controlled to remain closed.
[0010] Optionally, the preset encryption algorithm is a hash encryption algorithm.
[0011] In addition, to achieve the above object, the present invention further provides a door lock communication control device, the door lock communication control device comprising: The instruction module is used to control the front panel of the door lock to generate a first random number and generate first encrypted data corresponding to the first random number according to a preset key and a preset encryption algorithm when the person who opens the door lock is a target user; A transmission module, configured to generate a power carrier signal according to the first random number and the first encrypted data, and send the power carrier signal to a lock body control board; An execution module is used to control the lock body control board to generate second encrypted data according to the power carrier signal, and control the lock body of the door lock according to the first encrypted data and the second encrypted data.
[0012] In addition, to achieve the above-mentioned purpose, the present invention also provides a door lock, which includes: a memory, a processor, and a door lock communication control program stored in the memory and runnable on the processor, and the door lock communication control program is configured to implement the steps of the door lock communication control method described in any one of the above items.
[0013] In addition, to achieve the above-mentioned purpose, the present invention also provides a storage medium, on which a door lock communication control program is stored, and when the door lock communication control program is executed by a processor, the steps of the door lock communication control method described in any one of the above items are implemented.
[0014] The present invention proposes a door lock communication control method, which generates a first random number by controlling the front panel of the door lock and generates first encrypted data corresponding to the first random number according to a preset key and a preset encryption algorithm; compared with the current technical solution, even if the first random number can be obtained externally through encryption, it is impossible to generate valid first encrypted data, thereby improving the security of the door lock. In addition, a power carrier signal is generated according to the first random number and the first encrypted data, and the power carrier signal is sent to the lock body control board. Compared with the current technical solution, it can avoid using a signal line for communication. Illegal short-circuiting of the power line will also cause the lock body to be unable to open, thereby further improving the security of the door lock. The lock body control board is controlled to generate second encrypted data according to the power carrier signal, and the lock body of the door lock is controlled according to the first encrypted data and the second encrypted data, thereby improving the security of the door lock as a whole. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 It is a schematic diagram of the structure of a door lock in a hardware operating environment involved in an embodiment of the present invention; Figure 2 It is a flow chart of a first embodiment of a door lock communication control method of the present invention; Figure 3 It is a flow chart of a third embodiment of the door lock communication control method of the present invention; Figure 4 This is a working principle diagram of the exemplary chip XF2485 in the third embodiment of the door lock communication control method of the present invention; Figure 5 This is a rigid example diagram of the door lock of the present invention.
[0016] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0017] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0018] Reference Figure 1 , Figure 1 The present invention is a schematic diagram of the circuit structure of a door lock in the hardware operating environment involved in the embodiment of the present invention.
[0019] like Figure 1 As shown, the door lock may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, an interactive device 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The interactive device 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional interactive device 1003 may also be connected to the communication bus through a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0020] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the door lock, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0021] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module and a door lock communication control program.
[0022] exist Figure 1 In the door lock communication control device shown, the network interface 1004 is mainly used for data communication with other devices; the interactive device 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the door lock of the present invention can be set in the door lock, and the door lock calls the door lock communication control program stored in the memory 1005 through the processor 1001, and executes the door lock communication control method provided by the embodiment of the present invention.
[0023] The embodiment of the present invention provides a door lock communication control method, referring to Figure 2 , Figure 2The figure is a flow chart of a first embodiment of a door lock communication control method according to the present invention.
[0024] In this embodiment, the door lock communication control method includes: Step S1, when the person who opens the door lock is the target user, the front panel of the door lock is controlled to generate a first random number and generate first encrypted data corresponding to the first random number according to a preset key and a preset encryption algorithm; Smart door locks usually have fingerprint recognition, face recognition and other technologies, but in this embodiment, the specific location of this method of determining the user is not limited. For example, the identification of personnel information can be completed on the server or locally on the door lock. Common door lock front panels are generally equipped with network hardware, which can be connected to the server through the network. When the person who opens the door lock is determined to be the target user in the server, the information can be sent to the door lock front panel, and a first random number is generated. Specifically, the first random number is encrypted by a preset key and a preset encryption algorithm to obtain the first encrypted data corresponding to the first random number. Specifically, when the door lock determines that the user's face or fingerprint is recognized, it is determined that the lock needs to be unlocked.
[0025] In some embodiments, for a door lock including multiple control instructions, one control instruction may correspond to a random number within a certain range, and different control instructions may correspond to random numbers in different ranges.
[0026] Step S2, generating a power carrier signal according to the first random number and the first encrypted data, and sending the power carrier signal to the lock body control board; Power Line Communication (PLC) is a communication method that uses existing power lines for data transmission. Through modulation technology, analog or digital signals are loaded onto power lines for high-speed transmission. No additional signal lines are required, and data transmission can be achieved only through power lines. In the process of generating the power carrier signal, it is generally necessary to set the carrier frequency, modulation method, data rate, noise threshold, etc. The above contents can be pre-set before the door lock leaves the factory, so that the process of generating the power carrier signal can be more convenient and accurate. The circuit then sends the wave signal to the lock body control board.
[0027] Step S3, controlling the lock body control board to generate second encrypted data according to the power carrier signal, and controlling the lock body of the door lock according to the first encrypted data and the second encrypted data.
[0028] Specifically, the lock body control board intercepts high-frequency carrier information from the power line through a coupling device, and decouples to obtain the first random number and the first encrypted data. In the process of generating the second encrypted data, the preset encryption algorithm is executed on the first encrypted data according to the key stored in the lock body control board, so as to obtain the second encrypted data. The operation of the lock body of the door lock is controlled by comparing the first encrypted data with the second encrypted data.
[0029] In this embodiment, the first random number is generated by controlling the front panel of the door lock, and the first encrypted data corresponding to the first random number is generated according to a preset key and a preset encryption algorithm; compared with the current technical solution, even if the first random number can be obtained externally through encryption, it is impossible to generate valid first encrypted data, thereby improving the security of the door lock. In addition, a power carrier signal is generated according to the first random number and the first encrypted data, and the power carrier signal is sent to the lock body control board. Compared with the current technical solution, it can avoid using a signal line for communication. Illegal short-circuiting of the power line will also cause the lock body to be unable to open, thereby further improving the security of the door lock. The lock body control board is controlled to generate second encrypted data according to the power carrier signal, and the lock body of the door lock is controlled according to the first encrypted data and the second encrypted data, thereby improving the security of the door lock as a whole.
[0030] Further, based on the first embodiment, a second embodiment of the door lock communication control method of the present invention is proposed. In this embodiment, the step of sending the power carrier signal to the lock body control board includes: coupling the power carrier signal to a power supply line of a lock body of the door lock; Specifically, the components used in the coupling process generally include: coupling capacitors, which are used to isolate the power frequency current while allowing high-frequency signals to pass through, wave traps, which are used to prevent high-frequency signals from leaking to other parts of the circuit system, and combined filters, which are used to filter noise and ensure the purity of the signal.
[0031] Before the step of controlling the lock body control board to generate second encrypted data according to the power carrier signal, the step further includes: The lock body control board is controlled to extract the high-frequency carrier signal on the power supply line, and the power carrier signal is determined according to the high-frequency carrier signal.
[0032] Extracting the high-frequency carrier signal on the power supply line is specifically for signal modulation, which specifically includes: a modem, which is used to receive the high-frequency carrier signal and restore the high-frequency carrier signal to the original data signal; an amplifier, which is used to amplify the mediated signal to ensure that the signal strength is sufficient so that the demodulator can accurately extract information; a filter, which is used to remove high-frequency noise and interference to ensure the purity of the signal; and an ADC: which converts the demodulated analog signal into a digital signal for further processing.
[0033] In this embodiment, the above method can improve the accuracy of the lock body control board in extracting the high-frequency carrier signal on the power supply line.
[0034] Furthermore, before the step of generating the first encrypted data corresponding to the first random number according to the preset key and the preset encryption algorithm, the method further includes: Obtaining power supply parameters of the power supply line; Determine a first key according to the first random number, the power supply parameter and a key mapping relationship, where the key mapping relationship is a correspondence between the first random number, the power supply parameter and the first key; The first key is used as the preset key.
[0035] Different types of door locks require different power supply parameters. For example, for common magnetic locks and electric locks, the general voltage parameters are 24V or 48V DC. For high-power door locks used in some special scenarios, the voltage and current required can be larger, and they often use 110V or 220V AC power supply. Within a certain range, adjusting the power supply parameters does not affect the operation of the door lock. The power supply voltage here varies from 85% to 110% of the rated voltage. Specifically, based on the rated voltage, the voltage interval within 5% of each interval can correspond to the same key, and it should be noted that the time required for signal transmission is short. This voltage-based dynamic key management does not actually have a negative impact on the normal opening of the door lock. During the door lock test, for a general door lock, when the power supply to the door lock is switched, although the door lock can also operate normally, the actual voltage will not be completely consistent. In this application, since the transmission of information is based on the power supply line of the door lock, if it needs to be cracked, it will often affect the stability of the power supply. Even if an illegal person from outside can obtain the first key and the first encrypted data, the operation of the power supply will be affected in the process. Since the key is related to the power supply parameters, when the power supply parameters change, the first key and the first encrypted data obtained by the illegal person cannot crack the door lock. It should be noted that the key mapping relationship here is stored in the lock body control board and the door lock front panel.
[0036] Furthermore, while controlling the lock body control board to extract the high-frequency carrier signal on the power supply line, the step also includes: Extracting power supply parameters on the power supply line; The step of controlling the lock body control board to generate second encrypted data according to the power carrier signal comprises: Determine the first random number according to the power carrier signal; Determine a second key according to the power supply parameter, the first random number and the key mapping relationship; The second encrypted data is generated according to a second key and a preset encryption algorithm.
[0037] It should be noted that extracting the power supply parameters on the power supply line and determining the second key according to the power supply parameters and the first random number is actually an inseparable technical feature from determining the first key according to the first random number, the power supply parameters and the key mapping relationship. The key mapping relationship can be a key mapping table, and the second key is determined in the key mapping table according to the power supply parameters and the first random number. The first random number is encrypted according to the second key and a preset encryption algorithm to obtain the second encrypted data.
[0038] In this embodiment, the power supply parameters on the power supply line are extracted, and the second key is determined according to the power supply parameters and the first random number, thereby realizing a dynamic key. In addition, the security of signal transmission on the power supply line based on the power carrier signal in the scenario of cracking the door lock is correspondingly optimized, thereby improving the security of the door lock.
[0039] Further, based on the first embodiment or the second embodiment, a third embodiment of the door lock communication control method of the present invention is proposed. In this embodiment, referring to Figure 3 , the step of generating a power carrier signal according to the first random number and the first encrypted data comprises: Step S311, concatenating the first random number and the first encrypted data to obtain target transmission data; In this embodiment, the purpose of splicing the first random number and the first encrypted data to obtain the target transmission data is to enable the first random number and the first encrypted data to be transmitted simultaneously. Specifically, the first random number and the first encrypted data are converted to the same data format before splicing, for example: the decimal and binary data are converted to hexadecimal form, which can also be a string or binary format. The specific requirements need to refer to the pins of the conversion board. During the splicing process, a corresponding prompt or prompt mark can be set to distinguish the first random number and the first encrypted data.
[0040] In this embodiment: the first random number sent may be 0x01, the first encrypted data sent may be 0xaa, 0xbb, the key may be: 0x02, and the key is stored in the hardware chip and does not need to be sent; The fixed frame header for sending the first random number is: 0XAA; The fixed frame tail of sending the first random number is: 0XBB; The fixed frame header for sending the first encrypted data is: 0XA5; The fixed frame header for sending the first encrypted data is: 0XB5; The data sent can be: 0XAA, 0x01, 0XBB, 0XA5, 0xaa, 0xbb, 0XB5; That is, the protocol content is artificially specified as the keyword for verification extraction. In specific implementation, a more complex frame header and frame tail can be set for verification. In addition, the CRC check method can be used to determine the first random number. Thus, the first random number and the first encrypted data can be determined on the mediated binary data.
[0041] Step S312: generating the power carrier signal according to the target transmission data and modulation algorithm parameters.
[0042] In this embodiment, optionally, the modulation algorithm includes: amplitude keying (ASK), frequency keying (FSK) and phase keying (PSK), etc.; different modulation modes and different modulation algorithm parameters can obtain the power carrier signal; it should be noted that, in practical applications, the modulation mode is specifically determined by the modulation chip used, for example: a chip with model XF2485, by sending binary data to the XF2485 chip, the XF2485 chip transmits the data in the power line, that is, the power carrier signal can be realized, and the specific working principle diagram can be referred to Figure 4 .
[0043] Specifically, the XF2485A is an RS-485 transceiver power IC with built-in on-off keying (OOK) modulation and demodulation functions, which can realize power line communication with zero peripheral circuits. By modulating data onto the existing power line, power transmission and data communication can be carried out simultaneously in the same pair of wires, thereby significantly reducing system costs.
[0044] Specifically, for example, the encrypted data is: hexadecimal 0x11 corresponds to binary 00010001, 0X22 corresponds to binary 00100010, 0XAA corresponds to binary 10101010, then the above 0x11, 0X22, 0XAA are sent to the XF2485 chip through the Universal Asynchronous Receiver / Transmitter (UART). Specifically, the commonly used format is 1 start bit, 8 data bits, no parity check, and 1 stop bit. This format can be marked as: 8 / N / 1. The start bit is generally low level for synchronization, 8 data bits are used to transmit the binary data corresponding to 0x11, and 1 stop bit is used to indicate the end of the data frame. In this embodiment, 3 data frames are used.
[0045] Further, based on any of the above embodiments, a third embodiment of the door lock communication control method of the present invention is proposed. In this embodiment, the step of controlling the lock body of the door lock according to the first encrypted data and the second encrypted data includes: When the first encrypted data and the second encrypted data are the same, controlling the lock body of the door lock to open; When the first encrypted data and the second encrypted data are different, the lock body of the door lock is controlled to remain closed.
[0046] In this embodiment, by comparing the first encrypted data with the second encrypted data, it is possible to control the lock body of the door lock while improving the security of the door lock. In addition, in other embodiments, since the random number can correspond to different control instructions, when the first encrypted data and the second encrypted data are the same, the lock body of the door lock is controlled to execute the control instruction, and when the first encrypted data and the second encrypted data are different, the lock body of the door lock is controlled not to execute the control instruction.
[0047] Furthermore, the preset encryption algorithm is a hash encryption algorithm.
[0048] The hash encryption algorithm here can preferably be a hash algorithm-256 (Secure Hash Algorithm 256-bit, SHA-256), which belongs to a secure hash algorithm. SHA-256 is a one-way encryption algorithm, and its main function is to encrypt data of any length and output a hash value with a fixed length of 256 bits. Of course, in other embodiments, other types of encryption algorithms can also be used.
[0049] In this embodiment, the use of a hash encryption algorithm can effectively improve the security of the door lock.
[0050] In addition, an embodiment of the present invention further provides a door lock communication control device, the door lock communication control device comprising: The instruction module is used to control the front panel of the door lock to generate a first random number and generate first encrypted data corresponding to the first random number according to a preset key and a preset encryption algorithm when the person who opens the door lock is a target user; A transmission module, configured to generate a power carrier signal according to the first random number and the first encrypted data, and send the power carrier signal to a lock body control board; An execution module is used to control the lock body control board to generate second encrypted data according to the power carrier signal, and control the lock body of the door lock according to the first encrypted data and the second encrypted data.
[0051] In addition, an embodiment of the present invention further provides a door lock, characterized in that the door lock comprises: a memory, a processor, and a door lock communication control program stored in the memory and executable on the processor, wherein the door lock communication control program is configured to implement the steps of any one of the above-mentioned embodiments of the door lock communication control method; Alternatively, another hardware architecture diagram of a door lock can be referenced. Figure 5 Among them, the access control system includes: digital password, biometric identification, encryption chip, and transmits signals with the indoor door opening system through power carrier technology.
[0052] In addition, an embodiment of the present invention further proposes a storage medium, on which a door lock communication control program is stored. When the door lock communication control program is executed by a processor, the steps of any of the above-mentioned embodiments of the door lock communication control method are implemented.
[0053] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or system including the element.
[0054] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0055] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0056] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A door lock communication control method, characterized in that: The door lock communication control method comprises the following steps: When the person who opens the door lock is the target user, the front panel of the door lock is controlled to generate a first random number and generate first encrypted data corresponding to the first random number according to a preset key and a preset encryption algorithm; Generate a power carrier signal according to the first random number and the first encrypted data, and send the power carrier signal to a lock body control board; The lock body control board is controlled to generate second encrypted data according to the power carrier signal, and the lock body of the door lock is controlled according to the first encrypted data and the second encrypted data.
2. The door lock communication control method according to claim 1, characterized in that: The step of sending the power carrier signal to the lock body control board comprises: coupling the power carrier signal to a power supply line of a lock body of the door lock; Before the step of controlling the lock body control board to generate second encrypted data according to the power carrier signal, the step further includes: The lock body control board is controlled to extract the high-frequency carrier signal on the power supply line, and the power carrier signal is determined according to the high-frequency carrier signal.
3. The door lock communication control method according to claim 2, characterized in that: Before the step of generating the first encrypted data corresponding to the first random number according to the preset key and the preset encryption algorithm, the method further includes: Acquiring power supply parameters of the power supply line; Determine a first key according to the first random number, the power supply parameter and a key mapping relationship, where the key mapping relationship is a correspondence between the first random number, the power supply parameter and the first key; The first key is used as the preset key.
4. The door lock communication control method according to claim 3, characterized in that: The step of controlling the lock body control board to extract the high-frequency carrier signal on the power supply line also includes: Extracting power supply parameters on the power supply line; The step of controlling the lock body control board to generate second encrypted data according to the power carrier signal comprises: Determine the first random number according to the power carrier signal; Determine a second key according to the power supply parameter, the first random number and the key mapping relationship; The second encrypted data is generated according to a second key and a preset encryption algorithm.
5. The door lock communication control method according to claim 1, characterized in that: The step of generating a power carrier signal according to the first random number and the first encrypted data comprises: Concatenate the first random number and the first encrypted data to obtain target transmission data; The power carrier signal is generated according to the target transmission data and modulation algorithm parameters.
6. The door lock communication control method according to claim 1, characterized in that: The step of controlling the lock body of the door lock according to the first encrypted data and the second encrypted data comprises: When the first encrypted data and the second encrypted data are the same, controlling the lock body of the door lock to open; When the first encrypted data and the second encrypted data are different, the lock body of the door lock is controlled to remain closed.
7. The door lock communication control method according to any one of claims 1 to 6, characterized in that: The preset encryption algorithm is a hash encryption algorithm.
8. A door lock communication control device, characterized in that: The door lock communication control device comprises: The instruction module is used to control the front panel of the door lock to generate a first random number and generate first encrypted data corresponding to the first random number according to a preset key and a preset encryption algorithm when the person who opens the door lock is a target user; A transmission module, configured to generate a power carrier signal according to the first random number and the first encrypted data, and send the power carrier signal to a lock body control board; An execution module is used to control the lock body control board to generate second encrypted data according to the power carrier signal, and control the lock body of the door lock according to the first encrypted data and the second encrypted data.
9. A door lock, characterized in that: The door lock comprises: a memory, a processor and a door lock communication control program stored in the memory and executable on the processor, wherein the door lock communication control program is configured to implement the steps of the door lock communication control method as claimed in any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium stores a door lock communication control program, and when the door lock communication control program is executed by the processor, the steps of the door lock communication control method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Information safety equipment capable of being set in user-defined mode
CN103838995A
Encrypted transmitting method for power carrier data
CN106789971A
Intelligent door lock control method and related device
CN109949457A
Digital unlocking method and device, electronic door lock and storage medium
CN111047744A
Electronic device and operation method thereof
CN111339579A