CN111459517A - Master-slave equipment online program upgrading method under optical fiber ring network architecture - Google Patents

Master-slave equipment online program upgrading method under optical fiber ring network architecture Download PDF

Info

Publication number
CN111459517A
CN111459517A CN202010234463.XA CN202010234463A CN111459517A CN 111459517 A CN111459517 A CN 111459517A CN 202010234463 A CN202010234463 A CN 202010234463A CN 111459517 A CN111459517 A CN 111459517A
Authority
CN
China
Prior art keywords
program
node
upgrading
data frame
upgraded
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
CN202010234463.XA
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.)
CETC 54 Research Institute
Original Assignee
CETC 54 Research Institute
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 CETC 54 Research Institute filed Critical CETC 54 Research Institute
Priority to CN202010234463.XA priority Critical patent/CN111459517A/en
Publication of CN111459517A publication Critical patent/CN111459517A/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
    • 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/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects
    • H04Q2011/0081Fault tolerance; Redundancy; Recovery; Reconfigurability

Abstract

The invention discloses a master-slave device online program upgrading method under an optical fiber ring network architecture, and belongs to the technical field of multi-device online program upgrading. The method comprises the steps that a main node provides a communication interface for receiving a program upgrading packet, and the main node receives the program upgrading packet and is used for upgrading the main node; and the master node receives the slave node program upgrading packet, transmits the slave node program upgrading packet to the corresponding slave node step by step through the optical fiber ring network, and the slave node receives the self program upgrading packet for self upgrading of the node. The invention only needs the main node to have an interface for receiving the upgrading program package, thereby saving the cost; meanwhile, the method is not limited by the number of system nodes, is matched with the advantages of an optical fiber ring network framework, and has good universality.

Description

