Control method of dynamic electronic coded lock, electronic equipment and storage medium

By using a dynamic electronic combination lock control method, and employing the SHA256 hash algorithm to generate and encrypt random passwords, the problem of easily stolen charging pile passwords is solved, thereby improving the security and management efficiency of charging piles.

CN122067334APending Publication Date: 2026-05-19SHAANXI GREEN ENERGY ELECTRONIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHAANXI GREEN ENERGY ELECTRONIC TECH CO LTD
Filing Date
2026-03-18
Publication Date
2026-05-19

AI Technical Summary

Technical Problem

Existing charging station combination locks suffer from problems such as simple combination codes, vulnerability to theft or damage, and inability to effectively guarantee the security of charging stations.

Method used

A dynamic electronic combination lock is adopted. An initial random password is generated and encrypted using the SHA256 hash algorithm. After decryption by the user, a matching control is performed to realize the opening and closing status of the dynamic electronic combination lock.

Benefits of technology

It improves the safety and management efficiency of charging stations, prevents password leakage, and ensures stable, reliable, and secure protection for charging stations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122067334A_ABST
    Figure CN122067334A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of coded locks, and discloses a control method of a dynamic electronic coded lock, electronic equipment and a storage medium, the method is applied to a charging pile, and the method comprises the following steps: generating an initial random password based on an SHA256 Hash algorithm, and encrypting the initial random password to obtain an initial encrypted password; sending the initial encrypted password to the user side, so that the user side decrypts according to the initial encrypted password to obtain an initial decrypted password; and when an initial decryption password input by the user side is received, performing locking and unlocking state control on the dynamic electronic coded lock according to the matching between the initial decryption password and the initial encryption password. According to the invention, the password does not need to be updated regularly, and the password involved in the unlocking and locking process is randomly generated and is only valid at the time, so that the potential safety hazard caused by password leakage is fundamentally solved, the safety and management efficiency of the charging pile can be improved, and the charging pile is ensured to have stable and reliable safety protection performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of combination lock technology, and in particular to a control method, electronic device, and computer-readable storage medium for a dynamic electronic combination lock. Background Technology

[0002] With the continuous promotion of new energy sources, the number of charging stations is increasing, and the safety and protection of charging piles has attracted widespread attention. Most existing charging piles use key locks or fixed combination locks, which generally have shortcomings such as simple passwords, easy theft of fixed passwords, and easy loss or damage of keys. These shortcomings cannot guarantee the security of charging piles, nor can they meet users' needs for the safety performance protection of charging piles. Summary of the Invention

[0003] This invention aims to at least partially solve one of the technical problems in related technologies. To this end, this invention proposes a control method, electronic device, and storage medium for a dynamic electronic combination lock, which can improve the security of charging piles and ensure that the charging piles have security protection capabilities.

[0004] In a first aspect, embodiments of the present invention provide a control method for a dynamic electronic combination lock, applied to a charging pile, comprising the following steps: Step S1: Generate an initial random password based on the SHA256 hash algorithm, and encrypt the initial random password to obtain an initial encrypted password; Step S2: Send the initial encryption password to the user terminal so that the user terminal can decrypt the password to obtain the initial decryption password. Step S3: When the initial decryption password input by the user terminal is received, the dynamic electronic combination lock is controlled to open / close based on the matching of the initial decryption password and the initial encryption password.

[0005] Optionally, in one embodiment of the present invention, step S1, encrypting the initial random password to obtain an initial encrypted password, includes the following steps: Step S11: Divide the initial random password into multiple initial password parts, and perform RSA encryption on each initial password part to obtain the block encryption password corresponding to each initial password part. Step S12: Concatenate all the group encryption passwords to obtain the initial encryption password.

[0006] Optionally, in one embodiment of the present invention, step S3 includes the following steps: Step S31: When it is determined that the initial decryption password matches the initial encryption password, control the dynamic electronic combination lock to unlock; otherwise, send a real-time error message to the user terminal, wherein the real-time error message indicates that the previously entered initial decryption password cannot be matched.

