Nothing Special   »   [go: up one dir, main page]

CN111190620A - Firmware upgrading method applied to intelligent switch system - Google Patents

Firmware upgrading method applied to intelligent switch system Download PDF

Info

Publication number
CN111190620A
CN111190620A CN201911334380.1A CN201911334380A CN111190620A CN 111190620 A CN111190620 A CN 111190620A CN 201911334380 A CN201911334380 A CN 201911334380A CN 111190620 A CN111190620 A CN 111190620A
Authority
CN
China
Prior art keywords
upgrading
equipment
gateway
slave equipment
address
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
CN201911334380.1A
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.)
Zhejiang Tengen Electric Co Ltd
Original Assignee
Zhejiang Tengen Electric 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 Zhejiang Tengen Electric Co Ltd filed Critical Zhejiang Tengen Electric Co Ltd
Priority to CN201911334380.1A priority Critical patent/CN111190620A/en
Publication of CN111190620A publication Critical patent/CN111190620A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a firmware upgrading method applied to an intelligent switch system, which comprises the following steps: when the gateway is powered on, the gateway allocates an address to slave equipment in a network group, reads the address according to the equipment address and stores equipment type and software version information in a mapping mode; secondly, sending an upgrading instruction through the mobile terminal; after receiving the upgrading instruction, the gateway downloads an upgrading package from the cloud to the gateway according to the equipment type; after the upgrade package is obtained, the gateway controls the slave equipment to be opened, and the slave equipment is upgraded in sequence according to the type of the slave equipment and the corresponding equipment address; fifthly, in the upgrading process, if upgrading fails, the gateway records the address of the slave equipment with the upgrading failure and sends an error reporting signal to the mobile terminal, and the slave equipment with the upgrading failure automatically runs a factory default program; and after the upgrading is completed, the gateway controls the slave equipment to recover to the state before the upgrading, and firmware upgrading can be carried out on the intelligent micro-breaking single or multiple pieces of equipment remotely through the mobile phone APP.

Description