Master-slave equipment online program upgrading method under optical fiber ring network architecture
Technical Field
The invention relates to the technical field of multi-device online program upgrading, in particular to a master-slave device online program upgrading method under an optical fiber ring network architecture.
Background
The system based on the optical fiber ring network architecture generally comprises a host and a plurality of slaves, and all node devices are cascaded through optical fibers to form a multistage cascade system. With the continuous improvement of system functions and the continuous establishment of new requirements, program upgrading of the system is inevitable.
A commonly used online upgrade method for a distributed system generally includes: each level of node equipment independently receives the program upgrading packet in a wireless or wired mode to realize self-upgrading; or manual upgrading is carried out from personnel to the location of the node equipment. It has significant disadvantages: each level of node equipment needs to be provided with a wireless or wired interface for receiving an upgrading program package, or needs to invest more manpower, so that the system maintenance cost is increased.
Disclosure of Invention
The present invention is directed to provide a method for upgrading an online program of a master device and a slave device in an optical fiber ring network architecture, which avoids the above-mentioned disadvantages in the background art. The method has the advantages of low cost, good universality, strong expansibility and the like.
The purpose of the invention is realized as follows:
a master-slave device online program upgrading method under an optical fiber ring network architecture comprises the following steps:
(1) the upper computer unpacks and frames the program upgrade package, and sends the program upgrade package to the main node by taking the frame as a unit;
(2) the main node receives the program upgrading data frame and judges whether the node is upgraded or other node upgraded according to the ID of the node to be upgraded in the data frame; if the node is upgraded, entering a program upgrading process of the node; if all the nodes are upgraded, entering the program upgrading process of the node and forwarding the upgraded data frame to all the slave nodes step by step; if the node is upgraded, the upgrading data frame is forwarded to the corresponding slave node step by step;
(3) after each node receives the program upgrading data frame of the node, the main control module of the node checks the data frame; if the verification fails, reporting a program upgrading data frame verification error response frame, and requesting the upper computer to retransmit the data frame; if the verification is successful, executing the step (4);
(4) judging whether the upgrading data frames are continuous or not according to the total program packet number and the current packet count in the data frames; if the data frame is discontinuous, reporting a program upgrading data frame missing response frame, and requiring an upper computer to reissue the missing data frame; if the data frames are continuous, executing the step (5);
(5) judging whether the module is the main control module or other modules according to the ID of the module to be upgraded in the data frame; if the main control module is upgraded, transferring the effective data to a pre-opened RAM, and entering a program upgrading process of the main control module; if the module is upgraded, the upgrading data frame is sent to the corresponding module, the corresponding module stores the effective data into a pre-opened RAM, and the module enters the module program upgrading process;
(6) according to the characteristics of the self program solidified memory, after a received program upgrading frame reaches the size of a programming unit suitable for the program memory, erasing a program storage space to be programmed of the program memory, programming an upgrading program to a corresponding address unit in the program memory, and reporting a response frame whether a program upgrading data frame is correctly programmed or not;
(7) the upper computer performs corresponding operation according to the received response frame; if the program upgrading data frame check error response frame is received, the upper computer retransmits the data frame; if a program upgrading data frame missing response frame is received, the upper computer reissues the missing data frame; if the program programming failure response frame is received, the upper computer retransmits the data frame with programming failure; and if the program programming success response frame is received, the upper computer continuously sends the next data frame or finishes upgrading.
Furthermore, the unpacking size of the program upgrading packet in the step (1) is 1 k-8 k bytes, and the program upgrading data frame which is not enough in unpacking size is filled with zero or FF.
Further, the upgrading of the frame structure of the data frame in the step (2) includes: node ID to be upgraded, module ID to be upgraded, total package number of programs, current package count, data length, valid data, and verification.
Further, the frame structure of the response frame in the step (3), the step (4), the step (6), and the step (7) includes: node ID to be upgraded, module ID to be upgraded, total package number of programs, current package count, lost package count, upgrade status, and verification.
Compared with the background technology, the invention has the following advantages:
1) by adopting the method, only the main node is provided with the interface for receiving the upgrading program package, thereby saving the cost.
2) The method is not limited by the number of system nodes, is matched with the advantages of an optical fiber ring network architecture, and has good universality and strong expansibility.
Drawings
Fig. 1 is a block diagram of an optical fiber ring network according to an embodiment of the present invention.
Fig. 2 is a schematic block diagram of a master node in an embodiment of the present invention.
Fig. 3 is a schematic block diagram of a slave node in an embodiment of the present invention.
FIG. 4 is a flow chart of a method according to an embodiment of the present invention.
Fig. 5 is a frame structure of a program upgrade data frame in an embodiment of the present invention.
Fig. 6 is a frame structure of a program upgrade response frame in an embodiment of the present invention.
Detailed Description
The invention is further described below with reference to the accompanying drawings.
A method for upgrading online programs of master and slave devices under an optical fiber ring network architecture aims at an optical fiber ring network shown in figure 1, and master and slave nodes in the optical fiber ring network are shown in figures 2 and 3. Each node device comprises an optical fiber cascade module, a main control module and other functional modules. In the method, a main node provides a communication interface for receiving a program upgrading packet, and the main node receives the program upgrading packet and is used for upgrading the main node; and the master node receives the slave node program upgrading packet, transmits the slave node program upgrading packet to the corresponding slave node step by step through the optical fiber ring network, and the slave node receives the self program upgrading packet for self upgrading of the node.
As shown in fig. 4, the method specifically includes the following steps:
(101) and the upper computer unpacks and frames the program upgrading packet according to the actual engineering, and sends the frame as a unit to the main node.
(102) And the main node receives the program upgrading data frame and judges whether the node is upgraded or other node upgraded according to the ID of the node to be upgraded in the data frame. If the node is upgraded, entering the program upgrading process of the node; if the node is upgraded, entering the program upgrading process of the node and forwarding the upgraded data frame to all slave nodes step by step; and if the upgrading data frame is upgraded for a certain slave node, forwarding the upgrading data frame to the corresponding slave node step by step.
(103) After each node receives the program upgrading data frame of the node, the main control module of the node checks the data frame. If the verification fails, reporting a program upgrading data frame verification error response frame, and requesting the upper computer to retransmit the data frame; if the check is successful, step 104 is performed.
(104) And judging whether the data frame is continuously updated or not according to the total program packet number and the current packet count in the data frame. If the data frame is discontinuous, reporting a program upgrading data frame missing response frame, and requiring an upper computer to reissue the missing data frame; if the data frames are consecutive, step (105) is performed.
(105) And judging whether the upgrading is the main control module upgrading or other module upgrading according to the module ID to be upgraded in the data frame. If the main control module is upgraded, the effective data is transferred to a pre-opened RAM, and the main control module enters a program upgrading process; if the module is upgraded for other modules, the upgrading data frame is sent to the corresponding module, the corresponding module stores the effective data in the pre-opened RAM, and the module program upgrading process is entered.
(106) According to the characteristics of the self program solidified memory, after the received program upgrading frame reaches the size of a programming unit suitable for the program memory, the memory space of the program to be programmed of the program memory is erased, then the upgrading program is programmed to a corresponding address unit in the program memory, and a response frame whether the program upgrading data frame is correctly programmed or not is reported.
(107) And the upper computer performs corresponding operation according to the received response frame. If a program upgrading data frame check error response frame is received, the upper computer retransmits the data frame; if a program upgrading data frame missing response frame is received, the upper computer reissues the missing data frame; if receiving the program programming failure response frame, retransmitting the data frame with programming failure by the upper computer; and if the program programming success response frame is received, the upper computer continuously sends the next data frame or finishes upgrading.
The unpacking size of the program upgrading packet in the step (101) is selected according to the characteristics of the program solidification memory of the module to be upgraded, the unpacking of the program upgrading packet is generally carried out according to the size of 1 k-8 k bytes, and zero padding or FF (flow field) is carried out according to the characteristics of the memory when the unpacking size is insufficient, so that the transmission efficiency of upgrading data is considered.
As shown in fig. 5, the frame structure of the framing in step (102) mainly includes the following elements: the node ID to be upgraded, the module ID to be upgraded, the total package number of the program, the current package count, the data length, the valid data and the verification, and the occupied space of each main component element can be adjusted according to the actual engineering.
As shown in fig. 6, the response frame structure in step (103), step (104), step (106) and step (107) mainly includes the following elements: the node ID to be upgraded, the module ID to be upgraded, the total package number of the program, the current package count, the lost package count, the upgrade state and the verification, and the occupied space of each main component element can be adjusted according to the actual engineering.
In addition to the above embodiments, the present invention may have other embodiments, and all the technical solutions using equivalent or equivalent forms are within the scope of the present invention.

Claims (4)

1. A master-slave device online program upgrading method under an optical fiber ring network architecture is characterized by comprising the following steps:
(1) the upper computer unpacks and frames the program upgrade package, and sends the program upgrade package to the main node by taking the frame as a unit;
(2) the main node receives the program upgrading data frame and judges whether the node is upgraded or other node upgraded according to the ID of the node to be upgraded in the data frame; if the node is upgraded, entering a program upgrading process of the node; if all the nodes are upgraded, entering the program upgrading process of the node and forwarding the upgraded data frame to all the slave nodes step by step; if the node is upgraded, the upgrading data frame is forwarded to the corresponding slave node step by step;
(3) after each node receives the program upgrading data frame of the node, the main control module of the node checks the data frame; if the verification fails, reporting a program upgrading data frame verification error response frame, and requesting the upper computer to retransmit the data frame; if the verification is successful, executing the step (4);
(4) judging whether the upgrading data frames are continuous or not according to the total program packet number and the current packet count in the data frames; if the data frame is discontinuous, reporting a program upgrading data frame missing response frame, and requiring an upper computer to reissue the missing data frame; if the data frames are continuous, executing the step (5);
(5) judging whether the module is the main control module or other modules according to the ID of the module to be upgraded in the data frame; if the main control module is upgraded, transferring the effective data to a pre-opened RAM, and entering a program upgrading process of the main control module; if the module is upgraded, the upgrading data frame is sent to the corresponding module, the corresponding module stores the effective data into a pre-opened RAM, and the module enters the module program upgrading process;
(6) according to the characteristics of the self program solidified memory, after a received program upgrading frame reaches the size of a programming unit suitable for the program memory, erasing a program storage space to be programmed of the program memory, programming an upgrading program to a corresponding address unit in the program memory, and reporting a response frame whether a program upgrading data frame is correctly programmed or not;
(7) the upper computer performs corresponding operation according to the received response frame; if the program upgrading data frame check error response frame is received, the upper computer retransmits the data frame; if a program upgrading data frame missing response frame is received, the upper computer reissues the missing data frame; if the program programming failure response frame is received, the upper computer retransmits the data frame with programming failure; and if the program programming success response frame is received, the upper computer continuously sends the next data frame or finishes upgrading.
2. The method for on-line program upgrade of a master device and a slave device under an optical fiber ring network architecture according to claim 1, wherein the unpacking size of the program upgrade package in the step (1) is 1 k-8 kbytes, and the program upgrade data frame with the size less than the unpacking size is filled with zero or FF.
3. The method according to claim 1, wherein the frame structure of the procedure-upgraded data frame in step (2) includes: node ID to be upgraded, module ID to be upgraded, total package number of programs, current package count, data length, valid data, and verification.
4. The method for upgrading on-line programs of a master device and a slave device under an optical fiber ring network architecture according to claim 1, wherein the frame structure of the response frame in the steps (3), (4), (6) and (7) comprises: node ID to be upgraded, module ID to be upgraded, total package number of programs, current package count, lost package count, upgrade status, and verification.
CN202010234463.XA 2020-03-30 2020-03-30 Master-slave equipment online program upgrading method under optical fiber ring network architecture Pending CN111459517A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010234463.XA CN111459517A (en) 2020-03-30 2020-03-30 Master-slave equipment online program upgrading method under optical fiber ring network architecture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010234463.XA CN111459517A (en) 2020-03-30 2020-03-30 Master-slave equipment online program upgrading method under optical fiber ring network architecture

Publications (1)

Publication Number Publication Date
CN111459517A true CN111459517A (en) 2020-07-28

Family

ID=71683683

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010234463.XA Pending CN111459517A (en) 2020-03-30 2020-03-30 Master-slave equipment online program upgrading method under optical fiber ring network architecture

Country Status (1)

Country Link
CN (1) CN111459517A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112015452A (en) * 2020-09-10 2020-12-01 深圳市嘉昱机电有限公司 Firmware upgrading method and device of gate system and gate system
CN114978896A (en) * 2022-04-18 2022-08-30 中国电子科技集团公司第二十九研究所 Online reconstruction method for embedded software of heterogeneous platform

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546784A (en) * 2011-12-29 2012-07-04 深圳市迈进科技有限公司 Method based on controller area network (CAN) bus and used for conducting batch upgrading for device firmware
CN103595496A (en) * 2013-11-08 2014-02-19 上海大学 System and method for achieving online upgrading of single-star multi-ring wavelength division multiplexing passive optical network and achieving protection function
KR101576050B1 (en) * 2014-09-12 2015-12-11 한국전기연구원 Method, apparatus and system for upgrading software of nodes
CN105224362A (en) * 2015-09-18 2016-01-06 深圳市新产业生物医学工程股份有限公司 Host computer carries out the method and system of program upgrade to slave computer
CN108153536A (en) * 2017-12-20 2018-06-12 北京华航无线电测量研究所 A kind of DSP online upgrading methods of dynamic adjustment ram space
CN109710291A (en) * 2018-12-27 2019-05-03 中国科学院长春光学精密机械与物理研究所 A kind of aviation O-E Payload software configuration item remote upgrade method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546784A (en) * 2011-12-29 2012-07-04 深圳市迈进科技有限公司 Method based on controller area network (CAN) bus and used for conducting batch upgrading for device firmware
CN103595496A (en) * 2013-11-08 2014-02-19 上海大学 System and method for achieving online upgrading of single-star multi-ring wavelength division multiplexing passive optical network and achieving protection function
KR101576050B1 (en) * 2014-09-12 2015-12-11 한국전기연구원 Method, apparatus and system for upgrading software of nodes
CN105224362A (en) * 2015-09-18 2016-01-06 深圳市新产业生物医学工程股份有限公司 Host computer carries out the method and system of program upgrade to slave computer
CN108153536A (en) * 2017-12-20 2018-06-12 北京华航无线电测量研究所 A kind of DSP online upgrading methods of dynamic adjustment ram space
CN109710291A (en) * 2018-12-27 2019-05-03 中国科学院长春光学精密机械与物理研究所 A kind of aviation O-E Payload software configuration item remote upgrade method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112015452A (en) * 2020-09-10 2020-12-01 深圳市嘉昱机电有限公司 Firmware upgrading method and device of gate system and gate system
CN112015452B (en) * 2020-09-10 2024-04-12 深圳市嘉昱机电有限公司 Firmware upgrading method and device for gate system and gate system
CN114978896A (en) * 2022-04-18 2022-08-30 中国电子科技集团公司第二十九研究所 Online reconstruction method for embedded software of heterogeneous platform
CN114978896B (en) * 2022-04-18 2024-01-23 中国电子科技集团公司第二十九研究所 Online reconstruction method for embedded software of heterogeneous platform

Similar Documents

Publication Publication Date Title
CN102510409B (en) Method and system for quickly and remotely updating program of mobile terminal by using wireless network
CN111145523B (en) Method for upgrading micropower wireless communication module in electricity consumption information acquisition system
CN105893091A (en) Method and system for upgrading software program of intelligent robot
CN100391289C (en) Method of updating remote subsystem in mobile communication system
CN101222430B (en) High-speed multi-protocol data transmission system and method
CN111459517A (en) Master-slave equipment online program upgrading method under optical fiber ring network architecture
CN103268243B (en) A kind of performance element on the spot remote online upgrade-system of chain type current transformer
CN102185754B (en) Method for upgrading board card in switch system
CN101447856A (en) High-capacity file transmission method
CN106412064A (en) Remote upgrade method of power utilization information acquisition terminal
CN103874113A (en) Wireless network maintenance method, device and system
US20130315362A1 (en) Nuclear digital instrumentation and control system
CN109379204A (en) Multi-line system firmware upgrade method, computer installation and computer readable storage medium
CN109413094A (en) Aerospace data Transmission system based on HS-ADIX network
CN105472377A (en) Television debugging method and apparatus thereof
CN105827647A (en) Protocol converter
CN102868945A (en) Upgrading method optical network unit (ONU) in Ethernet passive optical network (EPON)
CN115268965A (en) Adaptive software remote upgrading method and system for low-voltage intelligent circuit breaker
CN113543185B (en) Automatic-opening-assistance-based 5G high-density base station rapid operation method and system
CN101958839A (en) Method and system for establishing operation maintenance channel
CN114785659A (en) Instruction configuration method and device, electronic equipment and computer-readable storage medium
CN104022901A (en) Method of configuring and managing ONU (Optical Network Unit) module of state grid concentrator by utilizing PLC (Programmable Logic Controller)
CN102843265A (en) Non-resetting perturbation-free hot standby double-connection method of communication protocol
CN114020304A (en) LoRaWan-based OTA implementation method, terminal device and computer storage medium
CN115334173B (en) MODBUS and CC-Link protocol conversion device and method

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: 20200728