Equipment maintenance method and device, medium and power utilization information acquisition terminal
By obtaining security verification and target files detected by the telecommunications interest collection terminal, the local maintenance of the terminal is achieved, the problem of poor timeliness of existing maintenance methods is solved, costing costs and improving the reliability of the terminal.
Patent Information
- Application Number
- CN202411508246.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-28
- Publication Date
- 2025-01-28
AI Technical Summary
The maintenance methods of existing power consumption information collection terminals are of poor timeliness, especially for unpredictable problems. The lack of analysis and processing capabilities within the terminals, resulting in the need to return the terminal to the manufacturer for factory analysis and maintenance, which increases labor and time costs. .
By detecting the data port access to the mobile storage device, a security verification is performed to obtain the target file for maintenance. According to the target file generation prompt information, users can use telecommunications to collect terminals for local maintenance to avoid returning to the manufacturer.
It has achieved local maintenance without returning to manufacturers, saving manpower and time costs, improving maintenance efficiency, enhancing the reliability and stability of the terminal, and reducing faults.
Smart Images

Figure CN119376778A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of data processing technology, and in particular to an equipment maintenance method, device, medium and power consumption information collection terminal. Background Art
[0002] The power consumption information collection terminal is a device purchased uniformly by the State Grid Corporation of China. The hardware and software of the power consumption information collection terminal meet the technical requirements of the State Grid Corporation of China. During the software development process, some software maintenance interfaces are generally preset inside the software to facilitate regular maintenance and updates in the future. Generally, terminal maintenance is divided into local maintenance and remote maintenance. They are all maintained through the operation methods preset in the development. However, due to the limitations of the hardware environment and the incompleteness of the prediction of unknown problems, it is inevitable to encounter some new special conditions that were not taken into account during the development process. Therefore, the power consumption information collection terminal often needs to be maintained.
[0003] Common maintenance methods now include local maintenance and remote maintenance. Among them, remote maintenance mainly involves maintaining the terminal after the main station remotely connects to it. Although this method is slightly more flexible, it is not only limited by the support of existing application software, but also more dependent on the communication connection status of the network. It is easy to cause problems to be difficult to locate due to poor network environment and poor communication. If the software needs to be upgraded, it will cause the upgrade to be slow, resulting in upgrade failure. Local maintenance uses the preset maintenance plan inside the terminal to automatically analyze and maintain terminal logs, hardware performance, database size, CPU and memory usage, application program operation status and other issues. This method is undoubtedly efficient in dealing with predictable problems. However, there are some unpredictable problems that the terminal lacks the ability to analyze and process. In this case, the maintenance personnel need to remove the terminal from the site and return it to the developer for analysis and maintenance, which results in a lot of additional labor and time costs. In addition, in many cases, the environment has changed, and the abnormal performance of the terminal will also be different. When the maintenance personnel start to maintain the terminal, the best time to analyze the original problem may have been missed. Therefore, the existing local maintenance method has poor timeliness. Summary of the invention
[0004] The embodiments of the present invention provide a device maintenance method, apparatus, medium and power consumption information collection terminal, which can perform local maintenance on the power consumption information collection terminal without returning the terminal device to the manufacturer, saving manpower and time costs and improving the maintenance efficiency of the power consumption information collection terminal.
[0005] In a first aspect, an embodiment of the present invention provides a device maintenance method, including:
[0006] When it is detected that the data port is connected to a mobile storage device, a security check is performed on the mobile storage device to obtain a security check result;
[0007] Acquire at least one target file in the mobile storage device based on the security verification result; the target file is used to maintain the target maintenance object of the power consumption collection terminal;
[0008] Target prompt information is generated according to each target file, and the target prompt information is displayed to the user, so that the user can maintain each target maintenance object of the power consumption information collection terminal according to the target prompt information and each target file through the power consumption information collection terminal.
[0009] In a second aspect, an embodiment of the present invention provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the computer program implements a device maintenance method as described in any one of the embodiments of the present invention.
[0010] In a third aspect, an embodiment of the present invention provides an equipment maintenance device, the device comprising:
[0011] A security verification module, used for performing a security verification on the mobile storage device to obtain a security verification result when detecting that the data port is connected to the mobile storage device;
[0012] A file acquisition module, used to acquire at least one target file in the mobile storage device based on the security verification result; the target file is used to maintain the target maintenance object of the power consumption collection terminal;
[0013] The equipment maintenance module is used to generate target prompt information according to each target file and display the target prompt information to the user, so that the user can maintain each target maintenance object of the power consumption information collection terminal according to the target prompt information and each target file through the power consumption information collection terminal.
[0014] In a fourth aspect, an embodiment of the present invention further provides an electricity consumption information collection terminal, which includes a memory, a processor, and an electricity consumption information collection system stored in the memory and executable on the processor, wherein the electricity consumption information collection system implements an equipment maintenance method as described in any one of the embodiments of the present invention.
[0015] In a fifth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a device maintenance method as described in any one of the embodiments of the present invention.
[0016] In an embodiment of the present invention, when it is detected that the data port is connected to a mobile storage device, a security check is performed on the mobile storage device to obtain a security check result; at least one target file in the mobile storage device is obtained based on the security check result; the target file is used to maintain the target maintenance object of the power consumption collection terminal; target prompt information is generated according to each target file, and the target prompt information is displayed to the user, so that the user can maintain each target maintenance object of the power consumption information collection terminal according to the target prompt information and each target file through the power consumption information collection terminal. The technical solution of this embodiment ensures the security of the power consumption information collection terminal by performing a security check on the mobile storage device. By using the target file in the mobile storage device to maintain the target maintenance object, the power consumption information collection terminal can be maintained locally without returning the terminal device to the manufacturer, saving manpower and time costs, and improving the maintenance efficiency of the power consumption information collection terminal. At the same time, the reliability and stability of the power consumption information collection terminal can also be improved, and the occurrence of failures can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0018] Figure 1 A first flow chart of a device maintenance method provided by an embodiment of the present invention;
[0019] Figure 2 A schematic diagram of the structure of the connection between the power consumption information collection terminal and the mobile storage device provided in an embodiment of the present invention;
[0020] Figure 3 A schematic diagram of the interactive process of equipment maintenance between the power consumption information collection terminal and the mobile storage device provided in an embodiment of the present invention;
[0021] Figure 4 A second flow chart of a device maintenance method provided by an embodiment of the present invention;
[0022] Figure 5 A schematic diagram of the structure of an equipment maintenance device provided by an embodiment of the present invention;
[0023] Figure 6 A schematic diagram of the structure of a power consumption information collection terminal provided by an embodiment of the present invention;
[0024] Figure 7 A schematic diagram of the structure of a power consumption information collection system provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0025] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0026] Figure 1 This is the first flow chart of a device maintenance method provided by an embodiment of the present invention. The method of the embodiment of the present invention can perform local maintenance on the power consumption information collection terminal without returning the terminal device to the manufacturer, saving manpower and time costs and improving the maintenance efficiency of the power consumption information collection terminal. The method can be executed by a device maintenance device provided by an embodiment of the present invention, and the device can be implemented in software and / or hardware. The following embodiments will be described by taking the device integrated in the power consumption information collection terminal as an example, and refer to Figure 1 , the method may specifically include the following steps:
[0027] Step 101: When it is detected that a data port is connected to a mobile storage device, a security check is performed on the mobile storage device to obtain a security check result.
[0028] Among them, the mobile storage device is a portable data storage device with a storage medium, such as a mobile hard disk, a USB flash drive, and a memory card. The data port is used to connect the power consumption information collection device and the mobile storage device. When the user inserts the mobile storage device into the data port, the power consumption information collection device can detect the mobile storage device and obtain the files stored in the mobile storage device. Figure 2 A schematic diagram of the structure of the connection between the power consumption information collection terminal and the mobile storage device provided in the embodiment of the present invention. Figure 2 As shown, when the mobile storage device is inserted into the power consumption information collection terminal, the mobile storage device can be connected to the power consumption information collection terminal via a universal serial bus.
[0029] Specifically, when the mobile storage device is inserted into the power consumption information collection terminal, the security verification module of the power consumption information collection terminal will be activated, and the security verification module can perform a security verification on the mobile storage device to obtain a security verification result. In the embodiment of this solution, optionally, performing a security verification on the mobile storage device to obtain a security verification result includes the following steps A1-A2:
[0030] Step A1: Send a key verification request to a mobile storage device, and obtain a key returned by the mobile storage device in response to the key verification request.
[0031] The key verification request is used to instruct the mobile storage device to send a key to the power consumption information collection terminal. Specifically, the security verification of the mobile storage device involves an encryption and decryption process, that is, the mobile storage device can be verified by a specific key to ensure data security and prevent unauthorized access.
[0032] In an optional implementation, after the maintenance file is stored in the mobile storage device, the maintenance file can be encrypted using a pre-set encryption algorithm to obtain a secret key and a ciphertext (encrypted maintenance file). For example, the data in the maintenance data is divided into blocks of a fixed size using the Advanced Encryption Standard algorithm, and each data block is encrypted using the Advanced Encryption Standard algorithm and a secret key to obtain the ciphertext corresponding to the maintenance file. When the power consumption information collection terminal recognizes that the mobile storage device has been inserted, the power consumption information collection terminal can read the file (ciphertext) and the secret key used for encryption from the mobile storage device. The ciphertext is decrypted using the same encryption algorithm and secret key as the encryption process to restore the original data block (decrypted maintenance data).
[0033] Step A2: Perform multiple verifications on the secret key to obtain each verification result; when each verification result is successful, determine that the security verification result is a successful verification; when at least one of the verification results is a failed verification, determine that the security verification result is a failed verification.
[0034] Among them, multiple verifications include at least key matching verification and integrity verification. Integrity verification includes the power consumption information collection terminal checking the integrity of the key to ensure that it has not been tampered with during the transmission process. For example, the verification result of the integrity verification is determined by calculating the hash value of the key and comparing it with the preset hash value. If the hash value of the key is the same as the preset hash value, the verification result of the integrity verification is determined to be successful verification, otherwise the verification fails. Key matching verification includes the power consumption information collection terminal checking whether the key provided by the mobile storage device matches the key stored in it. If the two keys match, the verification result of the key matching is determined to be successful verification, otherwise the verification fails. In this solution, multiple verifications can also include user authority verification to determine whether the user has the authority to operate the maintenance file. For example, when the user inserts the mobile storage device, a login interface can be displayed to the user, and the user can enter the user ID and password through the login interface. The power consumption information collection terminal can search for the user ID and password that are the same as the user ID and password entered by the user in the pre-obtained user database according to the user ID and password. If it can be found, the verification result of the user authority verification is determined to be successful verification, otherwise the verification fails.
[0035] Specifically, after obtaining the verification results of each verification, if at least one verification result is a verification failure, the security verification result is determined to be a verification failure. If each verification result is a verification success, it means that the mobile storage device can be used normally and can also process and maintain files normally, and the security verification result is further determined to be a verification success. By interacting with the mobile storage device through a security key and performing a security verification on the mobile storage device, the legitimacy and security of the mobile storage device can be ensured, and the security of the power consumption information collection terminal can also be guaranteed.
[0036] Step 102: Acquire at least one target file in the mobile storage device based on the security verification result.
[0037] Among them, the target file is used to maintain the target maintenance object of the electricity consumption collection terminal. The maintenance object is the software in the electricity consumption information collection terminal that needs to be repaired, upgraded or maintained. The target file is a file used to maintain the maintenance object. The format of the target file can be an application or an execution script that can be automatically executed. Different target files are used to maintain different maintenance objects. The mobile storage device can include one target file or multiple target files. If the mobile storage device includes multiple target files, the electricity consumption information collection terminal can maintain multiple maintenance objects corresponding to the multiple target files.
[0038] In an optional implementation, after determining the security verification result, when the security verification result is successful, screen out maintenance files in the same format as a predetermined target format from the files in the mobile storage device; search for target maintenance files corresponding to maintenance objects in the maintenance files according to predetermined maintenance object identifiers; perform maintenance compliance verification on each target maintenance file to obtain a compliance verification result; when the compliance verification result is passed, determine the target maintenance file as the target file.
[0039] Step 103: Generate target prompt information according to each target file, and display the target prompt information to the user, so that the user can maintain each target maintenance object of the power consumption information collection terminal according to the target prompt information and each target file through the power consumption information collection terminal.
[0040] Among them, the target prompt information is used to help or instruct the user how to maintain the target maintenance object according to the target file. The user can maintain the target maintenance objects of the electricity consumption information collection terminal according to the target prompt information and the target files. In an optional implementation, after obtaining the target file, the target file is stored in a preset temporary file isolation area through a preset encryption channel; the target file is decomposed in the file isolation area to obtain the sub-files corresponding to the target file; a single file compliance verification is performed on each sub-file to obtain the compliance verification results of each single file, and each sub-file with a compliance verification result of passing the verification is determined as each target sub-file; and target prompt information is generated based on each target sub-file.
[0041] The target prompt information at least includes the execution order of each target sub-file, the target maintenance object corresponding to each target sub-file, and the execution mode of each target sub-file. In an optional embodiment, the power consumption information collection terminal can determine the execution order of each target sub-file according to the logical dependency of the maintenance task. For example, the maintenance file is used to update a certain software, and when updating the software, the sub-target file used to load the application patch program must be executed first, then the execution order of the sub-target file is determined to be 1. The power consumption information collection terminal can also determine the execution mode of the sub-target file according to the execution environment of each sub-target file, whether there is a dependency, necessary command line parameters and execution instructions. For example, when executing the sub-target file, whether it is necessary to close some software that may cause conflicts, whether it must be carried out in a networked state or whether it must be executed off the network, etc. After determining the target prompt information, the target prompt information can be intuitively displayed to the user in the form of a window, dialog box or panel, so that the user can maintain the target maintenance objects of the power consumption information collection terminal according to the target prompt information and each target file through the power consumption information collection terminal.
[0042] Figure 3 A schematic diagram of the interactive process of the power consumption information collection terminal and the mobile storage device for equipment maintenance provided by the embodiment of the present invention. Figure 3 As shown, when the mobile storage device is inserted into the power consumption information collection terminal, the power consumption information collection terminal detects a trigger event. The mobile storage device performs an encrypted handshake with the power consumption information collection terminal and sends a secret key to the power consumption information collection terminal. The power consumption information collection terminal verifies whether the secret key is legal. If the secret key is verified to be legal, it starts to read the files in the mobile storage device and obtains the encrypted file (maintenance file) in the mobile storage device. After obtaining the encrypted file, the encrypted file is verified to be legal. If the file is verified to be legal, the power consumption information collection terminal executes the encrypted file.
[0043] The technical solution of this embodiment, when it is detected that the data port is connected to a mobile storage device, performs a security check on the mobile storage device to obtain a security check result; obtains at least one target file in the mobile storage device based on the security check result; the target file is used to maintain the target maintenance object of the power consumption collection terminal; generates target prompt information according to each target file, and displays the target prompt information to the user, so that the user can maintain each target maintenance object of the power consumption information collection terminal according to the target prompt information and each target file through the power consumption information collection terminal. The technical solution of this embodiment ensures the security of the power consumption information collection terminal by performing a security check on the mobile storage device. By using the target file in the mobile storage device to maintain the target maintenance object, the power consumption information collection terminal can be maintained locally without returning the terminal device to the manufacturer, saving manpower and time costs, improving the maintenance efficiency of the power consumption information collection terminal, and also improving the reliability and stability of the power consumption information collection terminal, reducing the occurrence of failures.
[0044] Figure 4 The second flow chart of a device maintenance method provided by an embodiment of the present invention is a refinement of the above embodiment. The specific method can be as follows Figure 4 As shown, the method may include the following steps:
[0045] Step 401: When it is detected that a data port is connected to a mobile storage device, a security check is performed on the mobile storage device to obtain a security check result.
[0046] Step 402: When the security verification result is successful, select maintenance files in the same format as the predetermined target format from the files in the mobile storage device.
[0047] The target format is a predefined data format or naming format of each maintenance file. Specifically, a mobile storage device may store a variety of files. A maintenance file may be a folder containing multiple sub-files, and the naming format of the folder is a pre-set naming format of the maintenance file. When the safety check result is a successful check, the power consumption information collection terminal can filter out maintenance files with the same naming format as the pre-set maintenance file based on the naming of the maintenance file.
[0048] Alternatively, the maintenance file may also be a plurality of separate indecomposable files, whose file naming format or data format is the format of a specific maintenance file, for example, the format of the maintenance file may be a configuration file, a script file, or a batch file, etc. When the safety check result is a successful check, the power consumption information collection terminal may determine whether its data format is the format of the maintenance file by the extension of each maintenance file, and filter out each maintenance file according to the extension of each file of the mobile storage device. In this solution, the extension of the maintenance file may include: .cfg, .ini, .sh, .bat, and .ps1, etc.
[0049] Step 403: Search each maintenance file for each target maintenance file corresponding to each maintenance object according to each predetermined maintenance object identifier.
[0050] Among them, the maintenance object identifier is used to mark different maintenance objects. The power consumption information collection terminal can accurately locate the specific object that needs to be maintained according to the maintenance object identifier, ensuring that each maintenance task can be accurately applied to the correct maintenance object. Specifically, there may be many maintenance files in the mobile storage device, but not all maintenance files are applicable to the maintenance objects of the power consumption information collection terminal. For example, the objects that need to be maintained by the power consumption information collection terminal include object A and object B. The mobile storage device stores maintenance files of 5 maintenance objects, namely object A, object B, object C, object D and object E. Therefore, in order to quickly determine the maintenance file corresponding to the power consumption information collection device, after identifying all maintenance files, according to the predetermined maintenance object identifiers of the power consumption information collection terminal, the maintenance file corresponding to the maintenance object identifier that is the same as the maintenance object identifier of the power consumption information collection terminal can be screened out from the identified maintenance files, and the maintenance file is determined as the target maintenance file.
[0051] Step 404: perform maintenance compliance verification on each target maintenance file to obtain a compliance verification result; when the compliance verification result is verification passed, the target maintenance file is determined as a target file.
[0052] Among them, compliance verification is used to determine whether the target file complies with preset safety standards and operating procedures. In an optional implementation, after obtaining all target maintenance files corresponding to the electricity consumption information collection terminal, each target maintenance file can be analyzed and compliance verified based on information such as the source, format, content and structure of each target maintenance file, such as checking whether the extension and internal structure of the target maintenance file conform to the expected maintenance file format. Perform content analysis on the target maintenance file to ensure that the target maintenance file does not contain malicious code or non-compliant configuration. Further, if the compliance verification result of the target maintenance file is that the verification is passed, the target maintenance file is determined as the target file. If the compliance verification result of the target maintenance file is that the verification fails, a prompt message of verification failure is generated to prompt the user that there is an abnormality in the maintenance file of the mobile storage device.
[0053] Step 405: Store the target file in a preset temporary file isolation area through a preset encryption channel, decompose the target file in the file isolation area, and obtain sub-files corresponding to the target file.
[0054] Among them, the encryption channel is a secure data transmission mechanism used to ensure the security and integrity of data during the transmission process. Using an encrypted channel to store the target file in a pre-set temporary file isolation area can avoid data leakage or tampering. The temporary file isolation area is a specific area on the electricity information collection terminal for storing files being processed. The temporary file isolation area provides a safe environment so that the electricity information collection terminal can further decompose and verify the file without affecting other parts of the system. Specifically, the target file may be a folder including many sub-files, or it may be a separate file that cannot be decomposed, and it is also a file that can be directly executed by the electricity information collection terminal. After obtaining the target file, if the target file is not a separate file that cannot be decomposed, the file is decomposed to obtain the sub-files corresponding to each target file.
[0055] Step 406: Perform single-file compliance verification on each sub-file to obtain each single-file compliance verification result, and determine each sub-file with a compliance verification result of passing the verification as each target sub-file.
[0056] Among them, the single file compliance verification is used to perform compliance checks on each sub-file separately to ensure that each sub-file complies with the preset safety standards and operating procedures. The power consumption information collection terminal can analyze and verify the compliance of each sub-file based on the source, format, content and structure of each sub-file. If the compliance verification result of the sub-file is passed, the sub-file is determined as the target sub-file. If the compliance verification result of the sub-file is failed, a prompt message of failed verification is generated to prompt the user that there is an abnormality in the sub-file.
[0057] Step 407: Generate target prompt information based on each target subfile, and display the target prompt information to the user, so that the user can maintain each target maintenance object of the power consumption information collection terminal according to the target prompt information and each target file through the power consumption information collection terminal.
[0058] In the technical solution of the present embodiment, when it is detected that the data port is connected to a mobile storage device, a security check is performed on the mobile storage device to obtain a security check result. When the security check result is a successful check, each maintenance file of the same format as the predetermined target format is screened out from each file of the mobile storage device. According to each predetermined maintenance object identifier, each target maintenance file corresponding to each maintenance object is searched in each maintenance file. Each target file is determined based on each target maintenance file. The target file is stored in a preset temporary file isolation area through a preset encryption channel, and the target file is decomposed in the file isolation area to obtain each sub-file corresponding to the target file. Single file compliance verification is performed on each sub-file to obtain each single file compliance verification result, and each sub-file with each compliance verification result as a verification pass is determined as each target sub-file. Target prompt information is generated based on each target sub-file. In the solution of the present embodiment, an encrypted channel is used to transmit the target file, which ensures the security and integrity of the data transmission process and prevents the data from being intercepted or tampered with during the transmission process. According to the maintenance object identifier, the corresponding maintenance file is quickly searched, so that the maintenance personnel can directly operate on a specific maintenance object, saving a lot of time. Perform single-file compliance verification on each sub-file to ensure that each file complies with the preset security standards and operating procedures, preventing malicious files from causing damage to the system. Store the target file in the temporary file isolation area for processing to avoid affecting other parts of the system and enhance the stability of the system. By using the target file in the mobile storage device to maintain the target maintenance object, the power consumption information collection terminal can be maintained locally without returning the terminal device to the manufacturer, saving manpower and time costs, improving the maintenance efficiency of the power consumption information collection terminal, and at the same time improving the reliability and stability of the power consumption information collection terminal and reducing the occurrence of failures.
[0059] An embodiment of the present invention also provides a computer program product.
[0060] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer program products, which can include one or more computer programs, which can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor, which can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0061] Figure 5 The schematic diagram of the structure of a device maintenance apparatus provided in an embodiment of the present invention is suitable for executing the device maintenance method provided in an embodiment of the present invention. Figure 5 As shown, the device may specifically include:
[0062] The security verification module 501 is used to perform a security verification on the mobile storage device when it is detected that the data port is connected to the mobile storage device, and obtain a security verification result;
[0063] A file acquisition module 502 is used to acquire at least one target file in the mobile storage device based on the security verification result; the target file is used to maintain the target maintenance object of the power consumption collection terminal;
[0064] The equipment maintenance module 503 is used to generate target prompt information according to each target file, and display the target prompt information to the user, so that the user can maintain each target maintenance object of the power consumption information collection terminal according to the target prompt information and each target file through the power consumption information collection terminal.
[0065] Optionally, the security verification module 501 is specifically used to: send a key verification request to the mobile storage device, and obtain a key returned by the mobile storage device in response to the key verification request;
[0066] Perform multiple verifications on the secret key to obtain each verification result; the multiple verifications at least include secret key matching verification and integrity verification;
[0067] When each of the verification results is a successful verification, the security verification result is determined to be a successful verification, and when at least one of the verification results is a failed verification, the security verification result is determined to be a failed verification.
[0068] Optionally, the file acquisition module 502 is specifically used to: when the security verification result is a successful verification, screen out various maintenance files in the same format as the predetermined target format from various files in the mobile storage device;
[0069] Searching for target maintenance files corresponding to the maintenance objects in the maintenance files according to the predetermined maintenance object identifiers;
[0070] The target files are determined based on the target maintenance files.
[0071] Optionally, the file acquisition module 502 is further used to: perform maintenance compliance verification on each target maintenance file to obtain a compliance verification result; when the compliance verification result is verification passed, determine the target maintenance file as the target file.
[0072] Optionally, the device maintenance module 503 is specifically used to: store the target file in a preset temporary file isolation area through a preset encryption channel;
[0073] Decomposing the target file in the file isolation area to obtain sub-files corresponding to the target file;
[0074] Performing single-file compliance verification on each of the sub-files to obtain compliance verification results of each single-file, and determining each of the sub-files for which the compliance verification results are verified as each target sub-file;
[0075] The target prompt information is generated based on the target sub-files.
[0076] Optionally, the target prompt information includes at least an execution order of each target sub-file, a target maintenance object corresponding to each target sub-file, and an execution method of each target sub-file.
[0077] The equipment maintenance device provided in the embodiment of the present invention can execute the equipment maintenance method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. For the contents not described in detail in this embodiment, reference can be made to the description in any method embodiment of the present invention.
[0078] Figure 6 A schematic diagram of a power consumption information collection terminal provided by an embodiment of the present invention, referring to Figure 6 , Figure 6The power consumption information collection terminal 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application. Figure 6 As shown, the power consumption information collection terminal 12 is in the form of a general computing device. The components of the power consumption information collection terminal 12 may include but are not limited to: one or more processors or processing units 16, system memory 28, and a bus 18 connecting different system components (including system memory 28 and processing unit 16).
[0079] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0080] The power consumption information collection terminal 12 typically includes a variety of computer system readable media, which can be any available media that can be accessed by the power consumption information collection terminal 12, including volatile and non-volatile media, removable and non-removable media.
[0081] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The power consumption information collection terminal 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 6 not shown, usually called a "hard drive"). Although Figure 6 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical medium) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present application.
[0082] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described herein.
[0083] The power consumption information collection terminal 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), and may also communicate with one or more devices that enable a user to interact with the power consumption information collection terminal 12, and / or communicate with any device that enables the power consumption information collection terminal 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed through an input / output (I / O) interface 22. Furthermore, the power consumption information collection terminal 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 20. As shown in the figure, the network adapter 20 communicates with other modules of the power consumption information collection terminal 12 through a bus 18. It should be understood that although Figure 6 Not shown, other hardware and / or software modules may be used in conjunction with the electricity consumption information collection terminal 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0084] The processor runs a useful power information collection system. Figure 7 The structure diagram of the power consumption information collection system provided by the embodiment of the present invention is as follows. Figure 7 As shown, the power consumption information collection system includes a micro control unit, a security verification module, a display module, a system management module, a security module, a bus management module, a serial port management module, a data management module, an Internet of Things management module and a local module. The security verification module is used to perform security verification on files, software or programs of mobile storage devices. The security module is used to perform security verification on the hardware of the power consumption information collection system or other connected devices. The system management module is used to manage the various systems in the power consumption information collection terminal. The Internet of Things management module is used to manage Internet of Things data and software. The local module is used to manage the communication data between the various modules, systems or hardware devices of the power consumption information collection terminal.
[0085] The embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, a device maintenance method as provided in all the embodiments of the present invention is implemented: when it is detected that a data port is connected to a mobile storage device, a security check is performed on the mobile storage device to obtain a security check result; at least one target file in the mobile storage device is obtained based on the security check result; the target file is used to maintain the target maintenance object of the power consumption collection terminal; target prompt information is generated according to each target file, and the target prompt information is displayed to the user, so that the user can maintain each target maintenance object of the power consumption information collection terminal according to the target prompt information and each target file through the power consumption information collection terminal. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electric, magnetic, optical, electromagnetic, infrared, or semiconductor power consumption information collection terminal, device or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more conductors, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction-executing power consumption information collection terminal, device or device.
[0086] A computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction-executing power consumption information collection terminal, device, or device.
[0087] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0088] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0089] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for equipment maintenance, characterized in that: Applied to a power consumption information collection terminal, the method comprises: When it is detected that the data port is connected to a mobile storage device, a security check is performed on the mobile storage device to obtain a security check result; Acquire at least one target file in the mobile storage device based on the security verification result; the target file is used to maintain the target maintenance object of the power consumption collection terminal; Target prompt information is generated according to each target file, and the target prompt information is displayed to the user, so that the user can maintain each target maintenance object of the power consumption information collection terminal according to the target prompt information and each target file through the power consumption information collection terminal.
2. The method according to claim 1, characterized in that Performing a security check on the mobile storage device to obtain a security check result includes: Sending a key verification request to the mobile storage device, and obtaining a key returned by the mobile storage device in response to the key verification request; Perform multiple verifications on the secret key to obtain each verification result; the multiple verifications at least include secret key matching verification and integrity verification; When each of the verification results is a successful verification, the security verification result is determined to be a successful verification, and when at least one of the verification results is a failed verification, the security verification result is determined to be a failed verification.
3. The method according to claim 1, characterized in that Acquiring at least one target file in the mobile storage device based on the security verification result includes: When the security verification result is successful, screening out maintenance files having the same format as a predetermined target format from the files in the mobile storage device; Searching for target maintenance files corresponding to the maintenance objects in the maintenance files according to the predetermined maintenance object identifiers; The target files are determined based on the target maintenance files.
4. The method according to claim 3, characterized in that: Determining each target file based on each target maintenance file includes: A maintenance compliance verification is performed on each target maintenance file to obtain a compliance verification result; when the compliance verification result is verification passed, the target maintenance file is determined as the target file.
5. The method according to claim 1, characterized in that Generate target prompt information based on each target file, including: Storing the target file in a preset temporary file isolation area through a preset encryption channel; Decomposing the target file in the file isolation area to obtain sub-files corresponding to the target file; Performing single-file compliance verification on each of the sub-files to obtain compliance verification results of each single-file, and determining each sub-file with a compliance verification result indicating that the verification has passed as each target sub-file; The target prompt information is generated based on the target sub-files.
6. The method according to claim 5, characterized in that The target prompt information at least includes the execution order of each target sub-file, the target maintenance object corresponding to each target sub-file, and the execution mode of each target sub-file.
7. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements a device maintenance method according to any one of claims 1 to 6.
8. An equipment maintenance device, characterized in that: include: A security verification module, used for performing a security verification on the mobile storage device to obtain a security verification result when detecting that the data port is connected to the mobile storage device; A file acquisition module, used to acquire at least one target file in the mobile storage device based on the security verification result; the target file is used to maintain the target maintenance object of the power consumption collection terminal; The equipment maintenance module is used to generate target prompt information according to each target file and display the target prompt information to the user, so that the user can maintain each target maintenance object of the power consumption information collection terminal according to the target prompt information and each target file through the power consumption information collection terminal.
9. An electricity consumption information collection terminal, comprising a memory, a processor, and an electricity consumption information collection system stored in the memory and operable on the processor, characterized in that: The electricity consumption information collection system implements an equipment maintenance method as described in any one of claims 1 to 6.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, a device maintenance method as described in any one of claims 1 to 6 is implemented.