Electronic device and startup method and startup device thereof

By introducing the first memory into the electronic device and keeping it powered, the problem of the time it takes for the hard disk to load data during cold boot is solved, and a faster startup process is achieved.

CN112416449BActive Publication Date: 2025-02-18BEIJING PHOENIX AUTO INTELLIGENCE CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202011478349.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-15
Publication Date
2025-02-18
Estimated Expiration
2040-12-15

AI Technical Summary

Technical Problem

During cold booting of existing electronic devices, the process of loading the operating system from the hard disk to memory takes a long time, affecting the startup speed.

Method used

The first memory is introduced and kept continuously powered, and upon starting the electronic device, preset information in the first memory is loaded into the second memory, simplifying the data loading process.

Benefits of technology

By reducing data loading time, the startup speed of electronic devices is significantly improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112416449B_ABST
    Figure CN112416449B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention discloses an electronic device and a startup method and a startup device thereof, wherein the electronic device includes: a first memory for presetting information; a first power supply component connected to the first memory and used to supply power to the first memory; a second memory; a processor connected to the first memory and the second memory, respectively; a second power supply component connected to the second memory and the processor, respectively, and used to supply power to the second memory and the processor; wherein the first power supply component is used to continue to supply power to the first memory when the second power supply component stops supplying power; the second power supply component is used to resume power supply after the electronic device receives a startup instruction; the processor is used to load the preset information stored in the first memory into the second memory based on the startup instruction after the second power supply component resumes power supply.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electronic equipment, and in particular to an electronic equipment and a starting method and a starting device thereof. Background Art

[0002] There are many ways to start up electronic devices, including cold start, hot start and reset start.

[0003] Among them, cold start refers to powering on and starting without power. When the power switch is pressed, the power starts to supply power to the motherboard and other devices of the electronic device, and after CPU initialization, self-check, and ESCD update, the operating system is loaded from the hard disk into the memory, and finally the operating system is started. In this process, loading the operating system from the hard disk into the memory also consumes a long startup time, which greatly affects the startup speed of the electronic device. Summary of the invention

[0004] In view of this, an embodiment of the present invention is intended to provide an electronic device and a startup method and a startup device thereof.

[0005] In a first aspect, an embodiment of the present invention provides an electronic device, including:

[0006] A first memory, used for presetting information;

[0007] A first power supply component, connected to the first memory, and configured to supply power to the first memory;

[0008] a second memory;

[0009] a processor, connected to the first memory and the second memory respectively;

[0010] A second power supply component is connected to the second memory and the processor respectively, and is used to supply power to the second memory and the processor;

[0011] Wherein, the first power supply component is used to continue to supply power to the first memory when the second power supply component stops supplying power; the second power supply component is used to resume supplying power after the electronic device receives a startup instruction;

[0012] The processor is used to load the preset information stored in the first memory into the second memory based on the startup instruction after the second power supply component resumes power supply.

[0013] In one embodiment, the capacity of the second memory is greater than the capacity of the first memory.

[0014] In one embodiment, the first memory and the second memory are both connected to the processor via a bus.

[0015] In one embodiment, the second power supply assembly has a system power connection;

[0016] The charging connection of the first power supply assembly is connected to the system power supply connection; wherein the second power supply assembly is used to supply power to the first power supply assembly when supplying power through the system power supply connection.

[0017] In one embodiment, the first memory and the second power supply component are electrically connected; the electrical connection has a first controlled switch;

[0018] The second power supply component supplies power, and the first controlled switch conducts the electrical connection; the second power supply component is used to supply power to the first memory.

[0019] In a second aspect, an embodiment of the present invention further provides a startup method, which is applied to the electronic device described in any one of the above embodiments, comprising:

[0020] Detection start command;

[0021] If the startup instruction is detected, the second power supply component of the electronic device resumes supplying power to the processor and the second memory;

[0022] Loading the preset information cached in the first memory into the second memory;

[0023] The electronic device is started based on the content loaded from the second memory.

[0024] In one embodiment, the method further comprises:

[0025] After the second power supply assembly resumes power supply, the electrical connection between the first power supply assembly and the second power supply assembly is turned on. After the electrical connection between the first power supply assembly and the second power supply assembly is turned on, the second power supply assembly supplies power to the first power supply assembly.

[0026] In one embodiment, the method further comprises:

[0027] After the second power supply component resumes power supply, disconnecting the electrical connection between the first power supply component and the first memory, and connecting the electrical connection between the second power supply component and the first memory;

[0028] After the electrical connection between the second power supply component and the first memory is established, the second power supply component supplies power to the first memory.

[0029] In one embodiment, the method further comprises:

[0030] Detect shutdown command;

[0031] After detecting the shutdown instruction, writing the information required for the next startup of the electronic device as the preset information into the first memory;

[0032] After the preset information is successfully written into the first memory, conducting an electrical connection between the first power supply component and the first memory;

[0033] After the electrical connection between the first power supply component and the first memory is established, disconnecting the electrical connection between the second power supply component and the first power supply component and / or the first memory;

[0034] Stop supplying power to the second power supply component electrically connected to the first power supply component and / or the second memory.

[0035] In a third aspect, an embodiment of the present invention further provides a starting device, which is applied to the electronic device described in any one of the above embodiments, including:

[0036] A detection module, used for detecting a start instruction;

[0037] A power management module, configured to control the second power supply component of the electronic device to resume power supply to the processor and the second memory if a startup instruction is detected;

[0038] A loading module, used for loading the preset information cached in the first memory into the second memory;

[0039] A startup module is used to start the electronic device based on the content loaded into the second memory.

[0040] In one embodiment, the apparatus further comprises:

[0041] The second controlled switch is used to conduct the electrical connection between the first power supply component and the second power supply component after the second power supply component resumes power supply; after the electrical connection between the first power supply component and the second power supply component is conducted, the second power supply component supplies power to the first power supply component.

[0042] In one embodiment, the apparatus further comprises:

[0043] The third controlled switch is used to disconnect the electrical connection between the first power supply component and the first memory and to conduct the electrical connection between the second power supply component and the first memory after the second power supply component resumes power supply; after the electrical connection between the second power supply component and the first memory is conducted, the second power supply component supplies power to the first memory.

[0044] In one embodiment, the apparatus further comprises:

[0045] The detection module is also used to detect a closing instruction;

[0046] A writing module, configured to write information required for the next startup of the electronic device as the preset information into the first memory after detecting the shutdown instruction;

[0047] The third controlled switch is further used to conduct the electrical connection between the first power supply component and the first memory after the preset information is successfully written into the first memory; after the electrical connection between the first power supply component and the first memory is conducted, disconnect the electrical connection between the second power supply component and the first power supply component and / or the first memory respectively;

[0048] The power management module is further used to stop the power supply of the second power supply component electrically connected to the first power supply component and / or the second memory.

[0049] The electronic device of the embodiment of the present invention introduces a first memory and keeps the first memory continuously powered. When the electronic device is started, the preset information stored in the first memory is loaded into the second memory. Compared with loading the startup data stored in the hard disk into the second memory through IO operation, the time required to load the data into the second memory is shortened, which can effectively improve the startup speed of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention;

[0051] Figure 2 A schematic diagram of a first startup method provided in an embodiment of the present invention;

[0052] Figure 3 A schematic diagram of a second startup method provided in an embodiment of the present invention;

[0053] Figure 4 A schematic structural diagram of a first starting device provided by an embodiment of the present invention;

[0054] Figure 5 A schematic diagram of a flow chart of a third startup method provided in an embodiment of the present invention;

[0055] Figure 6 A schematic diagram of a fourth startup method provided in an embodiment of the present invention;

[0056] Figure 7 A schematic diagram of the structure of a second starting device provided by an embodiment of the present invention;

[0057] Figure 8A schematic flow chart of a fifth startup method provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0058] The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0059] like Figure 1 As shown, an electronic device 10 can be applied to the fields of automobiles, vehicle-mounted cockpit electronics, or mobile vehicle networking, including:

