Equipment unlocking method and device, electronic equipment and storage medium
By obtaining the editing operation results of the device input component, the second information of the data blocking status is generated, which solves the problem that production equipment cannot be unlocked remotely after the expiration of the expiration of the production equipment, and realizes remote unlocking and concealed unlocking under network conditions.
Patent Information
- Application Number
- CN202510441384.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-09
- Publication Date
- 2025-07-25
AI Technical Summary
In the prior art, production equipment rental cannot be unlocked remotely after expiration, and manual or network connection is required for unlocking, resulting in a cumbersome and costly unlocking process, especially in the absence of network or long-distance occasions.
By obtaining the input component editing operation results of the device, the second information of the data blocking state is generated and matched with the pre-stored third information, remote unlocking of the device state is realized, ensuring the concealment of the unlocking process.
Remote unlocking of devices without network conditions is realized, improving the concealment of unlocking passwords, avoiding the device being cracked, and reducing unlocking costs.
Smart Images

Figure CN120372598A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of equipment operation and maintenance, and particularly to a method and device for unlocking equipment, an electronic device, and a storage medium. Background Art
[0002] In the production and manufacturing of products, the purchase of production equipment often accounts for a large amount of costs. Therefore, many enterprises choose to lease production equipment for production. After the lease of the production equipment expires, the production equipment will be locked until the next lease.
[0003] However, currently, most unlocking operations require manual on-site processing or remote processing with the device connected to the network. In some special situations (such as no network on-site, the device is far from the production or operation and maintenance party), the device decryption work is too cumbersome. Summary of the Invention
[0004] The present invention provides a method and device for unlocking equipment, an electronic device, and a storage medium to solve the problem that the equipment cannot be remotely unlocked.
[0005] According to one aspect of the present invention, a method for unlocking equipment is provided. The method includes:
[0006] In response to a first operation on a first device, obtain first information of the first device. The first operation is used to indicate an editing operation performed on at least one input component of the first device. The first device is a device that needs to be unlocked by entering a password, and the first information is the result of the editing operation on the input component of the first device;
[0007] Determine second information of the first device according to the first information of the first device. The second information is used to indicate the password input corresponding to the result of the editing operation of the input component of the first device. Each result of the editing operation corresponding to the input component is pre-configured with a password input value, and the second information is in a data shielding state;
[0008] Set the state of the first device to a first state according to the second information and third information. The first state is used to describe that the device is not locked. The third information is stored in the first device and is used to unlock the first device.
[0009] According to another aspect of the present invention, a device for unlocking equipment is provided. The device includes:
[0010] A first information determining module, configured to obtain first information of the first device in response to a first operation on the first device, where the first operation is used to indicate an editing operation performed on at least one input component of the first device, the first device is a device that needs to be unlocked by entering a password, and the first information is an editing operation result of the input component of the first device;
[0011] A second information determining module, configured to determine second information of the first device according to the first information of the first device, where the second information is used to indicate a password input corresponding to the editing operation result of the input component of the first device, and a password input value is pre-configured for each editing operation result corresponding to the input component, and the second information is in a data shielding state;
[0012] A status setting module, configured to set the status of the first device to a first status according to the second information and third information; the first status is used to describe that the device is not locked; the third information is information stored in the first device and used to unlock the first device.
[0013] According to another aspect of the present invention, there is provided an electronic device, where the electronic device includes:
[0014] At least one processor; and
[0015] A memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the device unlocking method according to any embodiment of the present invention.
[0017] According to another aspect of the present invention, there is provided a computer-readable storage medium, where the computer-readable storage medium stores computer instructions, and the computer instructions are used to implement the device unlocking method according to any embodiment of the present invention when executed by a processor.
[0018] The technical solution of the embodiment of the present invention obtains the first information of the first device by responding to the first operation on the first device; determines the second information of the first device according to the first information of the first device, so that the generated second information can be the same as or different from the first information, thereby further improving the concealment of the unlocking password in the first device, and thus reducing the possibility of the unlocking password of the first device being deciphered. By setting the state of the first device to the first state according to the second information and the third information, it can be ensured that the unlocking process in the first device cannot be directly obtained by the outside world, thereby ensuring the concealment of the unlocking process of the first device, and further avoiding the problem that the first device is cracked by the user. The combined use of the above methods can realize remotely transmitting the unlocking password to the device user and unlocking by the user in the case where the device has no network and it is difficult for the device manufacturer and the operation and maintenance party to directly unlock the device, so as to complete the remote unlocking while avoiding the problem that the user cracks the unlocking method of the first device according to the password.
[0019] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present invention, nor is it used to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0021] Figure 1 is a flowchart of a device unlocking method provided in Embodiment 1 of the present invention;
[0022] Figure 2 is a flowchart of another device unlocking method provided in Embodiment 2 of the present invention;
[0023] Figure 3 is a flowchart of another device unlocking method provided in Embodiment 3 of the present invention
[0024] Figure 4 is a schematic structural diagram of a device unlocking device provided in Embodiment 4 of the present invention;
[0025] Figure 5 is a schematic structural diagram of an electronic device for implementing the device unlocking method of the embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0026] To enable those skilled in the art to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0027] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0028] Embodiment 1
[0029] Figure 1 A flowchart of a device unlocking method is provided for Embodiment 1 of the present invention. This embodiment is applicable to the situation of remotely unlocking a device when there is no network connection and the device manufacturer and the operation and maintenance party cannot unlock the device on site. This method can be executed by a device unlocking device, which can be implemented in the form of hardware and / or software, and the device unlocking device can be configured in an electronic device with data processing capabilities. As Figure 1 shown, the method includes:
[0030] S110. In response to a first operation on a first device, obtain first information of the first device. The first operation is used to indicate an editing operation performed on at least one input component of the first device. The first device is a device that needs to be unlocked by entering a password, and the first information is the result of the editing operation on the input component of the first device.
[0031] The first device is a device that regularly locks the machine and stops production or functional operation. The operation of the first device is in a state without network connection and can be remotely unlocked. When the running time of the first device reaches a preset time point, it will lock the machine and operate normally after subsequent unlocking. The first device can be a router, a production line controller, a production device, etc. The production device can be used to directly or indirectly generate products or product parts, etc. The first operation can be the operation required when unlocking the production device. The first operation includes, but is not limited to, inputting characters such as numbers and / or letters, voice input, etc. The input component can be a device for inputting information to the first device. The input component can be a keyboard, a short-circuit line, a microphone, etc. The input component can be directly connected to the first device or connected by means of wireless communication, etc.
[0032] In actual work, it may occur that the location of the device is far from the device manufacturer or the operation and maintenance party, which makes it difficult for the device manufacturer or the operation and maintenance party to go to the location of the first device in time for unlocking. In this case, if the first device cannot be remotely unlocked through the network either, it is necessary for the device manufacturer or the operation and maintenance party to dispatch staff for on-site unlocking. This unlocking method is cumbersome and the unlocking cost is too high. When the device user urgently needs to unlock, it is difficult to unlock the device in time.
[0033] For this, obtain the operation prompt information of the first operation through phone calls, text messages, and other remote communication software, and determine the specific operation method of the first operation according to the operation prompt information, and perform an editing operation on at least one input component of the first device according to the first operation, so as to obtain the first information.
[0034] Exemplarily, the device user A can communicate with the manufacturer or the operation and maintenance party B of the first device through text messages, phone calls, etc., so as to obtain the operation prompt information that can determine the first operation. The device user A performs the first operation on the input component of the first device through the operation prompt information of the first operation, and generates the first information after completing the first operation.
[0035] In the above example, the input component can be a keyboard composed of buttons that can respectively input 0-9. The operation prompt information corresponding to the first operation is the button that needs to be pressed when performing the first operation. Press the keys on the keyboard according to the operation prompt information, that is, perform the first operation. After the key sequence is 1-2-3, the 1-2-3 received by the keyboard is the first information.
[0036] S120. Determine the second information of the first device according to the first information of the first device. The second information is used to indicate the password input corresponding to the editing operation result of the input component of the first device. A password input value is pre-configured for the editing operation result corresponding to the input component, and the second information is in a data shielding state.
[0037] The second information can be the information output after the input component undergoes a first operation. The second information can be a combination of one or more characters such as numbers and letters. That is, the password input value pre-configured for the editing operation result corresponding to the input component can be in various forms such as numbers or characters. The second information is not externally displayed and is only stored within the first device.
[0038] The input component can map the first information to change the first information, thereby generating the second information, or not map the first information so that the first information is the same as the second information.
[0039] To ensure that the unlocking process cannot be determined by parties other than the device manufacturer and operator of the first device, which may lead to the first device being unlocked by non-device manufacturers and operators, the second information is in a data shielding state when it is generated.
[0040] Since each input component pre-configures a password input value for the editing operation result, after the first device receives the first information, it will map the first information to the second information according to the pre-configured password input value.
[0041] The password input value is not necessarily a number and can also be other content such as letters and symbols.
[0042] Exemplarily, taking the input component as the keys from 0 to 9 as an example, when the first information is "123", that is, after pressing the input components representing "1", "2", and "3" respectively, the input component will map the pressed numbers to the pre-configured password input values. For example, the pre-configured password input value for the input component representing "1" is "1", the pre-configured password input value for the input component representing "2" is "2", and the pre-configured password input value for the input component representing "3" is "3". At this time, the second information is also "123".
[0043] In addition to the above method, the password input value pre-configured for the editing operation result corresponding to the input component can be different from the prompt information externally prompted by the input component.
[0044] Exemplarily, taking the input components numbered 0 - 9 as an example, when the first information is "123", that is, after pressing the input component representing "1", the input component representing "2", and the input component representing "3" respectively, the input components will map the pressed numbers to the pre - configured password input values. For example, the pre - configured password input value for the input component representing "1" is "2", the pre - configured password input value for the input component representing "2" is "3", and the pre - configured password input value for the input component representing "3" is "4". At this time, the second information is also "234".
[0045] By determining the second information of the first device according to the first information of the first device, the generated second information can be the same as or different from the first information, thereby further improving the concealment of the unlocking password in the first device, and thus reducing the possibility of the unlocking password of the first device being deciphered.
[0046] S130. According to the second information and the third information, set the state of the first device to the first state; the first state is used to describe that the device is not locked; the third information is stored in the first device and is used to unlock the first device.
[0047] The third information can be an array or a string composed of letters and / or numbers, etc. The third information is not externally displayed and is only stored in the first device.
[0048] Since the third information for unlocking is stored in the first device, it is only necessary to judge the second information and the third information, and after passing the judgment, it can be determined that the unlocking is completed. At this time, the state of the first device can be set to the first state. For the judgment of the second information and the third information, it can be judged whether the second information is the same as the third information, or whether the third information is included in the second information, or whether the second information and the third information meet the pre - set corresponding rules, etc. for judgment.
[0049] Exemplarily, when the second information is "123" and the third information is "123", the second information and the third information can be compared one by one to judge whether the second information is the same as the third information. Since the second information is "123" and the third information is also "123", it can be determined that the two are the same at this time, and the state of the first device is set to the first state at this time.
[0050] Exemplarily, when the second information is "12345" and the third information is "234", the second information and the third information can be compared to judge whether the third information is included in the second information. Since the second information is "12345" and the third information is "234", it can be determined that the third information is included in the second information at this time, and the state of the first device is set to the first state at this time.
[0051] Exemplarily, when the second information is "123" and the third information is "234", if the corresponding rule between the second information and the third information is that each digit in the second information is incremented by 1 to generate the third information, the second information and the third information can be compared to determine whether the second information contains the third information. Since the second information is "12345" and the third information is "234", it can be determined at this time that the second information contains the third information, and at this time, the state of the first device is set to the first state.
[0052] By setting the state of the first device to the first state according to the second information and the third information, it can be ensured that the unlocking process in the first device cannot be directly obtained by the outside world, thereby ensuring the concealment of the unlocking process of the first device, and further avoiding the problem that the first device is cracked by the user.
[0053] According to the technical solution of the embodiment of the present invention, by responding to the first operation on the first device, the first information of the first device is obtained; the second information of the first device is determined according to the first information of the first device, so that the generated second information can be the same as or different from the first information, thereby further improving the concealment of the unlocking password in the first device, and thus reducing the possibility of the unlocking password of the first device being deciphered. By setting the state of the first device to the first state according to the second information and the third information, it can be ensured that the unlocking process in the first device cannot be directly obtained by the outside world, thereby ensuring the concealment of the unlocking process of the first device, and further avoiding the problem that the first device is cracked by the user. The combined use of the above methods can realize that when the device has no network and it is difficult for the device manufacturer and the operation and maintenance party to directly unlock it, the unlocking password is remotely transmitted to the device user, and the user unlocks it, so as to complete the remote unlocking while avoiding the problem that the user cracks the unlocking method of the first device according to the password.
[0054] Embodiment Two
[0055] Figure 2 A flowchart of another device unlocking method is provided for the embodiment of the present invention. In this embodiment, the input component in the foregoing embodiment is further refined and optimized on the basis of the foregoing embodiment. This embodiment can be combined with various alternative solutions in the above one or more embodiments. As Figure 2 shown, the device unlocking method of this embodiment may include the following steps:
[0056] Among them, the input component is at least one short-circuit interface; the first operation is to short-circuit the short-circuit interface; the first information is the number of short-circuits of each short-circuit interface.
[0057] S210. In response to the short-circuit of the short-circuit interface corresponding to the first device, determine the number of short-circuits of each short-circuit interface.
[0058] The short - circuit interface can be provided by the first device and can be read by the first device for the number of short - circuits. The short - circuit method of the short - circuit interface can be to provide two or more interface pins and connect the interface pins so that the current in the pins passes directly. When short - circuiting inside the short - circuit interface, the magnitude of the current in the pins is less than the preset current magnitude. The first device includes at least two short - circuit interfaces for transmitting the number of short - circuits to the first device, and may also include at least two functional short - circuit interfaces. One is a confirmation short - circuit interface for informing the first device that the input is completed; the other is a cancellation short - circuit interface for informing the first device to clear the previous input.
[0059] When transmitting the first information into the first device through short - circuiting, in order to avoid excessive current during the short - circuit process and causing injury to the person responsible for short - circuiting, it is necessary to set the magnitude of the current during the short - circuit process to be less than the preset current magnitude.
[0060] When inputting the first information into the first device, the short - circuit interface that needs to be short - circuited and the number of short - circuits required for each short - circuit interface can be determined according to the first operation. And according to the number of short - circuits required for each short - circuit interface, short - circuit processing is performed on the short - circuit interface. After completing the short - circuit processing, short - circuit the confirmation short - circuit interface to inform the first device that the first operation has been completed. During the short - circuit process, there may be situations where the number of short - circuits is incorrect or the short - circuit interface is incorrect. At this time, the cancellation short - circuit interface can be short - circuited to inform the first device to clear the short - circuit record and re - execute the first operation. Perform short - circuit operations on the corresponding short - circuit interfaces. According to the magnitude of the numbers in the first information to be input, perform the same number of short - circuit times as the magnitude of the number on the short - circuit interface.
[0061] Exemplarily, the first device includes a short - circuit interface A, a short - circuit interface B, and a confirmation short - circuit interface C. At this time, the first operation is to short - circuit the short - circuit interface A 3 times and short - circuit the short - circuit interface B 5 times. After performing the first operation, the first device will receive that the short - circuit interface A has been short - circuited 3 times and the short - circuit interface B has been short - circuited 5 times. Then short - circuit the short - circuit interface C. At this time, after the first device receives the short - circuit message of the short - circuit interface C, it is confirmed that the first information is "35".
[0062] By determining the number of short - circuits of each short - circuit interface in response to the short - circuit of the corresponding short - circuit interface of the first device, it can effectively prevent users from thinking of the input method for inputting information into the first device, thereby further preventing the first device from being unlocked by users.
[0063] S220. Determine the second information according to the number of short - circuits of each short - circuit interface; the second information is array information, and the numbers included in the second information are the number of short - circuits of the short - circuit interfaces.
[0064] After determining that the first information is the short - circuit times of the short - circuit interfaces, place the short - circuit times of each short - circuit interface in the same array to obtain the second information. When generating the second information, since not all short - circuit interfaces may be short - circuited in the first operation, the second information will contain information with a value of 0.
[0065] Exemplarily, the first device includes a short - circuit interface A, a short - circuit interface B, and a short - circuit interface C.
[0066] In the first operation, when the short - circuit interface A is short - circuited 3 times, the short - circuit interface B is short - circuited 3 times, and the short - circuit interface C is not short - circuited, at this time, the first information can be determined as "330", and the second information is then the array [3, 3, 0].
[0067] Optionally, before obtaining the first information of the first device in response to the first operation on the first device, it further includes:
[0068] Determine the synchronization information; the synchronization information is the same information existing in the second device when the first device is in the second state; the synchronization information is updated according to a preset time rule; the second state is used to describe that the first device has no network connection; the second device is the production device of the operation prompt information corresponding to the first operation;
[0069] Correspondingly, the determination of the first operation includes
[0070] Determine the first operation according to the operation prompt information;
[0071] Correspondingly, determining the second information of the first device according to the first information of the first device includes:
[0072] Adjust the first information according to the synchronization information to obtain the second information.
[0073] In addition to the same button appearance, the password corresponding to each button can also be modified regularly.
[0074] For this, a preset time rule can be set in advance, and each button modifies the corresponding password according to the preset time rule. When generating the second information, first obtain the synchronization information corresponding to the first device at this time point, and then map the input first information according to the synchronization information to generate the second information at this time point.
[0075] S230. If the numbers included in the second information and the third information are the same, set the state of the first device to the first state. The third information is the array information stored in the first device and is used to unlock the first device.
[0076] After obtaining the second information, compare the second information with the third information. If the numbers included in the second information and the third information are the same, it can be determined that the second information and the third information are the same. At this time, it can be determined that the first device is successfully unlocked, and the status of the first device is set to the first status.
[0077] Optionally, in addition to the above method, the short-circuit sequence also needs to be considered.
[0078] When short-circuiting the short-circuit interface of the first device according to the first operation, the second information can be determined according to the short-circuit sequence and the number of short-circuits of each short-circuit interface.
[0079] That is, each position in the array of the second information corresponds to a short-circuit interface. When the short-circuit interface is short-circuited, the position corresponding to the short-circuit interface in the second information will be modified to the number of short-circuits of the short-circuit interface.
[0080] Exemplarily, the first device has a short-circuit interface A, a short-circuit interface B, and a short-circuit interface C. The first position in the array corresponding to the second information corresponds to the short-circuit interface A, the second position corresponds to the short-circuit interface B, and the third position corresponds to the short-circuit interface C. When the first operation is to short-circuit the short-circuit interface A 3 times, short-circuit the short-circuit interface B 3 times, and short-circuit the short-circuit interface C 1 time, the second information is [3, 3, 1] at this time.
[0081] Correspondingly, when determining whether the second information and the third information are the same, it will be determined whether the digital order is the same.
[0082] Exemplarily, when the third information is [1, 3, 3], if the second information is [3, 3, 1], since the digital order is different, it will not be considered that the second information and the third information are the same at this time.
[0083] Optionally, before obtaining the first information of the first device in response to the first operation on the first device, it further includes: determining a third information group, the third information group is composed of at least one third information, and the third information in the third information group is different; the third information corresponds to the first status duration, and the first status duration is used to describe the duration that the first device is in the first status;
[0084] Correspondingly, setting the status of the first device to the first status according to the second information and the third information includes: if the second information is the same as any one of the third information in the third information group, setting the status of the first device to the first status;
[0085] Correspondingly, after setting the status of the first device to the first status, it further includes: removing the third information that is the same as the first information from the third information group.
[0086] To prevent the user of the first device from repeatedly unlocking the device after being informed of the first operation, multiple sets of the original third information can be set, and the third information used for unlocking is removed each time after unlocking, so as to ensure that the first operation can only complete one unlocking, thereby further ensuring the security of the first device.
[0087] In addition, different unlocking times can be set for different third information, so that the user of the first device can flexibly select the unlocking time according to the actual usage time, thereby improving the user experience.
[0088] Optionally, before responding to the first operation on the first device, it further includes: determining the system time of the first device at the current stage; writing the system time into the memory space of the first device to obtain the memory time at the current stage; if the memory time at the current stage is earlier than the memory time at the previous stage, setting the state of the first device to the third state; the third state is used to describe that the first device is locked and cannot work properly.
[0089] In the actual use process, in addition to unlocking the first device, there may be some users who modify the system time of the first device so that the first device can never reach the lock-up time. To solve this problem, the system time can be regularly written into the memory space, and the memory time written into the content space this time is compared with the memory time written into the memory space last time. If the memory time written into the memory space this time is earlier than the memory time written into the memory space last time, it can be determined that the system time of the first device has been changed, and at this time, the first device will be directly locked.
[0090] Optionally, after setting the state of the first device to the third state, it further includes: if the memory time at the current stage is later than the memory time at the previous stage, deleting the memory time at the previous stage.
[0091] When the memory time at the current stage is later than the memory time at the previous stage, it indicates that the system time of the first device has not been modified. At this time, the memory time at the previous stage can be directly deleted, thereby reducing the use of memory space.
[0092] According to the technical solution of the embodiment of the present invention, by responding to the short circuit of the corresponding short circuit interface of the first device and determining the short circuit times of each short circuit interface, it is possible to effectively prevent the user from thinking of the input method for inputting information to the first device, thereby further preventing the first device from being unlocked by the user.
[0093] Embodiment III
[0094] Figure 3The present invention provides a flowchart of another device unlocking method for an embodiment. In this embodiment, the input components in the foregoing embodiment are further refined on the basis of the above embodiment, and this embodiment can be combined with various optional solutions in one or more of the above embodiments. As Figure 3 shown, the device unlocking method of this embodiment may include the following steps:
[0095] Among them, the appearances of the input components of the first device are the same; the input component is a button; the appearances of the input components are the same; the first operation is to perform a button operation on at least two input components.
[0096] S310. In response to a button operation on at least one input component of the first device, determine the first information of the first device; the first information is the trigger information of each first input component; the first input component is the input component that triggers the button operation.
[0097] In addition to the input component being a short-circuit interface, it can also be a button with the same appearance. Each button corresponds to a password input, and the password inputs corresponding to each button are different. The button can be a physical button or a virtual button displayed on a touchable display.
[0098] Correspondingly, the first operation is to perform a button operation on at least two buttons.
[0099] After performing the first operation on the buttons of the first device, the first device determines the first information according to the triggering situation of the buttons. Since the appearances of the buttons are the same, after performing the first operation, the operator who performs the first operation cannot directly determine the meaning of each button corresponding to the first operation from the appearance, thereby further protecting the information input when the first device is input, and thus increasing the unlocking difficulty of the first device.
[0100] S320. Determine the second information according to the first information; the second information is the position information of each first input component.
[0101] The position information can be the coordinates of each first input component in the XY coordinate system constructed with the lower left corner of the button as the starting point; that is, each input component corresponds to a different number, and the position relationship is represented by the number. The first input component is the input component pressed during the first operation.
[0102] After obtaining the first information, the first input component pressed during the first operation can be determined. At this time, according to the position information of the first input component, the second information can be generated.
[0103] S330. If the second information is the same as the third information, set the state of the first device to the first state.
[0104] According to the technical solution of the embodiment of the present invention, by setting buttons with the same appearance, after the first operation is performed according to the first operation, the operator who performs the first operation cannot directly determine from the appearance the meaning of each button corresponding to the first operation when the first operation is performed, thereby further protecting the information input when the first device is input, and thus increasing the unlocking difficulty of the first device.
[0105] Embodiment 4
[0106] Figure 4 This embodiment of the present invention provides a structural block diagram of a device unlocking device. This embodiment is applicable to the situation of remotely unlocking a device when there is no network connection and the device manufacturer and the operation and maintenance party cannot unlock the device on site. The device unlocking device can be implemented in the form of hardware and / or software, and the device unlocking device can be configured in an electronic device with data processing capabilities. As Figure 4 shown, the device unlocking device of this embodiment may include: a first information determination module 410, a second information determination module 420, and a state setting module 430. Among them:
[0107] The first information determination module 410 is configured to obtain first information of the first device in response to a first operation on the first device, where the first operation is used to indicate an editing operation performed on at least one input component of the first device, the first device is a device that needs to be unlocked by inputting a password, and the first information is an editing operation result of the input component of the first device;
[0108] The second information determination module 420 is configured to determine second information of the first device according to the first information of the first device, where the second information is used to indicate a password input corresponding to an editing operation result of the input component of the first device, and each editing operation result corresponding to the input component is pre-configured with a password input value, and the second information is in a data shielding state;
[0109] The state setting module 430 is configured to set the state of the first device to a first state according to the second information and the third information; the first state is used to describe that the device is not locked; the third information is information stored in the first device and used to unlock the first device.
[0110] Based on the above embodiment, optionally, the input component is at least one short-circuit interface; the first operation is to short-circuit the short-circuit interface; the first information is the number of short-circuits of each short-circuit interface;
[0111] Correspondingly, the first information determination module 410 includes:
[0112] In response to the short - circuiting of the short - circuit interface corresponding to the first device, determine the short - circuit times of each short - circuit interface;
[0113] Correspondingly, the second information determination module 420 includes:
[0114] Determine the second information according to the short - circuit times of each short - circuit interface; the second information is array information, and the numbers included in the second information are the short - circuit times of the short - circuit interfaces;
[0115] Correspondingly, the status setting module 430 includes:
[0116] If the numbers included in the second information are the same as those included in the third information, set the status of the first device to the first status. The third information is the array information stored in the first device and is used to unlock the first device.
[0117] Based on the above - mentioned embodiments, optionally, the appearances of the input components of the first device are the same; the input components are buttons; the appearances of each of the input components are the same; the first operation is to perform a button operation on at least two input components;
[0118] Correspondingly, the first information determination module 410 includes:
[0119] In response to the button operation on at least one input component of the first device, determine the first information of the first device; the first information is the trigger information of each first input component; the first input component is the input component that triggers the button operation;
[0120] Correspondingly, the second information determination module 420 includes:
[0121] Determine the second information according to the first information; the second information is the position information of each first input component;
[0122] Correspondingly, the status setting module 430 includes:
[0123] If the second information is the same as the third information, set the status of the first device to the first status. The third information is the position information stored in the first device and is used to unlock the first device.
[0124] Based on the above - mentioned embodiments, optionally, before the first information determination module 410, it further includes:
[0125] Determine synchronization information; the synchronization information is the same information existing in the second device when the first device is in the second state; the synchronization information is updated according to a preset time rule; the second state is used to describe that the first device has no network connection; the second device is the production device corresponding to the operation prompt information of the first operation;
[0126] Correspondingly, the determination of the first operation includes:
[0127] Determine the first operation according to the operation prompt information;
[0128] Correspondingly, determining the second information of the first device according to the first information of the first device includes:
[0129] Adjust the first information according to the synchronization information to obtain the second information.
[0130] On the basis of the above embodiment, optionally, before the first information determination module 410, it further includes:
[0131] Determine a third information group, the third information group is composed of at least one third information, and each third information in the third information group is different; the third information corresponds to a first state duration, and the first state duration is used to describe the duration of the first device in the first state;
[0132] Correspondingly, the state setting module 430 includes:
[0133] If the second information is the same as any third information in the third information group, set the state of the first device to the first state;
[0134] Correspondingly, after setting the state of the first device to the first state, it further includes:
[0135] Remove the third information that is the same as the first information from the third information group.
[0136] On the basis of the above embodiment, optionally, before the first information determination module 410, it further includes:
[0137] Determine the system time of the first device in the current stage;
[0138] Write the system time into the memory space of the first device to obtain the memory time in the current stage;
[0139] If the memory time in the current stage is earlier than the memory time in the previous stage, set the state of the first device to the third state; the third state is used to describe that the first device is locked and cannot work normally.
[0140] Based on the above embodiments, optionally, after setting the state of the first device to the third state, the following steps are further included:
[0141] If the memory time of the current stage is later than the memory time of the previous stage, then delete the memory time of the previous stage.
[0142] The device unlocking device provided by the embodiments of the present invention can execute the device unlocking method provided by any embodiment of the present invention. It can obtain the first information of the first device by responding to the first operation on the first device; determine the second information of the first device according to the first information of the first device, so that the generated second information can be the same as or different from the first information, thereby further improving the concealment of the unlocking password in the first device, and thus reducing the possibility of the unlocking password of the first device being deciphered. By setting the state of the first device to the first state according to the second information and the third information, it can ensure that the unlocking process in the first device cannot be directly obtained by the outside world, thereby ensuring the concealment of the unlocking process of the first device, and further avoiding the problem that the first device is cracked by the user. Whether the combined use of the above methods can achieve the situation where the device has no network and it is difficult for the device manufacturer and the operation and maintenance party to directly unlock it, transmit the unlocking password remotely to the device user, and the user unlocks it, so as to complete the remote unlocking while avoiding the problem that the user cracks the unlocking method of the first device according to the password.
[0143] Embodiment Five
[0144] Figure 5 FIG. shows a schematic structural diagram of an electronic device 10 that can be used to implement the embodiments of the present invention. The electronic device is intended to represent various forms of digital computers, such as, laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, personal digital processors, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are only examples and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0145] As Figure 5As shown, the electronic device 10 includes at least one processor 11 and a memory communicatively connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc. The memory stores a computer program executable by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0146] Multiple components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disc, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0147] The processor 11 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the device unlocking method.
[0148] In some embodiments, the device unlocking method can be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the device unlocking method described above can be executed. Alternatively, in other embodiments, the processor 11 can be configured to execute the device unlocking method by any other appropriate means (e.g., by means of firmware).
[0149] The various embodiments of the systems and techniques described above in this specification can be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be a special-purpose or general-purpose programmable processor that receives data and instructions from, and transmits data and instructions to, a storage system, at least one input device, and at least one output device.
[0150] The computer program for implementing the methods of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions / operations specified in the flowchart and / or block diagram to be implemented. The computer program can be executed entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
[0151] In the context of the present invention, a computer-readable storage medium can be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium can be a machine-readable signal medium. A more specific example of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0152] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which the user can provide input to the electronic device. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0153] The systems and techniques described herein can be implemented in a computing system including backend components (e.g., as a data server), or a computing system including middleware components (e.g., an application server), or a computing system including frontend components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system including any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected to each other by digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), blockchain network, and the Internet.
[0154] The computing system can include a client and a server. The client and the server are generally far from each other and typically interact through a communication network. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system and solves the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services.
[0155] It should be understood that various forms of the processes shown above can be used, with steps reordered, added, or deleted. For example, the steps recited in the present invention can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved, and no limitation is imposed herein.
[0156] The above specific embodiments do not constitute a limitation on the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims
1. A device unlocking method, characterized in that, Including: In response to a first operation on a first device, obtain first information of the first device. The first operation is used to indicate an editing operation performed on at least one input component of the first device. The first device is a device that needs to be unlocked by entering a password. The first information is the result of the editing operation on the input component of the first device. Determine second information of the first device according to the first information of the first device. The second information is used to indicate the password input corresponding to the result of the editing operation of the input component of the first device. Each editing operation result corresponding to the input component is pre-configured with a password input value, and the second information is in a data shielding state. Set the state of the first device to a first state according to the second information and third information. The first state is used to describe that the device is not locked. The third information is stored in the first device and is used to unlock the first device.
2. The method according to claim 1, wherein The input component is at least one short-circuit interface. The first operation is to short-circuit the short-circuit interface. The first information is the number of short-circuits of each short-circuit interface. Correspondingly, in response to a first operation on a first device, obtaining the first information of the first device includes: In response to the short-circuit of the short-circuit interface corresponding to the first device, determine the number of short-circuits of each short-circuit interface. Correspondingly, determining the second information of the first device according to the first information of the first device includes: Determine the second information according to the number of short-circuits of each short-circuit interface. The second information is array information, and the second information contains numbers that are the number of short-circuits of the short-circuit interface. Correspondingly, setting the state of the first device to a first state according to the second information and third information includes: If the numbers included in the second information and the third information are the same, set the state of the first device to the first state. The third information is array information stored in the first device and is used to unlock the first device.
3. The method according to claim 1, characterized in that The appearances of the input components of the first device are the same. The input component is a button. The appearances of each input component are the same. The first operation is to perform a button operation on at least two input components. Correspondingly, in response to a first operation on a first device, obtaining the first information of the first device includes: In response to the button operation on at least one input component of the first device, determine the first information of the first device. The first information is the trigger information of each first input component. The first input component is the input component that triggers the button operation. Correspondingly, determining the second information of the first device according to the first information of the first device includes: Determine the second information according to the first information. The second information is the position information of each first input component. Correspondingly, setting the state of the first device to a first state according to the second information and third information includes: If the second information is the same as the third information, set the state of the first device to the first state. The third information is the position information stored in the first device and is used to unlock the first device.
4. The method according to claim 3, wherein Before obtaining the first information of the first device in response to a first operation on the first device, the following steps are also included: Determine synchronization information; the synchronization information is the same information existing in the second device when the first device is in a second state; the synchronization information is updated according to a preset time rule; the second state is used to describe that the first device has no network connection; the second device is the production device of the operation prompt information corresponding to the first operation; Correspondingly, the determination of the first operation includes: Determine the first operation according to the operation prompt information; Correspondingly, determining the second information of the first device according to the first information of the first device includes: Adjust the first information according to the synchronization information to obtain the second information.
5. The method according to claim 1, characterized in that Before obtaining the first information of the first device in response to a first operation on the first device, the following steps are also included: Determine a third information group, which is composed of at least one third information, and each third information in the third information group is different; the third information corresponds to a first state duration, and the first state duration is used to describe the duration of the first device in the first state; Correspondingly, setting the state of the first device to the first state according to the second information and the third information includes: If the second information is the same as any one of the third information in the third information group, set the state of the first device to the first state; Correspondingly, after setting the state of the first device to the first state, the following steps are also included: Delete the third information that is the same as the first information from the third information group.
6. The method according to claim 1, characterized in that Before responding to the first operation on the first device, the following steps are also included: Determine the system time of the first device in the current stage; Write the system time into the memory space of the first device to obtain the memory time in the current stage; If the memory time in the current stage is earlier than the memory time in the previous stage, set the state of the first device to the third state; the third state is used to describe that the first device is locked and cannot work properly.
7. The method according to claim 6, wherein After setting the state of the first device to the third state, the following steps are also included: If the memory time in the current stage is later than the memory time in the previous stage, delete the memory time in the previous stage.
8. An apparatus for unlocking a device, characterized in that, It includes: A first information determination module, which is used to obtain the first information of the first device in response to a first operation on the first device. The first operation is used to indicate an editing operation performed on at least one input component of the first device. The first device is a device that needs to be unlocked by entering a password, and the first information is the editing operation result of the input component of the first device; A second information determination module, which is used to determine the second information of the first device according to the first information of the first device. The second information is used to indicate the password input corresponding to the editing operation result of the input component of the first device. Each editing operation result corresponding to the input component is pre-configured with a password input value, and the second information is in a data shielding state; A status setting module, configured to set the status of the first device to a first status according to the second information and the third information; the first status is used to describe that the device is not locked. The third information is stored in the first device and is used to unlock the first device.
9. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the device unlocking method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions, and the computer instructions are used to implement the device unlocking method according to any one of claims 1-7 when executed by a processor.