[0007] Optionally, in one embodiment of the present invention, the following steps are further included after step S31: Step S32: When the initial decryption password input by the user terminal is received again, step S31 is executed again, and the opening and closing status of the dynamic electronic combination lock is monitored in real time. Step S33: When it is detected that the dynamic electronic combination lock is continuously locked, the number of times the user terminal enters the initial decryption password is counted in real time; Step S34: When the number of times the user terminal inputs the initial decryption password reaches the preset matching number, the dynamic electronic combination lock is controlled to enter the pause unlocking state, wherein the pause unlocking state indicates that the dynamic electronic combination lock cannot be unlocked within a preset future time period.

[0008] Optionally, in one embodiment of the present invention, after controlling the dynamic electronic combination lock to unlock in step S31, the following steps are further included: Step S4: Record and save the timestamp corresponding to the unlocking of the dynamic electronic combination lock, and record it as the first timestamp; Step S5: Record and save the timestamp corresponding to the most recent locking of the dynamic electronic combination lock after the first timestamp, and denote it as the second timestamp; Step S6: With the second timestamp recorded and saved, repeat step S1.

[0009] Secondly, embodiments of the present invention provide a control method for a dynamic electronic combination lock, applied to a user terminal, comprising the following steps: Step S7: When the initial encryption password sent by the charging pile is received, the initial decryption password is obtained by decrypting the initial encryption password. The initial encryption password is obtained by the charging pile encrypting the initial random password, and the initial random password is generated by the charging pile based on the SHA256 hash algorithm. Step S8: Input the initial decryption password into the charging pile so that the charging pile controls the opening and closing status of the dynamic electronic combination lock based on the matching of the initial decryption password and the initial encryption password.

[0010] Thirdly, embodiments of the present invention provide an electronic device, comprising: At least one processor; At least one memory for storing at least one program; When at least one of the programs is executed by at least one of the processors, the control method for the dynamic electronic combination lock as described in the first and second aspects is implemented.

[0011] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing a processor-executable program, which, when executed by a processor, is used to implement the control method for a dynamic electronic combination lock as described in the first and second aspects.

[0012] This invention proposes a control method, electronic device, and storage medium for a dynamic electronic combination lock. It generates an initial random password using the SHA256 hash algorithm and encrypts it to obtain an initial encrypted password under dynamic random conditions. This initial encrypted password is then sent to the user terminal, allowing the user to decrypt it and obtain the initial decryption password. Upon receiving the initial decryption password from the user terminal, the method matches the initial decryption password with the initial encrypted password to adaptively control the opening and closing status of the dynamic electronic combination lock. Compared to existing technologies, this method eliminates the need for periodic password updates. All passwords used during the opening and closing process are randomly generated and valid only for that specific time, fundamentally solving the security risks caused by password leakage. This improves the security and management efficiency of charging stations, ensuring stable and reliable security protection performance. Attached Figure Description

[0013] Figure 1 This is a flowchart of a control method for a dynamic electronic combination lock provided in an embodiment of the present invention; Figure 2 This is a schematic diagram of the internal structure of a charging pile provided in an embodiment of the present invention; Figure 3 yes Figure 1 A partial flowchart of step S1, "encrypting the initial random password to obtain the initial encrypted password"; Figure 4 yes Figure 1 The flowchart for step S3 in the process; Figure 5 yes Figure 4 The flowchart following step S31; Figure 6 yes Figure 4 The flowchart following step S31, "Control the unlocking of the dynamic electronic combination lock"; Figure 7 This is a schematic diagram of the execution flow of a control method for a dynamic electronic combination lock provided in an embodiment of the present invention; Figure 8This is a flowchart of a control method for a dynamic electronic combination lock provided in another embodiment of the present invention; Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0014] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0015] It should be noted that although functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart.