[0060] The first memory 100 is used for presetting information;

[0061] A first power supply component 103, connected to the first memory 100, and configured to supply power to the first memory 100;

[0062] A second memory 101;

[0063] A processor 102, connected to the first memory 100 and the second memory 101 respectively;

[0064] A second power supply component 104 is connected to the second memory 101 and the processor 102 respectively, and is used to supply power to the second memory 101 and the processor 102;

[0065] The first power supply component 103 is used to continue to supply power to the first memory 100 when the second power supply component 104 stops supplying power; the second power supply component 104 is used to resume supplying power after the electronic device 10 receives a startup instruction;

[0066] The processor 102 is used to load the preset information stored in the first memory 100 into the second memory 101 based on the startup instruction after the second power supply component 104 resumes power supply.

[0067] In this embodiment, the first memory 100 is used for presetting information, including at least one of the following:

[0068] When the first memory 100 is detected for the first time, the processor 102 loads the information required for the next startup of the electronic device 10 stored in the hard disk into the first memory 100, where the information required for the next startup of the electronic device 10 is the preset information;

[0069] When the first memory 100 is detected for the first time, the processor 102 loads the information required for the next startup of the electronic device 10 stored in the second memory 101 into the first memory 100, where the information required for the next startup of the electronic device 10 is the preset information;

[0070] After detecting the shutdown instruction, the processor 102 loads the information required for the next startup of the electronic device 10 stored in the second memory 101 into the first memory 100, where the information required for the next startup of the electronic device 10 is the preset information.

[0071] In this embodiment, the preset information may include but is not limited to: an operating system kernel and / or a root file system, and the processor 102 starts the electronic device 10 based on the operating system kernel and the root file system.

[0072] In another embodiment, the preset information further includes: a program file, so that when the processor 102 starts the electronic device 10, the corresponding program is also started synchronously. Here, the program file includes at least one of the following:

[0073] The page data and physical addresses that were being used in the program memory of the electronic device when the second power supply component stopped supplying power last time;

[0074] Program files pre-configured in electronic devices;

[0075] A preset number of program files are sorted from high to low based on the usage frequency of the program files.

[0076] In this embodiment, the second memory 101 is used to temporarily store the preset information of the first memory 100. For example, after detecting the startup instruction, the processor 102 loads the preset information in the first memory 100 into the second memory 101, so that the processor 102 can start the electronic device 10.

[0077] In one embodiment, the second memory 101 is also used to temporarily store data exchanged with the external memory of the electronic device 10 , as well as operation data of the processor 102 , etc.

[0078] In one embodiment, the first memory and the second memory may be different types of memories.

[0079] In another embodiment, the first memory and the second memory may be the same type of memory, so that the first memory 100 and the second memory 101 have many consistent physical parameters to ensure the compatibility of the first memory 100 and the second memory 101. Here, the consistent physical parameters of the first memory 100 and the second memory 101 include: interface, operating voltage, working mode, data bandwidth, memory frequency and / or packaging method, etc.

[0080] In this embodiment, the second power supply component 104 is charged by an external power source and is used to supply power to the second memory 101 and the processor 102 .

[0081] In this embodiment, the first power supply component 103 is used to supply power to the first memory 100 , and at the same time, after the second power supply component stops supplying power, the first power supply component 103 continues to supply power to the first memory 100 .

[0082] The first power source assembly 103 and the second power source assembly 104 both include: one or more battery packs for storing electricity.

[0083] In one embodiment, the battery capacity of the battery pack included in the first power supply assembly 103 is smaller than the battery capacity of the battery pack included in the second power supply assembly 104 .

[0084] It can be understood that, under the condition that the battery capacity per unit volume is determined, the larger the battery capacity of the power pack, the larger the volume. Correspondingly, the larger the battery capacity of the first power component, the larger its volume. Therefore, considering that the second power component 104 is used to power the second memory 101 and the processor 102, and the first power component 103 is used to power the first memory 100, the power demand of the first power component 103 is much smaller than the power demand of the second power component 104. Therefore, the battery capacity of the battery pack included in the first power component 103 is considered to be smaller than the battery capacity of the battery pack of the second power component 104.

[0085] At the same time, based on the requirements of lightweight design of electronic devices and hardware cost considerations, as well as the actual application needs of electronic devices, on the basis that the first power supply component 103 basically meets the power supply requirements of the first memory 100, the battery capacity of the battery pack of the first power supply component 103 can be reduced as much as possible.

[0086] In this embodiment, the second power supply component 104 is connected to at least one charging interface exposed on the outside of the electronic device to obtain electrical energy from an external power source through the charging interface.

[0087] In this embodiment, the second power source assembly 104 further includes a system power connection, and the charging connection of the first power source assembly 103 is connected to the system power connection to obtain power from the second power source assembly 104 .

[0088] In another embodiment, the first power supply component 103 is connected to at least one charging interface exposed on the outside of the electronic device to obtain electrical energy from an external power source through the charging interface.

[0089] In one embodiment, the second power supply assembly 104 uses an ATX power supply.

[0090] The electronic device of this embodiment introduces the first memory 100 and keeps the first memory 100 powered continuously. When the electronic device is started, the preset information stored in the first memory is loaded into the second memory. Compared with loading the startup data stored in the hard disk into the second memory through IO operation, the time required to load the data into the second memory is shortened, which can effectively improve the startup speed of the electronic device.

[0091] In this embodiment, the capacity of the second memory 101 is greater than that of the first memory 100 .

[0092] Here, the first memory 100 is used to store information required for starting the electronic device 10, such as the operating system kernel and / or the root file system; in addition to loading preset information read from the first memory 100, the second memory 101 is also used to store data exchanged with the external memory of the electronic device 10, as well as the calculation data of the processor 102, etc.

[0093] In this embodiment, the first memory 100 and the second memory 101 are both connected to the processor 102 via a bus.

[0094] In this embodiment, the second power supply component 104 has a system power supply connection; the charging connection of the first power supply component 103 is connected to the system power supply connection; wherein the second power supply component 104 is used to supply power to the first power supply component 103 when power is supplied through the system power supply connection.

[0095] Specifically, the second power supply assembly 104 is powered by an external power supply, the charging connection of the first power supply assembly 103 is connected to the system power supply connection of the second power supply assembly 104, and the second power supply assembly 104 supplies power to the first power supply assembly 103 through the system power supply connection.

[0096] Here, the charging connection of the first power supply component 103 is connected to the system power supply connection of the second power supply component 104 to obtain electrical energy. There is no need to plan an external charging interface for the first power supply component 103 to obtain electrical energy from an external power source, thereby reducing the impact on the external interface planning and appearance of the electronic device.

[0097] In one embodiment, the first power supply component 103 is connected to at least one charging interface exposed on the outside of the electronic device, and the first power supply component 103 is connected to an external power source through the charging interface for charging, so that regardless of whether the electronic device 10 is turned on or not, the first power supply component 103 can directly replenish power through the external power source, thereby ensuring that the first memory 100 is continuously powered on, so that the data stored in the first memory 100 is not cleared.

[0098] In this embodiment, when the second power supply component 104 supplies power normally, the electrical connection between the first memory 100 and the second power supply component 104 is turned on through the first controlled switch, so that the second power supply component 104 supplies power to the first memory 100 .

[0099] In one embodiment, the first controlled switch is used to turn on or off the electrical connection between the first memory 100 and the second power supply component 104. When the second power supply component 104 is supplying power normally, the first controlled switch is turned on, and the second power supply component 104 supplies power to the first memory 100; when the second power supply component 104 stops supplying power, the first controlled switch is turned off, and the first power supply component 103 supplies power to the first memory 100.

