System restart control device and method and network equipment

By designing a system restart control device in a network device, and using the CPU and logic processing control module to identify and execute remote restart instructions, the problem that traditional systems cannot respond to remote restart instructions when system abnormalities are solved, achieving a smooth restart process and cold restart capability without manual intervention.

CN119668931APending Publication Date: 2025-03-21MAIPU COMM TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411724798.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-28
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

Traditional remote control systems may not be able to respond to remote restart instructions when the system is abnormal, resulting in a restart failure requiring manual intervention.

Method used

A system restart control device is designed, including a CPU and a logic processing control module, and through the management bus connection, it recognizes remote restart instructions and executes corresponding hot restart or cold restart processes.

Benefits of technology

It effectively avoids the problem that remote restart instructions cannot be responded to due to system software exceptions, ensures the smooth execution of the restart process, and allows the cold restart process to be directly executed when the hot restart fails, without manual intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119668931A_ABST
    Figure CN119668931A_ABST
Patent Text Reader

Abstract

The invention provides a system restart control device and method and network equipment. The system restart control device comprises a CPU (Central Processing Unit) and a logic processing control module, the CPU is connected with the logic processing control module through a management bus; the logic processing control module is used for transmitting the hot restart instruction to the CPU when the remote restart instruction is identified to be the hot restart instruction; the CPU is used for controlling and executing a hot restart process through the software which obtains the soft restart instruction; and the logic processing control module is also used for controlling the execution of a cold restart process when the identified remote restart instruction is the cold restart instruction. According to the method, the cold restart process can be directly executed through the logic processing control module, manual intervention is avoided, and the problem that a remote restart instruction cannot be responded due to system software abnormity is effectively solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data communication technology, and in particular to a system restart control device, method and network equipment. Background Art

[0002] When using network equipment, system anomalies may occur, and the system needs to be restarted to restore normal operation. Whether in the development and testing phase of the equipment, factory inspection, or daily operation and maintenance, system restart is an essential functional requirement for network equipment. In addition, after the system is upgraded, it often needs to be restarted to complete the upgrade process. Therefore, the system restart function is crucial for network equipment.

[0003] There are two main types of system restart functions: hot restart and cold restart. The hot restart operation does not interrupt the system power supply, but is achieved by resetting each functional component. This method can quickly restore the normal operation of the system when dealing with most system abnormalities. In contrast, the cold restart involves a hardware-level power-off and power-on process, similar to manually turning the power on and off. This method can completely solve all system abnormalities.

[0004] Typically, one way to restart a system is to manually disconnect the power and restart it, which is not only inefficient but also a huge burden for testers and maintenance personnel. Another way is to restart network devices through remote commands. Specifically, when a device receives a remotely sent restart command, the restart command needs to be recognized and executed at the system software level of the device. If the system software is abnormal or fails and cannot respond to the remote restart command, it will hinder the execution of the system restart. In this case, manual intervention is still required to manually disconnect the power.

[0005] Therefore, how to effectively deal with the phenomenon that traditional remote control systems may not respond to restart commands due to system abnormalities is a technical problem that needs to be solved urgently. Summary of the invention

[0006] In view of this, one of the objects of the present invention is to provide a system restart control device, method and network equipment, which can effectively deal with the phenomenon that a traditional remote control system may be unable to respond to a remote restart instruction due to system abnormalities.

[0007] In order to achieve the above purpose, the technical solution adopted by the embodiment of the present invention is as follows:

[0008] In a first aspect, an embodiment of the present invention provides a system restart control device, comprising a CPU and a logic processing control module; the CPU and the logic processing control module are connected via a management bus; the logic processing control module is used to, when identifying that a remote restart instruction is a hot restart instruction, transparently transmit the hot restart instruction to the CPU; the CPU is used to control the execution of a hot restart process by obtaining software of the hot restart instruction; the logic processing control module is also used to control the execution of a cold restart process when identifying that the remote restart instruction is a cold restart instruction.

[0009] In a second aspect, the present invention provides a system restart control method, which is applied to a network device; the network device is provided with a system restart control device, and the system restart control device includes a CPU and a logic processing control module; the CPU and the logic processing control module are connected via a management bus; the method includes: when the logic processing control module recognizes that the remote restart instruction is a hot restart instruction, the hot restart instruction is transmitted to the CPU; the CPU controls the execution of the hot restart process by obtaining the software of the hot restart instruction; when the logic processing control module recognizes that the remote restart instruction is a cold restart instruction, the cold restart process is controlled to be executed.

[0010] In a third aspect, an embodiment of the present invention provides a network device, wherein the network device includes the system restart control apparatus as described in the first aspect; or, the network device is used to execute the system restart control method as described in the second aspect.

