A power-on control method, an electronic device, and a readable storage medium
By setting a second processing unit in the battery device to detect the battery status in real time and control the electronic device to exit the shipping mode, the problem of the electronic device getting stuck or unable to power on due to receiving abnormal signals during the exit process is solved, thus achieving normal power-on and extending battery life.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HONOR DEVICE CO LTD
- Filing Date
- 2023-08-25
- Publication Date
- 2026-06-12
AI Technical Summary
When electronic devices exit shipping mode, they may receive abnormal power and clock signals, causing them to freeze or fail to power on.
A second processing unit is installed in the battery device of the electronic device to detect the battery status in real time and, after confirming that it is normal, control the electronic device to exit the shipping mode, restore power supply to ensure the normal operation of the system, and execute the power-on process through the first processing unit.
This ensures that electronic devices do not receive abnormal signals when exiting shipping mode, preventing them from freezing or failing to power on, thus improving power-on reliability and battery life.
Smart Images

Figure CN119556549B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic equipment technology, and more specifically, to a power-on control method, an electronic device, and a readable storage medium. Background Technology
[0002] Electronic devices typically undergo a period of storage and transportation from the manufacturer's production stage to the user's use stage. During storage and transportation, if the battery power of the electronic device is too low, it can lead to problems such as bulging and air leakage. Therefore, before leaving the factory, manufacturers set the electronic devices to "ship mode" to improve their safety during storage and transportation. Before use, the electronic device can exit "ship mode" in response to user-triggered hardware operations.
[0003] However, when electronic devices exit shipping mode, they may receive abnormal power signals and abnormal clock signals, causing the electronic devices to freeze (e.g., stutter, become unresponsive, or have their screens stuck on a certain interface and unable to be operated) or fail to power on. Summary of the Invention
[0004] This application provides a power-on control method, an electronic device, and a readable storage medium, which enables the electronic device to avoid receiving abnormal power signals and abnormal clock signals when exiting the shipping mode, thereby ensuring that the electronic device can be powered on normally.
[0005] In a first aspect, this application provides a power-on control method applied to an electronic device. The electronic device includes a first processing unit and a second processing unit, which are capable of establishing 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. The battery device is used to power the system device. The method includes:
[0006] When the electronic device is in shipping mode, in response to the user's operation on the first button, the second processing unit obtains the first level signal. The electronic device being in shipping mode includes: the battery device stopping the power supply to the system device, and the first level signal being used to trigger the power-on process of the electronic device.
[0007] Based on the first level signal, determine whether the battery device is in a normal state. The battery device being in a normal state includes: the parameters of the battery device meeting preset conditions.
[0008] If the battery unit is determined to be in normal condition, the electronic equipment is controlled to exit the shipping mode. Exiting the shipping mode of the electronic equipment includes: the battery unit restoring power supply to the system unit.
[0009] 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 is used to power on the control system device.
[0010] The first processing unit performs the power-on process based on the second level signal.
[0011] This application, when the electronic device is in shipping mode, responds to a user's operation of a first button. The second processing unit in the battery device receives a first-level signal, triggering the power-on process of the electronic device. Based on the first-level signal, the second processing unit determines whether the battery device is in a normal state, accurately obtaining the actual power supply status of the battery device. Furthermore, if the battery device is determined to be in a normal state, the electronic device can be controlled to exit shipping mode, allowing the battery device to restore power to the system device and ensuring its normal operation. Therefore, when the electronic device exits shipping mode, the second processing unit sends a second-level signal to the first processing unit, controlling the system device to power on and enabling the various units within the system device to operate normally. Based on the second-level signal, the first processing unit performs a power-on process, obtaining a normal second-level signal, allowing the electronic device to power on normally.
[0012] In some possible implementations, if the battery device is determined to be in a normal state, the electronic equipment is controlled to exit the shipping mode, including:
[0013] Once the battery unit is confirmed to be in normal condition, the second processing unit controls the electronic equipment 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. Only when the second processing unit determines that the battery device is in a normal state will it control the electronic device to exit the shipping mode, thereby ensuring that the electronic device will not receive abnormal power signals, and thus ensuring that the electronic device will not malfunction when exiting the shipping mode.
[0015] In some possible implementations, if the battery device is determined to be in a normal state, the electronic equipment is controlled to exit the shipping mode, including:
[0016] If the battery device is determined to be in a normal state, the second processing unit sends a first instruction to the first processing unit. 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 equipment to exit the shipping mode based on the first instruction.
[0018] The above implementation method can ensure that the electronic equipment exits the shipping mode normally, thus preparing for the subsequent power-on of the electronic equipment.
[0019] In some possible implementations, determining whether the battery device is in a normal state based on a first level signal includes:
[0020] The second processing unit determines a first duration, which is the duration for which the first level signal is continuously acquired;
[0021] The second processing unit determines whether the first duration is greater than or equal to a preset duration threshold.
[0022] When the first duration is greater than or equal to a preset duration threshold, the second processing unit determines whether the battery device is in a normal state.
[0023] The above implementation method can prevent the electronic device from directly exiting the shipping mode when the user accidentally touches it, thus 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, which is connected to the second processing unit;
[0025] When the electronic device is in 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 shipping mode, the first recognition unit detects a first level signal in response to the user's operation on the first button.
[0027] The second processing unit obtains the first level signal from the first identification unit.
[0028] In the above implementation, since the first identification unit does not lose power, the first level signal can be detected in real time through the first identification 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, the method further includes, before the electronic device is in shipping mode:
[0030] The first processing unit receives a second instruction, which is used to control the electronic equipment to enter the shipping mode.
[0031] In some possible implementations, the method also includes the following when the electronic device enters shipping mode:
[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 continue running. 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, the method further includes, before the electronic device is in shipping mode:
[0035] If the electronic device remains 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 continue running. 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 method, 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 put into a low power mode, which can minimize the power consumption of the electronic device.
[0038] In some possible implementations, 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;
[0039] The parameters of the battery device meet 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 battery device's parameters can be used to accurately determine whether the battery device is in normal condition, thus preventing the battery device from continuing to supply power to the system when its condition is abnormal, which could lead to over-discharge of the battery device and improve its service life.
[0044] Secondly, this application provides an electronic device, which includes a first processing unit and a second processing unit, the first processing unit and the second processing unit being able to establish a communication connection, the first processing unit being located in the system device of the electronic device, and the second processing unit being located in the battery device of the electronic device, the battery device being used to power the system device;
[0045] When the electronic device is in shipping mode, in response to the user's operation on the first button, the second processing unit is used to acquire a first level signal. The electronic device being in shipping mode includes: the battery device stopping power supply to the system device, and the first level signal being used to trigger the power-on process of starting 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. The battery device being in a normal state includes: the parameters of the battery device meeting preset conditions.
[0047] When it is determined that the battery device is in a normal state, the second processing unit is also used to send a second level signal to the first processing unit. The second level signal is used to control the system device to power on.
[0048] The first processing unit is used to perform power-on processing based on the second level signal.
[0049] In some possible implementations, the electronic device further includes: a first identification unit, which is connected to the second processing unit;
[0050] When the electronic device is in shipping mode, in response to the user's operation on the first button, the first recognition unit is used to detect the first level signal;
[0051] The second processing unit is also used to obtain a first level signal from the first identification unit.
[0052] Thirdly, this application provides a chip system applied to an electronic device including a memory, a display screen, and sensors; the chip system includes: one or more interface circuits and one or more processors; the interface circuits and processors are interconnected via lines; the interface circuits are used to receive signals from the memory and send signals to the processors, the signals including computer code or instructions stored in the memory; the processors invoke instructions to cause the electronic device to execute the first aspect and any one of the possible power-on control methods of the first aspect.
[0053] The chip system may include one chip or multiple chips; when the chip system includes multiple chips, this application does not limit the type and number of chips.
[0054] Fourthly, this application provides a readable storage medium storing code or instructions, wherein a processor calls the instructions to cause an electronic device to execute the first aspect and any possible power-on control method of the first aspect.
[0055] Fifthly, this application provides a computer program product that, when run on a computer, causes the computer to execute the first aspect and any possible power-on control method of the first aspect.
[0056] It is understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant descriptions in the first aspect mentioned above, and will not be repeated here. Attached Figure Description
[0057] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0058] Figure 1 This is a schematic diagram of the structure of an electronic device provided in one embodiment of this application;
[0059] Figure 2 This is a schematic diagram of the structure of an electronic device provided in one embodiment of this application;
[0060] Figure 3 This is a schematic diagram of the structure of an electronic device provided in one embodiment of this application;
[0061] Figure 4 This is a schematic diagram of the structure of an electronic device provided in one embodiment of this application;
[0062] Figure 5 This is a schematic diagram of the structure of a key recognition unit provided in one embodiment of this application;
[0063] Figure 6 A flowchart illustrating a power-on control method provided in one embodiment of this application;
[0064] Figure 7 This is a schematic diagram of the structure of an electronic device provided in one embodiment of this application;
[0065] Figure 8 This is a schematic diagram of the hardware architecture of an electronic device provided in an embodiment of this application. Detailed Implementation
[0066] The technical solutions of the embodiments of this application will be described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; "and / or" in this text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.
[0067] In the following text, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first," "second," or "third" may explicitly or implicitly include one or more of that feature.
[0068] References to "one embodiment" or "some embodiments" in the embodiments described in this application mean that one or more embodiments in this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of the embodiments of this application do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized.
[0069] The power-on control method provided in this 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, foldable screen, smart screen, tablet computer, wearable electronic device, in-vehicle electronic device, augmented reality (AR) device, virtual reality (VR) device, laptop computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), home appliance, projector, etc. This application does not limit the specific type of electronic device.
[0070] The power-on control method of this application embodiment is applicable to electronic devices including a battery device. The battery device is used to provide power to the electronic device. Specifically, in addition to the battery device, the electronic device also includes 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 power-on control method of this application embodiment can be applied to scenarios where an electronic device exits or enters a shipping mode. Shipping mode means that the battery in the electronic device stops supplying power to the system. Shipping mode is the mode in which the electronic device is in a state of minimum quiescent current.
[0072] For example, when a user first receives an electronic device from a manufacturer, they need to operate the relevant hardware within the device to trigger it to exit shipping mode and power on normally. This allows the user to use the electronic device properly.
[0073] After electronic devices are manufactured, manufacturers typically put them into shipping mode. In shipping mode, the electronic device is in a power-off state. This means the battery in the electronic device stops supplying power to the system, reducing battery charge loss during long-term transportation and storage. This prevents over-discharge and extends battery life. Over-discharge refers to the gradual release of stored charge from the battery while it is supplying power to the system, causing a slow drop in battery voltage. Even when the battery voltage drops to a certain predetermined value, it continues to supply power. By putting the electronic device into shipping mode, the manufacturer ensures that the battery retains charge after long-term transportation and storage, allowing users to use the electronic device normally upon first receipt.
[0074] Please see Figure 1 and Figure 2 , Figure 1 A schematic diagram of the structure of an electronic device is shown. 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 one form of battery device, and the system board 102 is one form of system device. Those skilled in the art may also use other forms of battery devices and system devices, and this application does not limit them.
[0076] The battery pack 101 is used to power the system board 102. The battery pack 101 may include at least one cell 1011. When the battery pack 101 includes multiple cells 1011, the multiple cells 1011 are connected in parallel.
[0077] It should be understood that, for ease of explanation, this application embodiment uses only one cell 1011 (e.g. Figure 1 The following is an example illustration (shown).
[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 acquire the temperature of the battery pack 101. NTC refers to the thermistor phenomenon and material that has a negative temperature coefficient, where the resistance decreases exponentially with increasing temperature.
[0079] like Figure 1 and Figure 2 As shown, system board 102 may include a coulomb counter 1021, a current sensing resistor (Rsense) 1022, a central processing unit (CPU) 1023, and a power management controller 1024. System board 102 is used to store programs, instructions, and data required for the normal operation of electronic device 100.
[0080] The fuel gauge 1021 is connected to the central processing unit 1023 via a communication connection (e.g., Figure 1 (As indicated by the arrows in the diagram). The central processing unit 1023 is electrically connected to the power manager 1024. The fuel gauge 1021 is also electrically connected to the power manager 1024. The fuel gauge 1021 is also electrically connected to the battery cell 1011. The fuel gauge 1021 is also electrically connected to the current sensing resistor 1022. The current sensing resistor 1022 is also electrically connected to the battery cell 1011. The current sensing 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, current, and temperature of the battery pack 101. Exemplarily, the fuel gauge 1021 can directly obtain the voltage of the battery pack 101 via a connection wire to the battery cell 1011. The fuel gauge 1021 can obtain the current of the battery pack 101 by measuring the voltage drop across the current sensing resistor 1022. The fuel gauge 1021 can also acquire the changing resistance value of the NTC thermistor 1012 and convert the change in resistance value into a voltage signal; furthermore, the fuel gauge 1021 can determine the temperature of the battery pack 101 based on the voltage signal.
[0082] The fuel gauge 1021 is also used to send the voltage, current and temperature of the battery pack 101 to the central processing unit 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, or control the battery pack 101 to stop charging the system board 102, based on the voltage, current and temperature of the battery pack 101.
[0083] The following is based on Figure 1 The structure and connection relationships are explained in detail, outlining the specific implementation process of electronic device 100 entering shipping mode. Currently, before electronic device 100 leaves the factory, the specific implementation process of electronic device 100 entering shipping mode includes:
[0084] Step 11: The host computer on the production line can send an "enter shipping mode" command to the electronic device 100. It should be understood that the "enter shipping mode" command can be in the form of an encoding, pulse, or level signal; this application does not limit the specific form of the command.
[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 Wi-Fi connection). For example, when the connection between the host computer and the electronic device 100 is a USB connection, the central processing unit 1023 in the electronic device 100 can receive the command to enter the shipping mode via 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 command to enter the shipping mode via the Bluetooth module in the electronic device 100. Figure 1 and Figure 2 (Not shown in the image) Receives the command to enter shipping mode and transmits the command to the central processing unit 1023 via the Bluetooth module.
[0086] Step 12: After receiving the instruction to enter shipping mode, the central processing unit 1023 may send the instruction to the power manager 1024 to enter shipping mode.
[0087] Step 13: Based on the command to enter shipping mode, the power manager 1024 can control the battery pack 101 to stop supplying power to the system board 102. That is, the positive terminal of the battery pack 101 ( Figure 1 The connection between Pack+ and system board 102 is broken, and the negative terminal of battery pack 101 ( Figure 1 The connection between the Pack-) and system board 102 is also disconnected. For ease of explanation, Figure 1 Disconnection is indicated by "×".
[0088] After the battery pack 101 stops supplying power to the system board 102, the electronic device 100 enters a shipping mode. Since the fuel gauge 1021 is located on one side of the system board 102, its power supply 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 shipping mode, the fuel gauge 1021 cannot operate normally; that is, the fuel gauge 1021 cannot properly measure the voltage, current, and temperature of the battery pack 101.
[0089] Considering that the electronic device 100 is still in shipping mode when the user uses it for the first time, the user can trigger the electronic device 100 to exit shipping mode using relevant hardware settings (e.g., a power button). After the electronic device 100 exits shipping mode, it can then initiate the power-on process.
[0090] The following is based on Figure 2 The structure and connection relationships are explained in detail, specifying the specific implementation process of the electronic device 100 starting up. Currently, the specific implementation process of the electronic device 100 starting up includes:
[0091] Step 21, the user can turn on / off the electronic device 100 by pressing the power button. Figure 1 and Figure 2 (Not shown in the image) In response to the user's operation of the power button, the power manager 1024 in the electronic device 100 can detect a change in the power button signal.
[0092] Step 22: After detecting a change in the power on / off button signal, the power manager 1024 can control the battery pack 101 to restore power supply to the system board 102. That is, the positive terminal of the battery pack 101 (… Figure 2 The connection between Pack+ and system board 102 is restored, and the negative terminal of battery pack 101 ( 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, enabling the fuel gauge 1021, current sensing resistor 1022 and central processing unit 1023 on one side of the system board 102 to operate.
[0093] Step 23: After the battery pack 101 restores power to the system board 102, the central processing unit 1023 can obtain the duration of the power on / off button signal change.
[0094] Step 24: The central processing unit 1023 can determine whether the duration of the power on / off button signal change is greater than the 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] Step 25: The central processing unit 1023 can control the electronic device 100 to perform the power-on process.
[0097] Step 26: The central processing unit 1023 can control the electronic device 100 to continue in shipping mode through the power manager 1024.
[0098] However, after the electronic device 100 enters the shipping mode, the fuel gauge 1021 cannot properly measure the voltage, current, and temperature of the battery pack 101, meaning the fuel gauge 1021 cannot determine whether the battery pack 101 is in a normal state. When the battery pack 101 is in an abnormal state, it sends an abnormal power signal to the system board 102, which in turn causes an abnormal clock signal on the system board 102, leading to the electronic device 100 freezing or failing to power on.
[0099] To address the aforementioned issues, this application provides an electronic device that includes a second processing unit on the battery side. This second processing unit determines whether the battery is in a normal state. Since the second processing unit on the battery side is not powered off, it can detect and determine the battery's state in real time, improving its detection and judgment efficiency and ensuring that the first processing unit does not receive abnormal power signals. When the battery is determined to be in a normal state, the second processing unit controls the electronic device to exit the shipping mode. When the electronic device exits the shipping mode, the second processing unit sends a power-on signal to the first processing unit, restoring power supply to the system from the battery. Based on the power-on signal, the first processing unit controls the electronic device to power on, enabling the electronic device to power on normally.
[0100] Please see Figure 3 , Figure 3 A schematic diagram of the structure of an electronic device is shown. 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 terminal of the battery device 202 (… Figure 3 The Pack+ in the battery device 202 is connected to one end of the system device 201. The negative terminal of the battery device 202 is... Figure 3 The Pack-) is connected to the other end of the system device 201.
[0101] Alternatively, in some embodiments, such as 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 are capable of establishing 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 initiate the power-on process of the electronic device 200 based on the first level signal. For example, the second processing unit 2021 can be a microcontroller unit (MCU) for a fuel gauge. When the second processing unit 2021 is an MCU for a fuel gauge, it indicates that the battery device 202 also includes a fuel gauge. It should be noted that since the fuel gauge is installed in the battery device 202, no power outage occurs; therefore, the fuel gauge in the battery device 202 does not need to be power-on reset, resulting in higher efficiency in measuring the parameters of the battery device 202.
[0103] The first level signal is used to trigger the power-on process of the electronic device 200. It should be noted that the first level signal can be either a high-level signal or a low-level signal; this application does not limit this. Typically, the first level signal is a low-level signal.
[0104] Alternatively, in some embodiments, such as Figure 3 As shown, the electronic device 200 may also include a button recognition unit 203, which is connected to the first processing unit 2011 and the second processing unit 2021 respectively.
[0105] Alternatively, in some embodiments, such as Figure 5 As shown, the button recognition unit 203 may include a first recognition unit 2031, a second recognition unit 2032, and a first button K1.
[0106] The first identification unit 2031 is used to detect a first level signal. The first identification unit 2031 is electrically connected to the first button K1. The first identification unit 2031 is also electrically connected to the second identification unit 2032. The first identification unit 2031 is also electrically connected to the second processing unit 2021. The first identification unit 2031 is also electrically connected to the battery device 202. Exemplarily, the first identification unit 2031 may include a first resistor R1 and a second resistor R2. The first resistor R1 and the second resistor R2 are electrically connected.
[0107] The second identification unit 2032 is electrically connected to the first button 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 can belong to the first identification unit 2031 or the second identification unit 2032, or the first identification unit 2031 and the second identification unit 2032 can reuse the first button K1.
[0109] When the first button K1 belongs to the first identification unit 2031, the first button K1 can be a power button that has been set in the electronic device 200, or other buttons set in the electronic device 200 (e.g., volume adjustment buttons), or buttons that do not exist in the electronic device 200. This application embodiment does not limit this.
[0110] It should be noted that the first identification unit 2031 is a newly added part in the button identification unit 203 in this embodiment. Based on the above description, when the first button K1 is not a power button and the first button K1 belongs to the first identification unit 2031, the first button K1 and the first identification unit 2031 can be regarded as an integrated circuit. This integrated circuit is a newly added part in the button 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 the power button and the first button K1 belongs to the first identification unit 2031, the original second identification unit 2032 and the power button in the electronic device 200 can be regarded as a whole circuit to realize the power on / off function of the electronic device 200.
[0112] When the first button K1 belongs to the second recognition unit 2032, the first button K1 can be a power button already configured in the electronic device 200. In this case, the second recognition unit 2032 can be regarded as a button recognition unit 203 already configured in the electronic device 200.
[0113] Meanwhile, to ensure compatibility with the original power button function of the electronic device 200, the connection relationship between the first identification unit 2031, the second identification unit 2032, and the first button K1 can be referenced. Figure 5 The description is as described herein, but the embodiments of this application are not limited thereto.
[0114] like Figure 5 As shown, when the first identification unit 2031 and the second identification unit 2032 reuse the first button K1, the first button K1 is the power button in the electronic device 200. This allows the first button K1 to have both the function of exiting the shipping mode and the function of powering on, making the overall circuit structure of the button identification unit 203 simpler. At this time, the second identification unit 2032 in the button identification unit 203 can also be used to detect the first level signal.
[0115] It is understood that the first identification unit 2031 may also have other names, such as the first button circuit, etc., and this application embodiment does not limit this.
[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 them in this regard.
[0117] Alternatively, in some embodiments, such as Figure 4 As shown, the electronic device 200 may also include a power management unit 2012. One manifestation of the power management unit 2012 is... Figure 1 The power manager 1024 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 signals required by the first processing unit 2011.
[0118] exist Figure 4 On this basis, Figure 5 The connection relationships of the button recognition unit 203 shown include: a 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. Typically, the pins connecting the first resistor R1 to the second processing unit 2021 (e.g., ...) are... Figure 5 The signal level 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, one pin of the power management unit 2012 ( Figure 5 The signal level of the pins connected to the third resistor R3 and the diode respectively becomes a low-level signal, and the other pin connected to the power management unit 2012 ( Figure 5 The level signal of the pin (which is only connected to the third resistor R3) becomes a high level signal.
[0120] It should be noted that, due to Figure 5The circuit of the button recognition unit 203 is connected to both the second processing unit 2021 and the power management unit 2012. That is, the circuit of the button recognition unit 203 is connected to both the battery device 202 and the system device 201. Furthermore, 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 choose whether to use the second processing unit 2021 or the power management unit 2012 for control. Alternatively, the electronic device 200 can automatically select whether to use the second processing unit 2021 or the power management unit 2012 for control based on pre-stored trigger conditions; this embodiment does not limit this selection.
[0121] The first processing unit 2011 is used to perform a power-on process based on a second level signal. For example, the first processing unit 2011 may be the CPU of the system device 201. The second level signal is used to power on the system device 201. 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] Alternatively, in some embodiments, such as 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 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 employ... Figure 1 The NTC thermistor 1012 is used. A 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 employ... Figure 1 The current sensing resistor in the middle is 1022.
[0123] It should be understood that, in addition to the NTC thermistor 1012 used as an example above, the temperature detection unit 2022 in this embodiment can also use temperature-collecting components known to those skilled in the art. Similarly, in addition to the current-detecting resistor 1022 used as an example above, the current-detecting unit 2023 in this embodiment can also use current-collecting components known to those skilled in the art, and this embodiment does not limit its use in this regard.
[0124] Alternatively, in some embodiments, such as Figure 4As shown, the electronic device 200 may further include a battery cell unit 2024. One manifestation of the battery cell unit 2024 is... Figure 1 The battery cell 1011 is used in the electronic device 200. The battery cell unit 2024 is used to supply power to various units within the electronic device 200. The specific connection relationships of the battery cell unit 2024 can be found in [reference needed]. Figure 4 This will not be elaborated upon here.
[0125] Alternatively, in some embodiments, such as 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, enabling the electronic device 200 to perform 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, and instructions executed by the electronic device 200.
[0126] It should be understood that the electronic device 200 in this application embodiment may also include, in addition to Figure 3 and Figure 4 Other units or modules shown are not limited in this application embodiment.
[0127] The above text combined Figures 3 to 5 The structure of the electronic device was described in detail. The following section will combine... Figure 6 and Figure 7 This paper details the specific implementation process of the power-on control method in the embodiments of this application.
[0128] Please see Figure 6 , Figure 6 A flowchart of a power-on control method provided in an embodiment of this application is shown. Figure 6 As shown, the method for controlling power-on in this embodiment of the application includes:
[0129] S101, when the electronic device is in shipping mode, in response to the user's operation on the first button, the second processing unit obtains the first level signal.
[0130] Optionally, in some embodiments, the electronic device 200 being in a shipping mode may include: the battery device 202 stopping power supply to the system device 201. That is, the positive terminal of the battery device 202 ( Figure 7 The connection between Pack+ and system device 201 is disconnected, and the negative terminal of battery device 202 ( Figure 7 The connection between the Pack-) and system device 201 is also broken.
[0131] It should be noted that, Figure 7 and Figure 3 The electronic devices 200 have the same structure, the difference being the connection relationship between the battery device 202 and the system device 201. For ease of explanation, Figure 7 Disconnection is indicated by "×".
[0132] Optionally, in some embodiments, the electronic device 200 being in shipping mode may further include: the first processing unit 2011 and the power management unit 2012 in the system device 201 both stopping operation, and the second processing unit 2021 in the battery device 202 continuing to operate, and the first identification unit 2031 in the key identification unit 203 continuing to operate.
[0133] The first level signal is used to trigger the power-on process of the electronic device 200. Optionally, in some embodiments, when the electronic device 200 is in shipping mode, in response to the user's operation on the first button K1, Figure 5 The first identification unit 2031 can detect the first level signal; the second processing unit 2021 can obtain the first level signal from the first identification unit 2031.
[0134] When the electronic device 200 is in shipping mode, only the second processing unit 2021 and the first recognition unit 2031 in the key recognition unit 203 are operational. 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 acquires a first level signal. Typically, after the user operates the first key K1, the level signal of the first key K1 changes from a high level signal to a low level signal. When the second processing unit 2021 detects the change in the level signal of the first key K1, it acquires the low level signal after the change.
[0135] In summary, the second processing unit 2021 can obtain the first level signal, thereby enabling the second processing unit 2021 to initiate the power-on process of the electronic device 200.
[0136] To prevent the electronic device 200 from freezing or failing to power on due to abnormal power and clock signals received by the first processing unit 2011 in the system device 201 when exiting shipping mode, the second processing unit 2021 also needs to determine the status of the battery device 202 after acquiring the first level signal.
[0137] S102, based on the first level signal, determine whether the battery device is in a normal state.
[0138] Optionally, in some embodiments, the battery device 202 being in a normal state includes: the parameters of the battery device 202 meeting 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 obtained by... Figure 3 or Figure 4 The current is collected by the current detection unit 2023. The temperature of the battery device 202 can be monitored by... Figure 3 or Figure 4 The temperature detection unit 2022 in the middle collects data.
[0140] Optionally, in some embodiments, the parameters of the battery device 202 meet preset conditions, including one or more of the following:
[0141] The voltage of battery device 202 is less than or equal to a preset voltage threshold; the current of battery device 202 is less than or equal to a preset current threshold; and the temperature of battery device 202 is less than or equal to a preset temperature threshold. Typically, for the parameters of battery device 202 to meet the preset conditions, all three of the above conditions must meet their corresponding preset thresholds.
[0142] This allows for accurate determination of the battery device's status based on its parameters, preventing the battery device 202 from continuing to supply power to the system device 201 when its status is abnormal, thus avoiding over-discharge of the battery device 202 and improving its lifespan.
[0143] If the parameters of the battery device 202 do not meet the preset conditions, the second processing unit 2021 can 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 acquires the first level signal, the second processing unit 2021 can determine a first duration. The first duration is the time during which the first level signal is continuously acquired. After acquiring the first duration, the second processing unit 2021 can determine whether the first duration is greater than or equal to a preset duration threshold pre-stored in the second processing unit 2021. This avoids the electronic device 200 from directly exiting the shipping mode when the user accidentally touches the first button K1, improving the reliability of the electronic device 200 exiting the shipping mode.
[0145] When the first duration is greater than or equal to a preset duration threshold, the second processing unit 2021 may continue to determine whether the battery device 202 is in a normal state. If the first duration is determined to be less than the preset duration threshold, the second processing unit 2021 does not need to continue determining whether the battery device 202 is in a normal state. This prepares for the control electronics 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 presses the power button. Alternatively, the first duration is the time the second processing unit 2021 continuously receives the power button signal. The preset duration threshold is a preset power-on duration threshold.
[0147] S103, after confirming that the battery device is in normal condition, controls the electronic equipment to exit the shipping mode.
[0148] Optionally, in some embodiments, exiting the shipping mode of the electronic device 200 includes: the battery device 202 resuming power supply to the system device 201. That is, the positive terminal of the battery device 202 ( Figure 3 The connection between Pack+ and system device 201 is restored, and the negative terminal of battery device 202 ( Figure 3 The connection between the Pack-) and system device 201 is also restored. Furthermore, 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. That is, the second processing unit 2021 controls the battery device 202 to restore 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, based on the first instruction, control the electronic device 200 to exit the shipping mode. That is, the first processing unit 2011 controls the battery device 202 to restore power supply to the system device 201.
[0151] Optionally, in some embodiments, the second processing unit 2021 can send a first instruction to the first processing unit 2011 via the power management unit 2012. After receiving the first instruction, the power management unit 2012 can control the electronic device 200 to exit the shipping mode based on the first instruction.
[0152] In summary, once it is confirmed that the battery device 202 is in normal condition, the electronic device 200 can exit the shipping mode, thereby preparing for the power-on of 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 power on the system device 201 (or, in other words, power-on reset). Typically, 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 within the system device 201 and resuming operation.
[0155] In some embodiments, when the electronic device 200 exits the shipping mode, the second processing unit 2021 can send a second-level signal to the first processing unit 2011 via the power management unit 2012, causing the first processing unit 2011 to power on. Simultaneously, the power management unit 2012 can power on the system device 201 based on the second-level signal. Alternatively, the power management unit 2012 can configure a power signal that ensures the normal operation of the system device 201 based on the second-level signal and send that power signal to the first processing unit 2011.
[0156] S105, the first processing unit performs power-on processing based on the second level signal.
[0157] Upon receiving the second-level signal, the first processing unit 2011 can control the electronic device 200 to perform a power-on process based on the second-level signal. Since the second-level signal received by the first processing unit 2011 is normal, it can prevent the electronic device 200 from freezing or failing to power on during the power-on process.
[0158] The power-on control method in this embodiment, when the electronic device is in shipping mode, responds to the user's operation of the first button, and the second processing unit in the battery device can obtain a first level signal, triggering the power-on process of 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, accurately obtaining the actual power supply state of the battery device. Furthermore, if it is determined that the battery device is in a normal state, the electronic device can be controlled to exit shipping mode, allowing the battery device to restore power to the system device, ensuring the system device can operate normally. Therefore, when the electronic device exits shipping mode, the second processing unit sends a second level signal to the first processing unit, controlling the system device to power on, enabling each unit in the system device to operate normally. Based on the second level signal, the first processing unit can perform power-on processing, obtaining a normal second level signal, enabling the electronic device to power on normally.
[0159] Therefore, the battery device's status can be determined in real time by the second processing unit, and the electronic device is only controlled to exit the shipping mode when the battery device is in a normal state, thus improving 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, allowing the electronic device to be powered on normally.
[0160] In this embodiment of the 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 The following is a detailed description of an optional implementation method for electronic device 200 to enter shipping mode.
[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. Furthermore, 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] For example, the second instruction may be an instruction sent from a host computer on the production line to the first processing unit 2011. Alternatively, the second instruction may be a preset instruction stored in the first processing unit 2011 beforehand.
[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. For example... Figure 4As shown, the first processing unit 2011 can 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 can, based on the second instruction, control the detection function in the electronic device 200 to stop operating and control the key recognition function to continue operating.
[0165] The detection functions include one or more of the following: voltage detection, current detection, and temperature detection. For example... Figure 4 As shown, the current detection function corresponds to the function of the current detection unit 2023. The temperature detection function corresponds to the function of the temperature detection unit 2022. The button recognition function corresponds to the function of the first recognition unit 2031 in the button recognition unit 203.
[0166] Typically, to ensure that the electronic device 200 is in the lowest power consumption mode, the second processing unit 2021 can, based on the second instruction, control each detection function in the electronic device 200 to stop operating. In other words, the second processing unit 2021 can, based on the second instruction, control the current detection unit 2023 and temperature detection unit 2022 in the electronic device 200 to stop operating, and control the first recognition unit 2031 in the key recognition unit 203 to continue operating, thereby enabling the electronic device 200 to be in the lowest power consumption mode.
[0167] Based on the above Figure 3 and Figure 4 The following is a detailed description of another optional implementation method for electronic device 200 to enter shipping mode.
[0168] Optionally, in other embodiments, before executing S101, the second processing unit 2021 may determine whether the electronic device 200 has been in a first power consumption mode for a preset period of time. The first power consumption mode is the mode in which the electronic device 200 operates the fewest functions (or, the mode with the lowest power consumption). For example, 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 or voltage of the battery device 202.
[0169] For example, 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 a specified value within a preset time period, the second processing unit 2021 can determine that the electronic device 200 is always in the first power consumption mode.
[0170] Assuming a preset duration of 7 days, a data collection interval of 6 hours, and a specified value of 0.5mA, the second processing unit 2021 can collect the current of electronic devices 200 every 6 hours over the 7 days, obtaining 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.5mA. If it is determined that the current of each electronic device 200 is less than 0.5mA, the second processing unit 2021 can determine that the electronic device 200 is always in the first power consumption mode.
[0171] In summary, if the electronic device 200 remains in the first power consumption mode within the preset time period, the second processing unit 2021 controls the electronic device 200 to enter the shipping mode, thereby disconnecting the power supply of the battery device 202 in the electronic device 200 from the power supply of the system device 201, so as 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 operating and control the key recognition function to remain running. The detection function includes one or more of the following functions: voltage detection function, current detection function, and temperature detection function. That is to say, the second processing unit 2021 can control the corresponding unit to stop operating or remain running, as described above, and will not be repeated here.
[0173] The power-on control method of this application embodiment 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 by the second processing unit 2021 in the battery device 202, thereby reducing the abnormal risk of the electronic device 200 during the power-on phase. For example, the abnormal risk of the electronic device 200 during the power-on phase may include the voltage of the power signal sent by the battery device 202 to the system device 201 being too low, unable to support the normal operation of the system device 201, causing the system device 201 to freeze or fail to perform the power-on process, resulting in the electronic device 200 failing to power on normally.
[0174] It should be understood that the term "unit" mentioned above can be implemented in the form of software and / or hardware, and the embodiments of this application do not specifically limit this. For example, "unit" can be a software program, a hardware circuit, or a combination of both that implements the above functions. The hardware circuit may include an application-specific integrated circuit (ASIC), electronic circuits, a processor (e.g., a shared processor, a proprietary processor, or a group processor, etc.) executing one or more software or firmware programs, and memory, integrated logic circuits, and / or other suitable devices that can provide the above functions.
[0175] Please see Figure 8 , Figure 8 A schematic diagram of the hardware architecture of an electronic device provided in an embodiment of this application is shown.
[0176] like Figure 8 As shown, the electronic device 200 may include: a processor 110, an external memory interface 120, and an internal memory 121 (equivalent to...). Figure 4 The system includes a storage unit 2014, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity 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 this application, the hardware system of the electronic device 200 may include more than Figure 8 The components shown may include more or fewer components, or the hardware system of electronic device 200 may include... Figure 8 The components shown may be a combination of certain components, or the hardware system of electronic device 200 may include... Figure 8 The components shown are sub-components of certain components. For example, Figure 8 The proximity sensor 180G shown is optional. Figure 8 The components shown can be implemented in hardware, software, or a combination of software and hardware.
[0178] Processor 110 may include one or more processing units. For example, processor 110 may include at least one of the following processing units: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, video codec, digital signal processor (DSP), baseband processor, and neural network processing unit (NPU). These different processing units may be independent devices or integrated devices.
[0179] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, 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 the middle is equivalent to Figure 3 and Figure 4 The first processing unit 2011 in the process.
[0181] Figure 8 The connection relationships between the modules shown are merely illustrative and do not constitute a limitation on the connection relationships between the modules of the electronic device 200. Optionally, the modules of the electronic device 200 may also adopt a combination of various connection methods described in the above embodiments.
[0182] The power management module 141 is used to configure the power signals required for the normal operation of the processor 110 based on the state of the battery 142. It should be noted that... Figure 8 The power management module 141 in the middle is equivalent to Figure 4 The power management unit 2012 is included. The battery 142 is used to supply power to the various components in the electronic device 200, thereby ensuring that the electronic device 200 can operate normally.
[0183] like Figure 8As shown, battery 142 may include controller 1421. Controller 1421 can generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution. Controller 1421 is used to control the power-on process of starting electronic device 200. Controller 1421 may be the MCU of a fuel gauge. It should be noted that controller 1421 is equivalent to... Figure 3 and Figure 4 The second processing unit 2021 in the process.
[0184] Battery 142 may also include a battery temperature sensor ( Figure 8 (not shown in the image) and current sensor ( Figure 8 (Not shown in the image), etc. A battery temperature sensor is used to detect the internal temperature of the battery. A current sensor is used to detect the battery current. A battery temperature sensor is equivalent to... Figure 4 The temperature detection unit 2022 is located in the center. The current sensor is equivalent to... Figure 4 The current detection unit 2023 in the middle.
[0185] Temperature sensor 180J is used to detect the external temperature of the battery. Both the temperature sensor 180J and the battery temperature sensor can be selected by those skilled in the art based on actual conditions; this application embodiment does not limit this selection.
[0186] Button 190 includes a power button and a volume control button. Button 190 can be a mechanical button or a touch button. Electronic device 200 can receive signals input from button 190 and perform functions related to those signals. For example, Figure 5 One way to represent the first button K1 in the middle is as follows: Figure 8 Button 190 in the middle.
[0187] based on Figure 8 The hardware architecture assumes that the electronic device 200 is already in shipping mode and that button 190 is a power on / off button. The specific implementation process of the power-on control method in this embodiment includes:
[0188] Step 31: When the electronic device 200 is in shipping mode, in response to the user's operation on button 190, the controller 1421 can obtain a first level signal, thereby initiating the power-on process of the electronic device 200.
[0189] In step 32, the controller 1421 can determine whether the battery 142 is in a normal state based on the first level signal.
[0190] Step 33: When it is determined that the battery 142 is in a normal state, the controller 1421 can control the electronic device 200 to exit the shipping mode.
[0191] In step 34, when the electronic device 200 exits the shipping mode, the controller 1421 can send a second-level signal to the processor 110, thereby controlling the processor 110 to power on and reset.
[0192] Step 35: The processor 110 can perform power-on processing based on the second level signal.
[0193] In summary, the power-on control method of this application embodiment can determine the normal state of the battery 142 before controlling the electronic device 200 to power on. This ensures that the electronic device 200 exits the shipping mode only when the battery 142 is in a normal state, thus improving the reliability of exiting the shipping mode. Furthermore, only when the battery 142 is in a normal state and the shipping mode has been exited does the controller 1421 send a second-level signal to the processor 110, enabling the processor 110 to execute the power-on process of the electronic device 200 based on the normal second-level signal, ensuring that the electronic device 200 can power on normally. This avoids abnormalities such as the electronic device 200 freezing or failing to power on due to the processor 110 receiving an abnormal power signal.
[0194] For example, this application provides a readable storage medium storing code or instructions, in which a processor invokes computer instructions to cause the electronic device 200 to execute the method described in the preceding embodiments.
[0195] For example, this application provides a chip system applied to an electronic device 200 including a memory, a display screen, and sensors; the chip system includes: one or more interface circuits and one or more processors; the interface circuits and processors are interconnected via lines; the interface circuits are used to receive signals from the memory and send signals to the processors, the signals including computer code or instructions stored in the memory; when the processor invokes the computer code or instructions, the electronic device 200 performs the methods described in the preceding embodiments.
[0196] For example, this application provides a computer program product that, when run on a computer, causes the electronic device 200 to implement the methods described in the preceding embodiments.
[0197] In the above embodiments, all or part of the functionality can be implemented by software, hardware, or a combination of software and hardware. When implemented using software, it can be implemented wholly or partially in the form of a computer program product. A 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, all or part of the flow or functionality according to this application is generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. 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 data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).
[0198] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
Claims
1. A power-on control method, characterized in that, The method is applied to an electronic device, which includes a first processing unit and a second processing unit, the first processing unit and the second processing unit being able to establish a communication connection, the first processing unit being located in a system device of the electronic device, and the second processing unit being located in a battery device of the electronic device, the battery device being used to power the system device. The method includes: When the electronic device is in shipping mode, in response to the user's operation on the first button, the second processing unit obtains a first level signal. The electronic device being in shipping mode includes: the battery device stopping power supply to the system device, and the first level signal being used to trigger the power-on 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 being in a normal state includes: the parameters of the battery device meeting preset conditions; the determination of whether the battery device is in a normal state based on the first level signal includes: the second processing unit determining a first duration, the first duration being the time for continuously acquiring the first level signal; the second processing unit determining whether the first duration is greater than or equal to a preset duration threshold; when the first duration is greater than or equal to the preset duration threshold, the second processing unit determining whether the battery device is in a normal state; If it is determined that the battery device is in a normal state, the electronic device is controlled to exit the shipping mode. Exiting the shipping mode of the electronic device includes: the battery device restoring power supply 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 is 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, The step of controlling the electronic device to exit the shipping mode when it is determined that the battery device is in a normal state includes: If the battery device is determined to be in normal condition, the second processing unit controls the electronic device to exit the shipping mode.
3. The method according to claim 1, characterized in that, The step of controlling the electronic device to exit the shipping mode when it is determined that the battery device is in a normal state includes: 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, the first instruction being used to notify the first processing unit that the battery device is in a normal state. Based on the first instruction, the first processing unit controls the electronic device to exit the shipping mode.
4. The method according to any one of claims 1 to 3, characterized in that, The electronic device further includes a first identification unit, which is connected to the second processing unit; When the electronic device is in 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 shipping mode, the first identification unit detects the first level signal in response to the user's operation on the first button; The second processing unit obtains the first level signal from the first identification unit.
5. The method according to any one of claims 1 to 3, characterized in that, Before the electronic device is in shipping mode, the method further includes: The first processing unit receives a second instruction, which is used to control the electronic device to enter the shipping mode.
6. The method according to claim 5, 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 continue running. The detection function includes one or more of the following functions: voltage detection function, current detection function, and temperature detection function.
7. The method according to any one of claims 1 to 3, characterized in that, Before the electronic device is in shipping mode, the method further includes: If the electronic device remains 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. 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 continue running. 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 3, 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.
9. An electronic device, characterized in that, The electronic device includes a first processing unit and a second processing unit, which are capable of establishing a communication connection. The first processing unit is located in the system device of the electronic device, and the second processing unit is located in the battery device of the electronic device. The battery device is used to power the system device. When the electronic device is in shipping mode, in response to the user's operation on the first button, the second processing unit is used to acquire a first level signal. The electronic device being in shipping mode includes: the battery device stopping power supply to the system device, and the first level signal being used to trigger the power-on process of the electronic device. The second processing unit is configured to determine whether the battery device is in a normal state based on a first level signal. The battery device being in a normal state includes: the parameters of the battery device meeting preset conditions. The second processing unit is configured to determine whether the battery device is in a normal state based on the first level signal, including: determining a first duration, where the first duration is the time for continuously receiving 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 duration is greater than or equal to the preset duration threshold, the second processing unit determines whether the battery device is in a normal state. If the battery device is determined to be in a normal state, the second processing unit is further configured to send 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 is used to perform a power-on process based on the second level signal.
10. The electronic device according to claim 9, characterized in that, The electronic device further includes: a first identification unit, which is connected to the second processing unit; When the electronic device is in shipping mode, in response to the user's operation on the first button, the first identification unit is used to detect the first level signal; The second processing unit is further configured to acquire the first level signal from the first identification unit.
11. A readable storage medium, characterized in that, The readable storage medium stores a computer program, and the processor invokes instructions to cause the electronic device to perform the method of any one of claims 1 to 8.
12. A chip system, characterized in that, The chip system is applied to a server including a memory, a display screen, and sensors; the chip system includes: one or more interface circuits and one or more processors; the interface circuits and processors are interconnected via lines; the interface circuits are used to receive signals from the memory and send signals to the processors, the signals including computer code or instructions stored in the memory; the processor invokes instructions to cause the electronic device to perform the method as described in any one of claims 1 to 8.