[0100] In one embodiment, the power management module of the electronic device controls the conduction or disconnection of the first controlled switch, so that when the second power supply component 104 is supplying power normally, the first controlled switch is turned on, and the second power supply component 104 supplies power to the first memory 100; when the second power supply component 104 stops supplying power, the first controlled switch is disconnected, and the first power supply component 103 supplies power to the first memory 100.

[0101] In another embodiment, the first controlled switch is a MOS tube or a triode. For example, the first controlled switch is a triode, the base of the triode is connected to the second power supply component 104, the collector of the triode is connected to the first power supply component 103, and the emitter of the triode is connected to the first memory 100. When the second power supply component 104 supplies power normally, the base and the emitter are turned on, and the second power supply component 104 supplies power to the first memory 100; when the second power supply component 104 stops supplying power, the collector and the emitter are turned on, and the first power supply component 103 supplies power to the first memory 100.

[0102] like Figure 2 As shown, this embodiment further provides a startup method, which is applied to the electronic device described in any of the above embodiments, including:

[0103] Step S100: Detecting a start instruction;

[0104] Step S101: if a startup instruction is detected, the second power supply component of the electronic device resumes supplying power to the processor and the second memory;

[0105] Step S104: loading the preset information cached in the first memory into the second memory;

[0106] Step S105: starting the electronic device based on the content loaded into the second memory.

[0107] In this embodiment, the electronic device detects the startup instruction. For example, the power management module of the electronic device detects whether the second power supply component is turned on. If the second power supply component is turned on, it is considered that the startup instruction is detected. If the startup instruction is detected, the power management module controls the second power supply component to resume supplying power to the processor and the second memory.

[0108] Furthermore, after resuming work, the processor loads the preset information cached in the first memory into the second memory; and starts the electronic device based on the content loaded into the second memory.

[0109] It is understandable that the electronic device may also detect the start-up instruction in other ways.

[0110] The startup method of this embodiment is based on the first memory 100 introduced into the electronic device, and the first memory 100 is continuously powered. When the electronic device is started, the preset information stored in the first memory is loaded into the second memory. Compared with loading the startup data stored in the hard disk into the second memory through IO operation, the time required to load the data into the second memory is shortened, which can effectively improve the startup speed of the electronic device.

[0111] In one embodiment, before step S104, the method further includes:

[0112] confirming whether preset information is cached in the first memory;

[0113] If the preset information is not cached in the first memory, loading the information required for starting the electronic device from the hard disk of the electronic device, and storing the information required for starting the electronic device in the first memory;

[0114] If the preset information is cached in the first memory, the process jumps to step S104.

[0115] Here, before loading the preset information cached in the first memory into the second memory, first confirm whether the preset information is cached in the first memory to identify information loss caused by failure or power outage of the first memory. If the preset information is not cached in the first memory, the information required for starting the electronic device is loaded from the hard disk of the electronic device, and the information required for starting the electronic device is stored in the first memory to ensure that the information required for starting the electronic device is successfully loaded into the second memory.

[0116] In one embodiment, Figure 3 As shown, the method also includes:

[0117] Step S102: After the second power supply component resumes power supply, the electrical connection between the first power supply component and the second power supply component is turned on. After the electrical connection between the first power supply component and the second power supply component is turned on, the second power supply component supplies power to the first power supply component.

[0118] Specifically, Figure 4 As shown, the first power supply component and the second power supply component are connected via a second controlled switch, and the first power supply component and the second power supply component can be controlled to be turned on or off via the second controlled switch.

[0119] In one embodiment, the turning on or off of the second controlled switch is controlled by a power management module of the electronic device.

[0120] In this embodiment, after the second power supply component resumes power supply, the electrical connection between the first power supply component and the second power supply component is turned on through the second controlled switch, and after the electrical connection between the first power supply component and the second power supply component is turned on, the second power supply component supplies power to the first power supply component. Thus, after the second power supply component resumes power supply, the second power supply component supplies power to the first power supply component.

[0121] In one embodiment, Figure 5 As shown, the method also includes:

