Intelligent door lock battery encryption method and device, intelligent door lock and storage medium

Through the smart door lock battery pairing technology, the barcode of the second battery is used to obtain encrypted data, which solves the problems of cumbersome battery replacement process and poor timeliness in the prior art, and achieves safe and efficient battery replacement.

CN119964278APending Publication Date: 2025-05-09DESSMANN CHINA MACHINERY & ELECTRONICS +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510080920.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-17
Publication Date
2025-05-09

AI Technical Summary

Technical Problem

The existing smart door lock battery replacement process is cumbersome and requires the participation of the manufacturer, resulting in poor timeliness.

Method used

The battery replacement is completed by obtaining the second encrypted data from the barcode of the second battery and pairing with the third encrypted data obtained when the first battery is replaced in the smart door lock.

Benefits of technology

It enables battery replacement without the participation of the manufacturer, simplifies the process, improves timeliness, and prevents abnormal replacement of the battery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119964278A_ABST
    Figure CN119964278A_ABST
Patent Text Reader

Abstract

The invention relates to an encryption method and device for a battery of an intelligent door lock, the intelligent door lock and a storage medium, and the method comprises the following steps: obtaining corresponding second encrypted data from a bar code of a second battery; the second encrypted data is determined by a second encryption module in the second battery; when the first battery in the intelligent door lock is replaced by a second battery, acquiring third encrypted data corresponding to a second encryption module in the second battery, and performing battery pairing according to the second encrypted data and the third encrypted data; and battery replacement of the intelligent door lock is completed according to a battery pairing result. By means of the battery replacement method and device, the problems that in the prior art, manufacturer participation is needed, the battery replacement process is tedious, and the battery replacement timeliness is poor are solved, the battery is prevented from being replaced abnormally, meanwhile, the efficiency of replacing a normal battery is guaranteed, and the user experience feeling is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of smart door locks, and in particular to an encryption method and device for a smart door lock battery, a smart door lock, and a storage medium. Background Art

[0002] Smart door locks are the executive components of door locks in access control systems. The sign of smart door locks is whether they can be linked and operated by mobile phones. Most mature smart door locks in the market rely on batteries for power supply. Since batteries are universal, they may be replaced with batteries with quality problems, which poses a safety hazard. Therefore, it is necessary to encrypt the battery to know whether the battery has been replaced. The current implementation plan is that after the user replaces the battery, the manufacturer needs to decrypt the replaced battery on-site or remotely to complete the replacement. Although this solution can avoid the replacement of batteries with quality problems, it requires the participation of manufacturers, resulting in a cumbersome battery replacement process and poor timeliness of battery replacement.

[0003] Regarding the problem that related technologies require the participation of manufacturers, resulting in a cumbersome battery replacement process and poor timeliness of battery replacement, no effective solution has been proposed so far. Summary of the invention

[0004] In this embodiment, a smart door lock battery encryption method, device, smart door lock and storage medium are provided to solve the problem that the manufacturer's participation is required in the related technology, resulting in a cumbersome battery replacement process and poor timeliness of battery replacement.

[0005] In the first aspect, in this embodiment, a method for encrypting a battery of a smart door lock is provided, wherein the smart door lock includes a first battery and a processor; the method is applicable to the processor, and the method includes:

[0006] Acquire corresponding second encrypted data from the barcode of the second battery; the second encrypted data is determined by a second encryption module in the second battery;

[0007] When the first battery in the smart door lock is replaced with the second battery, obtaining third encrypted data corresponding to the second encryption module in the second battery, and performing battery pairing according to the second encrypted data and the third encrypted data;

[0008] According to the result of battery pairing, the battery replacement of the smart door lock is completed.

[0009] In some embodiments, the method further comprises:

[0010] Use an application to scan the barcode on the second battery to obtain the second encrypted data of the second battery; and transmit the second encrypted data to the processor of the smart door lock.

[0011] In some embodiments, the barcode includes one or more of a one-dimensional code, a two-dimensional code, and a three-dimensional code.

[0012] In some embodiments, the method further comprises:

[0013] After the first battery in the smart door lock is replaced with the second battery, the second encrypted data generated by the second encryption module is transmitted to the processor via the second empty pin in the second battery in a single bus manner.

[0014] In some embodiments, performing battery pairing according to the second encrypted data and the third encrypted data includes:

[0015] Decoding the second encrypted data to obtain second decrypted data;

[0016] Decoding the third encrypted data to obtain third decrypted data;

[0017] The second decrypted data and the third decrypted data are compared, and battery pairing is completed according to the comparison result.

[0018] In some embodiments, the method further comprises:

[0019] After the battery pairing is successful, the second decrypted data is stored in the memory of the processor or the smart door lock.

[0020] In some embodiments, according to the battery pairing result, completing the battery replacement of the smart door lock includes:

[0021] If the battery pairing result is that the battery pairing fails, the function of locking the smart door lock;

[0022] If the result of the battery pairing is that the battery pairing is successful, the lock of the smart door lock function is unlocked and the battery replacement of the smart door lock is completed.

[0023] In a second aspect, in this embodiment, a smart door lock battery encryption device is provided, the smart door lock includes a first battery and a processor; the device is applicable to the processor, and the device includes: an acquisition module, a pairing module and a processing module;

[0024] The acquisition module is used to acquire corresponding second encrypted data from the barcode of the second battery; the second encrypted data is determined by the second encryption module in the second battery;

[0025] The pairing module is used to obtain the third encrypted data corresponding to the second encryption module in the second battery when the first battery in the smart door lock is replaced with the second battery, and perform battery pairing according to the second encrypted data and the third encrypted data;

[0026] The processing module is used to complete the battery replacement of the smart door lock according to the battery pairing result.

[0027] In the third aspect, a smart door lock is provided in this embodiment, including a first battery, a second battery, a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the encryption method of the smart door lock battery described in the first aspect is implemented.

[0028] In a fourth aspect, a storage medium is provided in this embodiment, on which a computer program is stored, and when the program is executed by a processor, the encryption method of the smart door lock battery described in the first aspect is implemented.

[0029] Compared with the related art, the encryption method, device, smart door lock and storage medium of the smart door lock battery provided in the present embodiment obtain the corresponding second encrypted data from the barcode of the second battery; the second encrypted data is determined by the second encryption module in the second battery; when the first battery in the smart door lock is replaced with the second battery, the third encrypted data corresponding to the second encryption module in the second battery is obtained, and the batteries are paired according to the second encrypted data and the third encrypted data; according to the result of the battery pairing, the battery replacement of the smart door lock is completed, which solves the problem that the manufacturer's participation is required in the related art, resulting in a cumbersome battery replacement process and poor timeliness of battery replacement, and prevents the battery from being replaced abnormally, while ensuring the efficiency of replacing normal batteries and improving the user experience.

[0030] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0032] Figure 1 This is a hardware structure block diagram of a terminal device of an encryption method for a smart door lock battery provided in an embodiment of the present application;

[0033] Figure 2 This is a flow chart of an encryption method for a smart door lock battery provided in one embodiment of the present application;

[0034] Figure 3 is a flow chart of a single bus transmission provided by an embodiment of the present application;

[0035] Figure 4 is a timing diagram of second encrypted data provided by an embodiment of the present application;

[0036] Figure 5 This is a structural block diagram of an encryption device for a smart door lock battery provided in one embodiment of the present application.

[0037] In the figure: 102, processor; 104, memory; 106, transmission device; 108, input and output device; 210, acquisition module; 220, pairing module; 230, processing module. DETAILED DESCRIPTION

[0038] In order to more clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments.