[0016] Figure 1 This is a flowchart illustrating a control method for a dynamic electronic combination lock according to an embodiment of the present invention. Figure 1 As shown, the control method of this dynamic electronic combination lock can be applied to charging piles, but is not limited to, steps S1 to S3. The charging pile can be any model, parameter, or configuration condition, and can be selected and set by those skilled in the art according to actual needs. There are no restrictions here; for example, refer to... Figure 2 The charging pile used in this embodiment and the following embodiments integrates an STC8952 microcontroller, an LCD1602 display module, a matrix keyboard module, a DS1302 clock module, a data storage module, and a magnet module for controlling the locking tongue. The data storage module may, but is not limited to, use an AT24C02 memory. The STC8952 microcontroller plays a main control role, the LCD1602 display module plays a real-time display role, the matrix keyboard module provides human-computer interaction functions, the DS1302 clock module provides clock signals for the STC8952 microcontroller, and the AT24C02 memory stores passwords and lock / unlock time information.

[0017] Step S1: Generate an initial random password based on the SHA256 hash algorithm, and encrypt the initial random password to obtain the initial encrypted password; Step S2: Send the initial encryption password to the user terminal so that the user terminal can decrypt the password to obtain the initial decryption password. Here, the user terminal refers to the user side using the charging pile, and can be, but is not limited to, any medium capable of communicating with the STC8952 microcontroller, such as… Figure 2 The mobile terminal shown refers to the communication and interaction between the user and the STC8952 microcontroller via the mobile terminal. The specific communication and interaction method can be set according to different scenarios, such as using Bluetooth communication. Step S3: When the initial decryption password is received from the user terminal, the dynamic electronic combination lock is controlled to open / close based on the matching of the initial decryption password and the initial encryption password.

[0018] In this step, an initial random password is generated using the SHA256 hash algorithm and then encrypted to obtain an initial encrypted password under dynamic random conditions. This initial encrypted password is then sent to the user terminal, allowing the user terminal to decrypt it and obtain the initial decryption password. Upon receiving the initial decryption password input from the user terminal, the initial decryption password is matched with the initial encrypted password to adaptively control the opening and closing status of the dynamic electronic combination lock. Compared to existing technologies, there is no need to periodically update the password. The passwords involved in the opening and closing process are all randomly generated and valid only for that specific time, fundamentally solving the security risks caused by password leakage. This improves the security and management efficiency of charging piles and ensures that charging piles have stable and reliable security protection performance.

[0019] In one embodiment, the generation of the initial random password based on the SHA256 hash algorithm is not arbitrarily restricted and can be performed at any time and under any conditions.

[0020] In one embodiment, the user terminal decrypts the initial encryption password to obtain the initial decryption password. This can be done, but is not limited to, using RSA decryption, which is a matching decryption operation of the SHA256 hash algorithm, ensuring that the initial decryption password is obtained effectively.

[0021] like Figure 3 As shown in one embodiment of the present invention, step S1, which involves encrypting the initial random password to obtain an initial encrypted password, may include, but is not limited to, the following steps: Step S11: Divide the initial random password into multiple initial password parts, and perform RSA encryption on each initial password part to obtain the block encryption password corresponding to each initial password part. Step S12: Concatenate all the group encryption passwords to obtain the initial encryption password.

[0022] In this step, the initial random password is divided into groups, and each group of the initial password is encrypted using RSA. This group encryption method can further improve the security of encrypting the initial random password. At the same time, all the group encryption passwords can be concatenated to obtain the initial encrypted password, which ensures that the initial encrypted password can be generated stably and reliably. It should be noted that the method of encrypting each group of the initial password using RSA can be set with reference to the method of encrypting the entire password using RSA. The basic principles are the same, and for the sake of redundancy, it will not be elaborated here.

[0023] like Figure 4 As shown, in one embodiment of the present invention, step S3 may include, but is not limited to, the following steps: Step S31: When it is determined that the initial decryption password matches the initial encryption password, control the dynamic electronic combination lock to unlock; otherwise, send a real-time error message to the user terminal, wherein the real-time error message indicates that the previously entered initial decryption password cannot be matched.

[0024] In this step, if the initial decryption password matches the initial encryption password, it means that the initial decryption password entered by the user is indeed decrypted based on the initial encryption password, and the two can be well matched. This confirms that the current user's identity has been authenticated, and the dynamic electronic combination lock can be unlocked. Conversely, if the user's identity has not been authenticated, a real-time error message is sent to the user to indicate that the previously entered initial decryption password cannot be matched.

[0025] To better illustrate the basic principles of encryption and decryption in this embodiment, specific examples are provided below.

[0026] First, a random password is generated using the SHA256 hash algorithm based on the STC8952 microcontroller. This random password is then encrypted using RSA and sent to the mobile phone via Bluetooth. In the RSA encryption algorithm... , Set E=5, two prime numbers =13、 =19, from the formula We can obtain N=247, from the formula We get L=216, from the formula We get D=173, where E and N are public keys and D is a private key; Then, divide the six-digit password into three groups, encrypt each group using RSA, and then concatenate the encrypted passwords to form the final encrypted password. For example, the decrypted password received on the phone is 695904, and the RSA-encrypted but not decrypted password is 179089036. It can be seen that, using a scientific calculator, the result is... Therefore, 69 to the power of 5 modulo 247 equals 179, 59 to the power of 5 modulo 247 equals 89, and 4 to the power of 5 modulo 247 equals 36. After RSA encryption, the final result is 179089036, so the RSA encryption algorithm is successfully verified. Then, RSA decryption verification is performed by... Therefore, 179 modulo 173 is 69, 89 modulo 173 is 59, and 36 modulo 173 is 4. After RSA decryption, the final result is 695904, so the RSA decryption algorithm was successfully verified.

[0027] like Figure 5 As shown in one embodiment of the present invention, after step S31, the following steps may be included, but are not limited to: Step S32: When the initial decryption password is received again from the user terminal, step S31 is executed again, and the opening and closing status of the dynamic electronic combination lock is monitored in real time. Step S33: When the dynamic electronic combination lock is detected to be continuously locked, the number of times the user enters the initial decryption password is counted in real time. Step S34: When the number of times the user enters the initial decryption password reaches the preset number of matches, the dynamic electronic combination lock is controlled to enter the pause unlocking state. The pause unlocking state indicates that the dynamic electronic combination lock cannot be unlocked within a preset future time period.

[0028] As can be seen, by sending real-time error messages to the user terminal to prompt the user to re-enter the initial decryption password, step S31 is re-executed when the initial decryption password is received again from the user terminal to determine whether the re-entered initial decryption password can be matched. At the same time, considering that a limited number of matching attempts is reasonable and practical, the opening and closing status of the dynamic electronic combination lock is monitored in real time. When the dynamic electronic combination lock is detected to be continuously locked, it means that the initial decryption password entered at this time still cannot be matched. The number of times the initial decryption password is entered by the user terminal is counted in real time. If the number of times the initial decryption password is entered reaches the preset number of matching attempts (for example, set to 3 times), the dynamic electronic combination lock is controlled to enter a pause unlocking state (for example, it is in a fixed locked state for 5 consecutive minutes from the current moment and cannot be unlocked) to further improve the security of the charging pile.

[0029] In one embodiment, if the number of times the user enters the initial decryption password reaches the preset matching number, an external alarm function can be added to indicate the current unlocking status, which is more obvious and intuitive for staff.

[0030] like Figure 6 As shown in one embodiment of the present invention, after controlling the dynamic electronic combination lock to unlock in step S31, the following steps may also be included, but are not limited to: Step S4: Record and save the timestamp corresponding to the unlocking of the dynamic electronic combination lock, and record it as the first timestamp; Step S5: Record and save the timestamp corresponding to the most recent dynamic electronic combination lock lock operation after the first timestamp, and denote it as the second timestamp; Step S6: After recording and saving the second timestamp, repeat step S1.

[0031] In this step, the first and second timestamps are recorded and saved to clarify the time of use of the charging pile, which is convenient for staff to check at any time in the background. In the event of a safety accident at the charging pile in the station, the relevant responsible persons can be identified by reviewing the history. Furthermore, after recording and saving the second timestamp, step S1 is executed again, that is, after recording the locking time, a new random password is generated by the hash algorithm, and the process is repeated continuously to ensure that the charging pile is always under security protection.

[0032] To better illustrate the basic working principles of the above embodiments, specific execution examples are given below for detailed explanation.

