Design method for executing different initializations by using alternating current power supply system software to identify reset source

By identifying the reset source in the aviation electrical system and performing different initialization operations, the problem of unstable power supply in the AC power system during aircraft flight was solved, achieving stable power supply under specific reset conditions and avoiding safety risks caused by power outages.

CN121900603APending Publication Date: 2026-04-21SHAANXI AVIATION ELECTRICAL
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHAANXI AVIATION ELECTRICAL
Filing Date
2025-12-30
Publication Date
2026-04-21

AI Technical Summary

Technical Problem

During the initialization process of existing aviation electrical system software, it is impossible to maintain the power supply status of the AC power system while the aircraft is in flight, resulting in power outages caused by abnormal resets.

Method used

By setting four reset flags and a system status register in the AC power system software, the reset source is identified and different initialization operations are performed, including power-on self-test, initialization of DSP chip I/O port status, enabling non-maskable interrupts, global variable initialization, and external port settings, distinguishing between power-on, generator control switch reset, watchdog reset, and illegal address access reset.

Benefits of technology

While the aircraft is in flight, it effectively maintains a stable power supply to the AC power system, avoiding the risk of power outages caused by watchdog resets or abnormal address resets, thus ensuring aircraft safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121900603A_ABST
    Figure CN121900603A_ABST
Patent Text Reader

Abstract

The invention belongs to the field of aviation electric power system generator controllers, and particularly relates to a design method for executing different initializations by an alternating current power supply system software identification reset source, which comprises the following steps: setting four reset marks as first fixed values in the interrupt processing of an alternating current power supply system software watchdog; in alternating current power supply system software generator control switch processing, when the state of the generator control switch is OFF for a first time, the state of the generator control switch is turned ON, a second time is delayed, and four reset marks are set as second fixed values; when alternating current power supply system software needs to execute initialization, four reset sources are identified. When an airplane is in an air flight state and an alternating current power supply system supplies power, if a watchdog reset fault or an access abnormal address reset fault occurs, the system only carries out re-initialization operation on partial global variables, so that the power supply state before reset is effectively maintained. And the alternating current power supply system can still supply power continuously and stably under the condition of specific type of reset.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of generator controllers for aviation power systems, and specifically relates to a design method for AC power systems to identify reset sources and perform different initializations. Background Technology

[0002] With the continuous development of aviation power technology, the importance of power system safety is becoming increasingly prominent. Aircraft rely on power systems to provide a stable power supply for various onboard loads. Therefore, it is essential to ensure the power supply stability of the power system and avoid short-term power outages caused by problems such as watchdog resets or abnormal address resets.

[0003] However, currently, the initialization process of aviation electrical systems only differentiates between two scenarios: power-on and generator control switch reset. Upon power-on, the system initializes the DSP chip I / O port states, enables non-maskable interrupts, initializes global variables, sets the safety state of external ports, and performs a power-on self-test. When the generator control switch is reset, the power-on self-test is not performed, and other initialization operations are the same as for power-on. However, when the aircraft is in flight, if an abnormal address reset or watchdog reset occurs, the system will still perform the same initialization operations as for power-on, failing to maintain the current AC power supply status. This approach leads to a power outage until the AC power system regenerates and is reconnected to the grid.

[0004] Therefore, how to achieve a more effective initialization design is a problem that needs to be solved. Summary of the Invention

[0005] To address the aforementioned issues, this application provides a design method for AC power system software to identify reset sources and perform different initializations, thereby resolving the problem that the initialization process of existing aviation power system software cannot maintain the current power supply state of the AC power system.

[0006] The technical solution of this application is: a design method for AC power system software to identify reset sources and perform different initializations, including:

[0007] In the watchdog interrupt handling of the AC power system software, four reset flags are set as the first set value;

[0008] In the AC power system software generator control switch processing, after the generator control switch is in the OFF state for a first time, the generator control switch state changes to ON, and after a second delay, four reset flags are set as the second set value.

[0009] When the AC power system software needs to perform initialization, it identifies four types of reset sources:

[0010] If the system status register is not reset and the number in the fixed address is not the third fixed value, then the AC power system software is considered to have confirmed that the reset source is power-on and writes the third fixed value into the fixed address.

[0011] If the system status register is reset and the reset flag of the four reset sources is not the second set value, then the reset source is confirmed to be the generator control switch reset.

[0012] If the system status register is reset and the four reset flags are set to the first value, then the reset source is confirmed to be a watchdog reset, and only some global variables are initialized.

