CN114386015A - Method, system, device and medium for preventing program from being burnt mistakenly by remotely upgrading program - Google Patents

Method, system, device and medium for preventing program from being burnt mistakenly by remotely upgrading program Download PDF

Info

Publication number
CN114386015A
CN114386015A CN202210028597.5A CN202210028597A CN114386015A CN 114386015 A CN114386015 A CN 114386015A CN 202210028597 A CN202210028597 A CN 202210028597A CN 114386015 A CN114386015 A CN 114386015A
Authority
CN
China
Prior art keywords
program
upgrading
identity information
terminal
server
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
Application number
CN202210028597.5A
Other languages
Chinese (zh)
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.)
Shaanxi Green Energy Electronic Technology Co Ltd
Original Assignee
Shaanxi Green Energy Electronic Technology 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 Shaanxi Green Energy Electronic Technology Co Ltd filed Critical Shaanxi Green Energy Electronic Technology Co Ltd
Priority to CN202210028597.5A priority Critical patent/CN114386015A/en
Publication of CN114386015A publication Critical patent/CN114386015A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/44Program or device authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method, a system, a device and a medium for preventing a program from being burnt wrongly in a remote upgrading program. By adding the identity information into the program, whether the identity information of the upgrading program is consistent with the identity information of the current equipment is compared during upgrading, and remote upgrading is started only when the identity information of the upgrading program is consistent with the identity information of the current equipment, so that the remote upgrading efficiency can be improved, the maintenance cost can be reduced, and efficient and orderly operation of the system can be guaranteed.

Description

