Serial port online upgrade method for spaceborne laser terminal optical amplifier controller
Patent Information
- Application Number
- CN202611134694.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-29
- Publication Date
- 2026-10-30
AI Technical Summary
在轨长期运行过程中,常需要对星载激光终端光放大器控制器进行固件修复、保护策略更新、参数优化等升级操作,使用串口进行在线升级可以极大降低成本,现在的在线升级多依赖断电重启,激光通信链路中断,无法满足星载连续工作要求;升级过程无工作点锁存,寄存器刷新、DAC跳变易造成光功率突变、增益漂移,影响链路安全,且无完善的地面上位机状态监控、异常中止、自动回滚机制,升级过程不可控、风险高
本申请针对现有技术缺乏地面上位机智能管控、星载升级易中断激光链路、无安全回滚等问题,提供一种星载激光终端光放大器控制器串口在线升级方法,通过地面上位机可视化管控、串口可靠传输,实现星载激光终端光放大器控制器不间断光输出、异常自动回滚的全流程在线升级,提升设备可维护性与安全性。
Smart Images

Figure CN123011286A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of laser terminal communication technology, specifically to a method for online upgrade of the serial port of a spaceborne laser terminal optical amplifier controller. Background Technology
[0002] In spaceborne laser communication terminals, the optical amplifier controller is a core component ensuring optical power output and communication link quality. It is typically controlled by a radiation-hardened MCU and interacts with the spaceborne computer or ground-based telemetry and control system via a serial port. During long-term on-orbit operation, upgrades such as firmware repair, protection strategy updates, and parameter optimization are frequently required for the spaceborne laser terminal optical amplifier controller. Online upgrades via serial port can significantly reduce costs. Current online upgrades often rely on power-off restarts, interrupting the laser communication link and failing to meet the requirements for continuous spaceborne operation. Furthermore, the upgrade process lacks operating point latching, and register refreshes and DAC transitions can easily cause sudden changes in optical power and gain drift, affecting link safety. Moreover, there is no robust ground-based monitoring system for status monitoring, abnormal termination, and automatic rollback mechanisms, making the upgrade process uncontrollable and high-risk.
[0003] Therefore, there is an urgent need for an online upgrade method that can be uniformly controlled by a ground-based host computer, achieve uninterrupted optical output, and automatically roll back. Summary of the Invention
[0004] The technical problem to be solved by this invention is to overcome the shortcomings of the prior art and provide a method for online upgrade of the serial port of the optical amplifier controller of a spaceborne laser terminal.
[0005] The present invention is achieved through the following technical solution: an online upgrade method for the optical amplifier controller of a spaceborne laser terminal via a serial port, wherein a ground host computer is used as the upgrade initiator and a communication link is established with the optical amplifier controller of the spaceborne laser terminal via a serial port; The ground-based host computer performs new firmware parsing, packet framing, timeout retransmission, progress monitoring, and upgrade status interaction. The spaceborne laser terminal optical amplifier controller adopts a partitioned Flash architecture for operation and upgrade. During the upgrade, the pump current, DAC output, and gain parameters of the spaceborne laser terminal optical amplifier controller are latched. The ground-based host computer sends out new firmware frame by frame, and the spaceborne laser terminal optical amplifier controller writes to the upgrade partition and responds in real time. After the new firmware is transferred, an overall verification is performed. Once the verification passes, the new firmware is loaded, and the upgrade is completed after the self-test passes.
[0006] The Flash memory of the spaceborne laser terminal optical amplifier controller includes a Bootloader program guidance area, a running area, an upgrade area, a loading identifier area, and a key parameter storage area; The Bootloader program boot area is used to boot and load programs, and is responsible for device startup and upgrade management; The operating area is used as the execution area of the main control program when the equipment is working normally in orbit; The upgrade area is a temporary storage area for the new firmware; The loading identifier area is used to centrally store the control data of the corresponding partition; The key parameter storage area is used to independently store the on-orbit operation configuration parameters of the optical amplifier.
[0007] The upgrade method includes the following steps: S1. The ground-based host computer initializes and issues the upgrade start command; S2, the onboard laser terminal optical amplifier controller latches and keeps the optical parameters active; S3. The ground-based host computer performs new firmware file packetization and framing, serial port transmission and response interaction; S4. The ground-based host computer performs timeout retransmission, breakpoint resume transmission, and progress management. S5. The onboard laser terminal optical amplifier controller receives the new firmware file and performs joint verification with the ground host computer. S6. Reboot the onboard laser terminal optical amplifier controller and boot the new firmware; S7. Perform an on-orbit self-test of the new firmware and determine whether the upgrade is complete or failed based on the self-test results.
[0008] S1 includes the following sub-steps: S1-1. The ground-based host computer loads the new firmware file to be upgraded and parses the firmware length, version information, and checksum. S1-2: The spaceborne laser terminal optical amplifier controller receives the ground upgrade command through the serial port, completes the communication handshake, device ID verification, and version number comparison. If the verification fails, the upgrade is rejected and a status word is returned. If the verification passes, it enters S2.
[0009] In S2, when it is determined that an upgrade is to be entered, the current working point parameters of the optical amplifier controller of the spaceborne laser terminal are latched, the value of the DAC output register is locked, the dynamic closed-loop adjustment is paused, and the optical amplifier output does not fluctuate during the software reset and firmware switching period. Operating point parameters include pump drive current, DAC output, gain level, and optical power setting.
[0010] S3 includes the following sub-steps: S3-1. The ground host computer splits the new firmware file into data frames of fixed length. Each frame contains a frame header, device address, frame sequence number, data segment, check bit, and frame tail. S3-2. The ground host computer sends down frames sequentially, and waits for the response from the spaceborne laser terminal optical amplifier controller after sending each frame. S3-3. The spaceborne laser terminal optical amplifier controller performs a verification for each frame of data it receives. If the verification is correct, it writes the data to the Flash upgrade partition and sends a normal verification response to the ground host computer. If the verification fails, it requests the ground host computer to retransmit the current frame.
[0011] In step S4, if the ground host computer does not receive a response within a set time, it is determined to be a lost frame, and the ground host computer retransmits the current frame. During the upgrade process, the ground-based host computer displays the progress, number of lost packets, and number of retransmissions in real time.
[0012] S5 includes the following sub-steps: S5-1. After the entire package of new firmware files has been distributed, the ground host computer sends an end frame carrying the overall verification value. S5-2 The spaceborne laser terminal optical amplifier controller reads the new firmware data of the Flash upgrade partition and calculates the verification value, and compares it with the overall verification value issued by the ground host computer. If the verification matches, the upgrade partition is marked as a valid partition. If the verification does not match, the upgrade partition is cleared and the upgrade failure is reported to the ground host computer.
[0013] The spaceborne laser terminal optical amplifier controller in S6 performs a software reset without cutting off the system power. The bootloader reads the partition validity flag and prioritizes loading the new firmware in the upgrade partition; during the reset, the optical drive remains latched, and the laser link continues to work.
[0014] After the new firmware in S7 is started, a self-test is performed. If the self-test passes, the system will report the upgrade success to the ground host computer, restore closed-loop control, and read the stored parameters. If the self-test fails, the Bootloader will force a rollback to the running partition firmware and report the upgrade failure and the current partition to the ground host computer. After receiving the upgrade success or abnormal rollback status message, the ground host computer records the complete upgrade log, closes the upgrade process, and the spaceborne laser terminal optical amplifier controller resumes the normal closed-loop working mode.
[0015] Compared with the prior art, the beneficial effects of the present invention are: This application addresses the problems of existing technologies, such as the lack of intelligent control by ground-based host computers, easy interruption of laser links during spaceborne upgrades, and lack of safe rollback. It provides a method for online upgrade of spaceborne laser terminal optical amplifier controllers via serial port. Through visual control by ground-based host computers and reliable serial port transmission, it enables uninterrupted optical output and automatic rollback of abnormalities in the entire online upgrade process of spaceborne laser terminal optical amplifier controllers, thereby improving equipment maintainability and safety.
[0016] After entering the upgrade process, this application latches all operating point parameters such as pump drive current, DAC output, gain level, and optical power, suspends dynamic closed-loop adjustment, and maintains a constant optical amplification output state. Even if the device software is reset and firmware is switched, the optical drive parameters remain locked, with no drastic changes in optical power or link interruption throughout the process. The upgrade operation does not interrupt the satellite's ongoing satellite-to-ground and inter-satellite laser communication missions, making it suitable for uninterrupted on-orbit operation scenarios.
[0017] The host computer splits the firmware into standard data frames with frame headers, sequence numbers, and check bits, and verifies each frame independently. If an error occurs, it automatically requests a retransmission. It sets an acknowledgment timeout mechanism, automatically retransmits lost frames, and the number of retransmissions can be flexibly configured. It also supports pausing, resuming, and securely aborting during the upgrade process, which greatly reduces the probability of transmission failure caused by spatial electromagnetic interference and channel congestion, and reduces the time overhead of repeatedly sending firmware.
[0018] This application adopts a partitioned Flash architecture for operation and upgrade. The operation and upgrade partitions are scheduled to switch between each other. The new firmware is only written to the upgrade partition and will not overwrite the running business programs. The upgrade process does not affect the inter-satellite laser communication service. If a self-test abnormality occurs after the new firmware is started, the bootloader can automatically identify the startup failure record and force a switch back to the original firmware to complete the rollback. No manual intervention from the ground is required throughout the process. This avoids the problem of optical amplifier crashes and satellite laser communication failures caused by upgrade failures from the root, and greatly improves the on-orbit fault tolerance capability of the on-board equipment. Attached Figure Description
[0019] Figure 1 This is the control flowchart of the ground-based host computer; Figure 2 This is the online upgrade control flowchart. Detailed Implementation
[0020] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.
[0021] Reference Figure 1 and Figure 2The online serial port upgrade method for the spaceborne laser terminal optical amplifier controller proposed in this application is applied to the online serial port upgrade system for the spaceborne laser terminal optical amplifier controller. The online serial port upgrade system for the spaceborne laser terminal optical amplifier controller includes the spaceborne laser terminal optical amplifier controller. The Flash memory of the spaceborne laser terminal optical amplifier controller is divided into five independent regions with non-overlapping addresses according to function, namely the Bootloader program boot area, the running area, the upgrade area, the load identifier area, and the key parameter storage area.
[0022] The bootloader program area is used to boot and load the program, and is responsible for device startup and upgrade management. After the device is powered on or after an abnormal reset, the program in this area is run first. The bootloader reads the management data stored in the loading identifier area, determines the currently valid running partition, and jumps to the corresponding partition to execute the main control program after completing the firmware integrity verification. At the same time, it undertakes the entire process management of serial port online upgrade interaction, partition switching and fault rollback. The operating area serves as the execution area for the main control program during normal on-orbit operation of the equipment. It integrates four functional units: a serial communication module, an optical amplifier driver module, an optical amplifier closed-loop control module, and a watchdog monitoring module. The serial communication module is used to exchange uplink commands, downlink status, and firmware upgrade data with the satellite computer and the ground telemetry and control system (ground host computer). The optical amplifier driver module integrates a power management unit, an ADC signal acquisition unit, and a DAC voltage output unit, providing drive and sampling support for the optical amplifier hardware loop. The optical amplifier closed-loop control module dynamically adjusts the DAC output voltage based on the target output power sent through the serial port and the output optical power difference acquired in real time by the ADC, achieving steady-state control of the laser output power. The watchdog monitoring module monitors the running status of the main control program and the status of the entire online upgrade process in real time. If the program crashes or the upgrade process gets stuck, it will trigger a hardware reset to ensure that the equipment is not in an abnormal operating condition for a long time.
[0023] The upgrade area is used as a dedicated temporary storage area for new firmware. During normal device operation, the new firmware is written to this area and will not overwrite the program currently being executed in the running area. After the new firmware passes the full-domain integrity verification and self-test, the upgrade area and the running area will dynamically switch roles. The upgrade area will be switched to the new running area, and the original running area will become an idle upgrade area, waiting for the next upgrade.
[0024] The loading identification area centrally stores relevant control data such as the partition validity flag, device unique identifier, firmware version number, total firmware length, firmware check value, and upgrade process status flag, providing a basis for the Bootloader to execute partition determination, firmware verification, and switching logic.
[0025] The key parameter storage area independently stores the on-orbit operation configuration parameters of the optical amplifier, covering operational parameters such as pump drive current, DAC output value, gain level, and target output optical power. This partition's data remains unchanged throughout the entire process of application partition erasure and firmware upgrade. After firmware switching, the main control program directly reads the stored parameters to complete the configuration loading, ensuring uninterrupted and seamless laser output power during upgrade switching and guaranteeing continuous and stable inter-satellite laser communication links. The core reliability function of this application relies on the Bootloader, which handles the scheduling and switching of the running and upgrade partitions. The Bootloader also integrates a serial port upgrade firmware receiving and processing mechanism, effectively mitigating the risk of equipment failure due to upgrade malfunctions. This method requires no additional specialized aerospace hardware; it achieves safe upgrades solely through process and architecture optimization. With almost no increase in hardware costs, it significantly reduces the risk of on-orbit upgrade operations, extends the on-orbit lifespan of the onboard optical amplifier, and reduces satellite on-orbit maintenance costs.
[0026] In this application, the online upgrade of the spaceborne laser terminal optical amplifier controller via serial port uses a ground-based host computer as the upgrade initiator. A communication link is established between the host computer and the spaceborne laser terminal optical amplifier controller through RS422 / RS485 / UART serial ports. The host computer completes firmware parsing, packet framing, timeout retransmission, progress monitoring, and upgrade status interaction. The spaceborne laser terminal optical amplifier controller adopts a partitioned Flash architecture for operation and upgrade. During the upgrade, the pump current, DAC output, and gain parameters of the spaceborne laser terminal optical amplifier controller are latched to maintain uninterrupted laser output. The host computer sends new firmware frame by frame, and the spaceborne laser terminal optical amplifier controller writes to the upgrade partition and responds in real time. After the new firmware is transmitted, an overall verification is performed. After the verification passes, the new firmware is loaded, and the upgrade is completed after the self-test passes.
[0027] This application is based on a general RS422 / RS485 / UART serial port, requiring no modification to the satellite communication hardware; it can cover all on-orbit firmware upgrade scenarios, including satellite on-orbit testing, firmware vulnerability repair, protection strategy iteration, and optical amplification gain parameter optimization, and is compatible with various spacecraft equipped with onboard laser terminals, exhibiting strong engineering portability and versatility.
[0028] This application combines intelligent control of the ground-based host computer with the high-reliability design of the spaceborne laser terminal optical amplifier controller to achieve uninterrupted, rollback-enabled, and highly reliable online serial port upgrades of the spaceborne laser terminal optical amplifier controller in a spaceborne environment. It is suitable for satellite on-orbit testing, on-orbit maintenance, and firmware iteration scenarios.
[0029] Specifically, the online upgrade method for the serial port of the spaceborne laser terminal optical amplifier controller includes the following steps: S1. The ground host computer initializes and issues the upgrade start command.
[0030] S1 includes the following sub-steps: S1-1. The ground-based host computer loads the new firmware file to be upgraded and parses the firmware length, version information, and checksum. S1-2: The spaceborne laser terminal optical amplifier controller receives the ground upgrade command through the serial port, completes the communication handshake, device ID verification, and version number comparison. If the verification fails, the upgrade is rejected and a status word is returned. If the verification passes, it enters S2.
[0031] S2, the onboard laser terminal optical amplifier controller latches and keeps the optical parameters active.
[0032] When the upgrade process is initiated, the operating point parameters of the current onboard laser terminal optical amplifier controller are latched, dynamic closed-loop adjustment is paused, and the DAC output is kept constant to ensure that the laser output is uninterrupted and without drastic fluctuations throughout the upgrade process.
[0033] The operating point parameters of the current spaceborne laser terminal optical amplifier controller include pump drive current, DAC output, gain level, and optical power setting.
[0034] S3. Perform firmware file packet framing, serial port transmission and response interaction.
[0035] S3 includes the following sub-steps: S3-1, The ground host computer splits the complete new firmware file into data frames of fixed length. Each frame contains a frame header, device address, frame sequence number, data segment, check bit, and frame tail. S3-2. The ground host computer sends down frames sequentially, and waits for the response from the spaceborne laser terminal optical amplifier controller after sending each frame. S3-3. The spaceborne laser terminal optical amplifier controller performs a verification for each frame of data it receives. If the verification is correct, it writes the data to the Flash upgrade partition and sends a normal verification response to the ground host computer. If the verification fails, it requests the ground host computer to retransmit the current frame.
[0036] S4. The ground host computer performs timeout retransmission, breakpoint resume transmission and progress management.
[0037] If the ground host computer does not receive a response within the set time, it is determined to be a frame loss and the current frame will be automatically resent. The number of resentments can be manually configured according to the actual situation.
[0038] During the upgrade process, the ground-based host computer displays the progress, number of lost packets, and number of retransmissions in real time, and supports pausing, resuming, and secure termination midway.
[0039] S5, the spaceborne laser terminal optical amplifier controller receives the new firmware file and performs joint verification with the ground host computer.
[0040] S5 includes the following sub-steps: S5-1. After the entire package of new firmware files has been distributed, the ground host computer sends an end frame carrying the overall verification value. S5-2 The spaceborne laser terminal optical amplifier controller reads the new firmware data of the Flash upgrade partition and calculates the verification value, and compares it with the overall verification value issued by the ground host computer. If the verification matches, the upgrade partition is marked as a valid partition. If the verification does not match, the upgrade partition is cleared and the upgrade failure is reported to the ground host computer.
[0041] S6. Reboot the onboard laser terminal optical amplifier controller and boot the new firmware.
[0042] The onboard laser terminal optical amplifier controller performs a software reset without cutting off the system power; the bootloader reads the partition validity flag and prioritizes loading the new firmware in the upgrade partition; during the reset, the optical driver remains latched, and the laser link continues to work.
[0043] S7. Perform an on-orbit self-test of the new firmware and determine whether the upgrade is complete or failed based on the self-test results.
[0044] After the new firmware boots up, it performs a self-test, which includes serial communication, Flash integrity, optical drive, ADC / DAC acquisition, temperature, current, and the rationality of optical power.
[0045] If the self-test passes, it will report "upgrade successful" to the ground host computer, restore closed-loop control, and read the stored parameters. If the self-test fails, the Bootloader will force a rollback to the running partition firmware and report the upgrade failure and the current partition to the ground host computer.
[0046] After receiving the upgrade success or abnormal rollback status message, the ground host computer records the complete upgrade log, closes the upgrade process, and the spaceborne laser terminal optical amplifier controller resumes the normal closed-loop working mode.
[0047] This application is equipped with a host computer featuring a visual interactive interface that displays the device ID, firmware version, total number of upgrade frames, single frame buffer, CRC check value, upgrade progress, packet loss and recurrence count in real time; it fully records all operation, transmission and exception logs, supports custom configuration of serial port and single transmission byte length, and allows operators to monitor the upgrade status in real time. After a fault occurs, the problem node can be quickly located through the logs, reducing the difficulty of on-orbit operation and maintenance.
[0048] The above description is merely an optional embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent structural transformations made using the content of the present invention under the concept of the present invention, or direct / indirect applications in other related technical fields, are included within the patent protection scope of the present invention.
Claims
1. A method for online upgrade of the serial port of a spaceborne laser terminal optical amplifier controller, characterized in that, The ground-based host computer serves as the upgrade initiator, and a communication link is established with the optical amplifier controller of the spaceborne laser terminal via a serial port. The ground-based host computer performs new firmware parsing, packet framing, timeout retransmission, progress monitoring, and upgrade status interaction. The spaceborne laser terminal optical amplifier controller adopts a partitioned Flash architecture for operation and upgrade. During the upgrade, the pump current, DAC output, and gain parameters of the spaceborne laser terminal optical amplifier controller are latched. The ground-based host computer sends out new firmware frame by frame, and the spaceborne laser terminal optical amplifier controller writes to the upgrade partition and responds in real time. After the new firmware is transferred, an overall verification is performed. Once the verification passes, the new firmware is loaded, and the upgrade is completed after the self-test passes.
2. The online upgrade method for the serial port of the spaceborne laser terminal optical amplifier controller according to claim 1, characterized in that, The Flash memory of the spaceborne laser terminal optical amplifier controller includes a Bootloader program guidance area, a running area, an upgrade area, a loading identifier area, and a key parameter storage area; The Bootloader program boot area is used to boot and load programs, and is responsible for device startup and upgrade management; The operating area is used as the execution area of the main control program when the equipment is working normally in orbit; The upgrade area is a temporary storage area for the new firmware; The loading identifier area is used to centrally store the control data of the corresponding partition; The key parameter storage area is used to independently store the on-orbit operation configuration parameters of the optical amplifier.
3. The online upgrade method for the serial port of the spaceborne laser terminal optical amplifier controller according to claim 2, characterized in that, The upgrade method includes the following steps: S1. The ground-based host computer initializes and issues the upgrade start command; S2, the onboard laser terminal optical amplifier controller latches and keeps the optical parameters active; S3. The ground-based host computer performs new firmware file packetization and framing, serial port transmission and response interaction; S4. The ground-based host computer performs timeout retransmission, breakpoint resume transmission, and progress management. S5. The spaceborne laser terminal optical amplifier controller receives the new firmware file and performs joint verification with the ground host computer. S6. Reboot the onboard laser terminal optical amplifier controller and boot the new firmware; S7. Perform an on-orbit self-test of the new firmware and determine whether the upgrade is complete or failed based on the self-test results.
4. The online upgrade method for the serial port of the spaceborne laser terminal optical amplifier controller according to claim 3, characterized in that, S1 includes the following sub-steps: S1-1. The ground-based host computer loads the new firmware file to be upgraded and parses the firmware length, version information, and checksum. S1-2: The spaceborne laser terminal optical amplifier controller receives the ground upgrade command through the serial port, completes the communication handshake, device ID verification, and version number comparison. If the verification fails, the upgrade is rejected and a status word is returned. If the verification passes, it enters S2.
5. The online upgrade method for the serial port of the spaceborne laser terminal optical amplifier controller according to claim 3, characterized in that, In S2, when it is determined that an upgrade is to be entered, the current working point parameters of the optical amplifier controller of the spaceborne laser terminal are latched, the value of the DAC output register is locked, the dynamic closed-loop adjustment is paused, and the optical amplifier output does not fluctuate during the software reset and firmware switching period. Operating point parameters include pump drive current, DAC output, gain level, and optical power setting.
6. The online upgrade method for the serial port of the spaceborne laser terminal optical amplifier controller according to claim 3, characterized in that, S3 includes the following sub-steps: S3-1. The ground host computer splits the new firmware file into data frames of fixed length. Each frame contains a frame header, device address, frame sequence number, data segment, check bit, and frame tail. S3-2. The ground host computer sends down frames sequentially, and waits for the response from the spaceborne laser terminal optical amplifier controller after sending each frame. S3-3. The spaceborne laser terminal optical amplifier controller performs a verification for each frame of data it receives. If the verification is correct, it writes the data to the Flash upgrade partition and sends a normal verification response to the ground host computer. If the verification fails, it requests the ground host computer to retransmit the current frame.
7. The online upgrade method for the serial port of the spaceborne laser terminal optical amplifier controller according to claim 3, characterized in that, In step S4, if the ground host computer does not receive a response within a set time, it is determined to be a frame loss, and the ground host computer retransmits the current frame. During the upgrade process, the ground-based host computer displays the progress, number of lost packets, and number of retransmissions in real time.
8. The online upgrade method for the serial port of the spaceborne laser terminal optical amplifier controller according to claim 3, characterized in that, S5 includes the following sub-steps: S5-1. After the entire package of new firmware files has been distributed, the ground host computer sends an end frame carrying the overall verification value. S5-2, the spaceborne laser terminal optical amplifier controller reads the new firmware data of the Flash upgrade partition and calculates the verification value, and compares it with the overall verification value issued by the ground host computer. If the verification matches, the upgrade partition is marked as a valid partition; if the verification does not match, the upgrade partition is cleared and an upgrade failure is reported to the ground host computer.
9. The online upgrade method for the serial port of the spaceborne laser terminal optical amplifier controller according to claim 3, characterized in that, The spaceborne laser terminal optical amplifier controller in S6 performs a software reset without cutting off the system power. The bootloader reads the partition validity flag and prioritizes loading the new firmware in the upgrade partition; during the reset, the optical drive remains latched, and the laser link continues to work.
10. The online upgrade method for the serial port of the spaceborne laser terminal optical amplifier controller according to claim 3, characterized in that, After the new firmware in S7 is started, a self-test is performed. If the self-test passes, the system will report the upgrade success to the ground host computer, restore closed-loop control, and read the stored parameters. If the self-test fails, the Bootloader will force a rollback to the running partition firmware and report the upgrade failure and the current partition to the ground host computer. After receiving the upgrade success or abnormal rollback status message, the ground host computer records the complete upgrade log, closes the upgrade process, and the spaceborne laser terminal optical amplifier controller resumes the normal closed-loop working mode.
