CN105450452B - Remote upgrading method for improving safety and stability of fault indicator - Google Patents

Remote upgrading method for improving safety and stability of fault indicator Download PDF

Info

Publication number
CN105450452B
CN105450452B CN201510875840.7A CN201510875840A CN105450452B CN 105450452 B CN105450452 B CN 105450452B CN 201510875840 A CN201510875840 A CN 201510875840A CN 105450452 B CN105450452 B CN 105450452B
Authority
CN
China
Prior art keywords
program
main website
fault detector
message
random number
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.)
Active
Application number
CN201510875840.7A
Other languages
Chinese (zh)
Other versions
CN105450452A (en
Inventor
戴成涛
王义辉
张翔
于海果
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Suyuan Guangyi Science & Technology Co ltd
Original Assignee
Elefirst Science & Tech Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Elefirst Science & Tech Co Ltd filed Critical Elefirst Science & Tech Co Ltd
Priority to CN201510875840.7A priority Critical patent/CN105450452B/en
Publication of CN105450452A publication Critical patent/CN105450452A/en
Application granted granted Critical
Publication of CN105450452B publication Critical patent/CN105450452B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • H04L41/0859Retrieval of network configuration; Tracking network configuration history by keeping history of different configuration generations or by rolling back to previous configuration versions
    • H04L41/0863Retrieval of network configuration; Tracking network configuration history by keeping history of different configuration generations or by rolling back to previous configuration versions by rolling back to previous configuration versions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a remote upgrading method for improving the safety and stability of a fault indicator, and belongs to the technical field of power grid communication. The method comprises a communication handshake stage, a basic information check state and a ciphertext upgrade stage between a master station and the fault indicator, in order to complete remote software upgrade. Compared with the prior art, by means of various organically combined authentication and encryption processing steps, the method provided by the invention can be used for effectively preventing hacker attack and plaintext leakage, and avoiding wrong version, artificial misoperation and other problems, so that the fault indicator can not only achieve the necessary remote upgrade function, and is very safe and reliable.

Description

A kind of remote upgrade method for lifting fault detector safety and stability
Technical field
Can ensure fault detector safety the present invention relates to a kind of method of terminal software remote upgrade, especially one kind Reliable remote upgrade method, belongs to communication system of power grids technical field.
Background technology
Distribution line failure indicator is a power distribution automation instrument for the daily O&M maintenance of distribution line, its allusion quotation Type is constituted referring to Application No. 201410445194.6, the Chinese patent literature of publication No. CN104202191A.Work as distribution line Be short-circuited or during earth fault, fault detector can quick detection go out corresponding failure, be uploaded to by GPRS telepaks Main website, the place for pointing out maintainer's failure to occur.
With the development and the change of practical application of science and technology, generally require to carry out remotely updating program to fault detector. But current remote upgrade is only limitted to the realization of function, there is no system to consider many safety factors of escalation process, such as hacker attacks Hit, divulge a secret in plain text, version error, artificial incorrect operation etc. a series of problems, such as, therefore the in fact, remote upgrade of fault detector There is potential safety hazard always.
The content of the invention
It is an object of the invention to:For the problem that above-mentioned prior art is present, propose that one kind is able to ensure that safe and reliable And practicable fault detector remote upgrade method.
In order to achieve the above object, fault detector remote upgrade basic technical scheme of the invention was included with the next stage:
First stage, communication handshake stage:At least secondary transmission communication handshake message of main website, status word of shaking hands therein sets It is set to the random number of main website generation;After fault detector receives the communication handshake message of each time, shape of shaking hands therein is parsed State word, and random number is accordingly produced, communication handshake message is replied, and with the predetermined fortune of main website random number corresponding with fault detector Calculate result and the status word of shaking hands replied in communication handshake message is set;Fault detector receives communication handshake report to last time What text was parsed shaken hands, and status word is judged, if not rule notifies that main website can not carry out remote upgrade;Master is notified if legal Standing can enter next stage;
Second stage, essential information verification stage:Main website sends producer's essential information verification message;Fault detector is received The corresponding producer coding that wherein producer's coding is stored to itself is parsed afterwards to compare, and judges that producer's coding is non-if inconsistent Method, notifies that main website can not carry out remote upgrade;Notify that main website sends the essential information containing recent software version and checks if consistent Message;The software version that fault detector will be parsed after receiving is compared with itself software version, if recent software version It is non-higher than itself software version, then notify that main website can not carry out remote upgrade;If being notified higher than if, main website can enter lower single order Section;
Phase III, ciphertext update phase:Main website by by the continuous tail of latest edition original program to be upgraded, shift, negate, After dividing processing, fault detector is downloaded to;Fault detector receives download message paragraph by paragraph, and is carried out after receiving to finish opposite Whether correctly treatment, verify check code, if otherwise notifying main website ciphertext upgrading failure;If then producing and original program identical ROMPaq, completion is upgraded and notifies that main website ciphertext is upgraded successfully.
Further improving of the invention is that also have fourth stage, program local backup protection stage:Fault detector is copied To automatically reseting behind program backup area, release ROMPaq (P0 ') operation power is to starting for original program (P) of shellfish program Operational Zone Program;If starting normally, main website program local is reported to terminate this wheel upgrading after upgrading successfully;Otherwise restart, if pre-determined number weight Open still unsuccessful, then recover original program P of previous version to program Operational Zone from program backup area, while reporting main website local Upgrading failure, terminates this wheel upgrading.
Using the method for the present invention compared with prior art, because the various certifications by organically combining are walked with encryption Suddenly, the problems such as therefore can effectively preventing assault, divulge a secret in plain text, and avoid version error, artificial incorrect operation, refers to failure Show that device can not only realize required remote upgrade function, and fool proof reliability.
Brief description of the drawings
Fig. 1 is the flow chart of the embodiment of the present invention one.
Fig. 2 is main website inside solidification two dimension cipher table.
Fig. 3 constitutes schematic diagram for the original program P0 of Fig. 1 embodiments.
Fig. 4 constitutes schematic diagram for the continuous tail program P1 of Fig. 1 embodiments.
Fig. 5 constitutes schematic diagram for the shift routine P2 of Fig. 1 embodiments.
Fig. 6 constitutes schematic diagram for the program P3 that negates of Fig. 1 embodiments.
Fig. 7 constitutes schematic diagram for the Cutting section by section message of Fig. 1 embodiments.
Fig. 8 constitutes schematic diagram for the message to be assembled of Fig. 1 embodiments.
Fig. 9 constitutes schematic diagram for the assembled program of Fig. 1 embodiments.
Figure 10 constitutes schematic diagram for the program of reforming of Fig. 1 embodiments.
Figure 11 constitutes schematic diagram for the reducing program of Fig. 1 embodiments.
Figure 12 constitutes schematic diagram for the ROMPaq of Fig. 1 embodiments.
Figure 13 locally protects schematic diagram for the program double copies of Fig. 1 embodiments.
Specific embodiment
Embodiment 1
The remote upgrade method of the present embodiment lifting fault detector safety and stability is as shown in figure 1, detailed process It is as follows:
First stage, communication handshake stage, comprise the following steps:
First, main website sends communication handshake message first, the status word XS that shakes hands therein be set to that main website produces first with Machine number M1 (such as 5);
2nd, fault detector receives communication handshake message first, parses the status word XS that shakes hands therein for main website is first The random number M1 (5) of secondary generation, and random number N 1 (such as 0) is produced first, and communication handshake message is replied first, it is therein to hold Hand status word XS is set to random number sum M1+N1 (5) that main website is produced first with fault detector;
3rd, main website is received and shake hands first reply message, parses the status word XS that shakes hands therein for main website refers to failure Show random number sum M1+N1 (5) that device is produced first, calculate the random number N 1 (0) that fault detector is produced first;
4th, main website sends communication handshake message for second, and the status word XS that shakes hands therein is set to main website and produces for second Random number M2 (such as 8);
5th, fault detector receives communication handshake message for the second time, parses the status word XS that shakes hands therein for main website The random number M2 (8) for producing for second, and random number N 2 (such as 2) is produced again, and second is replied communication handshake message, will The status word XS that shakes hands therein is set to random number sum M2+N2 (10) that main website is produced for second with fault detector;
6th, main website receives second handshake and replys message, parses the status word XS that shakes hands therein for main website and failure Random number sum M2+N2 (10) that indicator is produced for second, calculates the random number N 2 that fault detector is produced for second (2);
7th, main website third time sends communication handshake message, and the status word XS that shakes hands therein is set to fault detector twice Product N1 × the N2 of the random number of generation;
8th, fault detector third time receives communication handshake message, parses status word of shaking hands therein, and judgement is Product N1 × the N2 of the no random number produced twice for fault detector, if otherwise judging, handshake procedure is illegal, and frame is denied in reply, leads to Know that main website can not carry out remote upgrade;If then judging that handshake procedure is legal, replys acknowledgement frame, notify that main website can enter next Stage;
Second stage, essential information verification stage, comprise the following steps:
9th, main website sends containing producer coding FC as the essential information of F1 checks message first;
Tenth, fault detector receives essential information verification message first, and it is F1 to parse producer coding FC, is deposited with itself The corresponding producer coding F2 of storage compares and judges whether unanimously, i.e. whether F1 is equal to F2, if otherwise judging, producer's coding is illegal, Otherwise frame is replied, notifies that main website can not carry out remote upgrade;If then judging that producer's coding is legal, acknowledgement frame is replied, notify master Standing can carry out next step;
11, it is the essential information verification message of V1 that main website sends the VER of version containing recent software for second;
12, fault detector receives essential information verification message for the second time, parses software version VER for V1, with Whether itself software version V2 compares and judges whether higher than itself software version, i.e. V1 higher than V2, if otherwise judging software Version is illegal, replys otherwise frame, notifies that main website can not carry out remote upgrade;If then judging that software version is legal, replys and confirms Frame, notifies that main website can enter next stage;
Phase III, ciphertext update phase, comprise the following steps:
13, main website is the latest edition original program P0 to be upgraded of L for the set byte of program size, is calculated predetermined 4 byte CRC checks code, is placed in program afterbody, and it is continuous tail program P1 of the set byte plus predetermined bite L+4 to produce size;
14, main website is directed to continuous tail program P1 and carries out the most preceding two bytes movement of the byte of overall loopy moving two, i.e. program To afterbody, shift routine P2 is produced, the program size is constant;
15, main website carries out integrally negating by turn for shift routine P2, and generation negates program P3, and program size is constant;
16, main website in units of specified 256 byte, carries out Cutting section by section and is downloaded to failure for program P3 is negated Indicator;And often download whether one section of current download frame of judgement is last frame, marked if then putting upgrading tail frame and being masked as ending Will 55H, is otherwise set to non-ending mark AAH;
17, fault detector receives download message paragraph by paragraph, and verifies tail frame mark PEF, if non-tail frame mark AAH, Then continue to;If ending flag of frame 55H, then after startup program assembly produces and negates program identical assembly program P3 ' Carry out next step;
18, fault detector is directed to assembled program P3 ', carries out entirety and negates by turn, generates identical with shift routine P2 The program P2 ' that reforms;
19, fault detector is directed to the two bytes shifting of reform program P2 ' recycled backs movement two bytes, i.e. program afterbody Move to front end, generation and continuous tail program identical reducing program P1 ';
20, whether fault detector is directed to reducing program P1 ', correctly to verify CRC check code, if it is no otherwise to reply main website Recognize frame, notify main website ciphertext upgrading failure;If then the predetermined 4 byte CRC checks code of removal afterbody, produces identical with original program ROMPaq P0 ', reply main website acknowledgement frame, notify that main website ciphertext is upgraded successfully;And enter next stage;
Fourth stage, program local backup protection stage, comprise the following steps:
21, original program P of fault detector program of file copy Operational Zone is to program backup area, and with the mark that ends up 55H modification program upgrading marks PUF;
22, fault detector automatically resets, and release ROMPaq P0 ' operation power gives startup program uBoot;
Whether 23, startup program uBoot operations, determining program upgrading mark PUF is ending mark 55H, is to copy Shellfish program upgrades area ROMPaq P0 ' to program Operational Zone, does not copy otherwise;
24, after ROMPaq P0 ' is copied to program Operational Zone, uBoot directly initiates the program;If the program itself Operation exception, it will the problems such as causing that internal memory is out-of-limit, dog cannot be fed, causing trouble indicator exceptional reset;If the program is run Normally, then will not causing trouble indicator reset, the upgrading of modification program is masked as AAH, completes program local escalation process, and on Report main website program local to upgrade successfully, terminate this wheel upgrading;
25, uBoot recognizers within 60 seconds scheduled times are restarted 3 times, judge whether ROMPaq P0 ' is abnormal, With non-ending mark AAH modifications program upgrading mark PUF as AAH, and recover original program P of previous version from program backup area To program Operational Zone, while reporting main website local upgrade to fail, terminate this wheel upgrading.
Embodiment two
The remote upgrade method main process and embodiment one of the present embodiment lifting fault detector safety and stability It is essentially identical, Fig. 1 is may refer to, main difference is that, the first stage eliminates step 7, is slightly changed afterwards, its complete mistake Journey is as follows:
First stage, communication handshake stage, comprise the following steps:
First, main website sends communication handshake message first, the status word XS that shakes hands therein be set to that main website produces first with Machine number M1;
2nd, fault detector receives communication handshake message first, parses the status word XS that shakes hands therein for main website is first The random number M1 of secondary generation, and random number N 1 is produced first, and communication handshake message, the status word XS that shakes hands therein are replied first It is set to the random number sum M1+N1 that main website is produced first with fault detector;
3rd, main website is received and shake hands first reply message, parses the status word XS that shakes hands therein for main website refers to failure Show the random number sum M1+N1 that device is produced first, calculate the random number N 1 that fault detector is produced first;
4th, main website sends communication handshake message for second, and the status word XS that shakes hands therein is set to main website and produces for second Random number M2;
5th, fault detector receives communication handshake message for the second time, parses the status word XS that shakes hands therein for main website The random number M2 for producing for second, and random number N 2 is produced again, and second is replied communication handshake message, is shaken hands therein Status word XS is set to the random number sum M2+N2 that main website is produced for second with fault detector;
6th, main website receives second handshake and replys message, parses the status word XS that shakes hands therein for main website and failure The random number sum M2+N2 that indicator is produced for second, calculates the random number N 2 that fault detector is produced for second;
7th, main website third time sends communication handshake message, and the status word XS that shakes hands therein is set to fault detector twice Product N1 × the N2 of the random number of generation;
8th, fault detector third time receives communication handshake message, parses status word of shaking hands therein, and judgement is Product N1 × the N2 of the no random number produced twice for fault detector, if otherwise judging, handshake procedure is illegal, and frame is denied in reply, leads to Know that main website can not carry out remote upgrade;If then judging that handshake procedure is legal, replys acknowledgement frame, notify that main website can enter next Stage;
Second stage, essential information verification stage, comprise the following steps:
9th, main website sends containing producer coding FC as the essential information of F1 checks message first;
Tenth, fault detector receives essential information verification message first, and it is F1 to parse producer coding FC, is deposited with itself The corresponding producer coding F2 of storage compares and judges whether unanimously, i.e. whether F1 is equal to F2, if otherwise judging, producer's coding is illegal, Otherwise frame is replied, notifies that main website can not carry out remote upgrade;If then judging that producer's coding is legal, acknowledgement frame is replied, notify master Standing can carry out next step;
11, it is the essential information verification message of V1 that main website sends the VER of version containing recent software for second;
12, fault detector receives essential information verification message for the second time, parses software version VER for V1, with Whether itself software version V2 compares and judges whether higher than itself software version, i.e. V1 higher than V2, if otherwise judging software Version is illegal, replys otherwise frame, notifies that main website can not carry out remote upgrade;If then judging that software version is legal, replys and confirms Frame, notifies that main website can enter next stage;
Phase III, ciphertext update phase, comprise the following steps:
13, main website is the latest edition original program P0 to be upgraded of L for the set byte of program size, is calculated predetermined 4 byte CRC checks code, is placed in program afterbody, and it is continuous tail program P1 of the set byte plus predetermined bite L+4 to produce size;
14, main website is directed to continuous tail program P1 and carries out the most preceding two bytes movement of the byte of overall loopy moving two, i.e. program To afterbody, shift routine P2 is produced, the program size is constant;
15, main website carries out integrally negating by turn for shift routine P2, and generation negates program P3, and program size is constant;
16, main website in units of specified 256 byte, carries out Cutting section by section and is downloaded to failure for program P3 is negated Indicator;And often download whether one section of current download frame of judgement is last frame, marked if then putting upgrading tail frame and being masked as ending Will 55H, is otherwise set to non-ending mark AAH;
17, fault detector receives download message paragraph by paragraph, and verifies tail frame mark PEF, if non-tail frame mark AAH, Then continue to;If ending flag of frame 55H, then after startup program assembly produces and negates program identical assembly program P3 ' Carry out next step;
18, fault detector is directed to assembled program P3 ', carries out entirety and negates by turn, generates identical with shift routine P2 The program P2 ' that reforms;
19, fault detector is directed to the two bytes shifting of reform program P2 ' recycled backs movement two bytes, i.e. program afterbody Move to front end, generation and continuous tail program identical reducing program P1 ';
20, whether fault detector is directed to reducing program P1 ', correctly to verify CRC check code, if it is no otherwise to reply main website Recognize frame, notify main website ciphertext upgrading failure;If then the predetermined 4 byte CRC checks code of removal afterbody, produces identical with original program ROMPaq P0 ', reply main website acknowledgement frame, notify that main website ciphertext is upgraded successfully;And enter next stage;
Fourth stage, program local backup protection stage, comprise the following steps:
21, original program P of fault detector program of file copy Operational Zone is to program backup area, and with the mark that ends up 55H modification program upgrading marks PUF;
22, fault detector automatically resets, and release ROMPaq P0 ' operation power gives startup program uBoot;
Whether 23, startup program uBoot operations, determining program upgrading mark PUF is ending mark 55H, is to copy Shellfish program upgrades area ROMPaq P0 ' to program Operational Zone, does not copy otherwise;
24, uBoot directly initiates the ROMPaq P0 ' for being copied to program Operational Zone, and judges that ROMPaq P0 ' is No normal operation;If otherwise fault detector self-resetting carries out next step;If then indicating AAH modification program liters with non-ending Level mark, and main website local upgrade success is reported, terminate this wheel upgrading;
25, uBoot recognizers within 60 seconds scheduled times are restarted 3 times, judge whether ROMPaq P0 ' is normal, As otherwise upgraded mark PUF as AAH with non-ending mark AAH modification programs, and recover the original of previous version from program backup area First program P is to program Operational Zone, while reporting main website local upgrade to fail.

Claims (4)

1. it is a kind of lifted fault detector safety and stability remote upgrade method, it is characterised in that including with the next stage:
First stage, communication handshake stage, comprise the following steps:
First, main website sends communication handshake message first, and status word of shaking hands therein is set to the random number that main website is produced first;
2nd, fault detector receives communication handshake message first, parses status word of shaking hands therein for main website is produced first Random number, and produce random number first, and reply communication handshake message first, status word of shaking hands therein be set to main website with The random number sum that fault detector is produced first;
3rd, main website is received and shake hands first reply message, parses status word of shaking hands therein for main website is first with fault detector The random number sum of secondary generation, calculates the random number that fault detector is produced first;
4th, main website sends communication handshake message for second, and status word of shaking hands therein is set to the random of second generation of main website Number;
5th, fault detector receives communication handshake message for the second time, parses status word of shaking hands therein and is main website second The random number of generation, and random number is produced again, and second is replied communication handshake message, and status word of shaking hands therein is set For the random number sum that main website and fault detector are produced for second;
6th, main website receives second handshake and replys message, parses status word of shaking hands therein for main website and fault detector The random number sum for producing for second, calculates the random number that fault detector is produced for second;
7th, main website third time sends communication handshake message, and status word of shaking hands therein is set to what fault detector was produced twice The product of random number;
8th, fault detector third time receives communication handshake message, parses status word of shaking hands therein, and determine whether The product of the random number that fault detector is produced twice, if otherwise judging, handshake procedure is illegal, and frame is denied in reply, notifies that main website can not Carry out remote upgrade;If then judging that handshake procedure is legal, replys acknowledgement frame, notify that main website can enter next stage;
Second stage, essential information verification stage:Main website sends producer's essential information verification message;After fault detector is received Parse the corresponding producer coding that wherein producer's coding is stored to itself to compare, judge that producer's coding is non-if inconsistent Method, notifies that main website can not carry out remote upgrade;Notify that main website sends the essential information containing recent software version and checks if consistent Message;The software version that fault detector will be parsed after receiving is compared with itself software version, if recent software version It is non-higher than itself software version, then notify that main website can not carry out remote upgrade;If being notified higher than if, main website can enter lower single order Section;
Phase III, ciphertext update phase:Main website by by the continuous tail of latest edition original program to be upgraded, shift, negate, split After treatment, fault detector is downloaded to;Fault detector receives download message paragraph by paragraph, and is conversely located after receiving to finish Whether correctly reason, verify check code, if otherwise notifying main website ciphertext upgrading failure;If then producing and original program identical liter Level program, completion is upgraded and notifies that main website ciphertext is upgraded successfully;
Fourth stage, program local backup protection stage:Original program of fault detector program of file copy Operational Zone is standby to program Part automatically resets behind area, and release ROMPaq operation power is to startup program;If starting normally, main website program local is reported to escalate into Terminate this wheel upgrading after work(;Otherwise restart, if pre-determined number is restarted still unsuccessful, previous version is recovered from program backup area Original program is to program Operational Zone, while reporting main website local upgrade to fail, terminates this wheel upgrading.
2. the remote upgrade method of fault detector safety and stability is lifted according to claim 1, it is characterised in that The second stage is comprised the following steps:
9th, main website sends the essential information containing producer's coding and checks message first;
Tenth, fault detector receives essential information verification message first, parses producer's coding, the corresponding factory stored to itself Family's coding is compared and is judged whether unanimously, if otherwise judging, producer's coding is illegal, replys otherwise frame, and notice main website can not be carried out Remote upgrade;If then judging that producer's coding is legal, acknowledgement frame is replied, notify that main website can carry out next step;
11, the essential information verification message that main website is sent containing recent software version for second;
12, fault detector receives essential information verification message for the second time, software version is parsed, with itself software version Compare and judge whether higher than itself software version, software version is illegal, replys otherwise frame if otherwise judging, notifies main website not Remote upgrade can be carried out;If then judging that software version is legal, replys acknowledgement frame, notify that main website enters next stage.
3. the remote upgrade method of fault detector safety and stability is lifted according to claim 2, it is characterised in that The phase III comprises the following steps:
13, main website calculates predetermined bite verification for the latest edition original program to be upgraded of the set byte of program size Code, is placed in program afterbody, and it is continuous tail program of the set byte plus predetermined bite to produce size;
14, main website carries out two most preceding bytes of the byte of overall loopy moving two, i.e. program and moves to afterbody for continuous tail program, Shift routine is produced, the program size is constant;
15, main website carries out integrally negating by turn for shift routine, and generation negates program, and program size is constant;
16, main website in units of specified byte, carries out Cutting section by section and is downloaded to fault detector for program is negated;And Often download one section and judge whether current download frame is last frame, if then putting upgrading tail frame is masked as ending mark, otherwise put It is non-ending mark;
17, fault detector receives download message paragraph by paragraph, and verifies tail frame mark, if non-tail frame mark, then continue to; If ending flag of frame, then startup program is assembled produces and carries out next step after negating program identical assembly program;
18, fault detector is directed to assembled program, carry out it is overall negate by turn, generation and shift routine identical are reformed journey Sequence;
19, before fault detector is moved to for two bytes of reform program recycled back movement two bytes, i.e. program afterbody End, generation and continuous tail program identical reducing program;
20, whether fault detector is directed to reducing program, correctly to verify check code, if otherwise replying main website denies frame, notifies Main website ciphertext upgrading failure;If then removing afterbody predetermined bite check code, produce and original program identical ROMPaq, return Multiple main website acknowledgement frame, notifies that main website ciphertext is upgraded successfully.
4. the remote upgrade method of fault detector safety and stability is lifted according to claim 3, it is characterised in that The fourth stage is comprised the following steps:
21, original program of fault detector program of file copy Operational Zone is to program backup area, and changes journey with the mark that ends up Sequence upgrading mark;
22, fault detector automatically resets, and release ROMPaq operation power gives startup program uBoot;
Whether 23, startup program uBoot operations, determining program upgrading mark is ending mark, is then program of file copy upgrading Area's ROMPaq is not copied otherwise to program Operational Zone;
24, after ROMPaq is copied to program Operational Zone, uBoot directly initiates the program;If the program self-operating is different Often, it will the problems such as causing that internal memory is out-of-limit, dog cannot be fed, causing trouble indicator exceptional reset;If the program normal operation, Will not causing trouble indicator reset, modification program upgrading be masked as it is non-ending mark, complete program local escalation process, and on Report main website program local to upgrade successfully, terminate this wheel upgrading;
25, uBoot in the given time restart by recognizer, judges whether ROMPaq is abnormal, is repaiied with non-ending mark Change program upgrading mark, and recover original program of previous version to program Operational Zone from program backup area, while reporting main website Local upgrade fails, and terminates this wheel upgrading.
CN201510875840.7A 2015-12-02 2015-12-02 Remote upgrading method for improving safety and stability of fault indicator Active CN105450452B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510875840.7A CN105450452B (en) 2015-12-02 2015-12-02 Remote upgrading method for improving safety and stability of fault indicator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510875840.7A CN105450452B (en) 2015-12-02 2015-12-02 Remote upgrading method for improving safety and stability of fault indicator

Publications (2)

Publication Number Publication Date
CN105450452A CN105450452A (en) 2016-03-30
CN105450452B true CN105450452B (en) 2017-05-24

Family

ID=55560258

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510875840.7A Active CN105450452B (en) 2015-12-02 2015-12-02 Remote upgrading method for improving safety and stability of fault indicator

Country Status (1)

Country Link
CN (1) CN105450452B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107800786A (en) * 2017-10-20 2018-03-13 南京晓庄学院 A kind of intelligent terminal remote upgrade breakpoint transmission method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101945208A (en) * 2010-09-20 2011-01-12 青岛有线电视网络中心 Method for upgrading terminal set-top box
CN102222011A (en) * 2011-06-28 2011-10-19 广东中大讯通软件科技有限公司 Software upgrading method for set-top box and set-top box
CN104137511A (en) * 2012-02-29 2014-11-05 微软公司 Dynamic selection of security protocol
CN104202191A (en) * 2014-09-03 2014-12-10 广西电网公司电力科学研究院 Switching method of communication working modes of fault indicator remote transmission communication terminal and master station

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8307203B2 (en) * 2008-07-14 2012-11-06 Riverbed Technology, Inc. Methods and systems for secure communications using a local certification authority

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101945208A (en) * 2010-09-20 2011-01-12 青岛有线电视网络中心 Method for upgrading terminal set-top box
CN102222011A (en) * 2011-06-28 2011-10-19 广东中大讯通软件科技有限公司 Software upgrading method for set-top box and set-top box
CN104137511A (en) * 2012-02-29 2014-11-05 微软公司 Dynamic selection of security protocol
CN104202191A (en) * 2014-09-03 2014-12-10 广西电网公司电力科学研究院 Switching method of communication working modes of fault indicator remote transmission communication terminal and master station

Also Published As

Publication number Publication date
CN105450452A (en) 2016-03-30

Similar Documents

Publication Publication Date Title
CN110134420B (en) Firmware upgrading method and system based on cloud platform
CN104052818B (en) The version upgrading method and device of a kind of mobile terminal
CN107247589A (en) A kind of door lock firmware upgrade method based on OTA
CN104899065A (en) Method and system for batch online recovery and software online upgrading
CN105224362A (en) Host computer carries out the method and system of program upgrade to slave computer
CN105897461A (en) Multi-system OTA upgrading method and multi-system equipment
CN103491064B (en) Terminal software maintaining method, service customer end and service server
CN105468389A (en) CPLD-based remote upgrading control method and apparatus
US20160170735A1 (en) Operating system updating method by using a checklist
CN106485140A (en) A kind of upgrade method of electric energy meter and upgrade-system
US10469620B2 (en) Method for transferring a new software version to at least one electricity meter via a communication network
CN106331862A (en) Set-top box software upgrading method and set-top box
CN109067894A (en) A kind of method, the system of the online upgrading based on cloud lock system and key reduction
CN107153559A (en) The application program updating method of a kind of electronic equipment
CN104268468A (en) Protecting method and system of dynamic link library of Android system
CN112698851B (en) Program update system, program transfer device, and program transfer method
CN111555841A (en) Communication data checking method, device, equipment and medium
CN104915234B (en) A kind of Android mobile terminal upgrading report method and system
CN107147519A (en) The methods, devices and systems of device upgrade
CN105450452B (en) Remote upgrading method for improving safety and stability of fault indicator
CN107358526B (en) Method and device for emergency transaction
CN115515012B (en) Key burning method and device, electronic equipment board card and storage medium
US10860747B2 (en) Method for transmitting and checking the validity of configuration data in an electronic system, and associated electronic system and computer program product
CN109408099B (en) Remote FPGA firmware code updating system, method and medium
CN110620800A (en) Method and device for synchronously processing configuration data of power secondary system across safety zones

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240102

Address after: No. 128, Jiangjun Avenue, Jiangning District, Nanjing, Jiangsu 210000

Patentee after: JIANGSU SUYUAN GUANGYI SCIENCE & TECHNOLOGY Co.,Ltd.

Address before: No.86 runqi Road, Dongshan street, Jiangning District, Nanjing City, Jiangsu Province 211103

Patentee before: ELEFIRST SCIENCE & TECH Co.,Ltd.

TR01 Transfer of patent right