Terminal startup method, terminal startup device and storage medium
By detecting the charging type and dynamically adjusting the power supply current, the problem of the failure of the dead battery activation of the high -storage specification terminal is solved, and the pre -charging power of the terminal is realized without increasing the hardware and saving space and cost.
Patent Information
- Application Number
- CN202310937632.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-27
- Publication Date
- 2025-01-28
AI Technical Summary
The dead battery of the high-storage terminal cannot be activated, resulting in the inability to pre-charge and boot up because the power supply current required to boot is higher than the power supply current set by the system by default.
By detecting the charging type of the charging device, the power supply current of the terminal battery is dynamically adjusted, and the terminal initialization of the terminal is performed in accordance with the power supply current to control the terminal boot. Specific methods include reducing terminal power consumption, adjusting the processor and memory frequency, monitoring battery voltage, and determining initialization voltage according to the current threshold and voltage increment.
After connecting the charging device, the problem of the activation of dead battery activation through software strategies, avoiding the need to increase the additional hardware, save the internal space and cost of the terminal, and ensure that the dead battery of the high storage specification terminal can be activated, realize the pre -pre -pre -pre -pre -pre -pre -pre -to -be Charging.
Smart Images

Figure CN119376807A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of terminal battery charging, and in particular to a terminal startup method, a terminal startup device, and a storage medium. Background Art
[0002] When the terminal is turned off for a long time or a special stuck scenario occurs, the terminal battery will be over-discharged, resulting in battery protection. The battery voltage is lower than the initialization voltage (such as 2.7V). The terminal battery in this state can be called a dead battery. For a terminal with a dead battery, it is necessary to connect a charging device to activate the dead battery before it can be recharged and started.
[0003] In the related art, when activating a dead battery in a terminal, the power management IC (Pmic) in the terminal detects that a charging device is connected and sets the current provided by the battery to the default power supply current (such as 500mA), thereby completing the startup of the terminal. However, when the storage specification of the terminal is higher than a certain configuration (such as UFS4.0+256GB and above), the power supply current (such as 700mA) of the terminal startup is higher than the system default power supply current, resulting in the inability to activate the dead battery and the inability to pre-charge and start the terminal. Summary of the invention
[0004] In order to overcome the problems existing in the related art, the present disclosure provides a terminal startup method, a terminal startup device and a storage medium.
[0005] According to a first aspect of an embodiment of the present disclosure, a terminal power-on method is provided, comprising: in response to a target terminal being connected to a charging device, detecting a charging type used by the charging device to charge the target terminal, wherein a battery voltage of the target terminal before the target terminal is connected to the charging device is less than a power-on voltage of the terminal; according to the charging type, setting a power supply current for the terminal battery, and initializing the terminal according to the power supply current to control the power-on of the terminal.
[0006] In one embodiment, the terminal initialization needs to meet a current threshold; setting the power supply current for the terminal battery according to the charging type includes: in response to the charging type being a first type, setting the power supply current of the terminal battery to a first power supply current, performing terminal initialization, and turning on the terminal, the first power supply current being greater than or equal to the current threshold; in response to the charging type of the charging device being a second type, setting the power supply current of the terminal battery to a second power supply current, the second power supply current being less than the current threshold.
[0007] In one embodiment, the power consumption of the terminal is positively correlated with the power supply current required for starting up the terminal, and initializing the terminal according to the power supply current to control the power-on of the terminal includes: reducing the power consumption of the terminal, and determining the power supply current required for starting up the terminal after the power consumption is reduced; determining the initialization voltage of the terminal based on the relationship between the power supply current required for starting up the terminal after the power consumption is reduced and the second power supply current; monitoring the current battery voltage of the terminal battery, initializing the terminal based on the relationship between the current battery voltage and the initialization voltage, and turning on the terminal.
[0008] In one implementation, reducing the power consumption of the terminal includes: adjusting a central processing unit frequency of the terminal to a first preset frequency, and adjusting a memory frequency of the terminal to a second preset frequency.
[0009] In one embodiment, the initialization voltage of the terminal is determined based on the relationship between the power supply current required for powering on the terminal after reducing power consumption and the second power supply current, including: in response to the power supply current required for powering on the terminal after reducing power consumption being less than or equal to the second power supply current, the power-on voltage is determined as the initialization voltage; in response to the power supply current required for powering on the terminal after reducing power consumption being greater than the second power supply current, the current difference between the power supply current required for powering on the terminal and the second power supply current is determined, and a voltage increment is determined based on the current difference, and the sum of the voltage increment and the power-on voltage is determined as the initialization voltage.
[0010] In one embodiment, the monitoring of the current battery voltage of the terminal battery, initializing the terminal based on the relationship between the current battery voltage and the initialization voltage, and turning on the terminal includes: monitoring the current battery voltage of the terminal battery at every fixed time interval, and determining the relationship between the current battery voltage and the initialization voltage of the terminal; in response to the current battery voltage being greater than or equal to the initialization voltage, initializing the terminal and turning on the terminal.
[0011] According to a second aspect of an embodiment of the present disclosure, a terminal power-on device is provided, comprising: a detection unit, for detecting, in response to a target terminal being connected to a charging device, a charging type of the target terminal being charged by the charging device, wherein the battery voltage of the target terminal before being connected to the charging device is less than a power-on voltage of the terminal; and a processing unit, for setting a power supply current for the terminal battery according to the charging type, and performing terminal initialization according to the power supply current to control the power-on of the terminal.
[0012] In one embodiment, the terminal initialization needs to meet a current threshold; the processing unit sets the power supply current for the terminal battery according to the charging type in the following manner: in response to the charging type being the first type, the power supply current of the terminal battery is set to the first power supply current, the terminal is initialized, and the terminal is turned on, and the first power supply current is greater than or equal to the current threshold; in response to the charging type of the charging device being the second type, the power supply current of the terminal battery is set to the second power supply current, and the second power supply current is less than the current threshold.
[0013] In one embodiment, the power consumption of the terminal is positively correlated with the power supply current required for starting up the terminal, and the processing unit performs terminal initialization according to the power supply current to control the terminal power-on in the following manner: reducing the power consumption of the terminal, and determining the power supply current required for starting up the terminal after the power consumption is reduced; determining the initialization voltage of the terminal based on the relationship between the power supply current required for starting up the terminal after the power consumption is reduced and the second power supply current; monitoring the current battery voltage of the terminal battery, and based on the relationship between the current battery voltage and the initialization voltage, initializing the terminal and turning on the terminal.
[0014] In one implementation, the processing unit reduces the power consumption of the terminal in the following manner, including: adjusting a central processing unit frequency of the terminal to a first preset frequency, and adjusting a memory frequency of the terminal to a second preset frequency.
[0015] In one embodiment, the processing unit determines the initialization voltage of the terminal according to the relationship between the power supply current required for starting up the terminal after reducing power consumption and the second power supply current in the following manner: in response to the power supply current required for starting up the terminal after reducing power consumption being less than or equal to the second power supply current, the power-on voltage is determined as the initialization voltage; in response to the power supply current required for starting up the terminal after reducing power consumption being greater than the second power supply current, the current difference between the power supply current required for starting up the terminal and the second power supply current is determined, and a voltage increment is determined according to the current difference, and the sum of the voltage increment and the power-on voltage is determined as the initialization voltage.
[0016] In one embodiment, the processing unit monitors the current battery voltage of the terminal battery in the following manner, performs terminal initialization and turns on the terminal based on the relationship between the current battery voltage and the initialization voltage: monitors the current battery voltage of the terminal battery at every fixed time interval, and determines the relationship between the current battery voltage and the initialization voltage of the terminal; in response to the current battery voltage being greater than or equal to the initialization voltage, performs terminal initialization and turns on the terminal.
[0017] According to a third aspect of an embodiment of the present disclosure, a terminal power-on device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to: execute the terminal power-on method described in the first aspect or any one of the implementations of the first aspect.
[0018] According to a fourth aspect of an embodiment of the present disclosure, a storage medium is provided, in which instructions are stored. When the instructions in the storage medium are executed by a processor, the processor is enabled to execute the terminal startup method described in the first aspect or any one of the embodiments of the first aspect.
[0019] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: after the terminal is connected to the charging device, the charging type of the charging device is detected, and according to the charging type, the power supply current is set for the terminal battery, and the terminal is initialized according to the power supply current to control the terminal to start up. Through the present disclosure, after the charging device is connected, the problem that the dead battery in the terminal whose startup current is higher than the default power supply current of the battery cannot be activated is solved by a software strategy.
[0020] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0022] Figure 1 The diagram is a schematic diagram showing the current required for initialization when a terminal with different storage specifications is powered on according to an exemplary embodiment of the present disclosure.
[0023] Figure 2 The present invention is a flowchart of initializing a terminal when activating a dead battery according to an exemplary embodiment of the present disclosure.
[0024] Figure 3 The figure is a schematic diagram of a current waveform when a dead battery is activated according to an exemplary embodiment of the present disclosure.
[0025] Figure 4 The figure is a schematic diagram of a voltage waveform when a dead battery is activated according to an exemplary embodiment of the present disclosure.
[0026] Figure 5 The present invention is a flowchart of a terminal startup method according to an exemplary embodiment.
[0027] Figure 6The present invention is a flowchart of a method for setting a corresponding power supply current for a terminal battery according to a charging type and starting a terminal according to an exemplary embodiment.
[0028] Figure 7 The present invention is a flow chart showing a method for performing terminal initialization according to a power supply current to control terminal startup according to an exemplary embodiment.
[0029] Figure 8 The present invention is a flow chart showing a method for reducing power consumption of a terminal according to an exemplary embodiment.
[0030] Fig. 9 The invention is a flowchart showing a method for determining an initialization voltage of a terminal according to an exemplary embodiment.
[0031] Fig.10 The present invention is a flowchart showing a method for monitoring a current battery voltage of a terminal battery and starting the terminal based on the current battery voltage according to an exemplary embodiment.
[0032] Fig.11 The figure is a flowchart showing a software strategy for activating a dead battery according to an exemplary embodiment of the present disclosure.
[0033] Fig.12 The figure is a flow chart of a terminal startup method according to an exemplary embodiment of the present disclosure.
[0034] Fig.13 The present invention is a block diagram of a terminal startup device according to an exemplary embodiment.
[0035] Fig.14 The invention is a block diagram showing a device for starting up a terminal according to an exemplary embodiment. DETAILED DESCRIPTION
[0036] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure.
[0037] The terminal power-on method provided by the embodiment of the present disclosure is applied to a scenario in which a dead battery in a terminal whose battery voltage is lower than the terminal power-on voltage is activated, and the terminal is powered on during battery pre-charging.
[0038] When the terminal is turned off and not used for a long time, or it gets stuck due to special circumstances, the terminal battery will be over-discharged, causing the terminal battery to perform battery protection. The battery voltage is lower than the voltage required for terminal initialization (such as 2.7V), and the terminal battery cannot support normal startup of the terminal. The battery in this scenario can be called a dead battery. For terminals with dead batteries, you need to connect a charger to activate, charge and start the terminal.
[0039] In the related art, when activating a dead battery in a terminal, the power management chip (powermanagement IC, Pmic) in the terminal detects that a charging device is connected, sets the current provided by the battery to the terminal as the default power supply current (IBUS), and initializes the terminal (UFS initialization). After the initialization is completed, the charging protocol type detection (BC1.2 charging protocol type detection) of the charging device is performed, and the charging protocol type of the charging device [including dedicated charging port (Dedicated Charging Port, DCP), charging downstream port (Charging Downstream Port, CDP), standard downstream port (Standard Downstream Port)] is detected. Port, SDP)】, and based on the charging protocol type of the charging device, different charging currents are set for the terminal battery (such as: DCP: 1.5A, CDP: 1.5A, SDP: 0.5A). It can be understood that the setting of the power supply current of the terminal battery is related to the charging capacity of the charging device. The charging capacity of the charging device with the charging protocol type of DCP and CDP is stronger, so the power supply current is set to a larger value (such as: 1.5A), and the charging capacity of the charging device with the charging protocol type of SDP is weaker, so the power supply current is set to a smaller value (such as: 0.5A). It can be further understood that in the related art, the charging protocol type of the charging device is not detected when setting the default power supply current. In order to ensure the stability of the terminal battery power supply during the terminal initialization process, the default current of the terminal battery is set to a smaller value (such as: 0.5A) when the terminal is initialized.
[0040] However, as terminal storage specifications continue to improve, such as Figure 1 The schematic diagram of the current required for initialization when starting terminals with different storage specifications is shown in the figure. The current required for UFS initialization of terminals with high storage specifications (UFS4.0+256GB and above) (peak value greater than 0.7A) is higher than the current required for UFS initialization of terminals with general storage specifications (peak value close to 0.5A), and is also higher than the default power supply current set when activating the battery (such as: 0.5A). As a result, the battery activation fails and the terminal cannot start in the battery pre-charging stage. Figure 2As shown in the terminal initialization flow chart when activating a dead battery, the related technology activates the dead battery, connects the charging device, and enters the pre-startup process. The power management chip sets the terminal battery's power supply current to the default power supply current (0.5A) and initializes the terminal. Figure 3 A current waveform diagram when activating a dead battery and Figure 4 As shown in the voltage waveform diagram when activating a dead battery, during terminal initialization, since the default current (0.5A) of the terminal battery during initialization is less than the current (0.7A) required for terminal initialization, the power management chip controls the terminal battery to perform system loading, reduce the battery voltage, and increase the battery current. However, the system loading will cause the battery voltage to be lower than the voltage (2.5V) required to maintain normal operation of the power management chip, triggering the terminal to restart due to undervoltage lockout (UVLO), and the dead battery activation fails, and the terminal pre-charge startup fails. In summary, the dead battery activation method in the related art cannot activate a dead battery in a terminal with high storage specifications.
[0041] In view of this, the present disclosure provides a method for starting up a terminal when the battery is low. After the terminal is connected to a charging device, the charging type of the charging device is detected, and according to the charging type, a power supply current is set for the terminal battery, and the terminal is initialized according to the power supply current to control the terminal to start up. Through the present disclosure, after connecting to the charging device, a software strategy is used to solve the problem that a dead battery in a terminal whose startup current is higher than the default power supply current of the battery cannot be activated, and no additional hardware is required, which can save terminal internal space and save costs.
[0042] Figure 5 FIG. 1 is a flow chart of a method for starting a terminal according to an exemplary embodiment. Figure 5 As shown, the method includes step S101 to step S102.
[0043] In step S101 , in response to a target terminal being connected to a charging device, a charging type of the target terminal charged by the charging device is detected.
[0044] Among them, the battery voltage of the target terminal before connecting to the charging device is lower than the startup voltage of the terminal.
[0045] In the embodiment of the present disclosure, a terminal battery whose battery voltage before being connected to the charging device is less than the power-on voltage of the terminal is a dead battery to be activated.
[0046] In step S102, a power supply current is set for the terminal battery according to the charging type, and the terminal is initialized according to the power supply current to control the terminal to start up.
[0047] In the disclosed embodiment, the charging type used by the charging device to charge the target terminal is the charging protocol type supported by the charging device. After the terminal with a dead battery is connected to the charging device, the power management chip built into the terminal detects the charging type of the charging device and sets different power supply currents for the terminal battery based on the charging type of the charging device, such as: DCP: 1.5A, CDP: 1.5A, SDP: 0.5A. Different terminal initialization strategies are then specified based on different power supply currents to enable the terminal to complete initialization, ensure that the dead battery in the terminal can be activated, and ensure that the terminal is powered on during the pre-charging stage.
[0048] In the embodiments of the present disclosure, based on the different charging protocols supported by the charging device, the power management chip sets different power supply currents for the terminal battery. To ensure the normal initialization of the terminal, different terminal initialization strategies must be adopted when the power supply current provided by the terminal is greater than the current required for terminal initialization and when the power supply current provided by the terminal is less than the current required for terminal initialization. The following embodiments of the present disclosure illustrate the terminal initialization strategies corresponding to the charging protocols of different charging devices.
[0049] Figure 6 FIG. 1 is a flow chart showing a method for setting a corresponding power supply current for a terminal battery according to a charging type and turning on the terminal according to an exemplary embodiment. Figure 6 As shown, the method includes step S201, step S202A and step S202B.
[0050] In step S201, the charging type of the target terminal charged by the charging device is detected.
[0051] In step S202A, in response to the charging type being the first type, the power supply current of the terminal battery is set to the first power supply current, the terminal is initialized, and the terminal is turned on.
[0052] The first supply current is greater than or equal to a current threshold.
[0053] In step S202B, in response to the charging type of the charging device being the second type, the power supply current of the terminal battery is set to the second power supply current.
[0054] Among them, step S202A and step S202B are alternative execution modes.
[0055] In the embodiment of the present disclosure, the current threshold is the minimum current value for the terminal to be initialized smoothly. The terminal startup method provided by the present disclosure is targeted at a terminal with a high storage specification. The current required for initialization (i.e., the current threshold) is relatively high (e.g., 0.7A). When it is determined that the charging protocol type supported by the charging device is the first type with high charging power (e.g., DCP protocol or CDP protocol), the charging device has a higher charging power and can quickly charge the terminal battery. When the charging power of the charging device is high, the power management chip can set a higher power supply current (e.g., 1.5A) for the terminal battery to provide sufficient current for the terminal, which is greater than the current required for the terminal to be initialized. On the basis that this power supply current meets the requirements, the terminal can be initialized directly and the terminal can be pre-charged and powered on.
[0056] In the embodiment of the present disclosure, when it is determined that the charging protocol type supported by the charging device is the second type with low charging power (such as the SDP protocol), the charging device has a lower charging power, and the power management chip sets a lower power supply current (such as 0.5A) for the terminal battery.
[0057] In the embodiment of the present disclosure, the power management chip sets different power supply currents for the terminal battery based on the detected charging type of the charging device. The present disclosure identifies the charging type of the charging device and sets the terminal battery power supply current before the terminal is initialized, which avoids setting the terminal battery power supply current to a smaller default current value (such as 0.5A) when the charging power of the charging device meets the demand (such as: the actual corresponding power supply current is 1.5A), resulting in the power supply current not meeting the terminal initialization requirements (such as: less than 0.7A), resulting in terminal initialization failure and battery activation failure.
[0058] It is understandable that when the charging protocol type supported by the charging device is the second type of charging power (such as the SDP protocol), the power supply current that the terminal battery can provide is less than the current required for the terminal to initialize. In this case, in order to avoid the voltage of the terminal battery being reduced due to system loading, which in turn causes the terminal to restart due to undervoltage lockout, and ultimately causes the battery activation to fail, the terminal's demand for initialization current can be reduced so that the power supply current provided by the terminal battery can support terminal initialization, thereby completing battery activation. The following embodiments of the present disclosure illustrate a method for reducing the terminal's demand for initialization current so that the power supply current provided by the terminal battery can support terminal initialization.
[0059] Figure 7 FIG. 1 is a flow chart showing a method for performing terminal initialization according to a power supply current to control terminal startup according to an exemplary embodiment. Figure 7 As shown, the method includes steps S301 to S303.
[0060] In step S301, the power consumption of the terminal is reduced, and the power supply current required for starting up the terminal after the power consumption is reduced is determined.
[0061] In step S302, the initialization voltage of the terminal is determined according to the magnitude relationship between the power supply current required for starting up the terminal after power consumption reduction and the second power supply current.
[0062] In step S303, the current battery voltage of the terminal battery is monitored, and based on the magnitude relationship between the current battery voltage and the initialization voltage, the terminal is initialized and turned on.
[0063] It can be understood that the current required for terminal initialization is positively correlated with the power consumption of the terminal. Based on the correlation between the current required for terminal initialization and the terminal power consumption, the present invention reduces terminal initialization by reducing terminal power consumption when the power supply current of the terminal battery does not meet the terminal initialization requirement, thereby reducing the demand for power supply current for terminal initialization, so that the power supply current of the terminal battery meets the current required for terminal initialization or is close to the current required for terminal initialization.
[0064] In the disclosed embodiment, when the charging power of the charging device is low, resulting in the supply current of the terminal battery being lower than the current required for terminal initialization, the terminal power consumption is reduced, thereby reducing the demand for supply current for terminal initialization and ensuring smooth activation of the dead battery.
[0065] In the embodiment of the present disclosure, the power consumption of the terminal is affected by the core unit of the terminal that maintains normal operation of the terminal. The power consumption of the terminal can be reduced by adaptively reducing the power of the core unit of the terminal. The following embodiment of the present disclosure describes a method for reducing the power consumption of the terminal.
[0066] Figure 8 FIG. 1 is a flow chart showing a method for reducing power consumption of a terminal according to an exemplary embodiment. Figure 8 As shown, the method includes step S401 to step S402.
[0067] In step S401, in response to the charging type of the charging device being the second type, the power supply current of the terminal battery is set to the second power supply current.
[0068] In step S402, the central processing unit frequency of the terminal is adjusted to a first preset frequency, and the memory frequency of the terminal is adjusted to a second preset frequency.
[0069] In the disclosed embodiment, by reducing the frequency of the terminal's central processing unit (CPU) and double data rate synchronous dynamic random access memory (DDR, hereinafter referred to as memory), the power of the terminal processor and the power of the memory are reduced, thereby reducing the terminal power consumption, and further reducing the terminal initialization demand for the terminal battery power supply current. Under the premise of not increasing the terminal battery power supply current, the terminal initialization is completed and the dead battery is activated.
[0070] It is understandable that the first preset frequency after the processor is down-clocked and the second preset frequency after the memory is down-clocked can not only be the minimum frequency for maintaining the terminal standby, but also more gears can be set, each gear has a corresponding processor frequency and memory frequency. When adjusting the processor frequency and memory frequency, the frequency is adjusted from high to low, and the gears are adjusted one by one until the power supply current provided by the terminal battery meets the terminal initialization requirements. It is further understandable that the terminal startup speed is positively correlated with the processor frequency and memory frequency of the terminal. By setting multiple frequency gears, the terminal can be pre-charged and started with a relatively high processor frequency and memory frequency, thereby increasing the speed of terminal pre-charge startup.
[0071] In an embodiment of the present disclosure, after reducing the power consumption of the terminal and reducing the current requirement for terminal initialization, the power supply current of the terminal battery may still be unable to meet the current required for terminal initialization. Based on the magnitude relationship between the power supply current of the terminal battery after reducing the power consumption of the terminal and the current required for terminal initialization, the present disclosure resets the initialization voltage for terminal initialization for the terminal after the power consumption is reduced, and then controls the initialization and power-on of the terminal based on the relationship between the terminal voltage and the initialization voltage. The following embodiment of the present disclosure describes a method for determining the initialization voltage of a terminal after reducing power consumption.
[0072] Fig. 9 FIG. 1 is a flow chart showing a method for determining an initialization voltage of a terminal according to an exemplary embodiment. Fig. 9 As shown, the method includes step S501, step S502A and step S502B.
[0073] In step S501, the power supply current required for starting up the terminal after reducing power consumption is determined.
[0074] In step S502A, in response to the power supply current required for powering on the terminal after power consumption reduction being less than or equal to the second power supply current, the power-on voltage is determined as the initialization voltage.
[0075] In step S502B, in response to the power supply current required for starting up the terminal after reducing power consumption being greater than a current threshold, the current difference between the power supply current required for starting up the terminal and the second power supply current is determined, and a voltage increment is determined based on the current difference, and the sum of the voltage increment and the power-on voltage is determined as the initialization voltage.
[0076] Among them, step S502A and step S502B are alternative execution modes.
[0077] In the embodiment of the present disclosure, when the power supply current of the terminal battery meets the current required for initialization of the terminal after reducing power consumption, it indicates that the terminal can complete initialization without system loading, and a pre-set power-on voltage (for example: 2.7V) can be used as the initialization voltage of the terminal. When the power supply current of the terminal battery cannot meet the current required for initialization of the terminal after reducing power consumption, the power management chip of the terminal needs to complete the initialization of the terminal by reducing the battery voltage through system loading. In order to avoid the terminal battery voltage being too low after the reduction, causing the terminal to restart due to undervoltage lockout, the present disclosure sets an additional voltage increment (ΔV) on the basis of the preset power-on voltage of the terminal when the power supply current of the terminal battery cannot meet the current required for initialization of the terminal, and resets the initialization voltage for initializing the terminal based on the sum of the voltage increment and the pre-set power-on voltage (2.7V+ΔV).
[0078] In an embodiment of the present disclosure, when the power supply current of the terminal battery (e.g., 500mA) does not meet the current required for terminal initialization (e.g., 700mA), the terminal is initialized by reducing the terminal battery voltage (e.g., from 2.7V to 2.5V) through system loading. Among them, there is a corresponding relationship between the difference between the power supply current of the terminal battery and the current required for terminal initialization (e.g., 200mA) and the reduced value of the battery voltage (e.g., 0.2V). The present disclosure can store the corresponding relationship between the difference between the power supply current of the terminal battery and the current required for terminal initialization and the reduced value of the battery voltage when the system is loaded in the power management chip of the terminal in advance. When the power supply current of the terminal battery does not meet the current required for terminal initialization and the system is required to load, the voltage increment is determined based on the corresponding relationship between the above-mentioned current difference and the voltage reduction value, and the initialization voltage of the terminal is determined.
[0079] It is understandable that after the terminal is connected to the charging device, the battery voltage of the terminal battery will gradually increase over time. After the processor frequency reduction and memory frequency reduction are completed and the terminal initialization current demand is reduced, the battery voltage may not meet the power-on voltage demand, but after a period of time, the battery voltage will increase to meet the power-on voltage demand. Based on the increase of the battery voltage over time, it is necessary to synchronously monitor the battery voltage until the battery voltage meets the voltage requirement for the terminal to complete initialization. The following embodiments of the present disclosure describe methods for detecting the battery voltage, initializing the terminal, and turning on the terminal.
[0080] Fig.10 FIG. 1 is a flow chart showing a method for monitoring the current battery voltage of a terminal battery and starting the terminal based on the current battery voltage according to an exemplary embodiment. Fig.10 As shown, the method includes step S601 to step S602.
[0081] In step S601, the current battery voltage of the terminal battery is monitored at fixed time intervals, and the magnitude relationship between the current battery voltage and the initialization voltage of the terminal is determined.
[0082] In step S602, in response to the current battery voltage being greater than or equal to the initialization voltage, the terminal is initialized and turned on.
[0083] In the disclosed embodiment, a fixed time interval is preset, and after the processor frequency reduction and memory frequency reduction are completed, so that the power supply current provided by the terminal battery meets the current requirement of the terminal initialization, the power management chip detects the battery voltage at a preset time interval and compares it with the power-on voltage. Until it is detected that the battery voltage is greater than the power-on voltage, the terminal is initialized, the dead battery is activated, and the terminal is pre-charged and turned on. This avoids the battery voltage being lowered due to the system load during the terminal initialization process due to the battery voltage being lower than the charging voltage, resulting in undervoltage lockout and restart, which ultimately leads to the failure of terminal initialization.
[0084] In an exemplary embodiment of the present disclosure, a dead battery of a terminal with a storage specification of UFS4.0+1T and a startup voltage of 2.7V is activated to enable the terminal to be pre-charged and started. Fig.11 Flowchart of software strategy for activating dead battery in Fig.12As shown in the flowchart of the terminal startup method in FIG, the method includes the following steps: in response to the terminal battery being a dead battery, the terminal cannot be powered on due to low battery power, inserting a charger triggers power-on pre-charging, and the power management chip (Pmic) in the terminal initializes the power supply current (IBUS) of the terminal battery, and sets the power supply current to the default current of 500mA. The power management chip detects whether the battery voltage after connecting to the charger is greater than the power-on voltage of 2.7V. When the battery voltage is greater than the power-on voltage, the terminal is initialized (UFS4.0 initialization), the pre-charging icon is displayed, and the power-on pre-charging is performed. When the battery voltage is less than the power-on voltage, the charging type of the charging device (the charging protocol supported by the charging device) is detected based on the BC1.2 protocol, and different power supply currents (SDP: 500mA, CDP: 1500mA, DCP: 1500mA) are set for the terminal battery based on the different charging types of the charging device. After the battery current is set, the next step is performed after a delay of 600ms. In response to the charging type of the charging device being CDP or DCP, the terminal is initialized, the pre-charging icon is displayed, and the power-on pre-charging is performed. In response to the charging type of the charging device being SDP, the corresponding power supply current does not meet the requirements of terminal initialization, and the frequency of the terminal memory (DDR) and the central processing unit (CPU) is reduced so that the power supply current of the terminal battery meets the terminal initialization requirements. In response to the completion of the frequency reduction of the memory (DDR) and the central processing unit (CPU), the battery voltage is detected once every fixed time interval (1S) until the battery voltage is greater than the terminal startup voltage of 2.7V, the terminal is initialized, the pre-charge icon is displayed, and the startup pre-charge is performed. Through the present disclosure, after connecting the charging device, the problem that the dead battery in the terminal whose startup current is higher than the default power supply current of the battery cannot be activated is solved by a software strategy, and no additional hardware is required, which can save the internal space of the terminal and save costs.
[0085] Based on the same concept, the embodiment of the present disclosure also provides a battery activation device 100 .
[0086] It is understandable that the battery activation device 100 provided in the embodiment of the present disclosure includes hardware structures and / or software modules corresponding to the execution of each function in order to realize the above functions. In combination with the units and algorithm steps of each example disclosed in the embodiment of the present disclosure, the embodiment of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present disclosure.
[0087] Fig.13is a block diagram of a battery activation device 100 according to an exemplary embodiment. Fig.13 The device includes a detection unit 101 and a processing unit 102.
[0088] The detection unit 101 is configured to detect, in response to a target terminal being connected to a charging device, a charging type of the target terminal being charged by the charging device.
[0089] Among them, the battery voltage of the target terminal before connecting to the charging device is lower than the startup voltage of the terminal.
[0090] The processing unit 102 is used to set a power supply current for the terminal battery according to the charging type, and perform terminal initialization according to the power supply current to control the terminal to start up.
[0091] In one implementation, the terminal initialization needs to meet the current threshold. The processing unit 102 sets the power supply current for the terminal battery according to the charging type in the following manner: in response to the charging type being the first type, the power supply current of the terminal battery is set to the first power supply current, the terminal is initialized, and the terminal is turned on, and the first power supply current is greater than or equal to the current threshold. In response to the charging type of the charging device being the second type, the power supply current of the terminal battery is set to the second power supply current, and the second power supply current is less than the current threshold.
[0092] In one implementation, the power consumption of the terminal is positively correlated with the power supply current required for the terminal to start up, and the processing unit 102 performs terminal initialization according to the power supply current to control the terminal to start up in the following manner: reducing the power consumption of the terminal, and determining the power supply current required for the terminal to start up after the power consumption is reduced. Determining the initialization voltage of the terminal according to the magnitude relationship between the power supply current required for the terminal to start up after the power consumption is reduced and the second power supply current. Monitoring the current battery voltage of the terminal battery, initializing the terminal based on the magnitude relationship between the current battery voltage and the initialization voltage, and turning on the terminal.
[0093] In one implementation, the processing unit 102 reduces the power consumption of the terminal by the following method, including: adjusting the central processing unit frequency of the terminal to a first preset frequency, and adjusting the memory frequency of the terminal to a second preset frequency.
[0094] In one embodiment, the processing unit 102 determines the initialization voltage of the terminal according to the relationship between the power supply current required for the terminal to start up after the power consumption is reduced and the second power supply current in the following manner: in response to the power supply current required for the terminal to start up after the power consumption is reduced being less than or equal to the second power supply current, the power-on voltage is determined as the initialization voltage. In response to the power supply current required for the terminal to start up after the power consumption is reduced being greater than the second power supply current, the current difference between the power supply current required for the terminal to start up and the second power supply current is determined, and a voltage increment is determined according to the current difference, and the sum of the voltage increment and the power-on voltage is determined as the initialization voltage.
[0095] In one implementation, the processing unit 102 monitors the current battery voltage of the terminal battery in the following manner, performs terminal initialization based on the magnitude relationship between the current battery voltage and the initialization voltage, and turns on the terminal: monitors the current battery voltage of the terminal battery at fixed time intervals, and determines the magnitude relationship between the current battery voltage and the initialization voltage of the terminal. In response to the current battery voltage being greater than or equal to the initialization voltage, performs terminal initialization and turns on the terminal.
[0096] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0097] Fig.14 1 is a block diagram of a device 200 for powering on a terminal according to an exemplary embodiment. The device 200 may be provided as a terminal. For example, the device 200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0098] Reference Fig.14 , the device 200 may include one or more of the following components: a processing component 202 , a memory 204 , a power component 206 , a multimedia component 208 , an audio component 210 , an input / output (I / O) interface 212 , a sensor component 214 , and a communication component 216 .
[0099] The processing component 202 generally controls the overall operation of the device 200, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 202 may include one or more processors 220 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 202 may include one or more modules to facilitate interaction between the processing component 202 and other components. For example, the processing component 202 may include a multimedia module to facilitate interaction between the multimedia component 208 and the processing component 202.
[0100] The memory 204 is configured to store various types of data to support operations on the device 200. Examples of such data include instructions for any application or method operating on the device 200, contact data, phone book data, messages, pictures, videos, etc. The memory 204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0101] The power component 206 provides power to the various components of the device 200. The power component 206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 200.
[0102] The multimedia component 208 includes a screen that provides an output interface between the device 200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 208 includes a front camera and / or a rear camera. When the device 200 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0103] The audio component 210 is configured to output and / or input audio signals. For example, the audio component 210 includes a microphone (MIC), and when the device 200 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 204 or sent via the communication component 216. In some embodiments, the audio component 210 also includes a speaker for outputting audio signals.
[0104] I / O interface 212 provides an interface between processing component 202 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, an on button, and a lock button.
[0105] The sensor assembly 214 includes one or more sensors for providing various aspects of the status assessment of the device 200. For example, the sensor assembly 214 can detect the open / closed state of the device 200, the relative positioning of components, such as the display and keypad of the device 200, the sensor assembly 214 can also detect the position change of the device 200 or a component of the device 200, the presence or absence of user contact with the device 200, the orientation or acceleration / deceleration of the device 200 and the temperature change of the device 200. The sensor assembly 214 can include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 214 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 214 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
[0106] The communication component 216 is configured to facilitate wired or wireless communication between the device 200 and other devices. The device 200 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 216 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0107] In an exemplary embodiment, the apparatus 200 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.
[0108] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 204 including instructions, and the instructions can be executed by the processor 220 of the device 200 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0109] It is to be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The singular forms "a", "the" and "the" are also intended to include plural forms, unless the context clearly indicates other meanings.
[0110] It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a specific order or degree of importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.
[0111] It will be further understood that the terms “center”, “longitudinal”, “lateral”, “front”, “back”, “up”, “down”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present embodiment and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation.
[0112] It can be further understood that, unless otherwise specified, “connection” includes a direct connection without other components between the two, and also includes an indirect connection with other components between the two.
[0113] It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.
[0114] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present solution, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure.
[0115] It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.
Claims
1. A terminal startup method, characterized in that: include: In response to the target terminal being connected to the charging device, detecting a charging type of the target terminal being charged by the charging device, wherein the battery voltage of the target terminal before being connected to the charging device is less than a power-on voltage of the terminal; According to the charging type, a power supply current is set for the terminal battery, and the terminal is initialized according to the power supply current to control the terminal to start up.
2. The method according to claim 1, characterized in that The terminal initialization needs to meet the current threshold; The step of setting a supply current for a terminal battery according to the charging type includes: In response to the charging type being the first type, setting the power supply current of the terminal battery to the first power supply current, performing terminal initialization, and turning on the terminal, the first power supply current being greater than or equal to the current threshold; In response to the charging type of the charging device being the second type, the power supply current of the terminal battery is set to a second power supply current, and the second power supply current is less than the current threshold.
3. The method according to any one of claims 1 or 2, characterized in that The power consumption of the terminal is positively correlated with the power supply current required to start the terminal. The performing terminal initialization according to the power supply current to control the terminal to start up includes: Reducing the power consumption of the terminal, and determining the power supply current required for starting the terminal after the power consumption is reduced; determining an initialization voltage of the terminal according to a magnitude relationship between a power supply current required for starting the terminal after power consumption reduction and a second power supply current; The current battery voltage of the terminal battery is monitored, and based on the magnitude relationship between the current battery voltage and the initialization voltage, the terminal is initialized and the terminal is turned on.
4. The method according to claim 3, characterized in that The reducing the power consumption of the terminal includes: The central processing unit frequency of the terminal is adjusted to a first preset frequency, and the memory frequency of the terminal is adjusted to a second preset frequency.
5. The method according to claim 3, characterized in that: The determining the initialization voltage of the terminal according to the magnitude relationship between the power supply current required for starting up the terminal after reducing power consumption and the second power supply current includes: In response to the power supply current required for powering on the terminal after reducing power consumption being less than or equal to the second power supply current, determining the power-on voltage as the initialization voltage; In response to the power supply current required for starting up the terminal after reducing power consumption being greater than the second power supply current, a current difference between the power supply current required for starting up the terminal and the second power supply current is determined, and a voltage increment is determined based on the current difference, and the sum of the voltage increment and the power-on voltage is determined as the initialization voltage.
6. The method according to claim 3, characterized in that The monitoring of the current battery voltage of the terminal battery, initializing the terminal based on the magnitude relationship between the current battery voltage and the initialization voltage, and turning on the terminal includes: Monitoring the current battery voltage of the terminal battery at fixed time intervals, and determining the magnitude relationship between the current battery voltage and the initialization voltage of the terminal; In response to the current battery voltage being greater than or equal to the initialization voltage, terminal initialization is performed and the terminal is turned on.
7. A terminal startup device, characterized in that: include: a detection unit, configured to detect, in response to the target terminal being connected to the charging device, a charging type of the target terminal being charged by the charging device, wherein the battery voltage of the target terminal before being connected to the charging device is less than a power-on voltage of the terminal; The processing unit is used to set a power supply current for the terminal battery according to the charging type, and perform terminal initialization according to the power supply current to control the terminal to start up.
8. The device according to claim 7, characterized in that The terminal initialization needs to meet the current threshold; The processing unit sets the supply current for the terminal battery according to the charging type in the following manner: In response to the charging type being the first type, setting the power supply current of the terminal battery to the first power supply current, performing terminal initialization, and turning on the terminal, the first power supply current being greater than or equal to the current threshold; In response to the charging type of the charging device being the second type, the power supply current of the terminal battery is set to a second power supply current, and the second power supply current is less than the current threshold.
9. The device according to any one of claims 7 or 8, characterized in that The power consumption of the terminal is positively correlated with the power supply current required to start the terminal. The processing unit performs terminal initialization according to the power supply current to control the terminal to start up in the following manner: Reducing the power consumption of the terminal, and determining the power supply current required for starting the terminal after the power consumption is reduced; determining an initialization voltage of the terminal according to a magnitude relationship between a power supply current required for starting the terminal after power consumption reduction and a second power supply current; The current battery voltage of the terminal battery is monitored, and based on the magnitude relationship between the current battery voltage and the initialization voltage, the terminal is initialized and the terminal is turned on.
10. The device according to claim 9, characterized in that The processing unit reduces the power consumption of the terminal in the following manner, including: The central processing unit frequency of the terminal is adjusted to a first preset frequency, and the memory frequency of the terminal is adjusted to a second preset frequency.
11. The device according to claim 9, characterized in that The processing unit determines the initialization voltage of the terminal according to the magnitude relationship between the power supply current required for starting up the terminal after power consumption reduction and the second power supply current in the following manner: In response to the power supply current required for powering on the terminal after reducing power consumption being less than or equal to the second power supply current, determining the power-on voltage as the initialization voltage; In response to the power supply current required for starting up the terminal after reducing power consumption being greater than the second power supply current, a current difference between the power supply current required for starting up the terminal and the second power supply current is determined, and a voltage increment is determined based on the current difference, and the sum of the voltage increment and the power-on voltage is determined as the initialization voltage.
12. The device according to claim 9, characterized in that The processing unit monitors the current battery voltage of the terminal battery in the following manner, performs terminal initialization based on the magnitude relationship between the current battery voltage and the initialization voltage, and turns on the terminal: Monitoring the current battery voltage of the terminal battery at fixed time intervals, and determining the magnitude relationship between the current battery voltage and the initialization voltage of the terminal; In response to the current battery voltage being greater than or equal to the initialization voltage, terminal initialization is performed and the terminal is turned on.
13. A terminal startup device, characterized in that: include: processor: a memory for storing processor-executable instructions; The processor is configured to: execute the terminal startup method according to any one of claims 1 to 6.
14. A storage medium, characterized in that: The storage medium stores instructions, and when the instructions in the storage medium are executed by a processor, the processor is enabled to execute the terminal startup method according to any one of claims 1 to 6.