[0039] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the general meaning understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the", "these" and the like in this application do not represent quantitative restrictions, and they can be singular or plural. The terms "include", "comprise", "have" and any variants thereof involved in this application are intended to cover non-exclusive inclusions; for example, a process, method and system, product or device comprising a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether directly or indirectly. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, "A and / or B" can mean: A exists alone, A and B exist at the same time, and B exists alone. Usually, the character " / " indicates that the objects associated with each other are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0040] The method embodiment provided in this embodiment can be executed in a smart door lock, a computer or a similar computing device. For example, running on a processor of a smart door lock, Figure 1 : is a hardware structure diagram of the smart door lock of this embodiment. Figure 1As shown, the smart door lock may include a first battery, one or more processors 102 and a memory 104 for storing data; wherein the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA. The above-mentioned smart door lock may also include a transmission device for communication functions and an input and output device 108. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above-mentioned smart door lock. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0041] Among them, the battery structure of the smart door lock can be considered to be the same. That is, the first battery is an old battery to be replaced, and has the same structure as the second battery. The second battery is a new battery used to replace the first battery. Figure 2 The figure shows a schematic diagram of the structure of the first battery. It includes a first encryption module and a first empty pin; the first encryption module is connected to the processor through the first empty pin, and after the smart door lock is powered on, the first encrypted data is output to the processor in a single bus mode. The first encrypted data is unique, and each battery has its own separate encrypted data. And before leaving the factory, the first encrypted data is stored in the processor or in a memory connected to the processor. Then, each time the smart door lock is powered on, the first encrypted data transmitted by the first encryption module will be decrypted and compared with the first encrypted data stored in the processor. If the two are consistent, the pairing is successful; if the two are inconsistent, the smart door lock cannot be used.

[0042] Among them, the memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the encryption method of the smart door lock battery in this embodiment. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0043] The transmission device 106 is used to receive or send data via a network. The above network includes a wireless network provided by the communication provider of the terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.

[0044] In this embodiment, a method for encrypting a smart door lock battery is provided. Figure 2 Flowchart of the encryption method of the smart door lock battery of this embodiment. Figure 2 As shown, the process includes the following steps:

[0045] Step S210, obtaining corresponding second encrypted data from the barcode of the second battery; the second encrypted data is determined by a second encryption module in the second battery;

[0046] Step S220, when the first battery in the smart door lock is replaced with the second battery, obtaining the third encrypted data corresponding to the second encryption module in the second battery, and performing battery pairing according to the second encrypted data and the third encrypted data;

[0047] Step S230, completing the battery replacement of the smart door lock according to the battery pairing result.

[0048] Specifically, the second battery refers to a regular new battery used to replace the first battery. It has its own unique barcode. The barcode carries the second encrypted data. The second encrypted data is determined by the second encryption module in the second battery. It can be considered that before leaving the factory, the second encryption module set in the second battery outputs the encrypted data in the agreed encryption method.

[0049] When the first battery in the smart door lock is replaced with the second battery, the second encryption module in the second battery is connected to the processor through the second empty pin, and the third encrypted data is output to the processor; so that the processor obtains the third encrypted data corresponding to the second encryption module. The battery pairing is performed based on the second encrypted data and the third encrypted data, and the battery replacement of the smart door lock is completed according to the result of the battery pairing. Among them, there are many ways of pairing, such as: decrypting the second encrypted data and the third encrypted data, and then checking whether the decrypted data are consistent. For example: randomly selecting the corresponding fields in the second encrypted data and the third encrypted data; then checking whether the selected fields are consistent, etc. There is no restriction on the specific pairing method. In other embodiments, in order to ensure the security of data transmission, the processor will pre-set a corresponding decryption method, which corresponds to the encryption method in the second encryption module. That is, it can be considered that both the third encrypted data and the second encrypted data can be decrypted in the processor to obtain the data before encryption. There is no restriction on the encryption method.

[0050] In the related art, the solution adopted is that after the user replaces the battery, the manufacturer needs to decrypt the replaced battery on-site or remotely to complete the replacement. Although this solution can avoid the replacement of batteries with quality problems, it requires the participation of the manufacturer, resulting in a cumbersome battery replacement process and poor battery replacement timeliness. In this embodiment, the corresponding second encrypted data is obtained from the barcode of the second battery; the encrypted data is determined by the second encryption module in the second battery; when the first battery in the smart door lock is replaced with the second battery, the third encrypted data corresponding to the second encryption module in the second battery is obtained, and the battery is paired according to the second encrypted data and the third encrypted data; according to the result of the battery pairing, the battery replacement of the smart door lock is completed, which solves the problem that the manufacturer needs to participate in the related art, resulting in a cumbersome battery replacement process and poor battery replacement timeliness, and prevents the battery from being replaced abnormally, while ensuring the efficiency of replacing normal batteries and improving the user experience.

[0051] The above steps are described in detail below:

[0052] In some of the embodiments, the encryption method of the smart door lock battery further includes the following steps:

