A software comparison method and device for electric power equipment

Through the software comparison method of power equipment, the prototype program comparison is performed using the software comparison system's equipment slots, which solves the safety hazards caused by changes in power equipment software, ensures the normal software functions of power equipment, and ensures the safe and reliable operation of the power grid.

CN117435240BActive Publication Date: 2025-04-22ELECTRIC POWER RES INST CHINA SOUTHERN POWER GRID CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311446275.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-01
Publication Date
2025-04-22
Estimated Expiration
2043-11-01

AI Technical Summary

Technical Problem

Due to the changes in the power equipment software plan, there are hidden dangers to the safe and reliable operation of the power equipment. How to compare the software of the power equipment to ensure that its functions are qualified.

Method used

A software comparison method for power equipment is proposed. Through software comparison of the system's equipment slots, the software registration and comparison documents of power equipment are obtained, the case prototype, the correct program prototype and the wrong program prototype are set, and the prototype program comparison is carried out to determine the normality of the software function.

Benefits of technology

By comparing the software of the power equipment, it ensures its normal function and ensures the safe and reliable operation of the power grid, reducing the hidden dangers caused by software changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117435240B_ABST
    Figure CN117435240B_ABST
Patent Text Reader

Abstract

The present application discloses a software comparison method and device for electric power equipment, the method comprising: entering the filing comparison file of the electric power equipment into the filing entry system, exporting the filing information file, setting the filing prototype on the first device position of the software comparison system based on the filing number of the filing information file, setting the correct program prototype on the second device position, setting the wrong program prototype on the third device position, determining the comparison file format type and comparison configuration parameters, and performing program comparison on the electric power equipment on the fourth device position with the first device position, the second device position and the third device position respectively, and when the comparison result is qualified, determining that the software function of the electric power equipment is normal. It can be seen that by performing program comparisons on the filing prototype, the correct program prototype and the wrong program prototype with the electric power equipment one by one, it is possible to identify whether the software of the electric power equipment is running normally, thereby ensuring that the software function of the electric power equipment used by the power grid is normal and meeting the requirements for safe and reliable operation of the electric power equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of power equipment detection, and more specifically, to a software comparison method and device for power equipment. Background Art

[0002] With the continuous development of power technology, the production of power equipment is urgent, and power equipment manufacturers need to connect with local power grid units. In fact, due to the tight supply demand of power equipment, there is a shortage of components, and due to the special customization requirements of local power grid units, changes in technical standard details, etc., power equipment suppliers have changed the power equipment software solutions to meet the supply demand.

[0003] At present, the power equipment used in the power grid comes directly from the manufacturers. Due to the change of the software solution of the power equipment, there are doubts about whether the power equipment can be used in the power grid, which poses a hidden danger to the safe and reliable operation of the power equipment.

[0004] How to compare the software of power equipment to ensure that the software functions of the power equipment are qualified and meet the requirements of safe and reliable operation of the power equipment is an issue that needs attention. Summary of the invention

[0005] In view of the above problems, the present application is proposed to provide a software comparison method and device for electric power equipment to ensure that the software functions of the electric power equipment are qualified and meet the requirements for safe and reliable operation of the electric power equipment.

[0006] In order to achieve the above objectives, the specific plan is proposed as follows:

[0007] A software comparison method for electric power equipment is applied to a software comparison system, wherein the software comparison system has a device slot, wherein the device slot includes a first device slot, a second device slot, a third device slot and a fourth device slot, wherein the first device slot, the second device slot and the third device slot all communicate with the fourth device slot;

[0008] The method includes:

[0009] When the fourth device position is equipped with an electric device, a software filing comparison file of the electric device is obtained, and the software filing comparison file is entered into a preset filing entry system, and a filing information file is exported;

[0010] Extracting the registration number of the electric power equipment from the registration information file;

[0011] Based on the filing number, a filing prototype of the electric device during software filing is set at the first device position, a correct program prototype of the electric device is set at the second device position, and an erroneous program prototype of the electric device is set at the third device position, wherein the correct program prototype stores a correct running program of the electric device, and the erroneous program prototype stores an erroneous running program of the electric device;

[0012] Determine the comparison file format type and comparison configuration parameters of the filing information file;

[0013] Under the comparison file format type and the comparison configuration parameters, the fourth device bit is compared with the first device bit in a prototype program to obtain a first software comparison result, the fourth device bit is compared with the second device bit in a prototype program to obtain a second software comparison result, and the fourth device bit is compared with the third device bit in a prototype program to obtain a third software comparison result;

[0014] When the first software comparison result, the second software comparison result and the third software comparison result are all qualified, it is determined that the software function of the electric power equipment is normal.

[0015] Optionally, the software filing process of the electric power equipment includes:

[0016] After the hardware of the power equipment passes the comparison test, performing software function tests on each software of the power equipment to obtain software test results of each software;

[0017] If the software test results of each software are qualified, obtaining the software filing information of the electric power equipment, wherein the software filing information includes the software information of each software of the electric power equipment;

[0018] Generate a comparison file ciphertext according to the types and models of all software in the power equipment;

[0019] Determine the registration number based on the comparison file ciphertext and the software registration information;

[0020] The registration number is configured into the electric power equipment.

[0021] Optionally, the method further includes:

[0022] A software comparison file is generated according to the software filing information, and the software comparison file is archived.

[0023] Optionally, generating a comparison file ciphertext according to the types and models of all software in the power equipment includes:

[0024] Determining a first ciphertext according to the types and models of all software in the power equipment;

[0025] Determine a second ciphertext according to the production unit, production time, and batch number of the electric power equipment;

[0026] Performing a logic operation or a shift operation on a first target ciphertext segment in the first ciphertext to obtain a first processed ciphertext segment;

[0027] Performing a logic operation or a shift operation on a second target ciphertext segment in the second ciphertext to obtain a second processed ciphertext segment, wherein the length of the second processed ciphertext segment is equal to the length of the first processed ciphertext segment;

[0028] Converting the first ciphertext into a third ciphertext by replacing the first target ciphertext segment with the second processed ciphertext segment in the first ciphertext;

[0029] Converting the second ciphertext into a fourth ciphertext by replacing the second target ciphertext segment with the first processed ciphertext segment in the second ciphertext;

[0030] The third ciphertext and the fourth ciphertext are aggregated to generate a comparison file ciphertext.

[0031] Optionally, aggregating the third ciphertext and the fourth ciphertext to generate a comparison file ciphertext includes:

[0032] Constructing an encryption type array according to each software type information in the third ciphertext;

[0033] Constructing an encrypted model array according to each software model information in the third ciphertext;

[0034] Constructing an encrypted power equipment attribute array according to the production unit information, production time information and batch number information in the fourth ciphertext;

[0035] Calculate the prefix sum of each element in each encryption type array, and construct a first prefix sum array according to the prefix sum of each encryption type array;

[0036] Calculate the prefix sum of each element in each encryption model array, and construct a second prefix sum array based on the prefix sum of each encryption model array;

[0037] Obtaining a target array by performing staggered addition on each element of the first prefix sum array and each element of the second prefix sum array;

[0038] The encrypted power equipment attribute array and the target array are connected and aggregated to obtain a comparison file ciphertext.

[0039] Optionally, the software comparison system includes a bracket and a host computer, and the first device position, the second device position, the third device position and the fourth device position are arranged on the bracket, and the first device position, the second device position, the third device position and the fourth device position are respectively connected to the host computer through respective communication serial ports.

[0040] Optionally, the software comparison system further includes an electric equipment installation mechanism, the electric equipment installation mechanism includes an electric push rod and a control module, the electric push rod is installed on the bracket, and the host computer is connected to the electric push rod through the control module;

[0041] The electric push rod is used to push the electrical equipment into the fourth equipment position.

[0042] Optionally, the power equipment installation mechanism further includes an overcurrent protection module, and the overcurrent protection module includes a current detection circuit and an overcurrent protection circuit;

[0043] The current detection circuit is used to detect the current signal of the electric push rod and input the current signal to the overcurrent protection circuit;

[0044] The overcurrent protection circuit is used to determine whether the current signal exceeds a preset current threshold, and if so, stop outputting current to the electric push rod.

[0045] Optionally, the power equipment installation mechanism also includes a pressure meter in place detection module, which includes a status light arranged on the side of each device position in the device position slot, and an upper electrical contact terminal arranged above each device position in the device position slot.

[0046] A software comparison device for electric power equipment is applied to a software comparison system, wherein the software comparison system has a device slot, wherein the device slot includes a first device slot, a second device slot, a third device slot and a fourth device slot, wherein the first device slot, the second device slot and the third device slot all communicate with the fourth device slot;

[0047] The device includes:

[0048] A filing information file exporting unit, used for obtaining a software filing comparison file of the power equipment when the fourth equipment position is equipped with power equipment, inputting the software filing comparison file into a preset filing input system, and exporting a filing information file;

[0049] A registration number extraction unit, used to extract the registration number of the electric power equipment from the registration information file;

[0050] a prototype setting unit, configured to set, based on the filing number, a prototype of the electric power device when filing software at the first device position, a correct program prototype of the electric power device at the second device position, and an incorrect program prototype of the electric power device at the third device position, wherein the correct program prototype stores a correct program for running the electric power device, and the incorrect program prototype stores an incorrect program for running the electric power device;

[0051] A comparison parameter determination unit, used to determine the comparison file format type and comparison configuration parameters of the filing information file;

[0052] a prototype program comparison unit, configured to perform a prototype program comparison between the fourth device bit and the first device bit under the comparison file format type and the comparison configuration parameters to obtain a first software comparison result, perform a prototype program comparison between the fourth device bit and the second device bit to obtain a second software comparison result, and perform a prototype program comparison between the fourth device bit and the third device bit to obtain a third software comparison result;

[0053] The software function normal determination unit is used to determine that the software function of the power equipment is normal when the first software comparison result, the second software comparison result and the third software comparison result are all qualified.

[0054] Optionally, the device further comprises:

[0055] A software function testing unit, used to perform software function testing on each software of the power equipment after the hardware of the power equipment passes the comparison test, and obtain software test results of each software;

[0056] A software filing information acquisition unit, configured to acquire software filing information of the electric power equipment if the software test results of each software are qualified, wherein the software filing information includes software information of each software of the electric power equipment;

[0057] A comparison file ciphertext generating unit, used to generate a comparison file ciphertext according to the types and models of all software in the power equipment;

[0058] A registration number determination unit, configured to determine a registration number based on the comparison file ciphertext and the software registration information;

[0059] A registration number configuration unit is used to configure the registration number into the power equipment.

[0060] Optionally, the device further comprises:

[0061] The comparison file archiving unit is used to generate a software comparison file according to the software filing information and archive the software comparison file.

[0062] Optionally, the comparison file ciphertext generation unit includes:

[0063] A first ciphertext determination unit, configured to determine a first ciphertext according to the types and models of all software in the power device;

