Embedded MCU online updating architecture based on array optical fiber channel and field bus
By designing the embedded MCU online update architecture based on the array optical fiber channel and on -site bus, the traditional online update method cannot adapt to the problem of the new distribution control system, and the parallel update of the array control node and the improvement of the system maintenance efficiency.
Patent Information
- Application Number
- CN202411541250.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-01-28
AI Technical Summary
The traditional online update method of the control and security node MCU based on fieldbus networking cannot adapt to the new distribution control system based on fiber + fieldbus, which makes it difficult to achieve software adjustment during the joint field trial.
Designed a embedded MCU online update architecture based on the array -faced fiber channel and on -site bus. The collaboration of the PC -side software, lightning control board, digital board and control nodes to realize the distribution of optical fiber data and on -site bus points. Program online update function.
The parallel update of all control nodes of the array is achieved, improving the system maintenance efficiency, and suitable for the new type of optical fiber -based distribution control system based on optical fiber+on -site bus.
Smart Images

Figure CN119382797A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of antennas, and in particular relates to an embedded MCU online update architecture based on array optical fiber channels and field buses. Background Art
[0002] In order to promote the implementation of cost reduction and efficiency improvement of the array system and improve the flexibility and integration of the control system, the current array control link design gradually integrates the communication channels and uniformly realizes the interaction of array equipment management through optical fiber channels. After the communication channel is unified, the control and protection nodes that originally used the fieldbus (CAN, SCI) networking communicated with the array digital board at a single point, and interacted with the main console through the optical fiber channel of the digital board to form a distributed control system based on optical fiber + fieldbus. However, during the array joint test, the control and protection nodes still have the use scenario of adjusting the software according to the actual function, and the traditional online update method of the control and protection node MCU based on fieldbus networking is no longer applicable to the new scenario. Therefore, it is necessary to integrate the array control and protection circuit, digital board, and optical fiber network. Summary of the invention
[0003] To this end, the present invention proposes an embedded MCU online update architecture based on array fiber channel and field bus, so as to be applicable to the array's new distributed control system based on fiber + field bus and improve system maintenance efficiency.
[0004] The invention discloses an embedded MCU online update architecture based on array optical fiber channel and field bus, comprising PC-side software, a lightning control board, a digital board, and a control and protection node.
[0005] The PC-side software reads the target file to be updated and serves as the data source and control core of the entire communication system.
[0006] The lightning control board will convert the PC data obtained through the network into protocols and distribute the optical fiber data to each digital board.
[0007] The digital board is the third-level data transmission channel, which transmits the optical fiber data point-to-point to the control and protection node through the field bus interface.
[0008] The control and protection node is the lowest-level unit and has the function of online program update.
[0009] The control and protection node is an embedded MCU, and the on-chip Flash is divided into three storage areas. The first area is the BOOT area, the second area is the application area, and the third area is the working parameter storage area. The BootLoader program stored in the BOOT area has the ability to obtain programming data through the existing field bus, reprogram the application area, and jump the program.
[0010] The PC reads the target program file and implements the communication handshake protocol with the BootLoader program, while providing a human-machine interface to display the update status of the control and protection node program; the MCU is written based on the optical fiber network firmware remote update software according to the MCU processing flow to realize automatic firmware length judgment and adaptive processing of network sent data.
[0011] The embedded MCU of the control and protection node is at the bottom layer. After the MCU program starts running, during the waiting time of the BootLoader stage, it continuously monitors whether the field bus interface receives program update commands and data. If it receives data that complies with the protocol, it erases the Flash from the application start address and writes the continuously received application data. After the writing is completed, it automatically jumps to the application start address for execution; if the BootLoader program does not receive the program update command and data during the reprogramming waiting time, it directly jumps to execute the application after the waiting time ends.
[0012] The present invention utilizes the characteristics of optical fiber networking to realize simultaneous updating and maintenance of all control and protection nodes on the array surface, and upgrades multiple field bus networks to parallel updating networks.
[0013] The beneficial effects of the present invention are
[0014] The present invention is applicable to a distributed control system based on optical fiber + field bus. Compared with the traditional online update method of the control and protection node MCU based on field bus networking, it can realize parallel update of all control and protection nodes on the array, greatly improving the system maintenance efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 This is a schematic diagram of the online update architecture.
[0016] Figure 2 It is the principle block diagram for online updating of control and protection node program. DETAILED DESCRIPTION
[0017] The technical solutions in the embodiments of the present invention are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0018] like Figure 1 As shown in the figure, the online update architecture of the present invention is composed of PC-side software, lightning control board, digital board, control and protection node, etc. In view of the online update problem brought by the new architecture, the array optical fiber channel is developed for the first time to realize the online update of embedded MCU. That is, the existing array optical fiber channel is used to parse the effective optical fiber data through the digital board and forward it to the control and protection node, so as to realize the online acquisition of programming data and update and solidify it.
[0019] In order to realize the online program update, it is necessary to customize the PC host software to read the target program file and implement the communication handshake protocol with the BootLoader program, and provide a human-machine interface to display the program update status of the control and protection node. According to the MCU processing flow, the MCU is written based on the optical fiber network firmware remote update software to realize the automatic determination of the firmware length, and the network sent data can be adaptively processed.
[0020] Considering that MCU online update is only used for later product maintenance, it is different from normal working instructions. The lightning control board used for maintenance is different from the installed lightning control. The dedicated lightning control board is replaced during update and maintenance. At the same time, to facilitate problem troubleshooting and maintenance, all online update timing and logic control are implemented in PC software. The lightning control board and digital board only need to forward related file data without distinction.
[0021] like Figure 2 As shown in the figure, the embedded MCU of the control and protection node that needs to be updated is at the bottom layer. After the MCU program starts running, it continuously monitors whether the fieldbus interface receives program update commands and data during the waiting time of the BootLoader stage. If data that meets the protocol is received, the Flash is erased from the application start address and the continuously received application data is written. After the writing is completed, it automatically jumps to the application start address for execution. If the BootLoader program does not receive the program update command and data during the reprogramming waiting time, it directly jumps to execute the application after the waiting time ends.
[0022] The present invention is not limited to the above specific implementations, and the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made to the above implementations based on the technical essence of the present invention shall be included in the protection scope of the present invention.
Claims
1. An embedded MCU online update architecture based on array fiber channel and field bus, characterized by: Including PC software, lightning control board, digital board, control and protection node; The PC software reads the target file to be updated and serves as the data source and control core of the entire communication system; The lightning control board converts the PC data obtained through the network into protocols and distributes the optical fiber data to each digital board; The digital board is the third-level data transmission channel, which transmits the optical fiber data point-to-point to the control and protection node through the field bus interface; The control and protection node is the lowest-level unit and has the function of online program update.
2. According to claim 1, an embedded MCU online update architecture based on array fiber channel and field bus is characterized in that: The control and protection node is an embedded MCU, and the on-chip Flash is divided into three storage areas, the first area is the BOOT area, the second area is the application area, and the third area is the working parameter storage area; the BootLoader program stored in the BOOT area has the ability to obtain programming data through the existing field bus, reprogram the application area, and jump the program.
3. The embedded MCU online update architecture based on array fiber channel and field bus according to claim 2 is characterized in that: The PC reads the target program file and implements the communication handshake protocol with the BootLoader program, while providing a human-machine interface to display the update status of the control and protection node program; the MCU is written based on the optical fiber network firmware remote update software according to the MCU processing flow to realize automatic firmware length judgment and adaptive processing of network sent data.
4. The embedded MCU online update architecture based on array fiber channel and field bus according to claim 3 is characterized in that: The embedded MCU of the control and protection node is at the bottom layer. After the MCU program starts running, during the waiting time of the BootLoader stage, it continuously monitors whether the field bus interface receives program update commands and data. If it receives data that complies with the protocol, it erases the Flash from the application start address and writes the continuously received application data. After the writing is completed, it automatically jumps to the application start address for execution; if the BootLoader program does not receive the program update command and data during the reprogramming waiting time, it directly jumps to execute the application after the waiting time ends.
5. An embedded MCU online update architecture based on array fiber channel and field bus according to any one of claims 1 to 4, characterized in that: The fiber optic networking characteristics are utilized to realize simultaneous updating and maintenance of all control and maintenance nodes on the array, and multiple field bus networks are upgraded to parallel update networks.