CN110347420A - A kind of distribution terminal software version consistency detecting method and system - Google Patents
A kind of distribution terminal software version consistency detecting method and system Download PDFInfo
- Publication number
- CN110347420A CN110347420A CN201810304799.1A CN201810304799A CN110347420A CN 110347420 A CN110347420 A CN 110347420A CN 201810304799 A CN201810304799 A CN 201810304799A CN 110347420 A CN110347420 A CN 110347420A
- Authority
- CN
- China
- Prior art keywords
- priority
- software
- word
- information
- check
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 58
- 238000009826 distribution Methods 0.000 title claims abstract description 49
- 238000001514 detection method Methods 0.000 claims abstract description 53
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 36
- 238000012545 processing Methods 0.000 claims description 16
- 235000013399 edible fruits Nutrition 0.000 claims 1
- 238000003672 processing method Methods 0.000 claims 1
- 238000004364 calculation method Methods 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 17
- 238000012360 testing method Methods 0.000 description 9
- 238000004590 computer program Methods 0.000 description 7
- 238000003860 storage Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 6
- 230000006870 function Effects 0.000 description 4
- 238000012795 verification Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000007689 inspection Methods 0.000 description 3
- 238000005520 cutting process Methods 0.000 description 2
- 239000012634 fragment Substances 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000002441 reversible effect Effects 0.000 description 2
- 108091028043 Nucleic acid sequence Proteins 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 238000013475 authorization Methods 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000000052 comparative effect Effects 0.000 description 1
- 125000004122 cyclic group Chemical group 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 238000011990 functional testing Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000002427 irreversible effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000010248 power generation Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3604—Software analysis for verifying properties of programs
- G06F11/3616—Software analysis for verifying properties of programs using software metrics
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Computer Security & Cryptography (AREA)
- Storage Device Security (AREA)
Abstract
The present invention provides a kind of distribution terminal software version consistency detecting method and systems, comprising: the check word of checking algorithm software for calculation is used according to the information of the software of distribution terminal operation;Obtain the corresponding mark sequence of software information;Word will be checked to be compared with mark sequence, and software version consistency detection result is obtained according to comparison result.The check word of software is calculated by the information to distribution terminal software using checking algorithm for this method and system, and it is compared with the mark sequence of the software of acquisition, obtain software version consistency detection result, the identification that different software different editions can greatly be improved meets uniqueness requirement.By special software identification sequence create-rule and detection method, the accuracy of detection and the efficiency of detection are greatly improved, reduces the unknowable probability of distribution terminal software operation version.
Description
Technical field
The invention belongs to technical field of electric power, and in particular to a kind of distribution terminal software version consistency detecting method and be
System.
Background technique
Increasingly developed with computer technology, Distribution Automation Technology level is continuously improved, and distribution terminal detection is also got over
Carry out more scientific, comprehensive, specification.The function of detecting guarantee of work on-site terminal equipment of unified standard is correctly and reliable and stable.
But in actual use, but exist because human operational error, without authorization upgrading even maliciously distort caused equipment operation not
Normally, power generation active belt is endangered.How to prevent this phenomenon, guarantees to dispose in the practical investment terminal in scene soft
Part, it is completely the same with the software by detection, it is the key element for ensureing terminal filed stable operation, is urgently to be solved ask
Topic.
Distribution terminal software version control at present and consistency detecting method, take artificial comparison mostly, only compare software
Title and size.Even but software size is identical with title, cannot guarantee that software content and version complete one
It causes, there is the possibility being tampered.For this problem, mainstream technology includes: the type based on the analysis of content associated lexical at present
Identification, the condition code extraction based on the more heuristic operation of text, the structure elucidation based on source code, based on pair of document
Than, based on HASH value verification and file fragment formed the methods of condition code and other external means such as log, digital signature.
But distribution terminal software has Biodiversity Characteristics, the hardware environment and operating system of deployment are multifarious.Based on it is interior perhaps
The parsing comparative approach of source code, although quick and precisely, it is operationally infeasible;Current use be based on HASH value verification and
The method of file fragment, the only reinforced partly anti-collision of file eigenvalue, but if you need to reach Version Control requirement, to resource
It consumes larger;As for other external means, because not from file content, it is even more impossible to prevent artificially distorting deliberately.
Summary of the invention
To overcome the above-mentioned prior art in the control of distribution terminal software version and consistency detecting method, detection content is not
Completely, it is easily tampered and artificial version management is difficult, detect the deficiency of the problems such as error-prone, the present invention proposes that a kind of distribution is whole
Hold software version consistency detecting method and system.
Realize solution used by above-mentioned purpose are as follows:
A kind of distribution terminal software version consistency detecting method, thes improvement is that:
The check word of the software is calculated using checking algorithm according to the information of the software of distribution terminal operation;
Obtain the corresponding mark sequence of the software information;
The check word is compared with the mark sequence, and the inspection of software version consistency is obtained according to comparison result
Survey result.
First optimal technical scheme provided by the invention, it is improved in that the checking algorithm includes:
For the information setting priority of the software;
Based on each priority, processing is carried out to the corresponding content of the priority and generates respective priority check word;
The check word that word generates the software is checked in conjunction with the corresponding priority of all priority by the priority orders.
Second optimal technical scheme provided by the invention, the information of the software include: content, size, title, version
Number, detection time, issue date, publication/statement on changes, file renewal time and remark information.
Third optimal technical scheme provided by the invention, it is improved in that described set priority for software information
Include:
The content and size are set as the first precedence information;
The title, version number and detection time are set as the second precedence information;
The issue date and publication/statement on changes are set as third priority information;
The file renewal time and remark information are set as the 4th precedence information.
4th optimal technical scheme provided by the invention, it is improved in that described be based on each priority, to described
The corresponding content of priority carries out processing generation respective priority check word
If it is the first priority, the first precedence information is handled using at least two encryption methods, and combine different add
The result that decryption method obtains generates the first priority and checks word;
Otherwise, the precedence information is handled using at least one encryption method, obtains the priority and checks word.
5th optimal technical scheme provided by the invention, it is improved in that the first precedence information of processing is described
At least two encryption methods, comprising:
MD5 algorithm and CRC32 algorithm.
6th optimal technical scheme provided by the invention, it is improved in that described using at least one method processing
The precedence information obtains the priority and checks word, comprising:
When the priority is the second priority, carry out calculating acquisition school using MD5 algorithm according to title and version number
Test value;Time code value is generated according to detection time;Word is checked using the check value and the time code value as the second priority;
When the priority is third priority, calculating life is carried out using CRC32 algorithm according to third priority information
Word is checked at third priority.
7th optimal technical scheme provided by the invention, it is improved in that described obtain software according to comparison result
Version consistency detection result, comprising:
8th optimal technical scheme provided by the invention, it is improved in that the mark sequence is according to the software
The information of corresponding Standard Edition software is generated using checking algorithm.
When the first priority checks the value difference of word and the mark sequence according to preset location rule corresponding position,
It provides software conformance and detects inconsistent conclusion, carry out fault alarm;
When the second priority checks the value difference of word and the mark sequence according to the location rule corresponding position, give
Important information missing or inconsistent conclusion out, carry out significant alarm;
When third priority checks the value difference of word and the mark sequence according to the location rule corresponding position, give
General information missing or inconsistent conclusion out, carry out minor alarm.
9th optimal technical scheme provided by the invention, it is improved in that the check word and the mark sequence
For binary data.
A kind of distribution terminal software version consistency detection system, it is improved in that including checking word modules, mark
Sequence module and detection module;
The information for checking the software that word modules are used to run according to distribution terminal is calculated described soft using checking algorithm
The check word of part;
The mark sequence module is for obtaining the corresponding mark sequence of the software information;
The detection module is obtained for being compared the check word with the mark sequence according to comparison result
Software version consistency detection result.
Tenth optimal technical scheme provided by the invention, it is improved in that the check word modules include: priority
Setup unit, priority check word cell and software checks word cell;
The information setting priority that the priority level initializing unit is used for as the software;
The priority checks word cell and is used to be based on each priority, handles the corresponding content of the priority
It generates respective priority and checks word;
The software checks word cell and is used to combine the corresponding priority of all priority to check by the priority orders
Word generates the check word of the software.
Compared with the immediate prior art, the device have the advantages that as follows:
A kind of distribution terminal software version consistency detecting method provided by the invention and system, by soft to distribution terminal
The check word of software is calculated using checking algorithm in the information of part, and is compared with the mark sequence of the software of acquisition,
Software version consistency detection is obtained as a result, the identification of different software different editions can be improved greatly, meets uniqueness
It is required that helping to ensure that each live distribution network terminal software version is controlled, upgrading behavior is controllable, risk is controllable.
By special software identification sequence create-rule and detection method, the accuracy and detection of detection are greatly improved
Efficiency reduces the unknowable probability of distribution terminal software operation version.
Detailed description of the invention
Fig. 1 is a kind of distribution terminal software version consistency detecting method flow diagram provided by the invention;
Fig. 2 is a kind of distribution terminal software version consistency detecting method idiographic flow schematic diagram provided by the invention;
Fig. 3 is that software information priority is drawn in a kind of distribution terminal software version consistency detecting method provided by the invention
Divide schematic diagram;
Fig. 4 is two to select two 2oo2 combined types in a kind of distribution terminal software version consistency detecting method provided by the invention
Failure safe Checking Mechanism schematic diagram;
Fig. 5 is a kind of generation method flow diagram of distribution terminal software identification sequence provided by the invention;
Fig. 6 is the filling rule that sequence is identified in a kind of generation method of distribution terminal software identification sequence provided by the invention
Then schematic diagram;
Fig. 7 is binary string byte cutting in a kind of generation method of distribution terminal software identification sequence provided by the invention
After turn order and illustrate schematic diagram;
Fig. 8 is that a kind of distribution terminal software version provided by the invention files flow diagram;
Fig. 9 is one provided by the invention specific distribution terminal software version testing process schematic diagram;
Figure 10 is a kind of distribution terminal software version consistency detection system basic structure schematic diagram provided by the invention.
Specific embodiment
A specific embodiment of the invention is described in further detail with reference to the accompanying drawing.
Embodiment 1:
A kind of distribution terminal software version consistency detecting method flow diagram provided by the invention is as shown in Figure 1, packet
It includes:
Step 1: the check word of checking algorithm software for calculation is used according to the information of the software of distribution terminal operation;
Step 2: obtaining the corresponding mark sequence of software information;
Step 3: word will be checked and be compared with mark sequence, and software version consistency detection is obtained according to comparison result
As a result.
It should be noted that step 1, step 2 only distinguish different step in the present embodiment, two are not limited
The sequence of step, such as step 1 can be executed prior to step 2, can also be executed or are performed simultaneously after step 2.
Specifically, a kind of distribution terminal software version consistency detecting method process is as shown in Figure 2, comprising:
Step 101: the software of acquisition distribution terminal operation and the identification string code of software;
Power supply company, prefectures and cities automates class maintenance personnel, by distribution terminal itself, obtains the software run in terminal
With the mark sequence of the software, wherein mark sequence is pre-generated and issued according to the Standard Edition of the software after testing
To manufacturer terminal, as the model, the version firmware, that is, runs software " identity card ", " identity also is submitted to as later producer
The key message of certification ", manufacturer terminal also accordingly provide the i.e. mark sequence of DNA sequence and are used for while providing distribution terminal
Verification.The form for identifying the offer of sequence can be two dimensional code.Identification string code is binary data.
Step 102: being calculated according to the information of software using checking algorithm and check word;
Specifically, the information of software is as shown in figure 3, include content, size, title, version number, detection time, date of issue
Phase, publication/statement on changes, file renewal time and remark information;In addition to this it is possible to include storage section.The letter of software
Breath divides priority according to significance level.
Wherein, content and size are the first precedence information, are key messages, are indicated with S;
Title, version number and detection time are the second precedence information, are important informations, are indicated with L1;
Issue date and publication/statement on changes are third priority information, are general informations, are indicated with L2;It is optional soft
Part information storage area section is also in L2;
File renewal time and remark information are the 4th precedence information, are reference informations, are indicated with L3.
S grades of key messages need to solve collision problem, using two kinds of isomery algorithms, form two and select two 2oo2 combined type failures
Security Checking mechanism, as shown in figure 4, just passing through verification when the check word that i.e. two kinds of algorithms obtain is verified all consistent.That is S
Grade information handles S grades of information using at least two encryption methods, and the result obtained in conjunction with different encryption methods generates S grades of checks
Word.Specifically, two kinds of encryption methods include md5-challenge MD5 and cyclic redundancy check algorithm CRC32;According in software
Hold and size information merges the character string generated, calculate MD5 code and CRC32 code respectively, constitutes character string in conjunction with the two, constitute S
Grade checks i.e. the first priority of word and checks word.
L1 grades are important information, need to participate in check operation and adopt after title therein and version number merge generation character string
Corresponding MD5 code is obtained with MD5 algorithm.L1 grades of monitoring time, need to be same on the basis of checking word because having special applications demand
When reversible transformation is provided, be considered as simple algorithm in the present invention, turn order to needing encrypted fields to negate after code and generate time code value.
Title and the corresponding MD5 code of size and time code value collectively form L1 grades of i.e. the second priority of check word and check word.
L2 grades are general information, need to participate in check operation, are believed with storage section, issue date and publication/statement on changes
After breath merges generation character string, corresponding CRC32 is obtained using CRC32 algorithm, as L2 grades of check word, that is, third priority schools
Core word.
L3 is reference information, is only embodied in examining report as remarks explanation.
S grades are checked the check word that word, L1 grades of check words and L2 grades of check words collectively form software, are binary data.
Step 103: word will be checked and be compared with mark sequence;
S grades of check words are compared according to preset location rule with the value of S grades of corresponding positions with identification code, it will
It checks word for L1 grades to be compared with the value for identifying sequence L1 grades of corresponding position, by L2 grades of check words and sequence L2 grades of corresponding position of mark
The value set is compared.
Step 104: software version consistency detection result being obtained according to comparison result and is handled;
It specifically includes:
When checking word and identifying the value difference of sequence corresponding position for S grades, provides software conformance and detects inconsistent conclusion,
Fault alarm is carried out, is recorded in examining report;
When checking word and identifying the value difference of sequence corresponding position for L1 grades, important information missing or inconsistent knot are provided
By progress significant alarm is recorded in examining report;
When the L2 grades of value differences for checking word and the mark sequence corresponding position, general information missing or inconsistent is provided
Conclusion carries out minor alarm, is recorded in examining report;
It is recorded in L3 grades of information as remarks explanation in examining report.
Fault alarm therein, significant alarm, that minor alarm respectively corresponds different priorities core school word testing result is different
Alarm severity when cause, it is intended to different priority core school word testing results is distinguished with different alarm modes, to the specific of three
Expression form and literal meaning do not do considered critical.For example, in other embodiments, fault alarm, significant alarm, general announcement
It is alert to use the form of presentation such as Level 1Alarming, second level alarm, three-level alarm.
Embodiment 2:
The present invention also provides a kind of generation methods of distribution terminal software identification sequence, as shown in figure 5, specifically including:
Step 201: generating the fundamental series of mark sequence;
Using simple randomization algorithm, using current time as seed, continuously generate the random number of 64 moulds 65536, by its 16
System number is stitched together, and forms the binary string code of 128 bytes, which is the fundamental series for identifying sequence.
Step 202: obtaining the information of the corresponding Standard Edition software after testing of distribution terminal software;
Obtain content, size, title, the version of the corresponding Standard Edition software after testing of distribution terminal software
Number, detection time, issue date, publication/statement on changes, file renewal time and remark information.Wherein, content and size are S
Grade information, title, version number and detection time are L1 grades of information, and issue date and publication/statement on changes are L2 grades of information, file
Renewal time and remark information are L3 grades of information.
Step 203: calculating S grades of check words;
MD5 algorithm and CRC32 algorithm is respectively adopted, calculates the MD5 code and CRC32 code of S grades of information;In conjunction with S grades of information
MD5 code and CRC32 code constitute S grades of check words;
Step 204: calculating a part of L1 grades of check words;
Using MD5 algorithm, by L1 grades of information title and version number be merged into character string after calculate MD5 code, as L1
Grade checks a part of word;
Step 205: calculating L2 grades of check words;
Using CRC32 algorithm, CRC32 code is calculated after L2 grades of information are merged into character string, as L2 grades of check words;
Step 206: calculating time code value and generate L1 grades of check words;
Detection time need to provide simultaneously reversible because having special applications demand on the basis of checking word in L1 grades of information
It changes, is considered as simple algorithm in the present invention, turn order after code to needing encrypted fields to negate and generate time code value;Time code value and L1
The grade counted MD5 code of information, constitutes L1 grades of check words.
Step 207: generating mark sequence.
I.e. by S grades, L1 grades and L2 grades check words according to preset location rule, the fundamental series of input mark sequence is raw
It is specific as follows at mark sequence:
By the definition of step 203- step 206, S grades of information check words need to occupy 20 bytes (16+4), L1 grades of information
The MD5 code checked in word needs to occupy 16 bytes, and L2 grades of information check words need to occupy 4 bytes, the time of " detection time "
Code value needs to occupy 8 bytes (7 byte CP56time2a+0x00), amounts to 48 byte of effective word joint number.In the fundamental series of mark sequence
In, start byte 3,34,55 and 89 is selected from Fibonacci sequence, and the information of 20 bytes of the 3rd byte starting is replaced
For S grades of check words, the information of 16 bytes of the 34th byte starting is replaced with into the L1 grades of MD5 codes checked in word, by the 55th word
The information for saving 4 bytes of starting replaces with L2 grades of check words, and the information of 8 bytes of the 89th byte starting is replaced with L1 grades
The fill rule of time code value in check word, preset location rule namely mark sequence is referring to Fig. 6.Check word will be had input
Mark sequence fundamental series carry out byte cutting after turn order, generate new binary string after inverted order arrangement, referring to Fig. 7, by this two into
System string is converted to ASCII character.The ASCII character string of 256 byte of regular length is the mark sequence of final output, the identification code
It goes here and there irreversible.
Embodiment 3:
The present invention provides a kind of distribution terminal software versions to file process, as shown in Figure 8, comprising:
Step 301: after the terminal software of different manufacturers, different model, different editions passes through DianKeYuan functional test, leading to
It crosses filing tool to file it, and generates unique mark sequence;
Step 302: mark sequence is handed down to terminal producer, as the model, " identity card " of the version firmware, also conduct
Later producer submits the key message of " authentication " to, and the form that identification string code provides can use two dimensional code mode;
Step 303: filing tool will identify the corresponding basic information of sequence, including producer, model, detection time, file
Title, content, size, storage section, version number, issue date and some necessary publication/statements on changes and applicable model
It encloses, in the local database as a record storage, forms filing record.
Embodiment 4:
A specific distribution terminal software version testing process is provided below, as shown in Figure 9, comprising:
Step 401: power supply company, prefectures and cities automates class maintenance personnel, can only pass through terminal itself, obtains terminal mark
Know sequence and its software document;
Step 402: judging whether the information of software is complete, if then entering step 403, is otherwise transferred to step 405;
Step 403: being detected using the offline inspection tool that DianKeYuan is issued;
Step 404: judgement detects whether to pass through, if then entering step 407, is otherwise transferred to step 405;
Step 405: the relevant informations such as software and producer, model being provided, DianKeYuan detection is submitted, records and carry out pair with filing
Than generating consistency report;
Step 406: consistency report is fed back into terminal producer, time limit rectification;
Step 407: completing detection.
Based on the same inventive concept, the present invention also provides a kind of distribution terminal software version consistency detection system, by
It is similar to distribution terminal software version consistency detecting method in the principle that these equipment solve technical problem, repeat place no longer
It repeats.
The system includes:
Check word modules, mark sequence module and detection module;
Wherein, word modules are checked, the information of the software for running according to distribution terminal uses checking algorithm software for calculation
Check word;
Sequence module is identified, for obtaining the corresponding mark sequence of software information;
Detection module is compared with mark sequence for that will check word, and obtains software version one according to comparison result
Cause property testing result.
Wherein, checking word modules includes that priority level initializing unit, priority check word cell and software check word cell;
The information setting priority that priority level initializing unit is used for as software;
Priority checks word cell and is used to be based on each priority, carries out processing to the corresponding content of the priority and generates phase
Priority is answered to check word;
Software checks word cell and combines the corresponding priority check word of priority to generate software for according to priority sequence
Check word.
Wherein, the information of software includes: content, size, title, version number, detection time, issue date, publication/change
Illustrate, file renewal time and remark information.
Wherein, priority level initializing unit includes the first priority level initializing subelement, the second priority level initializing subelement, third
Priority level initializing subelement and the 4th priority level initializing subelement;
First priority level initializing subelement is the first precedence information for setting content and size;
Second priority level initializing subelement is for setting title, version number and detection time as the second precedence information;
Third priority sets subelement for setting issue date and publication/statement on changes as third priority information;
4th priority level initializing subelement is the 4th precedence information for set file updating time and remark information.
It includes that the first check word priority unit and other priority check word cell that wherein priority, which checks word modules,;
First priority is checked word cell and is used for if it is the first priority, using at least two encryption methods processing first
Precedence information, and the result obtained in conjunction with different encryption methods generates the first priority and checks word;
Other priority are checked word cell and are used to be believed other priority using at least one encryption method processing priority
Breath obtains the priority and checks word.
Wherein, two kinds of encryption methods of the first precedence information of processing include:
MD5 algorithm and CRC32 algorithm.
Wherein, it includes that the second priority checks word subelement and third priority check word that other priority, which check word cell,
Subelement;
Second priority checks word subelement and is used to carry out calculating using MD5 algorithm according to title and version number to be verified
Value;Time code value is generated according to detection time;Word is checked using check value and time code value as the second priority;
Third priority checks word subelement and is used to carry out calculating generation using CRC32 algorithm according to third priority information
Third priority checks word.
Wherein, detection module includes the first priority detection unit, the second priority detection unit and third priority inspection
Survey unit;
First priority detection unit is used to check word and mark sequence according to preset location rule when the first priority
When the value difference of corresponding position, provides software conformance and detect inconsistent conclusion, carry out fault alarm;
Second priority detection unit be used for when the second priority check word with identify sequence according to the corresponding position of location rule
When the value difference set, important information missing or inconsistent conclusion are provided, significant alarm is carried out;
Third priority detection unit be used for when third priority check word with identify sequence according to the corresponding position of location rule
When the value difference set, general information missing or inconsistent conclusion are provided, minor alarm is carried out.
Wherein, mark sequence is generated according to the information of the corresponding Standard Edition software of software using checking algorithm.
Wherein, checking word and mark sequence is binary data.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Finally it should be noted that: above embodiments are merely to illustrate the technical solution of the application rather than to its protection scopes
Limitation, although the application is described in detail referring to above-described embodiment, those of ordinary skill in the art should
Understand: those skilled in the art read the specific embodiment of application can still be carried out after the application various changes, modification or
Person's equivalent replacement, but these changes, modification or equivalent replacement, are applying within pending claims.
Claims (12)
1. a kind of distribution terminal software version consistency detecting method, it is characterised in that:
The check word of the software is calculated using checking algorithm according to the information of the software of distribution terminal operation;
Obtain the corresponding mark sequence of the software information;
The check word is compared with the mark sequence, and software version consistency detection knot is obtained according to comparison result
Fruit.
2. the method as described in claim 1, which is characterized in that the checking algorithm includes:
For the information setting priority of the software;
Based on each priority, processing is carried out to the corresponding content of the priority and generates respective priority check word;
The check word that word generates the software is checked in conjunction with the corresponding priority of all priority by the priority orders.
3. method according to claim 2, which is characterized in that the information of the software includes: content, size, title, version
Number, detection time, issue date, publication/statement on changes, file renewal time and remark information.
4. method as claimed in claim 3, which is characterized in that described to include: for software information setting priority
The content and size are set as the first precedence information;
The title, version number and detection time are set as the second precedence information;
The issue date and publication/statement on changes are set as third priority information;
The file renewal time and remark information are set as the 4th precedence information.
5. method as claimed in claim 4, which is characterized in that it is described based on each priority, it is corresponding to the priority
Content carries out processing generation respective priority check word
If it is the first priority, the first precedence information is handled using at least two encryption methods, and combine different encryption sides
The result that method obtains generates the first priority and checks word;
Otherwise, the precedence information is handled using at least one encryption method, obtains the priority and checks word.
6. method as claimed in claim 5, which is characterized in that at least two encryption side of the first precedence information of processing
Method, comprising:
MD5 algorithm and CRC32 algorithm.
7. method as claimed in claim 5, which is characterized in that described to handle the priority letter using at least one method
Breath obtains the priority and checks word, comprising:
When the priority is the second priority, carry out calculating acquisition check value using MD5 algorithm according to title and version number;
Time code value is generated according to detection time;Word is checked using the check value and the time code value as the second priority;
When the priority is third priority, calculate using CRC32 algorithm according to third priority information and generate the
Three priority check word.
8. method as claimed in claim 5, which is characterized in that described to obtain software version consistency detection according to comparison result
As a result, comprising:
When the first priority checks the value difference of word and the mark sequence according to preset location rule corresponding position, provide
Software conformance detects inconsistent conclusion, carries out fault alarm;
When the second priority checks the value difference of word and the mark sequence according to the location rule corresponding position, weight is provided
Loss of learning or inconsistent conclusion are wanted, significant alarm is carried out;
When third priority checks the value difference of word and the mark sequence according to the location rule corresponding position, one is provided
As loss of learning or inconsistent conclusion, carry out minor alarm.
9. the method as described in claim 1, which is characterized in that the mark sequence is according to the corresponding Standard Edition of the software
The information of software is generated using checking algorithm.
10. the method as described in claim 1, which is characterized in that the check word and the mark sequence are binary data.
11. a kind of distribution terminal software version consistency detection system, which is characterized in that including checking word modules, mark sequence
Module and detection module;
The information for checking the software that word modules are used to run according to distribution terminal calculates the software using checking algorithm
Check word;
The mark sequence module is for obtaining the corresponding mark sequence of the software information;
The detection module obtains software according to comparison result for being compared the check word with the mark sequence
Version consistency detection result.
12. system as claimed in claim 11, which is characterized in that the check word modules include: priority level initializing unit, excellent
First grade checks word cell and software checks word cell;
The information setting priority that the priority level initializing unit is used for as the software;
The priority checks word cell and is used to be based on each priority, carries out processing generation to the corresponding content of the priority
Respective priority checks word;
The software checks word cell and is used to combine the corresponding priority check word of all priority raw by the priority orders
At the check word of the software.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810304799.1A CN110347420A (en) | 2018-04-08 | 2018-04-08 | A kind of distribution terminal software version consistency detecting method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810304799.1A CN110347420A (en) | 2018-04-08 | 2018-04-08 | A kind of distribution terminal software version consistency detecting method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110347420A true CN110347420A (en) | 2019-10-18 |
Family
ID=68172979
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810304799.1A Pending CN110347420A (en) | 2018-04-08 | 2018-04-08 | A kind of distribution terminal software version consistency detecting method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110347420A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022193096A1 (en) * | 2021-03-15 | 2022-09-22 | 华为技术有限公司 | Over-the-air technology (ota)-based communication method and apparatus |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104217167A (en) * | 2014-09-11 | 2014-12-17 | 株洲南车时代电气股份有限公司 | Software version checking method for multi-software system |
CN106445485A (en) * | 2016-03-28 | 2017-02-22 | 中国电力科学研究院 | Software version consistency detection system and detection method thereof |
CN107844320A (en) * | 2017-09-27 | 2018-03-27 | 国网福建省电力有限公司 | State's net software version information management system and implementation method |
-
2018
- 2018-04-08 CN CN201810304799.1A patent/CN110347420A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104217167A (en) * | 2014-09-11 | 2014-12-17 | 株洲南车时代电气股份有限公司 | Software version checking method for multi-software system |
CN106445485A (en) * | 2016-03-28 | 2017-02-22 | 中国电力科学研究院 | Software version consistency detection system and detection method thereof |
CN107844320A (en) * | 2017-09-27 | 2018-03-27 | 国网福建省电力有限公司 | State's net software version information management system and implementation method |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022193096A1 (en) * | 2021-03-15 | 2022-09-22 | 华为技术有限公司 | Over-the-air technology (ota)-based communication method and apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104486075B (en) | A kind of verification method of intelligent substation ICD model file digital signature | |
CN108427632B (en) | Automatic test method and device | |
CN108540483A (en) | A kind of apparatus monitoring method and device based on block chain | |
CN109194710B (en) | System and method for supervising specific personnel behaviors based on block chain and intelligent contract | |
CN109460223A (en) | A kind of API gateway management system and its method | |
CN113704781B (en) | File secure transmission method and device, electronic equipment and computer storage medium | |
CN111563016B (en) | Log collection and analysis method and device, computer system and readable storage medium | |
KR102168212B1 (en) | Apparatus and method for application log data processing | |
CN106873957A (en) | The processing method and equipment of a kind of operation flow | |
CN106095462A (en) | A kind of embedded distribution system program configuration version management method | |
CN112131002A (en) | Data management method and device | |
CN111798254A (en) | Tracing code generation method, device, equipment and readable storage medium | |
CN114742529B (en) | Laboratory equipment maintenance management system | |
CN115222410A (en) | Block chain based transaction uplink method and device, electronic equipment and storage medium | |
CN113434542B (en) | Data relationship identification method and device, electronic equipment and storage medium | |
CN111324517A (en) | Application service supervision method, supervision server and storage medium | |
CN110347420A (en) | A kind of distribution terminal software version consistency detecting method and system | |
KR20200142896A (en) | Breakdown type analysis system and method of digital equipment | |
CN106951440A (en) | Online with the method and system of the real estate Data Integration of actual time safety combined offline | |
CN107193249A (en) | Program development servicing unit and program development householder method | |
CN111611624B (en) | Verification method and system for partitioned digital signature of information point table file | |
CN113051224A (en) | File transmission method and device, electronic equipment and computer readable storage medium | |
CN109768853A (en) | A kind of key component verification method, device and terminal device | |
CN116107991A (en) | Container label database construction method and device, storage medium and electronic equipment | |
Penttinen et al. | An open modelling approach for availability and reliability of systems-OpenMARS |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |