Startup control method, electronic equipment and readable storage medium

By setting a second processing unit in the battery device of the electronic device, the battery status is detected in real time and the equipment exits the shipping mode normally, the problem of the electronic device receiving abnormal signals when exiting the shipping mode is solved, ensuring that the equipment can be turned on normally.

CN119556549AActive Publication Date: 2025-03-04HONOR DEVICE CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202311084626.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-25
Publication Date
2025-03-04
Estimated Expiration
2043-08-25

AI Technical Summary

Technical Problem

Electronic devices may receive abnormal power and clock signals when exiting shipping mode, resulting in stuck or inability to power on.

Method used

By setting a second processing unit in the battery device of the electronic device, the status of the battery device is detected in real time, and when it is determined that it is in a normal state, the electronic device is controlled to exit the shipping mode to ensure that a normal power signal is received.

Benefits of technology

It effectively avoids the abnormal signal received by electronic devices when exiting shipping mode, ensures that the equipment can be turned on normally, and improves the reliability of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119556549A_ABST
    Figure CN119556549A_ABST
Patent Text Reader

Abstract

The invention provides a startup control method, electronic equipment and a readable storage medium, which are applied to the technical field of electronic equipment, and the method comprises the following steps: when the electronic equipment is in a shipping mode, in response to the operation of a user on a first key, a second processing unit obtains a first level signal, when the electronic equipment is in the shipping mode, the battery device stops supplying power to the system device; determining whether the battery device is in a normal state based on the first level signal; when it is determined that the battery device is in the normal state, the electronic equipment is controlled to exit from the shipping mode, and the electronic equipment exit from the shipping mode comprises the steps that the battery device recovers power supply to the system device; when the electronic equipment exits from the shipping mode, the second processing unit sends a second level signal to the first processing unit; the first processing unit performs startup processing based on the second level signal. When the electronic equipment exits from the shipping mode, the abnormal power supply signal is not received, so that the normal startup of the electronic equipment can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic equipment, and in particular, to a power-on control method, an electronic equipment and a readable storage medium. Background Art

[0002] Electronic devices usually need to go through a period of storage and transportation from the manufacturer's production stage to the user's use stage. During the storage and transportation of electronic devices, if the battery of the electronic device is too low, it will cause the electronic device to bulge, leak, and other problems. Therefore, before the electronic device leaves the factory, the manufacturer will set the electronic device to a shipping mode to improve the safety of the electronic device during storage and transportation. Before using the electronic device, in response to the user's triggering operation on the hardware on the electronic device, the electronic device can exit the shipping mode.

[0003] However, when the electronic device exits the shipping mode, it may receive an abnormal power signal and an abnormal clock signal, causing the electronic device to freeze (for example, freeze, become unresponsive, or the screen of the electronic device remains on a certain interface and cannot be operated) or fail to boot up. Summary of the invention

[0004] The present application provides a power-on control method, an electronic device, and a readable storage medium, which can prevent the electronic device from receiving abnormal power signals and abnormal clock signals when exiting a shipping mode, thereby ensuring that the electronic device can be powered on normally.

[0005] In a first aspect, the present application provides a power-on control method, which is applied to an electronic device, wherein the electronic device includes a first processing unit and a second processing unit, wherein the first processing unit and the second processing unit can establish a communication connection, wherein the first processing unit is located in a system device of the electronic device, and the second processing unit is located in a battery device of the electronic device, wherein the battery device is used to power the system device, and the method includes:

[0006] When the electronic device is in the shipping mode, in response to the user's operation on the first button, the second processing unit obtains the first level signal, and the electronic device is in the shipping mode, including: the battery device stops supplying power to the system device, and the first level signal is used to trigger the startup process of the electronic device;

[0007] Based on the first level signal, determining whether the battery device is in a normal state, where the battery device is in a normal state includes: parameters of the battery device meet preset conditions;

[0008] When it is determined that the battery device is in a normal state, controlling the electronic device to exit the shipping mode, wherein the electronic device exiting the shipping mode includes: the battery device restoring power to the system device;

[0009] When the electronic device exits the shipping mode, the second processing unit sends a second level signal to the first processing unit, and the second level signal is used to control the system device to power on;

[0010] The first processing unit performs a power-on process based on the second level signal.

[0011] In the present application, when the electronic device is in the shipping mode, in response to the user's operation of the first button, the second processing unit in the battery device can obtain the first level signal, which can trigger the startup process of the electronic device. Subsequently, based on the first level signal, the second processing unit can determine whether the battery device is in a normal state, and can accurately obtain the actual power supply state of the battery device. Furthermore, when it is determined that the battery device is in a normal state, the electronic device can be controlled to exit the shipping mode, so that the battery device can restore the power supply to the system device to ensure that the system device can operate normally. Based on this, when the electronic device exits the shipping mode, the second processing unit sends a second level signal to the first processing unit, which can control the system device to power on, so that each unit in the system device can operate normally. Based on the second level signal, the first processing unit can perform the startup process, and can obtain a normal second level signal, so that the electronic device can start normally.

[0012] In some possible implementations, when it is determined that the battery device is in a normal state, controlling the electronic device to exit the shipping mode includes:

[0013] In the case of determining that the battery device is in a normal state, the second processing unit controls the electronic device to exit the shipping mode.

[0014] In the above implementation, the second processing unit in the battery device can detect the status of the battery device in real time. When the second processing unit determines that the battery device is in a normal state, the electronic device is controlled to exit the shipping mode, thereby ensuring that the electronic device does not receive abnormal power signals, thereby ensuring that no abnormalities occur in the electronic device when exiting the shipping mode.

[0015] In some possible implementations, when it is determined that the battery device is in a normal state, controlling the electronic device to exit the shipping mode includes:

[0016] When it is determined that the battery device is in a normal state, the second processing unit sends a first instruction to the first processing unit, where the first instruction is used to notify the first processing unit that the battery device is in a normal state;

[0017] The first processing unit controls the electronic device to exit the shipping mode based on the first instruction.

[0018] In the above implementation, it can be ensured that the electronic device exits the shipping mode normally, thereby preparing for the subsequent startup of the electronic device.

[0019] In some possible implementations, determining whether the battery device is in a normal state based on the first level signal includes:

[0020] The second processing unit determines a first duration, where the first duration is the time for continuously obtaining the first level signal;

[0021] The second processing unit determines whether the first duration is greater than or equal to a preset duration threshold;

[0022] When the first time period is greater than or equal to the preset time period threshold, the second processing unit determines whether the battery device is in a normal state.

[0023] In the above implementation, it is possible to prevent the electronic device from directly exiting the shipping mode when the user accidentally touches the electronic device, thereby improving the reliability of the electronic device exiting the shipping mode.

[0024] In some possible implementations, the electronic device further includes a first identification unit, and the first identification unit is connected to the second processing unit;

[0025] When the electronic device is in the shipping mode, in response to the user's operation on the first button, the second processing unit acquires a first level signal, including:

[0026] When the electronic device is in the shipping mode, in response to the user's operation on the first key, the first recognition unit detects a first level signal;

[0027] The second processing unit obtains the first level signal from the first identification unit.

[0028] In the above implementation, since the first recognition unit is not powered off, the first level signal can be detected in real time by the first recognition unit, thereby improving the efficiency of the second processing unit in acquiring the first level signal and performing subsequent processing based on the first level signal in a timely manner.

[0029] In some possible implementations, before the electronic device is in the shipping mode, the method further includes:

