A server remote upgrade reset circuit and method

CN122411735BActive Publication Date: 2026-10-30SHANGHAI HONGJUN RUITONG MICROELECTRONICS TECHNOLOGY CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202610865119.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-06-16
Publication Date
2026-10-30
Estimated Expiration
2046-06-16

AI Technical Summary

Technical Problem

目前,通用服务器控制器升级后的生效方式主要有两种:一种是手动断开电源供应器(PowerSupply Unit,PSU)的交流电以重启控制器,但该方式需要人工手动现场操作,无法实现远程升级重启;另一种是控制器使用自生效模式,但该方式需要控制器内部存储控制器部分状态,软件开发工作量较大,且升级前后的版本差异不能过大,否则容易引发错误误报

Benefits of technology

本申请提供的服务器远程升级重置电路包括:控制器、电源调节器和下电重启模块。其中,电源调节器的输入端和下电重启模块的第一端均用于连接电源供应器的输出端;电源调节器的使能端和输出端分别连接下电重启模块的第二端和控制器的供电端;下电重启模块的第一控制端和第二控制端分别连接电源调节器的电源正常端和控制器的第一端。当控制器升级完成后,控制器用于向下电重启模块输出第一电平。下电重启模块用于在接收到第一电平时,将电源调节器的使能端置为无效状态,使控制器下电,并在延迟预设时间后,将电源调节器的使能端置为有效状态,使控制器重新上电进行配置加载,以使新配置生效。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122411735B_ABST
    Figure CN122411735B_ABST
Patent Text Reader

Abstract

The application provides a server remote upgrade reset circuit and method, and relates to the technical field of servers.The circuit comprises a controller, a power regulator and a power-off restart module.The input end of the power regulator and the first end of the power-off restart module are both used for connecting the output end of a power supply.The enable end and the output end of the power regulator are respectively connected with the second end of the power-off restart module and the power supply end of the controller.The first control end and the second control end of the power-off restart module are respectively connected with the power normal end of the power regulator and the first end of the controller.When the controller upgrade is completed, the controller is used for outputting a first level to the power-off restart module.The power-off restart module is used for setting the enable end of the power regulator to an invalid state when the first level is received, powering off the controller, and setting the enable end of the power regulator to an effective state after a preset delay time, so that the controller is powered on again for configuration loading, so as to make the new configuration effective.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of server technology, and more specifically, to a server remote upgrade and reset circuit and method. Background Technology

[0002] After an upgrade, a reboot is required for the upgrade of a general-purpose server controller (such as a complex programmable logic device) to take effect. Currently, there are two main ways to make the upgrade of a general-purpose server controller take effect: one is to manually disconnect the AC power supply (Power Supply Unit, PSU) to reboot the controller, but this method requires manual on-site operation and cannot achieve remote upgrade and reboot; the other is for the controller to use a self-enabling mode, but this method requires the controller to internally store some of its state, which requires a large amount of software development work, and the version difference before and after the upgrade cannot be too large, otherwise it is easy to cause errors and false alarms.

[0003] In summary, how to achieve reliable restart and activation of server controller upgrades without manual power-off or relying on complex self-activation mechanisms is a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0004] The purpose of this application is to provide a remote upgrade and reset circuit and method for servers, so as to achieve reliable restart and effectiveness of server controller upgrades without manual power-off or relying on complex self-effective mechanisms.

[0005] To achieve the above objectives, the technical solution adopted in this application is as follows: On the one hand, this application provides a server remote upgrade and reset circuit, including: a controller, a power regulator, and a power-down restart module; The input terminal of the power regulator and the first terminal of the power-down restart module are both used to connect to the output terminal of the power supply; the enable terminal and the output terminal of the power regulator are respectively connected to the second terminal of the power-down restart module and the power supply terminal of the controller; the first control terminal and the second control terminal of the power-down restart module are respectively connected to the power normal terminal of the power regulator and the first terminal of the controller. After the controller upgrade is completed, the controller is used to output a first level to the power-down restart module; The power-down restart module is used to disable the enable terminal of the power regulator when it receives the first level, thereby powering down the controller. After a preset delay, it enables the enable terminal of the power regulator, thereby powering up the controller again for configuration loading.

[0006] Furthermore, the power-down restart module includes a first resistor, a second resistor, a first switching transistor, a second switching transistor, a first charging / discharging unit, and a second charging / discharging unit; the first level is a high level, and both the first and second switching transistors are N-type switching transistors; One end of the first resistor is connected to the output terminal of the power supply; the other end of the first resistor, one end of the second resistor, the first terminal of the first switching transistor, and the enable terminal of the power regulator are all connected to the first node, and the other end of the second resistor is grounded; the second terminal of the first switching transistor is connected to the first terminal of the second switching transistor, and the second terminal of the second switching transistor is grounded; the control terminals of the first and second switching transistors are respectively connected to one end of the first and second charging / discharging units, and the other ends of the first and second charging / discharging units are respectively connected to the power normal terminal of the power regulator and the first terminal of the controller. When the enable terminal of the power regulator is in an active state, its normal power terminal outputs a high level, the first switch is turned on, and the first charging and discharging unit charges rapidly. When the enable terminal of the power regulator changes from an active state to an inactive state, its normal power supply terminal changes from a high level to a low level, and the first charging and discharging unit slowly discharges to delay the turn-off of the first switching transistor. The first terminal of the controller outputs a low level by default, and only outputs a high level when the controller needs to be reset after the upgrade is completed; When the first terminal of the controller outputs a high level, the second switch is turned on, and the second charging and discharging unit charges rapidly; When the first terminal of the controller changes from a high level to a low level, the second charging and discharging unit slowly discharges to delay the turn-off of the second switching transistor.

[0007] Furthermore, the first charging and discharging unit includes a first capacitor unit, a first diode, and a third resistor; one end of the first capacitor unit is grounded, and the other end of the first capacitor unit is respectively connected to the control terminal of the first switching transistor, the cathode of the first diode, and one end of the third resistor; the anode of the first diode and the other end of the third resistor are both connected to the normal power supply terminal of the power regulator. The second charging and discharging unit includes a second capacitor unit, a second diode, and a fourth resistor; one end of the second capacitor unit is grounded, and the other end of the second capacitor unit is connected to the control terminal of the second switching transistor, the cathode of the second diode, and one end of the fourth resistor, respectively; the anode of the second diode and the other end of the fourth resistor are both connected to the first terminal of the controller.

[0008] Furthermore, the server remote upgrade and reset circuit also includes an OR gate, a configuration result detection module, and a configuration switching module; The first and second terminals of the configuration result detection module are respectively connected to the normal power supply terminal of the power regulator and the second terminal of the controller; the first and second input terminals of the OR gate are respectively connected to the first terminal of the controller and the output terminal of the configuration result detection module, and the output terminal of the OR gate is connected to the second control terminal of the power-down restart module; the output terminal of the configuration result detection module is also connected to the control terminal of the configuration switching module, and the output terminal of the configuration switching module is connected to the external configuration terminal of the controller; The controller has a master configuration image file burned into it, and the configuration switching module stores a backup configuration image file. When the controller is powered on again, the controller reads and loads the master configuration image file from its internal memory; When the controller configuration is successfully loaded and the loaded version content is correct, the second terminal of the controller outputs a main configuration success signal, the output terminal of the configuration result detection module outputs a second level, and the server operates normally; When the controller configuration fails to load, or the loaded version content is incorrect, the second terminal of the controller outputs a main configuration failure signal, and the output terminal of the configuration result detection module outputs a first level to trigger the configuration switching module to switch the configuration path of the controller. At the same time, it triggers the power-down restart module to power down and reset the controller again, so that the controller can read and load the backup configuration image file from the configuration switching module after powering on again.

