System startup method, startup system, equipment and medium

By storing preset values ​​in non-volatile memory and detecting when power is connected to start the preset power-on sequence, the problem of rapid integration and flexible adaptation of automatic power-on function of unattended equipment is solved, simplifying the equipment integration process and improving the reliability of automatic power-on.

CN121680946APending Publication Date: 2026-03-17SHENZHEN JIEHE TECH DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511515382.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-22
Publication Date
2026-03-17

AI Technical Summary

Technical Problem

Existing technical solutions rely on hardware modifications to enable automatic startup of unattended equipment, resulting in high complexity in equipment integration and difficulty in rapid integration and flexible adaptation.

Method used

By storing preset values ​​in non-volatile memory, the preset power-on sequence is activated when power is connected, enabling the automatic power-on function of unattended equipment without any hardware modifications.

Benefits of technology

It enables rapid integration and flexible adaptation of unattended equipment, simplifies the equipment integration process, and improves the reliability of automatic startup of equipment in unattended scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121680946A_ABST
    Figure CN121680946A_ABST
Patent Text Reader

Abstract

The invention relates to a system startup method, a startup system, equipment and a medium. The method is applied to a target system, the target system comprises a nonvolatile memory, and the method comprises the following steps: when the target system is connected to a power supply, detecting whether a numerical value stored in the nonvolatile memory is a first preset numerical value; and if the numerical value stored in the nonvolatile memory is the first preset numerical value, starting a target system according to a preset starting time sequence. Therefore, the first preset value stored in the nonvolatile memory can still be kept not lost after the target system is powered off. The first preset value is used for marking whether the target system has an automatic power-on function or not. According to the mechanism, hardware does not need to be modified, and after the target system is connected to the power supply again, rapid integration and flexible adaptation of the automatic power-on function of the target system can be achieved only by detecting whether the numerical value stored in the nonvolatile memory is the first preset numerical value or not.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of computers, in particular to a system startup method, a startup system, a device and a medium. BACKGROUND

[0002] With the development of the Internet, the application scenarios of unattended devices are constantly expanding, and have penetrated into key fields such as industrial control, Internet of Things terminals, public services, and remote area deployment devices. The core demand of such devices is to achieve "stable operation without human intervention". The "automatic startup function when the AC power supply is interrupted and the power supply is restored" is the core technical support to ensure the continuity of unattended devices.

[0003] Currently, to achieve the automatic startup requirement in the above-mentioned unattended scenario, the mainstream technical solution in the industry relies on special circuit design at the hardware level. Specifically, the existing technical solution needs to integrate additional power state detection circuit, reset trigger circuit and other modules in the device, to ensure that the power-on logic can be triggered accurately when the power is restored, by maintaining the effectiveness of the hardware detection circuit or the configuration parameters during power failure.

[0004] However, this technical solution relying on hardware modification is cumbersome, not only increasing the complexity of device integration, but also difficult to meet the actual needs of fast integration and flexible adaptation of unattended devices. Therefore, how to realize the fast integration and flexible adaptation of the automatic startup function of unattended devices while avoiding complex hardware modification has become a technical problem to be solved in the field. SUMMARY

[0005] The embodiments of the present application provide a system startup method, a startup system, a device and a medium, aiming to solve the technical problem of how to realize the fast integration and flexible adaptation of the automatic startup function of unattended devices.

[0006] In a first aspect, the embodiments of the present application provide a system startup method, which is applied to a target system including a non-volatile memory, and the method comprises:

[0007] When the target system is connected to a power supply, detecting whether a value stored in the non-volatile memory is a first preset value;

[0008] If the value stored in the non-volatile memory is the first preset value, starting the target system according to a preset startup timing.

[0009] Optionally, the target system further includes a target chip, and before the detection of whether the value stored in the non-volatile memory is the first preset value, the method further comprises:

[0010] Detect whether the value stored in the target register of the target chip is a second preset value;

[0011] If the value stored in the target register is the second preset value, then the step of detecting whether the value stored in the non-volatile memory is the first preset value is executed.

[0012] Optionally, the method further includes:

[0013] If the value stored in the target register is not equal to the second preset value, write the third preset value into the target register.

[0014] Optionally, after detecting whether the value stored in the non-volatile memory is the first preset value, the method further includes:

[0015] Write the third preset value into the target register.

[0016] Optionally, the target chip is a target network interface card (NIC) chip.

[0017] Optionally, the non-volatile memory is an EEPROM.

[0018] Secondly, embodiments of this application also provide a power-on system, including a non-volatile memory, a detection unit, and a startup unit, wherein...

[0019] The detection unit is used to detect whether the value stored in the non-volatile memory is a first preset value when the target system is connected to a power source.

[0020] The startup unit is used to start the target system according to a preset startup sequence if the value stored in the non-volatile memory is the first preset value.

[0021] Optionally, the system also includes a target chip.

[0022] The detection unit is further configured to detect whether the value stored in the target register of the target chip is a second preset value when the target system is connected to power; if the value stored in the target register is the second preset value, detect whether the value stored in the non-volatile memory is the first preset value.

[0023] Thirdly, embodiments of this application also provide a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the above-described method.

[0024] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program that, when executed by a processor, can implement the above-described method.

[0025] This application provides a system power-on method, power-on system, device, and medium. The method is applied to a target system, which includes a non-volatile memory. The method includes: when the target system is powered on, detecting whether the value stored in the non-volatile memory is a first preset value; if the value stored in the non-volatile memory is the first preset value, starting the target system according to a preset power-on sequence. Therefore, in this application's technical solution, when the target system is powered on, it detects whether the value stored in the non-volatile memory is the first preset value. If so, the target system is started according to the preset power-on sequence. Thus, the first preset value stored in the non-volatile memory is retained even after the target system is powered off. Furthermore, the first preset value is used to indicate whether the target system has an automatic power-on function. This mechanism requires no hardware modification; when the target system is powered on again, it only needs to detect whether the value stored in the non-volatile memory is the first preset value to achieve rapid integration and flexible adaptation of the target system's automatic power-on function. Attached Figure Description

[0026] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0027] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0028] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.

[0029] Figure 1a One of the flowcharts for a system boot method provided in this application embodiment;

[0030] Figure 1b A schematic block diagram illustrating the boot settings of a target system provided in an embodiment of this application;

[0031] Figure 2A second schematic flowchart illustrating a system startup method provided in this application embodiment;

[0032] Figure 3 A schematic block diagram of a power-on system provided in this application embodiment;

[0033] Figure 4 A computer device provided in an embodiment of this application. Detailed Implementation

[0034] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0035] The following disclosure provides numerous different embodiments or examples for implementing various structures of this application. To simplify the disclosure, specific examples of components and arrangements are described below. These are merely examples and are not intended to limit the scope of this application. Furthermore, reference numerals and / or letters may be repeated in different examples. Such repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed.

[0036] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.

[0037] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the scope of the application. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0038] It should also be further understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0039] As used in this specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrases "if determined" or "if [described condition or event] is detected" may be interpreted, depending on the context, as "once determined," "in response to determination," "once [described condition or event] is detected," or "in response to detection of [described condition or event]."

[0040] To address the technical challenge of rapidly integrating and flexibly adapting the automatic power-on function of unattended equipment in existing technologies, this application provides a system power-on method apparatus that enables rapid integration and flexible adaptation of the automatic power-on function of unattended equipment.

[0041] Figure 1a This is a flowchart illustrating a system power-on method provided in an embodiment of this application. In one embodiment, the method is applied to a target system, the target system including non-volatile memory, and the method includes: S101-S102.

[0042] S101. When the target system is powered on, check whether the value stored in the non-volatile memory is the first preset value.

[0043] Preferably, the target system is an embedded system based on an ARM platform. The non-volatile memory is an EEPROM. Since the data stored in the non-volatile memory remains unchanged after the power is turned off, this embodiment stores a first preset value in the non-volatile memory to indicate whether the target system needs to be started according to a preset power-on sequence.

[0044] Please see Figure 1b , Figure 1b This is a schematic block diagram illustrating a target system power-on setting provided in an embodiment of this application. In this embodiment, the first preset value can be 0x00. That is, when the value stored in the EEPROM is 0x00, it indicates that the automatic power-on switch of the target system is on. When the value stored in the EEPROM is 0x01, it indicates that the automatic power-on switch of the target system is off. Of course, the first preset value can also be other values. For example, the first preset value is 0x01. This application does not impose any limitations on this.

[0045] S102. If the value stored in the non-volatile memory is the first preset value, start the target system according to the preset power-on sequence.

[0046] The preset power-on sequence is the power-on sequence set by the applicant according to actual needs.