[0011] The system restart control device, method and network device provided by the present invention have the following advantages compared with the method of remote control system restart in the prior art: the embodiment of the present invention receives and identifies the remote restart instruction through the logic processing control module. If it is identified as a cold restart instruction, the logic processing control module will directly execute the cold restart process; if it is a hot restart instruction, the instruction will be passed to the CPU, and the hot restart process will be controlled by the corresponding software in the CPU. This design effectively avoids the problem that the remote restart instruction cannot be responded to due to system software abnormality, and ensures the smooth execution of the restart process. In addition, during the hot restart process, the embodiment of the present invention responds to the hot restart instruction through the corresponding software of the soft restart instruction obtained in the CPU, which means that different hot restart instructions will be captured by different software and execute their preset control processes. In this way, the fault location can be located when the hot restart fails, and the user is allowed to flexibly select the restart method according to the actual situation, which improves the user experience. In particular, when the remote restart fails due to software abnormality, the embodiment of the present invention can directly control the execution of the cold restart process through the logic processing control module without manual intervention. Finally, the embodiment of the present invention does not add a dedicated MCU controller to execute the remote restart process, which saves costs in hardware design.

[0012] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0014] Figure 1 A functional module diagram of a system restart control device provided by an embodiment of the present invention;

[0015] Figure 2 One of another functional module diagrams of the system restart control device provided by an embodiment of the present invention;

[0016] Figure 3 A system provided by an embodiment of the present invention; another functional module diagram of the restart control device;

[0017] Figure 4 A third diagram of another functional module of the system restart control device provided by an embodiment of the present invention;

[0018] Figure 5 A fourth diagram of another functional module of the system restart control device provided by an embodiment of the present invention;

[0019] Figure 6 A fifth diagram of another functional module of the system restart control device provided by an embodiment of the present invention;

[0020] Figure 7 A circuit implementation diagram of a power supply control circuit 40 provided in an embodiment of the present invention is shown;

[0021] Figure 8 A sixth diagram of another functional module of the system restart control device provided by an embodiment of the present invention;

[0022] Fig. 9 FIG7 is another functional module diagram of the system restart control device provided by the embodiment of the present invention;

[0023] Fig.10 The present invention provides a three-level system restart mechanism function schematic diagram;

[0024] Fig.11 A schematic flow chart of a system restart control method provided by an embodiment of the present invention;

[0025] Fig.12 It is a structural block diagram of a network device provided by an embodiment of the present invention.

[0026] Icon: system restart control device-00; CPU-10; logic processing control module-20; management serial port module-30; power control circuit-40; network device-60; management software-101; watchdog program-102; driver-103; analysis unit-201; watchdog unit-202; monitoring unit-203; restart unit-204; cold restart instruction management unit-205. DETAILED DESCRIPTION

[0027] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0028] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present invention.

[0029] It should be noted that relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0030] First, relevant terms involved in the embodiments of the present invention are introduced.

[0031] 1. CPLD (Complex Programmable Logic Device): It is the abbreviation of Complex PLD, a more complex logic element than PLD. CPLD is a digital integrated circuit that users can construct logic functions according to their own needs.

[0032] 2. Warm Reboot: refers to the software restart method performed during system operation.

[0033] 3. Cold Reboot: refers to a hardware-level restart method that completely turns off the power and then restarts it.

[0034] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0035] Considering that in the existing system restart control method, if the system software hangs abnormally, the remote restart instruction may not be responded to, resulting in the remote restart instruction being invalid and the remote restart operation failing. In response to this challenge, the embodiment of the present invention proposes a system restart control device and method, which can maintain the validity of the remote restart instruction in the event of an abnormal software hang, thereby ensuring the stability and reliability of the system restart.

[0036] See also Figure 1 , Figure 1 This is a functional module diagram of a system restart control device provided by an embodiment of the present invention. The system restart control device 00 includes a CPU 10 and a logic processing control module 20. The CPU 10 and the logic processing control module 20 are connected via a management bus.

[0037] The logic processing control module 20 is used to transparently transmit the hot restart instruction to the CPU 10 when identifying that the remote restart instruction is a hot restart instruction;

[0038] CPU10, used for controlling the execution of the hot restart process by obtaining software of the hot restart instruction;

[0039] The logic processing control module 20 is further configured to control the execution of a cold restart process when it is identified that the remote restart instruction is a cold restart instruction.

[0040] In one embodiment of the present invention, the logic processing control module 20 is implemented by hardware, which may be, but is not limited to, CPLD. By controlling the remote control process through a hardware module, the problem of system restart failure due to software anomalies can be avoided.

[0041] Compared with the existing system restart control method, the system restart control device 00 provided in the embodiment of the present invention has the following advantages:

[0042] On the one hand, the embodiment of the present invention receives and identifies the remote restart instruction through the logic processing control module 20. If it is identified as a cold restart instruction, the logic processing control module 20 will directly execute the cold restart process; if it is a hot restart instruction, the instruction will be passed to the CPU, and the hot restart process will be controlled by the corresponding software in the CPU 10. This design effectively avoids the problem that the remote restart instruction cannot be responded to due to system software abnormalities, and ensures the smooth execution of the restart process.

[0043] On the other hand, during the hot restart process, the embodiment of the present invention obtains the corresponding software of the soft restart instruction in CPU10 to respond to the hot restart instruction, which means that different hot restart instructions will be captured by different software and execute their preset control processes. In this way, the fault location can be located when the hot restart fails, and the user is allowed to flexibly select the restart method according to the actual situation, thereby improving the user experience.

[0044] In addition, when a software anomaly causes a remote restart failure, the embodiment of the present invention can directly control the execution of the cold restart process through the logic processing control module 20 without manual intervention. Finally, the embodiment of the present invention does not add an additional dedicated MCU controller to execute the remote restart process, which saves costs in hardware design.

[0045] In one embodiment of the present invention, firstly, a hot restart instruction and a cold restart instruction are designed differently. Specifically:

[0046] The embodiment of the present invention first sets different specific characters or specific character combinations for the hot restart mode and the cold restart mode, and then uses the specific characters or specific character combinations as the instruction content to generate different types of remote restart instructions. For example, taking the specific character combination as an example, "Ctrl+ALT+H" can be set, recorded as the H instruction, corresponding to the hot restart mode, then the remote restart instruction including "Ctrl+ALT+H" in the instruction content is the hot restart instruction, and "Ctrl+ALT+M" is set, recorded as the M instruction, as the cold restart mode, and the corresponding remote restart instruction is the cold restart instruction.

[0047] It should be understood that the above design is only an example, and the user can flexibly customize the category of the instruction combination symbol. Different types of remote restart instructions correspond to different types of remote restart processes.

[0048] In addition, in the design of the hot restart instruction, the embodiment of the present invention can further refine the instruction classification in combination with the software type and its function in the CPU 10. For example, in addition to the above-mentioned H instruction as a hot restart instruction, an instruction that does not contain any combination symbol in the instruction content can also be used as a hot restart instruction.

[0049] For cold restart instructions, they can be captured by the logic processing control module 20 and execute the corresponding cold restart process. For different types of hot restart instructions, they can be captured by different software in CPU10 and execute the corresponding hot restart process. This classification method can help users locate the location of system abnormalities when the remote hot restart fails, which is convenient for fault problem analysis.

[0050] Based on the above instruction design results, the embodiment of the present invention can also set different levels for different types of remote restart instructions to build a hierarchical restart mechanism. Specifically: the embodiment of the present invention can configure the highest level for the cold restart instruction, and then set different levels for different types of hot restart instructions. At present, this level setting method is only an example.

[0051] For example, continuing with the above example, the embodiment of the present invention refers to the hot restart instruction that does not contain a combination symbol as a "conventional hot restart instruction", sets the level to 1, refers to the above H instruction as an "enhanced hot restart instruction", sets the level to 2, and refers to the above M instruction as a "super cold restart instruction", sets the level to 3.

[0052] In the case of the above-mentioned hierarchical restart mechanism, the embodiment of the present invention further provides the following two implementation modes:

[0053] In one implementation, the user can flexibly and autonomously select the remote restart method to be executed according to actual needs. Specifically, the user can select any restart method, and the network device will then generate a corresponding remote restart instruction according to the remote restart method selected by the user, and send it down to start and execute the corresponding remote restart process.

[0054] For example, the user can perform the reboot step by step in order from low to high levels: first try to use the level 1 regular hot reboot command, if it fails, then choose to use the level 2 enhanced hot reboot command, if it still fails, then further use the level 3 super cold reboot command. Of course, the user can also directly choose to execute the level 3 super cold reboot command.

[0055] In another embodiment, the system can also automatically send remote restart instructions in order from low to high levels according to different levels of remote restart instructions. If the corresponding remote restart process is successfully completed when executing a remote restart instruction sent once, the system will stop sending instructions. On the contrary, if the remote restart process fails to be successfully executed, the system will continue to send the next level of remote restart instructions until the remote restart process is successful.

[0056] By implementing a hierarchical restart mechanism, users can accurately identify the specific links of system anomalies during the step-by-step execution of remote restart. For example, taking the above example, assuming that a level 1 regular hot restart instruction has been issued, but the system fails to restart successfully, this indicates that there is an anomaly in the software that receives the level 1 regular hot restart instruction. Similarly, if the system still fails to restart successfully after the level 2 enhanced hot restart instruction is issued, it can be inferred that there is a problem with the software that receives the level 1 regular hot restart instruction. This mechanism makes it easy for users to conduct in-depth analysis of the cause of the failure and quickly take appropriate response measures.