[0013] If the system status register is accessed from an illegal address, the reset source is confirmed to be an illegal address access reset, and only some global variables are initialized.

[0014] Preferably, if the system state is not reset, reset and illegal address access are not true, then the reset source is considered to be an abnormal reset source, and the AC power system software reset source is considered to be power-on, and the power-on self-test, initialization of DSP chip I / O port state, enabling non-maskable interrupt, global variable initialization, and external port is set to safe state are executed.

[0015] Preferably, when the reset source is confirmed to be the generator control switch reset, the DSP chip I / O port state is initialized, non-maskable interrupts are enabled, global variables are initialized, and external ports are set to a safe state.

[0016] Preferably, when the AC power system software confirms that the reset source is power-on and writes a third fixed value to the fixed address, it performs power-on self-test, initializes the DSP chip I / O port state, enables non-maskable interrupts, initializes global variables, and sets the external ports to a safe state.

[0017] Preferably, the first value is 0x5678, the second value is 0x1234, and the third value is 0xF663.

[0018] Preferably, the initialization design method is characterized by a first time of 200ms and a second time of 98ms.

[0019] The design method of identifying reset sources and performing different initializations in the AC power system software of this application has the following advantages:

[0020] When the aircraft is in flight and the AC power system is supplying power, if a watchdog reset or access an abnormal address reset occurs, the system will only reinitialize some global variables, effectively maintaining the power supply state before the reset. This method ensures that the AC power system can continue to supply power stably under certain types of reset conditions, thereby avoiding safety risks caused by power outages. Attached Figure Description

[0021] Figure 1 This application provides a schematic diagram illustrating the different initialization implementation processes performed by the module that identifies the reset source.

[0022] Figure 2 A schematic diagram illustrating the implementation process of setting the reset flag in the watchdog interrupt handling of this application;

[0023] Figure 3 A schematic diagram illustrating the process of setting a reset flag for the generator control switch in this application. Detailed Implementation

[0024] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions in the embodiments of this application will be described in more detail below with reference to the accompanying drawings. In the drawings, the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The described embodiments are only some, not all, of the embodiments of this application. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application. The embodiments of this application will be described in detail below with reference to the accompanying drawings.

[0025] The first aspect of this application provides a design method for an AC power system to identify the reset source and perform different initializations, ensuring that when the aircraft is in flight, if a fault such as a watchdog reset or abnormal address reset occurs, the system can perform only the necessary global variable initializations to maintain the original power supply state and avoid affecting flight safety due to power failure.

[0026] like Figures 1-3 Specifically, it includes the following steps:

[0027] Step 1: In the watchdog interrupt handling of the AC power system software, set four reset flags to the first set value.

[0028] Step 2, in the AC power system software generator control switch processing, after the generator control switch is in the OFF state for a first time, the generator control switch state changes to ON, and after a second delay, four reset flags are set to the second set value.

[0029] Preferably, the first time interval is 200ms and the second time interval is 98ms.

[0030] Step 3: When the AC power system software needs to perform initialization, it first identifies four types of reset sources.

[0031] Specifically:

[0032] If the system status register is not set to reset and the value at the fixed address is not the third set value, then the AC power system software is considered to have confirmed that the reset source is power-on, and writes the third set value to the fixed address. A complete power-on self-test is performed to ensure that the hardware and software are in normal working order; this lays the foundation for stable system operation through comprehensive initialization.

[0033] The first value is 0x5678, the second value is 0x1234, and the third value is 0xF663.

[0034] Preferably, when the AC power system software confirms that the reset source is power-on and writes a third fixed value to the fixed address, it performs power-on self-test, initializes the DSP chip I / O port state, enables non-maskable interrupts, initializes global variables, and sets the external ports to a safe state.

[0035] If the system status register is reset and the reset flag of the four reset sources is not the second set value, then the reset source is confirmed to be the generator control switch reset.

[0036] Preferably, when the reset source is confirmed to be the generator control switch reset, the DSP chip I / O port states are initialized, non-maskable interrupts are enabled, global variables are initialized, and external ports are set to a safe state. The power-on self-test is skipped when the generator control switch resets, shortening the system recovery time and maintaining other necessary initialization operations to ensure functional integrity.

[0037] If the system status register is reset and the four reset flags are set to the first value, then the reset source is confirmed to be a watchdog reset, and only some global variables are initialized.