[0047] It should be noted that the hardware automatically powers on when the target system is plugged into an AC power source. The target system first runs the U-boot system, then reads the value from the EEPROM. If the value stored in the EEPROM is the first preset value, the target system boots according to the preset boot sequence, thus achieving automatic booting of the target system after AC power-on. Here, AC power refers to alternating current power.

[0048] This application provides a system power-on method. The method is applied to a target system, which includes a non-volatile memory. The method includes: when the target system is powered on, detecting whether the value stored in the non-volatile memory is a first preset value; if the value stored in the non-volatile memory is the first preset value, starting the target system according to a preset power-on sequence. Therefore, in this application's technical solution, when the target system is powered on, it detects whether the value stored in the non-volatile memory is the first preset value. If so, the target system is started according to the preset power-on sequence. Thus, the first preset value stored in the non-volatile memory is retained even after the target system is powered off. Furthermore, the first preset value is used to indicate whether the target system has an automatic power-on function. This mechanism requires no hardware modification; when the target system is powered on again, it only needs to detect whether the value stored in the non-volatile memory is the first preset value to achieve rapid integration and flexible adaptation of the target system's automatic power-on function.

[0049] In one embodiment, the target system further includes a target chip, and before S101 above, the method further includes: S103-S104.

[0050] S103. Detect whether the value stored in the target register of the target chip is the second preset value.

[0051] Preferably, the target chip is a target network interface card (NIC) chip. Of course, the target chip can also be other types of chips. This application does not impose any limitations on this. The target register of the target chip can be a register of the target NIC chip. For example, the target register can be the REG16 register of the NIC chip. This application does not impose any limitations on this.

[0052] S104. If the value stored in the target register is the second preset value, execute the step of detecting whether the value stored in the non-volatile memory is the first preset value.

[0053] It should be noted that S103-S104 will be explained in detail below.

[0054] This embodiment of the application aims to prevent the target system from automatically shutting down when the EEPROM value read after power is connected is not a first preset value. When the power button is pressed again, the target system continues to automatically shut down because the value stored in the EEPROM is not the first preset value. This embodiment adds a target chip that stores a second preset value in its target register. The above-described step S101 is only executed when the value stored in the target chip's target register is the second preset value. Therefore, this embodiment can control the value stored in the target chip's target register to prevent the target system from automatically shutting down when the power button is pressed again.

[0055] In one embodiment, the method further includes:

[0056] S105. If the value stored in the target register is not equal to the second preset value, write the third preset value into the target register.

[0057] It should be noted that the second preset value is not equal to the third preset value. In this embodiment, the third preset value is written into the target register to prevent the target system from automatically shutting down when the power button is pressed again. The third preset value was set by the applicant based on practical experience, and this application does not impose any limitations on it.

[0058] In one embodiment, after S101, the method further includes:

[0059] S106. Write the third preset value to the target register.

[0060] In this embodiment of the application, a third preset value is written into the target register so that the target system will not automatically shut down when the power button is pressed again.

[0061] In one embodiment, please refer to Figure 2 , Figure 2This is a second flowchart illustrating a system power-on method provided in this application embodiment. When the AC power is unplugged and then plugged back in, the network card register is reset to 0x00. At this time, the target system hardware automatically powers on. The CPU first reads the value of REG16 on page 0XD8A of the network card register. If the value read by the CPU is 0x0, it continues to read the value of the EEPROM. If the EEPROM value read by the CPU is not 0x0, the CPU writes 0x100 to REG16 on page 0XD8A of the network card register and then shuts down. If the EEPROM value read by the CPU is 0x0, the CPU writes 0x100 to REG16 on page 0XD8A of the network card register and then powers on. When the user manually presses the power button on the device containing the target system, since the network card chip is powered by S5, the value of REG16 on page 0XD8A of the network card register remains 0x100. At this time, the value read by the CPU on page 0XD8A of the network card register is not 0x0. Next, the CPU writes 0x100 to REG16 on page 0xD8A of the network card register and then powers on. In summary, this method allows the target system to boot according to a preset boot sequence when the AC power is unplugged and then plugged back in. Similarly, the target system can also boot according to the preset boot sequence when the user presses the power button.

[0062] See Figure 3 , Figure 3 This is a schematic block diagram of a power-on system provided in an embodiment of this application. Corresponding to the above system power-on method, this application also provides a power-on system. This power-on system includes units for executing the above system power-on method, and can be configured in terminals such as desktop computers, tablet computers, and laptops. Specifically, the power-on system includes a non-volatile memory 301, a detection unit 302, and a startup unit 303, wherein...