[0033] The execution process is based on Figure 2 The charging pile implementation shown uses C language and Keil software to edit and debug all related programs. It uses SHA256 hash algorithm to digest and process to generate a new password, and uses RSA encryption and decryption algorithm to encrypt and decrypt the password. Reference Figure 7 First, a random password is generated based on the SHA256 hash algorithm, and then the random password is encrypted using RSA. Finally, the encrypted password is sent to the user's mobile phone via the STC8952 microcontroller. Then, after receiving the encrypted password, the user decodes it and enters the decrypted password by scanning the keys using the matrix keyboard module; Then, the STC8952 microcontroller determines whether the entered password is correct. If it is, it controls the magnet module to unlock; otherwise, it controls it not to unlock and displays the error result to the user through the LCD1602 display module. The whole process lasts for 3 times. If the password is entered incorrectly 3 times, it cannot be unlocked within 5 minutes. The password can only be re-entered after the cooling time has ended. Then, the unlocking and locking times are recorded based on the DS1302 clock module, and the unlocking and locking times are stored in the AT24C02 memory. The first step is then returned to be executed in a loop.

[0034] like Figure 8 As shown, another embodiment of the present invention provides a control method for a dynamic electronic combination lock, which can be applied to the user end, but is not limited to, and may specifically include, but is not limited to, the following steps: Step S7: When the initial encryption password sent by the charging pile is received, the initial decryption password is obtained by decrypting the initial encryption password. The initial encryption password is obtained by the charging pile encrypting the initial random password. The initial random password is generated by the charging pile based on the SHA256 hash algorithm. Step S8: Input the initial decryption password into the charging pile so that the charging pile can control the opening and closing status of the dynamic electronic combination lock based on the matching of the initial decryption password and the initial encryption password.

[0035] It should be noted that the specific implementation of the control method of the dynamic electronic combination lock is similar to the above embodiments. The only difference between them is the method execution side. However, the specific control methods and judgment criteria belong to the same inventive concept. Therefore, the control method of the dynamic electronic combination lock also has similar embodiments and beneficial technical effects. Since the embodiments and beneficial technical effects of the control method of the dynamic electronic combination lock have been described in detail above, the embodiments and beneficial technical effects of the corresponding control method of the dynamic electronic combination lock will not be repeated here.

[0036] Figure 9 This is a schematic diagram of the structure of an electronic device 1000 provided in an embodiment of the present invention. Figure 9 As shown, the electronic device 1000 includes a memory 1100 and a processor 1200. The number of memories 1100 and processors 1200 can be one or more. Figure 9 Taking a memory 1100 and a processor 1200 as an example; the memory 1100 and the processor 1200 in the device can be connected via a bus or other means. Figure 9 Taking the example of a connection between China and Israel via a bus.

[0037] The memory 1100, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the control method of the dynamic electronic combination lock provided in any embodiment of the present invention. The processor 1200 implements the above-described control method of the dynamic electronic combination lock by running the software programs, instructions, and modules stored in the memory 1100.

[0038] The memory 1100 may primarily include a program storage area and a data storage area, wherein the program storage area may store the operating system and application programs required for at least one function. Furthermore, the memory 1100 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 1100 may further include memory remotely located relative to the processor 1200, and these remote memories can be connected to the device via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0039] An embodiment of the present invention also provides a computer-readable storage medium storing computer-executable instructions for performing a control method for a dynamic electronic combination lock as provided in any embodiment of the present invention.

[0040] An embodiment of the present invention also provides a computer program product, including a computer program or computer instructions, which are stored in a computer-readable storage medium. A processor of a computer device reads the computer program or computer instructions from the computer-readable storage medium and executes the computer program or computer instructions, causing the computer device to perform the control method of the dynamic electronic combination lock provided in any embodiment of the present invention.

[0041] The electronic devices and application scenarios described in the embodiments of this invention are for the purpose of more clearly illustrating the technical solutions of the embodiments of this invention, and do not constitute a limitation on the technical solutions provided by the embodiments of this invention. As those skilled in the art will know, with the evolution of electronic devices and the emergence of new application scenarios, the technical solutions provided by the embodiments of this invention are also applicable to similar technical problems.

[0042] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.