[0057] It should be understood that the aforementioned cold / hot restart instruction types, including H instruction and M instruction, are only used as examples to illustrate the implementation of the present invention. In practical applications, users can flexibly design the specific instruction content of the cold / hot restart instruction according to specific needs, and the embodiments of the present invention do not make specific restrictions on these design details.

[0058] Furthermore, in order to enable the device to accurately identify hot restart instructions and cold restart instructions, please refer to Figure 2 , Figure 2 This is another functional module diagram of the system restart control device provided by an embodiment of the present invention.

[0059] exist Figure 2 In the embodiment of the present invention, a parsing unit 201 is provided in the logic processing control module 20, and a serial port management module 30 is configured at the same time.

[0060] The management serial port module 30 is used to generate a remote restart instruction according to a preset rule and send it to the analysis unit 201 .

[0061] The preset rule may be: generating a remote restart instruction corresponding to the remote restart mode according to the remote restart mode selected by the user; or generating remote restart instructions of different types in order of levels;

[0062] The logic processing control module 20 is used to parse the remote restart instruction through the parsing unit 201 and determine whether the remote restart instruction is a hot restart instruction or a cold restart instruction.

[0063] In an optional implementation, data transmission between the management serial port module 20 and the parsing unit 201, and between the parsing unit 201 and the CPU may be performed using, but is not limited to, a UART (Universal Asynchronous Receiver / Transmitter) communication protocol.

[0064] It is understandable that the predefined rules are used to guide the management serial port module 30 on how to generate a remote restart instruction. In one rule, the user can choose different remote restart methods according to their needs. The management serial port module 30 will generate a corresponding remote restart instruction based on the user's choice. In another rule, there is a hierarchical order between different types of remote restart instructions, and the management serial port module 30 will generate instructions in sequence according to this hierarchical order. For example, in the process of generating a remote restart instruction, a pre-designed specific character or specific character combination may not be used or may be used to generate a remote restart instruction. This design ensures that the remote restart operation can be performed according to the user's needs or the priority of the instruction.

[0065] The parsing unit 201 parses the remote restart instruction. For example, taking the instruction type in the above example, the parsing process may be as follows: if the instruction content does not contain specific characters or character combinations, the system will determine that the instruction is a hot restart instruction. On the contrary, if the instruction content contains these specific characters or character combinations, the system will further identify whether these characters or combinations correspond to a hot restart mode or a cold restart mode. Taking the previous example, if the instruction content contains the "H" instruction, the remote restart instruction is identified as a hot restart instruction; if it contains the "M" instruction, it is identified as a cold restart instruction.

[0066] The user can flexibly select the remote restart mode according to actual needs by managing the serial port module 30. The parsing unit 201 can identify the remote restart mode selected by the user and determine whether it is a cold restart or a hot restart, thereby providing greater flexibility and convenience for the user.

[0067] In the embodiment of the present invention, considering that the CPU 10 can generally integrate various types of software, including user-oriented management software, hardware-oriented drivers, etc. Therefore, the embodiment of the present invention can be designed to use different software to capture different types of hot restart instructions and execute corresponding hot restart processes. Correspondingly, the embodiment of the present invention can also make corresponding improvements to the logic processing control module 20 to cooperate with the software to complete the hot restart process.

[0068] Next, the embodiment of the present invention will take the management software and driver in the CPU 10 as an example to explain the hot restart process in detail. It should be clear that in actual operation, there are far more than these two softwares that can execute the hot restart process. Users can flexibly set according to the software functions, and the embodiment of the present invention does not limit this.

[0069] In one embodiment of the present invention, a hot restart instruction and a corresponding hot restart process specifically for the management software 101 in the CPU 10 can be designed. In addition, a hardware module, a watchdog unit 202, can be integrated in the logic processing module 20. The watchdog unit 202 can receive a dog feeding signal sent by the watchdog program 102 of the CPU 10, thereby ensuring the efficient operation of the system monitoring and restart mechanism.

[0070] To understand the hot restart process under this structure, see Figure 3 , Figure 3 Another functional module diagram of the system restart control device provided by the embodiment of the present invention is shown in FIG. 2 .

[0071] exist Figure 3 In the example, the logic processing control module 20 transparently transmits the identified hot restart instruction to the CPU 10. After the management software 101 captures the hot restart instruction, it can send a shutdown signal to the watchdog program 102. In this way, the watchdog program 102's feeding signal is interrupted, triggering the watchdog unit 202 to output a timeout signal. After receiving the timeout signal, the logic processing control module 20 outputs a reset signal. The CPU 10 and Figure 2 Other peripheral modules omitted in the above will restart the system after receiving the reset signal.

[0072] When the hot restart operation fails due to a busy state or other unknown abnormalities in the management software 101, a hot restart instruction may continue to be issued to other software, or a cold restart instruction may be directly issued to ensure a successful restart of the system.