[0063] The detection unit 302 is used to detect whether the value stored in the non-volatile memory is a first preset value when the target system is connected to a power source.

[0064] The startup unit 303 is used to start the target system according to a preset startup sequence if the value stored in the non-volatile memory is the first preset value.

[0065] In one embodiment, the system further includes a target chip 304.

[0066] The detection unit 302 is further configured to detect whether the value stored in the target register of the target chip is a second preset value when the target system is connected to power; if the value stored in the target register is the second preset value, detect whether the value stored in the non-volatile memory is the first preset value.

[0067] In one embodiment, the system further includes:

[0068] The writing unit 305 is used to write a third preset value into the target register if the value stored in the target register is not equal to the second preset value.

[0069] In one embodiment, the writing unit 305 is further configured to write the third preset value to the target register after detecting whether the value stored in the non-volatile memory is the first preset value.

[0070] In one embodiment, the target chip is a target network interface card (NIC) chip.

[0071] In one embodiment, the non-volatile memory is an EEPROM.

[0072] like Figure 4 As shown, this application provides a computer device including a processor 41, a communication interface 42, a memory 43, and a communication bus 44. The processor 41, the communication interface 42, and the memory 43 communicate with each other through the communication bus 44. The memory 43 is used to store computer programs.

[0073] In one embodiment of this application, when the processor 41 executes the program stored in the memory 43, it implements the system startup control method provided in any of the foregoing method embodiments.

[0074] It will be understood by those skilled in the art that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program may be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the process steps of the embodiments of the above methods.

[0075] Therefore, embodiments of this application also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the system boot method provided in any of the foregoing method embodiments.

[0076] The storage medium is a physical, non-transient storage medium, such as a USB flash drive, external hard drive, read-only memory (ROM), magnetic disk, or optical disk, or any other physical storage medium capable of storing program code. The computer-readable storage medium can be non-volatile or volatile.

[0077] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this application.

[0078] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For example, the division of each unit is merely a logical functional division, and there may be other division methods in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.

[0079] The steps in the methods of this application embodiment can be adjusted, merged, or deleted according to actual needs. The units in the apparatus of this application embodiment can be merged, divided, or deleted according to actual needs. Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0080] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part 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 several instructions to cause a computer device (which may be a personal computer, a terminal, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application.

[0081] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0082] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Since these modifications and variations fall within the scope of the claims and their equivalents, this application also intends to include these modifications and variations.

[0083] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A system booting method, characterized by, The method is applied to a target system including a non-volatile memory, and the method comprises: detecting whether a value stored in the non-volatile memory is a first preset value when the target system is powered on; starting the target system according to a preset boot sequence if the value stored in the non-volatile memory is the first preset value.

2. The method of claim 1, wherein, The target system further includes a target chip, and before the detection of whether the value stored in the non-volatile memory is the first preset value when the target system is powered on, the method further comprises: detecting whether a value stored in a target register of the target chip is a second preset value; performing the detection of whether the value stored in the non-volatile memory is the first preset value if the value stored in the target register is the second preset value.

3. The method of claim 2, wherein, The method further comprises: writing a third preset value to the target register if the value stored in the target register is not equal to the second preset value.

4. The method of claim 2, wherein, After the detection of whether the value stored in the non-volatile memory is the first preset value, the method further comprises: writing the third preset value to the target register.

5. The method according to any one of claims 2 to 4, characterized in that, The target chip is a target network card chip.

6. The method according to any one of claims 1 to 4, characterized in that, The non-volatile memory is an EEPROM.

7. A system for starting up, characterized by The system includes a non-volatile memory, a detection unit and a starting unit, wherein: the detection unit is configured to detect whether a value stored in the non-volatile memory is a first preset value when the target system is powered on; the starting unit is configured to start the target system according to a preset boot sequence if the value stored in the non-volatile memory is the first preset value.

8. The system of claim 7, wherein, The system further includes a target chip, the detection unit is further configured to detect whether a value stored in a target register of the target chip is a second preset value when the target system is powered on; the detection unit is further configured to detect whether the value stored in the non-volatile memory is the first preset value if the value stored in the target register is the second preset value.

9. A computer device, comprising: The computer device includes a memory and a processor, and the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 6 when executing the computer program.

10. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, and the computer program can implement the method according to any one of claims 1 to 6 when executed by a processor.