[0122] Step S103: after the second power supply component resumes power supply, disconnecting the electrical connection between the first power supply component and the first memory, and connecting the electrical connection between the second power supply component and the first memory;

[0123] After the electrical connection between the second power supply component and the first memory is established, the second power supply component supplies power to the first memory.

[0124] Specifically, the first power supply component and the first memory are connected through the third controlled switch, and the second power supply component and the first memory are connected through the first controlled switch.

[0125] In this embodiment, after the second power supply component resumes power supply, the electrical connection between the first power supply component and the first memory is disconnected through the third controlled switch, and the electrical connection between the second power supply component and the first memory is switched on through the first controlled switch; after the electrical connection between the second power supply component and the first memory is switched on, the second power supply component supplies power to the first memory. Thus, after the second power supply component resumes power supply, the second power supply component supplies power to the first power supply component and the first memory.

[0126] In one embodiment, the first controlled switch and the third controlled switch are implemented based on a switching circuit, and are used to disconnect the electrical connection between the first power supply component and the first memory, and to connect the electrical connection between the second power supply component and the first memory after the second power supply component resumes power supply; and to connect the electrical connection between the first power supply component and the first memory, and to disconnect the electrical connection between the second power supply component and the first memory after the second power supply component stops supplying power.

[0127] In one embodiment, Figure 6 As shown, the method also includes:

[0128] Step S106: Detect a closing instruction;

[0129] Step S107: after detecting the shutdown instruction, writing the information required for the next startup of the electronic device as the preset information into the first memory;

[0130] Step S108: after the preset information is successfully written into the first memory, conducting an electrical connection between the first power supply component and the first memory;

[0131] Step S109: after the electrical connection between the first power supply component and the first memory is established, disconnecting the electrical connection between the second power supply component and the first power supply component and / or the first memory;

[0132] Step S110: stopping the power supply of the second power supply component electrically connected to the first power supply component and / or the second memory.

[0133] In this embodiment, the electronic device detects a shutdown instruction. For example, the power management module of the electronic device detects whether the second power supply component is disconnected. If the power supply is disconnected, it is considered that a shutdown instruction is detected. After the shutdown instruction is detected, the information required for the next startup of the electronic device is written into the first memory as the preset information.

[0134] In one embodiment, after the information required for starting the electronic device is written into the first memory, the information in the first memory will be kept if the power supply to the first memory is not interrupted. Therefore, before the information required for starting the electronic device next time is written into the first memory as the preset information, it is judged whether the information required for starting the electronic device has been written into the first memory: if it is determined that the information required for starting the electronic device does not exist in the first memory, the information required for starting the electronic device is written into the first memory as the preset information; if it is determined that the information required for starting the electronic device exists in the first memory, the process goes directly to step S108.

[0135] In this embodiment, please continue to refer to Figure 4 , after the preset information is successfully written into the first memory or it is determined that the first memory contains the information required for the electronic device to start up, the electrical connection between the first power supply component and the first memory is turned on through the third controlled switch; after the electrical connection between the first power supply component and the first memory is turned on, the second controlled switch disconnects the electrical connection between the second power supply component and the first power supply component, and / or the first controlled switch disconnects the electrical connection between the second power supply component and the first memory. Here, by disconnecting the electrical connection between the second power supply component and the first power supply component and / or the first memory, the second power supply component no longer supplies power to the first power supply component and / or the first memory, and by connecting the electrical connection between the first power supply component and the first memory, the first power supply component continues to supply power to the first memory, so as to prevent the information in the first memory from being cleared.

[0136] In this embodiment, after conducting the electrical connection between the first power supply component and the first memory, and disconnecting the electrical connection between the second power supply component and the first power supply component and / or the first memory, respectively, the power management module stops supplying power to the second power supply component electrically connected to the first power supply component and / or the second memory, thereby shutting down the electronic device.

[0137] like Figure 7 As shown, this embodiment further provides a starting device 20, which is applied to the electronic device described in any of the above embodiments, including:

[0138] A detection module 200, used for detecting a start instruction;