[0030] The first processing unit receives a second instruction, where the second instruction is used to control the electronic device to enter a shipping mode.

[0031] In some possible implementations, when the electronic device enters the shipping mode, the method further includes:

[0032] The first processing unit sends a second instruction to the second processing unit;

[0033] Based on the second instruction, the second processing unit controls the detection function to stop running and controls the key recognition function to keep running, and the detection function includes one or more of the following functions: voltage detection function, current detection function and temperature detection function.

[0034] In some possible implementations, before the electronic device is in the shipping mode, the method further includes:

[0035] If the electronic device is in the first power consumption mode for a preset period of time, the second processing unit controls the electronic device to enter the shipping mode;

[0036] When the electronic device enters the shipping mode, the second processing unit controls the detection function to stop running and controls the key recognition function to keep running, and the detection function includes one or more of the following functions: voltage detection function, current detection function and temperature detection function.

[0037] In the above implementation, by controlling the detection function in the electronic device to stop running and controlling the key recognition function in the electronic device to keep running, the electronic device can be placed in a low power consumption mode, thereby minimizing the power consumption of the electronic device.

[0038] In some possible implementations, the parameter of the battery device includes one or more of the following: a voltage of the battery device, a current of the battery device, and a temperature of the battery device;

[0039] The parameters of the battery device meet the preset conditions, including one or more of the following:

[0040] The voltage of the battery device is less than or equal to a preset voltage threshold;

[0041] The current of the battery device is less than or equal to a preset current threshold;

[0042] The temperature of the battery device is less than or equal to a preset temperature threshold.

[0043] In the above implementation, the parameters of the battery device can be used to accurately determine whether the state of the battery device is normal, thereby avoiding the battery device still supplying power to the system device when the state of the battery device is abnormal, causing the battery device to over-discharge, thereby increasing the service life of the battery device.

[0044] In a second aspect, the present application provides an electronic device, the electronic device comprising a first processing unit and a second processing unit, the first processing unit and the second processing unit can establish a communication connection, the first processing unit is located in a system device of the electronic device, the second processing unit is located in a battery device of the electronic device, and the battery device is used to power the system device;

[0045] When the electronic device is in the shipping mode, in response to the user's operation on the first button, the second processing unit is used to obtain the first level signal, and the electronic device is in the shipping mode including: the battery device stops supplying power to the system device, and the first level signal is used to trigger the startup process of the electronic device;

[0046] The second processing unit is used to determine whether the battery device is in a normal state based on the first level signal, and the battery device is in a normal state including: the parameters of the battery device meet the preset conditions;

[0047] When it is determined that the battery device is in a normal state, the second processing unit is further used to send a second level signal to the first processing unit, and the second level signal is used to control the system device to power on;

[0048] The first processing unit is used for performing a power-on process based on the second level signal.

[0049] In some possible implementations, the electronic device further includes: a first identification unit, the first identification unit being connected to the second processing unit;

[0050] When the electronic device is in the shipping mode, in response to the user's operation on the first key, the first recognition unit is used to detect a first level signal;

[0051] The second processing unit is further configured to obtain a first level signal from the first identification unit.

[0052] In a third aspect, the present application provides a chip system, which is applied to an electronic device including a memory, a display screen and a sensor; the chip system includes: one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected through lines; the interface circuit is used to receive signals from the memory and send signals to the processor, the signals including computer codes or instructions stored in the memory; the processor calls instructions so that the electronic device executes the first aspect and any possible power-on control method of the first aspect.

[0053] Among them, the chip system may include one chip or multiple chips; when the chip system includes multiple chips, this application does not limit parameters such as the type and quantity of the chips.

[0054] In a fourth aspect, the present application provides a readable storage medium, in which codes or instructions are stored, and a processor calls the instructions to enable the electronic device to execute the first aspect and any possible power-on control method of the first aspect.

[0055] In a fifth aspect, the present application provides a computer program product. When the computer program product runs on a computer, it enables the computer to execute the first aspect and any possible startup control method of the first aspect.

[0056] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0058] Figure 1 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application;

[0059] Figure 2 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application;

[0060] Figure 3 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application;

[0061] Figure 4 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application;

[0062] Figure 5 A structural diagram of a key recognition unit provided in one embodiment of the present application;

[0063] Figure 6 A flowchart of a power-on control method provided in one embodiment of the present application;

[0064] Figure 7 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application;

[0065] Figure 8 A schematic diagram of the hardware architecture of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0066] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0067] In the following, the terms "first", "second", and "third" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", and "third" may explicitly or implicitly include one or more of the features.

[0068] Reference to "one embodiment" or "some embodiments" etc. described in the embodiments of the present application means that one or more embodiments in the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in other embodiments", "in other embodiments", etc. that appear in different places in the embodiments of the present application do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways.

[0069] The method for controlling power-on provided in the embodiment of the present application can be applied to electronic devices. The electronic device can be an electronic device with display hardware and corresponding software support. For example, the electronic device can be a mobile phone, a folding screen, a smart screen, a tablet computer, a wearable electronic device, an in-vehicle electronic device, an augmented reality (AR) device, a virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a home appliance, a projector, etc. The embodiment of the present application does not impose any restrictions on the specific type of electronic device.

[0070] The method for controlling power-on in an embodiment of the present application is applicable to an electronic device including a battery device. The battery device is used to provide power to the electronic device. Specifically, the electronic device includes not only the battery device but also a system device. “The battery device is used to provide power to the electronic device” can be understood as: the battery device is used to provide power to the system device of the electronic device.

[0071] The method for controlling power-on in the embodiment of the present application can be applied to the scenario where the electronic device exits or enters the shipping mode. The electronic device is in the shipping mode means that the battery device in the electronic device stops supplying power to the system device. The shipping mode is the mode in which the electronic device is in the lowest quiescent current state.

[0072] For example, when a user first gets an electronic device produced by a manufacturer, he or she needs to operate the relevant hardware in the electronic device to trigger the electronic device to exit the shipping mode and control the electronic device to start normally, so that the user can use the electronic device normally.

[0073] After electronic devices are produced, manufacturers usually set the electronic devices to shipping mode. After the electronic device enters the shipping mode, it is in a power-off state. That is to say, the battery device in the electronic device stops supplying power to the system device, thereby reducing the loss of power in the battery device during long-term transportation and storage of the electronic device, avoiding over-discharge of the battery device, and increasing the service life of the battery device. Over-discharge means that when the battery device supplies power to the system device, the power stored in the battery device is gradually released, and the voltage of the battery device slowly decreases. When the voltage of the battery device drops to a certain specified value, the battery device continues to supply power to the system device. When the electronic device enters the shipping mode, it can ensure that the battery device of the electronic device still has power after a long period of transportation and storage, so that the user can use the electronic device normally when the electronic device is first received.

[0074] See also Figure 1 and Figure 2 , Figure 1 FIG. 1 shows a schematic diagram of the structure of an electronic device. Figure 1 and Figure 2 As shown, the electronic device 100 may include a battery pack 101 and a host system 102. The battery pack 101 and the host system 102 are electrically connected.

[0075] It should be understood that the battery pack 101 is a form of a battery device, and the system board 102 is a form of a system device. Those skilled in the art may also use other forms of battery devices and system devices, and this application does not limit this.

[0076] The battery pack 101 is used to supply power to the system board 102. The battery pack 101 may include at least one battery cell 1011. When the battery pack 101 includes a plurality of battery cells 1011, the plurality of battery cells 1011 are connected in parallel.