[0043] In hardware implementations, the division between functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0044] The terms “component,” “module,” “system,” etc., used in this specification are used to refer to computer-related entities, hardware, firmware, combinations of hardware and software, software, or software in execution. For example, a component can be, but is not limited to, a process running on a processor, a processor, an object, an executable file, an execution thread, a program, or a computer. As illustrated, applications running on computing devices and computing devices can both be components. One or more components may reside in a process or execution thread, and components may be located on a single computer or distributed among two or more computers. Furthermore, these components can be executed from various computer-readable media on which various data structures are stored. Components can communicate, for example, via local or remote processes based on signals having one or more data packets (e.g., data from two components interacting with another component between a local system, a distributed system, or a network, such as the Internet interacting with other systems via signals).

Claims

1. A control method for a dynamic electronic combination lock, characterized in that, When applied to charging stations, the following steps are included: Step S1: Generate an initial random password based on the SHA256 hash algorithm, and encrypt the initial random password to obtain an initial encrypted password; Step S2: Send the initial encryption password to the user terminal so that the user terminal can decrypt the password to obtain the initial decryption password. Step S3: When the initial decryption password input by the user terminal is received, the dynamic electronic combination lock is controlled to open / close based on the matching of the initial decryption password and the initial encryption password.

2. The control method for the dynamic electronic combination lock according to claim 1, characterized in that, The step S1, which encrypts the initial random password to obtain an initial encrypted password, includes the following steps: Step S11: Divide the initial random password into multiple initial password parts, and perform RSA encryption on each initial password part to obtain the block encryption password corresponding to each initial password part. Step S12: Concatenate all the group encryption passwords to obtain the initial encryption password.

3. The control method for the dynamic electronic combination lock according to claim 1, characterized in that, Step S3 includes the following steps: Step S31: When it is determined that the initial decryption password matches the initial encryption password, control the dynamic electronic combination lock to unlock; otherwise, send a real-time error message to the user terminal, wherein the real-time error message indicates that the previously entered initial decryption password cannot be matched.

4. The control method for the dynamic electronic combination lock according to claim 3, characterized in that, Following step S31, the following steps are also included: Step S32: When the initial decryption password input by the user terminal is received again, step S31 is executed again, and the opening and closing status of the dynamic electronic combination lock is monitored in real time. Step S33: When it is detected that the dynamic electronic combination lock is continuously locked, the number of times the user terminal enters the initial decryption password is counted in real time; Step S34: When the number of times the user terminal inputs the initial decryption password reaches the preset matching number, the dynamic electronic combination lock is controlled to enter the pause unlocking state, wherein the pause unlocking state indicates that the dynamic electronic combination lock cannot be unlocked within a preset future time period.

5. The control method for the dynamic electronic combination lock according to claim 3, characterized in that, After controlling the dynamic electronic combination lock to unlock in step S31, the following steps are also included: Step S4: Record and save the timestamp corresponding to the unlocking of the dynamic electronic combination lock, and record it as the first timestamp; Step S5: Record and save the timestamp corresponding to the most recent locking of the dynamic electronic combination lock after the first timestamp, and denote it as the second timestamp; Step S6: With the second timestamp recorded and saved, repeat step S1.

6. A control method for a dynamic electronic combination lock, characterized in that, When applied to the user end, the following steps are included: Step S7: When the initial encryption password sent by the charging pile is received, the initial decryption password is obtained by decrypting the initial encryption password. The initial encryption password is obtained by the charging pile encrypting the initial random password, and the initial random password is generated by the charging pile based on the SHA256 hash algorithm. Step S8: Input the initial decryption password into the charging pile so that the charging pile controls the opening and closing status of the dynamic electronic combination lock based on the matching of the initial decryption password and the initial encryption password.

7. An electronic device, characterized in that, include: At least one processor; At least one memory for storing at least one program; When at least one of the programs is executed by at least one of the processors, the control method for the dynamic electronic combination lock as described in any one of claims 1 to 6 is implemented.

8. A computer-readable storage medium, characterized in that, It stores a processor-executable program, which, when executed by the processor, is used to implement the control method of the dynamic electronic combination lock as described in any one of claims 1 to 6.