CN112083969A - FC bus communication-based software online loading method - Google Patents

FC bus communication-based software online loading method Download PDF

Info

Publication number
CN112083969A
CN112083969A CN202010940653.3A CN202010940653A CN112083969A CN 112083969 A CN112083969 A CN 112083969A CN 202010940653 A CN202010940653 A CN 202010940653A CN 112083969 A CN112083969 A CN 112083969A
Authority
CN
China
Prior art keywords
mcu
loading
software
upper computer
target machine
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
CN202010940653.3A
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.)
Leihua Electronic Technology Research Institute Aviation Industry Corp of China
Original Assignee
Leihua Electronic Technology Research Institute Aviation Industry Corp of China
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 Leihua Electronic Technology Research Institute Aviation Industry Corp of China filed Critical Leihua Electronic Technology Research Institute Aviation Industry Corp of China
Priority to CN202010940653.3A priority Critical patent/CN112083969A/en
Publication of CN112083969A publication Critical patent/CN112083969A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Programmable Controllers (AREA)

Abstract

The invention discloses a software online loading method based on FC bus communication, which comprises the following steps: analyzing the MCU of the software to be loaded in the target machine, determining the communication mode between the MCUs, and designing an external interface control file and an internal interface control file; connecting a main controller MCU and an upper computer in the MCU through an FC bus; starting a software loading process by starting an upper computer; starting the target machine, and when the target machine receives a loading control instruction sent by the upper computer, enabling the MCU to enter a loading mode; and the upper computer sends or forwards the loading software to a target MCU in the MCUs through an FC bus and receives the loading state sent from the target MCU. The software online loading method adopted by the invention is convenient to operate and strong in expansibility, and effectively solves the problem that the embedded avionic equipment is difficult to update and maintain software.

Description

