CN112559008A - Method for on-line upgrading multi-board software - Google Patents
Method for on-line upgrading multi-board software Download PDFInfo
- Publication number
- CN112559008A CN112559008A CN202011482165.9A CN202011482165A CN112559008A CN 112559008 A CN112559008 A CN 112559008A CN 202011482165 A CN202011482165 A CN 202011482165A CN 112559008 A CN112559008 A CN 112559008A
- Authority
- CN
- China
- Prior art keywords
- board
- state information
- upgrading
- monitoring operation
- information board
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 14
- 238000012544 monitoring process Methods 0.000 claims abstract description 39
- 238000004891 communication Methods 0.000 claims abstract description 7
- 230000002093 peripheral effect Effects 0.000 claims description 4
- 230000011218 segmentation Effects 0.000 description 6
- 230000007547 defect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
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)
Abstract
The invention discloses a method for on-line upgrading multi-board software, which comprises the following steps: 1) a state information board is arranged between the upper computer and the plurality of monitoring operation boards to be upgraded; 2) the upper computer is powered on firstly and continuously sends an upgrading command to the state information board; 3) the state information board detects whether an upgrading instruction exists; 4) after the state information board detects the upgrading instruction, the upgrading instruction is sequentially sent to the monitoring operation board through SPI communication, and the state information board receives information which is fed back by the monitoring operation board and receives the upgrading instruction; 5) the state information board reports the upgrading preparation of the monitoring operation board to the upper computer through SCI communication; 6) the state information board receives the segmented upgrading codes of the monitoring operation boards analyzed by the upper computer, and the codes are packaged and then sent to the monitoring operation boards; 7) and judging whether all the section codes of each monitoring operation board are finished. The invention avoids the need of external controller for single board upgrading software, and has high upgrading efficiency.
Description
Technical Field
The invention relates to a data processing technology, in particular to a method for on-line upgrading of multi-board software.
Background
At present, most project software upgrading is still carried out in a programmer mode, and the biggest defect is that a cover needs to be opened for each upgrading, and the efficiency is low. A few projects began to be upgraded online, typically using SDFlash recommended by TI or C2Prog by CodeSkin. The two tools support more DSP models and have more powerful functions. The method has the disadvantages that errors are made in the midway, the problem is difficult to find according to the prompt, and the multi-board system is not supported to be upgraded. To use the above two types of upgrade software, it is necessary to control each board individually and to lead out the serial line of each board. The actual project situation is more complicated, a serial port line is designed and led out only when a board which needs to report data outwards is involved, and other boards do not directly send data outwards. Upgrading of multi-board software cannot be accomplished using common tools.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a method for on-line upgrading of multi-board software aiming at the defects in the prior art.
The technical scheme adopted by the invention for solving the technical problems is as follows: a method for multi-board software online upgrade comprises the following steps:
1) a state information board is arranged between the upper computer and the plurality of monitoring operation boards to be upgraded; the state information board is communicated with the upper computer through an SCI (serial peripheral interface), and the state information board is communicated with the monitoring operation board through an SPI (serial peripheral interface); codes for unlocking Flash and receiving data are solidified in the state information board and the monitoring operation board;
2) the upper computer is powered on firstly and continuously sends an upgrading command to the state information board;
3) after the state information board is powered on, after the state information board and the monitoring operation board are initialized, the state information board detects whether an upgrading instruction exists;
4) after the state information board detects the upgrading instruction, the upgrading instruction is sequentially sent to the monitoring operation board through SPI communication, and the information which is fed back by the monitoring operation board and receives the upgrading instruction is received to the state information board;
5) the state information board reports the upgrading preparation of the monitoring operation board to the upper computer through SCI communication;
6) the state information board receives the segmented upgrading codes of the monitoring operation boards analyzed by the upper computer, and the codes are packaged and then sent to the monitoring operation boards; the method comprises the following specific steps:
the upper computer sends the first section of the upgrading code of the monitoring operation board to the state information board, the state information board packages the first section of the upgrading code according to the SPI format and then sends the first section of the upgrading code to the first state information board, and after receiving the feedback that the first state information board finishes programming the first section of the code, the state information board feeds back the first section of the upgrading code to the upper computer to be finished and then sends the first section of the upgrading code to the subsequent monitoring operation board; if not, the state information board starts a retransmission to the uncompleted monitoring operation board;
7) judging whether all the segmented codes of each monitoring operation board are finished or not, if so, finishing upgrading of the monitoring operation board, and otherwise, repeating the step 6);
8) and the upper computer sends the upgrading code of the state information to the state information board through the serial port in a sectional sending mode, and after the state information board is finished, the upper computer feeds back the completion of upgrading.
The invention has the following beneficial effects:
the invention designs a method for upgrading multi-board software on line aiming at the limitation that the common upgrading software can only upgrade single-board software, thereby avoiding the situation that the single-board upgrading software needs to be externally connected with a controller to control the current upgraded board, and the upgrading of all boards can be completed by one key of an upper computer, and the upgrading efficiency is high.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
FIG. 1 is a flow chart of a method of an embodiment of the present invention;
FIG. 2 is a diagram of hardware connections for an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail with reference to the following embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1 and fig. 2, a method for online upgrading multi-board software includes the following steps:
(1) the controller comprises 1 state information board and 3 monitoring operation boards (ABC), the controller and the upper computer can only communicate through SCI, and the state information board and the monitoring operation boards communicate through SPI;
(2) the upper computer must be started first and sends an upgrading command to the controller periodically;
(3) the controller is powered on, the core codes of the state information board and the monitoring operation board are operated firstly, and whether an upgrading command exists is inquired;
(4) after receiving the upgrading command, the state information board sends the upgrading command to the ABC board in sequence;
(5) after the state information board receives that the ABC board is in a ready state, the state information board sends the controller to an upper computer that the controller is in an upgrading ready state;
(6) the state information board receives an ABC board subsection upgrading code analyzed by the upper computer;
(7) the state information board packages the segment upgrading codes according to the SPI communication format, gates the ABC board in sequence and sends the packaged segment codes;
(8) after waiting for 2 seconds, inquiring whether the ABC board segmentation codes are completely programmed;
(9) if not, the state information board starts a retransmission to the uncompleted monitoring operation board;
(10) the completion condition of sending the segmentation codes to the upper computer, all ABC finish sending 0x7(bit0 corresponds to the C board, bit1 corresponds to the B board, bit2 corresponds to the A board, 1 is completed, and 0 is not completed);
(11) judging whether all the ABC segmentation codes are finished or not, if so, continuing to receive the state information segmentation codes sent by the upper computer, and otherwise, repeating the steps (6) to (11);
(12) receiving a state information segmentation code sent by an upper computer;
(13) programming the segmented code to a specified address;
(14) and judging whether the programming of the state information segmentation codes is completed or not, if so, sending all the upgrade completed (0xFA) to the upper computer, and otherwise, repeating the steps (12) to (14).
It will be understood that modifications and variations can be made by persons skilled in the art in light of the above teachings and all such modifications and variations are intended to be included within the scope of the invention as defined in the appended claims.
Claims (2)
1. A method for multi-board software online upgrade is characterized by comprising the following steps:
1) a state information board is arranged between the upper computer and the plurality of monitoring operation boards to be upgraded; the state information board is communicated with the upper computer through an SCI (serial peripheral interface), and the state information board is communicated with the monitoring operation board through an SPI (serial peripheral interface);
2) the upper computer is powered on firstly and continuously sends an upgrading command to the state information board;
3) after the state information board is powered on, after the state information board and the monitoring operation board are initialized, the state information board detects whether an upgrading instruction exists;
4) after the state information board detects the upgrading instruction, the upgrading instruction is sequentially sent to the monitoring operation board through SPI communication, and the state information board receives information which is fed back by the monitoring operation board and receives the upgrading instruction;
5) the state information board reports the upgrading preparation of the monitoring operation board to the upper computer through SCI communication;
6) the state information board receives the segmented upgrading codes of the monitoring operation boards analyzed by the upper computer, and the codes are packaged and then sent to the monitoring operation boards; the method comprises the following specific steps:
the upper computer sends the first section of the upgrading code of the monitoring operation board to the state information board, the state information board packages the first section of the upgrading code according to the SPI format and then sends the first section of the upgrading code to the first state information board, and after receiving the feedback that the first state information board finishes programming the first section of the code, the state information board feeds back the first section of the upgrading code to the upper computer to be finished and then sends the first section of the upgrading code to the subsequent monitoring operation board; if not, the state information board starts a retransmission to the uncompleted monitoring operation board;
7) judging whether all the segmented codes of each monitoring operation board are finished or not, if so, finishing upgrading of the monitoring operation board, and otherwise, repeating the step 6);
8) if the state information board needs to be upgraded, the upper computer sends the upgrade codes of the state information to the state information board through the serial port in a segmented sending mode, and after the state information board is upgraded, the upgrade codes are fed back to the upper computer to complete the upgrade.
2. The method for multi-board software online upgrade according to claim 1, wherein in step 1), codes for unlocking Flash and receiving data are fixed in the status information board and the monitoring runtime board.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011482165.9A CN112559008A (en) | 2020-12-15 | 2020-12-15 | Method for on-line upgrading multi-board software |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011482165.9A CN112559008A (en) | 2020-12-15 | 2020-12-15 | Method for on-line upgrading multi-board software |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112559008A true CN112559008A (en) | 2021-03-26 |
Family
ID=75063698
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011482165.9A Pending CN112559008A (en) | 2020-12-15 | 2020-12-15 | Method for on-line upgrading multi-board software |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112559008A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101924643A (en) * | 2009-06-10 | 2010-12-22 | 中兴通讯股份有限公司 | Updating method and system of card software in communication system equipment |
CN102736929A (en) * | 2012-08-03 | 2012-10-17 | 太原理工大学 | Remote on-line upgrade method for terminal controller software of hydraulic support electrohydraulic control system |
CN107562504A (en) * | 2017-09-11 | 2018-01-09 | 哈尔滨工程大学 | A kind of serial port implementing method of DSP program segmentings loading |
CN111767068A (en) * | 2020-06-01 | 2020-10-13 | 北京智芯微电子科技有限公司 | Equipment for carrying out batch upgrading on communication modules and batch upgrading system |
CN111930408A (en) * | 2020-06-29 | 2020-11-13 | 东风电驱动系统有限公司 | Software upgrading method |
-
2020
- 2020-12-15 CN CN202011482165.9A patent/CN112559008A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101924643A (en) * | 2009-06-10 | 2010-12-22 | 中兴通讯股份有限公司 | Updating method and system of card software in communication system equipment |
CN102736929A (en) * | 2012-08-03 | 2012-10-17 | 太原理工大学 | Remote on-line upgrade method for terminal controller software of hydraulic support electrohydraulic control system |
CN107562504A (en) * | 2017-09-11 | 2018-01-09 | 哈尔滨工程大学 | A kind of serial port implementing method of DSP program segmentings loading |
CN111767068A (en) * | 2020-06-01 | 2020-10-13 | 北京智芯微电子科技有限公司 | Equipment for carrying out batch upgrading on communication modules and batch upgrading system |
CN111930408A (en) * | 2020-06-29 | 2020-11-13 | 东风电驱动系统有限公司 | Software upgrading method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104579719B (en) | A kind of upgrade method and system, host computer and optical module of firmware | |
CN102999350B (en) | A kind of FPGA program upgrading download online method in digital signal processing platform | |
CN100498708C (en) | Firmware download method and device using personal computer | |
US8862251B2 (en) | Controller for machine tool and machining-related data processing system provided therewith | |
CN1804799A (en) | SCM online loading and updating method and system | |
CN101859135B (en) | Method and device for controlling distributed automation system | |
CN101655802B (en) | System and method for downloading files in batches | |
WO2006011474A1 (en) | Program creating device for programmable controller, program creating method for programmable controller, and recording medium having recorded program of the method | |
CN104281095A (en) | Conveying control system for multi-cavity wafer machining equipment | |
CN103729218A (en) | ID (identity) programming method | |
CN104907932A (en) | Method for achieving machining program processing through conversational parameters in computer numerical control grinding machine system | |
CN112559008A (en) | Method for on-line upgrading multi-board software | |
CN107943504B (en) | Dynamic upgrading method for software module in embedded system | |
CN103049602B (en) | Based on model-driven engineering, AADL assembly is transformed into Interface Automata model method | |
CN116708592A (en) | Configurable communication protocol interaction method and system | |
CN108845823B (en) | Software online upgrading method based on F2812 chip | |
CN111290557A (en) | Method and system for controlling power-on time sequence of GPU (graphics processing Unit) based on OAM (operation administration and maintenance) specification | |
CN111208753A (en) | FPGA starting and online upgrading method based on ARM | |
CN110738284A (en) | IC card full-automatic card issuing, writing and recycling method | |
CN106555743A (en) | A kind of motor compressor drive firmware update method and system | |
CN114995291A (en) | Numerical control machine tool control system and control method | |
CN106210897B (en) | set top box automatic test method based on serial port and system thereof | |
CN107579847A (en) | The data configuration method of EPON area Adaptable System | |
EP1174779A1 (en) | Method of programming motion controller | |
CN110427195B (en) | Program loading verification algorithm |
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: 20210326 |
|
RJ01 | Rejection of invention patent application after publication |