Equipment maintenance method, mobile terminal and computer storage medium
By implementing the device maintenance method on a mobile terminal, using a preset algorithm to decrypt the login password and connecting the equipment to be maintained through a short-distance communication link, the problem of high equipment maintenance costs in the existing technology is solved, and a low-cost and network-free environment is achieved maintenance operations under.
Patent Information
- Application Number
- CN202411368252.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2025-02-11
AI Technical Summary
The existing technology has high cost problems in equipment maintenance, especially during the maintenance of charging and swapping cabinets, it is necessary to set up human-computer interaction modules or rely on backend servers, resulting in high costs.
By implementing a device maintenance method on a mobile terminal, decrypting the login password using a preset algorithm to obtain identity information, and connecting to the device to be maintained through a short-distance communication link, realizing status viewing and parameter configuration, without the need for the entire process Network connection and backend server.
It reduces the cost of equipment maintenance, avoids the development and maintenance costs of human-computer interaction modules and background servers, and ensures that users can only use legal login passwords in authorized mobile terminals to prevent abuse.
Smart Images

Figure CN119416197A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a device maintenance method, a mobile terminal and a computer storage medium. Background Art
[0002] When maintaining equipment (such as charging and swapping cabinets), maintenance personnel need to configure parameters or check the status of the equipment. Taking charging and swapping cabinets as an example, existing charging and swapping cabinets are generally equipped with human-computer interaction modules. Maintenance personnel configure parameters or check the status by operating the human-computer interaction module. This solution is costly because each charging and swapping cabinet needs to be equipped with a human-computer interaction module. There are also some charging and swapping cabinets that omit the human-computer interaction module. Maintenance personnel access the background server through a mobile phone APP to configure parameters or check the status of the charging and swapping cabinet. However, this solution not only requires the maintenance personnel's mobile phone, charging and swapping cabinet and background server to be connected to the Internet, but also the cost of developing and maintaining the background server is not low, so there is still a high cost problem. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide a device maintenance method, a mobile terminal and a computer storage medium in view of the above-mentioned high cost and technical defects of the prior art.
[0004] The technical solution adopted by the present invention to solve the technical problem is: constructing a device maintenance method, which is applied to a mobile terminal, comprising:
[0005] Input step: receiving the current login password input by the user;
[0006] Decryption step: decrypting the current login password according to a first preset algorithm to obtain the first identity information corresponding to the mobile terminal and the second identity information corresponding to the device to be maintained;
[0007] Legal judgment step: obtaining the identity information of the user as the second identity information, and judging whether the current login password is a legal login password by judging whether the second identity information is consistent with the first identity information, wherein the legal login password is generated by encrypting the identity information of the mobile terminal of the legal user and the identity information of the associated device by the registration machine using the first preset algorithm when the legal user registers;
[0008] Communication step: when the current login password is the legal login password, a short-distance communication link is established with the device to be maintained according to the second identity information, and status information of the device to be maintained is obtained according to the short-distance communication link, and / or parameters of the device to be maintained are configured.
[0009] Optionally, the decryption step includes:
[0010] Decrypt the current login password according to a first preset algorithm to obtain a validity period, first identity information corresponding to the mobile terminal, and second identity information corresponding to the device to be maintained;
[0011] The legal determination step includes:
[0012] Obtain the current time, and determine whether the current time is within the validity period;
[0013] Obtaining its own identity information, using it as second identity information, and determining whether the second identity information is consistent with the first identity information;
[0014] If the current time is within the validity period and the second identity information is consistent with the first identity information, the current login password is determined to be the legal login password, wherein the legal login password is generated by the registration machine using the first preset algorithm to encrypt the identity information of the legal user's mobile terminal, the identity information of the associated device and the validity period set by the legal user when the legal user registers.
[0015] Optionally, obtaining the identity information of the user includes:
[0016] Obtain its own identification information, and use a second preset algorithm to calculate the identification information to obtain its own identity information.
[0017] Optionally, establishing a short-distance communication link with the device to be maintained includes:
[0018] Establish a Bluetooth communication link with the device to be maintained.
[0019] Optionally, the registration machine generates a legal login password according to the following steps:
[0020] During registration, the registration machine receives the identity information of the mobile terminal of the legal user;
[0021] The registration machine receives a device associated with the mobile terminal selected by the user, and receives identity information of the device;
[0022] The registration machine uses a first preset algorithm to perform encryption operations on the identity information of the legal user's mobile terminal and the identity information of the associated device to generate a legal login password.
[0023] Optionally, after the step of generating a legal login password, the method further includes:
[0024] The mobile terminal obtains the legal login password, encrypts the legal login password and saves it.
[0025] Optionally, after the step of generating a legal login password, the method further includes:
[0026] The registration machine sends the legal login password and the identity information of the legal user's mobile terminal to the background server, so that the background server saves the legal login password, the identity information of the legal user's mobile terminal and the association between the two.
[0027] Optionally, before the step of receiving the current login password input by the user, the method further includes:
[0028] Sending password request information to the backend server, wherein the password request information includes the identity information of the mobile terminal itself;
[0029] The corresponding legal login password is received from the background server, wherein after receiving the password request information, the background server searches for the corresponding legal login password according to the identity information of the mobile terminal and sends it.
[0030] The present invention also constructs a computer storage medium storing a computer program, which implements the steps of the above-mentioned device maintenance method when executed by a processor.
[0031] The present invention also constructs a mobile terminal, including a processor and a memory storing a computer program, wherein the processor implements the steps of the above-mentioned device maintenance method when executing the computer program.
[0032] Through the technical solution of the present application, after the user enters the current login password in his mobile terminal, the mobile terminal will use the same algorithm as the registration machine to generate the legal login password to decrypt the current login password to obtain the first identity information corresponding to the mobile terminal and the second identity information corresponding to the device to be maintained. If the user is a legal user, that is, the mobile terminal used by the user is the mobile terminal used for registration, and the current login password entered is the legal login password generated during registration, then the identity information (second identity information) of the current mobile terminal will be consistent with the decrypted first identity information, and then a short-distance communication link can be established with the device to be maintained to read the status or configure the parameters of the device to be maintained. On the contrary, the user is not allowed to perform maintenance operations on the device to be maintained. In this way, only when a legal user uses his mobile terminal to enter a legal login password to log in, can the device to be maintained be maintained. Operations can be performed, ensuring that the user can only use the legal login password in an authorized specific mobile terminal, preventing the legal login password from being abused in an unauthorized mobile terminal. Moreover, the entire login, verification, and maintenance process is carried out in a network-free environment, without the need to develop and maintain a backend server. At the same time, the equipment to be maintained does not need to be equipped with a human-computer interaction module, thus greatly saving costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0034] Figure 1 is a flow chart of a first embodiment of a maintenance method for equipment of the present invention;
[0035] Figure 2 It is a flow chart of Embodiment 2 of the maintenance method of the equipment of the present invention. DETAILED DESCRIPTION
[0036] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0037] Figure 1 1 is a flow chart of a first embodiment of a maintenance method for a device of the present invention. The maintenance method of this embodiment is applied to a mobile terminal, such as a smart phone, a PAD, etc., and includes:
[0038] Input step S10: receiving the current login password input by the user;
[0039] Decryption step S20: decrypting the current login password according to a first preset algorithm to obtain the first identity information corresponding to the mobile terminal and the second identity information corresponding to the device to be maintained;
[0040] Legality determination step S30: obtaining the identity information of the user as the second identity information, and determining whether the current login password is a legal login password by determining whether the second identity information is consistent with the first identity information, wherein the legal login password is generated by encrypting the identity information of the mobile terminal of the legal user and the identity information of the associated device by the registration machine using the first preset algorithm when the legal user registers;
[0041] Communication step S40: when the current login password is the legal login password, a short-distance communication link is established with the device to be maintained according to the second identity information, and status information of the device to be maintained is obtained according to the short-distance communication link, and / or parameter configuration is performed on the device to be maintained.
[0042] In the technical solution of this embodiment, it is first necessary to register on the registration machine. Specifically, the registration machine encrypts the identity information of the mobile terminal of the legal user and the identity information of the associated device to generate a legal login password. After the user enters the current login password in his mobile terminal, the mobile terminal will use the same algorithm as the registration machine to generate the legal login password to decrypt the current login password to obtain the first identity information corresponding to the mobile terminal and the second identity information corresponding to the device to be maintained. If the user is a legal user, that is, the mobile terminal used by the user is the mobile terminal used for registration, and the current login password entered is the legal login password generated during registration, then the identity information (second identity information) of the current mobile terminal will be consistent with the decrypted first identity information, and then a short-distance communication link can be established with the device to be maintained to read the status or configure the parameters of the device to be maintained. On the contrary, if the user is not a legitimate user, that is, the mobile terminal used is not the mobile terminal used for registration, or the current login password entered is not a legitimate login password, then the identity information (second identity information) of the current mobile terminal will not be consistent with the decrypted first identity information, and thus a short-distance communication link will not be established with the device to be maintained, and maintenance operations cannot be performed. In this way, only when a legitimate user uses his mobile terminal to enter a legitimate login password to log in can maintenance operations be performed on the device to be maintained, ensuring that the user can only use the legitimate login password in an authorized specific mobile terminal, preventing the legitimate login password from being abused in an unauthorized mobile terminal. Moreover, the entire login, verification, and maintenance process is carried out in a network-free environment, without the need to develop and maintain a background server. At the same time, the device to be maintained does not need to be equipped with a human-computer interaction module, thus greatly saving costs.
[0043] Furthermore, the decryption step S20 includes: decrypting the current login password according to a first preset algorithm to obtain the validity period, the first identity information corresponding to the mobile terminal and the second identity information corresponding to the device to be maintained. The legality judgment step S30 includes:
[0044] Obtain the current time, and determine whether the current time is within the validity period;
[0045] Obtaining its own identity information, using it as second identity information, and determining whether the second identity information is consistent with the first identity information;
[0046] If the current time is within the validity period and the second identity information is consistent with the first identity information, the current login password is determined to be the legal login password, wherein the legal login password is generated by the registration machine using the first preset algorithm to encrypt the identity information of the legal user's mobile terminal, the identity information of the associated device and the validity period set by the legal user when the legal user registers.
[0047] In this embodiment, when generating a legal login password, the registration machine not only considers the identity information of the legal user's mobile terminal and the associated device, but also adds the validity period set by the legal user, such as a validity period of one month from the set date. The legal login password becomes invalid after the validity period, and the user needs to re-register to obtain a new legal login password. After the user enters the current login password on his mobile terminal, the mobile terminal will also decrypt the validity period. Moreover, when making a legal judgment, the validity period is checked to determine whether to allow login. If the current time is not within the validity period, it means that the legal login password has expired, and the user can be prompted to re-register a new legal login password and log in again. In this way, users can reduce the risk of login password leakage by regularly updating their login passwords, improve security, and prevent resigned users from remaining logged in for a long time.
[0048] Further, in an optional embodiment, obtaining one's own identity information includes: obtaining one's own identification information, and using a second preset algorithm to calculate the identification information to obtain one's own identity information. In this embodiment, whether it is during registration or login, when it is necessary to obtain the identity information of the mobile terminal, it can be obtained in the following manner: first obtain one's own identification information, which is a unique identifier of the mobile terminal, such as an Android ID, IDFA (iOS device identifier) or UUID (universally unique identifier).
[0049] Moreover, for Android mobile terminals, you can use the following command to obtain your own Android ID:
[0050] Settings.Secure.getString(getContentResolver(),Settings.Secure.ANDROID_ID);
[0051] For IOS mobile terminals, you can use the following command to obtain their own UUID:
[0052] `UIDevice.current.identifierForVendor? .uuidString` Gets UUID.
[0053] Then, the unique identifier of the mobile terminal is encrypted or hashed (such as SHA-256) to generate a unique device serial number of the mobile terminal, that is, the identity information of the mobile terminal. The identity information is the unique identifier of the mobile terminal in the entire registration and login process.
[0054] Further, in an optional embodiment, establishing a short-range communication link with the device to be maintained in step S40 includes: establishing a Bluetooth communication link with the device to be maintained. In this embodiment, after the current login password entered by the user is verified, a Bluetooth connection can be established with the corresponding device to be maintained, so that the user can perform maintenance operations through his mobile terminal.
[0055] Furthermore, in an optional embodiment, the registration machine generates a legal login password according to the following steps:
[0056] During registration, the registration machine receives the identity information of the mobile terminal of the legal user;
[0057] The registration machine receives a device associated with the mobile terminal selected by the user, and receives identity information of the device;
[0058] The registration machine uses a first preset algorithm to perform encryption operations on the identity information of the legal user's mobile terminal and the identity information of the associated device to generate a legal login password.
[0059] Regarding this embodiment, the following points need to be explained:
[0060] 1. The registration machine is used to generate a valid login password during registration. It can be an independent device or set up in the background server.
[0061] 2. The registration machine can receive the identity information of the user's mobile terminal in a variety of ways, such as on-site input, or receiving it from the mobile terminal through communication tools such as email / WeChat.
[0062] 3. During the development phase of equipment (such as charging and swapping cabinets), different products can be classified and a unique device ID can be generated, which is the identity information of the equipment to be maintained. Each device ID corresponds to a specific product type. These device IDs will be used in the equipment to be maintained, the registration machine, and the app of the user's mobile terminal, and can be bound to the device serial number of the mobile terminal and the device ID of the equipment to be maintained.
[0063] 4. When a user (legal maintenance personnel) registers, the user's mobile terminal can first generate the identity information of the mobile terminal, and the generation method is as described above. Then, submit the identity information of the mobile terminal to the registration machine and select the corresponding device ID of the device to be maintained. The registration machine will first associate (bind) the two, and then generate a unique legal login password based on the identity information of the mobile terminal and the associated device. Of course, when generating a legal login password, the password validity period set by the user can also be added. The generation of a legal login password can be performed through an encryption algorithm (for example, HMAC, SHA256, AES, etc.) to ensure the security and uniqueness of the generated legal login password.
[0064] 5. After generating a legal login password, it can be stored in the registration machine and bound to the identity information of the corresponding mobile terminal and the device to be maintained, so as to ensure that each legal login password can only be used on a specific mobile terminal and only used to maintain a specific device.
[0065] Furthermore, in an optional embodiment, after the step of generating a legal login password, it also includes: the mobile terminal obtains the legal login password, and saves the legal login password after encrypting it. In this embodiment, there are many ways for the mobile terminal to obtain the legal login password, such as on-site input, receiving it from a registration machine through communication tools such as email / WeChat, etc. Moreover, when transmitting the legal login password, it is preferably encrypted to ensure that the data is not intercepted or tampered with during the transmission process. In addition, when the mobile terminal saves the legal login password locally, it will also encrypt it first, for example, using the secure storage mechanism provided by the platform, such as Android's KeyStore or iOS's Keychain, to prevent unauthorized access.
[0066] Furthermore, after the step of generating a legal login password, the method further includes: the registration machine sends the legal login password and the identity information of the mobile terminal of the legal user to the background server, so that the background server saves the legal login password, the identity information of the mobile terminal of the legal user and the association between the two. In this embodiment, after generating a legal login password, the registration machine sends the legal login password and the identity information of the mobile terminal bound thereto to the background server, so as to save them in the database of the background server.
[0067] Furthermore, in actual applications, it may happen that the user forgets the legitimate login password, which results in the inability to perform maintenance operations on the equipment to be maintained. To solve this technical problem, in an optional embodiment, before inputting step S10, it also includes:
[0068] Sending password request information to the backend server, wherein the password request information includes the identity information of the mobile terminal itself;
[0069] The corresponding legal login password is received from the background server, wherein after receiving the password request information, the background server searches for the corresponding legal login password according to the identity information of the mobile terminal and sends it.
[0070] In this embodiment, even if the user forgets the legal login password when logging in, since the legal login password is stored in the background server, the user can request the background server to obtain the corresponding legal login password so as to log in normally.
[0071] Figure 2 It is a flow chart of Embodiment 2 of the maintenance method of the device of the present invention. The maintenance method of this embodiment includes steps S101 to S109, wherein steps S101 to S103 are a registration process, and steps S104 to S109 are a login process.
[0072] When a user registers, first, according to step S101, a specific application (APP) is installed on the mobile terminal. In step S102, the application can obtain the unique identifier of the mobile terminal, and encrypt / hash the unique identifier to generate the device serial number of the mobile terminal (identity information of the mobile terminal). Then in step S103, the device serial number of the mobile terminal, the device ID of the device to be maintained (identity information of the device to be maintained), and the validity period are input into the registration machine, and the registration machine generates a unique login password, that is, a legal login password, and binds it with the device serial number and device ID and stores it locally. At the same time, the generated legal login password will also be notified to the user, for example, by email, phone, WeChat, etc.
[0073] When a user needs to perform maintenance on the device to be maintained, first, in step S104, the user enters a login request on the APP of his mobile terminal, and the login request includes the login password entered by the user. At the same time, the APP also obtains the device serial number of the mobile terminal. Then, in step S105, the entered login password is decrypted to obtain the validity period, device serial number, and device ID. Next, in step S106, whether the login password is expired according to the validity period, if it is expired, the login is directly rejected according to step S109, that is, the current user is not allowed to perform maintenance operations on the device to be maintained; if it is not expired, the matching judgment of the device serial number is continued in step S107, that is, whether the device serial number of the current mobile terminal is consistent with the decrypted device serial number, if so, step S108 is executed to allow login, that is, the current user is allowed to perform maintenance operations on the device to be maintained; if not, the login is rejected according to step S109.
[0074] The present invention also constructs a computer storage medium, which stores a computer program, and the computer program implements the steps of the above-mentioned device maintenance method when executed by a processor.
[0075] The computer storage medium of the present invention can be any readable storage medium that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk.
[0076] The present invention also constructs a mobile terminal, which includes a processor and a memory storing a computer program. The processor implements the steps of the above-mentioned device maintenance method when executing the computer program.
[0077] The mobile terminal of the present invention may be a smart phone, a PAD, etc. The processor may be a central processing unit (CPU), or other general-purpose processors, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0078] The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the scope of the claims of the present application.
Claims
1. A device maintenance method, applied to a mobile terminal, characterized in that: include: Input step: receiving the current login password input by the user; Decryption step: decrypting the current login password according to a first preset algorithm to obtain the first identity information corresponding to the mobile terminal and the second identity information corresponding to the device to be maintained; Legal judgment step: obtaining the identity information of the user as the second identity information, and judging whether the current login password is a legal login password by judging whether the second identity information is consistent with the first identity information, wherein the legal login password is generated by encrypting the identity information of the mobile terminal of the legal user and the identity information of the associated device by the registration machine using the first preset algorithm when the legal user registers; Communication step: when the current login password is the legal login password, a short-distance communication link is established with the device to be maintained according to the second identity information, and status information of the device to be maintained is obtained according to the short-distance communication link, and / or parameters of the device to be maintained are configured.
2. The equipment maintenance method according to claim 1, characterized in that: The decryption step comprises: Decrypt the current login password according to a first preset algorithm to obtain a validity period, first identity information corresponding to the mobile terminal, and second identity information corresponding to the device to be maintained; The legal determination step includes: Obtain the current time, and determine whether the current time is within the validity period; Obtaining its own identity information, using it as second identity information, and determining whether the second identity information is consistent with the first identity information; If the current time is within the validity period and the second identity information is consistent with the first identity information, the current login password is determined to be the legal login password, wherein the legal login password is generated by the registration machine using the first preset algorithm to encrypt the identity information of the legal user's mobile terminal, the identity information of the associated device and the validity period set by the legal user when the legal user registers.
3. The equipment maintenance method according to claim 1, characterized in that: The obtaining of the identity information of the user includes: Obtain its own identification information, and use a second preset algorithm to calculate the identification information to obtain its own identity information.
4. The method for maintaining the equipment according to any one of claims 1 to 3, characterized in that: The establishing of a short-distance communication link with the device to be maintained includes: Establish a Bluetooth communication link with the device to be maintained.
5. The method for maintaining the equipment according to claim 1, characterized in that: The registration machine generates a legal login password according to the following steps: During registration, the registration machine receives the identity information of the mobile terminal of the legal user; The registration machine receives a device associated with the mobile terminal selected by the user, and receives identity information of the device; The registration machine uses a first preset algorithm to perform encryption operations on the identity information of the legal user's mobile terminal and the identity information of the associated device to generate a legal login password.
6. The method for maintaining the equipment according to claim 5, characterized in that: After the step of generating a legal login password, the method further includes: The mobile terminal obtains the legal login password, encrypts the legal login password and saves it.
7. The method for maintaining the equipment according to claim 5, characterized in that: After the step of generating a legal login password, the method further includes: The registration machine sends the legal login password and the identity information of the legal user's mobile terminal to the background server, so that the background server saves the legal login password, the identity information of the legal user's mobile terminal and the association between the two.
8. The equipment maintenance method according to claim 7, characterized in that: Before the step of receiving the current login password input by the user, the method further includes: Sending password request information to the backend server, wherein the password request information includes the identity information of the mobile terminal itself; The corresponding legal login password is received from the background server, wherein after receiving the password request information, the background server searches for the corresponding legal login password according to the identity information of the mobile terminal and sends it.
9. A computer storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the computer program implements the steps of the device maintenance method according to any one of claims 1 to 8.
10. A mobile terminal comprising a processor and a memory storing a computer program, characterized in that: When executing the computer program, the processor implements the steps of the device maintenance method according to any one of claims 1 to 8.