[0053] The barcode on the second battery is scanned by the application to obtain the second encrypted data of the second battery; and the second encrypted data is transmitted to the processor of the smart door lock.

[0054] Specifically, the barcode on the second battery can be scanned by the application program, and the second encrypted data of the second battery can be identified from the barcode; and then the second encrypted data can be transmitted to the processor of the smart door lock for subsequent battery matching. The barcode includes but is not limited to a one-dimensional code, a two-dimensional code, and a three-dimensional code; it can be a combination of a one-dimensional code, a two-dimensional code, and a three-dimensional code; for example, the data identified from a one-dimensional code and a two-dimensional code can be combined into the second encrypted data, thereby further improving the confidentiality level and increasing the safety of use.

[0055] The application can be installed on the client, and the user scans the barcode through the application in the client, so that the user can complete the battery replacement anytime and anywhere. The client can be a mobile terminal, a fixed terminal or a portable terminal, such as a mobile phone, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a personal communication system (PCS) device, a personal navigation device, a personal digital assistant (PDA), an audio / video player, a digital camera / camcorder, an e-book device, a game device or any combination thereof, including accessories and peripherals of these devices or any combination thereof.

[0056] In some of the embodiments, Figure 3 As shown, the encryption method of the smart door lock battery also includes the following steps:

[0057] Step S310, after the first battery in the smart door lock is replaced with the second battery, the second encrypted data generated by the second encryption module is transmitted to the processor in a single bus manner through the second empty pin in the second battery.

[0058] Specifically, the single bus method for transmitting the second encrypted data is as follows: the data is transmitted in the form of high and low level signals according to the agreed encryption method. For example: after the high level output by the second empty pin is pulled down for a preset time (5ms low level), 16-bit data is sent; the high byte (high level) is sent first, and then the low byte (low level), or the low byte (low level) is sent first, and then the high byte (high level); the ratio of high level and low level is used to represent the value of each data bit. For example: the time ratio of high level and low level is 3:1, which represents a value of 1; the time ratio of high level and low level is 1:3, which represents a value of 0. Figure 4 The timing diagram of the second encrypted data shown in the figure shows that the second encrypted data is 96H. In other embodiments, there is no restriction on parameters such as the preset time, the time ratio of the high level and the low level, and the user can set them according to his / her own choice.

[0059] Through this embodiment, the output of the second encrypted data can be completed by utilizing an empty pin in the second battery without increasing additional hardware resources.

[0060] In some embodiments, the battery pairing according to the second encrypted data and the third encrypted data in step S220 includes the following steps:

[0061] Decoding the second encrypted data to obtain second decrypted data;

[0062] Decoding the third encrypted data to obtain third decrypted data;

[0063] The second decrypted data and the third decrypted data are compared, and the battery pairing is completed according to the comparison result.

[0064] Specifically, the second encrypted data and the third encrypted data can be considered to be determined by the second encryption module under different conditions. If no abnormal situation occurs, the second encrypted data and the third encrypted data are consistent. Therefore, the battery pairing is performed based on these two data. Specifically: the second encrypted data and the third encrypted data are decoded respectively according to the pre-agreed encryption method to obtain the corresponding second decrypted data and the third decrypted data. Then compare the second decrypted data and the third decrypted data; if the second decrypted data and the third decrypted data are consistent, the comparison result is a successful pairing. If the second decrypted data and the third decrypted data are inconsistent, the comparison result is a failed pairing.

[0065] Through this embodiment, a direct decoding and comparison method is adopted to simplify the battery pairing process, improve the pairing efficiency, and reduce the occurrence of mispairing.

[0066] In some of the embodiments, the encryption method of the smart door lock battery further includes the following steps:

[0067] After the battery pairing is successful, the second decrypted data is stored in the memory of the processor or the smart door lock.

[0068] Specifically, after the battery pairing is successful, the second decrypted data is stored in the processor or the memory of the smart door lock. If the second decrypted data is stored in the processor, the processor can directly obtain the third decrypted data for battery pairing. If the second decrypted data is stored in the memory, the processor can extract the second decrypted data from the memory and then obtain the third decrypted data for battery pairing.

[0069] Through this embodiment, the second decrypted data is stored in the memory of the processor or the smart door lock in advance, which can avoid the need to re-acquire the second encrypted data every time the battery is paired, and is convenient to use.

[0070] In some embodiments, the step S230 of completing the battery replacement of the smart door lock according to the battery pairing result includes:

[0071] If the battery pairing result is battery pairing failure, the smart door lock function is locked;

[0072] If the battery pairing result is that the battery pairing is successful, the smart door lock function is unlocked and the battery replacement of the smart door lock is completed.

[0073] Specifically, battery pairing can be performed once every time the smart door lock is powered on, and the results of battery pairing include battery pairing failure and battery pairing success. If the battery pairing fails, it is considered that the second battery replaced is not a qualified battery, and there is a safety hazard. All functions of the smart door lock are locked to ensure the user's safety. It is necessary to replace a qualified battery before it can be used normally. If the result of battery pairing is battery pairing success, it is considered that the second battery replaced is a qualified battery. If there is a lock, it is unlocked; otherwise, the battery replacement of the smart door lock is completed.

[0074] Through this embodiment, corresponding processes are executed according to different battery pairing results, thereby improving the safety of using the smart door lock.

[0075] It should be noted that the steps shown in the above process or the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0076] In this embodiment, an encryption device for a smart door lock battery is also provided, which is used to implement the above embodiments and preferred implementations, and will not be repeated hereafter. The terms "module", "unit", "subunit", etc. used below can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0077] Figure 5 : is a structural block diagram of the encryption device of the smart door lock battery of this embodiment, such as Figure 5 As shown, the device includes: an acquisition module 210, a pairing module 220 and a processing module 230;

[0078] The acquisition module 210 is used to acquire the corresponding second encrypted data from the barcode of the second battery; the second encrypted data is determined by the second encryption module in the second battery;

[0079] A pairing module 220, which is used to obtain the third encrypted data corresponding to the second encryption module in the second battery when the first battery in the smart door lock is replaced with the second battery, and perform battery pairing according to the second encrypted data and the third encrypted data;

[0080] The processing module 230 is used to complete the battery replacement of the smart door lock according to the battery pairing result.

[0081] The above-mentioned device solves the problem in related technologies that the manufacturer's participation is required, resulting in a cumbersome battery replacement process and poor timeliness of battery replacement. It prevents the battery from being replaced abnormally, while ensuring the efficiency of replacing normal batteries and improving the user experience.

[0082] In some of the embodiments, the encryption device of the smart door lock battery further includes: a scanning module;

[0083] The scanning module is used to scan the bar code on the second battery using an application to obtain the second encrypted data of the second battery; and transmit the second encrypted data to the processor of the smart door lock.

[0084] In some of the embodiments, the barcode includes one or more of a one-dimensional code, a two-dimensional code, and a three-dimensional code.

[0085] In some of the embodiments, the encryption device of the smart door lock battery further includes: a single bus output module;

[0086] A single bus output module is used to transmit the second encrypted data generated by the second encryption module to the processor in a single bus manner through the second empty pin in the second battery after the first battery in the smart door lock is replaced with the second battery.

[0087] In some of the embodiments, the pairing module 220 is further configured to decode the second encrypted data to obtain second decrypted data;

[0088] Decoding the third encrypted data to obtain third decrypted data;

[0089] The second decrypted data and the third decrypted data are compared, and the battery pairing is completed according to the comparison result.

[0090] In some of the embodiments, the encryption device of the smart door lock battery further includes: a storage module;

[0091] The storage module is used to store the second decrypted data in the memory of the processor or the smart door lock after the battery pairing is successful.

[0092] In some of the embodiments, the processing module 230 is further configured to lock the smart door lock if the battery pairing result is a battery pairing failure;

[0093] If the battery pairing result is that the battery pairing is successful, the smart door lock function is unlocked and the battery replacement of the smart door lock is completed.

[0094] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0095] In addition, in combination with the encryption method of the smart door lock battery provided in the above embodiments, a storage medium can also be provided in this embodiment to implement the encryption method. The storage medium stores a computer program; when the computer program is executed by the processor, any encryption method of the smart door lock battery in the above embodiments is implemented.

[0096] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and will not be repeated in this embodiment.

[0097] It should be noted that the information and data involved in this application are all authorized by the user or fully authorized by all parties and will be used legally.

[0098] It should be understood that the specific embodiments described herein are only used to explain the application, rather than to limit it. Based on the embodiments provided in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of this application.

[0099] Obviously, the drawings are only some examples or embodiments of the present application. For ordinary technicians in the field, the present application can also be applied to other similar situations based on these drawings without creative work. In addition, it is understandable that although the work done in this development process may be complicated and lengthy, for ordinary technicians in the field, certain changes in design, manufacturing or production based on the technical content disclosed in this application are only conventional technical means and should not be regarded as insufficient content disclosed in this application.

[0100] The term "embodiment" in this application refers to a specific feature, structure or characteristic described in conjunction with the embodiment that can be included in at least one embodiment of the present application. The appearance of this phrase in various locations in the specification does not necessarily mean the same embodiment, nor does it mean that it is mutually exclusive with other embodiments and is independent or optional. It is clearly or implicitly understood by those of ordinary skill in the art that the embodiments described in this application can be combined with other embodiments without conflict.

[0101] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of patent protection. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the attached claims.

Claims

1. A method for encrypting a smart door lock battery, characterized in that: The smart door lock includes a first battery and a processor; The method is applicable to the processor, and the method comprises: Acquire corresponding second encrypted data from the barcode of the second battery; the second encrypted data is determined by a second encryption module in the second battery; When the first battery in the smart door lock is replaced with the second battery, obtaining third encrypted data corresponding to the second encryption module in the second battery, and performing battery pairing according to the second encrypted data and the third encrypted data; According to the result of battery pairing, the battery replacement of the smart door lock is completed.

2. The encryption method of the smart door lock battery according to claim 1, characterized in that: The method further comprises: Use an application to scan the barcode on the second battery to obtain the second encrypted data of the second battery; and transmit the second encrypted data to the processor of the smart door lock.

3. The encryption method of the smart door lock battery according to claim 2 is characterized in that: The barcode includes one or more of a one-dimensional code, a two-dimensional code and a three-dimensional code.

4. The encryption method of the smart door lock battery according to claim 1, characterized in that: The method further comprises: After the first battery in the smart door lock is replaced with the second battery, the second encrypted data generated by the second encryption module is transmitted to the processor via the second empty pin in the second battery in a single bus manner.

5. The encryption method of the smart door lock battery according to any one of claims 1 to 4, characterized in that: Performing battery pairing according to the second encrypted data and the third encrypted data includes: Decoding the second encrypted data to obtain second decrypted data; Decoding the third encrypted data to obtain third decrypted data; The second decrypted data and the third decrypted data are compared, and battery pairing is completed according to the comparison result.

6. The encryption method of the smart door lock battery according to claim 5, characterized in that: The method further comprises: After the battery pairing is successful, the second decrypted data is stored in the memory of the processor or the smart door lock.

7. The encryption method of the smart door lock battery according to claim 5, characterized in that: According to the battery pairing result, the battery of the smart door lock is replaced, including: If the battery pairing result is that the battery pairing fails, the function of locking the smart door lock; If the result of the battery pairing is that the battery pairing is successful, the lock of the smart door lock function is unlocked and the battery replacement of the smart door lock is completed.

8. An encryption device for a smart door lock battery, characterized in that: The smart door lock includes a first battery and a processor; The device is suitable for the processor, and the device includes: an acquisition module, a pairing module and a processing module; The acquisition module is used to acquire corresponding second encrypted data from the barcode of the second battery; the second encrypted data is determined by the second encryption module in the second battery; The pairing module is used to obtain the third encrypted data corresponding to the second encryption module in the second battery when the first battery in the smart door lock is replaced with the second battery, and perform battery pairing according to the second encrypted data and the third encrypted data; The processing module is used to complete the battery replacement of the smart door lock according to the battery pairing result.

9. A smart door lock, comprising a first battery, a second battery, a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps of the encryption method for the smart door lock battery according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the encryption method of the smart door lock battery described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Cell identity authentication method and related device

    CN111988335A

  • Authentication method for battery accessory of intelligent door lock and intelligent door lock

    CN116721494A

  • Authentication method for battery accessory of intelligent door lock, intelligent door lock and terminal

    CN116743467A

  • Maintenance right battery replacement method and application thereof

    CN117280672A

  • Intelligent electronic door lock with storage battery box convenient to replace

    CN211851311U