[0009] Furthermore, the configuration result detection module includes a first rising edge delay unit, a detection unit, and a third switching transistor; the first level is a high level, the second level is a low level, and the third switching transistor is an N-type switching transistor; The power supply and enable terminals of the first rising edge delay unit are both connected to the output terminal of the power regulator, and the detection terminal of the first rising edge delay unit is connected to the normal power supply terminal of the power regulator; the output terminal of the first rising edge delay unit, the first terminal of the third switch, the second input terminal of the OR gate, and the control terminal of the configuration switching module are all connected to the second node; the second terminal of the third switch is grounded, the input terminal of the detection unit is connected to the second terminal of the controller, and the output terminal of the detection unit is connected to the control terminal of the third switch. The first rising edge delay unit is used to output a high level after a first preset time when a rising edge signal is detected; wherein, the first preset time is greater than the configuration loading time of the controller; When the second terminal of the controller outputs a main configuration success signal, the detection unit outputs a high level, the third switch is turned on, and the level at the second node is low. When the controller outputs a main configuration failure signal at its second terminal, the detection unit outputs a low level, the third switch is turned off, and the level at the second node is high.

[0010] Furthermore, the configuration switching module includes a second rising edge delay unit, a third rising edge delay unit, a fourth switch, a fifth switch, a sixth switch, and a flash memory chip; the flash memory chip stores the backup configuration image file, and the fourth, fifth, and sixth switches are all N-type switches; The power supply, enable, and detection terminals of the second rising edge delay unit are all connected to the output terminal of the power supply. The detection terminal of the second rising edge delay unit is also connected to the first terminal of the fourth switch, the second terminal of the fourth switch is grounded, and the control terminal of the fourth switch is connected to the second node. The output terminal of the second rising edge delay unit is connected to the control terminal of the fifth switch, and the second terminal of the fifth switch is grounded. The power supply, enable, and detection terminals of the third rising edge delay unit are all connected to the output terminal of the power supply. The output terminal of the third rising edge delay unit, the first terminal of the fifth switch, and the control terminal of the sixth switch are all connected to the third node. The first terminal of the sixth switch is connected to the flash memory chip, and the second terminal of the sixth switch is connected to the external configuration terminal of the controller. The third rising edge delay unit is used to output a high level after delaying for a first preset time when a rising edge signal is detected; The second rising edge delay unit is used to output a high level after a second preset time when a rising edge signal is detected; wherein, the second preset time is greater than the first preset time plus the controller's configuration loading time.

[0011] Furthermore, the main configuration success signal is high level, and the main configuration failure signal is low level; the detection unit includes a fifth resistor, one end of which is connected to the second terminal of the controller, and the other end of which is connected to the control terminal of the third switch. Alternatively, the main configuration success signal is a continuous square wave signal, and the main configuration failure signal is a constant level; the detection unit includes a watchdog chip, the power supply terminal of the watchdog chip is connected to the output terminal of the power regulator, the input terminal of the watchdog chip is connected to the second terminal of the controller, and the reset output terminal of the watchdog chip is connected to the control terminal of the third switching transistor.

[0012] Furthermore, the server remote upgrade and reset circuit also includes a configuration failure feedback module, which includes an LED, a seventh switch, a sixth resistor, and a seventh resistor; the seventh switch is an N-type switch. One end of the sixth resistor is connected to the third terminal of the controller and the control terminal of the seventh switch. The other end of the sixth resistor is connected to the anode of the LED. The cathode of the LED and the second terminal of the seventh switch are both grounded. The first terminal of the seventh switch is connected to one end of the seventh resistor. The other end of the seventh resistor is connected to the output terminal of the power regulator. The first terminal of the seventh switch is also used to connect to the processor. When the controller loads the main configuration image file, the third terminal of the controller outputs a low level; When the controller reloads the backup configuration image file, the third terminal of the controller outputs a high level, the LED lights up, the seventh switch is turned on, and the processor receives a low level to remotely upgrade to the correct version again.

[0013] Furthermore, the server remote upgrade and reset circuit also includes a first short circuit, a second short circuit, an eighth resistor, and a ninth resistor; The second pin of the first short circuit is connected to the first control terminal of the power-down restart module, and the third pin of the first short circuit is grounded through the eighth resistor; the second pin of the second short circuit is connected to the control terminal of the configuration switching module, and the third pin of the second short circuit is grounded through the ninth resistor. When the second pin and the third pin of the first short circuit are shorted, the first control terminal of the power-down restart module is pulled low, and the power-down restart function is turned off. When the second pin of the second short circuit is shorted to the third pin, the control terminal of the configuration switching module is pulled low, and the configuration path switching function is turned off.

[0014] On the other hand, this application also provides a method for remotely upgrading and resetting a server, applied to a server remote upgrade and reset circuit as described in any of the foregoing embodiments, the method comprising: Once the controller upgrade is complete, the controller outputs a first level to the power-down restart module; When the power-down restart module receives the first level, it sets the enable terminal of the power regulator to an invalid state, causing the controller to power down. After a preset delay, it sets the enable terminal of the power regulator to an active state, causing the controller to power up again for configuration loading.

[0015] Compared with the prior art, this application has the following advantages: The server remote upgrade and reset circuit provided in this application includes a controller, a power regulator, and a power-down restart module. The input terminal of the power regulator and the first terminal of the power-down restart module are both connected to the output terminal of the power supply. The enable terminal and output terminal of the power regulator are respectively connected to the second terminal of the power-down restart module and the power supply terminal of the controller. The first and second control terminals of the power-down restart module are respectively connected to the normal power supply terminal of the power regulator and the first terminal of the controller. After the controller upgrade is completed, the controller outputs a first level to the power-down restart module. Upon receiving the first level, the power-down restart module disables the enable terminal of the power regulator, powering down the controller. After a preset delay, it enables the enable terminal of the power regulator, powering up the controller to reload the configuration and make the new configuration effective.

[0016] The entire process described above is completed automatically by the hardware circuitry, eliminating the need for manual disconnection of the AC power supply on-site. This enables remote reset of the server controller, completely resolving the limitation of traditional solutions that require manual on-site configuration resetting after upgrades. Furthermore, since the entire restart process does not rely on complex self-enabling logic within the controller, the differences between the two versions of the controller before and after the upgrade are not subject to excessive constraints, requiring almost no additional software development work. In addition, this application incorporates sufficient power-down time to ensure that all states related to the controller and server are restored to their default states, avoiding false alarms caused by incomplete resets and improving the reliability of remote upgrades and resets of the server controller. Attached Figure Description

[0017] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of 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.

[0018] Figure 1 This is one of the structural schematic diagrams of a server remote upgrade and reset circuit provided in this application; Figure 2 A circuit diagram of a power-down restart module provided in this application; Figure 3 A timing diagram for a power-down restart function is provided in this application; Figure 4 This application provides a second schematic diagram of a server remote upgrade and reset circuit. Figure 5 A circuit diagram of a configuration result detection module and a configuration switching module provided in this application; Figure 6 A circuit diagram of a detection unit provided in this application; Figure 7 A timing diagram for a configuration failure reset function provided in this application; Figure 8 A circuit diagram illustrating a configuration failure feedback module provided in this application; Figure 9This is a flowchart illustrating a method for remotely upgrading and resetting a server, as provided in this application.