[0073] In another embodiment of the present invention, corresponding hot restart instructions and hot restart processes can also be set for the driver 103 in the CPU 10. The driver 103 can periodically detect whether there is a corresponding hot restart instruction. At the same time, a monitoring unit 203 is designed in the logic processing module 20. The driver 103 can be connected to the monitoring unit 203 through the multi-function pin of the CPU 10 to realize data transmission and monitoring. The multi-function pin can be, but is not limited to, a GPIO (General Purpose Input / Output) pin, such as GPIO0 and GPIO1.

[0074] To understand the hot restart process under this structure, see Figure 4 , Figure 4 Another functional module diagram of the system restart control device provided by the embodiment of the present invention is shown in FIG3. It should be noted that Figure 4 In the embodiment, if the driver 103 detects the hot restart instruction and executes the corresponding hot restart control process, the watchdog program 102 normally outputs the dog feeding signal to the watchdog unit 202.

[0075] exist Figure 4 In the example, the logic processing control module 20 transparently transmits the identified hot restart instruction to the CPU 10. When the driver 103 detects the hot restart instruction, it sends a preset specific pulse signal to the monitoring unit 203 through the multi-function pin. After receiving the specific pulse signal, the monitoring unit 203 notifies the logic processing control module 20 to output a reset signal.

[0076] In the above two implementations, whether it is the management software 101 or the driver 103, when encountering a busy state or other unknown abnormalities that cause the hot restart operation to fail, the following two implementations can be adopted. In one implementation, a corresponding hot restart instruction can be issued to other software of the CPU 10 to continue to execute the remote hot restart process. In another implementation, a cold restart instruction can also be directly issued to restart the entire system. These two implementations can ensure that the system can quickly recover and restart when facing different fault conditions.

[0077] It should be understood that in the CPU 10, using the management software 101 or the driver 103 to perform hot restart is an optional implementation. In actual operation, it is possible to choose to let only the management software 101 be responsible for hot restart, without configuring the hot restart control function in the driver 103; vice versa, it is also possible to implement hot restart only through the driver 103, while the management software 101 is not configured with the hot restart control function. In addition, it is also possible to choose to configure the hot restart control function for both the management software 101 and the driver 103, so as to build a hierarchical hot restart mechanism.

[0078] For example, in combination with the "conventional hot restart instruction" of level 1 and the "enhanced hot restart instruction" of level 2 mentioned above, the "conventional hot restart instruction" (level 1) can be associated with the management software 101, and the "enhanced hot restart instruction" (level 2) can be associated with the driver 103. In this way, the user can first perform a conventional hot restart from the management software 101, and then the driver 103 can perform an enhanced hot restart, or directly choose to perform the highest level of enhanced hot restart process, that is, the driver 103 can complete it. This flexible configuration scheme provides users with a variety of control options, allowing them to choose according to different application scenarios and needs.

[0079] According to the above description, no matter which software is selected to execute the hot restart process, the logic processing control module 20 outputs a reset signal to achieve hot restart. In order to ensure the realization of this function, in one embodiment of the present invention, a restart unit 204 can be specially designed in the logic processing control module 20. The restart unit 204 is specifically responsible for generating and transmitting the reset signal to ensure that the hot restart process can be successfully completed.

[0080] For easier understanding, see Figure 5 , Figure 5 Another functional module diagram of the system restart control device provided by the embodiment of the present invention is shown in FIG4. Figure 5 In the embodiment, the watchdog unit 202 and the monitoring unit 203 are connected to the restart unit 204, and the restart unit 204 is connected to the CPU 10 and other system modules via a reset bus;

[0081] When the restart unit 204 receives a timeout signal output by the watchdog unit 202, or receives a notification signal output by the monitoring unit 203, it generates a reset signal and transmits the reset signal to the CPU 10 and other peripheral modules through the reset bus to complete the system restart of the CPU 10 and other peripheral modules.

[0082] It should be understood that Figure 5 The figure shows that the watchdog unit 202 outputs a timeout signal to the restart unit 204 and the monitoring unit 203 outputs a notification signal to the restart unit 204. However, in actual situations, only one of the monitoring unit 203 and the watchdog unit 202 can output a signal to the restart unit 204. This depends on which software currently running on the CPU 10 captures the hot restart instruction.

[0083] Furthermore, when the CPU software encounters an exception that causes the hot restart to fail, or the user wants to avoid manually disconnecting the power supply and chooses to cold restart the network device, an embodiment of the present invention can provide a power control circuit. In this design, the logic processing control module 20 can realize the remote cold restart operation by controlling the power control circuit, and the entire process does not require manual intervention, thereby improving the convenience and efficiency of the operation.