[0064] A second ciphertext determining unit, configured to determine a second ciphertext according to a production unit, production time and batch number of the electric power equipment;

[0065] A first target ciphertext segment processing unit, configured to perform a logic operation or a shift operation on the first target ciphertext segment in the first ciphertext to obtain a first processed ciphertext segment;

[0066] a second target ciphertext segment processing unit, configured to perform a logic operation or a shift operation on the second target ciphertext segment in the second ciphertext to obtain a second processed ciphertext segment, wherein the length of the second processed ciphertext segment is equal to the length of the first processed ciphertext segment;

[0067] a first ciphertext conversion unit, configured to convert the first ciphertext into a third ciphertext by replacing the first target ciphertext segment with the second processed ciphertext segment in the first ciphertext;

[0068] a second ciphertext conversion unit, configured to convert the second ciphertext into a fourth ciphertext by replacing the second target ciphertext segment with the first processed ciphertext segment in the second ciphertext;

[0069] The ciphertext aggregation unit is used to aggregate the third ciphertext and the fourth ciphertext to generate a comparison file ciphertext.

[0070] Optionally, the ciphertext aggregation unit includes:

[0071] A first ciphertext aggregation subunit, used to construct an encryption type array according to each software type information in the third ciphertext;

[0072] A second ciphertext aggregation subunit is used to construct an encrypted model array according to each software model information in the third ciphertext;

[0073] A third ciphertext aggregation subunit, used to construct an encrypted power equipment attribute array according to the production unit information, production time information and batch number information in the fourth ciphertext;

[0074] The fourth ciphertext aggregation subunit is used to calculate the prefix sum of each element in each encryption type array, and construct a first prefix sum array according to the prefix sum of each encryption type array;

[0075] A fifth ciphertext aggregation subunit, used to calculate the prefix sum of each element in each encryption model array, and construct a second prefix sum array according to the prefix sum of each encryption model array;

[0076] a sixth ciphertext aggregation subunit, configured to obtain a target array by performing staggered addition on each element of the first prefix sum array and each element of the second prefix sum array;

[0077] The seventh ciphertext aggregation subunit is used to connect and aggregate the encrypted power equipment attribute array and the target array to obtain a comparison file ciphertext.

[0078] By means of the above technical scheme, the present application obtains the software filing comparison file of the power equipment when the fourth device position of the software comparison system is equipped with power equipment, enters the software filing comparison file into the preset filing entry system, exports the filing information file, extracts the filing number of the power equipment from the filing information file, and sets the filing prototype of the power equipment at the time of software filing on the first device position based on the filing number, sets the correct program prototype of the power equipment on the second device position, and sets the wrong program prototype of the power equipment on the third device position, wherein the correct program prototype stores the correct running program of the power equipment, and the wrong program prototype stores the wrong running program of the power equipment. The operation error program of the electric power equipment is stored, and the comparison file format type and comparison configuration parameters of the filing information file are determined. Under the comparison file format type and the comparison configuration parameters, the fourth device bit is compared with the first device bit for a prototype program to obtain a first software comparison result, and the fourth device bit is compared with the second device bit for a prototype program to obtain a second software comparison result, and the fourth device bit is compared with the third device bit for a prototype program to obtain a third software comparison result. When the first software comparison result, the second software comparison result and the third software comparison result are all qualified, it is determined that the software function of the electric power equipment is normal. It can be seen that by comparing the prototype program of the reserved prototype, the correct program prototype and the error program prototype with the electric power equipment one by one, it can be identified whether the software of the electric power equipment is running normally, thereby ensuring that the software function of the electric power equipment used by the power grid is normal and meeting the requirements of safe and reliable operation of the electric power equipment. BRIEF DESCRIPTION OF THE DRAWINGS

[0079] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0080] Figure 1 A schematic diagram of a flow chart for realizing software comparison of power equipment provided in an embodiment of the present application;

[0081] Figure 2A schematic diagram of a process for implementing software filing of power equipment provided in an embodiment of the present application;

[0082] Figure 3 A schematic diagram of a process for generating a comparison file ciphertext provided in an embodiment of the present application;

[0083] Figure 4 A schematic diagram of the structure of a device for implementing software comparison of power equipment provided in an embodiment of the present application. DETAILED DESCRIPTION

[0084] 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.

[0085] The solution of the present application may be implemented based on a terminal having data processing capabilities, the terminal may be a software comparison system, and the software comparison system may have a device slot.

[0086] The device bit slot may include a first device bit, a second device bit, a third device bit and a fourth device bit, and the first device bit, the second device bit and the third device bit may all communicate with the fourth device bit.

[0087] Each device bit of the device bit slot can communicate through the serial port, such as the communication serial port of the first device bit is COM3, the communication serial port of the second device bit is COM6, the communication serial port of the third device bit is COM3, and the communication serial port of the fourth device bit is COM1. The baud rate of the device bit can be 9600.

[0088] Specifically, the first device position can be used to store the prototype for filing, the second device position can be used to store the prototype storing the correct program, the third device position can be used to store the prototype storing the incorrect program, and the fourth device position can be used to store the device that needs to be compared.

[0089] Next, combine Figure 1 The software comparison method of the electric power equipment of the present application may include the following steps:

[0090] Step S110: When the fourth device position is equipped with an electric device, a software filing comparison file of the electric device is obtained, and the software filing comparison file is entered into a preset filing entry system, and a filing information file is exported.

[0091] Specifically, the preset filing and entry system may have a filing and entry program, and the data format of the filing and entry program may be in .exe format. The software filing comparison file is input into the filing and entry program, and a filing information file may be output, and the data format of the filing information file may be in xml format.

[0092] It is understandable that the fourth device position is for placing equipment that needs to be compared, so when the power equipment is installed in the fourth device position, the software filing comparison file of the power equipment can be obtained.

[0093] The power equipment may store multiple software to realize the functions corresponding to each software, and each software may have model information and type information of the software. The filing information file may include a filing number.

[0094] Step S120: extracting the registration number of the electric power equipment from the registration information file.

[0095] It is understandable that the registration number is the unique ID of the power equipment. When it is necessary to query the relevant equipment or files of the power equipment, the registration number of the power equipment can be used for indexing.

[0096] Step S130: Based on the filing number, a filing prototype of the power equipment during software filing is set at the first device position, a correct program prototype of the power equipment is set at the second device position, and an incorrect program prototype of the power equipment is set at the third device position.

[0097] The correct program prototype may store a correct operating program of the electric equipment, and the incorrect program prototype may store an incorrect operating program of the electric equipment.

[0098] It is understandable that by indexing through the registration number, it is possible to determine the registered prototype of the power equipment when the software is registered, as well as the correct program prototype of the power equipment and the incorrect program prototype of the power equipment.

[0099] Step S140: Determine the comparison file format type and comparison configuration parameters of the filing information file.

[0100] Specifically, the comparison file format type and the comparison configuration parameters are environmental parameters of the power equipment when performing program comparison.

[0101] The comparison configuration parameters may include a power source communication serial port (such as COM1), an electric meter voltage (such as 220V) and a control unit communication serial port (such as COM8). The comparison file format type of the filing information file may be an easm format type.

[0102] Step S150, under the comparison file format type and comparison configuration parameters, perform a prototype program comparison between the fourth device bit and the first device bit to obtain a first software comparison result, perform a prototype program comparison between the fourth device bit and the second device bit to obtain a second software comparison result, and perform a prototype program comparison between the fourth device bit and the third device bit to obtain a third software comparison result.

[0103] Specifically, the first software comparison result may represent the comparison result of the function implemented by the running program of the power equipment and the function implemented by the running program of the retained prototype. The second software comparison result may represent the comparison result of the function implemented by the running program of the power equipment and the function implemented by the running program of the correct program prototype. The third software comparison result may represent the comparison result of the function implemented by the running program of the power equipment and the function implemented by the running program of the incorrect program prototype.

[0104] Step S160: When the first software comparison result, the second software comparison result and the third software comparison result are all qualified, it is determined that the software function of the power equipment is normal.

[0105] In addition, when at least one of the first software comparison result, the second software comparison result and the third software comparison result is unqualified, it is determined that the software function of the power equipment is abnormal.

[0106] The hardware comparison method of the electric power equipment provided in the present embodiment obtains the software filing comparison file of the electric power equipment when the electric power equipment is installed on the fourth equipment position of the software comparison system, enters the software filing comparison file into a preset filing entry system, exports a filing information file, extracts the filing number of the electric power equipment from the filing information file, and sets the filing prototype of the electric power equipment at the time of software filing on the first equipment position based on the filing number, sets the correct program prototype of the electric power equipment on the second equipment position, and sets the wrong program prototype of the electric power equipment on the third equipment position, wherein the correct program prototype stores the correct running program of the electric power equipment, and the wrong program prototype stores the wrong running program of the electric power equipment. The prototype stores the running error program of the electric power equipment, determines the comparison file format type and the comparison configuration parameters of the filing information file, compares the prototype program of the fourth device bit with the first device bit under the comparison file format type and the comparison configuration parameters, obtains the first software comparison result, compares the prototype program of the fourth device bit with the second device bit, obtains the second software comparison result, and compares the prototype program of the fourth device bit with the third device bit, obtains the third software comparison result, and when the first software comparison result, the second software comparison result and the third software comparison result are all qualified, it is determined that the software function of the electric power equipment is normal. It can be seen that by comparing the prototype program of the reserved prototype, the correct program prototype and the error program prototype with the electric power equipment one by one, it can be identified whether the software of the electric power equipment is running normally, thereby ensuring that the software function of the electric power equipment used by the power grid is normal and meeting the requirements of safe and reliable operation of the electric power equipment.

[0107] In some embodiments of the present application, the software filing process of the power equipment mentioned in the above embodiments is introduced. The software filing process can be performed when the power equipment does not have a software comparison function, such as Figure 2 As shown, the software filing process may include:

[0108] Step S210: After the hardware of the power equipment passes the comparison test, a software function test is performed on each software of the power equipment to obtain a software test result of each software.

[0109] Specifically, the hardware information of the power equipment can be obtained from the supplier of the power equipment, and a hardware comparison test can be performed on the power equipment. If the hardware of the power equipment passes the comparison test, a software function test can be performed on each software of the power equipment to obtain the software test results of each software.

[0110] Step S220: If the software test results of each software are qualified, the software filing information of the power equipment is obtained.

[0111] Among them, the software test results of each software are qualified, which means that the software of the power equipment has not been modified.

[0112] Specifically, after the software test results of each software are qualified, the software filing information of the power equipment can be sampled and electronically sealed to start filing.

[0113] Furthermore, since the software filing information is the filing information of each software of the power equipment verified through software testing, a software comparison file can be generated based on the filing information and archived for acquisition when software comparison of the power equipment is required.

[0114] Step S230: Generate a comparison file ciphertext according to the types and models of all software in the power equipment.

[0115] It is understandable that since the filing and comparison files of power equipment are important documents to ensure the safe and reliable operation of power equipment, the filing and comparison files of power equipment need to be encrypted and archived, so it is necessary to generate a ciphertext of the comparison file.

[0116] Step S240: Determine the registration number based on the comparison file ciphertext and the software registration information.

[0117] Step S250: configuring the registration number into the power equipment.

[0118] The hardware comparison method of the power equipment provided in this embodiment performs software function test on each software of the power equipment after the hardware of the power equipment passes the comparison test to obtain the software test results of each software. If the software test results of each software are qualified, the software filing information of the power equipment is obtained, and a comparison file ciphertext is generated according to the types and models of all software in the power equipment. Based on the comparison file ciphertext and the software filing information, a filing number is determined, and the filing number is configured into the power equipment, so that the power equipment can be filed before operation. When the power equipment is subjected to software comparison, the filed software comparison file can be obtained, thereby ensuring the safe and reliable operation of the power equipment.

[0119] In some embodiments of the present application, the process of generating a comparison file ciphertext according to the types and models of all software in the power equipment in step S220 is introduced. Figure 3 As shown, the process may include:

[0120] Step S310: Determine a first ciphertext according to the types and models of all software in the power equipment.

[0121] Step S320: Determine the second ciphertext according to the production unit, production time and batch number of the electric power equipment.

[0122] Step S330: Perform a logical operation or shift processing on the first target ciphertext segment in the first ciphertext to obtain a first processed ciphertext segment.

[0123] The first target ciphertext segment may be a ciphertext segment randomly selected from the first ciphertext, or may be a ciphertext segment specifically selected from the first ciphertext.

[0124] It should be noted that the logical operation or shift processing of the first target ciphertext segment is not performed directly on the first ciphertext, but the first target ciphertext segment is selected from the first ciphertext, the first target ciphertext segment is copied, and the logical operation or shift processing is performed on the copied first target ciphertext segment to obtain the first processed ciphertext segment.

[0125] Step S340: Perform a logical operation or a shift process on the second target ciphertext segment in the second ciphertext to obtain a second processed ciphertext segment.

[0126] The length of the second processed ciphertext segment is equal to the length of the first processed ciphertext segment. The second target ciphertext segment may be a ciphertext segment randomly selected from the second ciphertext, or may be a ciphertext segment specifically selected from the second ciphertext.

[0127] It should be noted that the logical operation or shift processing of the second target ciphertext segment is not performed directly on the second ciphertext, but the second target ciphertext segment is selected from the second ciphertext, the second target ciphertext segment is copied, and the logical operation or shift processing is performed on the copied second target ciphertext segment to obtain the second processed ciphertext segment.

[0128] Step S350: Convert the first ciphertext into a third ciphertext by replacing the first target ciphertext segment with the second processed ciphertext segment in the first ciphertext.

[0129] It can be understood that the first target ciphertext segment in the first ciphertext is replaced by the second processed ciphertext segment, so the first ciphertext is changed and converted into the third ciphertext.

[0130] Step S360: Convert the second ciphertext into a fourth ciphertext by replacing the second target ciphertext segment with the first processed ciphertext segment in the second ciphertext.

[0131] It can be understood that the second target ciphertext segment in the second ciphertext is replaced by the first processed ciphertext segment, so the second ciphertext is changed and converted into the fourth ciphertext.

[0132] Step S370: Aggregate the third ciphertext and the fourth ciphertext to generate a comparison file ciphertext.

[0133] Specifically, the process of aggregating the third ciphertext and the fourth ciphertext to generate the comparison file ciphertext may include:

[0134] S71. Construct an encryption type array according to each software type information in the third ciphertext.

[0135] It is understandable that, since the power equipment includes multiple software, an encryption type array corresponding to each software can be constructed according to the software type information of each hardware. Therefore, for one power equipment, an encryption type array with the same number of software can be constructed.

[0136] S72. Construct an encrypted model array according to each software model information in the third ciphertext.

[0137] It is understandable that, since the power equipment includes multiple software, an encryption model array corresponding to each software can be constructed for the software model information of the software. Therefore, for one power equipment, an encryption model array equal to the number of software can be constructed.

[0138] S73. Construct an encrypted power equipment attribute array according to the production unit information, production time information and batch number information in the fourth ciphertext.

[0139] S74. Calculate the prefix sum of each element in each encryption type array, and construct a first prefix sum array according to the prefix sums of each encryption type array.

[0140] S75. Calculate the prefix sum of each element in each encryption model array, and construct a second prefix sum array according to the prefix sum of each encryption model array.

[0141] S76. Obtain a target array by performing staggered addition on each element of the first prefix sum array and each element of the second prefix sum array.

[0142] S77, connecting and aggregating the encrypted power equipment attribute array and the target array to obtain a comparison file ciphertext.

[0143] In some embodiments of the present application, the software comparison system mentioned in the above embodiments is further introduced. In addition to the device slots, the software comparison system may also include a bracket and a host computer.

[0144] The device slot may include a first device slot, a second device slot, a third device slot and a fourth device slot, and the first device slot, the second device slot, the third device slot and the fourth device slot may be arranged on the bracket. The first device slot, the second device slot, the third device slot and the fourth device slot may be respectively connected to the host computer through their respective communication serial ports.

[0145] Among them, since the aluminum alloy panel is neat and generous, not easy to be stained, and easy to clean and maintain, the bracket can be made of aluminum alloy such as iron-aluminum alloy. The bracket can also be equipped with a Fuma wheel, which saves labor, has good load-bearing capacity, is strong and durable, and is convenient for moving and transporting the device. The prototype support on the bracket can be compatible with various specifications of power equipment, with auxiliary terminals, which are used to press the prototype into the equipment position. The software comparison system can only use one 220V mains power cord to reduce miscellaneous wires. The power supply voltage of the software comparison system adopts 220V mains power, and the maximum power consumption is 1000VA.

[0146] Specifically, the prototype of the power equipment can be electrically connected to the host computer through the communication serial port, so that the power equipment communicates with the host computer.

[0147] The designated communication signal on the power equipment can be connected to the USB hub through the auxiliary terminal on the prototype tray, through the USB to designated communication module, so as to communicate with the host computer through the serial port. The USB hub can expand one USB interface into multiple independently working USB interfaces, which can be directly connected to the computer host. The computer automatically recognizes and installs without the need for a driver. It can support USB2.0 ports, 480Mbps speed, and is backward compatible with the built-in current overload short-circuit protection device of the USB1.1 port.

[0148] The prototype of the power equipment can be pressed onto the equipment position by automatic crimping, without the need for additional fixing structures such as screws.

[0149] In some embodiments of the present application, the software comparison system mentioned in the above embodiments is further introduced, and the software comparison system may also include an electric power equipment installation mechanism.

[0150] Among them, the power equipment installation mechanism may include an electric push rod and a control module, the electric push rod can be installed on the bracket, the working voltage of the electric push rod can be 24V, the rated power of the electric push rod can be 20W, the electric push rod can be driven by a relay, and the crimping and unloading can be completed by the upper computer in a specified manner. The upper computer can be connected to the electric push rod through the control module, and the 485 signal of the drive board of the specific electric push rod can be connected to the USB hub via the USB to 485 communication module, so as to communicate with the upper computer through the serial port.

[0151] Specifically, the electric push rod can be used to push the electric device into the fourth device position through the control module.

[0152] It is understandable that the electric push rod has high operating stability and can be used in different occasions. The electric push rod converts the electric rotor and the torsion arm into a modular product, converts the straight motion of the electric rotor into a rotary motion, so that the speed of the electric rotor is distributed and high-precision rotary motion is completed. The electric push rod can be used in various simple or complex process flows as an execution machine to achieve remote control, centralized control or automatic control. For different use occasions, different combinations of electric push rods and motors, special function accessories, etc. have different functions and scopes of use. The use of electric push rods saves space and has no dependence on external conditions.

[0153] The control module may include a relay and a driving chip connected to the relay.

[0154] Wherein, the driving chip can adopt STM32F03 microprocessor.

[0155] Specifically, the signal input end of the control module is electrically connected to the control signal output end of the host computer, and the output end of the control module is electrically connected to the crimping control end and the unloading control end of the electric push rod accordingly.

[0156] In some embodiments of the present application, the electric power equipment installation mechanism mentioned in the above embodiments is further introduced. In addition to the electric push rod and the control module, the electric power equipment installation mechanism may also include an overcurrent protection module.

[0157] Specifically, the overcurrent protection module may include a current detection circuit and an overcurrent protection circuit.

[0158] The current detection circuit may be used to detect the current signal of the electric push rod and input the current signal into the overcurrent protection circuit.

[0159] The overcurrent protection circuit can be used to determine whether the current signal exceeds a preset current threshold, and if so, stop outputting current to the electric push rod.

[0160] Specifically, the overcurrent protection circuit can determine whether the current of the electric push rod is overcurrent. When the current is too large or a stall occurs, it can identify and protect the electric push rod and stop outputting current to the electric push rod. Therefore, the overcurrent protection circuit can protect the electric push rod from overcurrent and improve its safety.

[0161] More specifically, the electric push rod current can flow through the sampling resistor, then be amplified by the low-pass filter circuit and the operational amplifier, compared with the set threshold voltage of the reverse input terminal of the operational amplifier, and finally converted into a level signal and processed by the microcontroller to determine whether there is overcurrent.

[0162] Furthermore, the electric power equipment installation mechanism may also include a pressure gauge in place detection module.

[0163] The pressure meter position detection module may include a status light arranged on the side of each device position in the device position slot, and an upper electrical contact terminal arranged directly above each device position in the device position slot.

[0164] Specifically, when the prototype and the corresponding device position are installed in place, the prototype is powered on, the power-on contact end on the prototype is connected to the power supply end of the status light on the side of the prototype, and the status light is on. Automatically identify whether the device position is crimped. Each table position has a status light. When there is no prototype, the status light will go out and there will be no voltage output at the device position. After the prototype is crimped in place, the status light will be on, and the prototype on the device position can be powered on.

[0165] The following is a description of an apparatus for implementing software comparison of electric power equipment provided in an embodiment of the present application. The apparatus for implementing software comparison of electric power equipment described below and the method for implementing software comparison of electric power equipment described above can be referenced to each other.

[0166] See also Figure 4 , Figure 4 A schematic diagram of the structure of a device for implementing software comparison of power equipment disclosed in an embodiment of the present application.

[0167] like Figure 4 As shown, the device may include:

[0168] The filing information file exporting unit 11 is used to obtain the software filing comparison file of the power equipment when the fourth equipment position is equipped with power equipment, enter the software filing comparison file into a preset filing entry system, and export the filing information file;

[0169] A registration number extraction unit 12, used to extract the registration number of the electric power equipment from the registration information file;

[0170] The prototype setting unit 13 is used to set the prototype of the electric power equipment when filing the software at the first device position based on the filing number, set the correct program prototype of the electric power equipment at the second device position, and set the wrong program prototype of the electric power equipment at the third device position, wherein the correct program prototype stores the correct running program of the electric power equipment, and the wrong program prototype stores the wrong running program of the electric power equipment;

[0171] A comparison parameter determination unit 14, used to determine the comparison file format type and comparison configuration parameters of the filing information file;

[0172] The prototype program comparison unit 15 is used to perform a prototype program comparison between the fourth device bit and the first device bit under the comparison file format type and the comparison configuration parameters to obtain a first software comparison result, perform a prototype program comparison between the fourth device bit and the second device bit to obtain a second software comparison result, and perform a prototype program comparison between the fourth device bit and the third device bit to obtain a third software comparison result;

[0173] The software function normal determination unit 16 is used to determine that the software function of the power equipment is normal when the first software comparison result, the second software comparison result and the third software comparison result are all qualified.

[0174] Optionally, the device further comprises:

[0175] A software function testing unit, used to perform software function testing on each software of the power equipment after the hardware of the power equipment passes the comparison test, and obtain software test results of each software;

[0176] A software filing information acquisition unit, configured to acquire software filing information of the electric power equipment if the software test results of each software are qualified, wherein the software filing information includes software information of each software of the electric power equipment;

[0177] A comparison file ciphertext generating unit, used to generate a comparison file ciphertext according to the types and models of all software in the power equipment;

[0178] A registration number determination unit, configured to determine a registration number based on the comparison file ciphertext and the software registration information;

[0179] A registration number configuration unit is used to configure the registration number into the power equipment.

[0180] Optionally, the device further comprises:

[0181] The comparison file archiving unit is used to generate a software comparison file according to the software filing information and archive the software comparison file.

[0182] Optionally, the comparison file ciphertext generation unit includes:

[0183] A first ciphertext determination unit, configured to determine a first ciphertext according to the types and models of all software in the power device;

[0184] A second ciphertext determining unit, configured to determine a second ciphertext according to a production unit, production time and batch number of the electric power equipment;

[0185] A first target ciphertext segment processing unit, configured to perform a logic operation or a shift operation on the first target ciphertext segment in the first ciphertext to obtain a first processed ciphertext segment;

[0186] a second target ciphertext segment processing unit, configured to perform a logic operation or a shift operation on the second target ciphertext segment in the second ciphertext to obtain a second processed ciphertext segment, wherein the length of the second processed ciphertext segment is equal to the length of the first processed ciphertext segment;

[0187] a first ciphertext conversion unit, configured to convert the first ciphertext into a third ciphertext by replacing the first target ciphertext segment with the second processed ciphertext segment in the first ciphertext;

[0188] a second ciphertext conversion unit, configured to convert the second ciphertext into a fourth ciphertext by replacing the second target ciphertext segment with the first processed ciphertext segment in the second ciphertext;

[0189] The ciphertext aggregation unit is used to aggregate the third ciphertext and the fourth ciphertext to generate a comparison file ciphertext.

[0190] Optionally, the ciphertext aggregation unit includes:

[0191] A first ciphertext aggregation subunit, used to construct an encryption type array according to each software type information in the third ciphertext;

[0192] A second ciphertext aggregation subunit is used to construct an encrypted model array according to each software model information in the third ciphertext;

[0193] A third ciphertext aggregation subunit, used to construct an encrypted power equipment attribute array according to the production unit information, production time information and batch number information in the fourth ciphertext;

[0194] The fourth ciphertext aggregation subunit is used to calculate the prefix sum of each element in each encryption type array, and construct a first prefix sum array according to the prefix sum of each encryption type array;

[0195] A fifth ciphertext aggregation subunit, used to calculate the prefix sum of each element in each encryption model array, and construct a second prefix sum array according to the prefix sum of each encryption model array;

[0196] a sixth ciphertext aggregation subunit, configured to obtain a target array by performing staggered addition on each element of the first prefix sum array and each element of the second prefix sum array;

[0197] The seventh ciphertext aggregation subunit is used to connect and aggregate the encrypted power equipment attribute array and the target array to obtain a comparison file ciphertext.

[0198] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0199] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can refer to each other.

[0200] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A software comparison method for power equipment, characterized in that: Applied to a software comparison system, the software comparison system comprises a device bit slot, the device bit slot comprises a first device bit, a second device bit, a third device bit and a fourth device bit, the first device bit, the second device bit and the third device bit all communicate with the fourth device bit; The method includes: When the fourth device position is equipped with an electric device, a software filing comparison file of the electric device is obtained, and the software filing comparison file is entered into a preset filing entry system, and a filing information file is exported; Extracting the registration number of the electric power equipment from the registration information file; Based on the filing number, a filing prototype of the electric device during software filing is set at the first device position, a correct program prototype of the electric device is set at the second device position, and an erroneous program prototype of the electric device is set at the third device position, wherein the correct program prototype stores a correct running program of the electric device, and the erroneous program prototype stores an erroneous running program of the electric device; Determine the comparison file format type and comparison configuration parameters of the filing information file; Under the comparison file format type and the comparison configuration parameters, the fourth device bit is compared with the first device bit in a prototype program to obtain a first software comparison result, the fourth device bit is compared with the second device bit in a prototype program to obtain a second software comparison result, and the fourth device bit is compared with the third device bit in a prototype program to obtain a third software comparison result; When the first software comparison result, the second software comparison result and the third software comparison result are all qualified, it is determined that the software function of the electric power equipment is normal.

2. The method according to claim 1, characterized in that The software filing process of the electric power equipment includes: After the hardware of the power equipment passes the comparison test, performing software function tests on each software of the power equipment to obtain software test results of each software; If the software test results of each software are qualified, obtaining the software filing information of the electric power equipment, wherein the software filing information includes the software information of each software of the electric power equipment; Generate a comparison file ciphertext according to the types and models of all software in the power equipment; Determine the registration number based on the comparison file ciphertext and the software registration information; The registration number is configured into the electric power equipment.

3. The method according to claim 2, characterized in that Also includes: A software comparison file is generated according to the software filing information, and the software comparison file is archived.

4. The method according to claim 2 or 3, characterized in that: Generate a comparison file ciphertext based on the types and models of all software in the power equipment, including: Determining a first ciphertext according to the types and models of all software in the power equipment; Determine a second ciphertext according to the production unit, production time, and batch number of the electric power equipment; Performing a logic operation or a shift operation on a first target ciphertext segment in the first ciphertext to obtain a first processed ciphertext segment; Performing a logic operation or a shift operation on a second target ciphertext segment in the second ciphertext to obtain a second processed ciphertext segment, wherein the length of the second processed ciphertext segment is equal to the length of the first processed ciphertext segment; Converting the first ciphertext into a third ciphertext by replacing the first target ciphertext segment with the second processed ciphertext segment in the first ciphertext; Converting the second ciphertext into a fourth ciphertext by replacing the second target ciphertext segment with the first processed ciphertext segment in the second ciphertext; The third ciphertext and the fourth ciphertext are aggregated to generate a comparison file ciphertext.

5. The method according to claim 4, characterized in that Aggregating the third ciphertext and the fourth ciphertext to generate a comparison file ciphertext includes: Constructing an encryption type array according to each software type information in the third ciphertext; Constructing an encrypted model array according to each software model information in the third ciphertext; Constructing an encrypted power equipment attribute array according to the production unit information, production time information and batch number information in the fourth ciphertext; Calculate the prefix sum of each element in each encryption type array, and construct a first prefix sum array according to the prefix sum of each encryption type array; Calculate the prefix sum of each element in each encryption model array, and construct a second prefix sum array based on the prefix sum of each encryption model array; Obtaining a target array by performing staggered addition on each element of the first prefix sum array and each element of the second prefix sum array; The encrypted power equipment attribute array and the target array are connected and aggregated to obtain a comparison file ciphertext.

6. The method according to claim 1, characterized in that The software comparison system also includes a bracket and a host computer. The first device position, the second device position, the third device position and the fourth device position are arranged on the bracket. The first device position, the second device position, the third device position and the fourth device position are respectively connected to the host computer through their respective communication serial ports.

7. The method according to claim 6, characterized in that The software comparison system further includes an electric equipment installation mechanism, the electric equipment installation mechanism includes an electric push rod and a control module, the electric push rod is installed on the bracket, and the host computer is connected to the electric push rod through the control module; The electric push rod is used to push the electric device into the fourth device position through the control module.

8. The method according to claim 7, characterized in that The electric power equipment installation mechanism further includes an overcurrent protection module, which includes a current detection circuit and an overcurrent protection circuit; The current detection circuit is used to detect the current signal of the electric push rod and input the current signal to the overcurrent protection circuit; The overcurrent protection circuit is used to determine whether the current signal exceeds a preset current threshold, and if so, stop outputting current to the electric push rod.

9. The method according to claim 7 or 8, characterized in that: The electric power equipment installation mechanism also includes a pressure meter in place detection module, which includes a status light arranged on the side of each device position in the device position slot, and an upper electrical contact terminal arranged directly above each device position in the device position slot.

10. A software comparison device for electric power equipment, characterized in that: Applied to a software comparison system, the software comparison system comprises a device bit slot, the device bit slot comprises a first device bit, a second device bit, a third device bit and a fourth device bit, the first device bit, the second device bit and the third device bit all communicate with the fourth device bit; The device includes: A filing information file exporting unit, used for obtaining a software filing comparison file of the power equipment when the fourth equipment position is equipped with power equipment, inputting the software filing comparison file into a preset filing input system, and exporting a filing information file; A registration number extraction unit, used to extract the registration number of the electric power equipment from the registration information file; a prototype setting unit, configured to set, based on the filing number, a prototype of the electric power device when filing software at the first device position, a correct program prototype of the electric power device at the second device position, and an incorrect program prototype of the electric power device at the third device position, wherein the correct program prototype stores a correct program for running the electric power device, and the incorrect program prototype stores an incorrect program for running the electric power device; A comparison parameter determination unit, used to determine the comparison file format type and comparison configuration parameters of the filing information file; a prototype program comparison unit, configured to perform a prototype program comparison between the fourth device bit and the first device bit under the comparison file format type and the comparison configuration parameters to obtain a first software comparison result, perform a prototype program comparison between the fourth device bit and the second device bit to obtain a second software comparison result, and perform a prototype program comparison between the fourth device bit and the third device bit to obtain a third software comparison result; The software function normal determination unit is used to determine that the software function of the power equipment is normal when the first software comparison result, the second software comparison result and the third software comparison result are all qualified.

Citation Information

Patent Citations

  • Hardware comparison method and device for power equipment

    CN117151556A

  • Intelligent electric energy meter component comparison method, system and device and storage medium

    CN117315304A