[0019] Icons: 10 - Server remote upgrade and reset circuit; 20 - Power supply; 30 - Processor; 100 - Controller; 200 - Power regulator; 300 - Power-down restart module; 310 - First charging / discharging unit; 311 - First capacitor unit; 320 - Second charging / discharging unit; 321 - Second capacitor unit; 400 - Configuration result detection module; 410 - Detection unit; 420 - First rising edge delay unit; 500 - Configuration switching module; 510 - Second rising edge delay unit; 520 - Third rising edge delay unit; 600 - Configuration failure feedback module; U1 - OR gate; U2 - First rising edge delay chip; U3 - Second rising edge delay chip; U4 - Third rising edge delay chip; U5 - Flash memory chip; U6 - Watchdog chip; U7 - Tri-state buffer; Q1 - First switch; Q2 - Second switch; Q3 - Third switch; Q4 - Fourth switch; Q5 - Fifth switch; Q6 - Sixth switch; Q7 - Seventh switch; D1 - First diode; D2 - Second diode; D3 - LED; J1 - First short circuit; J2 - Second short circuit; J3 - JTAG debugger interface; N1 - First node; N2 - Second node; N3 - Third node. Detailed Implementation

[0020] The technical solutions of the embodiments of this application 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 this application, and not all of the embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of 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.

[0021] It should be noted that relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus.

[0022] As described in the background section, there are currently two main ways in which the upgrade of a general-purpose server controller takes effect: (1) Manually disconnect the AC power supply to restart the controller. Since the controller's power domain is located under the first standby power supply (STBY) of the server board, reconnecting the standby power supply will restart the controller. However, the power supply of this standby power supply cannot be controlled and can only be achieved by manually disconnecting the AC power supply. This method requires manual on-site operation and cannot achieve remote upgrade and restart.

[0023] (2) The controller uses a self-activation mode. The baseboard management controller configures the controller mode through the interface, so that the controller can automatically restart after saving some of the controller's state information internally. However, this method requires the controller to store some of the controller's state internally, which results in a large amount of software development work, and the version difference before and after the upgrade cannot be too large, otherwise it is easy to cause errors and false alarms.

[0024] Therefore, how to achieve reliable restart and activation of server controller upgrades without manual power-off or relying on complex self-activation mechanisms is a technical problem that urgently needs to be solved by those skilled in the art.

[0025] To resolve the above technical issues, please refer to Figure 1 This application provides a server remote upgrade and reset circuit 10, including: a controller 100, a power regulator 200, and a power-down restart module 300. Optionally, the controller 100 may be a CPLD (Complex Programmable Logic Device) or an FPGA (Field-Programmable Gate Array) in the server.

[0026] The input terminal (VIN terminal) of the power regulator 200 and the first terminal of the power-down restart module 300 are both used to connect to the output terminal of the power supply 20. The enable terminal (EN terminal) and the output terminal (Vout terminal) of the power regulator 200 are respectively connected to the second terminal of the power-down restart module 300 and the power supply terminal (VDD terminal) of the controller 100. The first control terminal and the second control terminal of the power-down restart module 300 are respectively connected to the power normal terminal (PG terminal) of the power regulator 200 and the first terminal (IO1 terminal) of the controller 100.

[0027] Optionally, the power supply 20 is used to convert AC power into 12V DC output after AC power is connected. The power regulator 200 may be a DC / DC converter used to convert the 12V DC output from the power supply 20 into 3.3V standby power (i.e., P3v3_STBY) to power the controller 100 when its enable terminal is active.

[0028] When the controller 100 needs to be restarted after the remote upgrade is completed, the first terminal of the controller 100 is used to output the first level to the second control terminal of the power-down restart module 300.

[0029] The power-down restart module 300 is used to disable the enable terminal of the power regulator 200 when it receives the first level, so that the controller 100 is powered down, and after a preset delay, disable the enable terminal of the power regulator 200, so that the controller 100 is powered on again to load the configuration so that the new configuration takes effect.

[0030] Understandably, when the power-down restart module 300 receives the first level output by the controller 100 after the upgrade is complete, it first disables the enable pin of the power regulator 200, causing the controller 100 to power down. A preset delay time is used to ensure that the power-down duration is sufficient for all registers, caches, and intermediate states within the controller 100 to be reset to their default values. In other words, this application ensures that the controller 100 is completely powered down by delaying the preset time. After the delay time expires, the power-down restart module 300 then enables the power regulator 200 again, causing the controller 100 to power up and load the upgraded firmware configuration.

[0031] The entire process described above is completed automatically by the hardware circuitry, eliminating the need for manual disconnection of the AC power supply 20 on-site. This enables remote reset of the server controller 100, completely resolving the limitation of traditional solutions that require manual on-site configuration resetting after upgrades. Furthermore, since the entire restart process does not rely on the complex self-activating logic within the controller 100, the differences between the two versions of the controller 100 before and after the upgrade are not subject to excessive constraints, requiring almost no additional software development work. In addition, this application incorporates sufficient power-down time to ensure that all states of the controller 100 and the server are restored to their default states, avoiding false alarms caused by incomplete resets and significantly improving the reliability of remote upgrades of the server controller 100.

[0032] In one alternative implementation, please refer to Figure 2 The power-down restart module 300 includes: a first resistor R1, a second resistor R2, a first switch Q1, a second switch Q2, a first charging / discharging unit 310, and a second charging / discharging unit 320. The first voltage level is high, and both the first switch Q1 and the second switch Q2 are N-type switches.

[0033] One end of the first resistor R1 is connected to the output terminal of the power supply 20. The other end of the first resistor R1, one end of the second resistor R2, the first terminal of the first switch Q1, and the enable terminal of the power regulator 200 are all connected to the first node N1. The other end of the second resistor R2 is grounded. The second terminal of the first switch Q1 is connected to the first terminal of the second switch Q2, and the second terminal of the second switch Q2 is grounded. The control terminals of the first switch Q1 and the second switch Q2 are respectively connected to one end of the first charging / discharging unit 310 and one end of the second charging / discharging unit 320. The other ends of the first charging / discharging unit 310 and the second charging / discharging unit 320 are respectively connected to the normal power terminal of the power regulator 200 and the first terminal of the controller 100.

[0034] Optionally, the power-down restart module 300 further includes a first capacitor C1, a tenth resistor R10, and an eleventh resistor R11. The first capacitor C1 is connected in parallel across the two ends of the second resistor R2. The enable terminal of the power regulator 200 is connected to the first node N1 via the tenth resistor R10. The second terminal of the first switching transistor Q1 is connected to the first terminal of the second switching transistor Q2 via the eleventh resistor R11.

[0035] When the enable terminal of the power regulator 200 is in an active state (i.e., the enable terminal of the power regulator 200 is at a high level), its normal power supply terminal outputs a high level, the first switch Q1 is turned on, and the first charging and discharging unit 310 is fast charged.

[0036] When the enable terminal of the power regulator 200 changes from an active state to an inactive state (i.e., the enable terminal of the power regulator 200 changes from a high level to a low level), its normal power supply terminal changes from a high level to a low level, and the first charging / discharging unit 310 slowly discharges to delay the turn-off of the first switch Q1. Understandably, because the first charging / discharging unit 310 discharges slowly, the control terminal voltage of the first switch Q1 can decrease slowly, thereby delaying the turn-off of the first switch Q1. During this delay time, the first switch Q1 remains in its previous on-state until the control terminal voltage of the first switch Q1 drops below its threshold voltage (i.e., the delay ends), at which point the first switch Q1 turns off.

[0037] The first terminal of controller 100 outputs a low level by default, and only outputs a high level (i.e., the first level) when controller 100 needs to be reset after the upgrade is completed. In other words, regardless of whether controller 100 is in a power-down state or in a normal working state after power-on, its first terminal outputs a low level by default; only when controller 100 is powered on and has completed the upgrade, and needs to be reset to take effect, does its first terminal output a high level.

[0038] When the first terminal of the controller 100 outputs a high level, the second switch Q2 is turned on, and the second charging and discharging unit 320 charges rapidly.

[0039] When the first terminal of the controller 100 changes from a high level to a low level, the second charging / discharging unit 320 slowly discharges to delay the turn-off of the second switch Q2. Similarly, because the second charging / discharging unit 320 discharges slowly, the control terminal voltage of the second switch Q2 can decrease slowly, thereby delaying the turn-off of the second switch Q2.

[0040] Further, the first charging / discharging unit 310 includes: a first capacitor unit 311, a first diode D1, and a third resistor R3. One end of the first capacitor unit 311 is grounded, and the other end is connected to the control terminal of the first switching transistor Q1, the cathode of the first diode D1, and one end of the third resistor R3. The anode of the first diode D1 and the other end of the third resistor R3 are both connected to the normal power supply terminal of the power regulator 200. Optionally, the first capacitor unit 311 is composed of a second capacitor C2 and a third capacitor C3, and the resistance of the third resistor R3 is 200KΩ.

[0041] The second charging / discharging unit 320 includes a second capacitor unit 321, a second diode D2, and a fourth resistor R4. One end of the second capacitor unit 321 is grounded, and the other end is connected to the control terminal of the second switching transistor Q2, the cathode of the second diode D2, and one end of the fourth resistor R4. The anode of the second diode D2 and the other end of the fourth resistor R4 are both connected to the first terminal of the controller 100. Optionally, the second capacitor unit 321 consists of a fourth capacitor C4 and a fifth capacitor C5, and the resistance of the fourth resistor R4 is 200KΩ.

[0042] Based on the above circuit design, the following is combined with Figure 2 and Figure 3 The entire power-down restart function process is explained in detail.

[0043] Before the AC power is connected to the power supply 20 (i.e. before the initial AC power supply of the power supply 20), the Vout terminal (i.e. the output terminal) of the power supply 20 outputs 0V, and both the power regulator 200 and the controller 100 are in a powered-off state. At this time, the PG terminal (i.e. the power supply normal terminal) of the power regulator 200 outputs a low level, and the IO1 terminal (i.e. the first terminal) of the controller 100 outputs a low level by default. The first switch Q1 and the second switch Q2 are both turned off.

[0044] After AC power is connected to power supply 20 (i.e., after initial AC power supply to power supply 20), the Vout terminal of power supply 20 outputs 12V power to the VIN terminal (i.e., input terminal) of power regulator 200. Since both the first switch Q1 and the second switch Q2 are off, the 12V power output from power supply 20 is applied to the EN terminal (i.e., enable terminal) of power regulator 200 after being divided by the first resistor R1 and the second resistor R2. That is, at this time, the EN terminal of power regulator 200 is at a high level and is in an enabled state. After power regulator 200 is successfully powered on, the Vout terminal of power regulator 200 outputs 3.3V standby power (i.e., P3v3_STBY) to controller 100 to power on controller 100. At the same time, the PG terminal of power regulator 200 outputs a high level to turn on the first switch Q1. However, since the IO1 terminal of controller 100 still outputs a low level by default, the second switch Q2 remains off. Therefore, the input enable signal of the power regulator 200 is still controlled by a 12V voltage divider, that is, the EN terminal of the power regulator 200 is still in an active state, outputting a 3.3V standby power supply, and the controller 100 can work normally.

[0045] When the controller 100 needs to be upgraded remotely, the controller 100 enters the upgrade process after power-on. When the upgrade is completed and a restart is required to take effect, the IO1 terminal of the controller 100 outputs a high level. At this time, the second switching transistor Q2 is also turned on, the EN terminal of the power regulator 200 is pulled low to ground, and it is in an inactive state, stopping the 3.3V standby power output.

[0046] Since the control terminals of the first switch Q1 and the second switch Q2 are respectively designed with a first charging / discharging unit 310 and a second charging / discharging unit 320, when both the EN terminal of the power regulator 200 and the IO1 terminal of the controller 100 output a high level, the second capacitor C2, the third capacitor C3, the fourth capacitor C4, and the fifth capacitor C5 can be charged quickly. The charging path is as follows: the current output by the power regulator 200 quickly charges the second capacitor C2 and the third capacitor C3 through the first diode D1, and the current output by the controller 100 quickly charges the fourth capacitor C4 and the fifth capacitor C5 through the second diode D2.

[0047] When both the first switch Q1 and the second switch Q2 are turned on, the power regulator 200 is powered down and stops outputting power. The controller 100 is also powered down, and both the PG terminal of the power regulator 200 and the IO1 terminal of the controller 100 become low. At this time, the two capacitors corresponding to each switch discharge. The discharge path is as follows: the discharge current of the second capacitor C2 and the third capacitor C3 (i.e., the first capacitor unit 311) returns to the PG terminal of the power regulator 200 through the third resistor R3; the discharge current of the fourth capacitor C4 and the fifth capacitor C5 (i.e., the second capacitor unit 321) returns to the IO1 terminal of the controller 100 through the fourth resistor R4. Because the resistance values ​​of the third resistor R3 and the fourth resistor R4 are relatively large (both 200KΩ), the discharge current of the first capacitor unit 311 and the second capacitor unit 321 are both small, and the discharge time is relatively long. This allows the turn-on voltage of the control terminals of the first switch Q1 and the second switch Q2 to be maintained for a period of time (e.g., 4 seconds). That is, within 4 seconds, the two switching transistors remain on to prolong the power-down time, thereby ensuring that the 3.3V standby power output of the power regulator 200 can be completely reduced to 0V, so that the controller 100 can be completely powered down and reset.

[0048] When the control terminal voltage of any switching transistor drops below its threshold voltage, the switching transistor is turned off. At this time, the input enable signal of the power regulator 200 is pulled high again by the 12V voltage divider (if it is effective), and the power regulator 200 outputs 3.3V standby power again.

[0049] Controller 100 is powered on again, and the controller 100 has now restarted and the new configuration has taken effect.

[0050] Therefore, this application can realize the remote power-down and restart of the server controller 100 through pure hardware circuitry, without the need for manual disconnection of the AC power supply 20 on-site, and without the need for complex self-activation logic to be implemented inside the controller 100. At the same time, the sufficiently long power-down time provided by the two charging and discharging units ensures that all states inside the controller 100 are completely reset before power is restored, avoiding false alarms caused by incomplete reset. Thus, the remote upgrade and restart of the controller 100 is realized remotely, reliably, and with low software development costs.

[0051] Furthermore, in practical applications, it has been found that during remote upgrades and resets of the controller, configuration loading may fail or an incorrect version of the configuration image file may be loaded, causing the server to freeze. Existing controllers cannot internally identify such anomalies, requiring users to manually reprogram the controller's configuration files on-site, resulting in low maintenance efficiency and impacting the convenience and reliability of remote server management.

[0052] In view of this, please refer to Figure 4In one optional implementation, the server remote upgrade reset circuit 10 further includes: an OR gate U1, a configuration result detection module 400, and a configuration switching module 500.

[0053] The first and second terminals of the configuration result detection module 400 are respectively connected to the normal power supply terminal (PG terminal) of the power regulator 200 and the second terminal (IO2 terminal) of the controller 100. The first and second input terminals of the OR gate U1 are respectively connected to the first terminal (IO1 terminal) of the controller 100 and the output terminal of the configuration result detection module 400, and the output terminal of the OR gate U1 is connected to the second control terminal of the power-down restart module 300 (equivalent to the output terminal of the OR gate U1 being connected to...). Figure 2 (The anode of the second diode D2 and one end of the fourth resistor R4). The output of the configuration result detection module 400 is also connected to the control terminal of the configuration switching module 500, and the output of the configuration switching module 500 is connected to the external configuration terminal of the controller 100.

[0054] The controller 100 has a primary configuration image file (Primary Boot) burned into it, and the configuration switching module 500 stores a backup configuration image file (Golden Boot).

[0055] When the controller 100 is powered on again, the controller 100 reads and loads the master configuration image file from its internal memory.

[0056] When the controller 100 is successfully configured and the loaded version content is correct, the second terminal of the controller 100 outputs a main configuration success signal, the output terminal of the configuration result detection module 400 outputs a second level (such as a low level), and the server operates normally.

[0057] When the controller 100 fails to load configuration or the loaded version content is incorrect, the second terminal of the controller 100 outputs a main configuration failure signal, and the output terminal of the configuration result detection module 400 outputs a first level (such as a high level) to trigger the configuration switching module 500 to switch the configuration path of the controller 100. At the same time, it triggers the power-down restart module 300 to power down and reset the controller 100 again, so that the controller 100 can read and load the backup configuration image file from the configuration switching module 500 after powering on again.

[0058] Understandably, this application not only provides a reliable power-down reset mechanism during normal upgrades and restarts of the controller 100, but also automatically detects anomalies and proactively triggers configuration path switching and a second power-down reset when the controller 100 upgrades fail or loads an incorrect version of the configuration image, enabling the controller 100 to resume operation from the backup configuration image file. The entire process requires no on-site manual intervention or manual re-burning of configuration files, effectively preventing server crashes and significantly improving the fault tolerance and automation level of remote upgrades for the controller 100.

[0059] In one alternative implementation, please refer to Figure 5 The configuration result detection module 400 includes: a first rising edge delay unit 420, a detection unit 410, and a third switch Q3. The first level is high, the second level is low, and the third switch Q3 is an N-type switch.

[0060] The power supply and enable terminals of the first rising edge delay unit 420 are both connected to the output terminal of the power regulator 200, and the detection terminal of the first rising edge delay unit 420 is connected to the normal power supply terminal of the power regulator 200. The output terminal of the first rising edge delay unit 420, the first terminal of the third switch Q3, the second input terminal of the OR gate U1, and the control terminal of the configuration switching module 500 are all connected to the second node N2 (equivalent to the output terminal of the configuration result detection module 400). The second terminal of the third switch Q3 is grounded, the input terminal of the detection unit 410 is connected to the second terminal of the controller 100, and the output terminal of the detection unit 410 is connected to the control terminal of the third switch Q3.

[0061] The first rising edge delay unit 420 is used to output a high level after a first preset time when a rising edge signal is detected. That is, the first rising edge delay unit 420 outputs a low level continuously for the first preset time (e.g., 2.2s). The first preset time is greater than the configuration loading time of the controller 100. Optionally, the first rising edge delay unit 420 consists of a first rising edge delay chip U2, a sixth capacitor C6, a seventh capacitor C7, a thirteenth resistor R13, and a fourteenth resistor R14, and the first preset time is determined by the capacitance value of the seventh capacitor C7 connected to the CT terminal of the first rising edge delay chip U2.

[0062] When the second terminal of controller 100 outputs a main configuration success signal, it indicates that controller 100 has successfully loaded the correct main configuration image file and the server can run normally. At this time, the detection unit 410 outputs a high level, the third switch Q3 is turned on, and the level at the second node N2 is pulled low by the third switch Q3. At this time, the configuration switching module 500 will not be triggered. Since the first terminal of controller 100 outputs a low level by default, the second node N2 is also at a low level, so the OR gate U1 outputs a low level. At this time, the power-down restart module 300 will not be triggered, and controller 100 maintains the current operating mode.

[0063] When the second terminal of the controller 100 outputs a main configuration failure signal, it indicates that the controller 100 has failed to load the main configuration image file or the loaded version content is incorrect. At this time, the detection unit 410 outputs a low level, the third switch Q3 is turned off, and the level at the second node N2 is pulled up to a high level. That is, the configuration result detection module 400 outputs the first level (high level), thereby triggering the configuration switching module 500 to switch the configuration path of the controller 100. At the same time, it triggers the power-down restart module 300 to power down and reset the controller 100 again, so that the controller 100 can be reloaded from the backup configuration image file after being powered on again.

[0064] The specific circuit structure of the detection unit 410 can be implemented in various ways, and this application does not limit its specific circuit form.

[0065] For example, in one optional implementation, the main configuration success signal is high and the main configuration failure signal is low. The detection unit 410 includes a fifth resistor R5, one end of which is connected to the second terminal of the controller 100, and the other end of which is connected to the control terminal of the third switch Q3.

[0066] When the controller 100 is successfully configured and the version is correct, the second terminal of the controller 100 outputs a high level. This high level is applied to the control terminal of the third switch Q3 through the fifth resistor R5, causing the third switch Q3 to conduct. The level at the second node N2 is pulled low (i.e., the configuration result detection module 400 outputs a low level), and the server operates normally.

[0067] When the controller 100 fails to load configuration or has a version error, the second terminal of the controller 100 outputs a low level. This low level is applied to the control terminal of the third switch Q3 through the fifth resistor R5, causing the third switch Q3 to turn off. The level at the second node N2 is pulled up to a high level (i.e., the configuration result detection module 400 outputs a high level), thereby triggering the configuration switching module 500 to switch the configuration path of the controller 100. At the same time, it triggers the power-down restart module 300 to power down and reset the controller 100 again.

[0068] For example, in another alternative implementation, the main configuration success signal is a continuous square wave signal, and the main configuration failure signal is a constant level. Figure 6 As shown, the detection unit 410 includes a watchdog chip U6. The power supply terminal (VDD terminal) of the watchdog chip U6 is connected to the output terminal of the power regulator 200, the input terminal (WDI terminal) of the watchdog chip U6 is connected to the second terminal of the controller 100, and the reset output terminal ( / RESET terminal) of the watchdog chip U6 is connected to the control terminal of the third switching transistor Q3. Optionally, the detection unit 410 also includes a twenty-ninth resistor R29 and a thirtieth resistor R30.

[0069] When the watchdog chip U6 receives a continuous square wave signal, it determines that the controller 100 configuration has been successfully loaded and the version is correct. The reset output terminal of the watchdog chip U6 outputs a high level, so that the third switch Q3 is turned on, the second node N2 is at a low level, and the server is running normally.

[0070] When the watchdog chip U6 detects that the second terminal level of the controller 100 remains unchanged for a period of time exceeding a preset time (e.g., 1.6 seconds), the reset output terminal of the watchdog chip U6 outputs a low level, which turns off the third switch Q3 and makes the second node N2 high, thereby triggering the reset process after the controller configuration failure.

[0071] In one alternative implementation, please refer again. Figure 5 The configuration switching module 500 includes: a second rising edge delay unit 510, a third rising edge delay unit 520, a fourth switch Q4, a fifth switch Q5, a sixth switch Q6, and a flash memory chip U5. The flash memory chip U5 stores a backup configuration image file, and the fourth switch Q4, the fifth switch Q5, and the sixth switch Q6 are all N-type switches.

[0072] The power supply terminal, enable terminal, and detection terminal of the second rising edge delay unit 510 are all connected to the output terminal of the power supply 20. The detection terminal of the second rising edge delay unit 510 is also connected to the first terminal of the fourth switch Q4. The second terminal of the fourth switch Q4 is grounded. The control terminal of the fourth switch Q4 is connected to the second node N2. The output terminal of the second rising edge delay unit 510 is connected to the control terminal of the fifth switch Q5. The second terminal of the fifth switch Q5 is grounded.

[0073] The power supply, enable, and detection terminals of the third rising edge delay unit 520 are all connected to the output terminal of the power supply 20. The output terminal of the third rising edge delay unit 520, the first terminal of the fifth switch Q5, and the control terminal of the sixth switch Q6 are all connected to the third node N3. The first terminal of the sixth switch Q6 is connected to the flash memory chip U5, and the second terminal of the sixth switch Q6 is connected to the external configuration terminal of the controller 100. Optionally, the configuration switching module 500 also includes a tri-state buffer U7, which is used to isolate the MISO signal between the flash memory chip U5 and the controller 100.

[0074] The third rising edge delay unit 520 is used to output a high level after a first preset time when a rising edge signal is detected. That is, the third rising edge delay unit 520 outputs a low level continuously for the first preset time (e.g., 2.2s). Optionally, the third rising edge delay unit 520 is composed of a third rising edge delay chip U4, a tenth capacitor C10, an eleventh capacitor C11, a twenty-first resistor R21, a twenty-second resistor R22, a twenty-third resistor R23, a twenty-fourth resistor R24, a twenty-fifth resistor R25, and a twenty-sixth resistor R26, and the first preset time is determined by the capacitance value of the eleventh capacitor C11 connected to the CT terminal of the third rising edge delay chip U4.

[0075] The second rising edge delay unit 510 is used to output a high level after a second preset time when a rising edge signal is detected; wherein, the second preset time is greater than the first preset time plus the configuration loading time of the controller 100. That is, the second rising edge delay unit 510 outputs a low level continuously within the second preset time (e.g., 10s). Optionally, the second rising edge delay unit 510 is composed of a second rising edge delay chip U3, an eighth capacitor C8, a ninth capacitor C9, a fifteenth resistor R15, a sixteenth resistor R16, a seventeenth resistor R17, an eighteenth resistor R18, a nineteenth resistor R19, and a twentieth resistor R20, and the second preset time is determined by the capacitance value of the ninth capacitor C9 connected to the CT terminal of the second rising edge delay chip U3.

[0076] Optionally, the capacitance values ​​of the seventh capacitor C7 and the eleventh capacitor C11 are both 2.2uF, and the capacitance value of the ninth capacitor C9 is 10uF.

[0077] Based on the above circuit design, the following is combined with Figure 5 and Figure 7 The process for resetting the controller configuration after a failure is explained in detail.

[0078] After AC power is supplied to power supply 20 (i.e., after initial AC power supply to power supply 200), the Vout terminal of power regulator 200 outputs 3.3V standby power (i.e., P3V3_STBY), and controller 100 powers on to perform boot configuration loading. Due to the second rising edge delay chip U3 and the third rising edge delay chip U4, during the initial 2.2 seconds of power-on (i.e., the first preset time), the third node N3 is at a low level, the sixth switch Q6 is turned off, and the connection between flash memory chip U5 and controller 100 is disconnected. Controller 100's boot cannot load configuration from flash memory chip U5; therefore, controller 100 can only read and load the main configuration image file from its internal memory. After the 2.2-second delay, controller 100 has completed configuration (because the first preset time > controller 100's configuration loading time).

[0079] Due to the delay of the first rising edge chip U2, the signal output from the PG terminal of the power regulator 200 is also delayed by 2.2 seconds. At this time, the controller 100 has completed its configuration. If the controller 100 is successfully configured and the version is correct, the IO2 terminal of the controller 100 outputs a main configuration success signal, the third switch Q3 is turned on, the second node N2 is at a low level, and the server is running normally.

[0080] If the controller 100 fails to configure or has a version error, the controller 100's IO2 pin outputs a main configuration failure signal, the third switch Q3 turns off, and the level at the second node N2 becomes high. At this time, the high level at the second node N2 triggers a server power-down restart (refer to the aforementioned power-down restart function flow), and simultaneously triggers a low level to the second rising edge delay chip U3 (because the high level at the second node N2 turns on the fourth switch Q4, thus pulling the detection terminal of the second rising edge delay chip U3 low to ground). After the server powers down, the level at the second node N2 becomes low, the fourth switch Q4 turns off, and a rising edge appears at the detection terminal (i.e., the sense terminal) of the second rising edge delay chip U3. At this time, the second rising edge delay chip U3 will output a low level that lasts for 10 seconds (i.e., the second preset time) before becoming high. During these 10 seconds, the third node N3 becomes high, the sixth switch Q6 turns on, and the controller 100's boot loading path is switched to the flash memory chip U5. When the controller 100 is powered on again, it will read and load the backup configuration image file in the flash memory chip U5.

[0081] After the controller 100 loads the backup configuration image file from the flash memory chip U5, the IO2 pin of the controller 100 outputs a high level. The server is running normally, and the user can then remotely log in to the server again to operate it. This avoids problems caused by controller 100 upgrade failure or the use of an incorrect image file, which could prevent the server from starting normally and becoming uncontrollable remotely.

[0082] In one alternative implementation, please refer to Figure 8 The server remote upgrade and reset circuit 10 also includes a configuration failure feedback module 600, which includes an LED D3, a seventh switch Q7, a sixth resistor R6, and a seventh resistor R7. The seventh switch Q7 is an N-type switch.

[0083] One end of the sixth resistor R6 is connected to the third terminal (IO3 terminal) of the controller 100 and the control terminal of the seventh switch Q7. The other end of the sixth resistor R6 is connected to the anode of the LED D3, and the cathode of the LED D3 is grounded. The second terminal of the seventh switch Q7 is also grounded. The first terminal of the seventh switch Q7 is connected to one end of the seventh resistor R7, and the other end of the seventh resistor R7 is connected to the output terminal of the power regulator 200. The first terminal of the seventh switch Q7 is also used to connect to the processor 30. Optionally, the processor 30 can be a BMC (Baseboard Management Controller).

[0084] After the controller 100 loads the main configuration image file, the third terminal of the controller 100 outputs a low level.

[0085] When the controller 100 reloads the backup configuration image file, the third terminal of the controller 100 outputs a high level, LED D3 lights up, the seventh switch Q7 is turned on, and the processor 30 receives a low level to remotely upgrade to the correct version again.