Firmware upgrading method applied to intelligent switch system
Technical Field
The invention relates to the field of power Internet of things, in particular to a firmware upgrading method applied to an intelligent switching system.
Background
The intelligent application is more and more extensive, and in electric power system, intelligence switch also popularizes gradually, and intelligence switch has software and hardware structure, and software mostly needs to be upgraded, goes to satisfy the upgrading upgrade of firmware and upgrade, and at present most need carry out software upgrading to each intelligence switch one by one, and it leads to current intelligence switch system, mostly all does not upgrade to intelligence switch, leads to the wasting of resources.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a firmware upgrading method applied to an intelligent switching system.
In order to achieve the purpose, the invention provides the following technical scheme:
a firmware upgrading method applied to an intelligent switch system comprises the following steps:
step one, when the gateway is powered on, the gateway distributes an address to slave equipment in a network group, reads the address according to the equipment address and stores equipment type and software version information in a mapping mode;
step two, sending an upgrading instruction through the mobile terminal;
step three, after receiving the upgrading instruction, the gateway acquires the type of the slave equipment to be upgraded and software version information according to the upgrading instruction, and downloads an upgrading package from the cloud to the gateway according to the equipment type;
step four, after the upgrade package is obtained, the gateway controls the slave equipment to be upgraded to be switched off, and the slave equipment is upgraded in sequence according to the type of the slave equipment and the corresponding equipment address;
step five, in the upgrading process, if upgrading fails, the gateway records the address of the slave equipment with the upgrading failure and sends an error reporting signal to the mobile terminal, and the slave equipment with the upgrading failure automatically runs a factory default program;
and step six, after the upgrading is finished, the gateway controls the slave equipment to be restored to the state before the upgrading.
And the gateway stores the acquired equipment type and software version information to a memory of the gateway or a cloud server.
And the upgrading instruction in the second step comprises an upgrading mode, wherein the upgrading mode comprises a single equipment upgrading mode and a multi-equipment upgrading mode.
And the upgrading instruction in the second step comprises the equipment address of the slave equipment to be upgraded.
And in the third step, the gateway acquires the equipment type and the software version information of the slave equipment corresponding to the equipment address according to the equipment address of the slave equipment to be upgraded in the upgrading instruction.
In the fourth step, the gateway identifies the state of the slave equipment and records the state of the slave equipment before upgrading, and the gateway controls the slave equipment to be upgraded to be switched off after finishing recording.
And fifthly, if the slave equipment fails to be upgraded, the slave equipment automatically identifies the upgrade fault and runs a self factory default program.
The invention has the beneficial effects that: can long-range single or many equipment that realize the wisdom through cell-phone APP carry out firmware upgrading. Before upgrading, the equipment to be upgraded is automatically controlled to be in a brake-off state, the equipment is ensured to be safe in the upgrading process, and after the upgrading is finished, the equipment is automatically controlled to restore the state before upgrading. If the upgrading fails in the upgrading process, equipment which fails in upgrading can automatically run a factory default program, and corresponding equipment upgrading faults can be prompted on the mobile phone APP, so that the equipment can also normally run even if the upgrading fails.
Drawings
Fig. 1 is a schematic diagram of a firmware upgrade network structure according to the present invention.
FIG. 2 is a flow chart of the gateway online upgrade mode selection logic of the present invention.
Fig. 3 is a logic flow diagram of a multi-device upgrade of the gateway of the present invention.
FIG. 4 is a schematic diagram of FLASH distribution of the slave device intelligent micro-interrupt internal CPU according to the present invention.
FIG. 5 is a logic diagram illustrating the receipt of an upgrade order from a device in accordance with the present invention.
Fig. 6 is a flow chart of the slave program operation of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that all the directional indicators (such as up, down, left, right, front, and rear … …) in the embodiment of the present invention are only used to explain the relative position relationship between the components, the movement situation, etc. in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indicator is changed accordingly.
In the present invention, unless otherwise expressly stated or limited, the terms "connected," "secured," and the like are to be construed broadly, and for example, "secured" may be a fixed connection, a removable connection, or an integral part; can be mechanically or electrically connected; they may be directly connected or indirectly connected through intervening media, or they may be connected internally or in any other suitable relationship, unless expressly stated otherwise. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
The intelligent switch system related in the invention generally comprises a gateway, a power supply and a plurality of intelligent micro-switches.
The invention provides a firmware upgrading method applied to an intelligent switch system, which comprises the following steps:
step one, when the gateway is powered on, the gateway distributes an address to slave equipment in a network group, reads the address according to the equipment address and stores equipment type and software version information in a mapping mode; the gateway stores the acquired device type and software version information to a memory of the gateway or a cloud server, and after the gateway acquires the device type and software version information, the gateway can inquire the corresponding device type and software version according to the device address.
Step two, sending an upgrading instruction through the mobile terminal; and the upgrading instruction in the second step comprises an upgrading mode, wherein the upgrading mode comprises a single equipment upgrading mode and a multi-equipment upgrading mode.
And the upgrading instruction in the second step comprises the equipment address of the slave equipment to be upgraded.
Step three, after receiving the upgrading instruction, the gateway acquires the type of the slave equipment to be upgraded and software version information according to the upgrading instruction, and downloads an upgrading package from the cloud to the gateway according to the equipment type;
and in the third step, the gateway acquires the equipment type and the software version information of the slave equipment corresponding to the equipment address according to the equipment address of the slave equipment to be upgraded in the upgrading instruction.
Step four, after the upgrade package is obtained, the gateway controls the slave equipment to be upgraded to be switched off, and the slave equipment is upgraded in sequence according to the type of the slave equipment and the corresponding equipment address;
in the fourth step, the gateway identifies the state of the slave equipment and records the state of the slave equipment before upgrading, and the gateway controls the slave equipment to be upgraded to be switched off after finishing recording.
The gateway can control the equipment to be upgraded to be in the switching-off state before the upgrading, the safety in the upgrading process is ensured, and the gateway can control the equipment to recover the switching state before the upgrading after the upgrading is finished.
Step five, in the upgrading process, if upgrading fails, the gateway records the address of the slave equipment with the upgrading failure and sends an error reporting signal to the mobile terminal, and the slave equipment with the upgrading failure automatically runs a factory default program; and fifthly, if the slave equipment fails to be upgraded, the slave equipment automatically identifies the upgrade fault and runs a self factory default program.
The device will automatically recognize the failure and run the factory default initial version of the program. Thus, even if the fault equipment is upgraded, the normal operation can be realized
And step six, after the upgrading is finished, the gateway controls the slave equipment to be restored to the state before the upgrading.
The examples should not be construed as limiting the present invention, but any modifications made based on the spirit of the present invention should be within the scope of protection of the present invention.

Claims (7)

1. A firmware upgrading method applied to an intelligent switch system is characterized in that: the method comprises the following steps:
step one, when the gateway is powered on, the gateway distributes an address to slave equipment in a network group, reads the address according to the equipment address and stores equipment type and software version information in a mapping mode;
step two, sending an upgrading instruction through the mobile terminal;
step three, after receiving the upgrading instruction, the gateway acquires the type of the slave equipment to be upgraded and software version information according to the upgrading instruction, and downloads an upgrading package from the cloud to the gateway according to the equipment type;
step four, after the upgrade package is obtained, the gateway controls the slave equipment to be upgraded to be switched off, and the slave equipment is upgraded in sequence according to the type of the slave equipment and the corresponding equipment address;
step five, in the upgrading process, if upgrading fails, the gateway records the address of the slave equipment with the upgrading failure and sends an error reporting signal to the mobile terminal, and the slave equipment with the upgrading failure automatically runs a factory default program;
and step six, after the upgrading is finished, the gateway controls the slave equipment to be restored to the state before the upgrading.
2. The firmware upgrading method applied to the intelligent switch system according to claim 1, characterized in that: and the gateway stores the acquired equipment type and software version information to a memory of the gateway or a cloud server.
3. The firmware upgrading method applied to the intelligent switch system according to claim 1, characterized in that: and the upgrading instruction in the second step comprises an upgrading mode, wherein the upgrading mode comprises a single equipment upgrading mode and a multi-equipment upgrading mode.
4. The firmware upgrading method applied to the intelligent switch system according to claim 1, characterized in that: and the upgrading instruction in the second step comprises the equipment address of the slave equipment to be upgraded.
5. The firmware upgrading method applied to the intelligent switch system according to claim 4, wherein the firmware upgrading method comprises the following steps: and in the third step, the gateway acquires the equipment type and the software version information of the slave equipment corresponding to the equipment address according to the equipment address of the slave equipment to be upgraded in the upgrading instruction.
6. The firmware upgrading method applied to the intelligent switch system according to claim 1, characterized in that: in the fourth step, the gateway identifies the state of the slave equipment and records the state of the slave equipment before upgrading, and the gateway controls the slave equipment to be upgraded to be switched off after finishing recording.
7. The firmware upgrading method applied to the intelligent switch system according to claim 1, characterized in that: and fifthly, if the slave equipment fails to be upgraded, the slave equipment automatically identifies the upgrade fault and runs a self factory default program.
CN201911334380.1A 2019-12-23 2019-12-23 Firmware upgrading method applied to intelligent switch system Pending CN111190620A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911334380.1A CN111190620A (en) 2019-12-23 2019-12-23 Firmware upgrading method applied to intelligent switch system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911334380.1A CN111190620A (en) 2019-12-23 2019-12-23 Firmware upgrading method applied to intelligent switch system

Publications (1)

Publication Number Publication Date
CN111190620A true CN111190620A (en) 2020-05-22

Family

ID=70705864

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911334380.1A Pending CN111190620A (en) 2019-12-23 2019-12-23 Firmware upgrading method applied to intelligent switch system

Country Status (1)

Country Link
CN (1) CN111190620A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610501A (en) * 2009-07-16 2009-12-23 中兴通讯股份有限公司 Device firmware upgrade system and method, device management server and portable terminal
CN106533813A (en) * 2016-12-30 2017-03-22 深圳创维-Rgb电子有限公司 Method for remotely controlling upgrade of intelligent device
CN108259231A (en) * 2017-12-27 2018-07-06 生迪智慧科技有限公司 Method for upgrading software, gateway, server and the system of smart machine
CN109747473A (en) * 2019-02-15 2019-05-14 上海蔚来汽车有限公司 Charge control method, charge control system
CN110134420A (en) * 2019-05-22 2019-08-16 上海诺雅克电气有限公司 Firmware upgrade method and system based on cloud platform

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610501A (en) * 2009-07-16 2009-12-23 中兴通讯股份有限公司 Device firmware upgrade system and method, device management server and portable terminal
CN106533813A (en) * 2016-12-30 2017-03-22 深圳创维-Rgb电子有限公司 Method for remotely controlling upgrade of intelligent device
CN108259231A (en) * 2017-12-27 2018-07-06 生迪智慧科技有限公司 Method for upgrading software, gateway, server and the system of smart machine
CN109747473A (en) * 2019-02-15 2019-05-14 上海蔚来汽车有限公司 Charge control method, charge control system
CN110134420A (en) * 2019-05-22 2019-08-16 上海诺雅克电气有限公司 Firmware upgrade method and system based on cloud platform

Similar Documents

Publication Publication Date Title
JP5933689B2 (en) Method and apparatus for supplying electrical energy
US20090222497A1 (en) Method, system and apparatus for remote software upgrade of an embedded device
EP2771939B1 (en) Distributed batterry management system and method of identification distribution using the same
CN108427570A (en) Intelligent household appliance master control program upgrading system and upgrading method
US10412041B2 (en) Internet protocol (IP) addressing using an industrial control program
CN109710379A (en) Virtual operation management method, apparatus, system, computer equipment and storage medium
CN103891086A (en) Providing electrical energy
CN110768840A (en) Control method, device, equipment and storage medium of communication equipment
CN103490929B (en) Manufacturing and implement method for multi-adaptive firmware of server
CN102883309B (en) Machine to machine M2M communication means and device
CN112925548B (en) Online program updating method
US10467024B2 (en) System and method for bus arrangement communications
CN109274532B (en) Method, device and system for issuing policy, centralized control equipment and readable storage medium
CN112440802B (en) Vehicle charging system, method, device, vehicle and storage medium
JP2018120438A (en) Electronic control device and program rewriting system
CN111190620A (en) Firmware upgrading method applied to intelligent switch system
CN110958139B (en) Network control method, orchestrator, controller, and computer-readable storage medium
CN109032673A (en) Automatically reply the method and computer system of basic input output system image shelves
CN116232862A (en) Intelligent network card switching method, controller and system
US10762022B2 (en) Bus arrangement and method for operating a bus arrangement
US9949046B2 (en) Automating repairs to audio systems
CN105207811B (en) Method and device for replacing non-AllJoyn equipment
CN114448783A (en) Device replacement method and related device
CN112448839B (en) Network card configuration method and device and computer storage medium
CN112650099A (en) Control method and control system of battery monitoring platform

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

Application publication date: 20200522