Method, system, device and medium for preventing program from being burnt mistakenly by remotely upgrading program
Technical Field
The invention belongs to the technical field of power electronics, and particularly relates to a method, a system, a device and a medium for preventing a program from being burnt mistakenly by a remote upgrading program.
Background
Along with the popularization of high-power intelligent charging systems, more and more operation stations are provided. Due to the fact that the requirements of different stations are different from each other and the program Bug of the original station is repaired in the later period, a large number of software versions can appear. The field stations cause poor on-site maintenance timeliness and high cost of operation and maintenance personnel, and online operation and maintenance become trends. The timeliness of operation and maintenance can be greatly improved through network inspection and remote upgrading procedures, and the maintenance cost is reduced. However, due to too many versions and sites of the program, the possibility of upgrading the wrong program is inevitably caused. If the equipment is changed into 'bricks', the equipment cannot be used, and if the equipment is changed into 'bricks', serious accidents can occur.
Disclosure of Invention
The invention aims to provide a method, a system, a device and a medium for preventing a program from being burnt mistakenly by a remote upgrading program. By adding the identity information into the program, whether the identity information of the upgrading program is consistent with the identity information of the current equipment is compared during upgrading, and remote upgrading is started only when the identity information of the upgrading program is consistent with the identity information of the current equipment, so that the remote upgrading efficiency can be improved, the maintenance cost can be reduced, and efficient and orderly operation of the system can be guaranteed.
In order to achieve the purpose, the invention adopts the following technical scheme:
the invention provides a method for preventing a program from being burnt mistakenly by a remote upgrading program, which comprises the following steps:
acquiring an upgrading program;
acquiring identity information of the program from the upgrading program and identifying;
acquiring identity information of a terminal;
when the identity information of the upgrading program is matched with the identity information of the terminal, the upgrading program is allowed; otherwise, the program is not allowed to be upgraded.
Optionally, the identity information of the program is obtained from the fixed address of the upgrade program.
Optionally, the identity information includes a device type and station information.
Optionally, when the program is allowed to be upgraded, the integrity of the program is detected first, and the program is upgraded when the program is complete.
In a second aspect of the present invention, a remote upgrade system is provided, including an operation and maintenance terminal, a server, and a terminal, where:
the operation and maintenance terminal is used for pushing an upgrading program to the server;
the server is used for acquiring and identifying identity information of a program from the upgrading program, and sending an upgrading program request and the identity information of the program to a corresponding terminal according to the identified identity information; when the terminal allows the upgrading program, the server starts the upgrading program and sends the program to the terminal; when the terminal refuses the upgrading program, the server or the terminal stops the upgrading program;
the terminal is used for receiving the upgrading program request and the identity information of the program, comparing the identity information of the terminal with the received identity information, and replying to the server for allowing upgrading when the identity information is consistent in comparison; and when the identity information comparison is inconsistent, replying to the server that the upgrading is not allowed.
Optionally, after the program is upgraded, the terminal replies an upgrade result to the server; if the upgrading program is abnormal, the upgrading is stopped, and the reason for stopping the upgrading is replied to the server.
In a third aspect of the present invention, a system for executing the above method for preventing program from being burned incorrectly by a remote upgrade program is provided, including:
the first acquisition module is used for acquiring the upgrading program;
the identification module is used for acquiring identity information of the program from the upgrading program and identifying the identity information;
the second acquisition module is used for acquiring the identity information of the terminal;
the matching module is used for allowing the upgrading program when the identity information of the upgrading program is matched with the identity information of the terminal; otherwise, the program is not allowed to be upgraded.
In a fourth aspect of the present invention, there is provided a computer apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method for preventing program mis-burning of a remote upgrade program when executing the computer program.
In a fifth aspect of the present invention, a computer-readable storage medium is provided, which stores a computer program, which, when executed by a processor, implements the method for preventing a program from being burned by mistake for a remote upgrade program.
The invention has the following beneficial effects:
according to the method for preventing the program from being burnt wrongly in the remote upgrading program, provided by the embodiment of the invention, aiming at the program which is prevented from being burnt wrongly in the upgrading process, the upgrading is allowed only after the identity information is matched by comparing the upgrading program with the identity information of the terminal, so that the situation that the program is not upgraded wrongly can be ensured to occur at any time. The stable operation of the system is ensured under the condition of not increasing the cost, and the stability and the safety of the system are improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a flowchart of a method for preventing a program from being burnt mistakenly by a remote upgrade program according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of a remote upgrade system provided in an embodiment of the present invention.
Detailed Description
The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
The following detailed description is exemplary in nature and is intended to provide further details of the invention. Unless otherwise defined, all technical terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of exemplary embodiments according to the invention.
The embodiment of the invention provides a method, a system, a device and a medium for preventing a program from being burnt wrongly by a remote upgrading program. By adding the identity information into the program, whether the identity information of the upgrading program is consistent with the identity information of the current equipment is compared during upgrading, and remote upgrading is started only when the identity information of the upgrading program is consistent with the identity information of the current equipment, so that the remote upgrading efficiency can be improved, the maintenance cost can be reduced, and efficient and orderly operation of the system can be guaranteed.
As shown in fig. 1, in a first aspect of the embodiment of the present invention, a method for preventing a program from being burnt incorrectly by a remote upgrade program includes the following steps:
and S001, the server receives the upgrading program pushed by the operation and maintenance personnel.
S002, the server acquires identity information of the program from the fixed address in the upgrading program and identifies the identity information; the identity information includes device type, station information, and the like.
And S003, the server sends the upgrading request and the program identity information to the corresponding terminal according to the identity information of the acquired program.
And S004, comparing the upgrade request and the program identity information with the identity information of the terminal after the terminal receives the upgrade request and the program identity information. Identity comparison is consistent and the upgrade is allowed; and if the identity comparison fails, replying that the upgrade is not allowed, and replying the reason for not allowing the upgrade.
S005, the terminal replies that the upgrade is not allowed, and the server stops the upgrade; and if the terminal replies that the upgrade is allowed, the server (terminal) starts the upgrade and sends the program, and after the program is sent, the server sends a program sending completion mark to the terminal. The terminal detects the integrity of the program after receiving the sending program completion mark, starts the software upgrade of the terminal when detecting that the received upgrade program is normal, and replies an upgrade result after the upgrade is completed; and stopping upgrading if the upgrade program is detected to be abnormal, and replying the reason for stopping upgrading.
As shown in fig. 2, a second aspect of the embodiment of the present invention provides a remote upgrade system, including an operation and maintenance terminal, a server, and a terminal, where:
the operation and maintenance terminal is used for pushing an upgrading program to the server;
the server is used for acquiring and identifying identity information of a program from the upgrading program, and sending an upgrading program request and the identity information of the program to a corresponding terminal according to the identified identity information; when the terminal allows the upgrading program, the server starts the upgrading program and sends the program to the terminal; when the terminal refuses the upgrading program, the server or the terminal stops the upgrading program;
the terminal is used for receiving the upgrading program request and the identity information of the program, comparing the identity information of the terminal with the received identity information, and replying to the server for allowing upgrading when the identity information is consistent in comparison; and when the identity information comparison is inconsistent, replying to the server that the upgrading is not allowed.
Optionally, after the program is upgraded, the terminal replies an upgrade result to the server; if the upgrading program is abnormal, the upgrading is stopped, and the reason for stopping the upgrading is replied to the server.
In a third aspect of the embodiments of the present invention, a system for executing the method for preventing a program from being burned incorrectly by a remote upgrade program is provided, where the system includes:
the first acquisition module is used for acquiring the upgrading program;
the identification module is used for acquiring identity information of the program from the upgrading program and identifying the identity information;
the second acquisition module is used for acquiring the identity information of the terminal;
the matching module is used for allowing the upgrading program when the identity information of the upgrading program is matched with the identity information of the terminal; otherwise, the program is not allowed to be upgraded.
In a fourth aspect of the embodiments of the present invention, a computer apparatus is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the method for preventing program mis-burning of the remote upgrade program is implemented.
In a fifth aspect of the embodiments of the present invention, a computer-readable storage medium is provided, where a computer program is stored, and when the computer program is executed by a processor, the method for preventing a program from being burned incorrectly by a remote upgrade program is implemented.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be appreciated by those skilled in the art that the invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The embodiments disclosed above are therefore to be considered in all respects as illustrative and not restrictive. All changes which come within the scope of or equivalence to the invention are intended to be embraced therein.

Claims (9)

1. A method for preventing program from being burnt mistakenly by a remote upgrading program is characterized by comprising the following steps:
acquiring an upgrading program;
acquiring identity information of the program from the upgrading program and identifying;
acquiring identity information of a terminal;
when the identity information of the upgrading program is matched with the identity information of the terminal, the upgrading program is allowed; otherwise, the program is not allowed to be upgraded.
2. The method for preventing program from being burnt by mistake in claim 1, wherein the identity information of the program is obtained from the fixed address of the upgrading program.
3. The method for preventing program misfiring according to claim 1, wherein the identity information includes device type and station information.
4. The method of claim 1, wherein the program integrity is checked before the program is allowed to be upgraded, and the program is upgraded when the program is complete.
5. The remote upgrading system is characterized by comprising an operation and maintenance end, a server and a terminal, wherein:
the operation and maintenance terminal is used for pushing an upgrading program to the server;
the server is used for acquiring and identifying identity information of a program from the upgrading program, and sending an upgrading program request and the identity information of the program to a corresponding terminal according to the identified identity information; when the terminal allows the upgrading program, the server starts the upgrading program and sends the program to the terminal; when the terminal refuses the upgrading program, the server or the terminal stops the upgrading program;
the terminal is used for receiving the upgrading program request and the identity information of the program, comparing the identity information of the terminal with the received identity information, and replying to the server for allowing upgrading when the identity information is consistent in comparison; and when the identity information comparison is inconsistent, replying to the server that the upgrading is not allowed.
6. The system of claim 5, wherein after the program upgrade is completed, the terminal replies the upgrade result to the server; if the upgrading program is abnormal, the upgrading is stopped, and the reason for stopping the upgrading is replied to the server.
7. A system for executing the method for preventing program mistaken burning of the remote upgrade program according to claim 1, comprising:
the first acquisition module is used for acquiring the upgrading program;
the identification module is used for acquiring identity information of the program from the upgrading program and identifying the identity information;
the second acquisition module is used for acquiring the identity information of the terminal;
the matching module is used for allowing the upgrading program when the identity information of the upgrading program is matched with the identity information of the terminal; otherwise, the program is not allowed to be upgraded.
8. A computer arrangement comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of remote upgrade program burnout prevention according to any one of claims 1 to 4 when executing the computer program.
9. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the method for preventing a program from being burned by mistake according to any one of claims 1 to 4.
CN202210028597.5A 2022-01-11 2022-01-11 Method, system, device and medium for preventing program from being burnt mistakenly by remotely upgrading program Pending CN114386015A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210028597.5A CN114386015A (en) 2022-01-11 2022-01-11 Method, system, device and medium for preventing program from being burnt mistakenly by remotely upgrading program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210028597.5A CN114386015A (en) 2022-01-11 2022-01-11 Method, system, device and medium for preventing program from being burnt mistakenly by remotely upgrading program

Publications (1)

Publication Number Publication Date
CN114386015A true CN114386015A (en) 2022-04-22

Family

ID=81201642

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210028597.5A Pending CN114386015A (en) 2022-01-11 2022-01-11 Method, system, device and medium for preventing program from being burnt mistakenly by remotely upgrading program

Country Status (1)

Country Link
CN (1) CN114386015A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101038549A (en) * 2007-03-28 2007-09-19 北京启明星辰信息技术有限公司 A software updating method capable of crossing system
CN101042651A (en) * 2006-03-22 2007-09-26 华为技术有限公司 Software updating method and system thereof
CN101860853A (en) * 2010-06-09 2010-10-13 中兴通讯股份有限公司 Software upgrading method and device
CN103312786A (en) * 2013-05-17 2013-09-18 广州市雄兵汽车电器有限公司 Vehicle-mounted terminal remote upgrading method and car networking system
CN103957244A (en) * 2014-04-21 2014-07-30 惠州市新思为电子科技有限公司 Remote program upgrading method and server
CN113446151A (en) * 2021-06-17 2021-09-28 东方电气风电有限公司 Remote upgrade control system and method for wind generating set

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101042651A (en) * 2006-03-22 2007-09-26 华为技术有限公司 Software updating method and system thereof
CN101038549A (en) * 2007-03-28 2007-09-19 北京启明星辰信息技术有限公司 A software updating method capable of crossing system
CN101860853A (en) * 2010-06-09 2010-10-13 中兴通讯股份有限公司 Software upgrading method and device
CN103312786A (en) * 2013-05-17 2013-09-18 广州市雄兵汽车电器有限公司 Vehicle-mounted terminal remote upgrading method and car networking system
CN103957244A (en) * 2014-04-21 2014-07-30 惠州市新思为电子科技有限公司 Remote program upgrading method and server
CN113446151A (en) * 2021-06-17 2021-09-28 东方电气风电有限公司 Remote upgrade control system and method for wind generating set

Similar Documents

Publication Publication Date Title
CN106843957B (en) System firmware upgrading method and device
CN101267638B (en) A method and system for obtaining CDMA mobile terminal information
CN106648781B (en) Method and system for upgrading remote firmware of communication equipment
CN106131687A (en) Data burning method and device
CN106775877A (en) A kind of firmware method for refreshing and a kind of server
CN105224362A (en) Host computer carries out the method and system of program upgrade to slave computer
CN102118258A (en) Protective method and protective system for abnormal situation in upgrading of gigabit passive optical network terminal
CN112351471B (en) Method for accessing device to gateway, gateway device and computer readable storage medium
CN104469409A (en) Automatic testing method for smart television software differential upgrading
CN108271150A (en) Support while more mobile phones carried out the method and system of brush machine or data dump
CN106303709A (en) A kind of Set Top Box and application program updating method, system
CN110198222B (en) Plug-and-play test method and test master station for power distribution automation terminal
CN114386015A (en) Method, system, device and medium for preventing program from being burnt mistakenly by remotely upgrading program
CN114138296A (en) Multi-system gateway upgrading method, equipment and storage medium
CN111111209B (en) Game client integrity checking and repairing method
CN103177213B (en) A kind of software vulnerability restorative procedure and system
CN111385613B (en) Television system repairing method, storage medium and application server
CN112131554A (en) Installation identification method and device of vehicle-mounted terminal and vehicle-mounted terminal
CN116723085A (en) Service conflict processing method and device, storage medium and electronic device
CN108001489B (en) Control command interaction method, dispatching workstation and monitoring system
CN109298963A (en) A kind of method and device of system self reover
CN110198249B (en) Power distribution automation system testing method and system
CN113849215A (en) Wireless firmware upgrading method and device
CN103984902B (en) A kind of recognition methods of newly-increased data assets and system
CN109560964B (en) Equipment compliance checking method and device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20220422

RJ01 Rejection of invention patent application after publication