CN112350406B - Electronic device and control method thereof - Google Patents

Electronic device and control method thereof Download PDF

Info

Publication number
CN112350406B
CN112350406B CN202011228823.1A CN202011228823A CN112350406B CN 112350406 B CN112350406 B CN 112350406B CN 202011228823 A CN202011228823 A CN 202011228823A CN 112350406 B CN112350406 B CN 112350406B
Authority
CN
China
Prior art keywords
current value
target
electronic device
value
power supply
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011228823.1A
Other languages
Chinese (zh)
Other versions
CN112350406A (en
Inventor
张鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN202011228823.1A priority Critical patent/CN112350406B/en
Publication of CN112350406A publication Critical patent/CN112350406A/en
Application granted granted Critical
Publication of CN112350406B publication Critical patent/CN112350406B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/18Telephone sets specially adapted for use in ships, mines, or other places exposed to adverse environment
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Chemical & Material Sciences (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Electrochemistry (AREA)
  • General Chemical & Material Sciences (AREA)
  • Power Engineering (AREA)
  • Signal Processing (AREA)
  • Power Sources (AREA)

Abstract

The application discloses an electronic device and a control method thereof, and belongs to the technical field of electronics. The electronic equipment comprises a power supply unit and a processor; the processor is configured to: after receiving a to-be-executed instruction of a target operation, determining an initial current value of a power supply unit, wherein the initial current value is a value of current output by the power supply unit; determining a target current value corresponding to target operation based on the over-discharge protection current value and the initial current value of the power supply unit, wherein the target current value is smaller than a target difference value between the over-discharge protection current value and the initial current value; and controlling the power supply unit to output current based on the target current value, wherein the current is used for the target operation to be executed. The application solves the problem that the use effect of the electronic equipment is poor. The method and the device are used for executing the execution target operation.

Description

Electronic device and control method thereof
Technical Field
The present disclosure relates to electronic technologies, and in particular, to an electronic device and a control method thereof.
Background
With the development of electronic technology, electronic devices such as mobile phones and computers become necessities for people to work and live. The industrial and mining environments such as coal mines, petrochemical industry and the like have more flammable and explosive substances, so the requirements on electronic equipment used in the environments are higher.
Explosion-proof mobile phones are required to be used in industrial and mining environments. The battery of the explosion-proof mobile phone has a relatively small over-discharge protection current value. When the value of the current output by the battery is larger than the over-discharge protection current value for a certain time, the anti-explosion mobile phone is automatically shut down, so that the phenomenon that the battery outputs the excessive current for a long time to cause electric sparks in the mobile phone or cause the over-high temperature of electronic elements to further cause explosion is avoided.
In the related art, when the explosion-proof mobile phone performs more operations, the value of the current required to be output by the battery is easily greater than the over-discharge protection current value, so that the explosion-proof mobile phone is easily and frequently turned off. Therefore, the explosion-proof mobile phone has poor use effect.
Disclosure of Invention
The application provides electronic equipment and a control method thereof, which can solve the problem of poor using effect of the electronic equipment. The technical scheme is as follows:
in one aspect, an electronic device is provided, and the electronic device includes: a power supply unit and a processor; the processor is configured to:
after receiving a to-be-executed instruction of a target operation, determining an initial current value of the power supply unit, wherein the initial current value is a value of current output by the power supply unit;
determining a target current value corresponding to the target operation based on an over-discharge protection current value and the initial current value of the power supply unit, wherein the target current value is smaller than a target difference value between the over-discharge protection current value and the initial current value;
controlling the power supply unit to output a current based on the target current value, the current being used for the target operation to be performed.
In another aspect, a method for controlling an electronic device is provided, and the method is used for the electronic device, and includes:
after receiving a to-be-executed instruction of a target operation, determining an initial current value of a power supply unit of the electronic equipment, wherein the initial current value is a value of current output by the power supply unit;
determining a target current value corresponding to the target operation based on an over-discharge protection current value and the initial current value of the power supply unit, wherein the target current value is smaller than a target difference value of the over-discharge protection current value and the initial current value;
controlling the power supply unit to output a current based on the target current value, the current being used for the target operation to be performed.
The beneficial effect that technical scheme that this application provided brought includes at least:
in the electronic device provided by the application, after receiving a to-be-executed instruction of a target operation, the processor can determine a proper target current value according to an initial current value of the power supply unit and an over-discharge protection current value of the power supply unit, and control the power supply unit to output current based on the target current value so as to be executed by the target operation. Therefore, on the basis of executing target operation, the value of the current output by the power supply unit is ensured not to exceed the over-discharge protection current value, the influence of frequent shutdown of the electronic equipment on the use effect is avoided, and the use effect of the electronic equipment is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a control method of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a flowchart of another control method for an electronic device according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of another electronic device provided in the embodiment of the present application;
fig. 5 is a schematic view of a usage scenario of an electronic device according to an embodiment of the present application;
FIG. 6 is a flow chart of a method for determining a target current value range provided by an embodiment of the present application;
fig. 7 is a schematic display interface diagram of an electronic device according to an embodiment of the present application;
fig. 8 is a block diagram of an electronic device according to an embodiment of the present disclosure;
fig. 9 is a block diagram of a software structure of an electronic device according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
With the development of electronic technology, the requirements for the functions of electronic devices are increasing. At present, when a plurality of functions are provided in an explosion-proof mobile phone, the current output by a battery of the explosion-proof mobile phone is too large due to the fact that operations corresponding to the plurality of functions are executed simultaneously, so that the explosion-proof mobile phone is easy to shut down, and the using effect of the explosion-proof mobile phone is further influenced. In order to avoid that the battery outputs too large current due to more operations executed by the explosion-proof mobile phone, the current explosion-proof mobile phone may be equipped with fewer necessary functions (such as functions of communication, short message sending and receiving) without being equipped with other personalized functions. For example, an explosion-proof mobile phone is not equipped with a flash lamp function, and cannot be used for taking a picture in a dark environment. The explosion-proof mobile phone has the advantages of single function and high use limitation.
The following embodiments of the present application provide an electronic device and a control method thereof, which can improve the use effect of the electronic device on the premise of ensuring that the electronic device has more functions.
The electronic equipment that this application embodiment provided includes: the power supply unit can supply power to one or more electric consumption devices in the electronic equipment so as to enable the electric consumption devices to execute corresponding operations. The consumer device comprises the processor and the power supply unit may be a battery. Optionally, the electronic device in the embodiment of the present application may be an explosion-proof mobile phone.
Fig. 1 is a flowchart of a control method of an electronic device according to an embodiment of the present application, where the method may be used in a processor in the electronic device. As shown in fig. 1, the method may include:
step 101, after receiving a command to be executed of a target operation, determining an initial current value of a power supply unit, wherein the initial current value is a value of a current output by the power supply unit.
And 102, determining a target current value corresponding to target operation based on the over-discharge protection current value of the power supply unit and the initial current value, wherein the target current value is smaller than a target difference value between the over-discharge protection current value and the initial current value.
And 103, controlling the power supply unit to output current based on the target current value, wherein the current is used for the target operation to be executed.
In summary, in the control method of the electronic device provided by the application, after receiving the to-be-executed instruction of the target operation, the processor may determine an appropriate target current value according to the initial current value of the power supply unit and the over-discharge protection current value of the power supply unit, and control the power supply unit to output current based on the target current value so as to execute the target operation. Therefore, on the basis of executing target operation, the value of the current output by the power supply unit is ensured not to exceed the over-discharge protection current value, the influence of frequent shutdown of the electronic equipment on the use effect is avoided, and the use effect of the electronic equipment is improved.
Fig. 2 is a flowchart of another control method for an electronic device according to an embodiment of the present disclosure. The method may be for a processor of an electronic device, and the method may include:
step 201, receiving a to-be-executed instruction of a target operation. Step 202 is performed.
In the embodiment of the application, the electronic device can be an explosion-proof mobile phone, and the power supply unit in the electronic device can be an explosion-proof battery. Fig. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present application, and fig. 4 is a schematic structural diagram of another electronic device provided in an embodiment of the present application, where fig. 3 shows a back view of the electronic device 10, and fig. 4 shows a front view of the electronic device 10. Referring to fig. 3 and 4, in addition to the power supply unit and the processor, the electronic device 10 may further include a display 130 (e.g., a touch display), a camera 1032, and a flash 1031. Various applications may be installed in the electronic device. Alternatively, the target operation may be any operation that the electronic device can perform, or the target operation may also be an operation that is preset in the operations that the electronic device can perform. The user can operate aiming at the electronic equipment, and when the processor detects the trigger operation of the target operation, the processor can determine that the instruction to be executed of the target operation is received, and determine that the user wants the electronic equipment to execute the target operation. Illustratively, the electronic device 10 is an explosion-proof mobile phone, and the target operation is an operation of turning on a flash.
Fig. 4 further shows a usage scenario of the electronic device, and fig. 5 is a schematic view of the usage scenario of the electronic device provided in the embodiment of the present application. With continued reference to fig. 4, a plurality of icons, such as a camera icon A1, a chat software icon A2, and other icons, may be displayed on the display screen 130 of the explosion-proof mobile phone, and when each icon is triggered, the electronic device may be triggered to start the function corresponding to the icon. If the user can operate on the display screen of the electronic device, for example, click the camera icon A1 to control the electronic device to start the photographing function, that is, to control the camera of the electronic device to capture an image. As shown in fig. 5, when the camera captures an image, the display screen may display the image captured by the camera in real time, and may also display a plurality of controls, such as a flash control B1 and a photo control B2. The user can click the flash control B1 to trigger the processor to receive a to-be-executed instruction for turning on the flash. Or when the user clicks the photographing control B2, the processor detects that the current ambient brightness is lower than the brightness threshold through the sensor in the electronic device, and determines that the instruction to be executed for turning on the flash is received.
Alternatively, the target operation may be other operations, such as an operation of adjusting the volume when the electronic device externally plays a playing sound, an operation of adjusting the backlight brightness of the electronic device from a screen-off state to a screen-on state, an operation of adjusting the Central Processing Unit (CPU) occupancy of the electronic device during a game operation, a route navigation operation, a data download operation, and the like, and the data download operation may be a data download operation based on a fourth generation mobile communication technology (4 generation wireless systems,4 g) or a fifth generation mobile communication technology (5 generation wireless systems,5 g), for example.
Step 202, determining an initial current value of the power supply unit, wherein the initial current value is an average value of the current output by the power supply unit in a target duration. Step 203 is performed.
After receiving a to-be-executed instruction of a target operation, the processor may detect a current value consumed by the current electronic device, that is, a value of current consumed by all operations currently executed in the electronic device, where the current value is a value of current output by the current power supply unit, and in this embodiment of the present application, the current value is referred to as an initial current value. Since the current consumed by each operation executed in the electronic device at different time may have a certain difference, in this embodiment of the present application, the average value of the currents output by the power supply unit in the target duration after receiving the instruction to be executed of the target operation may be determined as the initial current value. For example, the processor may monitor the value of the current output by the power supply unit for a target duration, and then determine an average value of the current output by the power supply unit for the target duration based on the detected current. Optionally, the electronic device further includes a Power Management Integrated Circuit (PMIC), and the processor may monitor the current output by the Power supply unit in real time within the target time duration through the PMIC, and further perform integration and averaging on the monitored current value within the target time duration to obtain an average value of the current output by the Power supply unit within the target time duration.
In the embodiment of the application, the target duration can be shorter, so that the user can be ensured to wait for the execution of the target operation only by spending too short time after the trigger operation of the target operation is executed, and the influence on the use effect of the electronic equipment is avoided. Alternatively, the target time duration may be less than 100 ms, for example, the target time duration may be 30 ms, or may be 20 ms or 40 ms.
The power supply unit of the electronic device may have a corresponding over-discharge protection current value, which is a maximum value of the current that the power supply unit sets that it should output. At present, explosion-proof batteries with various explosion-proof grades exist, the over-discharge protection current value of the explosion-proof batteries with different explosion-proof grades can be between 1.5 amperes and 3.0 amperes, but the actual over-discharge protection current value of different explosion-proof batteries with the same explosion-proof grade has fluctuation difference, so that the accurate over-discharge protection current value of each explosion-proof battery needs to be actually detected. For example, the power supply units in the electronic device each have an Identity (ID) thereof, for example, a two-dimensional code uniquely identifying the power supply unit is attached to each power supply unit, and the two-dimensional code is the ID of the power supply unit. After the power supply units are produced by manufacturers of the power supply units, workers can use test equipment or tools to test the over-discharge protection current value of each power supply unit, and the two-dimensional code of each power supply unit and the corresponding over-discharge protection current value are stored in a database. Then, when the power supply unit of the electronic device is assembled with the circuit board in a production line, a worker can scan the two-dimensional code attached to the power supply unit to obtain an over-discharge protection current value corresponding to the two-dimensional code in a database, and burn the over-discharge protection current value into an appointed storage position in the electronic device, such as a specified storage position in a flash memory of the electronic device. When the processor needs to use the over-discharge protection current value of the power supply unit in the data processing process, the processor can acquire the over-discharge protection current value at the specified storage position. In the embodiment of the present application, the over-discharge protection current value corresponding to the power supply unit may range from 2.1 amperes to 2.6 amperes, and for example, the over-discharge protection current value is 2.4 amperes.
Step 203, obtaining a plurality of current value ranges and a plurality of auxiliary current values corresponding to the plurality of current value ranges one to one. Step 204 is performed.
The sum of the maximum value in each current value range in the plurality of current value ranges and the auxiliary current value corresponding to each current value range can be smaller than the over-discharge protection current value of the power supply unit. Optionally, a maximum value in each current value range, a sum of the auxiliary current value corresponding to the current value range and the first reference value is equal to the over-discharge protection current value. Illustratively, the first reference value may be 200 milliamps.
In the embodiment of the present application, when the value of the current output by the power supply unit is not within the multiple current value ranges, for example, exceeds a maximum value in the multiple current value ranges, it may indicate that the current output by the power supply unit is large, and cannot support concurrent execution of other operations any more. When the value of the current output by the power supply unit of the electronic device is within the plurality of current values, it may be indicated that the current output by the power supply unit is small, and concurrent execution of other operations may also be supported. The auxiliary current value for each current value range may be: when the current value output by the power supply unit is within the current value range, the power consumption current of other executed operations can be supported.
It should be noted that, when an operation in an electronic device is actually performed, the value of the current consumed to perform the operation is prone to fluctuate, for example, when the electronic device performs an operation of downloading data, if the current packet data amount is small, the consumed current is small, and if the current packet data amount is large, the consumed current is large. When the flash lamp is driven to emit light, the current output by the power supply unit is converted to a certain value in the process of inputting the current to the flash lamp, wherein the current conversion efficiency is certain, so that the actually increased consumption current of the electronic device due to the flash lamp being turned on is larger than the set current value required to be consumed for turning on the flash lamp. Therefore, the consumed current at the actual execution of the operation in the electronic device may be different from the pre-calculated consumed current. In the embodiment of the present application, a sum of a maximum value in each current value range and an auxiliary current value corresponding to the current value range is smaller than the over-discharge protection current value, that is, a certain current value which can be consumed in excess is reserved for the power supply unit to cope with current change in actual operation execution, and the first reference value (e.g., 200 ma) in the above example is a minimum value of the current which can be consumed in excess. Therefore, the situation that the value of the current actually output by the power supply unit exceeds the over-discharge protection current value can be avoided when the target operation of the new concurrent execution is added, and the use safety of the electronic equipment is improved.
In the embodiment of the present application, the current values in the plurality of current value ranges may sequentially increase, the current values in any two current value ranges in the plurality of current value ranges may be different, and the plurality of current value ranges may cover all current values in a continuous range. If the minimum current value in the latter current value range is greater than the maximum current value in the former current value range, that is, the minimum critical value in the latter current value range is equal to the maximum critical value in the former current value range. Illustratively, the plurality of current value ranges include three current value ranges, which are a first current value range, a second current value range and a third current value range, respectively, the first current value range is (0,T-800 ], the second current value range is (T-800, T-600), and the third current value range is (T-600, T-400), wherein T refers to an over-discharge protection current value of the power supply unit, and the unit milliampere of the current value in each current value range is milliampere.
The embodiment of the present application is explained by taking an example that the plurality of current value ranges include three current value ranges, the interval length corresponding to each current value range is 200 milliamperes, and the first reference value is 200 milliamperes. Optionally, the number of the plurality of current value ranges may also be four, five, or even more, the length of the interval corresponding to the current value range may also be 100 milliamperes or 50 milliamperes, or other values, the length of the interval corresponding to each current value range may also be different, and the first reference value may also be 100 milliamperes, 300 milliamperes, or other current values, which is not limited in this embodiment of the present application.
It should be noted that, the plurality of current value ranges and the plurality of auxiliary current values corresponding to the plurality of current value ranges one to one may be preset by a worker at a designated position stored in a storage unit of the electronic device when the electronic device is shipped, and the processor may obtain the plurality of current value ranges and the plurality of auxiliary current values corresponding to the plurality of current value ranges one to one at the designated position. Or the plurality of current value ranges can be set by the user, or the plurality of current value ranges preset in the electronic equipment are changed, so that the use flexibility and the intelligence of the electronic equipment are improved.
Step 204, determining whether the initial current value is less than or equal to a second reference value, where the second reference value is a maximum value in the plurality of current value ranges. When the initial current value is less than or equal to the second reference value, step 205 is executed; when the initial current value is greater than the second reference value, step 208 is performed.
In this embodiment, the processor may determine the second reference value based on the obtained plurality of current value ranges, for example, the second reference value may be a maximum current value in the plurality of current value ranges, that is, a maximum current value in a current value range with a maximum current value. Illustratively, for the three current value ranges exemplified in step 203, the second reference value is (T-400) ma, i.e., the maximum current value in the third current value range, where T is the over-discharge protection current value of the power supply unit.
In an embodiment of the application, the processor may determine whether the initial current value is within the plurality of current value ranges by determining whether the initial current value is less than or equal to a second reference value. When the initial current value is less than or equal to the second reference value, the processor may determine that the initial current value is within the plurality of current value ranges, and then continue to determine a target current value range in which the initial current value is located among the plurality of current value ranges. When the initial current value is greater than the second reference value, the processor may determine that the initial current value is not within the plurality of current value ranges, and may perform a corresponding treatment action.
For example, assuming that the over-discharge protection current value of the power supply unit of the electronic device is 2400 ma, the first reference value is 200 ma, the first current value range is (0, 1600), the second current value range is (1600, 1800), and the third current value range is (1800, 2000).
Optionally, in this embodiment of the application, it may also be determined whether the initial current value is less than or equal to the second reference value by determining whether a target difference between the over-discharge protection current value and the initial current value is greater than or equal to a reference difference. If the reference difference is the difference between the over-discharge protection current value and the second reference value, if the reference difference is 400 milliamperes.
Step 205, determining a target current value range in which the initial current value is located in the plurality of current value ranges. Step 206 is performed.
In this embodiment, the processor may sequentially compare the initial current value with the maximum value in each current value range to determine a target current value range in which the initial current value is located. Fig. 6 illustrates a manner of determining the target current value range by taking the plurality of current value ranges, the first reference value, the second reference value, and the auxiliary current value corresponding to each current value range as examples in step 203 and step 204. As shown in fig. 6, step 205 may include:
step 2051 determines whether the initial current value is less than or equal to the maximum value in the second current value range. When the initial current value is less than or equal to the maximum value in the second current value range, step 2053 is performed; when the initial current value is greater than the maximum value in the second current value range, step 2052 is performed.
And step 2052, determining that the target current value range where the initial current value is located is a third current value range.
In the embodiment of the present application, the maximum threshold value in the second current value range is equal to the minimum threshold value in the third current value range, and step 205 is based on the processor determining that the initial current value is less than or equal to the maximum value in the third current value range in step 204. Therefore, if it is determined in step 2051 that the initial current value is greater than the maximum value in the second current value range, that is, the initial current value is greater than the minimum threshold value in the third difference range and less than or equal to the maximum threshold value in the third difference range, the processor may execute step 2053 to determine that the initial current value is within the third current value range.
Step 2053 determines whether the initial current value is less than or equal to the maximum value in the first current value range. When the initial current value is less than or equal to the maximum value in the first current value range, step 2054 is performed; when the initial current value is greater than the maximum value in the first current value range, step 2055 is performed.
In the embodiment of the present application, the maximum threshold value in the second current value range is equal to the minimum threshold value in the third current value range, and step 205 is based on the processor determining that the initial current value is less than or equal to the maximum value in the third current value range in step 204. Therefore, if it is determined in step 2051 that the initial current value is smaller than or equal to the maximum value in the second current value range, that is, the initial current value is smaller than the minimum critical value in the third difference range, and therefore the initial current value is not within the third current value range, the processor may further perform step 2052 to continuously determine to determine the current value range where the initial current value is located. The processor may further determine whether the initial current value is within the second current value range in a manner similar to step 2051.
And step 2054, determining the target current value range where the initial current value is located as a first current value range.
In the embodiment of the present application, the maximum critical value in the first current value range is equal to the minimum critical value in the second current value range, and the first current value range includes all values smaller than or equal to the maximum value in the first current value range. If it is determined in step 2053 that the initial current value is less than or equal to the maximum value in the first current value range, the processor may determine that the initial current value is within the first current value range.
And step 2055, determining the target current value range in which the initial current value is located as a second current value range.
In the present embodiment, the maximum threshold value in the first current value range is equal to the minimum threshold value in the second current value range, and step 2053 is based on the initial current value in step 2051 being less than or equal to the maximum value in the second current value range. If it is determined in step 2053 that the initial current value is greater than the maximum value of the first current value range, that is, the initial current value is less than or equal to the maximum value of the second difference range and greater than the minimum threshold value of the second difference range, the processor may execute step 2055 to determine that the initial current value is within the second current value range.
For example, if the initial current value determined by the processor at step 202 is 1900 ma, then the processor may determine that the initial current value is greater than the maximum value of the second current value range (i.e., 1800 ma) at step 2051 and then execute step 2052 to determine a third current value range as the target current value range. If the initial current value determined by the processor at step 202 is 1700 milliamps, then at step 2051 the processor may determine that the initial current value is less than a maximum value within a second current value range (i.e., 1800 milliamps), then perform step 2053 to determine that the initial current value is greater than a maximum value within a first current value range (i.e., 1600 milliamps), and then perform step 2055 to determine the second current value range as the target current value range. If the initial current value determined by the processor at step 202 is 1500 milliamps, then at step 2051 the processor may determine that the initial current value is less than a maximum value within a second current value range (i.e., 1800 milliamps), then perform step 2053 to determine that the initial current value is less than a maximum value within a first current value range (i.e., 1600 milliamps), and then perform step 2054 to determine the first current value range as the target current value range.
And step 206, determining the auxiliary current value corresponding to the target current value range as a target current value corresponding to the target operation. Step 207 is performed.
In the embodiment of the application, the auxiliary current value corresponding to the target current value range is a value of the power consumption current of the power supply unit which can currently support the concurrent execution operation, so that the processor can determine the auxiliary current value corresponding to the target current value range as the target current value corresponding to the target operation, that is, the value of the current consumed by the execution of the target operation.
Illustratively, the first range of current values (0, 1600) corresponds to an auxiliary current value of 600 milliamps, the second range of current values (1600, 1800) corresponds to an auxiliary current value of 400 milliamps, and the third range of current values (1800, 2000) corresponds to an auxiliary current value of 200 milliamps. If the initial current value determined in step 202 is 1900 milliamps, then the processor may determine the third range of current values as the target range of current values and then determine the target current value as 200 milliamps. If the initial current value determined by the processor in step 202 is 1700 milliamps, then the processor may determine the second range of current values as the target range of current values and then determine the target current value as 400 milliamps in step 205. If the initial current value determined by the processor in step 202 is 1500 milliamps, then the processor may determine the first range of current values as the target range of current values and then determine the target current value as 600 milliamps in step 205.
In the above embodiments of the present application, a manner of determining the target current value by using a plurality of current value ranges and the auxiliary current value corresponding to each current value range is taken as an example, and optionally, the target current value may be determined by other manners. In an optional determination manner, a plurality of difference value ranges of the current may also be set, each difference value range corresponds to an auxiliary current value, and the target current value corresponding to the target operation is determined from the auxiliary current value corresponding to the target difference value range by determining the target difference value range in which the target difference value is located. In another alternative determination, the processor may determine the target current value based on the target difference value when the difference value between the target difference value and the first reference value is greater than zero, where the target difference value is a difference value between the over-discharge protection current value of the power supply unit and the initial current value. If the processor can directly determine the target difference as the target current value, the above steps 203 to 206 can be replaced by: the processor determines a target difference value between the over-discharge protection current value and the initial current value as a target current value. Alternatively, the processor may also determine the difference between the target difference and the first reference value as the target current value, and in this case, steps 203 to 206 may be replaced with: the processor determines a difference value between the target difference value and the first reference value as a target current value, wherein the target difference value is a difference value between the over-discharge protection current value and the initial current value.
And step 207, controlling the power supply unit to output current based on the target current value, wherein the current is used for the target operation to be executed.
The processor, after determining a target current value corresponding to a target operation, may control the power supply unit to output a current having a total value equal to the target current value to each power consuming device that performs the target operation, and control each power consuming device to perform the target operation.
For example, the target operation in the embodiment of the present application is an operation of turning on a flash. If the processor determines that the initial current value of the power supply unit is within the first current value range, the target current value may be an auxiliary current value corresponding to the first current value range, that is, 200 milliamperes, and the processor may control the power supply unit to apply 200 milliamperes to the flash lamp, so that the flash lamp emits light. If the processor determines that the initial current value of the power supply unit is within the second current value range, the target current value may be an auxiliary current value corresponding to the second current value range, that is, 400 milliamperes, and the processor may control the power supply unit to apply 400 milliamperes to the flash lamp, so that the flash lamp emits light. If the processor determines that the initial current value of the power supply unit is within the third current value range, the target current value may be an auxiliary current value corresponding to the third current value range, that is, 600 milliamperes, and the processor may control the power supply unit to apply 600 milliamperes of current, so as to provide light emission for the flash lamp.
And step 208, judging whether the initial current value is determined to be larger than the second reference value for the first time. Upon first determining that the initial current value is greater than the second reference value, performing step 209; upon a second determination that the initial current value is greater than the second reference value, step 210 is performed.
When the processor receives a to-be-executed instruction of a target operation and determines that the initial current value of the power supply unit in the target time length is larger than the second reference value, namely when the electronic equipment is determined to be not suitable for executing the target operation at present, whether the judgment process of the initial current value is the first judgment after the to-be-executed instruction of the target operation is received can be judged. Further, it may be determined whether to adjust an operation being performed in the electronic apparatus to perform the target operation or to prohibit the target operation from being performed, based on the determination result. If the judgment process is determined to belong to the first judgment, the operation being executed in the electronic equipment can be adjusted to execute the target operation; when it is determined that the determination process does not belong to the first determination, it may be determined that the operation being performed in the electronic device has been adjusted, but the electronic device is still not suitable for performing the target operation, and thus, the target operation may be prohibited from being performed.
Step 209 stops executing the auxiliary operations being executed in the electronic device. Step 202 is performed.
It should be noted that the power consumption current value of the power supply unit in the electronic device is positively correlated with the number of concurrent operations performed in the electronic device. In the embodiment of the application, when the processor determines that the instruction to be executed of the target operation is received and determines that the electronic device is not suitable for executing the target operation for the first time, the processor may stop executing the auxiliary operation in the operation being executed in the electronic device, reduce the operation being executed in the electronic device, and reduce the power consumption current of the operation being executed in the electronic device, so that the electronic device may be suitable for executing the target operation as much as possible.
For example, the auxiliary operation may satisfy at least one of the following conditions: the secondary operation includes an operation that starts earliest in time among operations being performed in the electronic device, the secondary operation includes an operation that occupies the most processing resources among the operations being performed in the electronic device, and the secondary operation includes an operation that has a priority lower than a priority threshold among the operations being performed in the electronic device. The priority of the operation can be related to the requirement degree of the user and the basic function of the electronic device, for example, the higher the requirement degree of the user for a certain operation is, the higher the association degree of the operation with the basic function of the electronic device is, the higher the priority of the operation is. For example, the secondary operations may include operations that are being executed in the electronic device that are initiated most recently and that occupy the most recent amount of processing resources. Optionally, the secondary operation may include an operation that occupies more processing resources than a threshold amount of resources. Since the user generally has a smaller demand for operations with an earlier start time and a smaller demand for operation users with a lower priority, these operations can be stopped as auxiliary operations, avoiding an influence on the use effect of the user. The processing resources of the electronic equipment can be quickly released after the operation with larger occupied processing resources is stopped, the consumption of the current output by the power supply unit is quickly reduced, and the probability of adjusting the electronic equipment to be in a state suitable for executing the target operation can be improved by taking the operation as the auxiliary operation to stop executing.
And step 210, controlling a display screen of the electronic equipment to display prompt information for prohibiting executing the target operation.
For example, after the processor adjusts the operation being executed in the electronic device once, if it is determined that the electronic device is still not suitable for executing the target operation, the processor may prohibit the execution of the target operation and prompt the user that the current state of the electronic device is not suitable for executing the target operation. For example, the processor may control the display screen of the electronic device to display a prompt message for prohibiting the execution of the target operation, and the user may know that the target operation cannot be executed after seeing the prompt message, thereby avoiding a situation that the user continuously waits for the execution of the target operation. For example, fig. 7 is a schematic display interface diagram of an electronic device according to an embodiment of the present application. As shown in fig. 7, the display 130 of the electronic device 10 may display a prompt message X, where the prompt message may be "power consumption of the current mobile phone is large, the flash is prohibited from being turned on, and the mobile phone may try again later". Optionally, when the display screen displays the prompt information, a confirmation control B3 and an information closing control B4 may also be displayed, and when the user sees the prompt information, the user may click the confirmation control B3 or the information closing control B4 to trigger the display screen to stop displaying the prompt information, or the prompt information may automatically stop displaying after displaying for a certain period of time.
It should be noted that, in the related art, an explosion-proof mobile phone generally does not have a flash lamp, or has a flash lamp but can apply a small current to the flash lamp, and the brightness of the flash lamp is too small; and then the shooting effect of the explosion-proof mobile phone is poor, and the using effect is poor. In the embodiment of the application, the explosion-proof mobile phone can comprise a flash lamp, and when a user needs to turn on the flash lamp, the processor can determine a proper target current value based on the current value output by the explosion-proof battery in the explosion-proof mobile phone so as to flexibly adjust the current consumed by the flash lamp for emitting light. And then can guarantee to light up the shooting environment when explosion-proof cell-phone is shot, improve the photographic effect of explosion-proof cell-phone, and can guarantee that the value of the electric current of explosion-proof battery output does not surpass the protection current value of putting excessively, guarantee the normal result of use of explosion-proof cell-phone, guarantee the explosion-proof performance of explosion-proof cell-phone.
In summary, in the control method of the electronic device provided by the application, after receiving the to-be-executed instruction of the target operation, the processor may determine an appropriate target current value according to the initial current value of the power supply unit and the over-discharge protection current value of the power supply unit, and control the power supply unit to output current based on the target current value so as to execute the target operation. Therefore, on the basis of executing target operation, the value of the current output by the power supply unit is ensured not to exceed the over-discharge protection current value, the influence of frequent shutdown of the electronic equipment on the use effect is avoided, and the use effect of the electronic equipment is improved.
Fig. 8 is a block diagram of an electronic device according to an embodiment of the present application. As shown in fig. 8, the electronic device 10 may include: a power supply unit 190 and a processor 1101. Wherein, the power supply unit corresponds to an over-discharge protection current value; the processor 1101 is configured to: after receiving a to-be-executed instruction of a target operation, determining an initial current value of a power supply unit, wherein the initial current value is a value of current output by the power supply unit; determining a target current value corresponding to target operation based on the over-discharge protection current value and the initial current value of the power supply unit, wherein the target current value is smaller than a target difference value between the over-discharge protection current value and the initial current value; and controlling the power supply unit to output current based on the target current value, wherein the current is used for the target operation to be executed.
Optionally, the processor 1101 is further configured to: and when the difference value of the target difference value and the first reference value is larger than zero, determining the difference value of the target difference value and the first reference value as a target current value.
Optionally, the processor 1101 is further configured to:
acquiring a plurality of current value ranges and a plurality of auxiliary current values corresponding to the current value ranges one by one, wherein the sum of the maximum value in each current value range in the current value ranges and the auxiliary current value corresponding to each current value range is less than the over-discharge protection current value;
when the initial current value is within a target current value range of the plurality of current value ranges, an auxiliary current value corresponding to the target current value range is determined as a target current value.
Optionally, a maximum value in each current value range, a sum of the auxiliary current value corresponding to each current value range and the first reference value is equal to the over-discharge protection current value.
Optionally, the processor 1101 is further configured to:
and when the initial current value is smaller than or equal to a second reference value, determining a target current value corresponding to the target operation based on the over-discharge protection current value and the initial current value.
Optionally, the processor 1101 is further configured to:
when a to-be-executed instruction of a target operation is received and the target difference value is determined to be larger than the second reference value for the first time, stopping executing the auxiliary operation being executed in the electronic equipment;
determining an initial current value of the power supply unit;
when the initial current value is smaller than or equal to a second reference value, determining a target current value corresponding to target operation based on the over-discharge protection current value and the initial current value;
the control power supply unit outputs a current based on the target current value.
Optionally, the secondary operation satisfies at least one of the following conditions:
the auxiliary operation includes an operation with the earliest start time among operations being performed in the electronic device,
the secondary operations include operations that occupy the most processing resources among the operations being performed in the electronic device,
and the secondary operation comprises an operation of which the priority is lower than a priority threshold among the operations being performed in the electronic device.
Optionally, the electronic device further comprises: a display unit 130, the display unit 130 may include a display screen. The processor 1101 is further configured to:
and when the instruction to be executed of the target operation is received and the initial current value is determined to be larger than the second reference value for the second time, controlling the display screen to display prompt information for prohibiting the target operation from being executed.
Optionally, the electronic device further includes a light emitting part 1301, where the light emitting part 1301 may be a flash, and the target operation is an operation to turn on the flash; and/or the electronic equipment is an explosion-proof mobile phone.
To sum up, in the electronic device provided by the application, after receiving a to-be-executed instruction of a target operation, the processor may determine an appropriate target current value according to an initial current value of the power supply unit and an over-discharge protection current value of the power supply unit, and control the power supply unit to output a current based on the target current value so as to execute the target operation. Therefore, on the basis of executing target operation, the value of the current output by the power supply unit is ensured not to exceed the over-discharge protection current value, the influence of frequent shutdown of the electronic equipment on the use effect is avoided, and the use effect of the electronic equipment is improved.
With continued reference to fig. 8, the electronic device 10 may further include: radio Frequency (RF) circuit 150, audio circuit 160, wireless fidelity (Wi-Fi) module 170, bluetooth module 180, power unit 190, light emitting component 1031, camera 1032, processor 1101, and the like. Optionally, the electronic device may further include a power management integrated circuit through which the processor may be connected with the power supply unit.
Camera 1032 may be used, among other things, to capture still pictures or video. The object generates an optical picture through the lens and projects the optical picture to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensitive elements convert the light signals into electrical signals which are then passed to the processor 1101 for conversion into digital picture signals.
The processor 1101 is a control center of the electronic device 10, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device 10 and processes data by running or executing software programs stored in the memory 140 and calling data stored in the memory 140. In some embodiments, processor 1101 may include one or more processing units; the processor 1101 may also integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a baseband processor, which mainly handles wireless communications. It will be appreciated that the baseband processor described above may not be integrated into the processor 1101. In this application, the processor 1101 may run an operating system and an application program, may control a user interface to display, and may implement the control method of the electronic device provided in this application embodiment. Additionally, processor 1101 is coupled to input unit and display unit 130.
The display unit 130 may be used to receive input numeric or character information and generate signal inputs related to user settings and function control of the mobile electronic device 110, and optionally, the display unit 130 may also be used to display information input by or provided to the user and a Graphical User Interface (GUI) of various menus of the mobile electronic device 110. The display unit 130 may include a display screen 131 disposed on the front of the mobile electronic device 110. The display screen 131 may be configured in the form of a liquid crystal display, a light emitting diode, or the like. The display unit 130 may be used to display various graphical user interfaces of the electronic device. The display unit 130 may include: the display screen is a touch display screen.
Memory 140 may be used to store software programs and data. The processor 1101 executes various functions and data processing of the electronic device 10 by executing software programs or data stored in the memory 140. The memory 140 may include high-speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. The memory 140 stores an operating system that enables the electronic device 10 to operate. The memory 140 may store an operating system and various application programs, and may also store codes for executing the control method of the electronic device provided in the embodiments of the present application.
The RF circuit 150 may be used for receiving and transmitting signals during information transmission and reception or during a call, and may receive downlink data of a base station and then deliver the received downlink data to the processor 1101 for processing; the uplink data may be transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
The audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and the electronic device 10. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161. The electronic device 10 may also be configured with a volume button for adjusting the volume of the sound signal. On the other hand, the microphone 162 converts the collected sound signals into electrical signals, which are received by the audio circuit 160 and converted into audio data, which are then output to the RF circuit 150 for transmission to, for example, another electronic device, or output to the memory 140 for further processing. In this application, the microphone 162 may capture the voice of the user.
Wi-Fi is a short-range wireless transmission technology, and the electronic device 10 can help a user send and receive e-mails, browse webpages, access streaming media and the like through the Wi-Fi module 170, and provides wireless broadband Internet access for the user.
And the Bluetooth module 180 is used for performing information interaction with other Bluetooth devices with Bluetooth modules through a Bluetooth protocol. For example, the electronic device 10 may establish a bluetooth connection with a wearable electronic device (e.g., a smart watch) also equipped with a bluetooth module via the bluetooth module 180 for data interaction.
The electronic device 10 also includes a power supply unit 190 (such as a battery) that powers the various components. The power supply may be logically coupled to the processor 1101 through a power management system to manage charging, discharging, and power consumption functions through the power management system. The electronic device 10 may also be configured with power buttons for powering the electronic device on and off, and for locking the screen.
The electronic device 10 may include at least one sensor 1110, such as a motion sensor 11101, a distance sensor 11102, a fingerprint sensor 11103, and a temperature sensor 11104. The electronic device 10 may also be configured with other sensors such as gyroscopes, barometers, hygrometers, thermometers, and infrared sensors.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the electronic device and each device described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Fig. 9 is a block diagram of a software structure of an electronic device according to an embodiment of the present application. The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the android system is divided into four layers, an application layer, an application framework layer, an android runtime (android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages. As shown in fig. 9, the application package may include applications such as camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc. The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 9, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, pictures, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide communication functions for the electronic device 10. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, text information is prompted in the status bar, a prompt tone is given, the communication terminal vibrates, and an indicator light flashes.
The android runtime comprises a core library and a virtual machine. The android runtime is responsible for scheduling and managing the android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), media libraries (media libraries), three-dimensional graphics processing libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still picture files, among others. The media library may support a variety of audio-video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, picture rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
Embodiments of the present application further provide a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are executed on a computer, the instructions cause the computer to execute the method for controlling an electronic device, such as the method shown in fig. 1, fig. 2, or fig. 6, provided by the foregoing embodiments.
Embodiments of the present application further provide a computer program product containing instructions, which, when run on a computer, cause the computer to execute the method for controlling an electronic device, such as the method shown in fig. 1, fig. 2, or fig. 6, provided by the foregoing method embodiments.
It should be noted that, the method embodiments provided in the embodiments of the present application can be mutually referred to corresponding apparatus embodiments, and the embodiments of the present application do not limit this. The sequence of the steps of the method embodiments provided in the embodiments of the present application can be appropriately adjusted, and the steps can be correspondingly increased or decreased according to the situation, and any method that can be easily conceived by those skilled in the art within the technical scope disclosed in the present application shall be covered by the protection scope of the present application, and therefore, the details are not repeated.
The term "and/or" in this application is only one kind of association relationship describing the associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter associated objects are in an "or" relationship. The term "at least one of a and B" in the present application is only one kind of association relationship describing an associated object, and means that three kinds of relationships may exist, for example, at least one of a and B may mean: a exists alone, A and B exist simultaneously, and B exists alone. The term "plurality" in this application means "two or more".
It should be understood that the terms "first," "second," "third," and the like in the description and in the claims of the present application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used are interchangeable under appropriate circumstances and can be implemented in sequences other than those illustrated or otherwise described herein with respect to the embodiments of the application, for example. Furthermore, the terms "comprises" and "comprising," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a product or device that comprises a list of elements is not necessarily limited to those elements explicitly listed, but may include other elements not expressly listed or inherent to such product or device.
The above description is only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (9)

1. An electronic device, characterized in that the electronic device comprises: a power supply unit and a processor; the processor is configured to:
after receiving a to-be-executed instruction of a target operation, determining an initial current value of the power supply unit, wherein the initial current value is a value of current output by the power supply unit;
acquiring a plurality of current value ranges and a plurality of auxiliary current values corresponding to the plurality of current value ranges one to one, wherein the sum of the maximum value in each current value range in the plurality of current value ranges and the auxiliary current value corresponding to each current value range is less than the over-discharge protection current value of the power supply unit;
determining a target current value corresponding to the target operation based on the over-discharge protection current value and the initial current value, wherein the target current value is smaller than a target difference value of the over-discharge protection current value and the initial current value; determining the auxiliary current value corresponding to a target current value range of the plurality of current value ranges as the target current value when the initial current value is within the target current value range;
controlling the power supply unit to output a current based on the target current value, the current being used for the target operation to be performed.
2. The electronic device of claim 1, wherein the processor is further configured to:
determining the difference between the target difference and the first reference value as the target current value when the difference between the target difference and the first reference value is greater than zero.
3. The electronic device of claim 1, wherein a maximum value of each of the current value ranges, a sum of the auxiliary current value corresponding to each of the current value ranges and a first reference value is equal to the over-discharge protection current value.
4. The electronic device of any of claims 1-3, wherein the processor is further configured to:
and when the initial current value is smaller than or equal to a second reference value, determining a target current value corresponding to the target operation based on the over-discharge protection current value and the initial current value.
5. The electronic device of claim 4, wherein the processor is further configured to:
when receiving an instruction to be executed of the target operation and determining that the initial current value is larger than the second reference value for the first time, stopping executing the auxiliary operation being executed in the electronic equipment;
determining an initial current value of the power supply unit;
when the initial current value is smaller than or equal to the second reference value, determining a target current value corresponding to the target operation based on the over-discharge protection current value and the initial current value;
controlling the power supply unit to output a current based on the target current value.
6. The electronic device of claim 5, wherein the secondary operation satisfies at least one of the following conditions:
the secondary operation includes an operation with the earliest start time among operations being performed in the electronic device,
the secondary operations include operations that occupy the most processing resources among the operations being performed in the electronic device,
and the auxiliary operation comprises an operation of which the priority is lower than a priority threshold value in the operations being executed in the electronic equipment.
7. The electronic device of claim 5 or 6, further comprising: a display screen;
the processor is further configured to:
and when receiving a command to be executed of the target operation and determining that the initial current value is greater than the second reference value for the second time, controlling the display screen to display prompt information for prohibiting the target operation from being executed.
8. The electronic apparatus according to any one of claims 1 to 3, characterized in that the electronic apparatus further includes a flash, and the target operation is an operation of turning on the flash; and/or the electronic equipment is an explosion-proof mobile phone.
9. A method of controlling an electronic device, the method being for an electronic device, the method comprising:
after receiving a to-be-executed instruction of a target operation, determining an initial current value of a power supply unit of the electronic equipment, wherein the initial current value is a value of current output by the power supply unit;
acquiring a plurality of current value ranges and a plurality of auxiliary current values corresponding to the current value ranges one by one, wherein the sum of the maximum value in each current value range in the current value ranges and the auxiliary current value corresponding to each current value range is less than the over-discharge protection current value of the power supply unit;
determining a target current value corresponding to the target operation based on the over-discharge protection current value and the initial current value, wherein the target current value is smaller than a target difference value between the over-discharge protection current value and the initial current value; determining the auxiliary current value corresponding to a target current value range of the plurality of current value ranges as the target current value when the initial current value is within the target current value range;
controlling the power supply unit to output a current based on the target current value, the current being used for the target operation to be performed.
CN202011228823.1A 2020-11-06 2020-11-06 Electronic device and control method thereof Active CN112350406B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011228823.1A CN112350406B (en) 2020-11-06 2020-11-06 Electronic device and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011228823.1A CN112350406B (en) 2020-11-06 2020-11-06 Electronic device and control method thereof

Publications (2)

Publication Number Publication Date
CN112350406A CN112350406A (en) 2021-02-09
CN112350406B true CN112350406B (en) 2022-12-06

Family

ID=74428375

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011228823.1A Active CN112350406B (en) 2020-11-06 2020-11-06 Electronic device and control method thereof

Country Status (1)

Country Link
CN (1) CN112350406B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114968378A (en) * 2021-02-23 2022-08-30 广州视源电子科技股份有限公司 Control method, device, equipment and storage medium
CN113048619B (en) * 2021-04-25 2022-03-01 珠海格力电器股份有限公司 Air purifier control method, storage medium and air purifier

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110442222A (en) * 2019-07-08 2019-11-12 新华三技术有限公司成都分公司 Hard disk electrification control method and device
CN111375493A (en) * 2020-03-25 2020-07-07 珠海格力电器股份有限公司 Power supply control method and device, storage medium, ion generator and purifier

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110442222A (en) * 2019-07-08 2019-11-12 新华三技术有限公司成都分公司 Hard disk electrification control method and device
CN111375493A (en) * 2020-03-25 2020-07-07 珠海格力电器股份有限公司 Power supply control method and device, storage medium, ion generator and purifier

Also Published As

Publication number Publication date
CN112350406A (en) 2021-02-09

Similar Documents

Publication Publication Date Title
CN112350406B (en) Electronic device and control method thereof
CN112114733B (en) Screen capturing and recording method, mobile terminal and computer storage medium
CN110865837A (en) Method and terminal for upgrading system
CN113419452A (en) Vehicle, control method thereof and mobile terminal
CN111857531A (en) Mobile terminal and file display method thereof
CN111935353B (en) Mobile terminal and short message display method thereof
CN113055585B (en) Thumbnail display method of shooting interface and mobile terminal
CN111158735B (en) Hot patch file processing method and communication terminal
CN112000932A (en) Mobile terminal and application control method thereof
CN112764812B (en) Electronic device and control method thereof
CN112992082B (en) Electronic equipment and refreshing method of electronic ink screen thereof
CN112351144A (en) Mobile terminal and state prompting method thereof
CN113838437A (en) Method, terminal device and medium for adjusting screen brightness
CN112004006A (en) Mobile medical terminal and brightness adjusting method thereof
CN113254132A (en) Application display method and related device
US10469654B2 (en) Electronic device, prompting method and related product
CN112954622A (en) Mobile terminal and short message sending method thereof
CN113760164A (en) Display device and response method of control operation thereof
CN112578988A (en) Mobile terminal and updating method of display interface thereof
CN113285500B (en) Mobile terminal and charging method thereof
CN111159734A (en) Communication terminal and multi-application data inter-access processing method
CN111756103B (en) Mobile terminal and charging method thereof
CN111913772A (en) Terminal and desktop display method
CN111142648B (en) Data processing method and intelligent terminal
CN112000411B (en) Mobile terminal and display method of recording channel occupation information thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder