A method and system for detecting consistency of software version of power distribution terminal
By using the verification algorithm and identification code string comparison in the power distribution terminal software, the problem of incomplete software version control and easy tampering in the existing technology is solved, and high accuracy and high efficiency version detection is achieved, ensuring that The stability and security of the software version.
Patent Information
- Application Number
- CN201810304799.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-04-08
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2038-04-08
AI Technical Summary
The existing distribution terminal software version control and consistency detection methods have problems such as incomplete content, easy to be tampered with, and difficulty in manual version management, resulting in inaccurate detection.
The verification algorithm is used to calculate the software's verification words, and the software version consistency is determined by comparing it with the identification code string, and the software information is processed by setting priority and encryption methods to generate the verification words, improving the accuracy and efficiency of detection .
It significantly improves the recognition and detection accuracy of software versions, ensures the uniqueness of software versions and controllability of upgrade behavior, and reduces the risk of running version agnostic.
Smart Images

Figure CN110347420B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of electric power technology, and in particular relates to a method and system for detecting the consistency of software versions of a power distribution terminal. Background Art
[0002] With the increasing development of computer technology, the level of power distribution automation technology is constantly improving, and the detection of power distribution terminals is becoming more scientific, comprehensive and standardized. Unified and standardized detection work ensures the correct function, stability and reliability of on-site terminal equipment. However, in actual use, there are cases where equipment does not operate normally due to human operation errors, unauthorized upgrades or even malicious tampering, which harms power production activities. How to eliminate this phenomenon and ensure that the software actually deployed on the terminal on site is completely consistent with the software that has passed the test is a key factor in ensuring the stable operation of the terminal on site and is an issue that needs to be solved urgently.
[0003] At present, the software version control and consistency detection methods of power distribution terminals mostly adopt manual comparison, which only compares the software name and size. However, even if the software size and name are exactly the same, it cannot guarantee that the software content and version are completely consistent, and there is a possibility of tampering. To address this problem, the current mainstream technologies include: type recognition based on content-related lexical analysis, feature code extraction based on text comparison heuristic operation, structure analysis based on source code, comparison based on file summary, feature code formation based on HASH value check and file fragments, and other external means such as logs, digital signatures and other methods. However, the software of power distribution terminals has diverse characteristics, and the hardware environment and operating system in which it is deployed vary greatly. The analysis and comparison method based on content or source code is fast and accurate, but it is not feasible in operation; the current method based on HASH value check and file fragments only partially enhances the anti-collision property of file feature codes, but if the version control requirements are to be met, the resource consumption is large; as for other external means, because they do not start from the file content itself, they cannot prevent deliberate human tampering. Summary of the invention
[0004] In order to overcome the shortcomings of the above-mentioned prior art in the distribution terminal software version control and consistency detection method, such as incomplete detection content, easy tampering, difficult manual version management, and easy detection errors, the present invention proposes a distribution terminal software version consistency detection method and system.
[0005] The solutions adopted to achieve the above objectives are:
[0006] A method for detecting the consistency of software versions of a power distribution terminal, wherein the improvement is:
[0007] Calculating the check word of the software using a verification algorithm according to information of the software running on the power distribution terminal;
[0008] Obtaining an identification code string corresponding to the software information;
[0009] The verification word is compared with the identification code string, and a software version consistency detection result is obtained according to the comparison result.
[0010] The first preferred technical solution provided by the present invention is improved in that the verification algorithm includes:
[0011] Prioritize information for said software;
[0012] Based on each priority level, processing the content corresponding to the priority level generates a corresponding priority check word;
[0013] The check word of the software is generated by combining the priority check words corresponding to all the priorities in the priority order.
[0014] In the second preferred technical solution provided by the present invention, the software information includes: content, size, name, version number, detection time, release date, release / change instructions, file update time and remarks information.
[0015] The third preferred technical solution provided by the present invention is improved in that setting the priority of the software information includes:
[0016] Setting the content and size as first priority information;
[0017] Setting the name, version number and detection time as second priority information;
[0018] Set the release date and release / change description as third priority information;
[0019] The file update time and remarks information are set as fourth priority information.
[0020] The fourth preferred technical solution provided by the present invention is improved in that, based on each priority level, processing the content corresponding to the priority level to generate a corresponding priority check word includes:
[0021] If it is the first priority, use at least two encryption methods to process the first priority information, and combine the results obtained by different encryption methods to generate a first priority check word;
[0022] Otherwise, at least one encryption method is used to process the priority information to obtain the priority check word.
[0023] The fifth preferred technical solution provided by the present invention is improved in that the at least two encryption methods for processing the first priority information include:
[0024] MD5 algorithm and CRC32 algorithm.
[0025] The sixth preferred technical solution provided by the present invention is improved in that the step of processing the priority information by at least one method to obtain the priority check word comprises:
[0026] When the priority is the second priority, the check value is calculated by using the MD5 algorithm according to the name and the version number; the time code value is generated according to the detection time; the check value and the time code value are used as the second priority check word;
[0027] When the priority is the third priority, a CRC32 algorithm is used to calculate and generate a third priority check word according to the third priority information.
[0028] The seventh preferred technical solution provided by the present invention is improved in that the software version consistency detection result is obtained according to the comparison result, including:
[0029] The eighth preferred technical solution provided by the present invention is improved in that the identification code string is generated by using a verification algorithm based on information of the standard version software corresponding to the software.
[0030] When the first priority check word and the identification code string have different values at corresponding positions according to the preset position rule, a conclusion of inconsistent software consistency detection is given and an error alarm is issued;
[0031] When the second priority check word and the identification code string have different values at corresponding positions according to the position rule, a conclusion of missing or inconsistent important information is given, and an important alarm is issued;
[0032] When the third priority check word and the identification code string have different values at corresponding positions according to the position rule, a general information missing or inconsistent conclusion is given and a general alarm is issued.
[0033] The ninth preferred technical solution provided by the present invention is improved in that the check word and the identification code string are binary data.
[0034] A distribution terminal software version consistency detection system, the improvement of which is that it includes a verification word module, an identification code string module and a detection module;
[0035] The check word module is used to calculate the check word of the software using a verification algorithm according to the information of the software running on the power distribution terminal;
[0036] The identification code string module is used to obtain the identification code string corresponding to the software information;
[0037] The detection module is used to compare the verification word with the identification code string, and obtain a software version consistency detection result according to the comparison result.
[0038] The tenth preferred technical solution provided by the present invention is improved in that the check word module includes: a priority setting unit, a priority check word unit and a software check word unit;
[0039] The priority setting unit is used to set the priority for the information of the software;
[0040] The priority check word unit is used to process the content corresponding to each priority level and generate a corresponding priority check word based on the priority level;
[0041] The software check word unit is used to generate the check word of the software by combining the priority check words corresponding to all the priorities in the priority order.
[0042] Compared with the closest prior art, the present invention has the following beneficial effects:
[0043] The present invention provides a method and system for detecting the consistency of software versions of power distribution terminals. By using a verification algorithm to calculate the software's verification code on the information of the power distribution terminal software, and comparing it with the obtained identification code string of the software, a software version consistency detection result is obtained. This can greatly improve the recognition of different versions of different software, meet the uniqueness requirements, and help ensure that the software versions of each on-site distribution network terminal are controlled, the upgrade behavior is controllable, and the risks are controllable.
[0044] Through special software identification code string generation rules and detection methods, the accuracy and efficiency of detection can be greatly improved, and the probability of unknown running version of distribution terminal software can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A schematic diagram of a method for detecting the consistency of software versions of a power distribution terminal provided by the present invention;
[0046] Figure 2 A schematic diagram of a specific flow chart of a method for detecting the consistency of software versions of a power distribution terminal provided by the present invention;
[0047] Figure 3 A schematic diagram of software information priority division in a method for detecting software version consistency of a power distribution terminal provided by the present invention;
[0048] Figure 4 A schematic diagram of a two-choose-two 2oo2 combined fault safety verification mechanism in a power distribution terminal software version consistency detection method provided by the present invention;
[0049] Figure 5 A schematic flow chart of a method for generating a software identification code string of a power distribution terminal provided by the present invention;
[0050] Figure 6A schematic diagram of filling rules of an identification code string in a method for generating an identification code string of a power distribution terminal software provided by the present invention;
[0051] Figure 7 A schematic diagram illustrating the conversion of the rank of a binary string after byte segmentation in a method for generating a software identification code string of a power distribution terminal provided by the present invention;
[0052] Figure 8 A schematic diagram of a software version archiving process for a power distribution terminal provided by the present invention;
[0053] Fig. 9 A schematic diagram of a specific power distribution terminal software version detection process provided by the present invention;
[0054] Fig.10 A basic structural diagram of a power distribution terminal software version consistency detection system provided by the present invention. DETAILED DESCRIPTION
[0055] The specific implementation modes of the present invention are further described in detail below with reference to the accompanying drawings.
[0056] Embodiment 1:
[0057] A flow chart of a method for detecting the consistency of software versions of a power distribution terminal provided by the present invention is as follows: Figure 1 As shown, including:
[0058] Step 1: Calculate the software check word using a verification algorithm based on the information of the software running on the power distribution terminal;
[0059] Step 2: Obtain the identification code string corresponding to the software information;
[0060] Step 3: Compare the verification word with the identification code string, and obtain the software version consistency detection result based on the comparison result.
[0061] It should be noted that in this embodiment, step 1 and step 2 are only used to distinguish different steps, and the order of the two steps is not limited. For example, step 1 can be executed before step 2, or after step 2, or at the same time.
[0062] Specifically, a method for detecting the consistency of software versions of a power distribution terminal is as follows: Figure 2 As shown, including:
[0063] Step 101: Collect the software running on the power distribution terminal and the identification serial code of the software;
[0064] Automation maintenance personnel of power supply companies in various cities obtain the software running on the terminal and the identification code string of the software through the distribution terminal itself. The identification code string is pre-generated based on the standard version of the software that has been tested and issued to the terminal manufacturer as the "identity card" of the model and version of the firmware, that is, the running software, and also as the key information for the manufacturer to apply for "identity authentication" in the future. When providing the distribution terminal, the terminal manufacturer also provides a DNA code string, that is, an identification code string for verification. The identification code string can be provided in the form of a QR code. The identification code string is binary data.
[0065] Step 102: Calculate the verification word using a verification algorithm according to the information of the software;
[0066] Specifically, the software information is as follows: Figure 3 As shown, it includes content, size, name, version number, detection time, release date, release / change description, file update time and remarks; in addition, it can also include storage segments. Software information is prioritized according to its importance.
[0067] Among them, content and size are the first priority information, which is key information and is represented by S;
[0068] Name, version number and detection time are the second priority information, which is important information and is represented by L1;
[0069] Release date and release / change description are the third priority information, which is general information and is represented by L2; the optional software information storage section is also in L2;
[0070] File update time and remarks information are the fourth priority information, which is reference information and is represented by L3.
[0071] S-level critical information needs to solve the collision problem, and two heterogeneous algorithms are used to form a two-choice 2oo2 combined fault safety verification mechanism, such as Figure 4 As shown, the verification is passed only when the check words obtained by the two algorithms are consistent. That is, the S-level information uses at least two encryption methods to process the S-level information, and the results obtained by different encryption methods are combined to generate the S-level check word. Specifically, the two encryption methods include the information-digest algorithm MD5 and the cyclic redundancy check algorithm CRC32; according to the string generated by merging the software content and size information, the MD5 code and the CRC32 code are calculated respectively, and the two are combined to form a string, which constitutes the S-level check word, that is, the first priority check word.
[0072] Level L1 is important information and needs to participate in the verification operation. After the name and version number are combined to generate a string, the MD5 algorithm is used to obtain the corresponding MD5 code. The monitoring time of level L1 has special application requirements, and it is necessary to provide reversible conversion on the basis of the verification word. In this invention, a simple algorithm is considered to be used to take the inverse code of the field to be encrypted and then convert it to generate a time code value. The MD5 code corresponding to the name and size and the time code value together constitute the L1 level verification word, which is the second priority verification word.
[0073] Level L2 is general information and needs to participate in the verification operation. After the storage segment, release date and release / change description information are combined to generate a string, the CRC32 algorithm is used to obtain the corresponding CRC32 as the L2 level verification word, that is, the third priority verification word.
[0074] L3 is for reference only and is only included in the test report as a note.
[0075] The S-level check word, L1-level check word and L2-level check word together constitute the software's check word, which is binary data.
[0076] Step 103: Compare the verification word with the identification code string;
[0077] That is, the S-level check word is compared with the value of the corresponding position of the S-level in the identification code according to the preset position rule, the L1-level check word is compared with the value of the corresponding position of the L1-level identification code string, and the L2-level check word is compared with the value of the corresponding position of the L2-level identification code string.
[0078] Step 104: Obtaining a software version consistency detection result according to the comparison result and processing it;
[0079] Specifically include:
[0080] When the values of the S-level check word and the corresponding position of the identification code string are different, the software consistency detection inconsistent conclusion is given, an error alarm is issued, and it is recorded in the detection report;
[0081] When the values of the L1 level check word and the corresponding position of the identification code string are different, a conclusion of missing or inconsistent important information is given, an important alarm is issued, and recorded in the test report;
[0082] When the L2 level check word is different from the value of the corresponding position of the identification code string, a general conclusion of missing or inconsistent information is given, a general alarm is issued, and recorded in the test report;
[0083] Record the L3 level information as a note in the test report.
[0084] The error alarm, important alarm, and general alarm correspond to the alarm levels when the verification word detection results of different priorities are inconsistent, respectively, and are intended to distinguish the verification word detection results of different priorities in different alarm modes, and the specific expression forms and literal meanings of the three are not strictly limited. For example, in other embodiments, the error alarm, important alarm, and general alarm can also be expressed in the form of a first-level alarm, a second-level alarm, a third-level alarm, etc.
[0085] Embodiment 2:
[0086] The present invention also provides a method for generating a software identification code string of a power distribution terminal, such as Figure 5 As shown, specifically including:
[0087] Step 201: Generate a base string of the identification code string;
[0088] A simple random algorithm is used to continuously generate 64 random numbers modulo 65536 with the current time as the seed. The hexadecimal numbers are concatenated together to form a 128-byte binary string, which is the base string of the identification code string.
[0089] Step 202: Obtain information of the tested standard version software corresponding to the power distribution terminal software;
[0090] That is, the content, size, name, version number, detection time, release date, release / change description, file update time and remarks of the tested standard version software corresponding to the power distribution terminal software are obtained. Among them, the content and size are S-level information, the name, version number and detection time are L1-level information, the release date and release / change description are L2-level information, and the file update time and remarks are L3-level information.
[0091] Step 203: Calculate the S-level verification word;
[0092] The MD5 algorithm and the CRC32 algorithm are respectively used to calculate the MD5 code and the CRC32 code of the S-level information; the MD5 code and the CRC32 code of the S-level information are combined to form the S-level verification word;
[0093] Step 204: Calculate a portion of the L1 level check word;
[0094] Using the MD5 algorithm, the name and version number in the L1 level information are combined into a string and then the MD5 code is calculated as part of the L1 level verification word;
[0095] Step 205: Calculate the L2 level check word;
[0096] Adopt CRC32 algorithm, combine L2 level information into a string and calculate CRC32 code as L2 level check word;
[0097] Step 206: Calculate the time code value and generate the L1 level check word;
[0098] Since the detection time in the L1 level information has special application requirements, it is necessary to provide reversible conversion based on the verification word. In the present invention, a simple algorithm is considered to generate a time code value after taking the inverse of the field to be encrypted; the time code value and the MD5 code calculated by the L1 level information constitute the L1 level verification word.
[0099] Step 207: Generate an identification code string.
[0100] That is, the S-level, L1-level and L2-level check words are input into the base string of the identification code string according to the preset position rules to generate the identification code string, as follows:
[0101] According to the definition of step 203-step 206, the S-level information check word needs to occupy 20 bytes (16+4), the MD5 code in the L1-level information check word needs to occupy 16 bytes, the L2-level information check word needs to occupy 4 bytes, and the time code value of the "detection time" needs to occupy 8 bytes (7 bytes CP56time2a+0x00), totaling 48 bytes of valid bytes. In the base string of the identification code string, the starting bytes 3, 34, 55 and 89 are selected from the Fibonacci sequence, and the 20 bytes of information starting from the 3rd byte are replaced with the S-level check word, the 16 bytes of information starting from the 34th byte are replaced with the MD5 code in the L1-level check word, the 4 bytes of information starting from the 55th byte are replaced with the L2-level check word, and the 8 bytes of information starting from the 89th byte are replaced with the time code value in the L1-level check word. The preset position rule, that is, the filling rule of the identification code string, can be found in Figure 6 The base string of the identification code string with the check word input is byte-segmented and then rank-shifted, and a new binary string is generated after the reverse order is arranged. Figure 7 , convert the binary string into ASCII code. The fixed length 256-byte ASCII code string is the final output identification code string, which is irreversible.
[0102] Embodiment 3:
[0103] The present invention provides a distribution terminal software version archiving process, such as Figure 8 As shown, including:
[0104] Step 301: After the terminal software of different manufacturers, different models and different versions pass the function test of the Institute of Electrical Engineering, they are archived through an archiving tool and a unique identification code string is generated;
[0105] Step 302: The identification code string is sent to the terminal manufacturer as the "identity card" of the model and version of the firmware, and also as the key information for the manufacturer to apply for "identity authentication" in the future. The identification code string can be provided in the form of a QR code;
[0106] Step 303: The archiving tool stores the basic information corresponding to the identification code string, including the manufacturer, model, detection time, file name, content, size, storage segment, version number, release date, and some necessary release / change instructions and applicable scope, as a record in the local database to form an archive record.
[0107] Embodiment 4:
[0108] The following is a specific distribution terminal software version detection process, such as Fig. 9 As shown, including:
[0109] Step 401: Automation maintenance personnel of power supply companies in various cities can obtain the terminal identification code string and its software file only through the terminal itself;
[0110] Step 402: Determine whether the software information is complete, if so, proceed to step 403, otherwise proceed to step 405;
[0111] Step 403: Use the offline detection tool released by the Institute of Electrical Engineering to perform detection;
[0112] Step 404: Determine whether the test is passed, if yes, proceed to step 407, otherwise proceed to step 405;
[0113] Step 405: Provide the software, manufacturer, model and other related information, submit to the Institute of Electrical Engineering for testing, compare with the archived records, and generate a consistency report;
[0114] Step 406: Feedback the consistency report to the terminal manufacturer and ask for rectification within a specified period of time;
[0115] Step 407: Complete the detection.
[0116] Based on the same inventive concept, the present invention also provides a distribution terminal software version consistency detection system. Since the principles of these devices for solving technical problems are similar to the distribution terminal software version consistency detection method, the repeated parts will not be repeated.
[0117] The system includes:
[0118] Verification word module, identification code string module and detection module;
[0119] Among them, the check word module is used to calculate the check word of the software using a verification algorithm according to the information of the software running on the power distribution terminal;
[0120] An identification code string module is used to obtain an identification code string corresponding to software information;
[0121] The detection module is used to compare the verification word with the identification code string and obtain the software version consistency detection result according to the comparison result.
[0122] Among them, the check word module includes a priority setting unit, a priority check word unit and a software check word unit;
[0123] The priority setting unit is used to set the priority for the information of the software;
[0124] The priority check word unit is used to process the content corresponding to each priority level and generate a corresponding priority check word;
[0125] The software check word unit is used to generate a software check word in combination with the priority check words corresponding to the priority in order of priority.
[0126] The software information includes: content, size, name, version number, detection time, release date, release / change instructions, file update time and remarks.
[0127] Wherein, the priority setting unit includes a first priority setting subunit, a second priority setting subunit, a third priority setting subunit and a fourth priority setting subunit;
[0128] The first priority setting subunit is used to set the content and size as first priority information;
[0129] The second priority setting subunit is used to set the name, version number and detection time as the second priority information;
[0130] The third priority setting subunit is used to set the release date and release / change description as third priority information;
[0131] The fourth priority setting subunit is used to set the file update time and remarks information as fourth priority information.
[0132] Wherein the priority check word module includes a first check word priority unit and other priority check word units;
[0133] The first priority check word unit is used to process the first priority information by using at least two encryption methods if it is the first priority, and generate a first priority check word by combining the results obtained by different encryption methods;
[0134] The other priority check word unit is used to process the priority information of other priorities by using at least one encryption method to obtain the priority check word.
[0135] Among them, the two encryption methods for processing the first priority information include:
[0136] MD5 algorithm and CRC32 algorithm.
[0137] Wherein, the other priority check word units include a second priority check word subunit and a third priority check word subunit;
[0138] The second priority check word subunit is used to calculate the check value by using the MD5 algorithm according to the name and version number; generate the time code value according to the detection time; and use the check value and the time code value as the second priority check word;
[0139] The third priority check word subunit is used to generate a third priority check word by calculating according to the third priority information using the CRC32 algorithm.
[0140] Wherein, the detection module includes a first priority detection unit, a second priority detection unit and a third priority detection unit;
[0141] The first priority detection unit is used to give a software consistency detection inconsistency conclusion and issue an error alarm when the values of the first priority check word and the identification code string at the corresponding position according to the preset position rule are different;
[0142] The second priority detection unit is used to give a conclusion of missing or inconsistent important information and issue an important alarm when the values of the second priority check word and the identification code string at the corresponding position according to the position rule are different;
[0143] The third priority detection unit is used to give a general information missing or inconsistent conclusion and issue a general alarm when the values of the third priority check word and the identification code string at corresponding positions according to the position rule are different.
[0144] The identification code string is generated by using a verification algorithm based on the information of the standard version software corresponding to the software.
[0145] Among them, the check word and the identification code string are binary data.
[0146] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0147] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0148] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0149] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0150] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application rather than to limit its protection scope. Although the present application has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that after reading the present application, those skilled in the art can still make various changes, modifications or equivalent substitutions to the specific implementation methods of the application, but these changes, modifications or equivalent substitutions are all within the protection scope of the claims to be approved.
Claims
1. A method for detecting the consistency of software versions of power distribution terminals, characterized in that: Calculating the check word of the software using a verification algorithm according to information of the software running on the power distribution terminal; Obtaining an identification code string corresponding to the software information; Comparing the verification word with the identification code string, and obtaining a software version consistency detection result according to the comparison result; The verification algorithm includes: Prioritize information for said software; Based on each priority level, processing the content corresponding to the priority level generates a corresponding priority check word; Generating a check word for the software by combining the priority check words corresponding to all the priorities in the priority order; The software information includes: content, size, name, version number, detection time, release date, release / change description, file update time and remarks; The setting of the priority for the software information includes: Setting the content and size as first priority information; Setting the name, version number and detection time as second priority information; Set the release date and release / change description as third priority information; The file update time and remarks information are set as fourth priority information.
2. The method according to claim 1, characterized in that Based on each priority level, processing the content corresponding to the priority level to generate a corresponding priority check word includes: If it is the first priority, use at least two encryption methods to process the first priority information, and combine the results obtained by different encryption methods to generate a first priority check word; Otherwise, at least one encryption method is used to process the priority information to obtain the priority check word.
3. The method according to claim 2, characterized in that The at least two encryption methods for processing the first priority information include: MD5 algorithm and CRC32 algorithm.
4. The method according to claim 2, characterized in that The adopting at least one method to process the priority information to obtain the priority check word includes: When the priority is the second priority, the MD5 algorithm is used to calculate the check value according to the name and the version number; the time code value is generated according to the detection time; the check value and the time code value are used as the second priority check word; When the priority is the third priority, a CRC32 algorithm is used to calculate and generate a third priority check word according to the third priority information.
5. The method according to claim 2, characterized in that The software version consistency detection result is obtained according to the comparison result, including: When the first priority check word and the identification code string have different values at corresponding positions according to the preset position rule, a conclusion of inconsistent software consistency detection is given and an error alarm is issued; When the second priority check word and the identification code string have different values at corresponding positions according to the position rule, a conclusion of missing or inconsistent important information is given, and an important alarm is issued; When the third priority check word and the value of the corresponding position of the identification code string according to the position rule are different, a general conclusion of missing or inconsistent information is given and a general alarm is issued.
6. The method according to claim 1, characterized in that The identification code string is generated by using a verification algorithm according to information of the standard version software corresponding to the software.
7. The method according to claim 1, characterized in that The check word and the identification code string are binary data.
8. A distribution terminal software version consistency detection system, characterized in that: It includes a verification word module, an identification code string module and a detection module; The check word module is used to calculate the check word of the software using a verification algorithm according to the information of the software running on the power distribution terminal; The identification code string module is used to obtain the identification code string corresponding to the software information; The detection module is used to compare the verification word with the identification code string, and obtain a software version consistency detection result according to the comparison result; The check word module includes: a priority setting unit, a priority check word unit and a software check word unit; The priority setting unit is used to set the priority for the information of the software; The priority check word unit is used to process the content corresponding to each priority level and generate a corresponding priority check word based on the priority level; The software check word unit is used to generate the check word of the software by combining the priority check words corresponding to all the priorities in the priority order; The software information includes: content, size, name, version number, detection time, release date, release / change description, file update time and remarks; Wherein, the priority setting unit includes a first priority setting subunit, a second priority setting subunit, a third priority setting subunit and a fourth priority setting subunit; The first priority setting subunit is used to set the content and size as first priority information; The second priority setting subunit is used to set the name, version number and detection time as the second priority information; The third priority setting subunit is used to set the release date and release / change description as third priority information; The fourth priority setting subunit is used to set the file update time and remarks information as fourth priority information.
