Processing method and device and electronic equipment
By obtaining the battery target parameters in the electronic device and sending alarm information to the hardware module, the electronic device does not automatically lose power at low voltage, solving the problem of equipment service life and user experience.
Patent Information
- Application Number
- CN202510001804.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-01
- Publication Date
- 2025-05-06
AI Technical Summary
Electronic devices are prone to power automatically when working at high loads at low voltages, affecting their service life and user experience.
By obtaining the target parameters of the battery, if the state transition condition is met, an alarm information is sent to the target hardware module, and the synchronous electronic device is converted from the first sub-state to the second sub-state, so that the target hardware module is converted from the first operating state to the second operating state.
It effectively avoids the automatic power loss of electronic devices when operating at high loads at low voltages, extends the service life of the device and improves the user experience.
Smart Images

Figure CN119944117A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a processing method, device and electronic device. Background Art
[0002] With the update of battery technology, more and more electronic devices use silicon negative electrode batteries. Silicon negative electrode batteries have the characteristic of higher battery power than traditional batteries under low battery voltage, that is, the voltage of silicon negative electrode batteries is lower under the same power level, which causes the electronic devices to automatically power down when working under low voltage and high load, which not only affects the service life of electronic devices but also affects the user experience. Therefore, how to prevent electronic devices from automatically powering down when working under low voltage and high load has become a technical problem that needs to be solved urgently. Summary of the invention
[0003] The present disclosure provides a processing method, an apparatus and an electronic device.
[0004] According to a first aspect of the present disclosure, there is provided a processing method, comprising:
[0005] Get the target parameters of the battery;
[0006] If the target parameter satisfies the state transition condition, sending target alarm information to the target hardware module;
[0007] The target alarm information is used to synchronize the electronic device of the target hardware module to switch from the first sub-state to the second sub-state, so that the target hardware module switches from the first operating state to the second operating state;
[0008] The probability that the electronic device switches from the first sub-state to the second state is lower than the probability that the electronic device switches from the second sub-state to the second state;
[0009] When the electronic device is in the second state, the system environment data will not be saved in the hardware device, and the operating system is in a closed state.
[0010] In an implementation of the present application, the target parameter satisfies the state transition condition, indicating that the target parameter reaches a parameter threshold at which the electronic device transitions from the first sub-state to the second sub-state;
[0011] Wherein, when the electronic device is in the first sub-state, the operating states of some hardware modules change;
[0012] When the electronic device is in the second sub-state, the operating state of each hardware module changes.
[0013] In an implementation of the present application, the method further includes:
[0014] If the electronic device is in the second sub-state, in response to detecting an instruction to start the target hardware module, displaying target state prompt information;
[0015] The target state prompt information indicates that within the target time period of starting the target hardware module, the electronic device will be converted to the second state.
[0016] In an implementation of the present application, the method further includes:
[0017] If the target hardware module is the first hardware module, the target duration is the first duration;
[0018] If the target hardware module is the second hardware module, the target duration is the second duration;
[0019] The first hardware module is different from the second hardware module, and the first duration is different from the second duration.
[0020] In an implementation of the present application, the method further includes:
[0021] Determine whether the current voltage of the electronic device is less than or equal to a target protection voltage threshold based on the target parameter, where the target protection voltage threshold is a voltage threshold determined according to a system voltage drop and an undervoltage threshold of the electronic device;
[0022] If yes, a target protection strategy corresponding to the electronic device is determined according to the current voltage, and the target protection strategy is executed, where the target protection strategy is used to prevent the battery of the electronic device from being in an undervoltage state.
[0023] In one embodiment of the present application, the target parameter includes a battery voltage of the electronic device, and the system voltage drop is determined based on a load current of the electronic device, an instantaneous peak current of the battery, and a system impedance.
[0024] In an implementation of the present application, determining a target protection strategy corresponding to the electronic device according to the current voltage includes:
[0025] If the current voltage is greater than a first voltage threshold, determining the load to be adjusted and the load adjustment strategy corresponding to each load to be adjusted according to the load power consumption information of the electronic device, and the first voltage threshold is greater than the undervoltage threshold;
[0026] The strategy of adjusting each load to be adjusted according to the corresponding load adjustment strategy and displaying undervoltage warning information to the user is determined as the target protection strategy corresponding to the electronic device.
[0027] In an implementation of the present application, the target parameter includes a battery charge of the electronic device;
[0028] The determining, based on the target parameter, whether the current voltage of the electronic device is less than or equal to a target protection voltage threshold comprises:
[0029] Determining whether the battery power level drops to a preset first power level threshold;
[0030] If yes, determine whether the current voltage of the electronic device is less than or equal to the target protection voltage threshold.
[0031] According to a second aspect of the present disclosure, a processing device is provided, the device comprising:
[0032] A parameter acquisition module, used to obtain target parameters of the battery;
[0033] An alarm information sending module is used to send target alarm information to a target hardware module if the target parameter meets the state transition condition; wherein the target alarm information is used to synchronize the electronic device to the target hardware module to transition from a first sub-state to a second sub-state, so that the target hardware module transitions from a first operating state to a second operating state; the probability of the electronic device transitioning from the first sub-state to the second state is lower than the probability of the electronic device transitioning from the second sub-state to the second state; when the electronic device is in the second state, system environment data will not be saved in the hardware device, and the operating system is in a closed state.
[0034] According to a third aspect of the present disclosure, there is provided an electronic device, characterized in that it includes:
[0035] Battery;
[0036] at least one processor; and
[0037] a memory communicatively connected to the at least one processor; wherein,
[0038] The memory stores instructions executable by the at least one processor, the instructions are executed by the at least one processor, and the at least one processor is used to obtain target parameters of the battery, and if the target parameters meet the state transition condition, send target alarm information to the target hardware module; wherein the target alarm information is used to synchronize the electronic device to the target hardware module to transition from a first sub-state to a second sub-state, so that the target hardware module transitions from a first operating state to a second operating state; the probability that the electronic device transitions from the first sub-state to the second state is lower than the probability that the electronic device transitions from the second sub-state to the second state; when the electronic device is in the second state, system environment data will not be saved to the hardware device, and the operating system is in a closed state;
[0039] Target hardware module.
[0040] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method described in the present disclosure.
[0041] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The above and other objects, features and advantages of the exemplary embodiments of the present disclosure will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, in which:
[0043] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.
[0044] Figure 1 A schematic diagram of an implementation flow of the processing method provided in an embodiment of the present application is shown;
[0045] Figure 2 Another implementation flow diagram of the processing method provided in the embodiment of the present application is shown;
[0046] Figure 3 A schematic diagram of the structure of a processing device provided in an embodiment of the present application is shown;
[0047] Figure 4 A schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0048] In order to make the purpose, features, and advantages of the present disclosure more obvious and easy to understand, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0049] Since the current problem of electronic devices automatically losing power when working under low voltage and high load affects the service life of electronic devices and the user experience, in order to avoid the automatic power loss of electronic devices when working under low voltage and high load, the present application provides a processing method, device and electronic device. The electronic device provided in the present application can be a mobile phone, a computer, a tablet computer and other devices.
[0050] In the related art, when the voltage / battery of a device is lower than a certain threshold, the power consumption of different hardware components of the device is adjusted according to a predetermined strategy. That is, after the voltage / battery is lower than a certain threshold, the maximum operating parameters of the hardware components are lowered. However, at this time, the hardware components cannot clearly know whether the device is in a state of power shortage or apply for resources with the optimal parameters, resulting in the inability to effectively reduce the power consumption of the device.
[0051] Based on this, an embodiment of the present application provides a processing method to obtain the target parameters of the battery; if the target parameters meet the state transition conditions, send target alarm information to the target hardware module; wherein the target alarm information is used to synchronize the electronic device to the target hardware module to transition from a first sub-state to a second sub-state, so that the target hardware module transitions from a first operating state to a second operating state; the probability of the electronic device transitioning from the first sub-state to the second state is lower than the probability of the electronic device transitioning from the second sub-state to the second state; when the electronic device is in the second state, the system environment data will not be saved in the hardware device, and the operating system is in a shutdown state.
[0052] The method of the embodiment of the present application sends target alarm information to the target hardware module when the electronic device undergoes a state transformation, so that the target hardware module can dynamically adjust the resources applied to the system when the operating status of the electronic device is clear, rather than always applying for resources from the system with optimal parameters.
[0053] The technical solution of the embodiment of the present application will be described below in conjunction with the drawings in the embodiment of the present application.
[0054] Figure 1 A schematic diagram of an implementation flow of the processing method provided in the embodiment of the present application is shown as follows: Figure 1 As shown, the method includes:
[0055] S101, obtaining target parameters of the battery.
[0056] In the present disclosure, the target parameter may be a voltage parameter or a power parameter.
[0057] S102: If the target parameter meets the state transition condition, send target alarm information to the target hardware module.
[0058] The target alarm information is used to synchronize the electronic device of the target hardware module to switch from the first sub-state to the second sub-state, so that the target hardware module switches from the first operating state to the second operating state.
[0059] The probability that the electronic device transitions from the first sub-state to the second state is lower than the probability that the electronic device transitions from the second sub-state to the second state.
[0060] When the electronic device is in the second state, the system environment data will not be saved in the hardware device, and the operating system is in a closed state.
[0061] Specifically, when the device is in the first sub-state or the second sub-state, the operating system of the device is in a usable state. Generally speaking, the electronic device in the first sub-state or the second sub-state is an electronic device in a powered-on state. When the device is in the second state, the operating system of the device is in an unusable state. Generally speaking, the electronic device in the second state is an electronic device in a powered-off state.
[0062] In the present disclosure, the target hardware modules may include processing modules (such as CPU and DSP, etc.), storage modules (such as RAM and ROM, etc.), communication modules (such as wireless communication modules and serial communication interfaces, etc.) and sensor modules (such as accelerometers and gyroscopes, etc.) of electronic devices.
[0063] In the present disclosure, the first sub-state of the electronic device can be equated with a low-power state, and the second sub-state of the electronic device can be equated with an ultra-low-power state. The target alarm information may include a first warning information notifying the electronic device to switch from the first sub-state to the second sub-state, and / or a second warning information notifying the target hardware module to reduce power consumption. After receiving the first warning information and / or the second warning information, the target hardware module can reduce its own power consumption or stop part or all of its services to change its own operating state. For example, after receiving the first warning information and / or the second warning information, the storage module can compress the data to reduce the space required for storage, thereby reducing the number of read and write times and power consumption.
[0064] In the present disclosure, the second state of the electronic device includes a shutdown state. When the electronic device is in the second state, the electronic device no longer performs any user tasks or processes data, each target hardware module enters a low power consumption state, the electronic device no longer responds to any external signal, the system environment data of the electronic device will not be saved to the hardware device, and the operating system is in a shutdown state. The system environment data of the electronic device may include the operating environment information, operating state information, and load information of the electronic device.
[0065] In a possible implementation, the target parameter satisfies the state transition condition, indicating that the target parameter reaches a parameter threshold at which the electronic device transitions from a first sub-state to a second sub-state; wherein, when the electronic device is in the first sub-state, the operating states of some hardware modules change; and when the electronic device is in the second sub-state, the operating states of various hardware modules change.
[0066] In the present disclosure, when the electronic device is in the first sub-state, the electronic device enters a low-power state. In order to avoid the electronic device from losing power too quickly, each hardware module can be notified to reduce power consumption. In the low-power state, in order to ensure the normal operation of the electronic device, hardware modules such as the CPU and storage module may maintain the original power consumption, and the communication module can shut down most services. Therefore, when the electronic device is in the first sub-state, the operating state of some hardware modules changes. When the electronic device is in the second sub-state, the electronic device enters an ultra-low-power state. In the ultra-low-power state, the electronic device is easy to trigger the undervoltage protection voltage threshold to shut down the electronic device. In order to avoid the electronic device from losing power too quickly and shutting down due to undervoltage, each hardware module including the CPU and storage module can be notified to reduce power consumption. Therefore, when the electronic device is in the second sub-state, the operating state of all hardware modules will change.
[0067] When the target voltage reaches the voltage threshold at which the electronic device switches from the first sub-state to the second sub-state, the electronic device is in an ultra-low power state and there is a possibility of under-voltage shutdown. The electronic device can send a target alarm message to the target hardware module so that the target hardware module can learn the current state of the electronic device and make a decision on whether to reduce power consumption and which services to reduce power consumption based on the current state of the electronic device.
[0068] In the present disclosure, when the target parameter is a target voltage, three thresholds can be set for the voltage, namely, a first voltage threshold, a second voltage threshold and a third voltage threshold. Among them, the third voltage threshold is higher than the undervoltage protection threshold and is very close to the undervoltage protection threshold, the second voltage threshold is higher than the third voltage threshold, and the first voltage threshold is higher than the second voltage threshold. When the voltage of the electronic device is lower than the first voltage threshold, it can be determined that the electronic device enters the first sub-state, i.e., the low power state. When the voltage of the electronic device is lower than the second voltage threshold and higher than the third voltage threshold, it can be determined that the electronic device enters the second sub-state, i.e., the ultra-low power state. In the ultra-low power state, the voltage of the electronic device may be lower than the third voltage threshold at any time, thereby triggering the undervoltage protection and causing the electronic device to shut down abnormally.
[0069] Since different hardware modules consume different amounts of power during operation, when a user starts a hardware module corresponding to a function, the remaining device usage time when the user uses the function is determined based on the power consumption per unit time of the hardware module, that is, the duration of shutdown due to undervoltage protection when the user uses the function. Therefore, in a possible implementation, if the electronic device is in the second sub-state, in response to detecting an instruction to start the target hardware module, a target state prompt information is displayed; wherein the target state prompt information indicates that the electronic device will be converted to the second state within the target duration of starting the target hardware module. If the target hardware module is the first hardware module, the target duration is the first duration; if the target hardware module is the second hardware module, the target duration is the second duration; the first hardware module and the second hardware module are different, and the first duration and the second duration are different. Different hardware modules have different startup times and different power consumption, that is, the startup of different hardware modules has different effects on the running state of the electronic device. In the present disclosure, when the electronic device is about to enter the second sub-state, a prompt message can be sent to the user to prompt the degree of impact of the operation of each functional module on the electronic device entering the second sub-state, so that the user can understand the remaining usage time of each function.
[0070] In one possible implementation, Figure 2 Another implementation flow diagram of the processing method provided in the embodiment of the present application is shown as follows: Figure 2 As shown, the processing method includes:
[0071] S201, determining whether a current voltage of the electronic device is less than or equal to a target protection voltage threshold based on the target parameter, where the target protection voltage threshold is a voltage threshold determined according to a system voltage drop and an undervoltage threshold of the electronic device.
[0072] S202: If yes, determine a target protection strategy corresponding to the electronic device according to the current voltage, and execute the target protection strategy, where the target protection strategy is used to prevent the battery of the electronic device from being in an undervoltage state.
[0073] In the present disclosure, the target protection voltage threshold may be a second voltage threshold. The target parameter may include the battery voltage of the electronic device, and the system voltage drop may be determined based on the load current of the electronic device, the instantaneous peak current of the battery, and the system impedance. Specifically, the value of the second voltage threshold level2 of the electronic device may be evaluated based on the highest current tested in the GSM laboratory and the line internal resistance value evaluated in the hardware laboratory test. Specifically, assuming that the impedance between the battery output point voltage VBB of the electronic device and the system voltage Vsys supplied to the operating system after passing through the circuit is 100 milliohms, the instantaneous current peak value of the battery tested in the RF laboratory is 6.59A, and the current of other loads is estimated to be about 1.5A, then the system voltage drop between VBB and Vsys can be calculated to be approximately 8A*100 milliohms=0.8V. If the undervoltage threshold UVLO of the electronic device is 2.5V, the value of the second voltage threshold level2 of the electronic device may be determined to be 2.5V+0.8V=3.3V based on the undervoltage threshold UVLO of the electronic device. The first voltage threshold may be set to a value higher than the second voltage threshold, for example, set to 5V or 5.5V.
[0074] When the battery voltage of the electronic device is lower than the first voltage threshold and higher than the second voltage threshold, the electronic device is in the first sub-state, that is, the electronic device enters a low-power state. In order to allow the electronic device to run for a longer time, a prompt message can be sent to the user interface to prompt the electronic device to enter a low-power state, and it is recommended that the electronic device start the power saving mode to allow the system to run longer. When the electronic device is in the first sub-state, the electronic device can send a notification message to a hardware module with high power consumption, notifying the electronic device that it is at risk of undervoltage protection, so that the hardware module can be informed of the current state of the electronic device and take necessary measures according to its own situation. Hardware modules with high power consumption may include multimedia modules and communication modules, etc.
[0075] When the battery voltage of the electronic device is lower than the second voltage threshold, the electronic device is converted from the first sub-state to the second sub-state, that is, the electronic device enters the ultra-low power state. When the electronic device is working under ultra-low power and overload, the possibility of triggering undervoltage protection and causing abnormal shutdown is greatly increased. Therefore, it is necessary to judge the overload working condition of the electronic device. If the battery voltage of the electronic device frequently switches between the voltage interval higher than the first voltage threshold and the voltage interval composed of the second voltage threshold and the third voltage threshold, it can be determined that the electronic device is working under low power and overload; then the electronic device can send a warning message to each hardware module through the power server, and the warning message informs each hardware module that the electronic device is working under low power and overload, so that each hardware module reduces its own power consumption. If the battery voltage of the electronic device frequently switches between the voltage interval composed of the first voltage threshold and the second voltage threshold and the voltage interval composed of the second voltage threshold and the third voltage threshold, it can be determined that the electronic device is working under low power and overload and there is a risk of undervoltage protection. Then the electronic device can notify the high-load hardware module through the power server that it must take measures to reduce power consumption to prevent the electronic device from entering undervoltage protection. If the voltage of the electronic device is lower than the third voltage threshold, the electronic device can notify each hardware module through the power server to automatically shut down the electronic device within a certain period of time to ensure that the electronic device does not have undervoltage protection.
[0076] In a possible implementation manner, determining the target protection strategy corresponding to the electronic device according to the current voltage may include steps A1-A2:
[0077] Step A1: if the current voltage is greater than a first voltage threshold, determine the load to be adjusted and the load adjustment strategy corresponding to each load to be adjusted according to the load power consumption information of the electronic device, and the first voltage threshold is greater than the undervoltage threshold.
[0078] Step A2: adjusting each load to be adjusted according to the corresponding load adjustment strategy and displaying the undervoltage warning information to the user is determined as the target protection strategy corresponding to the electronic device.
[0079] In the present disclosure, if it is monitored that the current voltage of the electronic device is greater than the target protection voltage threshold within a preset time period, the load state of the load to be adjusted of the electronic device can be restored based on the priority of each load to be adjusted. The preset time period can be set to 5 minutes or 10 minutes, etc. The load priority of basic hardware is higher than the load priority of non-basic hardware such as multimedia hardware.
[0080] In the present disclosure, if the current voltage of the electronic device is less than or equal to the third voltage threshold, the electronic device can display to the user a strategy of warning information of shutting down the electronic device within a preset time, and the strategy of warning information of shutting down the electronic device within the preset time can be used as a target protection strategy corresponding to the electronic device. The preset time can be set to 2 minutes or 3 minutes, etc.
[0081] In another possible implementation, the target parameter includes the battery power of the electronic device, and determining whether the current voltage of the electronic device is less than or equal to the target protection voltage threshold based on the target parameter may include steps B1-B2:
[0082] Step B1, determining whether the battery power level is reduced to a preset first power level threshold.
[0083] The first power threshold can be set to 5% of the full battery power.
[0084] Step B2: if yes, determine whether the current voltage of the electronic device is less than or equal to the target protection voltage threshold.
[0085] In the present disclosure, it is also possible to determine whether the electronic device is in a charging state. If so, it is determined whether the battery power rises back to a level greater than the preset first power threshold. If so, the load state of each load of the electronic device is restored.
[0086] In this embodiment, since the voltage is not stable when the battery is low, monitoring the battery voltage cannot accurately determine whether the device is approaching undervoltage. However, the battery power is relatively stable. Determining whether to adjust the undervoltage protection strategy based on the battery power can more accurately identify the state of the device approaching undervoltage protection.
[0087] In the present disclosure, when the electronic device is in a charging state, if the battery power returns to 6% of the full battery power, the load state of each load of the electronic device can be restored.
[0088] Based on the same inventive concept, according to the processing method provided in the above embodiment of the present disclosure, correspondingly, another embodiment of the present disclosure further provides a processing device, whose structural schematic diagram is shown in FIG. Figure 3 As shown, specifically including:
[0089] A parameter acquisition module 301 is used to acquire target parameters of the battery;
[0090] The alarm information sending module 302 is used to send target alarm information to the target hardware module if the target parameter meets the state transition condition; wherein the target alarm information is used to synchronize the electronic device to the target hardware module to transition from a first sub-state to a second sub-state, so that the target hardware module transitions from a first operating state to a second operating state; the probability of the electronic device transitioning from the first sub-state to the second state is lower than the probability of the electronic device transitioning from the second sub-state to the second state; when the electronic device is in the second state, the system environment data will not be saved in the hardware device, and the operating system is in a closed state.
[0091] In one possible implementation manner, the target parameter satisfies the state transition condition, indicating that the target parameter reaches a parameter threshold at which the electronic device transitions from the first sub-state to the second sub-state;
[0092] When the electronic device is in the first sub-state, the operating states of some hardware modules change; when the electronic device is in the second sub-state, the operating states of various hardware modules change.
[0093] In one possible implementation, the alarm information sending module 302 is also used to display target state prompt information in response to detecting an instruction to start the target hardware module if the electronic device is in the second sub-state; wherein the target state prompt information indicates that within the target time length of starting the target hardware module, the electronic device will be converted to the second state.
[0094] In one possible implementation, the alarm information sending module 302 is also used to: if the target hardware module is a first hardware module, the target duration is a first duration; if the target hardware module is a second hardware module, the target duration is a second duration; if the first hardware module and the second hardware module are different, the first duration and the second duration are different.
[0095] In one possible implementation, the alarm information sending module 302 is also used to determine whether the current voltage of the electronic device is less than or equal to a target protection voltage threshold based on the target parameter, and the target protection voltage threshold is a voltage threshold determined based on the system voltage drop and undervoltage threshold of the electronic device; if so, determine the target protection strategy corresponding to the electronic device based on the current voltage, and execute the target protection strategy, and the target protection strategy is used to prevent the battery of the electronic device from being in an undervoltage state.
[0096] In one possible implementation, the target parameter includes a battery voltage of the electronic device, and the system voltage drop is determined based on a load current of the electronic device, an instantaneous peak current of the battery, and a system impedance.
[0097] In one possible implementation mode, the alarm information sending module 302 is also used to determine the load to be adjusted and the load adjustment strategy corresponding to each load to be adjusted according to the load power consumption information of the electronic device if the current voltage is greater than a first voltage threshold, and the first voltage threshold is greater than the undervoltage threshold; and the strategy of adjusting each load to be adjusted according to the corresponding load adjustment strategy and displaying undervoltage warning information to the user is determined as the target protection strategy corresponding to the electronic device.
[0098] In one possible implementation, the target parameter includes a battery charge of the electronic device;
[0099] The alarm information sending module 302 is further used to determine whether the battery power is reduced to a preset first power threshold; if so, determine whether the current voltage of the electronic device is less than or equal to a target protection voltage threshold.
[0100] Another embodiment of the present disclosure further provides an electronic device and a readable storage medium. The electronic device includes:
[0101] Battery;
[0102] at least one processor; and
[0103] a memory communicatively connected to the at least one processor; wherein,
[0104] The memory stores instructions executable by the at least one processor, the instructions are executed by the at least one processor, and the at least one processor is used to obtain target parameters of the battery, and if the target parameters meet the state transition condition, send target alarm information to the target hardware module; wherein the target alarm information is used to synchronize the electronic device to the target hardware module to transition from a first sub-state to a second sub-state, so that the target hardware module transitions from a first operating state to a second operating state; the probability that the electronic device transitions from the first sub-state to the second state is lower than the probability that the electronic device transitions from the second sub-state to the second state; when the electronic device is in the second state, system environment data will not be saved to the hardware device, and the operating system is in a closed state;
[0105] Target hardware module.
[0106] Figure 4A schematic block diagram of an example electronic device 400 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0107] like Figure 4 As shown, the device 400 includes a computing unit 401, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 402 or a computer program loaded from a storage unit 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the device 400 can also be stored. The computing unit 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0108] A number of components in the device 400 are connected to the I / O interface 405, including: an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a disk, an optical disk, etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows the device 400 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0109] The computing unit 401 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 401 performs the various methods and processes described above, such as the processing method. For example, in some embodiments, the processing method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 400 via ROM 402 and / or communication unit 409. When the computer program is loaded into RAM 403 and executed by the computing unit 401, one or more steps of the processing method described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to perform the processing method in any other appropriate manner (e.g., by means of firmware).
[0110] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), integrated systems on a chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0111] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0112] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0113] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0114] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0115] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0116] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0117] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0118] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A processing method comprising: Get the target parameters of the battery; If the target parameter satisfies the state transition condition, sending target alarm information to the target hardware module; The target alarm information is used to synchronize the electronic device of the target hardware module to switch from the first sub-state to the second sub-state, so that the target hardware module switches from the first operating state to the second operating state; The probability that the electronic device switches from the first sub-state to the second state is lower than the probability that the electronic device switches from the second sub-state to the second state; When the electronic device is in the second state, the system environment data will not be saved in the hardware device, and the operating system is in a closed state.
2. The method according to claim 1, wherein the target parameter satisfies the state transition condition, indicating that the target parameter reaches a parameter threshold at which the electronic device transitions from the first sub-state to the second sub-state; in, When the electronic device is in the first sub-state, the operating states of some hardware modules change; When the electronic device is in the second sub-state, the operating state of each hardware module changes.
3. The method according to claim 1, further comprising: If the electronic device is in the second sub-state, in response to detecting an instruction to start the target hardware module, displaying target state prompt information; The target state prompt information indicates that within the target time period of starting the target hardware module, the electronic device will be converted to the second state.
4. The method according to claim 3, further comprising: If the target hardware module is the first hardware module, the target duration is the first duration; If the target hardware module is the second hardware module, the target duration is the second duration; The first hardware module is different from the second hardware module, and the first duration is different from the second duration.
5. The method according to claim 1, further comprising: Determine whether the current voltage of the electronic device is less than or equal to a target protection voltage threshold based on the target parameter, where the target protection voltage threshold is a voltage threshold determined according to a system voltage drop and an undervoltage threshold of the electronic device; If yes, a target protection strategy corresponding to the electronic device is determined according to the current voltage, and the target protection strategy is executed, where the target protection strategy is used to prevent the battery of the electronic device from being in an undervoltage state. 6 . The method according to claim 5 , wherein the target parameter comprises a battery voltage of the electronic device, and the system voltage drop is determined based on a load current of the electronic device, an instantaneous peak current of the battery, and a system impedance.
7. The method according to claim 5, wherein determining the target protection strategy corresponding to the electronic device according to the current voltage comprises: If the current voltage is greater than a first voltage threshold, determining the load to be adjusted and the load adjustment strategy corresponding to each load to be adjusted according to the load power consumption information of the electronic device, and the first voltage threshold is greater than the undervoltage threshold; The strategy of adjusting each load to be adjusted according to the corresponding load adjustment strategy and displaying undervoltage warning information to the user is determined as the target protection strategy corresponding to the electronic device.
8. The method according to claim 5, wherein the target parameter comprises a battery charge of the electronic device; The determining, based on the target parameter, whether the current voltage of the electronic device is less than or equal to a target protection voltage threshold comprises: Determining whether the battery power level is reduced to a preset first power level threshold; If yes, determine whether the current voltage of the electronic device is less than or equal to the target protection voltage threshold.
9. A processing device, comprising: A parameter acquisition module, used to obtain target parameters of the battery; An alarm information sending module is used to send target alarm information to a target hardware module if the target parameter meets the state transition condition; wherein the target alarm information is used to synchronize the electronic device to the target hardware module to transition from a first sub-state to a second sub-state, so that the target hardware module transitions from a first operating state to a second operating state; the probability of the electronic device transitioning from the first sub-state to the second state is lower than the probability of the electronic device transitioning from the second sub-state to the second state; when the electronic device is in the second state, system environment data will not be saved in the hardware device, and the operating system is in a closed state.
10. An electronic device, characterized in that: include: Battery; at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions are executed by the at least one processor, and the at least one processor is used to obtain target parameters of the battery, and if the target parameters meet the state transition condition, send target alarm information to the target hardware module; wherein the target alarm information is used to synchronize the electronic device to the target hardware module to transition from a first sub-state to a second sub-state, so that the target hardware module transitions from a first operating state to a second operating state; the probability that the electronic device transitions from the first sub-state to the second state is lower than the probability that the electronic device transitions from the second sub-state to the second state; when the electronic device is in the second state, system environment data will not be saved to the hardware device, and the operating system is in a closed state; Target hardware module.