Self-recovery method and system for startup exception of domestic computer and storage medium
By introducing self-recovery software logic and RTC register processing in domestic computers, the problem of inability to boot due to insufficient design margin and device compatibility is solved, and low-cost and high-reliability self-recovery and boot is achieved, improving user experience and device stability.
Patent Information
- Application Number
- CN202510872044.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-26
- Publication Date
- 2025-08-26
AI Technical Summary
Domestic computers frequently fail to turn on after not being used for a long time, resulting in a decline in user experience and an increase in repair frequency, mainly due to insufficient design margin and poor equipment compatibility.
It provides a self-recovery method for a domestic computer. It sends a startup request to the CPU+PCH module through the MCU/EC module. If the successful signal is not returned, the self-recovery software logic will be triggered, the power off processing will be processed and the request will be sent again, clear the RTC register and try to boot again, support multiple attempts and alarm will be issued after the preset number is reached.
It realizes the low-cost and high-reliability self-recovery and power-on function, significantly reducing the inability to boot, reducing the frequency of user repairs, and improving user experience.
Smart Images

Figure CN120540893A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer exception processing, and more specifically, to a startup exception self-recovery method, system and storage medium for a domestic computer. Background Art
[0002] As domestically produced computer platforms gain market share in notebook and desktop computer products, users are increasingly demanding on overall system stability. However, the late start of domestic platforms and the lack of accumulated technical maturity have led to numerous obstacles in the product optimization process.
[0003] When shipments fail to reach scale within a certain period, batch verification data and after-sales service data cannot be fed back to the design side in a timely manner, resulting in a time gap in design optimization. This directly leads to poor system stability and device compatibility, with abnormal startup issues being particularly prominent.
[0004] Due to insufficient design redundancy and poor device compatibility, some domestically produced platform machines on the market frequently fail to boot up after prolonged periods of inactivity. These boot-up anomalies not only severely impact user experience, leading to a dramatic decline in user experience, but also necessitate repairs, which undoubtedly increases user time and inconvenience. Therefore, resolving these boot-up anomalies and improving the stability and compatibility of domestically produced computer platform products are critical issues that require urgent resolution. Summary of the Invention
[0005] In view of the above problems, the present invention provides an abnormal self-recovery startup method, system and storage medium for domestic computers, aiming to solve the problem of failure to boot due to insufficient design margin, device compatibility issues or RTC register abnormalities. The main process includes: after receiving the user's power-on signal, the MCU / EC module sends a power-on request to the CPU+PCH module; if the CPU+PCH module does not return the external device successful initialization signal, the self-recovery software logic is triggered, and the power-off process is automatically performed and the power-on request is resent; if the CPU+PCH module does not return a successful power-on signal, the RTC register clearing operation is performed and the power-on attempt is attempted again; in addition, multiple power-on attempts are supported, and the system stops and issues an alarm after reaching the preset number of attempts. A low-cost, high-reliability self-recovery startup function is achieved through software logic without the need for additional hardware support, significantly reducing the failure to boot due to insufficient design margin or device compatibility issues; by automatically handling RTC register abnormalities, the frequency of user repairs is reduced, and the user experience is improved.
[0006] A first aspect of the present invention provides a method for self-recovery of a startup abnormality of a domestic computer, the method comprising: After determining that the first power-on processing signal is received; generating and sending a first power-on request according to the first power-on processing signal; Determining whether a first startup success signal is received; If not, the first self-recovery logic is triggered; If yes, determining whether a first peripheral initialization signal is received; If not, the second self-recovery logic is triggered; If yes, it means the boot is successful.
[0007] In this solution, the first self-recovery logic is specifically: Controlling a power supply signal to disconnect the power supply to the CPU+PCH module until a set first time interval has passed, and then restoring the power supply to the CPU+PCH module; Get the first log; Determine a first register parameter according to the first log; Sending an RTC register initialization request according to the first register parameter; Generate and send a second power-on request; Perform the first logging.
[0008] In this solution, the second self-recovery logic is specifically as follows: Controlling a power supply signal to disconnect the power supply to the CPU+PCH module and the external platform device until a set second time interval has passed, and then restoring the power supply to the CPU+PCH module and the external platform device; Generate and send a third power-on request; Perform secondary logging.
[0009] This plan also includes: Based on the preset RTC flag information, adjust the flag of the RTC register; Determining an initialization level according to the RTC register initialization request; Initialize the RTC register according to the initialization level and the first register parameter.
[0010] This plan also includes: Get the first log and the second log; Obtain a first self-recovery count and a second self-recovery count according to the first log and the second log respectively; Calculating the sum of the first self-recovery number and the second self-recovery number to obtain a third self-recovery number; Determining whether the third self-recovery number reaches a preset third number threshold; If not, continue to trigger the first self-recovery logic or the second self-recovery logic; If so, stop triggering the first self-recovery logic and the second self-recovery logic, and issue a warning message.
[0011] In this solution, the warning information is issued as follows: Determining whether the first self-recovery number exceeds a preset first number threshold; If so, set the indicator light to be always on; Determining whether the second self-recovery number exceeds a preset second number threshold; If yes, set the indicator light to flash.
[0012] A second aspect of the present invention provides a system for self-recovering from power-on anomalies in a domestically produced computer, including a method program for self-recovering from power-on anomalies in a domestically produced computer. When the method program is executed by the processor, the following steps are implemented: After determining that the first power-on processing signal is received; generating and sending a first power-on request according to the first power-on processing signal; Determining whether a first startup success signal is received; If not, the first self-recovery logic is triggered; If yes, determining whether a first peripheral initialization signal is received; If not, the second self-recovery logic is triggered; If yes, it means the boot is successful.
[0013] In this solution, the first self-recovery logic is specifically: Controlling a power supply signal to disconnect the power supply to the CPU+PCH module until a set first time interval has passed, and then restoring the power supply to the CPU+PCH module; Get the first log; Determine a first register parameter according to the first log; Sending an RTC register initialization request according to the first register parameter; Generate and send a second power-on request; Perform the first logging.
[0014] In this solution, the second self-recovery logic is specifically as follows: Controlling a power supply signal to disconnect the power supply to the CPU+PCH module and the external platform device until a set second time interval has passed, and then restoring the power supply to the CPU+PCH module and the external platform device; Generate and send a third power-on request; Perform secondary logging.
[0015] The third aspect of the present invention provides a computer-readable storage medium, which includes a domestic computer startup abnormality self-recovery method program. When the domestic computer startup abnormality self-recovery method program is executed by a processor, the steps of the domestic computer startup abnormality self-recovery method as described in any one of the above items are implemented.
[0016] The present invention provides a method, system, and storage medium for self-recovery of power-on anomalies in a domestically produced computer. After receiving a power-on signal from the user, the MCU / EC module sends a power-on request to the CPU+PCH module. If the CPU+PCH module does not return a successful external device initialization signal, the self-recovery software logic is triggered, automatically performing a power-off process and resending the power-on request. If the CPU+PCH module does not return a successful power-on signal, a second self-recovery software logic is triggered, executing a clearing operation of the RTC register and attempting to power on again. This software logic implements a low-cost, highly reliable self-recovery power-on function without the need for additional hardware support, significantly reducing the inability to power on caused by insufficient design margins or device compatibility issues. By automatically handling RTC register anomalies, the frequency of user repairs is reduced, improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and therefore should not be regarded as limiting the scope.
[0018] Figure 1 A domestically produced computer device is shown; Figure 2 A flowchart of a method for self-recovery of a startup abnormality of a domestically produced computer according to the present invention is shown; Figure 3 shows an operation flow chart of the first self-recovery logic provided by an embodiment of the present invention; Figure 4 shows an operation flow chart of the second self-recovery logic provided by an embodiment of the present invention; Figure 5 The present invention shows a block diagram of a self-recovery system for abnormal startup of a domestic computer. DETAILED DESCRIPTION
[0019] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. 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 ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0020] Unless otherwise defined, all terms (including technical and scientific terms) used in the embodiments of the present invention have the same meaning as commonly understood by those skilled in the art to which the present invention belongs. It should also be understood that terms such as those defined in common dictionaries should be interpreted as having meanings consistent with their meanings in the context of the relevant technology, and should not be interpreted in an idealized or extremely formal sense, unless explicitly defined in this manner in the embodiments of the present invention.
[0021] The words "first", "second" and similar terms used in the embodiments of the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. Words such as "one", "an" or "the" do not indicate a quantity limitation, but rather indicate the existence of at least one. Similarly, words such as "include" or "comprise" mean that the elements or objects preceding the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Words such as "connect" or "connected" are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The steps before or after the method of the embodiment of the present invention do not necessarily have to be performed in exact order. On the contrary, the various steps may be processed in reverse order or simultaneously. At the same time, other operations may be added to these processes, or one or more steps may be removed from these processes.
[0022] 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.
[0023] Domestic computers: generally refers to computer systems that currently have independent intellectual property rights, including hardware platforms such as Loongson, Feiteng, Hygon, Zhaoxin, and Shenwei, and are equipped with domestic software such as Kylin / UOS.
[0024] MCU / EC: Microcontroller Unit (MCU) / Embedded Controller, also known as single-chip microcomputer (Single Chip Microcomputer) or single-chip microcomputer or embedded controller.
[0025] CPU: The Central Processing Unit (CPU) is the computing and control core of the computer system and is the final execution unit for information processing and program running.
[0026] PCH: The full name is Platform Controller Hub, which replaces the familiar I / O path controller (I / O Controller Hub, abbreviated as ICH). It is the control of connecting and managing other low-speed I / O devices in the computer platform, such as Audio Codec, SATA, USB, LAN and other low-speed devices.
[0027] A real-time clock (RTC) is an electronic logic control system or device design module used to provide precise time information. Its primary function is to maintain accurate time, continuing to provide the correct time and save other necessary register data even after a system power outage or restart. The RTC in a computer system is typically backed up by a battery on the motherboard to ensure that time information is maintained even after a power outage.
[0028] Figure 1 A domestically produced computer device is shown.
[0029] like Figure 1 As shown, the domestic computer device includes: The MCU / EC module is a microcontroller unit used to process the power-on signal of domestic computers; The CPU+PCH module is a central processing unit and platform control bus, which is used to control the operation of the domestic computer. The CPU+PCH module also includes an RTC register, which is used to store parameter data to maintain the time accuracy of the logic control system; External platform devices are peripherals connected to the domestic computer CPU, including memory, hard disk, USB, LAN and other external devices.
[0030] Figure 2 The present invention shows a flowchart of a method for self-recovery of a startup abnormality of a domestic computer.
[0031] like Figure 2 As shown, the first aspect of the present invention discloses a method for self-recovery of a startup abnormality of a domestic computer, the method comprising: S102, after determining that a first power-on processing signal is received; S104: Generate and send a first power-on request according to the first power-on processing signal; S106, determining whether a first startup success signal is received; S108, if not, triggering the first self-recovery logic; S110, if yes, determining whether a first peripheral initialization signal is received; S112, if not, triggering the second self-recovery logic; S114: If yes, it indicates that the boot is successful.
[0032] It should be noted that the first power-on processing signal is a power-on trigger signal received from the user through a physical button, sensor signal or touch input; the first power-on request is a power-on request instruction sent by the MCU / EC module to the CPU+PCH module; the first startup success signal is a signal fed back to the MCU / EC module after the CPU+PCH module is successfully initialized; the first peripheral initialization signal is information fed back to the MCU / EC module by the CPU+PCH module based on the initialization status of the external platform device; the first self-recovery logic is a preset code running logic for recovering from power-on abnormalities; the second self-recovery logic is another preset code running logic for recovering from power-on abnormalities.
[0033] In this embodiment, to address boot failures caused by insufficient design margins, device compatibility issues, or RTC register anomalies, two self-recovery logic programs are implemented to enable the domestic computer to attempt a self-recovery boot. Upon receiving a first boot processing signal from the user via a physical key, sensor signal, or touch input device, if the MCU / EC module detects that the domestic computer is in the shutdown state, it generates and sends a first boot request to the CPU+PCH module to boot the domestic computer. Upon receiving the first boot request, the CPU+PCH module initializes the CPU and PCH, then drives the external platform device to initialize and boot. If the CPU and PCH initialization fails, and the MCU / EC module does not receive feedback from the CPU+PCH module within a set time, it determines that the boot failure was caused by an RTC register anomaly or a CPU initialization anomaly. In this case, it executes the boot anomaly recovery program corresponding to the first self-recovery logic to attempt a reboot. If the CPU and PCH initialization succeeds, the MCU / EC module receives a first boot success signal from the CPU+PCH module within a set time, and then determines the initialization status of the connected external platform device. If the external platform device fails to initialize, the MCU / EC module will not receive the external platform initialization status signal from the CPU+PCH module within the set time, and it will be determined that the startup failure was caused by an external platform device abnormality. At this time, it will execute the startup abnormality recovery program corresponding to the second self-recovery logic and attempt to restart the computer. If the external platform device initializes successfully, the MCU / EC module will receive the first peripheral initialization signal from the CPU+PCH module within the set time, and it can be determined that the domestic computer has successfully started.
[0034] Figure 3 The flowchart of the operation of the first self-recovery logic provided by the embodiment of the present invention is shown.
[0035] According to an embodiment of the present invention, Figure 3 As shown, the first self-recovery logic is specifically: S302, controlling a power supply signal to disconnect the power supply to the CPU+PCH module until a set first time interval has passed, and then restoring the power supply to the CPU+PCH module; S304, obtaining a first log; S306, determining a first register parameter according to the first log; S308, sending an RTC register initialization request according to the first register parameter; S310, generating and sending a second power-on request; S312, executing the first log record.
[0036] It should be noted that the first log is used to record the status information of a domestic computer that fails to boot and needs to execute the first self-recovery logic; the first register parameter is a reference value used to update the RTC register. The operation process of the first self-recovery logic provided in this embodiment is specifically as follows: controlling the power supply signal to disconnect the power supply of the CPU+PCH module and re-power it after a first time interval; determining the first register parameter based on the first log, generating and sending an RTC register initialization request; generating and sending a second boot request, and executing the first log record.
[0037] In the operation process of the first self-recovery logic, first, the power supply signal is controlled to cut off the power supply of the CPU+PCH module, and after waiting for the first time interval, the power supply of the CPU+PCH module is restored. Secondly, the number of times the first self-recovery logic is executed to attempt self-recovery during this startup is queried from the first log to set a reference value for updating the RTC register, wherein the more attempts, the more flag bits of the RTC register need to be initialized. Then, an RTC register initialization request is sent, and the CPU+PCH module updates the flag bits of the RTC register according to the RTC register initialization request. Finally, the MCU / EC module sends a second startup request to the CPU+PCH module to try to restart the machine and record the log.
[0038] Figure 4 The flowchart of the operation of the second self-recovery logic provided by the embodiment of the present invention is shown.
[0039] According to an embodiment of the present invention, Figure 4 As shown, the second self-recovery logic is specifically: S402, controlling a power supply signal to disconnect the power supply to the CPU+PCH module and the external platform device until a set second time interval has passed, and then restoring the power supply to the CPU+PCH module and the external platform device; S404, generating and sending a third power-on request; S406: Execute the second log record.
[0040] It should be noted that the second log is used to record status information when a domestic computer fails to boot and requires the execution of the second self-recovery logic. The specific operation process of the second self-recovery logic provided in this embodiment is as follows: controlling the power supply signal to disconnect the power supply of the CPU+PCH module and external platform devices, and then re-enabling power after a certain time interval; generating and sending a first boot request, and executing the second log record.
[0041] The second self-recovery logic first controls the power supply signal to cut off power to the CPU+PCH module and external platform devices. After a second time interval, power is restored to the CPU+PCH module and external platform devices. The MCU / EC module then sends a third power-on request to the CPU+PCH module to attempt a power-on restart and log the request.
[0042] According to an embodiment of the present invention, the further embodiment includes: Based on the preset RTC flag information, adjust the flag of the RTC register; Determining an initialization level according to the RTC register initialization request; Initialize the RTC register according to the initialization level and the first register parameter.
[0043] It should be noted that the RTC register initialization process provided in this embodiment is specifically as follows: based on preset RTC flag information, adjusting the RTC register flag according to the RTC register initialization request, confirming the initialization level, and initializing the RTC register.
[0044] In this embodiment, since an RTC register anomaly is identified, the flag bits used to configure system data and mark power-on status must first be configured. That is, the flag bits of the RTC register are adjusted according to the preset RTC flag information. Next, the RTC register initialization request is parsed to obtain the initialization level. Based on the initialization level, the data bits in the RTC register that require initialization and update are selected. Finally, the data bits in the RTC register that require adjustment are initialized and updated according to the first register parameter.
[0045] According to an embodiment of the present invention, the further embodiment includes: Get the first log and the second log; Obtain a first self-recovery count and a second self-recovery count according to the first log and the second log respectively; Calculating the sum of the first self-recovery number and the second self-recovery number to obtain a third self-recovery number; Determining whether the third self-recovery number reaches a preset third number threshold; If not, continue to trigger the first self-recovery logic or the second self-recovery logic; If so, stop triggering the first self-recovery logic and the second self-recovery logic, and issue a warning message.
[0046] It should be noted that the first self-recovery count is the number of self-recovery attempts during the current startup by executing the first self-recovery logic; the second self-recovery count is the number of self-recovery attempts during the current startup by executing the second self-recovery logic. The self-recovery logic count verification process provided in this embodiment is specifically as follows: based on the first log and the second log, the first self-recovery count and the second self-recovery count are obtained respectively, and used to calculate the third self-recovery count; if the third self-recovery count reaches the preset third count threshold, the first self-recovery logic and the second self-recovery logic are stopped from being triggered, and a warning message is issued.
[0047] In this embodiment, multiple self-recovery boot attempts are configured, and after reaching a preset number of attempts, the system stops and issues an alarm. Under the same boot processing signal, if the total number of self-recovery attempts falls below a preset threshold, further self-recovery attempts are allowed. If the total number of self-recovery attempts reaches the preset threshold, further self-recovery attempts are disallowed, and an alarm is issued, indicating that the domestic computer cannot be booted through self-recovery.
[0048] According to an embodiment of the present invention, issuing warning information specifically includes: Determining whether the first self-recovery number exceeds a preset first number threshold; If so, set the indicator light to be always on; Determining whether the second self-recovery number exceeds a preset second number threshold; If yes, set the indicator light to flash.
[0049] It should be noted that in this embodiment, the warning LED's lighting status is controlled to indicate that the domestic computer cannot be powered on through self-recovery. A steady light indicates that the number of times the first self-recovery logic has been triggered exceeds a limit; a flashing light indicates that the number of times the second self-recovery logic has been triggered exceeds a limit.
[0050] It is worth mentioning that it also includes: confirming the abnormal peripheral device number according to the first peripheral device initialization signal; Determining whether the abnormal peripheral device is the first peripheral device according to the abnormal peripheral device number; If so, stop triggering the first self-recovery logic and the second self-recovery logic, and issue an alarm message; If not, continue to trigger the first self-recovery logic or the second self-recovery logic.
[0051] It should be noted that in this embodiment, the self-recovery strategy is adjusted according to the initialization status of the peripherals. The peripheral number of the external platform device with initialization abnormality is confirmed through the first peripheral initialization signal. If the peripheral number points to the first peripheral, the self-recovery logic is stopped from being triggered and an alarm message is issued; wherein, the first peripheral is a device that has a significant impact on the operation of the domestic computer, such as memory, hard disk, etc. The alarm message is used to indicate that the core peripherals in the domestic computer are abnormal and need maintenance.
[0052] It is worth mentioning that it also includes: According to the first self-recovery number, the first time interval is updated according to a preset time adjustment algorithm; According to the second self-recovery number, the second time interval is updated according to a preset time adjustment algorithm.
[0053] It should be noted that in this embodiment, the corresponding interval is adjusted based on the number of times the self-recovery logic is triggered during the current boot process to adjust the power-off period of the CPU+PCH module or external platform device. The more times the self-recovery logic is triggered, the longer the corresponding interval. By extending the power-off period, the CPU+PCH module or external platform device is completely powered off, improving the initialization success rate. By shortening the power-off period, the operating time of the self-recovery logic is reduced, thereby improving boot efficiency.
[0054] It is worth mentioning that it also includes: Get the first log and the second log; generating a fault report according to the first log or the second log; The fault report is sent to a fault analysis neural network model to obtain maintenance suggestions.
[0055] It should be noted that in this embodiment, a corresponding fault report is also generated based on the boot failure time, boot failure reason, number of attempts, etc. in the log information. The fault report is sent to the neural network model for fault analysis to obtain maintenance suggestions, which are used to improve the maintenance efficiency of domestic computers.
[0056] Figure 5 The present invention shows a block diagram of a self-recovery system for abnormal startup of a domestic computer.
[0057] like Figure 5As shown, the second aspect of the present invention discloses a system 5 for self-recovering from power-on anomalies of a domestically produced computer, comprising a memory 51 and a processor 52. The memory includes a program for self-recovering from power-on anomalies of a domestically produced computer. When the program is executed by the processor, the following steps are implemented: After determining that the first power-on processing signal is received; generating and sending a first power-on request according to the first power-on processing signal; Determining whether a first startup success signal is received; If not, the first self-recovery logic is triggered; If yes, determining whether a first peripheral initialization signal is received; If not, the second self-recovery logic is triggered; If yes, it means the boot is successful.
[0058] It should be noted that the first power-on processing signal is a power-on trigger signal received from the user through a physical button, sensor signal or touch input; the first power-on request is a power-on request instruction sent by the MCU / EC module to the CPU+PCH module; the first startup success signal is a signal fed back to the MCU / EC module after the CPU+PCH module is successfully initialized; the first peripheral initialization signal is information fed back to the MCU / EC module by the CPU+PCH module based on the initialization status of the external platform device; the first self-recovery logic is a preset code running logic for recovering from power-on abnormalities; the second self-recovery logic is another preset code running logic for recovering from power-on abnormalities.
[0059] In this embodiment, to address boot failures caused by insufficient design margins, device compatibility issues, or RTC register anomalies, two self-recovery logic programs are implemented to enable the domestic computer to attempt a self-recovery boot. Upon receiving a first boot processing signal from the user via a physical key, sensor signal, or touch input device, if the MCU / EC module detects that the domestic computer is in the shutdown state, it generates and sends a first boot request to the CPU+PCH module to boot the domestic computer. Upon receiving the first boot request, the CPU+PCH module initializes the CPU and PCH, then drives the external platform device to initialize and boot. If the CPU and PCH initialization fails, and the MCU / EC module does not receive feedback from the CPU+PCH module within a set time, it determines that the boot failure was caused by an RTC register anomaly or a CPU initialization anomaly. In this case, it executes the boot anomaly recovery program corresponding to the first self-recovery logic to attempt a reboot. If the CPU and PCH initialization succeeds, the MCU / EC module receives a first boot success signal from the CPU+PCH module within a set time, and then determines the initialization status of the connected external platform device. If the external platform device fails to initialize, the MCU / EC module will not receive the external platform initialization status signal from the CPU+PCH module within the set time, and it will be determined that the startup failure was caused by an external platform device abnormality. At this time, it will execute the startup abnormality recovery program corresponding to the second self-recovery logic and attempt to restart the computer. If the external platform device initializes successfully, the MCU / EC module will receive the first peripheral initialization signal from the CPU+PCH module within the set time, and it can be determined that the domestic computer has successfully started.
[0060] According to an embodiment of the present invention, the first self-recovery logic is specifically: Controlling a power supply signal to disconnect the power supply to the CPU+PCH module until a set first time interval has passed, and then restoring the power supply to the CPU+PCH module; Get the first log; Determine a first register parameter according to the first log; Sending an RTC register initialization request according to the first register parameter; Generate and send a second power-on request; Perform the first logging.
[0061] It should be noted that the first log is used to record the status information when the domestic computer fails to start up and needs to execute the first self-recovery logic; the first register parameter is a reference value for updating the RTC register. In the operation process of the first self-recovery logic, first, the power supply signal is controlled to cut off the power supply of the CPU+PCH module, and after waiting for the first time interval, the power supply of the CPU+PCH module is restored. Secondly, the number of self-recovery attempts by executing the first self-recovery logic during this startup is queried from the first log to set the reference value for updating the RTC register, wherein the more attempts, the more flag bits of the RTC register need to be initialized. Then, an RTC register initialization request is sent, and the CPU+PCH module updates the flag bits of the RTC register according to the RTC register initialization request. Finally, the MCU / EC module sends a second startup request to the CPU+PCH module to try to restart the computer and record the log.
[0062] According to an embodiment of the present invention, the second self-recovery logic is specifically: Controlling a power supply signal to disconnect the power supply to the CPU+PCH module and the external platform device until a set second time interval has passed, and then restoring the power supply to the CPU+PCH module and the external platform device; Generate and send a third power-on request; Perform secondary logging.
[0063] It should be noted that the second log is used to record the status information when a domestic computer fails to boot and needs to execute the second self-recovery logic. During the operation process of the second self-recovery logic, the power supply signal is first controlled to cut off the power supply to the CPU+PCH module and external platform devices. After waiting for a second time interval, the power supply to the CPU+PCH module and external platform devices is restored. Then, the MCU / EC module sends a third boot request to the CPU+PCH module to attempt to restart the computer and record the log.
[0064] According to an embodiment of the present invention, the further embodiment includes: Based on the preset RTC flag information, adjust the flag of the RTC register; Determining an initialization level according to the RTC register initialization request; Initialize the RTC register according to the initialization level and the first register parameter.
[0065] It should be noted that this embodiment provides an RTC register initialization process. Since the RTC register is identified as abnormal, it is first necessary to configure the flag bits used to configure system data, mark the power-on status, etc., that is, adjust the RTC register flag bits according to the preset RTC flag bit information. Then, the RTC register initialization request is parsed to obtain the initialization level; then, based on the initialization level, the data bits in the RTC register that need to be initialized and updated are selected. Finally, according to the first register parameter, the data bits in the RTC register that need to be adjusted are initialized and updated.
[0066] According to an embodiment of the present invention, the further embodiment includes: Get the first log and the second log; Obtain a first self-recovery count and a second self-recovery count according to the first log and the second log respectively; Calculating the sum of the first self-recovery number and the second self-recovery number to obtain a third self-recovery number; Determining whether the third self-recovery number reaches a preset third number threshold; If not, continue to trigger the first self-recovery logic or the second self-recovery logic; If so, stop triggering the first self-recovery logic and the second self-recovery logic, and issue a warning message.
[0067] It should be noted that the first self-recovery number is the number of self-recovery attempts by executing the first self-recovery logic during this startup; the second self-recovery number is the number of self-recovery attempts by executing the second self-recovery logic during this startup. In this embodiment, multiple self-recovery startup attempts are set, and the startup stops and an alarm is issued after the preset number of attempts is reached. Under the same startup processing signal, if the total number of self-recovery attempts is lower than the preset threshold, further self-recovery attempts are allowed; if the total number of self-recovery attempts reaches the preset threshold, further self-recovery attempts are not allowed, and an early warning message is issued, indicating that the domestic computer cannot be started through self-recovery.
[0068] According to an embodiment of the present invention, issuing warning information specifically includes: Determining whether the first self-recovery number exceeds a preset first number threshold; If so, set the indicator light to be always on; Determining whether the second self-recovery number exceeds a preset second number threshold; If yes, set the indicator light to flash.
[0069] It should be noted that in this embodiment, the warning LED's lighting status is controlled to indicate that the domestic computer cannot be powered on through self-recovery. A steady light indicates that the number of times the first self-recovery logic has been triggered exceeds a limit; a flashing light indicates that the number of times the second self-recovery logic has been triggered exceeds a limit.
[0070] It is worth mentioning that it also includes: confirming the abnormal peripheral device number according to the first peripheral device initialization signal; Determining whether the abnormal peripheral device is the first peripheral device according to the abnormal peripheral device number; If so, stop triggering the first self-recovery logic and the second self-recovery logic, and issue an alarm message; If not, continue to trigger the first self-recovery logic or the second self-recovery logic.
[0071] It should be noted that in this embodiment, the self-recovery strategy is adjusted according to the initialization status of the peripherals. The peripheral number of the external platform device with initialization abnormality is confirmed through the first peripheral initialization signal. If the peripheral number points to the first peripheral, the self-recovery logic is stopped from being triggered and an alarm message is issued; wherein, the first peripheral is a device that has a significant impact on the operation of the domestic computer, such as memory, hard disk, etc. The alarm message is used to indicate that the core peripherals in the domestic computer are abnormal and need maintenance.
[0072] It is worth mentioning that it also includes: According to the first self-recovery number, the first time interval is updated according to a preset time adjustment algorithm; According to the second self-recovery number, the second time interval is updated according to a preset time adjustment algorithm.
[0073] It should be noted that in this embodiment, the corresponding interval is adjusted based on the number of times the self-recovery logic is triggered during the current boot process to adjust the power-off period of the CPU+PCH module or external platform device. The more times the self-recovery logic is triggered, the longer the corresponding interval. By extending the power-off period, the CPU+PCH module or external platform device is completely powered off, improving the initialization success rate. By shortening the power-off period, the operating time of the self-recovery logic is reduced, thereby improving boot efficiency.
[0074] It is worth mentioning that it also includes: Get the first log and the second log; generating a fault report according to the first log or the second log; The fault report is sent to a fault analysis neural network model to obtain maintenance suggestions.
[0075] It should be noted that in this embodiment, a corresponding fault report is also generated based on the boot failure time, boot failure reason, number of attempts, etc. in the log information. The fault report is sent to the neural network model for fault analysis to obtain maintenance suggestions, which are used to improve the maintenance efficiency of domestic computers.
[0076] The third aspect of the present invention provides a computer-readable storage medium, which includes a domestic computer startup abnormality self-recovery method program. When the domestic computer startup abnormality self-recovery method program is executed by a processor, the steps of the domestic computer startup abnormality self-recovery method as described in any one of the above items are implemented.
[0077] In summary, the present invention provides a method, system, and storage medium for self-recovery of power-on anomalies in a domestically produced computer. After receiving a power-on signal from the user, the MCU / EC module sends a power-on request to the CPU+PCH module. If the CPU+PCH module does not return a successful initialization signal for the external device, the self-recovery software logic is triggered, automatically performing a power-off process and resending a power-on request. If the CPU+PCH module does not return a successful power-on signal, the RTC register is cleared and the power-on attempt is attempted again. A low-cost, high-reliability self-recovery power-on function is implemented through software logic without the need for additional hardware support, significantly reducing the inability to power on caused by insufficient design margins or device compatibility issues. By automatically handling RTC register anomalies, the frequency of user repairs is reduced, improving the user experience.
[0078] If the functions are implemented as software modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the portion that contributes to the prior art, or the portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes instructions for enabling 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 described in various embodiments of the present invention. The aforementioned storage media include various media capable of storing program code, such as USB flash drives, mobile hard drives, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical disks.
[0079] The foregoing description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Those skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention are intended to be within the scope of protection of the present invention.
Claims
1. A method for self-recovery of a startup abnormality of a domestic computer, applied to a domestic computer device, the computer device comprising: The MCU / EC module is a microcontroller unit used to process the power-on signal of domestic computers; The CPU+PCH module is a central processing unit and platform control bus, which is used to control the operation of the domestic computer. The CPU+PCH module also includes an RTC register, which is used to store parameter data to maintain the time accuracy of the logic control system; External platform devices are peripherals connected to the CPU of domestic computers; Characterized in that, the method specifically includes: After determining that the first power-on processing signal is received; generating and sending a first power-on request according to the first power-on processing signal; Determining whether a first startup success signal is received; If not, the first self-recovery logic is triggered; If yes, determining whether a first peripheral initialization signal is received; If not, the second self-recovery logic is triggered; If yes, it means the boot is successful.
2. The method for self-recovery of a domestic computer upon startup abnormality according to claim 1, characterized in that: The first self-recovery logic is specifically: Controlling a power supply signal to disconnect the power supply to the CPU+PCH module until a set first time interval has passed, and then restoring the power supply to the CPU+PCH module; Get the first log; Determine a first register parameter according to the first log; Sending an RTC register initialization request according to the first register parameter; Generate and send a second power-on request; Perform the first logging.
3. The method for self-recovery of a domestic computer upon startup abnormality according to claim 1, characterized in that: The second self-recovery logic is specifically: Controlling a power supply signal to disconnect the power supply to the CPU+PCH module and the external platform device until a set second time interval has passed, and then restoring the power supply to the CPU+PCH module and the external platform device; Generate and send a third power-on request; Perform secondary logging.
4. The method for self-recovery of a domestic computer upon startup abnormality according to claim 2, characterized in that: Also includes: Based on the preset RTC flag information, adjust the flag of the RTC register; Determining an initialization level according to the RTC register initialization request; Initialize the RTC register according to the initialization level and the first register parameter.
5. The method for self-recovery of a domestic computer upon startup abnormality according to claim 1, characterized in that: Also includes: Get the first log and the second log; Obtain a first self-recovery count and a second self-recovery count according to the first log and the second log respectively; Calculating the sum of the first self-recovery number and the second self-recovery number to obtain a third self-recovery number; Determining whether the third self-recovery number reaches a preset third number threshold; If not, continue to trigger the first self-recovery logic or the second self-recovery logic; If so, stop triggering the first self-recovery logic and the second self-recovery logic, and issue a warning message.
6. The method for self-recovery of a domestic computer upon startup abnormality according to claim 5, characterized in that: The issuing of warning information specifically includes: Determining whether the first self-recovery number exceeds a preset first number threshold; If so, set the indicator light to be always on; Determining whether the second self-recovery number exceeds a preset second number threshold; If yes, set the indicator light to flash.
7. A self-recovery system for a domestically produced computer upon startup abnormality, applied to a domestically produced computer device, the computer device comprising: The MCU / EC module is a microcontroller unit used to process the power-on signal of domestic computers; The CPU+PCH module is a central processing unit and platform control bus, which is used to control the operation of the domestic computer. The CPU+PCH module also includes an RTC register, which is used to store parameter data to maintain the time accuracy of the logic control system; External platform devices are peripherals connected to the CPU of domestic computers; The system includes a memory and a processor, wherein the memory includes a program for a method for self-recovery of a startup abnormality of a domestic computer, and when the program is executed by the processor, the following steps are implemented: After determining that the first power-on processing signal is received; generating and sending a first power-on request according to the first power-on processing signal; Determining whether a first startup success signal is received; If not, the first self-recovery logic is triggered; If yes, determining whether a first peripheral initialization signal is received; If not, the second self-recovery logic is triggered; If yes, it means the boot is successful.
8. The system for recovering abnormal startup of a domestic computer according to claim 7, characterized in that: The first self-recovery logic is specifically: Controlling a power supply signal to disconnect the power supply to the CPU+PCH module until a set first time interval has passed, and then restoring the power supply to the CPU+PCH module; Get the first log; Determine a first register parameter according to the first log; Sending an RTC register initialization request according to the first register parameter; Generate and send a second power-on request; Perform the first logging.
9. The system for recovering abnormal startup of a domestic computer according to claim 7, characterized in that: The second self-recovery logic is specifically: Controlling a power supply signal to disconnect the power supply to the CPU+PCH module and the external platform device until a set second time interval has passed, and then restoring the power supply to the CPU+PCH module and the external platform device; Generate and send a third power-on request; Perform secondary logging.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer-readable storage medium includes a program for a method for self-recovery of a startup abnormality of a domestic computer. When the program for self-recovery of a startup abnormality of a domestic computer is executed by a processor, the steps of the method for self-recovery of a startup abnormality of a domestic computer as described in any one of claims 1 to 6 are implemented.