[0086] Understandably, this application configures the failure feedback module 600 so that after the controller 100 loads the backup configuration image file, it provides an intuitive visual alarm to the on-site maintenance personnel by lighting up the LED D3, and sends a low-level signal to the processor 30 by turning on the seventh switch Q7, notifying it that the current primary configuration has failed and the system is running in the backup configuration, thereby triggering the processor 30 to automatically initiate a new round of remote upgrades. The processor 30 can remotely reload the configuration of the controller 100, further improving the reliability of remote upgrades of the server controller 100.

[0087] Furthermore, to enhance the flexibility and configurability of the circuit, in one alternative implementation, please refer again to... Figure 5 The server remote upgrade and reset circuit 10 also includes: a first short circuit J1, a second short circuit J2, an eighth resistor R8, and a ninth resistor R9.

[0088] The second pin of the first circuit breaker J1 is connected to the first control terminal of the power-down restart module 300, and the third pin of the first circuit breaker J1 is grounded through the eighth resistor R8. The second pin of the second circuit breaker J2 is connected to the control terminal of the configuration switching module 500, and the third pin of the second circuit breaker J2 is grounded through the ninth resistor R9.

[0089] When the second and third pins of the first short circuit J1 are shorted, the first control terminal of the power-down restart module 300 is pulled low (equivalent to keeping the first switching transistor Q1 in the off state), and the power-down restart function is disabled, meaning that the power-down restart function cannot be triggered.

[0090] When the second pin of the second short circuit J2 is shorted to the third pin, the control terminal of the configuration switching module 500 is pulled low (equivalent to keeping the fourth switch Q4 in the off state). The configuration path switching function is turned off, meaning that the controller 100 cannot connect to the external flash memory chip U5 and can only load the configuration from inside the controller 100.

[0091] Understandably, by setting the first short circuit J1 and the second short circuit J2, a hardware configuration switch is provided for the entire circuit. When it is necessary to disable the power-down restart function or configure the path switching function, simply short-circuit the second and third pins of the corresponding short circuits; no software modification or circuit replacement is required. This greatly facilitates system debugging, function masking in special scenarios, and troubleshooting, enhancing the circuit's flexibility and maintainability.

[0092] Optionally, the server remote upgrade and reset circuit 10 also includes a JTAG debugger interface J3 and a 28th resistor R28. The JTAG debugger interface J3 has eight pins. The first pin of the JTAG debugger interface J3 is connected to the output of the power regulator 200, the third pin is connected to the second node N2 via the 28th resistor R28, and the seventh pin is grounded. The second, fourth, sixth, and eighth pins of the JTAG debugger interface J3 are all connected to the controller 100.

[0093] The user programs the controller 100's configuration file through the JTAG debugger interface J3. When a JTAG cable is inserted into the JTAG debugger interface J3, the cable shorts the fifth and seventh pins of the interface, pulling the level at the second node N2 low to ground. This prevents the second node N2 from being pulled high and triggering the server's power-down restart function, even if the controller 100 outputs a low level during JTAG loading, thus ensuring the smooth operation of the JTAG debugging process.

[0094] In summary, the server remote upgrade and reset circuit provided in this application embodiment achieves remote power-down and restart of the server controller through pure hardware circuitry, eliminating the need for manual on-site operation and completely solving the limitation of requiring manual on-site configuration reset after controller upgrades. Since the entire restart process does not rely on the complex self-effective logic within the controller, the differences between the two versions before and after the upgrade do not require excessive constraints, and almost no additional software development workload is needed. Furthermore, this application uses two charging and discharging units to design sufficient power-down time, ensuring that all states within the controller can be completely reset and restored to default values, effectively avoiding false alarms caused by incomplete resets. In addition, when the controller upgrade fails to load or an incorrect version is loaded, this application can automatically detect the anomaly and switch to a backup configuration image file for reloading, while simultaneously triggering a remote repair process, thus solving the problem in traditional solutions where abnormal configuration loading leads to server crashes and the inability to remotely recover.

[0095] Based on the above circuit design, please refer to Figure 9 In an optional implementation, this application also provides a server remote upgrade and reset method, which is applied to the server remote upgrade and reset circuit as described in any of the foregoing embodiments. The method includes the following steps: Step S10: After the controller upgrade is completed, the controller outputs the first level to the power-down restart module.

[0096] In step S20, when the power-down restart module receives the first level, it sets the enable terminal of the power regulator to an invalid state, causing the controller to power down. After a preset delay, it sets the enable terminal of the power regulator to an active state, causing the controller to power up again for configuration loading.

[0097] For specific limitations regarding the method of remote server upgrade and reset, please refer to the limitations of the remote server upgrade and reset circuit mentioned above, which will not be repeated here.

[0098] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

[0099] It will be apparent to those skilled in the art that this application is not limited to the details of the exemplary embodiments described above, and that this application can be implemented in other specific forms without departing from the spirit or essential characteristics of this application. Therefore, the embodiments should be considered illustrative and non-limiting in all respects, and the scope of this application is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be included within this application. No reference numerals in the claims should be construed as limiting the scope of the claims.

Claims

1. A server remote upgrade and reset circuit, characterized in that, include: Controller, power regulator, and power-down restart module; The input terminal of the power regulator and the first terminal of the power-down restart module are both used to connect to the output terminal of the power supply; the enable terminal and the output terminal of the power regulator are respectively connected to the second terminal of the power-down restart module and the power supply terminal of the controller; the first control terminal and the second control terminal of the power-down restart module are respectively connected to the power normal terminal of the power regulator and the first terminal of the controller. After the controller upgrade is completed, the controller is used to output a first level to the power-down restart module; The power-down restart module is used to set the enable terminal of the power regulator to an invalid state when receiving the first level, so that the controller is powered down, and after a preset delay, set the enable terminal of the power regulator to an valid state, so that the controller is powered on again for configuration loading. The power-down restart module includes a first resistor, a second resistor, a first switching transistor, a second switching transistor, a first charging / discharging unit, and a second charging / discharging unit; the first voltage level is high, and both the first and second switching transistors are N-type switching transistors. One end of the first resistor is connected to the output terminal of the power supply; the other end of the first resistor, one end of the second resistor, the first terminal of the first switching transistor, and the enable terminal of the power regulator are all connected to the first node, and the other end of the second resistor is grounded; the second terminal of the first switching transistor is connected to the first terminal of the second switching transistor, and the second terminal of the second switching transistor is grounded; the control terminals of the first and second switching transistors are respectively connected to one end of the first and second charging / discharging units, and the other ends of the first and second charging / discharging units are respectively connected to the power normal terminal of the power regulator and the first terminal of the controller. When the enable terminal of the power regulator is in an active state, its normal power terminal outputs a high level, the first switch is turned on, and the first charging and discharging unit charges rapidly. When the enable terminal of the power regulator changes from an active state to an inactive state, its normal power supply terminal changes from a high level to a low level, and the first charging and discharging unit slowly discharges to delay the turn-off of the first switching transistor. The first terminal of the controller outputs a low level by default, and only outputs a high level when the controller needs to be reset after the upgrade is completed; When the first terminal of the controller outputs a high level, the second switch is turned on, and the second charging and discharging unit charges rapidly; When the first terminal of the controller changes from a high level to a low level, the second charging and discharging unit slowly discharges to delay the turn-off of the second switching transistor.