[0084] For easier understanding, see Figure 6 , Figure 6 Another functional module diagram of the system restart control device provided by the embodiment of the present invention is shown in Figure 5. Figure 6 In the embodiment, the power control circuit 40 is connected to the logic processing control module 20 . Figure 6 The power supply for CPU 10 and other peripheral modules is omitted.

[0085] The logic processing control module 20 is specifically used to notify the power control circuit 40 to output a power-off signal when a cold restart instruction is detected; the power control circuit 40 is used to output the power-off signal and output a power-on signal after waiting for a preset time.

[0086] To understand the working principle of the power supply control circuit 40, please refer to Figure 7 , Figure 7 A circuit implementation diagram of the power control circuit 40 provided by an embodiment of the present invention is shown. Among them, the restart enable terminal (reboot_en) of the power control circuit 40 is connected to the logic processing control module 20, and the power enable terminal (power_en) is connected to the power supply of the CPU and other peripheral modules.

[0087] When the power control circuit 40 works normally, the reboot_en terminal outputs a low level signal. At this time, the Q1 transistor is in the off state. The 12V power supply is divided to power the U2 reset device. The U2 reset device outputs a high level signal to the power_en terminal, and the power is in the on state.

[0088] When the logic processing control module 20 recognizes the cold restart instruction, it outputs a high-level signal to reboot_en. At this time, the Q1 transistor is turned off, and the input power supply voltage of the U2 reset device is pulled to 0V, triggering the reset function of the U2 reset device, and outputs a low-level (0V) pulse signal to the power_en terminal. This pulse signal has a certain delay, such as 200 milliseconds (ms). During the period when the power_en terminal outputs a low-level signal, the power of the CPU and other peripheral modules will be turned off. After the low-level pulse ends, the power_en terminal signal is pulled back to a high-level state, so that the power is turned on again.

[0089] Continue to refer Figure 7 In order to adjust the level state of the restart enable (reboot_en) terminal of the power control circuit 40 and thus control the turning on and off of the power supply, in one embodiment of the present invention, a cold restart instruction management unit 205 can be added to the logic processing control module 20, so that the power control circuit 40 can flexibly perform the turning on or off operation of the power supply according to the instructions of the cold restart instruction management unit 205.

[0090] For easier understanding, see Figure 8 , Figure 8 Another functional module diagram of the system restart control device provided by the embodiment of the present invention is shown in Figure 6. Figure 8When the parsing unit 201 parses the cold restart instruction, it transmits the cold restart instruction to the cold restart instruction management unit 205. At this time, the cold restart instruction management unit 205 outputs a high level signal to the reboot_en terminal of the power control circuit 40, so that the power control circuit 40 can achieve the effect of turning off the power.

[0091] In one embodiment of the present invention, the function of the power control circuit 40 is not limited to responding to the remote cold restart instruction to achieve the remote cold restart of the network device, it also has the ability to independently perform power-on and power-off operations. Specifically:

[0092] The logic processing control module 20 is used to control the power control circuit 40 to turn on the power supply when a power-on instruction is detected; on the contrary, when a power-off instruction is detected, the power control circuit 40 is controlled to cut off the power supply. Such a design enables the power control circuit 40 to flexibly respond to different operation requirements, thereby improving the autonomy and response efficiency of the system.

[0093] In other words, the management serial port module 30 can not only generate a remote restart instruction, but also generate a power-on instruction and a power-off instruction. In order to distinguish these two instructions, a design method similar to the hot restart instruction and the cold restart instruction can be adopted to generate the power-on instruction and the power-off instruction through specific characters or character combinations. For example, as an example, the N instruction (Ctrl+ALT+N) can be defined as a power-on instruction, and the S instruction (Ctrl+ALT+S) can be defined as a power-off instruction.

[0094] Reference Figure 8 When the parsing unit 201 parses the N instruction, it will trigger the cold restart instruction management unit 205 to output a fixed low-level signal at the reboot_en terminal to start the power supply. On the contrary, when the S instruction is parsed, the cold restart instruction management unit 205 will output a fixed high-level signal at the reboot_en terminal to cut off the power supply, making the power supply control more accurate and convenient, and also improving the automation of the system.

[0095] For an overall understanding of the remote hot restart and remote cold restart process provided by the embodiments of the present invention, please refer to Fig. 9 , Fig. 9 Another functional module diagram of the system restart control device provided by the embodiment of the present invention is shown in FIG7. Fig. 9 , reviewing the hierarchical restart mechanism mentioned above in the embodiment of the present invention, we can get the following: Fig.10 The functional diagram of the 3-level system restart mechanism is shown.

[0096] The level 1 restart instruction can be understood as a conventional soft restart instruction. When the management software 101 of the CPU 10 receives this instruction, it will shut down the watchdog program 102, thereby triggering the timeout of the watchdog unit 201 in the logic processing control module 20. This timeout event will cause the restart unit 204 in the logic processing control module 20 to output a reset signal to perform a hardware reset operation on the CPU 10 and other peripheral modules, thereby causing the system to enter a restart process. If the management software 101 fails to respond to the level 1 restart instruction due to being busy or other unknown abnormalities, it will advance to execute the level 2 restart instruction to complete the restart process.