[0139] The power management module 201 is used to control the second power supply component of the electronic device to resume power supply to the processor and the second memory if a startup instruction is detected;

[0140] A loading module 202, configured to load the preset information cached in the first memory into the second memory;

[0141] The startup module 203 is used to start the electronic device based on the content loaded into the second memory.

[0142] In this embodiment, the device further includes:

[0143] The second controlled switch 204 is used to conduct the electrical connection between the first power supply component and the second power supply component after the second power supply component resumes power supply; after the electrical connection between the first power supply component and the second power supply component is conducted, the second power supply component supplies power to the first power supply component.

[0144] In this embodiment, the device further includes:

[0145] The third controlled switch 206 is also used to disconnect the electrical connection between the first power supply component and the first memory, and to conduct the electrical connection between the second power supply component and the first memory after the second power supply component resumes power supply; after the electrical connection between the second power supply component and the first memory is conducted, the second power supply component supplies power to the first memory.

[0146] In this embodiment, the device further includes:

[0147] The detection module 200 is also used to detect a closing instruction;

[0148] A writing module 205 is used to write the information required for the next startup of the electronic device as the preset information into the first memory after detecting the shutdown instruction;

[0149] A third controlled switch 206 is used to conduct the electrical connection between the first power supply component and the first memory after the preset information is successfully written into the first memory; after the electrical connection between the first power supply component and the first memory is conducted, the second controlled switch 204 disconnects the electrical connection between the second power supply component and the first power supply component, and / or the first controlled switch 207 disconnects the electrical connection between the second power supply component and the first memory;

[0150] The power management module 201 is further used to stop the power supply of the second power component electrically connected to the first power component and / or the second memory.

[0151] The electronic device and its startup method and startup device according to the embodiment of the present invention are described below by taking a specific example:

[0152] In the prior art, when an electronic device is cold started, data is loaded into a memory (referred to as a second memory) through an IO operation. After the device is shut down, the data in the memory is cleared. When the device is started again, data still needs to be loaded again through an IO operation.

[0153] The embodiment of the present invention introduces a first memory, which is connected to the bus like the second memory, and has an independent power supply system, so that the first memory can continue to retain data without being cleared when the electronic device is powered off.

[0154] Before the electronic device is shut down, the reusable data (such as data required for starting the electronic device) is copied to the first memory, and the first memory is kept powered on, and then shut down. Figure 8As shown, when the electronic device is started again, data is searched in the first memory first, which can effectively improve the startup speed of the electronic device. The following are the specific steps of data loading when the electronic device is started:

[0155] Cold start begins;

[0156] confirming whether there is data to be loaded in the first memory;

[0157] If it exists, then load the data to be loaded;

[0158] If not, loading the data to be loaded from the hard disk, and storing the data to be loaded into the first memory;

[0159] Load subsequent data;

[0160] Complete data loading.

[0161] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some ports, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0162] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0163] In addition, all functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0164] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium, which, when executed, executes the steps including the above method embodiment.

[0165] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. An electronic device, characterized in that: include: A first memory, used to store preset information; A first power supply component, connected to the first memory, and configured to supply power to the first memory; The first power supply assembly is connected to at least one charging interface exposed on the outside of the electronic device, and the first power supply assembly is connected to an external power source through the charging interface for charging; a second memory; a processor, connected to the first memory and the second memory respectively; A second power supply component is connected to the second memory and the processor respectively, and is used to supply power to the second memory and the processor; Wherein, the first power supply component is used to continue to supply power to the first memory when the second power supply component stops supplying power; the second power supply component is used to resume supplying power after the electronic device receives a startup instruction; The processor is used to load the preset information stored in the first memory into the second memory based on the startup instruction after the second power supply component resumes power supply.

2. The electronic device according to claim 1, characterized in that: The capacity of the second memory is greater than that of the first memory.

3. The electronic device according to claim 1 or 2, characterized in that: The first memory and the second memory are both connected to the processor via a bus.