FC bus communication-based software online loading method
Technical Field
The invention relates to the technical field of aviation airborne electronic equipment, in particular to a software online loading method based on FC bus communication.
Background
When the MCU of the aviation airborne electronic equipment using the embedded technology is used for loading software, the rear cover needs to be detached and loaded through JTAG (joint test action group) or an external special ATE (automatic test equipment) interface. The operation process of the JTAG loading mode is very complex and is not suitable for maintenance and guarantee of an external field. The ATE interface loading mode is difficult to meet the design requirements of product miniaturization and light weight, and for miniaturized and low-power-consumption equipment with a machine body not provided with an ATE interface, the equipment can only be updated by replacing an extension unit with latest software, and the equipment is very inconvenient to maintain. At present, the matching performance of the network online loading function of IMA on the electronic equipment with an operating system is good, the realization is simple and convenient, but the problems of poor matching performance, high development difficulty and the like exist on the electronic equipment based on an embedded technology.
Disclosure of Invention
The present invention is made to solve the above problems, and an object of the present invention is to provide an FC bus communication-based online software loading method, including: (1) analyzing the MCU of the software to be loaded in the target machine, determining the communication mode between the MCUs, and designing an external interface control file and an internal interface control file; (2) connecting a main controller MCU and an upper computer in the MCU through an FC bus; (3) starting a software loading process by starting an upper computer; (4) starting the target machine, and when the target machine receives a loading control instruction sent by the upper computer, enabling the MCU to enter a loading mode; (5) and the upper computer sends or forwards the loading software to a target MCU in the MCUs through an FC bus and receives the loading state sent from the target MCU.
Preferably, the target machine is an embedded avionics device.
Preferably, in step (1), the software includes programmable logic device software and application software.
Preferably, in step (1), the external interface control file and the internal interface control file contain a control instruction frame and a data frame.
Preferably, in step (2), one end of the FC bus is connected with the upper computer through an ATE communication port, the other end of the FC bus is connected with the target machine main controller MCU through an FC daughter card, and the main controller MCU in the MCU is connected with other MCUs through an internal bus.
Preferably, in step (2), one end of the FC bus is connected to the optical fiber network card of the upper computer through the ATE communication port.
Preferably, in the step (4), the target machine is started, the target machine is placed in a standby state, the control instruction sent by the upper computer is monitored in real time, and when the target machine receives the loading control instruction sent by the upper computer, the MCU enters a loading mode.
Preferably, in step (5), the target MCU is composed of a main controller MCU and/or a remote MCU, the main controller MCU includes one or more FPGAs, and the remote MCU includes one or more FPGAs and/or one or more DSPs and/or one or more CPLDs.
Preferably, the method further comprises: (6) and when the loading state is abnormal, the target machine executes a corresponding abnormal response mechanism according to the loading state.
Preferably, in the step (6), when the loading state shows that the verification is abnormal, the upper computer resends the loading control instruction to the target machine; and when the loading state shows that the erasing or the burning is abnormal, the target machine is restarted, and the target MCU automatically executes the initial software.
Compared with the prior art, the invention has the advantages that: according to the invention, according to the existing architecture design and internal bus of the airborne electronic equipment, the central radial software loading structure, internal/external data communication format, loading state definition and the like are designed, the loading and upgrading of all software are realized from the far end to the near end, and the problem that the embedded airborne electronic equipment is difficult to load the software is solved; the invention carries out the loading of the MCU in the target machine based on the FC bus communication, can run on different upper computers, does not need to modify the hardware configuration of equipment, and can adapt to the loading requirement of the structural change after modification under the condition of the system structural change.
Drawings
FIG. 1 is a flow chart of the online loading method of software based on FC bus communication according to the present invention;
fig. 2 is a schematic connection diagram of an upper computer and a target machine during online loading of software according to an embodiment of the present invention.
Detailed Description
The present invention is further described in detail with reference to the drawings and examples, but it should be understood that these embodiments are not intended to limit the present invention, and those skilled in the art should understand that the functional, methodological, or structural equivalents of these embodiments or substitutions may be included in the scope of the present invention.
In the description of the embodiments of the present invention, it should be understood that the terms "central", "longitudinal", "lateral", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. indicate orientations or positional relationships based on those shown in the drawings, and are only used for convenience in describing and simplifying the description of the present invention, but do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention.
Furthermore, the terms "first," "second," "third," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicit to a number of indicated technical features. Thus, a feature defined as "first," "second," etc. may explicitly or implicitly include one or more of that feature. In the description of the invention, the meaning of "a plurality" is two or more unless otherwise specified.
The terms "mounted," "connected," and "coupled" are to be construed broadly and may, for example, be fixedly coupled, detachably coupled, or integrally coupled; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the creation of the present invention can be understood by those of ordinary skill in the art through specific situations.
Example 1
As shown in fig. 1, the present invention provides a software online loading method based on FC bus communication, including the following steps:
step 100: and analyzing the MCU of the software to be loaded in the target machine, determining the communication mode among the MCUs, and designing an online loading external interface control file and an internal interface control file containing a control instruction frame and a data frame. Wherein the content of the first and second substances,
the target machine is embedded type aviation airborne electronic equipment. The software includes programmable logic device software and application software. The target MCU is composed of a main controller MCU and/or a remote MCU, the main controller MCU comprises one or more FPGAs, and the remote MCU comprises one or more FPGAs and/or one or more DSPs and/or one or more CPLDs.
Step 102: and the main controller MCU and the upper computer in the MCU are connected through the FC bus. One end of the FC bus is connected with an optical fiber network card of the upper computer through an ATE communication port, the other end of the FC bus is connected with a target machine main controller MCU through an FC daughter card, and the main controller MCU in the MCU is connected with other MCUs through an internal bus.
Step 104: and starting a software loading process by starting the upper computer.
In the upper computer software, each loading process corresponds to a designated MCU in the target computer, and the loading message corresponding to the internal process comprises: handshake messages, control messages, (remote MCU) status messages; the load message corresponding to the external process includes a status message.
Step 106: and starting the target machine, and when the target machine receives a loading control instruction sent by the upper computer, enabling the MCU to enter a loading mode.
And starting the target machine, placing the target machine in a standby state, monitoring a control instruction sent by the upper computer in real time, and enabling the MCU to enter a loading mode when the target machine receives a loading control instruction sent by the upper computer.
Step 108: and the upper computer sends or forwards the loading software to a target MCU in the MCU through the FC bus and receives the loading state sent from the target MCU.
And the upper computer sends or forwards corresponding loaded software to the target MCU through the FC bus, executes verification, erasing, burning and other operations, judges the loading state by receiving state feedback data of the MCU, and finishes the online loading of all software in the target MCU.
Step 110: and when the loading state is abnormal, the target machine executes a corresponding abnormal response mechanism according to the loading state.
When the loading state shows that the verification is abnormal, the upper computer resends a loading control instruction to the target machine; and when the loading state shows that the erasing or burning is abnormal, the target machine is restarted, and the target MCU automatically executes the initial software.
According to the online software loading method based on FC bus communication, the software of the target machine can be updated and maintained without shifting and disassembling the target machine. The upper computer software can run on different PCs without modifying any configuration, and has good outfield adaptability and good expansion. The loading of the programmable logic device software and the application program software of the product can be finished only through the self-contained communication port of the FC bus, the design of the product can be fully utilized to meet the engineering requirement, and the reliability and the maintainability of the product are improved. The invention can be applied to airborne avionic equipment based on embedded technology, in particular to a product which does not reserve an ATE port of a case because of adopting miniaturization and lightweight design.
Example 2
The method for loading software on line based on FC bus communication according to the present invention is further described in the following with a specific embodiment.
In this embodiment, an embedded avionic device based on Xilinx FPGA and DSP MCU is selected as a target machine, an FC daughter card is built in the target machine, and data communication is performed with the outside through an FC bus, which has an ATE communication port. The method comprises the following specific implementation steps:
step 1: as shown in fig. 2, the MCU layout design and the internal bus communication mode of the embedded target machine are determined, the MCU directly connected to the FC daughter card is selected as a loading near end (core), and other MCUs directly or indirectly communicating with the FC daughter card are selected as loading far ends, and the MCUs may be FPGAs, DSPs, and the like. An external interface control file and an internal interface control file are designed.
Step 2: the main controller MCU1 and the upper computer are connected through an FC bus. One end of the FC bus is connected with an optical fiber network card of the upper computer through an ATE communication port, the other end of the FC bus is connected with the MCU1 through the FC daughter card, and the MCU1 is connected with other MCUs (MCU1.1, MCU1.2 and MCU1.3) through an internal bus. The internal bus communication mode can be a shared memory mode, a MODBUS485 mode, an Oldham mode and the like.
And step 3: and starting the upper computer to start a software loading process. In the upper computer software, each loading process corresponds to a designated MCU in the target computer. As shown in table 1, the MCU to be loaded with software in the target machine is established with their control ID numbers, and the control frame signal format and status feedback frame between the upper computer software and the MCU are specified for handshake confirmation, data communication, and verification feedback between the MCUs.
TABLE 1 MCU on-line loading interface control table in target machine
Figure BDA0002673527050000071
(Note: in the interface control table, state feedback uses different frame headers to indicate differentiation.)
And 4, step 4: and starting the target machine, and setting the working mode of the target machine in a preset standby mode to monitor the control instruction of the upper computer software. After monitoring a control instruction of the software of the upper computer, the target machine loads the mark position 1 on line, all the MCUs enter an on-line loading state, receives loading data of a specified MCU sent by the upper computer, and stores the data in the DDR 3.
And 5: the upper computer sends or forwards the loading software to the MCU1 through the FC bus and receives the loading state sent from the MCU1. When the online loading ID number of the control instruction is MCU1.XX, if the communication mode of the MCU1 and the MCU1.XX is MODBUS485 or Ono-La mode, the MCU1 and the MCU1.XX perform handshaking according to the ID number, transmit data frames through an internal bus after the handshaking is successful, distribute the loading data in the DDR3, and the MCU1.XX performs operations such as verification, erasing and burning and feeds back the self state; if the communication mode of the MCU1 and the MCU1.XX is a shared memory mode, the MCU1 and the MCU1.XX directly transmit data frames, perform operations such as verification, erasure, burning and the like, and feed back the self state. And after the far-end loading is finished, the near-end loading is finally carried out, when the on-line loading ID number analyzed by the data is the MCU1, the verification of the received data is directly carried out, the operations of erasing, burning and the like are executed after no error exists, and the state of the MCU1 is reported.
Step 6: and after all software in the target machine is loaded on line, powering off and restarting.
The above description is only for the specific embodiments of the present disclosure, but the scope of the present disclosure is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present disclosure should be covered within the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (10)

1. A software online loading method based on FC bus communication comprises the following steps:
(1) analyzing the MCU of the software to be loaded in the target machine, determining the communication mode between the MCUs, and designing an external interface control file and an internal interface control file;
(2) connecting a main controller MCU and an upper computer in the MCU through an FC bus;
(3) starting a software loading process by starting an upper computer;
(4) starting the target machine, and when the target machine receives a loading control instruction sent by the upper computer, enabling the MCU to enter a loading mode;
(5) and the upper computer sends or forwards the loading software to a target MCU in the MCUs through an FC bus and receives the loading state sent from the target MCU.
2. The method of claim 1, wherein the target machine is an embedded avionics device.
3. The method of claim 1 or 2, wherein in step (1), the software comprises programmable logic device software and application software.
4. The method according to claim 1 or 2, wherein in step (1), the external interface control file and the internal interface control file contain control instruction frames, data frames.
5. The method according to claim 1 or 2, wherein in step (2), one end of the FC bus is connected with the upper computer through an ATE communication port, the other end of the FC bus is connected with the target computer main controller MCU through an FC daughter card, and the main controller MCU in the MCUs is connected with other MCUs through an internal bus.
6. The method of claim 5, wherein in step (2), one end of the FC bus is connected with a fiber network card of an upper computer through an ATE communication port.
7. The method according to claim 1 or 2, wherein in the step (4), the target machine is started and is placed in a standby state, the target machine monitors the control instruction sent by the upper computer in real time, and when the target machine receives the loading control instruction sent by the upper computer, the MCU enters a loading mode.
8. The method according to claim 1 or 2, wherein in step (5) the target MCU is constituted by a master controller MCU containing one or more FPGAs and/or a remote MCU containing one or more FPGAs and/or one or more DSPs and/or one or more CPLDs.
9. The method according to claim 1 or 2, wherein the method further comprises:
(6) and when the loading state is abnormal, the target machine executes a corresponding abnormal response mechanism according to the loading state.
10. The method according to claim 9, wherein in step (6), when the loading state shows a check exception, the upper computer resends the loading control instruction to the target machine; and when the loading state shows that the erasing or the burning is abnormal, the target machine is restarted, and the target MCU automatically executes the initial software.
CN202010940653.3A 2020-09-09 2020-09-09 FC bus communication-based software online loading method Pending CN112083969A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010940653.3A CN112083969A (en) 2020-09-09 2020-09-09 FC bus communication-based software online loading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010940653.3A CN112083969A (en) 2020-09-09 2020-09-09 FC bus communication-based software online loading method

Publications (1)

Publication Number Publication Date
CN112083969A true CN112083969A (en) 2020-12-15

Family

ID=73731729

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010940653.3A Pending CN112083969A (en) 2020-09-09 2020-09-09 FC bus communication-based software online loading method

Country Status (1)

Country Link
CN (1) CN112083969A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113064668A (en) * 2021-03-26 2021-07-02 中国航空无线电电子研究所 Embedded platform executable file data online loading control system
CN117573147A (en) * 2023-10-27 2024-02-20 福氏新能源技术(上海)有限公司 MCU (micro control Unit) burning control method based on backboard bus control

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01194054A (en) * 1988-01-29 1989-08-04 Hitachi Ltd Program loading system for distributed processing system
US20040172494A1 (en) * 2003-01-21 2004-09-02 Nextio Inc. Method and apparatus for shared I/O in a load/store fabric
US20070266179A1 (en) * 2006-05-11 2007-11-15 Emulex Communications Corporation Intelligent network processor and method of using intelligent network processor
US20090198393A1 (en) * 2008-02-06 2009-08-06 Sims Iii John Benjamin Method and apparatus for loading software aircraft parts
CN110851164A (en) * 2019-11-18 2020-02-28 沈阳航盛科技有限责任公司 Fiber channel node card with logic online upgrading function
CN111045734A (en) * 2019-11-19 2020-04-21 中国航空工业集团公司西安航空计算技术研究所 Software and hardware program one-key curing system and method based on IMA platform

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01194054A (en) * 1988-01-29 1989-08-04 Hitachi Ltd Program loading system for distributed processing system
US20040172494A1 (en) * 2003-01-21 2004-09-02 Nextio Inc. Method and apparatus for shared I/O in a load/store fabric
US20070266179A1 (en) * 2006-05-11 2007-11-15 Emulex Communications Corporation Intelligent network processor and method of using intelligent network processor
US20090198393A1 (en) * 2008-02-06 2009-08-06 Sims Iii John Benjamin Method and apparatus for loading software aircraft parts
CN110851164A (en) * 2019-11-18 2020-02-28 沈阳航盛科技有限责任公司 Fiber channel node card with logic online upgrading function
CN111045734A (en) * 2019-11-19 2020-04-21 中国航空工业集团公司西安航空计算技术研究所 Software and hardware program one-key curing system and method based on IMA platform

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张象羽 等: "基于以太网和PCIe的多核DSP开发平台", 计算机工程与科学, vol. 41, no. 10, 31 October 2019 (2019-10-31), pages 1731 - 1737 *
张雷: "可加载仿真模型的FC-AE-1553协议接口卡研制", 《工程科技Ⅱ辑》, no. 04, pages 031 - 112 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113064668A (en) * 2021-03-26 2021-07-02 中国航空无线电电子研究所 Embedded platform executable file data online loading control system
CN113064668B (en) * 2021-03-26 2024-03-15 中国航空无线电电子研究所 On-line loading control system for executable file data of embedded platform
CN117573147A (en) * 2023-10-27 2024-02-20 福氏新能源技术(上海)有限公司 MCU (micro control Unit) burning control method based on backboard bus control

Similar Documents

Publication Publication Date Title
CN112083969A (en) FC bus communication-based software online loading method
CN103200026B (en) The upgrade method and system of firmware
JP5416114B2 (en) Architecture distributed to FADEC and avionics components
EP1980943A1 (en) System monitor device control method, program, and computer system
US20060079278A1 (en) Method for automatic radio operational mode selection
CN106445613A (en) Code upgrading method and system
CN114546453B (en) FPGA configuration item online upgrading method, system, equipment and storage medium
CN103761131A (en) Multi-board-card automatic updating method and system based on internal storage sharing
CN111427602B (en) Method for upgrading firmware on line of intelligent platform management controller of VPX case
CN109525276B (en) Multimode data link system and method with external downloading function
CN111104146B (en) High-stability maintainability embedded device
CN108418707B (en) Method for upgrading mutual online backup of double CPLDs in communication system and service veneer
KR20060133873A (en) Program executing system, programming system for program executing system, program analyzing and administration systems, examination device having a program executing system, program constructing system for examination device, and examination device system
CN112731860A (en) VPX blade power-on control method and circuit and VPX blade
CN111984287A (en) Equipment upgrading method and system
CN114579155A (en) Online updating method and system for multi-FPGA system and computer equipment
WO2020011255A1 (en) Single board, backplane switch and method for powering on/off single board
CN111124455A (en) Battery management system upgrading method and device, server and storage medium
CN111896824B (en) Unattended reliability testing device and system
KR940001699B1 (en) Operation aiding system in electronic exchange
CN215711749U (en) Oiling control device and oiling control system of aircraft
CN214896578U (en) Optical module firmware downloading device
CN116627463A (en) Chip upgrading method, device, equipment and medium
CN114194411A (en) Throttle calibration method for man-machine interaction
CN115934736A (en) Data docking method, device, equipment and storage medium

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