[0097] The level 2 restart instruction can be understood as an enhanced software restart instruction, which does not rely on the management software 101 of the CPU 10 for execution. Instead, this instruction is directly responded to by the driver 103 of the CPU 10. When the driver 103 detects the level 2 restart instruction, it will directly control the GPIO pin of the CPU 10 to output a preset specific waveform signal to the monitoring unit 203 of the logic processing control module 20, and then the monitoring unit 203 notifies the restart unit 204 to output a reset signal to trigger the system restart.

[0098] The level 3 restart instruction can be understood as a super cold restart instruction, which is completely independent of the driver 103 and management software 102 of the CPU 10. This instruction is directly executed by the logic processing control module 20. Once the parsing unit 201 of the logic processing control module 20 recognizes the level 3 restart instruction, it will be passed to the cold restart instruction management module 205, which will change the level state of the input power control circuit 40 to achieve the system power on and off. Under the level 3 restart instruction, the system power off / power on behavior can also be controlled separately at the same time for system maintenance.

[0099] By constructing Fig.10 The three-level restart mechanism shown in the embodiment of the present invention not only helps the user to accurately locate the specific location of the system abnormality, but also greatly facilitates the analysis of the cause of the fault.

[0100] It should be understood that Fig. 9 The hot restart instruction and cold restart instruction issued by the management serial port module 30, as well as the corresponding hot restart process and cold restart process are shown in the figure, which is mainly to help intuitively understand the specific differences between the hot restart and cold restart processes in the embodiment of the present invention. In actual application, for a single remote restart operation, the device will only execute one of the hot restart process or the cold restart process according to the specific instruction type issued by the user, ensuring that the user can select the appropriate restart method according to actual needs.

[0101] It is worth noting that Fig.10The three-level system restart mechanism shown is only an example. In actual application, the user can flexibly design the specific level of the remote restart mechanism according to their own needs, combined with the software type and function of CPU10, so that the present invention can adapt to various application scenarios and meet the specific needs of different users.

[0102] It can be seen from the above embodiments that the system restart control device provided by the embodiments of the present invention has the following advantages:

[0103] The embodiment of the present invention realizes the functions of remote hot restart and remote cold restart by integrating the application layer software, driver and hardware logic processing control module in the CPU system. In the case that the remote hot restart fails, the logic processing control module can automatically perform a remote cold restart without manual intervention. In addition, the embodiment of the present invention can also construct a hierarchical restart mechanism based on the hot restart performed by different software and the cold restart performed by physical hardware. This mechanism can not only accurately locate the faulty device system, but also quickly identify the root cause of the problem.

[0104] For multiple remote restart modes, the present invention presets specific characters or character strings to design corresponding instructions. The logic processing control module contains a parsing unit that can accurately parse these agreed characters or character groups, identify remote restart instructions corresponding to different restart modes, and thus achieve fine control of the system restart, power-off and power-on processes. This design greatly simplifies the remote management and maintenance process of the device, significantly improves the usability and maintainability of the product, and provides customers with more convenient and reliable technical support.

[0105] Finally, the embodiment of the present invention provides a low-cost remote cold restart solution for network equipment through a power control circuit constructed by separation devices.

[0106] based on Figures 1 to 9 With the same inventive concept, an embodiment of the present invention further provides a system restart control method, which can be applied to a network device in which the system restart control device 00 provided by an embodiment of the present invention is deployed. Fig.11 , Fig.11 A schematic flow chart of a system restart control method provided by an embodiment of the present invention, the method comprising:

[0107] S501: When the logic processing control module identifies that the remote restart instruction is a hot restart instruction, the hot restart instruction is transparently transmitted to the CPU;

[0108] S502: The CPU controls the execution of the hot restart process by obtaining the software of the hot restart instruction;

[0109] S503: When the logic processing control module identifies that the remote restart instruction is a cold restart instruction, the control executes the cold restart process.

[0110] It is understandable that in the embodiment of the present invention, the logic processing control module 20 is responsible for executing the cold restart process, and the relevant software of the CPU is responsible for controlling the execution of the hot restart process. Figures 1 to 9 The above is described in detail in the embodiments of the present invention, so it will not be repeated here.