4. The electronic device according to claim 1 or 2, characterized in that: The second power supply assembly has a system power connection; The charging connection of the first power supply assembly is connected to the system power supply connection; wherein the second power supply assembly is used to supply power to the first power supply assembly when supplying power through the system power supply connection.

5. The electronic device according to claim 1 or 2, characterized in that: There is an electrical connection between the first memory and the second power supply component; and a first controlled switch is provided on the electrical connection; The second power supply component supplies power, and the first controlled switch conducts the electrical connection; the second power supply component is used to supply power to the first memory.

6. A startup method, characterized in that: The electronic device according to any one of claims 1 to 5, comprising: Detection start command; If a startup instruction is detected, the second power supply component of the electronic device resumes supplying power to the processor and the second memory; wherein, before the startup instruction is detected, the first power supply component of the electronic device supplies power to the first memory; the first power supply component is connected to at least one charging interface exposed outside the electronic device, and the first power supply component is connected to an external power source through the charging interface for charging; Loading the preset information cached in the first memory into the second memory; The electronic device is started based on the content loaded from the second memory.

7. The startup method according to claim 6, characterized in that: The method further comprises: After the second power supply assembly resumes power supply, the electrical connection between the first power supply assembly and the second power supply assembly is turned on. After the electrical connection between the first power supply assembly and the second power supply assembly is turned on, the second power supply assembly supplies power to the first power supply assembly.

8. The startup method according to claim 6, characterized in that: The method further comprises: After the second power supply component resumes power supply, disconnecting the electrical connection between the first power supply component and the first memory, and connecting the electrical connection between the second power supply component and the first memory; After the electrical connection between the second power supply component and the first memory is established, the second power supply component supplies power to the first memory.

9. The startup method according to claim 6, characterized in that: The method further comprises: Detect shutdown command; After detecting the shutdown instruction, writing the information required for the next startup of the electronic device as the preset information into the first memory; After the preset information is successfully written into the first memory, conducting an electrical connection between the first power supply component and the first memory; After the electrical connection between the first power supply component and the first memory is established, disconnecting the electrical connection between the second power supply component and the first power supply component and / or the first memory; Stop supplying power to the second power supply component electrically connected to the first power supply component and / or the second memory.

10. A starting device, characterized in that: The electronic device according to any one of claims 1 to 5, comprising: A detection module, used for detecting a start instruction; a power management module, configured to control the second power supply component of the electronic device to resume power supply to the processor and the second memory if a startup instruction is detected; A loading module, used for loading the preset information cached in the first memory into the second memory; A startup module is used to start the electronic device based on the content loaded into the second memory.

11. The starting device according to claim 10, characterized in that: The device also includes: The second controlled switch is used to conduct the electrical connection between the first power supply component and the second power supply component after the second power supply component resumes power supply; after the electrical connection between the first power supply component and the second power supply component is conducted, the second power supply component supplies power to the first power supply component.

12. The starting device according to claim 10, characterized in that: The device also includes: The third controlled switch is used to disconnect the electrical connection between the first power supply component and the first memory and to conduct the electrical connection between the second power supply component and the first memory after the second power supply component resumes power supply; after the electrical connection between the second power supply component and the first memory is conducted, the second power supply component supplies power to the first memory.

13. The starting device according to claim 10, characterized in that: The device also includes: The detection module is also used to detect a closing instruction; A writing module, configured to write information required for the next startup of the electronic device as the preset information into the first memory after detecting the shutdown instruction; a third controlled switch, configured to conduct the electrical connection between the first power supply component and the first memory after the preset information is successfully written into the first memory; and to disconnect the electrical connection between the second power supply component and the first power supply component and / or the first memory respectively after the electrical connection between the first power supply component and the first memory is conducted; The power management module is further used to stop the power supply of the second power supply component electrically connected to the first power supply component and / or the second memory.

Citation Information

Patent Citations

  • Rapid power-on control system and television

    CN103281498A

  • Electronic calculator device and restarting method of electronic calculator device

    CN103995711A

  • Power supply control method and electronic equipment

    CN109976490A