[0038] If the system status register is accessed from an illegal address, the reset source is confirmed to be an illegal address access reset, and only some global variables are initialized.

[0039] If none of the above conditions are met, then the abnormal reset source is considered to be power-on. The AC power system software reset source is considered to be power-on, and the following steps are performed: power-on self-test, initialization of DSP chip I / O port status, enabling of non-maskable interrupts, initialization of global variables, and external ports are set to safe state.

[0040] It provides a default handling mechanism for abnormal reset sources. When the specific reset source cannot be identified, it executes the safest power-on reset procedure to ensure that the system can be restored to a known safe state under any abnormal circumstances.

[0041] That is to say:

[0042] When the AC power system software is powered on and a watchdog interrupt is triggered, the reset source is identified as a watchdog reset, and only some global variables are initialized; the AC power system remains powered on. When the AC power system software is not powered on and a watchdog interrupt is triggered, the reset source is identified as a watchdog reset, and only some global variables are initialized; the AC power system software remains unpowered.

[0043] When the AC power system software is in a powered-on state, if an access exception address reset is triggered, the reset source is identified as an access exception address reset, and only some global variables are initialized; the AC power system software remains powered. When the AC power system software is in a powered-off state, if a watchdog interrupt is triggered, the reset source is identified as a watchdog reset, and only some global variables are initialized; the AC power system software remains powered-off.

[0044] By setting four reset flags and comprehensively analyzing the system status register, it is possible to accurately distinguish between four situations: power-on reset, generator control switch reset, watchdog reset, and illegal address access reset. Multi-condition judgment logic is adopted to improve the accuracy and reliability of reset source identification. Only some global variables are initialized during watchdog reset and illegal address access reset, effectively maintaining the system power supply status.

[0045] In summary, this application has the following advantages:

[0046] When the aircraft is in flight and the AC power system is supplying power, if a watchdog reset or access an abnormal address reset occurs, the system will only reinitialize some global variables, effectively maintaining the power supply state before the reset. This method ensures that the AC power system can continue to supply power stably under certain types of reset conditions, thereby avoiding safety risks caused by power outages.

[0047] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A design method for an AC power system to identify reset sources and execute different initializations, characterized in that, include: In the watchdog interrupt handling of the AC power system software, four reset flags are set as the first set value; In the AC power system software generator control switch processing, after the generator control switch is in the OFF state for a first time, the generator control switch state changes to ON, and after a second delay, four reset flags are set as the second set value. When the AC power system software needs to perform initialization, it identifies four types of reset sources: If the system status register is not reset and the number in the fixed address is not the third fixed value, then the AC power system software is considered to have confirmed that the reset source is power-on and writes the third fixed value into the fixed address. If the system status register is reset and the reset flag of the four reset sources is not the second set value, then the reset source is confirmed to be the generator control switch reset. If the system status register is reset and the four reset flags are set to the first value, then the reset source is confirmed to be a watchdog reset, and only some global variables are initialized. If the system status register is accessed from an illegal address, the reset source is confirmed to be an illegal address access reset, and only some global variables are initialized.

2. The design method for identifying reset sources and executing different initializations in an AC power system as described in claim 1, characterized in that, If the system state is not reset, reset, and illegal address access are all invalid, then the reset source is considered to be an abnormal reset source. In this case, the AC power system software reset source is considered to be power-on, and the following steps are performed: power-on self-test, initialization of DSP chip I / O port state, enabling non-maskable interrupts, initialization of global variables, and setting external ports to safe state.

3. The design method for identifying reset sources and executing different initializations in an AC power system as described in claim 1, characterized in that, When the reset source is confirmed to be the generator control switch reset, the DSP chip I / O port state is initialized, non-maskable interrupts are enabled, global variables are initialized, and external ports are set to safe state.

4. The design method for identifying reset sources and executing different initializations in an AC power system as described in claim 1, characterized in that, When the AC power system software confirms that the reset source is power-on and writes the third fixed value to the fixed address, it performs power-on self-test, initializes the DSP chip I / O port state, enables non-maskable interrupts, initializes global variables, and sets the external ports to a safe state.

5. The design method for identifying reset sources and executing different initializations in an AC power system as described in claim 1, characterized in that, The first value is 0x5678, the second value is 0x1234, and the third value is 0xF663.

6. The design method for identifying reset sources and executing different initializations in an AC power system as described in claim 1, characterized in that, The first time interval is 200ms, and the second time interval is 98ms.