[0111] In the system restart control method provided by the embodiment of the present invention, when the logic processing control module identifies that the remote restart instruction is a hot restart instruction, the hot restart instruction is transmitted to the CPU, and the CPU controls the execution of the hot restart process by obtaining the software of the hot restart instruction; when the logic processing control module identifies that the remote restart instruction is a cold restart instruction, the cold restart process is controlled. This method can effectively avoid the problem that the remote restart instruction cannot be responded to due to system software anomalies, and ensures the smooth execution of the restart process. In addition, the embodiment of the present invention responds to the hot restart instruction by obtaining the corresponding software of the soft restart instruction in the CPU, which means that different hot restart instructions will be captured by different software and execute their preset control processes. In this way, the fault location can be located when the hot restart fails. In particular, the embodiment of the present invention can directly control the execution of the cold restart process through the logic processing control module without manual intervention. Finally, the embodiment of the present invention does not add an additional dedicated MCU controller to execute the remote restart process, which saves costs in hardware design.

[0112] In one embodiment of the present invention, see Fig.12 , Fig.12 60 is a structural block diagram of a network device provided in an embodiment of the present invention. The network device 60 may include a system re-control device 00 provided in an embodiment of the present invention. Alternatively, the network device 60 may be used to perform the following steps: Fig.11 The system restart control method shown.

[0113] In an optional implementation, the network device 60 may be, but is not limited to, any electronic product that can perform human-computer interaction with a user, such as a personal computer, a tablet computer, a server, a switch, a router, etc.

[0114] Understandably, Fig.12 The structure shown is for illustration only. The network device 60 may also include Fig.12 More or fewer components as shown, or with Fig.12 Different configurations shown. Fig.12 The components shown may be implemented in hardware, software or a combination thereof.

[0115] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a part of the module, program segment or code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0116] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

[0117] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0118] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A system restart control device, characterized in that: It includes a CPU and a logic processing control module; the CPU and the logic processing control module are connected via a management bus; The logic processing control module is used to transparently transmit the hot restart instruction to the CPU when identifying that the remote restart instruction is a hot restart instruction; The CPU is used to control the execution of the hot restart process by obtaining the software of the hot restart instruction; The logic processing control module is further configured to control the execution of a cold restart process when it is identified that the remote restart instruction is a cold restart instruction.

2. The system restart control device according to claim 1, characterized in that: The logic processing control module is provided with a watchdog unit; The CPU is used to, when the software is the management software of the CPU, shut down the watchdog program of the CPU through the management software to trigger the watchdog unit to output a timeout signal; The timeout signal is used to instruct the logic processing control module to output a reset signal.

3. The system restart control device according to claim 1 or 2, characterized in that: The logic processing control module is also provided with a monitoring unit; The CPU is used to generate a specific pulse signal and send it to the monitoring unit when the software is a driver of the CPU, so as to trigger the monitoring unit to notify the logic processing control module to output a reset signal.

4. The system restart control device according to claim 3, characterized in that: The logic processing control module is also provided with a restart unit; the restart unit is connected to the CPU via a reset bus; The logic processing control module is specifically configured to generate the reset signal through the restart unit, and transmit the reset signal to the CPU through the reset bus.

5. The system restart control device according to claim 1, characterized in that: Also included is a power supply control circuit; The logic processing control module is specifically used to notify the power control circuit to output a power shutdown signal when the cold restart instruction is detected; The power control circuit is used to output the power off signal and output the power on signal after waiting for a preset time.

6. The system restart control device according to claim 5, characterized in that: The logic processing control module is also provided with a cold restart instruction management unit; The logic processing control module is specifically configured to send a cold restart notification signal to the power control circuit through the cold restart instruction management unit.

7. The system restart control device according to claim 5, characterized in that: The logic processing control module is also used to control the power control circuit to turn on the power when a power-on instruction is detected; and to control the power control circuit to disconnect the power when a power-off instruction is detected.

8. The system restart control device according to any one of claims 1-2 and 4-7, characterized in that: It also includes a serial port management module; the logic processing control module is also provided with a parsing unit; The management serial port module is used to generate the remote restart instruction according to a preset rule and send it to the analysis unit; The preset rules include: generating a remote restart instruction corresponding to the remote restart mode according to the remote restart mode selected by the user; generating remote restart instructions of different types in order of levels; The logic processing control module is used to parse the remote restart instruction through the parsing unit and determine whether the remote restart instruction is a hot restart instruction or a cold restart instruction.

9. A system restart control method, characterized in that: Applied to network equipment; the network equipment is provided with a system restart control device, and the system restart control device includes a CPU and a logic processing control module; The CPU and the logic processing control module are connected via a management bus; the method comprises: When the logic processing control module identifies that the remote restart instruction is a hot restart instruction, transparently transmits the hot restart instruction to the CPU; The CPU controls the execution of the hot restart process by obtaining the software of the hot restart instruction; When the logic processing control module identifies that the remote restart instruction is a cold restart instruction, the control executes a cold restart process.

10. A network device, characterized in that: The network device comprises the system restart control apparatus as described in any one of claims 1 to 8; or, the network device is used to execute the system restart control method as described in claim 9.