[0077] It should be understood that for the sake of convenience, only one battery cell 1011 (such as Figure 1 ) are exemplified.

[0078] like Figure 1 and Figure 2 As shown, the battery pack 101 may also include an NTC (Negative Temperature Coefficient) thermistor 1012. The NTC thermistor 1012 is used to collect the temperature (Packtemperature) of the battery pack 101. NTC refers to the phenomenon and material of thermistor with a negative temperature coefficient, in which the resistance decreases exponentially with the increase of temperature.

[0079] like Figure 1 and Figure 2 As shown, the system board 102 may include a coulomb counter 1021, a current detection resistor (Rsense) 1022, a central processing unit (CPU) 1023 and a power management controller (Power Management Controller) 1024. The system board 102 is used to store programs, instructions and data required for the normal operation of the electronic device 100.

[0080] The power meter 1021 is connected to the central processor 1023 for communication (eg Figure 1 1021 is also electrically connected to the battery cell 1011. The fuel gauge 1021 is also electrically connected to the current detection resistor 1022. The current detection resistor 1022 is also electrically connected to the battery cell 1011. The current detection resistor 1022 is also electrically connected to the power manager 1024. The fuel gauge 1021 is also electrically connected to the NTC thermistor 1012.

[0081] The fuel gauge 1021 is used to measure the voltage (Pack voltage) of the battery pack 101, the current (Pack current) of the battery pack 101, and the temperature of the battery pack 101. Exemplarily, the fuel gauge 1021 can directly use the voltage of the battery pack 101 through the connection line with the battery cell 1011. The fuel gauge 1021 can obtain the current of the battery pack 101 by measuring the voltage drop of the current detection resistor 1022. The fuel gauge 1021 can collect the resistance value of the changed NTC thermistor 1012 and convert the change in resistance value into a voltage signal. Then, the fuel gauge 1021 can obtain the temperature of the battery pack 101 according to the voltage signal.

[0082] The fuel gauge 1021 is also used to send the voltage of the battery pack 101, the current of the battery pack 101 and the temperature of the battery pack 101 to the central processor 1023 and the power manager 1024, so that the power manager 1024 in the system board 102 can control the battery pack 101 to charge the system board 102 according to the voltage of the battery pack 101, the current of the battery pack 101 and the temperature of the battery pack 101, or control the battery pack 101 to stop charging the system board 102.

[0083] The following is based on Figure 1 The structure and connection relationship of the electronic device 100 are described in detail, and the specific implementation process of the electronic device 100 entering the shipping mode is described in detail. At present, before the electronic device 100 leaves the factory, the specific implementation process of the electronic device 100 entering the shipping mode includes:

[0084] Step 11, the host computer on the production line may send a command to enter the shipping mode to the electronic device 100. It should be understood that the command to enter the shipping mode may be in the form of a code, a pulse or a level signal, which is not limited in the present application.

[0085] Optionally, the connection between the host computer and the electronic device 100 can be a wired connection (e.g., a Universal Serial Bus (USB) connection or a Type-C data cable connection) or a wireless connection (e.g., a Bluetooth connection or a wifi connection). Exemplarily, when the connection between the host computer and the electronic device 100 is a USB connection, the central processor 1023 in the electronic device 100 can receive the instruction to enter the shipping mode through the USB interface. When the connection between the host computer and the electronic device 100 is a Bluetooth connection, the electronic device 100 can receive the instruction to enter the shipping mode through the Bluetooth module ( Figure 1 and Figure 2 The module 1020 (not shown) receives the instruction to enter the shipping mode, and transmits the instruction to enter the shipping mode to the central processor 1023 via the Bluetooth module.

[0086] Step 12: After receiving the instruction to enter the shipping mode, the CPU 1023 may send the instruction to enter the shipping mode to the power manager 1024.

[0087] Step 13, the power manager 1024 may control the battery pack 101 to stop supplying power to the system board 102 based on the instruction to enter the shipping mode. Figure 1 The connection between the negative electrode (Pack+) of the battery pack 101 and the system board 102 is disconnected, and the negative electrode ( Figure 1 The connection between the Pack-) in the system board 102 is also disconnected. For ease of explanation, Figure 1 A disconnection in is indicated by an "×".

[0088] After the battery pack 101 stops supplying power to the system board 102, the electronic device 100 is in the shipping mode. Since the fuel gauge 1021 is disposed on the side of the system board 102, the power supply of the fuel gauge 1021 located on the side of the system board 102 is also disconnected after the battery pack 101 stops supplying power to the system board 102. In other words, after the electronic device 100 enters the shipping mode, the fuel gauge 1021 cannot operate normally, that is, the fuel gauge 1021 cannot normally measure the voltage of the battery pack 101, the current of the battery pack 101, the temperature of the battery pack 101, etc.

[0089] Considering that when the user uses the electronic device 100 for the first time, the electronic device 100 is still in the shipping mode. The user can trigger the electronic device 100 to exit the shipping mode through the relevant hardware (e.g., the power button) set in the electronic device 100. After the electronic device 100 exits the shipping mode, the electronic device 100 is controlled to start the power-on process.

[0090] The following is based on Figure 2 The structure and connection relationship of the electronic device 100 are described in detail, and the specific implementation process of starting the electronic device 100 is described in detail. At present, the specific implementation process of starting the electronic device 100 includes:

[0091] Step 21, the user can turn on the power button ( Figure 1 and Figure 2 In response to the user's operation on the power button, the power manager 1024 in the electronic device 100 can detect that the power button signal changes.

[0092] Step 22, after detecting that the power button signal has changed, the power manager 1024 can control the battery pack 101 to resume powering the system board 102. That is, the positive electrode ( Figure 2 The connection between the negative terminal (Pack+) of the battery pack 101 and the system board 102 is restored, and the negative terminal ( Figure 2 The connection between the battery pack 101 and the system board 102 is also restored. At this time, the battery pack 101 can send a power signal to the system board 102, so that the fuel gauge 1021, the current detection resistor 1022 and the central processor 1023 on the system board 102 side can operate.

[0093] Step 23, after the battery pack 101 resumes powering the system board 102, the central processing unit 1023 may obtain the duration of the power button signal change.

[0094] In step 24 , the central processing unit 1023 may determine whether the duration of the power button signal change is greater than a power-on duration threshold stored in the electronic device 100 .

[0095] If the duration of the power button signal change is greater than the power-on duration threshold, the CPU 1023 may execute step 25. If the duration of the power button signal change is less than or equal to the power-on duration threshold, the CPU 1023 may execute step 26.

[0096] In step 25, the central processing unit 1023 may control the electronic device 100 to start up.

[0097] In step 26, the CPU 1023 may control the electronic device 100 to continue to maintain the shipping mode through the power manager 1024.

[0098] However, after the electronic device 100 enters the shipping mode, the fuel gauge 1021 cannot normally measure the voltage, current and temperature of the battery pack 101, that is, the fuel gauge 1021 cannot determine whether the state of the battery pack 101 is normal. When the state of the battery pack 101 is abnormal, the battery pack 101 sends an abnormal power signal to the system board 102, which in turn causes the clock signal of the system board 102 to be abnormal, and further causes the electronic device 100 to freeze or fail to start.

[0099] In response to the above problems, an embodiment of the present application provides an electronic device, which is provided with a second processing unit on one side of the battery device of the electronic device, and then the second processing unit is used to determine whether the battery device is in a normal state. Since the second processing unit on one side of the battery device will not be powered off, the second processing unit can detect and determine the state of the battery device in real time, which can improve the detection and judgment efficiency of the second processing unit and ensure that the first processing unit does not receive abnormal power signals. When it is determined that the battery device is in a normal state, the electronic device is controlled to exit the shipping mode by the second processing unit. When the electronic device exits the shipping mode, the second processing unit can send a power-on signal to the first processing unit so that the battery device resumes powering the system device. The first processing unit can control the electronic device to start up based on the power-on signal, so that the electronic device can start up normally.

[0100] See also Figure 3 , Figure 3 FIG. 1 shows a schematic diagram of the structure of an electronic device. Figure 3 As shown, the electronic device 200 may include a system device 201 and a battery device 202. The system device 201 and the battery device 202 are electrically connected. The battery device 202 is used to supply power to the system device 201. The positive electrode ( Figure 3 The negative terminal (Pack+) of the battery device 202 is connected to one end of the system device 201. Figure 3 The Pack-) in the system device 201 is connected to the other end.

[0101] Optionally, in some embodiments, Figure 3 As shown, the electronic device 200 may further include a first processing unit 2011 and a second processing unit 2021. The first processing unit 2011 and the second processing unit 2021 can establish a communication connection. The first processing unit 2011 is located in the system device 201 of the electronic device 200. The second processing unit 2021 is located in the battery device 202 of the electronic device 200.

[0102] The second processing unit 2021 is used to start the power-on process of the electronic device 200 based on the first level signal. Exemplarily, the second processing unit 2021 can be a microcontroller unit (MCU) of the fuel gauge. When the second processing unit 2021 is the MCU of the fuel gauge, it means that the battery device 202 also includes a fuel gauge. It should be noted that when the fuel gauge is set in the battery device 202, no power failure will occur. Therefore, the fuel gauge in the battery device 202 does not need to be reset on power-on, and the efficiency of measuring the parameters of the battery device 202 is higher.

[0103] The first level signal is used to trigger the startup process of the electronic device 200. It should be noted that the first level signal can be a high level signal or a low level signal, which is not limited in the present application. Usually, the first level signal is a low level signal.

[0104] Optionally, in some embodiments, Figure 3 As shown, the electronic device 200 may further include a key recognition unit 203, and the key recognition unit 203 is connected to the first processing unit 2011 and the second processing unit 2021 respectively.

[0105] Optionally, in some embodiments, Figure 5 As shown, the key recognition unit 203 may include a first recognition unit 2031 , a second recognition unit 2032 and a first key K1 .

[0106] The first recognition unit 2031 is used to detect the first level signal. The first recognition unit 2031 is electrically connected to the first key K1. The first recognition unit 2031 is also electrically connected to the second recognition unit 2032. The first recognition unit 2031 is also electrically connected to the second processing unit 2021. The first recognition unit 2031 is also electrically connected to the battery device 202. Exemplarily, the first recognition unit 2031 may include a first resistor R1 and a second resistor R2. The first resistor R1 is electrically connected to the second resistor R2.

[0107] The second identification unit 2032 is electrically connected to the first key K1. The second identification unit 2032 is also electrically connected to the power management unit 2012. Exemplarily, the second identification unit 2032 may include a third resistor R3 and a diode. The third resistor and the diode are electrically connected.

[0108] It should be noted that the first button K1 may belong to the first recognition unit 2031 or the second recognition unit 2032 , and the first recognition unit 2031 and the second recognition unit 2032 may reuse the first button K1 .

[0109] When the first button K1 belongs to the first identification unit 2031, the first button K1 can be an on / off button already set in the electronic device 200, or other buttons set in the electronic device 200 (for example, a volume adjustment button), or a button that does not exist in the electronic device 200, and the embodiment of the present application does not limit this.

[0110] It should be noted that the first identification unit 2031 is a newly added part in the key identification unit 203 of the embodiment of the present application. Based on the above description, when the first key K1 is not a power button, and the first key K1 belongs to the first identification unit 2031, the first key K1 and the first identification unit 2031 can be regarded as an integral circuit. The integral circuit is a newly added part in the key identification unit 203, and is independently set in the electronic device 200.

[0111] It should also be noted that when the first button K1 is not a power button and the first button K1 belongs to the first identification unit 2031, the second identification unit 2032 and the power button in the electronic device 200 can be regarded as an integral circuit for realizing the power function of the electronic device 200.

[0112] In the case where the first button K1 belongs to the second identification unit 2032 , the first button K1 may be a power button already set in the electronic device 200 . In this case, the second identification unit 2032 may be regarded as a button identification unit 203 already set in the electronic device 200 .

[0113] At the same time, in order to be compatible with the original power on / off button function of the electronic device 200, the connection relationship between the first recognition unit 2031, the second recognition unit 2032 and the first button K1 can refer to Figure 5 Description, but the embodiments of the present application are not limited to this.

[0114] like Figure 5 As shown, in the case where the first recognition unit 2031 and the second recognition unit 2032 reuse the first key K1, the first key K1 is a power on / off key in the electronic device 200, so that the first key K1 has both the function of exiting the shipping mode and the function of turning on the device, which can make the overall circuit structure of the key recognition unit 203 simpler. At this time, the second recognition unit 2032 in the key recognition unit 203 can also be used to detect the first level signal.

[0115] It is understandable that the first identification unit 2031 may also have other names, such as, first key circuit, etc., which is not limited in the embodiment of the present application.

[0116] It should also be noted that the specific resistance values ​​and / or models of the first resistor R1, the second resistor R2 and the third resistor R3 can be selected by those skilled in the art according to actual needs, and this application does not limit this.

[0117] Optionally, in some embodiments, Figure 4 As shown, the electronic device 200 may further include a power management unit 2012. One form of the power management unit 2012 is Figure 1 The power management unit 2012 is located in the system device 201 of the electronic device 200. The power management unit 2012 is electrically connected to the first processing unit 2011. The power management unit 2012 is used to configure the power signal required by the first processing unit 2011.

[0118] exist Figure 4 On the basis of Figure 5 The connection relationship of the key recognition unit 203 shown in the figure includes: the first resistor R1 is electrically connected to the battery device 202, and the first resistor R1 is also electrically connected to the second processing unit 2021. Generally, the pins (such as Figure 5 The level signal of the power supply (as shown) is a high level signal. The second resistor R2 is electrically connected to the second processing unit 2021. The second resistor R2 is also electrically connected to the first button K1. The first button K1 is also electrically connected to the diode. The diode is also electrically connected to the third resistor R3. The third resistor R3 is also electrically connected to the power management unit 2012.

[0119] When the user presses the first button K1, in response to the user's operation on the first button K1, a pin ( Figure 5 The level signal of the pins connected to the third resistor R3 and the diode in the power management unit 2012 is changed to a low level signal, and the other pin ( Figure 5 The level signal of the pin (only the pin connected to the third resistor R3) becomes a high level signal.

[0120] It should be noted that due to Figure 5The circuit of the key recognition unit 203 is connected to both the second processing unit 2021 and the power management unit 2012. That is, the circuit of the key recognition unit 203 is connected to both the battery device 202 and the system device 201. Moreover, both the first recognition unit 2031 and the second recognition unit 2032 can be used to detect the first level signal. Therefore, when controlling the electronic device 200 to enter or exit the shipping mode, the user can independently choose whether to use the second processing unit 2021 for control or the power management unit 2012 for control. Alternatively, the electronic device 200 can automatically choose to use the second processing unit 2021 for control or the power management unit 2012 for control according to the trigger conditions stored in advance, and the embodiment of the present application does not limit this.

[0121] The first processing unit 2011 is used to perform a power-on process based on the second level signal. Exemplarily, the first processing unit 2011 may be a CPU of the system device 201. The second level signal is used to control the system device 201 to power on. It should be noted that the second level signal may be a high level signal or a low level signal. Typically, the second level signal is a high level signal.

[0122] Optionally, in some embodiments, Figure 4 As shown, the electronic device 200 may further include a temperature detection unit 2022 and a current detection unit 2023. The temperature detection unit 2022 is located in the battery device 202 of the electronic device 200, and the temperature detection unit 2022 is electrically connected to the second processing unit 2021. The temperature detection unit 2022 is used to collect the temperature of the battery device 202. Exemplarily, the temperature detection unit 2022 may be used Figure 1 The NTC thermistor 1012 in the electronic device 200. The current detection unit 2023 is located in the battery device 202 of the electronic device 200, and the current detection unit 2023 is electrically connected to the second processing unit 2021. The current detection unit 2023 is used to collect the current of the battery device 202. Exemplarily, the current detection unit 2023 can be Figure 1 The current detection resistor 1022 in.

[0123] It should be understood that, in addition to the NTC thermistor 1012 used as an example above, the temperature detection unit 2022 in the embodiment of the present application can also use components for collecting temperature known to those skilled in the art. In addition to the current detection resistor 1022 used as an example above, the current detection unit 2023 in the embodiment of the present application can also use components for collecting current known to those skilled in the art, and the embodiment of the present application does not limit this.

[0124] Optionally, in some embodiments, Figure 4As shown, the electronic device 200 may further include a battery cell unit 2024. One form of the battery cell unit 2024 is Figure 1 The battery cell 1011 in the electronic device 200 is used to supply power to each unit in the electronic device 200. The specific connection relationship of the battery cell 2024 can be found in Figure 4 , which will not be elaborated here.

[0125] Optionally, in some embodiments, Figure 4 As shown, the electronic device 200 may further include a peripheral unit 2013 and a storage unit 2014. The peripheral unit 2013 is located in the system device 201 of the electronic device 200. The peripheral unit 2013 is electrically connected to the power management unit 2012. The peripheral unit 2013 is used to connect other expansion devices so that the electronic device 200 can achieve other functions. The storage unit 2014 is located in the system device 201 of the electronic device 200. The storage unit 2014 is electrically connected to the power management unit 2012. The storage unit 2014 is used to store programs, data, instructions, etc. run by the electronic device 200.

[0126] It should be understood that the electronic device 200 of the embodiment of the present application may also include Figure 3 and Figure 4 The other units or modules shown in the embodiment of the present application are not limited to this.

[0127] Combination of the above Figures 3 to 5 , describes the structure of the electronic device in detail, and then combines Figure 6 and Figure 7 , describes in detail the specific implementation process of the power-on control method in the embodiment of the present application.

[0128] See also Figure 6 , Figure 6 FIG. 1 is a flow chart of a power-on control method provided by an embodiment of the present application. Figure 6 As shown, the method for controlling startup in the embodiment of the present application includes:

[0129] S101, when the electronic device is in a shipping mode, in response to a user's operation on a first button, a second processing unit acquires a first level signal.

[0130] Optionally, in some embodiments, the electronic device 200 being in the shipping mode may include: the battery device 202 stops supplying power to the system device 201. That is, the positive electrode ( Figure 7 The connection between the Pack+ in the battery device 202 and the system device 201 is disconnected, and the negative electrode ( Figure 7 The connection between Pack-) and the system device 201 is also disconnected.

[0131] It should be noted that Figure 7 and Figure 3 The electronic device 200 has the same structure as the electronic device 200, and the difference between the two is the connection relationship between the battery device 202 and the system device 201. For the convenience of explanation, Figure 7 A disconnection in is indicated by an "×".

[0132] Optionally, in some embodiments, the electronic device 200 in the shipping mode may also include: the first processing unit 2011 and the power management unit 2012 in the system device 201 both stop running, and the second processing unit 2021 in the battery device 202 keeps running, and the first recognition unit 2031 in the key recognition unit 203 keeps running.

[0133] The first level signal is used to trigger the startup process of the electronic device 200. Optionally, in some embodiments, when the electronic device 200 is in the shipping mode, in response to the user's operation on the first button K1, Figure 5 The first recognition unit 2031 in the apparatus can detect the first level signal; the second processing unit 2021 can obtain the first level signal from the first recognition unit 2031.

[0134] Since the electronic device 200 is in the shipping mode, only the second processing unit 2021 and the first recognition unit 2031 in the key recognition unit 203 are running in the electronic device 200. At this time, the user can trigger the power-on process of the electronic device 100 by operating the first key K1 in the key recognition unit 203. In response to the user's operation on the first key K1, the second processing unit 2021 can obtain the first level signal. Usually, after the user operates the first key K1, the level signal of the first key K1 can jump from a high level signal to a low level signal. When the second processing unit 2021 detects that the level signal of the first key K1 jumps, it can obtain the low level signal after the jump.

[0135] In summary, the second processing unit 2021 can obtain the first level signal, so that the second processing unit 2021 starts the power-on process of the electronic device 200 .

[0136] In order to prevent the first processing unit 2011 in the system device 201 from receiving an abnormal power signal and an abnormal clock signal when the electronic device 200 exits the shipping mode, causing the electronic device 200 to freeze or fail to start, the second processing unit 2021 needs to determine the state of the battery device 202 after obtaining the first level signal.

[0137] S102, determining whether the battery device is in a normal state based on the first level signal.

[0138] Optionally, in some embodiments, the battery device 202 being in a normal state includes: parameters of the battery device 202 satisfying preset conditions.

[0139] Optionally, in some embodiments, the parameters of the battery device 202 include one or more of the following: the voltage of the battery device 202, the current of the battery device 202, and the temperature of the battery device 202. The voltage of the battery device 202 can be directly obtained by the second processing unit 2021. The current of the battery device 202 can be directly obtained by the second processing unit 2021. Figure 3 or Figure 4 The current detection unit 2023 in the battery device 202 is used to collect the temperature. Figure 3 or Figure 4 The temperature detection unit 2022 in the system collects the data.

[0140] Optionally, in some embodiments, the parameters of the battery device 202 satisfy preset conditions, including one or more of the following:

[0141] The voltage of the battery device 202 is less than or equal to a preset voltage threshold; the current of the battery device 202 is less than or equal to a preset current threshold; the temperature of the battery device 202 is less than or equal to a preset temperature threshold. Generally, the parameters of the battery device 202 satisfying the preset conditions means that the above three items all satisfy the corresponding preset thresholds.

[0142] Therefore, it is possible to accurately determine whether the state of the battery device 202 is normal through the parameters of the battery device 202, and avoid the situation where the battery device 202 still supplies power to the system device 201 when the state of the battery device 202 is abnormal, resulting in over-discharge of the battery device 202, thereby increasing the service life of the battery device 202.

[0143] If the parameters of the battery device 202 do not meet the preset conditions, the second processing unit 2021 may determine that the battery device 202 is in an abnormal state. At this time, the second processing unit 2021 controls the electronic device 200 to maintain the shipping mode.

[0144] Optionally, in some embodiments, after the second processing unit 2021 obtains the first level signal, the second processing unit 2021 may determine a first duration. The first duration is the time for continuously obtaining the first level signal. After obtaining the first duration, the second processing unit 2021 may determine whether the first duration is greater than or equal to a preset duration threshold pre-stored in the second processing unit 2021. This can prevent the electronic device 200 from directly exiting the shipping mode when the user accidentally touches the first button K1, thereby improving the reliability of the electronic device 200 exiting the shipping mode.

[0145] When the first duration is greater than or equal to the preset duration threshold, the second processing unit 2021 may continue to determine whether the battery device 202 is in a normal state. When it is determined that the first duration is less than the preset duration threshold, the second processing unit 2021 does not need to continue to determine whether the battery device 202 is in a normal state. This prepares for controlling the electronic device 200 to exit the shipping mode normally.

[0146] For example, when the first button K1 is a power button, the first duration is the time the user acts on the power button. In other words, the first duration is the time the second processing unit 2021 continuously obtains the power button signal. The preset duration threshold is the preset power-on duration threshold.

[0147] S103, when it is determined that the battery device is in a normal state, controlling the electronic device to exit the shipping mode.

[0148] Optionally, in some embodiments, the electronic device 200 exiting the shipping mode includes: the battery device 202 resumes powering the system device 201. That is, the positive electrode ( Figure 3 The connection between the Pack+ in the battery device 202 and the system device 201 is restored, and the negative electrode ( Figure 3 The connection between the Pack-) in the system device 201 is also restored. In addition, the communication connection between the first processing unit 2011 and the second processing unit 2021 is also restored.

[0149] Optionally, in some embodiments, when the second processing unit 2021 determines that the battery device 202 is in a normal state, the second processing unit 2021 can directly control the electronic device 200 to exit the shipping mode. In other words, the second processing unit 2021 controls the battery device 202 to resume power supply to the system device 201.

[0150] Optionally, in other embodiments, when the second processing unit 2021 determines that the battery device 202 is in a normal state, the second processing unit 2021 may send a first instruction to the first processing unit 2011. The first instruction is used to notify the first processing unit 2011 that the battery device 202 is in a normal state. After receiving the first instruction, the first processing unit 2011 may control the electronic device 200 to exit the shipping mode based on the first instruction. That is, the first processing unit 2011 controls the battery device 202 to resume power supply to the system device 201.

[0151] Optionally, in some embodiments, the second processing unit 2021 may send the first instruction to the first processing unit 2011 through the power management unit 2012. After receiving the first instruction, the power management unit 2012 may control the electronic device 200 to exit the shipping mode based on the first instruction.

[0152] In summary, when it is determined that the battery device 202 is in a normal state, the electronic device 200 can exit the shipping mode to prepare for powering on the electronic device 200 .

[0153] S104, when the electronic device exits the shipping mode, the second processing unit sends a second level signal to the first processing unit.

[0154] The second level signal is used to control the system device 201 to power on (or power-on reset). Usually, the second level signal is a high level signal. Powering on the system device 201 refers to the process of initializing the programs and / or instructions in the system device 201 and starting to run again.

[0155] In some embodiments, when the electronic device 200 exits the shipping mode, the second processing unit 2021 may send a second level signal to the first processing unit 2011 through the power management unit 2012, so that the first processing unit 2011 performs a startup. At the same time, the power management unit 2012 may control the system device 201 to power on based on the second level signal. In other words, the power management unit 2012 may configure a power signal that can ensure the normal operation of the system device 201 based on the second level signal, and send the power signal to the first processing unit 2011.

[0156] S105: The first processing unit performs a power-on process based on the second level signal.

[0157] After receiving the second level signal, the first processing unit 2011 can control the electronic device 200 to perform the power-on process based on the second level signal. Since the second level signal received by the first processing unit 2011 is normal, the electronic device 200 can avoid being stuck or unable to start up when performing the power-on process.

[0158] The power-on control method in the embodiment of the present application can obtain the first level signal in response to the user's operation of the first button when the electronic device is in the shipping mode, and can trigger the power-on process of starting the electronic device. Then, based on the first level signal, the second processing unit can determine whether the battery device is in a normal state, and can accurately obtain the actual power supply state of the battery device. Furthermore, when it is determined that the battery device is in a normal state, the electronic device can be controlled to exit the shipping mode, so that the battery device can restore the power supply to the system device to ensure that the system device can operate normally. Based on this, when the electronic device exits the shipping mode, the second processing unit sends a second level signal to the first processing unit, which can control the system device to power on, so that each unit in the system device can operate normally. Based on the second level signal, the first processing unit can perform the power-on process, and can obtain a normal second level signal, so that the electronic device can be powered on normally.

[0159] Therefore, the state of the battery device can be determined in real time by the second processing unit in the battery device, and the electronic device can be controlled to exit the shipping mode only when the battery device is in a normal state, which can improve the reliability of the electronic device exiting the shipping mode. Based on this, it can be ensured that the second level signal sent by the second processing unit to the first processing unit is a normal power signal, so that the electronic device can be turned on normally.

[0160] In the embodiment of the present application, before executing S101, the electronic device 200 may use a variety of possible implementation methods to control the electronic device 200 to enter the shipping mode.

[0161] Based on the above Figure 3 and Figure 4 With reference to the related description, an optional implementation method for the electronic device 200 to enter the shipping mode is described in detail below.

[0162] Optionally, in some embodiments, before the second processing unit 2021 executes S101, the first processing unit 2011 may receive a second instruction. The second instruction is used to control the electronic device 200 to enter the shipping mode. And when the electronic device 200 enters the shipping mode, the communication connection between the first processing unit 2011 and the second processing unit 2021 is disconnected.

[0163] Exemplarily, the second instruction may be an instruction sent by a host computer on the production line to the first processing unit 2011. Alternatively, the second instruction may also be a preset instruction stored in the first processing unit 2011 in advance.

[0164] Optionally, in some embodiments, when the electronic device 200 enters the shipping mode, the first processing unit 2011 may send a second instruction to the second processing unit 2021. Figure 4As shown, the first processing unit 2011 may send a second instruction to the second processing unit 2021 through the power management unit 2012. After receiving the second instruction, the second processing unit 2021 may control the detection function in the electronic device 200 to stop running based on the second instruction, and control the key recognition function to keep running.

[0165] The detection function includes one or more of the following functions: voltage detection function, current detection function and temperature detection function. Figure 4 As shown, the current detection function is a function corresponding to the current detection unit 2023. The temperature detection function is a function corresponding to the temperature detection unit 2022. The key recognition function is a function corresponding to the first recognition unit 2031 in the key recognition unit 203.

[0166] Generally, in order to ensure that the electronic device 200 is in the lowest power consumption mode, the second processing unit 2021 can control each detection function in the electronic device 200 to stop running based on the second instruction. In other words, the second processing unit 2021 can control the current detection unit 2023 and the temperature detection unit 2022 in the electronic device 200 to stop running based on the second instruction, and control the first recognition unit 2031 in the key recognition unit 203 to keep running, so that the electronic device 200 is in the lowest power consumption mode.

[0167] Based on the above Figure 3 and Figure 4 With reference to the related description, another optional implementation method for the electronic device 200 to enter the shipping mode is described in detail below.

[0168] Optionally, in some other embodiments, before the second processing unit 2021 executes S101, the second processing unit 2021 may determine whether the electronic device 200 has been in the first power consumption mode for a preset time period. The first power consumption mode is a mode with the least functions running in the electronic device 200 (or a mode with the lowest power consumption). Exemplarily, when the power consumption per unit time is less than 5%, the electronic device 200 is in the first power consumption mode. The power consumption can be calculated based on the current of the battery device 202 or the voltage of the battery device 202.

[0169] Exemplarily, the second processing unit 2021 can collect the current of the electronic device 200 through the current detection unit 2023 to determine whether the electronic device 200 is always in the first power consumption mode. If the current of the electronic device 200 is less than the specified value within the preset time, the second processing unit 2021 can determine that the electronic device 200 is always in the first power consumption mode.

[0170] Assume that the preset duration is 7 days, the collection interval is 6 hours, and the specified value is 0.5 mA. The second processing unit 2021 can collect the current of the electronic device 200 every 6 hours within 7 days to obtain the current of multiple electronic devices 200. The second processing unit 2021 can determine whether the current of each electronic device 200 is less than 0.5 mA. When it is determined that the current of each electronic device 200 is less than 0.5 mA, the second processing unit 2021 can determine that the electronic device 200 has been in the first power consumption mode.

[0171] In summary, within the preset time period, if the electronic device 200 is always in the first power consumption mode, the second processing unit 2021 controls the electronic device 200 to enter the shipping mode, so that the battery device 202 in the electronic device 200 is disconnected from the power supply of the system device 201 to reduce the power loss of the battery device 202 in the electronic device 200.

[0172] Based on the above description, when the electronic device 200 enters the shipping mode, the second processing unit 2021 can control the detection function to stop running, and control the key recognition function to keep running. The detection function includes one or more of the following functions: voltage detection function, current detection function, and temperature detection function. In other words, the second processing unit 2021 can control the corresponding unit to stop running or keep running. For details, please refer to the above description, which will not be repeated here.

[0173] The power-on control method of the embodiment of the present application can control the electronic device 200 to enter or exit the shipping mode based on the parameters of the battery device 202 detected in real time through the second processing unit 2021 in the battery device 202, thereby reducing the abnormal risk of the electronic device 200 during the power-on stage. Exemplarily, the abnormal risk of the electronic device 200 during the power-on stage may include that the voltage of the power signal sent by the battery device 202 to the system device 201 is too low, which cannot support the normal operation of the system device 201, causing the system device 201 to be stuck or unable to perform the power-on process, causing the electronic device 200 to be unable to start normally.

[0174] It should be understood that the above-mentioned term "unit" can be implemented in the form of software and / or hardware, and the embodiments of the present application do not specifically limit this. For example, a "unit" can be a software program, a hardware circuit, or a combination of the two that implements the above-mentioned functions. The hardware circuit may include an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a dedicated processor, or a group processor, etc.) and a memory that executes one or more software or firmware programs, an integrated logic circuit, and / or other suitable devices that can provide the above-mentioned functions.

[0175] See also Figure 8 , Figure 8 A schematic diagram of the hardware architecture of an electronic device provided in an embodiment of the present application is shown.

[0176] like Figure 8 As shown, the electronic device 200 may include: a processor 110, an external memory interface 120, an internal memory 121 (equivalent to Figure 4 storage unit 2014 in, universal serial bus (USB) interface 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194 and subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L and a bone conduction sensor 180M, etc.

[0177] It should be noted that Figure 8 The structure shown does not constitute a specific limitation on the hardware system of the electronic device 200. In other embodiments of the present application, the hardware system of the electronic device 200 may include: Figure 8 The components shown are more or less than the components shown, or the hardware system of the electronic device 200 may include Figure 8 A combination of some of the components shown, or a hardware system of the electronic device 200 may include Figure 8 Subcomponents of some of the components shown. For example, Figure 8 The illustrated proximity light sensor 180G may be optional. Figure 8 The components shown may be implemented in hardware, software, or a combination of software and hardware.

[0178] The processor 110 may include one or more processing units. For example, the processor 110 may include at least one of the following processing units: an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and a neural-network processing unit (NPU). Different processing units may be independent devices or integrated devices.

[0179] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0180] It should be noted that Figure 8 The processor 110 in Figure 3 and Figure 4 The first processing unit 2011 in.

[0181] Figure 8 The connection relationship between the modules shown is only a schematic illustration and does not constitute a limitation on the connection relationship between the modules of the electronic device 200. Optionally, the modules of the electronic device 200 may also adopt a combination of multiple connection modes in the above embodiments.

[0182] The power management module 141 is used to configure the power signal required for the normal operation of the processor 110 according to the state of the battery 142. It should be noted that, Figure 8 The power management module 141 in the Figure 4 The power management unit 2012 in the electronic device 200. The battery 142 is used to supply power to various components in the electronic device 200, thereby ensuring that the electronic device 200 can operate normally.

[0183] like Figure 8As shown, the battery 142 may include a controller 1421. The controller 1421 may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions. The controller 1421 is used to control the startup process of the electronic device 200. The controller 1421 may be an MCU of a power meter. It should be noted that the controller 1421 is equivalent to Figure 3 and Figure 4 The second processing unit 2021 in.

[0184] The battery 142 may also include a battery temperature sensor ( Figure 8 Not shown) and the current sensor ( Figure 8 The battery temperature sensor is used to detect the temperature inside the battery. The current sensor is used to detect the current of the battery. The battery temperature sensor is equivalent to Figure 4 The temperature detection unit 2022 in the current sensor is equivalent to Figure 4 The current detection unit 2023 in.

[0185] The temperature sensor 180K is used to detect the temperature outside the battery. The models of the temperature sensor 180K and the battery temperature sensor can be selected by those skilled in the art according to actual conditions, and the embodiments of the present application do not limit this.

[0186] The button 190 includes a power button and a volume adjustment button. The button 190 can be a mechanical button or a touch button. The electronic device 200 can receive the signal input by the button 190 and implement the function related to the signal input by the button 190. For example, Figure 5 One form of the first key K1 in is Figure 8 The key 190 in.

[0187] based on Figure 8 The hardware architecture of the present invention assumes that the electronic device 200 is already in the shipping mode and the button 190 is a power button. The specific implementation process of the power-on control method of the embodiment of the present application includes:

[0188] Step 31: When the electronic device 200 is in the shipping mode, in response to the user's operation on the button 190, the controller 1421 may obtain a first level signal, thereby starting the power-on process of the electronic device 200.

[0189] In step 32, the controller 1421 may determine whether the battery 142 is in a normal state based on the first level signal.

[0190] In step 33, when it is determined that the battery 142 is in a normal state, the controller 1421 may control the electronic device 200 to exit the shipping mode.

[0191] Step 34: When the electronic device 200 exits the shipping mode, the controller 1421 may send a second level signal to the processor 110, thereby controlling the processor 110 to power on and reset.

[0192] In step 35 , the processor 110 may perform a power-on process based on the second level signal.

[0193] In summary, the power-on control method of the embodiment of the present application can first determine whether the state of the battery 142 is normal through the controller 1421 in the battery 142 before controlling the electronic device 200 to power on, and ensure that when the state of the battery 142 is normal, the electronic device 200 is controlled to exit the shipping mode, thereby improving the reliability of exiting the shipping mode. In addition, when the state of the battery 142 is normal and the shipping mode is exited, the controller 1421 sends the second level signal to the processor 110, so that the processor 110 can perform the power-on processing of the electronic device 200 according to the normal second level signal, ensuring that the electronic device 200 can be powered on normally. This avoids the abnormality of the electronic device 200 being stuck or unable to power on due to the processor 110 receiving an abnormal power signal.

[0194] Exemplarily, the present application provides a readable storage medium, in which codes or instructions are stored, and the processor calls the computer instructions so that the electronic device 200 implements the method in the foregoing embodiment when executing.

[0195] Exemplarily, the present application provides a chip system, which is applied to an electronic device 200 including a memory, a display screen and a sensor; the chip system includes: one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected through lines; the interface circuit is used to receive signals from the memory and send signals to the processor, and the signals include computer codes or instructions stored in the memory; when the processor calls the computer code or instructions, the electronic device 200 executes the method in the previous embodiment.

[0196] Exemplarily, the present application provides a computer program product, which enables the electronic device 200 to implement the method in the foregoing embodiment when the computer program product is executed on a computer.

[0197] In the above embodiments, all or part of the functions can be implemented by software, hardware, or a combination of software and hardware. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer codes or instructions. When the computer program code or instructions are loaded and executed on a computer, the process or function according to the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer code or instructions can be stored in a computer-readable storage medium. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integration. Available media can be magnetic media, (e.g., floppy disk, hard disk, tape), optical media (e.g., DVD), or semiconductor media (e.g., solid state disk (SSD)), etc.

[0198] A person skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by a computer program to instruct the relevant hardware, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above-mentioned method embodiments. The aforementioned storage medium includes: a read-only memory (ROM) or a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

Claims

1. A startup control method, characterized in that: Applied to an electronic device, the electronic device includes a first processing unit and a second processing unit, the first processing unit and the second processing unit can establish a communication connection, the first processing unit is located in a system device of the electronic device, the second processing unit is located in a battery device of the electronic device, the battery device is used to power the system device, the method includes: When the electronic device is in the shipping mode, in response to the user's operation on the first button, the second processing unit acquires a first level signal, wherein the electronic device is in the shipping mode including: the battery device stops supplying power to the system device, and the first level signal is used to trigger the startup process of the electronic device; Based on the first level signal, determining whether the battery device is in a normal state, wherein the battery device is in a normal state includes: parameters of the battery device meet preset conditions; In the case where it is determined that the battery device is in a normal state, controlling the electronic device to exit the shipping mode, wherein the electronic device exiting the shipping mode includes: the battery device restoring power to the system device; When the electronic device exits the shipping mode, the second processing unit sends a second level signal to the first processing unit, the second level signal being used to control the system device to power on; The first processing unit performs a power-on process based on the second level signal.

2. The method according to claim 1, characterized in that When determining that the battery device is in a normal state, controlling the electronic device to exit the shipping mode comprises: In case that it is determined that the battery device is in a normal state, the second processing unit controls the electronic device to exit the shipping mode.

3. The method according to claim 1, characterized in that When determining that the battery device is in a normal state, controlling the electronic device to exit the shipping mode comprises: In the case of determining that the battery device is in a normal state, the second processing unit sends a first instruction to the first processing unit, where the first instruction is used to notify the first processing unit that the battery device is in a normal state; The first processing unit controls the electronic device to exit the shipping mode based on the first instruction.

4. The method according to any one of claims 1 to 3, characterized in that The determining whether the battery device is in a normal state based on the first level signal includes: The second processing unit determines a first duration, where the first duration is the time for continuously obtaining the first level signal; The second processing unit determines whether the first duration is greater than or equal to a preset duration threshold; When the first time period is greater than or equal to the preset time period threshold, the second processing unit determines whether the battery device is in a normal state.

5. The method according to any one of claims 1 to 4, characterized in that The electronic device further comprises a first identification unit, wherein the first identification unit is connected to the second processing unit; When the electronic device is in the shipping mode, in response to the user's operation on the first button, the second processing unit acquires a first level signal, including: When the electronic device is in the shipping mode, in response to a user's operation on the first button, the first recognition unit detects the first level signal; The second processing unit obtains the first level signal from the first identification unit.

6. The method according to any one of claims 1 to 5, characterized in that Before the electronic device is in the shipping mode, the method further comprises: The first processing unit receives a second instruction, where the second instruction is used to control the electronic device to enter the shipping mode.

7. The method according to claim 6, characterized in that When the electronic device enters the shipping mode, the method further includes: The first processing unit sends the second instruction to the second processing unit; Based on the second instruction, the second processing unit controls the detection function to stop running and controls the key recognition function to keep running, and the detection function includes one or more of the following functions: voltage detection function, current detection function and temperature detection function.

8. The method according to any one of claims 1 to 5, characterized in that Before the electronic device is in the shipping mode, the method further comprises: If the electronic device is in the first power consumption mode for a preset time period, the second processing unit controls the electronic device to enter the shipping mode; When the electronic device enters the shipping mode, the second processing unit controls the detection function to stop running and controls the key recognition function to keep running, and the detection function includes one or more of the following functions: voltage detection function, current detection function and temperature detection function.

9. The method according to any one of claims 1 to 8, characterized in that The parameters of the battery device include one or more of the following: the voltage of the battery device, the current of the battery device, and the temperature of the battery device; The parameters of the battery device meet preset conditions, including one or more of the following: The voltage of the battery device is less than or equal to a preset voltage threshold; The current of the battery device is less than or equal to a preset current threshold; The temperature of the battery device is less than or equal to a preset temperature threshold.

10. An electronic device, characterized in that: The electronic device comprises a first processing unit and a second processing unit, the first processing unit and the second processing unit can establish a communication connection, the first processing unit is located in a system device of the electronic device, and the second processing unit is located in a battery device of the electronic device, and the battery device is used to power the system device; When the electronic device is in the shipping mode, in response to the user's operation on the first button, the second processing unit is used to obtain a first level signal, wherein the electronic device is in the shipping mode including: the battery device stops supplying power to the system device, and the first level signal is used to trigger the startup process of the electronic device; The second processing unit is used to determine whether the battery device is in a normal state based on the first level signal, and the battery device is in a normal state including: the parameters of the battery device meet the preset conditions; When it is determined that the battery device is in a normal state, the second processing unit is further used to send a second level signal to the first processing unit, where the second level signal is used to control the system device to power on; The first processing unit is used for performing a power-on process based on the second level signal.

11. The electronic device according to claim 10, characterized in that: The electronic device further comprises: a first identification unit, the first identification unit being connected to the second processing unit; When the electronic device is in the shipping mode, in response to a user's operation on the first button, the button recognition unit is used to detect the first level signal; The second processing unit is further configured to obtain the first level signal from the first identification unit.

12. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and the processor calls instructions so that the electronic device executes the method according to any one of claims 1 to 9.

13. A chip system, characterized in that: The chip system is applied to a server including a memory, a display screen and a sensor; the chip system includes: one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected through lines; the interface circuit is used to receive signals from the memory and send signals to the processor, and the signals include computer codes or instructions stored in the memory; the processor calls instructions so that the electronic device executes the method as described in any one of claims 1 to 9.

Citation Information

Patent Citations

  • Method and device for preventing starting abnormity and mobile terminal

    CN104270530A

  • Electronic device power-on method and apparatus, and electronic device

    CN107515749A

  • System-on-chip, battery assembly and electronic device

    CN111987772A

  • Shipping mode setting method, electronic equipment and computer readable storage medium

    CN112986738A

  • Battery protection circuit, battery assembly and electronic cigarette

    CN114209094A