2. The server remote upgrade and reset circuit according to claim 1, characterized in that, The first charging and discharging unit includes a first capacitor unit, a first diode, and a third resistor; one end of the first capacitor unit is grounded, and the other end of the first capacitor unit is connected to the control terminal of the first switching transistor, the cathode of the first diode, and one end of the third resistor, respectively; the anode of the first diode and the other end of the third resistor are both connected to the normal power supply terminal of the power regulator. The second charging and discharging unit includes a second capacitor unit, a second diode, and a fourth resistor; one end of the second capacitor unit is grounded, and the other end of the second capacitor unit is connected to the control terminal of the second switching transistor, the cathode of the second diode, and one end of the fourth resistor, respectively; the anode of the second diode and the other end of the fourth resistor are both connected to the first terminal of the controller.

3. The server remote upgrade and reset circuit according to claim 1, characterized in that, The server remote upgrade and reset circuit also includes an OR gate, a configuration result detection module, and a configuration switching module; The first and second terminals of the configuration result detection module are respectively connected to the normal power supply terminal of the power regulator and the second terminal of the controller; the first and second input terminals of the OR gate are respectively connected to the first terminal of the controller and the output terminal of the configuration result detection module, and the output terminal of the OR gate is connected to the second control terminal of the power-down restart module; the output terminal of the configuration result detection module is also connected to the control terminal of the configuration switching module, and the output terminal of the configuration switching module is connected to the external configuration terminal of the controller; The controller has a master configuration image file burned into it, and the configuration switching module stores a backup configuration image file. When the controller is powered on again, the controller reads and loads the master configuration image file from its internal memory; When the controller configuration is successfully loaded and the loaded version content is correct, the second terminal of the controller outputs a main configuration success signal, the output terminal of the configuration result detection module outputs a second level, and the server operates normally; When the controller configuration fails to load, or the loaded version content is incorrect, the second terminal of the controller outputs a main configuration failure signal, and the output terminal of the configuration result detection module outputs a first level to trigger the configuration switching module to switch the configuration path of the controller. At the same time, it triggers the power-down restart module to power down and reset the controller again, so that the controller can read and load the backup configuration image file from the configuration switching module after powering on again.

4. The server remote upgrade and reset circuit according to claim 3, characterized in that, The configuration result detection module includes a first rising edge delay unit, a detection unit, and a third switching transistor; the first level is a high level, the second level is a low level, and the third switching transistor is an N-type switching transistor; The power supply and enable terminals of the first rising edge delay unit are both connected to the output terminal of the power regulator, and the detection terminal of the first rising edge delay unit is connected to the normal power supply terminal of the power regulator; the output terminal of the first rising edge delay unit, the first terminal of the third switch, the second input terminal of the OR gate, and the control terminal of the configuration switching module are all connected to the second node; the second terminal of the third switch is grounded, the input terminal of the detection unit is connected to the second terminal of the controller, and the output terminal of the detection unit is connected to the control terminal of the third switch. The first rising edge delay unit is used to output a high level after a first preset time when a rising edge signal is detected; wherein, the first preset time is greater than the configuration loading time of the controller; When the second terminal of the controller outputs a main configuration success signal, the detection unit outputs a high level, the third switch is turned on, and the level at the second node is low. When the second terminal of the controller outputs a main configuration failure signal, the detection unit outputs a low level, the third switch is turned off, and the level at the second node is high.

5. The server remote upgrade and reset circuit according to claim 4, characterized in that, The configuration switching module includes a second rising edge delay unit, a third rising edge delay unit, a fourth switch, a fifth switch, a sixth switch, and a flash memory chip; the flash memory chip stores the backup configuration image file, and the fourth, fifth, and sixth switch are all N-type switch transistors; The power supply, enable, and detection terminals of the second rising edge delay unit are all connected to the output terminal of the power supply. The detection terminal of the second rising edge delay unit is also connected to the first terminal of the fourth switch, the second terminal of the fourth switch is grounded, and the control terminal of the fourth switch is connected to the second node. The output terminal of the second rising edge delay unit is connected to the control terminal of the fifth switch, and the second terminal of the fifth switch is grounded. The power supply, enable, and detection terminals of the third rising edge delay unit are all connected to the output terminal of the power supply. The output terminal of the third rising edge delay unit, the first terminal of the fifth switch, and the control terminal of the sixth switch are all connected to the third node. The first terminal of the sixth switch is connected to the flash memory chip, and the second terminal of the sixth switch is connected to the external configuration terminal of the controller. The third rising edge delay unit is used to output a high level after delaying for a first preset time when a rising edge signal is detected; The second rising edge delay unit is used to output a high level after a second preset time when a rising edge signal is detected; wherein, the second preset time is greater than the first preset time plus the controller's configuration loading time.

6. The server remote upgrade and reset circuit according to claim 4, characterized in that, The main configuration success signal is high level, and the main configuration failure signal is low level; the detection unit includes a fifth resistor, one end of which is connected to the second terminal of the controller, and the other end of which is connected to the control terminal of the third switch. Alternatively, the main configuration success signal is a continuous square wave signal, and the main configuration failure signal is a constant level; the detection unit includes a watchdog chip, the power supply terminal of the watchdog chip is connected to the output terminal of the power regulator, the input terminal of the watchdog chip is connected to the second terminal of the controller, and the reset output terminal of the watchdog chip is connected to the control terminal of the third switching transistor.

7. The server remote upgrade and reset circuit according to claim 3, characterized in that, The server remote upgrade and reset circuit also includes a configuration failure feedback module, which includes an LED, a seventh switch, a sixth resistor, and a seventh resistor; the seventh switch is an N-type switch. One end of the sixth resistor is connected to the third terminal of the controller and the control terminal of the seventh switch. The other end of the sixth resistor is connected to the anode of the LED. The cathode of the LED and the second terminal of the seventh switch are both grounded. The first terminal of the seventh switch is connected to one end of the seventh resistor. The other end of the seventh resistor is connected to the output terminal of the power regulator. The first terminal of the seventh switch is also used to connect to the processor. When the controller loads the main configuration image file, the third terminal of the controller outputs a low level; When the controller reloads the backup configuration image file, the third terminal of the controller outputs a high level, the LED lights up, the seventh switch is turned on, and the processor receives a low level to remotely upgrade to the correct version again.

8. The server remote upgrade and reset circuit according to claim 3, characterized in that, The server remote upgrade and reset circuit also includes a first short circuit, a second short circuit, an eighth resistor, and a ninth resistor; The second pin of the first short circuit is connected to the first control terminal of the power-down restart module, and the third pin of the first short circuit is grounded through the eighth resistor; the second pin of the second short circuit is connected to the control terminal of the configuration switching module, and the third pin of the second short circuit is grounded through the ninth resistor. When the second pin and the third pin of the first short circuit are shorted, the first control terminal of the power-down restart module is pulled low, and the power-down restart function is turned off. When the second pin of the second short circuit is shorted to the third pin, the control terminal of the configuration switching module is pulled low, and the configuration path switching function is turned off.

9. A method for remotely upgrading and resetting a server, characterized in that, The method, applied to the server remote upgrade and reset circuit as described in any one of claims 1-8, comprises: Once the controller upgrade is complete, the controller outputs a first level to the power-down restart module; When the power-down restart module receives the first level, it sets the enable terminal of the power regulator to an invalid state, causing the controller to power down. After a preset delay, it sets the enable terminal of the power regulator to an active state, causing the controller to power up again for configuration loading.

Citation Information

Patent Citations

  • Embedded system reset and restart circuit, electronic equipment and control method thereof

    CN121478095A