CN110276868B - Unlocking method and device based on dynamic password, charging cabinet and storage medium - Google Patents

Unlocking method and device based on dynamic password, charging cabinet and storage medium Download PDF

Info

Publication number
CN110276868B
CN110276868B CN201910530268.9A CN201910530268A CN110276868B CN 110276868 B CN110276868 B CN 110276868B CN 201910530268 A CN201910530268 A CN 201910530268A CN 110276868 B CN110276868 B CN 110276868B
Authority
CN
China
Prior art keywords
cabinet
password
dynamic
opening
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910530268.9A
Other languages
Chinese (zh)
Other versions
CN110276868A (en
Inventor
林义平
赵良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Bunny Power Technology Co ltd
Original Assignee
Shenzhen Bunny Power Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Bunny Power Technology Co ltd filed Critical Shenzhen Bunny Power Technology Co ltd
Priority to CN201910530268.9A priority Critical patent/CN110276868B/en
Publication of CN110276868A publication Critical patent/CN110276868A/en
Application granted granted Critical
Publication of CN110276868B publication Critical patent/CN110276868B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00571Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated by interacting with a central unit
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00896Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys specially adapted for particular uses
    • H02J7/0027
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • G07C2009/0042Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks the transmitted data signal containing a code which is changed
    • G07C2009/00476Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks the transmitted data signal containing a code which is changed dynamically
    • G07C2009/005Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks the transmitted data signal containing a code which is changed dynamically whereby the code is a random code

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Storage Device Security (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The invention relates to the technical field of security and protection, and discloses an unlocking method and device based on a dynamic password, a charging cabinet and a storage medium. The method comprises the following steps: when a first cabinet opening instruction triggered by a user is received, acquiring a dynamic cabinet opening password according to the first cabinet opening instruction; feeding back the dynamic cabinet opening password to a user, and opening the cabinet door according to a first cabinet opening instruction; monitoring a second cabinet opening instruction triggered by a user after detecting that the equipment to be charged is accessed and the cabinet door is closed; after a second cabinet opening instruction is monitored, acquiring a dynamic cabinet opening password input by a user, and verifying the dynamic cabinet opening password; and when the dynamic cabinet opening password is successfully verified, opening the cabinet door. Through the mode, the technical problem that the cabinet opening operation of the charging cabinet equipment in the prior art is too dependent on a network is solved.

Description

Unlocking method and device based on dynamic password, charging cabinet and storage medium
Technical Field
The invention relates to the technical field of security protection, in particular to an unlocking method and device based on a dynamic password, a charging cabinet and a storage medium.
Background
At present, charging cabinet equipment on the market is provided with lock control devices in order to ensure the safety of equipment to be charged, such as an electric bicycle storage battery, and avoid the equipment to be charged from being stolen under the condition of unattended operation.
In addition, for the convenience of users, most charging cabinet devices support code scanning, and the doors are opened through Application programs (apps) installed on the user terminals or other control terminals to charge or take out devices to be charged.
However, the above method is too dependent on the network, and if the charging cabinet device is in a situation that the network cannot be connected due to an unexpected no-signal condition, the user cannot open the cabinet door when taking the battery, which may cause the charging device to be taken out in time, and normal use of the user is affected.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide an unlocking method and device based on a dynamic password, a charging cabinet and a storage medium, and aims to solve the technical problems.
In order to achieve the purpose, the invention provides an unlocking method based on a dynamic password, which comprises the following steps:
when a first cabinet opening instruction triggered by a user is received, acquiring a dynamic cabinet opening password according to the first cabinet opening instruction;
feeding the dynamic cabinet opening password back to the user, and opening a cabinet door according to the first cabinet opening instruction;
monitoring a second cabinet opening instruction triggered by the user after the equipment to be charged is detected to be accessed and the cabinet door is closed;
after the second cabinet opening instruction is monitored, acquiring a dynamic cabinet opening password input by the user, and verifying the dynamic cabinet opening password;
and when the dynamic cabinet opening password is successfully verified, opening the cabinet door.
Preferably, the step of obtaining a dynamic open cabinet password according to the first open cabinet instruction includes:
judging whether the communication connection with the charging management server is disconnected;
if the communication connection with the charging management server is disconnected, generating a cabinet side open cabinet password according to a preset cabinet side dynamic password generation algorithm, and taking the cabinet side open cabinet password as the dynamic open cabinet password;
and if the communication connection with the charging management server is not disconnected, acquiring a server side opening password from the charging management server, and taking the server side opening password as the dynamic opening password, wherein the server side opening password is generated by the charging management server according to a preset server side dynamic password generation algorithm.
Preferably, the step of generating a cabinet-side open cabinet password according to a preset cabinet-side dynamic password generation algorithm and taking the cabinet-side open cabinet password as the dynamic open cabinet password includes:
acquiring biological characteristic information of the user, and acquiring a timestamp of the moment when the user triggers the first cabinet opening instruction;
combining the biological characteristic information and the timestamp according to a preset combination rule to obtain data to be processed;
processing the data to be processed according to the cabinet side dynamic password generation algorithm to generate the cabinet side open password;
and taking the cabinet side opening password as the dynamic opening password.
Preferably, the step of obtaining a server-side open cabinet password from the charging management server and using the server-side open cabinet password as the dynamic open cabinet password includes:
acquiring biological characteristic information of the user, and acquiring a timestamp of the moment when the user triggers the first cabinet opening instruction;
combining the biological characteristic information and the timestamp according to a preset combination rule to obtain data to be processed;
sending the data to be processed to the charging management server so that the charging management server processes the data to be processed according to the server side dynamic password generation algorithm to generate a server side open cabinet password;
and acquiring the server side opening password from the charging management server, and taking the server side opening password as the dynamic opening password.
Preferably, the step of feeding back the dynamic locker opening password to the user includes:
judging whether the communication connection with the user terminal of the user is disconnected;
if the communication connection with the user terminal of the user is disconnected, displaying the dynamic open cabinet password on a display interface;
and if the communication connection with the user terminal of the user is not disconnected, the dynamic cabinet opening password is sent to the user terminal.
Preferably, the step of verifying the dynamic open cabinet password includes:
acquiring identification information carried by the dynamic open cabinet password;
if the identification information is identification information corresponding to the charging cabinet, comparing the dynamic cabinet opening password with the cabinet side cabinet opening password;
and if the identification information is the identification information corresponding to the charging management server, comparing the dynamic cabinet opening password with the server side cabinet opening password.
Preferably, after the step of opening the cabinet door when the dynamic open cabinet password is successfully verified, the method further includes:
and setting the identification information corresponding to the dynamic open cabinet password as invalid.
In addition, in order to achieve the above object, the present invention further provides an unlocking apparatus based on a dynamic password, the apparatus including:
the system comprises a first obtaining module, a second obtaining module and a third obtaining module, wherein the first obtaining module is used for obtaining a dynamic cabinet opening password according to a first cabinet opening instruction triggered by a user when the first cabinet opening instruction is received;
the feedback module is used for feeding the dynamic open cabinet password back to the user;
the control module is used for opening the cabinet door according to the first cabinet opening instruction;
the monitoring module is used for monitoring a second cabinet opening instruction triggered by the user after the equipment to be charged is detected to be accessed and the cabinet door is closed;
the second obtaining module is used for obtaining the dynamic cabinet opening password input by the user after the second cabinet opening instruction is monitored;
the verification module is used for verifying the dynamic open cabinet password;
and the control module is also used for opening the cabinet door when the dynamic cabinet opening password is successfully verified.
In addition, to achieve the above object, the present invention also provides a charging cabinet, the apparatus including: the system comprises a memory, a processor and a dynamic password-based unlocking program stored on the memory and capable of running on the processor, wherein the dynamic password-based unlocking program is configured to realize the steps of the dynamic password-based unlocking method.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, wherein an unlocking program based on a dynamic password is stored on the computer readable storage medium, and when the unlocking program based on the dynamic password is executed by a processor, the steps of the unlocking method based on the dynamic password are implemented.
When a user carries out the operation of opening the cabinet and charging, the dynamic cabinet opening password for taking out the equipment to be charged after subsequent cabinet opening is obtained according to the first cabinet opening instruction triggered by the user, and the dynamic cabinet opening password is fed back to the user, so that the user can use the equipment to be charged after subsequent cabinet opening. And meanwhile, the cabinet door is opened for the user, the user is detected to access the equipment to be charged, and after the cabinet door is closed, a second cabinet opening instruction triggered by the user is continuously monitored, namely, the instruction of taking out the equipment to be charged is taken out. And if the second cabinet opening instruction is monitored, acquiring the dynamic cabinet opening password input by the user, verifying the dynamic cabinet opening password, and finally opening the cabinet door when the dynamic verification password is successfully verified. Through this kind of mode, when treating the battery charging outfit security in the assurance cabinet, realized the operation of opening the cabinet of the cabinet that charges and break away from the reliance to the network for the operation of opening the cabinet under the not good condition of network environment, the user also can conveniently open the cabinet door of the cabinet that charges, takes out the battery charging outfit, has promoted user experience greatly.
Drawings
Fig. 1 is a schematic structural diagram of a charging cabinet in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a first embodiment of an unlocking method based on a dynamic password according to the present invention;
FIG. 3 is a schematic flow chart of a second embodiment of the unlocking method based on dynamic password;
fig. 4 is a block diagram showing the structure of the first embodiment of the unlocking device based on the dynamic password.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a charging cabinet in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the charging cabinet may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory, or may be a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the charging cabinet and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and an unlocking program based on a dynamic password.
In the charging cabinet shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the charging cabinet of the present invention may be disposed in the charging cabinet, and the charging cabinet calls the unlocking program based on the dynamic password stored in the memory 1005 through the processor 1001 and executes the unlocking method based on the dynamic password provided by the embodiment of the present invention.
An embodiment of the present invention provides an unlocking method based on a dynamic password, and referring to fig. 2, fig. 2 is a schematic flow diagram of a first embodiment of the unlocking method based on the dynamic password.
In this embodiment, the unlocking method based on the dynamic password includes the following steps:
and step S10, when a first opening instruction triggered by a user is received, acquiring a dynamic opening password according to the first opening instruction.
Specifically, the unlocking scheme based on the dynamic password provided in this embodiment is mainly applied to a charging cabinet device with a lock control device (for convenience of description, it is referred to as a charging cabinet in the following) and for convenience of the operation of the user, the charging cabinet needs a display screen capable of displaying the dynamic open cabinet password and a function key for inputting the dynamic open cabinet password.
In addition, the above-mentioned first opening command triggered by the user can be roughly divided into two triggering methods in practical application, and for convenience of understanding, the following detailed description is made:
(1) a user directly triggers a certain function key arranged on the charging cabinet, and then the first cabinet opening instruction is generated
Specifically, the network state is not limited in this way, that is, no matter whether the current network environment is good or not, the user can directly trigger the corresponding function key arranged on the charging cabinet, and then the first cabinet opening instruction is generated.
(2) The user triggers the first cabinet opening instruction through the user terminal
Specifically, this method needs to ensure that the current network environment is good, the communication connection between the user terminal and the charging management server is normal, and the communication connection between the charging management server and the charging cabinet is normal. Therefore, the first cabinet opening instruction can be smoothly sent to the charging management server only by the user through the App which is installed on the user terminal and used for triggering the first cabinet opening instruction, and then the charging management server sends the first cabinet opening instruction to the charging cabinet; or the user directly scans the image code displayed on the charging cabinet through other third-party application programs installed on the user terminal, then the first cabinet opening instruction is sent to the charging management server, and then the charging management server sends the first cabinet opening instruction to the charging cabinet.
It should be understood that, the above description is given only for two specific implementation manners for triggering the first open cabinet instruction, and the technical solution of the present invention is not limited in any way, and in a specific application, a person skilled in the art may set the implementation manner as needed, and the present invention is not limited to this.
In addition, in practical application, the functional key may be a mechanical key arranged on the charging cabinet, or may be a virtual key actually on the display screen, and is not limited herein.
As can be seen from the above description, in practical applications, under the influence of a network, the communication connection between the charging cabinet and the charging management server may be disconnected, so that the operation of obtaining the dynamic cabinet opening password according to the first cabinet opening instruction may be divided into two types in practical applications, that is, when the communication connection is disconnected, the charging cabinet directly generates the dynamic cabinet opening password; and when the communication connection is not disconnected, the charging management server generates the dynamic cabinet opening password.
With regard to the implementation of these two modes, in practical applications, the charging cabinet needs to determine whether the communication connection with the charging management server is disconnected.
As to the operation of determining whether the communication connection with the charging management server is disconnected, in practical applications, specifically, the charging cabinet may send a request to the charging management server, and if the charging management server responds within a predetermined time, for example, 2 seconds, and the charging cabinet receives the response, the communication connection between the charging cabinet and the charging management server may be considered not to be disconnected; otherwise, the communication connection with the charging management server is considered to be disconnected.
Correspondingly, if the communication connection with the charging management server is disconnected, generating a cabinet side open cabinet password according to a preset cabinet side dynamic password generation algorithm, and taking the cabinet side open cabinet password as the dynamic open cabinet password; and if the communication connection with the charging management server is not disconnected, acquiring a server side opening password from the charging management server, and taking the server side opening password as the dynamic opening password.
It should be noted that the server-side locker password generated by the charging management server is specifically generated by the charging management server according to a preset server-side dynamic password generation algorithm.
In addition, the server-side dynamic password generation algorithm may be the same as or different from the cabinet-side dynamic password generation algorithm in practical application, and is not limited herein.
In addition, the operation that the charging cabinet directly generates the cabinet-side open cabinet password according to the preset cabinet-side dynamic password generation algorithm and uses the cabinet-side open cabinet password as the dynamic open cabinet password can be realized in practical application according to the following procedures:
(1) and acquiring the biological characteristic information of the user, and acquiring a timestamp of the moment when the user triggers the first opening instruction.
Specifically, the biometric information may be any one or more of face feature information, iris feature information, voiceprint feature information, and fingerprint feature information of the user, which is not limited herein.
Accordingly, the specific manner of acquiring the biometric information may vary depending on the biometric information.
It will be appreciated that this is basically the case when the communication connection between the user terminal of the user and the charging management server is broken and/or the communication connection between the charging management server and the charging cabinet is broken. Therefore, in order to ensure the implementation of this method, the charging cabinet needs to be provided with a camera for acquiring the face feature information and the iris feature information of the user, or a fingerprint identification chip for acquiring the fingerprint feature information of the user, or a voice acquisition unit for acquiring the voiceprint feature information of the user, which is not listed one by one here, and is not limited thereto.
For convenience of understanding, the following description takes the collected biometric information as the facial feature information of the user as an example:
specifically, when the collected biological characteristic information is the face characteristic information of the user, the charging cabinet controls the camera to be started, and then the face image of the user is shot, or a video containing the face of the user is recorded.
And then, extracting the face feature information of the user from the face image or the video by adopting a pre-trained face feature extraction model.
In practical applications, a person skilled in the art can select a suitable machine learning algorithm to train according to needs, such as a convolutional neural network algorithm, and details are not repeated here, nor are any limitations imposed thereon.
(2) And combining the biological characteristic information and the time stamp according to a preset combination rule to obtain the data to be processed.
In particular, before combining the biometric information and the time stamp, the biometric information needs to be converted into a binary code that can be recognized by a computer.
Correspondingly, when the combination operation is carried out, the combination can be carried out according to the sequence of the first biological characteristic information and the timestamp; or the sequential combination of the time stamp and the feature information of the regeneration object; the combination may also be based on the alternate arrangement of the biometric information and the time stamp, which is not listed here, and is not limited to this.
(3) And processing the data to be processed according to the cabinet side dynamic password generation algorithm to generate the cabinet side open password.
Specifically, in order to ensure the security of the generated cabinet-side open-cabinet password, the adopted cabinet-side dynamic password generation algorithm may be specifically a hash algorithm.
Accordingly, regarding the specific use of the hash algorithm, those skilled in the art can refer to the implementation of the relevant data by themselves, and the details are not described here.
In addition, in practical application, a person skilled in the art may also select a suitable cabinet-side dynamic password generation algorithm according to actual needs, which is not limited herein.
(4) And taking the cabinet side opening password as the dynamic opening password.
Accordingly, the operation of obtaining the server-side open cabinet password from the charging management server and using the server-side open cabinet password as the dynamic open cabinet password can be implemented in practical application according to the following procedures:
(1) and acquiring the biological characteristic information of the user, and acquiring a timestamp of the moment when the user triggers the first opening instruction.
Specifically, the biometric information may be any one or more of face feature information, iris feature information, voiceprint feature information, and fingerprint feature information of the user, which is not limited herein.
Accordingly, the specific manner of acquiring the biometric information may vary depending on the biometric information.
It should be understood that this is adopted when the communication connection between the user terminal of the user and the charging management server is not disconnected, and the communication connection between the charging management server and the charging cabinet is not disconnected. Therefore, the operation of collecting the biometric information of the user is specifically completed by the user terminal of the user.
Specifically, the operation of acquiring the biometric information of the user may be completed by the user terminal when the user triggers the first opening instruction; or may be completed by the user terminal after the first cabinet opening instruction is sent to the charging cabinet, which is not limited herein.
(2) And combining the biological characteristic information and the time stamp according to a preset combination rule to obtain the data to be processed.
Specifically, in order to reduce the burden of the processor in the charging cabinet, the operation of obtaining the data to be processed is performed at the user terminal of the user. In practical application, however, the acquired biometric information and the timestamp may also be directly sent to the charging cabinet, and the charging cabinet performs combination to obtain the data to be processed.
(3) And sending the data to be processed to the charging management server so that the charging management server processes the data to be processed according to the server side dynamic password generation algorithm to generate the server side open cabinet password.
(4) And acquiring the server side opening password from the charging management server, and taking the server side opening password as the dynamic opening password.
It should be understood that, the above descriptions are only two specific implementation manners for obtaining the dynamic open cabinet password according to the first open cabinet instruction, and the technical solution of the present invention is not limited in any way, and in a specific application, a person skilled in the art may set the implementation manner as needed, and the present invention is not limited to this.
And step S20, feeding back the dynamic cabinet opening password to the user, and opening the cabinet door according to the first cabinet opening instruction.
Specifically, because the communication connection between the charging cabinet and the user terminal of the user may be disconnected due to the influence of the network, when the dynamic open cabinet password is fed back to the user, the charging cabinet needs to first determine whether the communication connection with the user terminal of the user is disconnected.
Correspondingly, if the communication connection with the user terminal of the user is disconnected, displaying the dynamic open cabinet password on a display interface; and if the communication connection with the user terminal of the user is not disconnected, the dynamic cabinet opening password is sent to the user terminal.
It should be understood that what is given above is only a specific implementation manner for feeding back the dynamic open cabinet password to the user, and the technical solution of the present invention is not limited at all, and in a specific application, a person skilled in the art may set the dynamic open cabinet password as needed, and the present invention is not limited to this.
And step S30, monitoring a second cabinet opening instruction triggered by the user after the condition that the equipment to be charged is accessed and the cabinet door is closed is detected.
And step S40, after the second opening instruction is monitored, acquiring the dynamic opening password input by the user, and verifying the dynamic opening password.
Specifically, the dynamic locker password may be generated by the charging locker or the charging management server. Therefore, in order to facilitate the distinction, in practical application, different identification numbers may be added to the identification information corresponding to the dynamic open cabinet password, so as to distinguish whether the dynamic open cabinet password input by the user is generated by the charging cabinet or the charging management server, and further select different comparison objects for comparison.
Therefore, the operation of verifying the dynamic open cabinet password is substantially as follows:
firstly, acquiring identification information carried by the dynamic open cabinet password;
then, judging whether the identification number carried in the identification information is the identification information corresponding to the charging cabinet or the identification information corresponding to the charging management server, and further determining whether the identification information is the identification information corresponding to the charging cabinet or the identification information corresponding to the charging management server;
correspondingly, if the identification information is identification information corresponding to the charging cabinet, comparing the dynamic cabinet opening password with the cabinet side cabinet opening password; and if the identification information is the identification information corresponding to the charging management server, comparing the dynamic cabinet opening password with the server side cabinet opening password.
It should be understood that the above is only a specific implementation manner for verifying the dynamic open cabinet password, and the technical solution of the present invention is not limited at all, and in a specific application, a person skilled in the art may set the implementation manner as needed, and the present invention is not limited to this.
And step S50, opening the cabinet door when the dynamic cabinet opening password is successfully verified.
Through the above description, it is not difficult to discover that the unlocking method based on the dynamic password provided in the embodiment introduces the dynamic open cabinet password on the basis of only supporting the code scanning open cabinet mode at present, so that the convenience of users can open the cabinet door of the charging cabinet by using the dynamic open cabinet password under the condition that the network environment is not good, and then the charging equipment to be taken out is taken out, and the user experience is greatly improved.
Referring to fig. 3, fig. 3 is a schematic flow chart of a second embodiment of an unlocking method based on a dynamic password according to the present invention.
Based on the first embodiment, the unlocking method based on the dynamic password in this embodiment further includes, after the step S50:
and step S60, setting the identification information corresponding to the dynamic open cabinet password as invalid.
Specifically, in order to enable the dynamic cabinet-opening password to be used only once and not to be fully used, when the dynamic cabinet-opening password is successfully verified, after the cabinet door is opened, the identification information corresponding to the dynamic cabinet-opening password is set to be invalid, so that the dynamic cabinet-opening password is invalid, and after the cabinet door is closed, any user cannot use the dynamic cabinet-opening password to open the cabinet door again, so that the security level of the dynamic cabinet-opening password is further improved, and the condition that the equipment to be charged in the charging cabinet is not stolen by other people is effectively guaranteed.
Correspondingly, in order to reduce the occupation of the internal memory space of the charging cabinet side and the charging management server side as much as possible, after the identification information corresponding to the dynamic open cabinet password is set to be invalid, the cabinet side open cabinet password recorded in the internal memory of the charging cabinet side and the server open cabinet password recorded in the internal memory of the charging management server side can be deleted.
Through the above description, it is not difficult to find that, in the unlocking method based on the dynamic password provided in this embodiment, after the dynamic open cabinet password is used to complete one open cabinet operation, the identification information corresponding to the dynamic open cabinet password is set to be invalid, so that the dynamic open cabinet password can be used only once and cannot be reused, thereby further improving the security.
In addition, the opening password is dynamically generated and is invalidated after being used every time, so that large-capacity storage spaces do not need to be additionally arranged on the charging cabinet side and the charging management server side, the dynamic opening passwords are stored and managed, and the password management cost does not need to be additionally increased.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where an unlocking program based on a dynamic password is stored on the computer-readable storage medium, and when the unlocking program based on the dynamic password is executed by a processor, the steps of the unlocking method based on the dynamic password are implemented as described above.
Referring to fig. 4, fig. 4 is a block diagram showing the structure of the first embodiment of the unlocking device based on the dynamic password according to the present invention.
As shown in fig. 4, the unlocking device based on the dynamic password according to the embodiment of the present invention includes: a first acquisition module 4001, a feedback module 4002, a control module 4003, a monitoring module 4004, a second acquisition module 4005, and a verification module 4006.
The first obtaining module 4001 is configured to obtain a dynamic cabinet opening password according to a first cabinet opening instruction triggered by a user when the first cabinet opening instruction is received; a feedback module 4002, configured to feed back the dynamic open cabinet password to the user; the control module 4003 is used for opening the cabinet door according to the first cabinet opening instruction; the monitoring module 4004 is configured to monitor a second cabinet opening instruction triggered by the user after detecting that the device to be charged is accessed and the cabinet door is closed; the second obtaining module 4005 is configured to obtain the dynamic cabinet opening password input by the user after the second cabinet opening instruction is monitored; and the verification module 4006 is used for verifying the dynamic cabinet opening password.
Correspondingly, the control module 4003 also opens the cabinet door when the dynamic cabinet-opening password is successfully verified.
It should be understood that each of the above mentioned modules is a logical module, and in practical applications, a logical unit may be one physical unit, may be a part of one physical unit, and may also be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, a unit which is not so closely related to solve the technical problem proposed by the present invention is not introduced in the present embodiment, but it does not indicate that there is no other unit in the present embodiment.
In order to facilitate understanding of specific processes of each flow in the actual application of the unlocking apparatus based on the dynamic password provided in the present embodiment, the following specifically describes the processes of the first obtaining module 4001, the feedback module 4002, and the verification module 4005.
Specifically, when the first obtaining module 4001 obtains the dynamic open cabinet password according to the first open cabinet instruction, the following process is implemented:
firstly, whether the communication connection between the charging cabinet and the charging management server is disconnected or not is judged.
Correspondingly, if the communication connection with the charging management server is disconnected, generating a cabinet side open cabinet password according to a preset cabinet side dynamic password generation algorithm, and taking the cabinet side open cabinet password as the dynamic open cabinet password; and if the communication connection with the charging management server is not disconnected, acquiring a server side opening password from the charging management server, and taking the server side opening password as the dynamic opening password.
It should be noted that the server-side locker password generated by the charging management server is specifically generated by the charging management server according to a preset server-side dynamic password generation algorithm.
In addition, the server-side dynamic password generation algorithm may be the same as or different from the cabinet-side dynamic password generation algorithm in practical application, and is not limited herein.
In addition, regarding the operation that the charging cabinet generates the cabinet-side open cabinet password according to the preset cabinet-side dynamic password generation algorithm and uses the cabinet-side open cabinet password as the dynamic open cabinet password, the specific implementation flow is substantially as follows:
firstly, acquiring biological characteristic information of the user, and acquiring a timestamp of a moment when the user triggers the first cabinet opening instruction;
then, combining the biological characteristic information and the timestamp according to a preset combination rule to obtain data to be processed;
then, processing the data to be processed according to the cabinet side dynamic password generation algorithm to generate the cabinet side open password;
and finally, taking the cabinet side cabinet opening password as the dynamic cabinet opening password.
Specifically, the biometric information may be any one or more of face feature information, iris feature information, voiceprint feature information, and fingerprint feature information of the user, which is not limited herein.
Accordingly, the operation of obtaining the server-side locker password from the charging management server and using the server-side locker password as the dynamic locker password is substantially as follows:
firstly, acquiring biological characteristic information of the user, and acquiring a timestamp of a moment when the user triggers the first cabinet opening instruction;
then, combining the biological characteristic information and the timestamp according to a preset combination rule to obtain data to be processed;
then, the data to be processed is sent to the charging management server, so that the charging management server processes the data to be processed according to the server side dynamic password generation algorithm to generate a server side open cabinet password;
and finally, acquiring the server side opening password from the charging management server, and taking the server side opening password as the dynamic opening password.
It should be understood that, the above descriptions are only two specific implementation manners for obtaining the dynamic open cabinet password according to the first open cabinet instruction, and the technical solution of the present invention is not limited in any way, and in a specific application, a person skilled in the art may set the implementation manner as needed, and the present invention is not limited to this.
Regarding the operation of the feedback module 4002 for feeding back the dynamic locker opening password to the user, the specific implementation flow is substantially as follows:
firstly, judging whether the communication connection with the user terminal of the user is disconnected;
correspondingly, if the communication connection with the user terminal of the user is disconnected, displaying the dynamic open cabinet password on a display interface; and if the communication connection with the user terminal of the user is not disconnected, the dynamic cabinet opening password is sent to the user terminal.
It should be understood that what is given above is only a specific implementation manner for feeding back the dynamic open cabinet password to the user, and the technical solution of the present invention is not limited at all, and in a specific application, a person skilled in the art may set the dynamic open cabinet password as needed, and the present invention is not limited to this.
Regarding the operation of the verification module 4005 for verifying the dynamic open cabinet password, the specific implementation flow is roughly as follows:
firstly, acquiring identification information carried by the dynamic open cabinet password;
correspondingly, if the identification information is identification information corresponding to the charging cabinet, comparing the dynamic cabinet opening password with the cabinet side cabinet opening password; and if the identification information is the identification information corresponding to the charging management server, comparing the dynamic cabinet opening password with the server side cabinet opening password.
It should be understood that the above is only a specific implementation manner for verifying the dynamic open cabinet password, and the technical solution of the present invention is not limited at all, and in a specific application, a person skilled in the art may set the implementation manner as needed, and the present invention is not limited to this.
Through the above description, it is not difficult to discover that the unlocking means based on the dynamic password that this embodiment provided only supports to sweep the basis of sign indicating number uncork mode at present, introduces the dynamic uncork password to can be under the not good condition of network environment, convenience of customers uses the dynamic uncork password to open the cabinet door of the cabinet that charges, and then takes out and treats battery charging outfit, has promoted user experience greatly.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment may refer to the unlocking method based on the dynamic password provided in any embodiment of the present invention, and are not described herein again.
The second embodiment of the unlocking device based on the dynamic password of the present invention is proposed based on the first embodiment of the unlocking device based on the dynamic password.
In this embodiment, the unlocking device based on the dynamic password further includes: and setting a module.
The setting module is used for setting the identification information corresponding to the dynamic open cabinet password as invalid after the dynamic open cabinet password is successfully verified and the control module opens the cabinet door.
It should be understood that each of the above mentioned modules is a logical module, and in practical applications, a logical unit may be one physical unit, may be a part of one physical unit, and may also be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, a unit which is not so closely related to solve the technical problem proposed by the present invention is not introduced in the present embodiment, but it does not indicate that there is no other unit in the present embodiment.
Through the above description, it is not difficult to find that, the unlocking device based on the dynamic password provided by the embodiment sets the identification information corresponding to the dynamic open cabinet password to be invalid after the dynamic open cabinet password is used to complete one-time open cabinet operation, so that the dynamic open cabinet password can be used only once and cannot be reused, and thus the security is further improved.
In addition, the opening password is dynamically generated and is invalidated after being used every time, so that large-capacity storage spaces do not need to be additionally arranged on the charging cabinet side and the charging management server side, the dynamic opening passwords are stored and managed, and the password management cost does not need to be additionally increased.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment may refer to the unlocking method based on the dynamic password provided in any embodiment of the present invention, and are not described herein again.
Further, it is to be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g. Read Only Memory (ROM)/RAM, magnetic disk, optical disk), and includes several instructions for enabling a terminal device (e.g. a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. An unlocking method based on a dynamic password is characterized by comprising the following steps:
when a first cabinet opening instruction triggered by a user is received, acquiring a dynamic cabinet opening password according to the first cabinet opening instruction;
feeding the dynamic cabinet opening password back to the user, and opening a cabinet door according to the first cabinet opening instruction;
monitoring a second cabinet opening instruction triggered by the user after the equipment to be charged is detected to be accessed and the cabinet door is closed, wherein the second cabinet opening instruction is an instruction for taking out the equipment to be charged;
after the second cabinet opening instruction is monitored, acquiring a dynamic cabinet opening password input by the user, and verifying the dynamic cabinet opening password;
when the dynamic cabinet opening password is successfully verified, opening a cabinet door;
the step of obtaining the dynamic cabinet opening password according to the first cabinet opening instruction comprises the following steps:
judging whether the communication connection with the charging management server is disconnected;
if the communication connection with the charging management server is disconnected, generating a cabinet side open cabinet password according to a preset cabinet side dynamic password generation algorithm, and taking the cabinet side open cabinet password as the dynamic open cabinet password;
and if the communication connection with the charging management server is not disconnected, acquiring a server side opening password from the charging management server, and taking the server side opening password as the dynamic opening password, wherein the server side opening password is generated by the charging management server according to a preset server side dynamic password generation algorithm.
2. The method of claim 1, wherein the step of generating a cabinet-side open cabinet password according to a preset cabinet-side dynamic password generation algorithm and using the cabinet-side open cabinet password as the dynamic open cabinet password comprises:
acquiring biological characteristic information of the user, and acquiring a timestamp of the moment when the user triggers the first cabinet opening instruction;
combining the biological characteristic information and the timestamp according to a preset combination rule to obtain data to be processed;
processing the data to be processed according to the cabinet side dynamic password generation algorithm to generate the cabinet side open password;
and taking the cabinet side opening password as the dynamic opening password.
3. The method of claim 1, wherein the step of obtaining a server-side locker password from the charge management server and using the server-side locker password as the dynamic locker password comprises:
acquiring biological characteristic information of the user, and acquiring a timestamp of the moment when the user triggers the first cabinet opening instruction;
combining the biological characteristic information and the timestamp according to a preset combination rule to obtain data to be processed;
sending the data to be processed to the charging management server so that the charging management server processes the data to be processed according to the server side dynamic password generation algorithm to generate a server side open cabinet password;
and acquiring the server side opening password from the charging management server, and taking the server side opening password as the dynamic opening password.
4. The method of any of claims 1 to 3, wherein the step of feeding back the dynamic locker code to the user comprises:
judging whether the communication connection with the user terminal of the user is disconnected;
if the communication connection with the user terminal of the user is disconnected, displaying the dynamic open cabinet password on a display interface;
and if the communication connection with the user terminal of the user is not disconnected, the dynamic cabinet opening password is sent to the user terminal.
5. The method of any of claims 1 to 3, wherein the step of verifying the dynamic locker code comprises:
acquiring identification information carried by the dynamic open cabinet password;
if the identification information is identification information corresponding to the charging cabinet, comparing the dynamic cabinet opening password with the cabinet side cabinet opening password;
and if the identification information is the identification information corresponding to the charging management server, comparing the dynamic cabinet opening password with the server side cabinet opening password.
6. The method of any of claims 1 to 3, wherein after the step of opening a cabinet door when the dynamic open cabinet password authentication is successful, the method further comprises:
and setting the identification information corresponding to the dynamic open cabinet password as invalid.
7. An unlocking device based on a dynamic password, which is characterized by comprising:
the system comprises a first obtaining module, a second obtaining module and a third obtaining module, wherein the first obtaining module is used for obtaining a dynamic cabinet opening password according to a first cabinet opening instruction triggered by a user when the first cabinet opening instruction is received;
the feedback module is used for feeding the dynamic open cabinet password back to the user;
the control module is used for opening the cabinet door according to the first cabinet opening instruction;
the monitoring module is used for monitoring a second cabinet opening instruction triggered by the user after the equipment to be charged is detected to be accessed and the cabinet door is closed, wherein the second cabinet opening instruction is an instruction for taking out the equipment to be charged;
the second obtaining module is used for obtaining the dynamic cabinet opening password input by the user after the second cabinet opening instruction is monitored;
the verification module is used for verifying the dynamic open cabinet password;
the control module is also used for opening the cabinet door when the dynamic cabinet opening password is successfully verified;
the first acquisition module is also used for judging whether the communication connection with the charging management server is disconnected; if the communication connection with the charging management server is disconnected, generating a cabinet side open cabinet password according to a preset cabinet side dynamic password generation algorithm, and taking the cabinet side open cabinet password as the dynamic open cabinet password; and if the communication connection with the charging management server is not disconnected, acquiring a server side opening password from the charging management server, and taking the server side opening password as the dynamic opening password, wherein the server side opening password is generated by the charging management server according to a preset server side dynamic password generation algorithm.
8. A charging cabinet, characterized in that the charging cabinet comprises: a memory, a processor, and a dynamic password based unlocking program stored on the memory and executable on the processor, the dynamic password based unlocking program being configured to implement the steps of the dynamic password based unlocking method according to any one of claims 1 to 6.
9. A computer-readable storage medium, wherein the computer-readable storage medium stores thereon a dynamic password-based unlocking program, and the dynamic password-based unlocking program, when executed by a processor, implements the steps of the dynamic password-based unlocking method according to any one of claims 1 to 6.
CN201910530268.9A 2019-06-18 2019-06-18 Unlocking method and device based on dynamic password, charging cabinet and storage medium Active CN110276868B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910530268.9A CN110276868B (en) 2019-06-18 2019-06-18 Unlocking method and device based on dynamic password, charging cabinet and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910530268.9A CN110276868B (en) 2019-06-18 2019-06-18 Unlocking method and device based on dynamic password, charging cabinet and storage medium

Publications (2)

Publication Number Publication Date
CN110276868A CN110276868A (en) 2019-09-24
CN110276868B true CN110276868B (en) 2021-05-25

Family

ID=67961029

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910530268.9A Active CN110276868B (en) 2019-06-18 2019-06-18 Unlocking method and device based on dynamic password, charging cabinet and storage medium

Country Status (1)

Country Link
CN (1) CN110276868B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105701896A (en) * 2016-02-29 2016-06-22 宇龙计算机通信科技(深圳)有限公司 Fingerprint authorization unlocking method and device and terminals
CN106846654A (en) * 2017-01-25 2017-06-13 广州极酷物联智能科技有限公司 Intelligent storage cabinet, system and access bag method
CN107622594A (en) * 2017-08-21 2018-01-23 美的智慧家居科技有限公司 Lease control method, locker and the remote service end of shared storage tank
CN107622581A (en) * 2017-10-23 2018-01-23 成都亿佰达电子科技有限公司 A kind of charging cabinet for mobile phone charging
CN108154587A (en) * 2017-12-28 2018-06-12 深圳市小快联科技有限公司 A kind of method and system for switching bicycle lock
CN108877064A (en) * 2018-07-30 2018-11-23 深圳春沐源控股有限公司 Self-service system for charging, self-service charging method
CN109712328A (en) * 2018-07-13 2019-05-03 深圳共享电源科技有限公司 A kind of intelligent charge cabinet and charging method based on Internet of Things

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10475259B2 (en) * 2017-04-03 2019-11-12 Ronald Carter Security system and method of using same

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105701896A (en) * 2016-02-29 2016-06-22 宇龙计算机通信科技(深圳)有限公司 Fingerprint authorization unlocking method and device and terminals
CN106846654A (en) * 2017-01-25 2017-06-13 广州极酷物联智能科技有限公司 Intelligent storage cabinet, system and access bag method
CN107622594A (en) * 2017-08-21 2018-01-23 美的智慧家居科技有限公司 Lease control method, locker and the remote service end of shared storage tank
CN107622581A (en) * 2017-10-23 2018-01-23 成都亿佰达电子科技有限公司 A kind of charging cabinet for mobile phone charging
CN108154587A (en) * 2017-12-28 2018-06-12 深圳市小快联科技有限公司 A kind of method and system for switching bicycle lock
CN109712328A (en) * 2018-07-13 2019-05-03 深圳共享电源科技有限公司 A kind of intelligent charge cabinet and charging method based on Internet of Things
CN108877064A (en) * 2018-07-30 2018-11-23 深圳春沐源控股有限公司 Self-service system for charging, self-service charging method

Also Published As

Publication number Publication date
CN110276868A (en) 2019-09-24

Similar Documents

Publication Publication Date Title
CN107832670B (en) Face recognition method and related product
US10867199B2 (en) Data update method for face-to-unlock authentication, authentication device, and non-volatile storage medium
CN106487511B (en) Identity authentication method and device
US9122913B2 (en) Method for logging a user in to a mobile device
CN107808127B (en) Face recognition method and related product
CN110502886B (en) Multiple identity authentication method, device, terminal and computer storage medium
CN108804006B (en) Unlocking method, device, equipment and storage medium for wearable equipment
CN107145772B (en) Terminal equipment security control method and device and terminal equipment
CN109117616B (en) Verification method and device, electronic equipment and computer readable storage medium
CN108900536B (en) Authentication method, authentication device, computer equipment and storage medium
CN104899492A (en) Device capable of carrying out fingerprint identification login and replacing password of operating system in fixed time and use method
CN107437016B (en) Application control method and related product
CN105844737A (en) Camera based electronic lock system and use method
CN104021358A (en) Anti-theft control method and device for mobile terminal
JP6267025B2 (en) Communication terminal and communication terminal authentication method
CN115758398A (en) Access control data processing method and device, access control system and storage medium
CN106469269B (en) A kind of method, apparatus and terminal of Password Management
CN111222172A (en) Electronic signature method and system for mobile terminal based on face real-name authentication protection
CN208766774U (en) Mobile power source leased machine
CN110276868B (en) Unlocking method and device based on dynamic password, charging cabinet and storage medium
CN104937602B (en) Privacy protection method and electronic equipment
CN108682080A (en) Mobile power rent method and mobile power leased machine
CN110719257A (en) Method, device and equipment for managing authority of single-page application and storage medium
CN110867002A (en) Door opening mode setting method, intelligent lock and storage medium
CN111062010B (en) Identity verification method, device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant