CN111834679B - Charging method, device, equipment and storage medium - Google Patents

Charging method, device, equipment and storage medium Download PDF

Info

Publication number
CN111834679B
CN111834679B CN201910325308.6A CN201910325308A CN111834679B CN 111834679 B CN111834679 B CN 111834679B CN 201910325308 A CN201910325308 A CN 201910325308A CN 111834679 B CN111834679 B CN 111834679B
Authority
CN
China
Prior art keywords
charging
terminal
charging power
acceleration
power
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
CN201910325308.6A
Other languages
Chinese (zh)
Other versions
CN111834679A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201910325308.6A priority Critical patent/CN111834679B/en
Publication of CN111834679A publication Critical patent/CN111834679A/en
Application granted granted Critical
Publication of CN111834679B publication Critical patent/CN111834679B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H01M10/446Initial charging measures
    • 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

Abstract

The disclosure provides a charging method, a charging device, charging equipment and a storage medium, and belongs to the field of electronic equipment. The method includes detecting a first moving acceleration of the terminal through a motion sensor while the terminal is charged at a first charging power; when the first moving acceleration is larger than a first acceleration threshold and the moving time is larger than a time threshold, determining corresponding second charging power according to the first acceleration threshold, and switching the charging power of the terminal from the first charging power to the second charging power, wherein the second charging power is smaller than the first charging power; the method judges whether the terminal is in the charging interruption state or not through the movement acceleration and the movement time of the terminal, reduces the charging power of the terminal when the terminal is determined to be in the charging interruption state, enables the charging interface of the charging wire to be safely pulled out, and avoids potential safety hazards caused by overlarge charging voltage and charging current during high-power charging.

Description

Charging method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to a charging method, a charging apparatus, a charging device, and a storage medium.
Background
At present, the requirement of a user for quick charging of a mobile terminal is higher and higher, and the higher and higher charging speed of the mobile terminal becomes a future development trend.
The principle of the quick charging of the mobile terminal is that high-power charging is used, and the higher the power is, the higher the charging speed is; as the charging power increases, the charging voltage and the charging current become larger.
Excessive charging voltage and charging current can cause safety hazards, for example, when the current at the charging interface exceeds 5A, the current easily breaks through air to generate electric arcs in the process of pulling out the charging interface.
Disclosure of Invention
The embodiment of the disclosure provides a charging method, a charging device, charging equipment and a storage medium. The technical scheme is as follows:
according to an aspect of an embodiment of the present disclosure, there is provided a charging method including:
detecting a first moving acceleration of the terminal through a motion sensor when charging is carried out by adopting first charging power;
when the first moving acceleration is larger than a first acceleration threshold, determining second charging power of the terminal according to the first moving acceleration;
and switching the charging power of the terminal from the first charging power to a second charging power, wherein the second charging power is smaller than the first charging power.
In some embodiments, determining the second charging power of the terminal from the first movement acceleration comprises:
acquiring the moving time of the terminal, wherein the moving time is the duration of the first moving acceleration;
and when the moving time is larger than the time threshold, determining a second charging power of the terminal according to the first moving acceleration.
In some embodiments, the method further comprises:
and when the moving time is equal to or less than the time threshold, determining the charging power of the terminal as the first charging power.
In some embodiments, at least two candidate charging powers are stored in the terminal;
determining a second charging power of the terminal according to the first moving acceleration, comprising:
and determining a second charging power from at least two candidate charging powers according to the first moving acceleration.
In some embodiments, each candidate charging power corresponds to a range of acceleration values;
determining a second charging power from the at least two candidate charging powers according to the first moving acceleration, including:
and when the first moving acceleration belongs to the ith acceleration numerical range, determining the ith candidate charging power corresponding to the ith acceleration numerical range as the second charging power, wherein i is a positive integer.
In some embodiments, after switching the charging power of the terminal from the first charging power to the second charging power, the method further includes:
when the state is still the charging state, continuously detecting a second movement acceleration of the terminal in a target time period through the motion sensor;
and when the second moving acceleration is equal to or less than a second acceleration threshold, switching the charging power of the terminal from the second charging power to the first charging power.
In some embodiments, the method further comprises:
and when the second moving acceleration is larger than a second acceleration threshold value, determining that the charging power of the terminal is a second charging power.
In some embodiments, after switching the charging power of the terminal from the first charging power to the second charging power, the method further includes:
displaying a charging power setting interface of the terminal, wherein the charging power setting interface comprises a power switching button control, and the power switching button control is used for switching the charging power of the terminal from the second charging power to the first charging power;
receiving a trigger operation on a power switching button control;
and switching the charging power from the second charging power to the first charging power according to the triggering operation.
In some embodiments, the motion sensor includes at least one of a three-axis acceleration sensor, a six-axis acceleration sensor, a nine-axis acceleration sensor, a gyroscope sensor, and a posture sensor.
According to another aspect of the embodiments of the present disclosure, there is provided a charging method including:
detecting a first moving acceleration of the terminal through a motion sensor when charging is carried out by adopting first charging power;
when the first moving acceleration is larger than a first acceleration threshold value, determining that the charging state of the terminal is an interrupted charging state;
and interrupting the charging of the terminal according to the charging interruption state.
In some embodiments, determining the state of the terminal charge as an interrupted charge state comprises:
acquiring the moving time of the terminal, wherein the moving time is the duration of the first moving acceleration;
and when the moving time is greater than the time threshold, determining that the charging state of the terminal is an interrupted charging state.
In some embodiments, the terminal includes a voltage management chip PMIC;
interrupting charging the terminal according to the interrupted charging state, comprising:
the PMIC interrupts charging of the terminal according to the interrupted charging state.
According to another aspect of the embodiments of the present disclosure, there is provided a charging device including:
a detection module configured to detect a first movement acceleration of the terminal through the motion sensor while charging with the first charging power;
a determination module configured to determine a second charging power of the terminal according to the first movement acceleration when the first movement acceleration is greater than a first acceleration threshold;
the terminal comprises a switching module configured to switch the charging power of the terminal from a first charging power to a second charging power, wherein the second charging power is smaller than the first charging power.
In some embodiments, the determining module comprises:
an acquisition submodule configured to acquire a movement time of the terminal, the movement time being a duration of the first movement acceleration;
a determination submodule configured to determine a second charging power of the terminal according to the first movement acceleration when the movement time is greater than the time threshold.
In some embodiments, the apparatus further comprises:
a determination module configured to determine the charging power of the terminal as a first charging power when the moving time is equal to or less than a time threshold.
In some embodiments, at least two candidate charging powers are stored in the terminal;
a determination submodule configured to determine a second charging power from the at least two candidate charging powers according to the first moving acceleration.
In some embodiments, each candidate charging power corresponds to a range of acceleration values;
the determining submodule is configured to determine an ith candidate charging power corresponding to an ith acceleration numerical range as the second charging power when the first moving acceleration belongs to the ith acceleration numerical range, and i is a positive integer.
In some embodiments, the apparatus further comprises:
the detection module is configured to continuously detect a second movement acceleration of the terminal in the target time period through the motion sensor when the state is still the charging state;
a switching module configured to switch the charging power of the terminal from the second charging power to the first charging power when the second movement acceleration is equal to or less than a second acceleration threshold.
In some embodiments, the apparatus further comprises:
and the determining module is configured to determine the charging power of the terminal to be the second charging power when the second moving acceleration is greater than the second acceleration threshold.
In some embodiments, the apparatus further comprises:
the display module is configured to display a charging power setting interface of the terminal, the charging power setting interface comprises a power switching button control, and the power switching button control is used for switching the charging power of the terminal from the second charging power to the first charging power;
a receiving module configured to receive a trigger operation on a power switch button control;
a switching module configured to switch the charging power from the second charging power to the first charging power according to a trigger operation.
In some embodiments, the motion sensor includes at least one of a three-axis acceleration sensor, a six-axis acceleration sensor, a nine-axis acceleration sensor, a gyroscope sensor, and a posture sensor.
According to another aspect of the embodiments of the present disclosure, there is provided a charging device including:
a detection module configured to detect a first movement acceleration of the terminal through the motion sensor while charging with the first charging power;
the terminal charging control device comprises a determining module, a judging module and a charging control module, wherein the determining module is configured to determine the charging state of the terminal as an interrupted charging state when the first moving acceleration is larger than a first acceleration threshold;
a control module configured to interrupt charging of the terminal according to the interrupted charging state.
In some embodiments, the determining module comprises:
an acquisition submodule configured to acquire a movement time of the terminal, the movement time being a duration of the first movement acceleration;
a determination submodule configured to determine the state of the terminal charging as an interrupted charging state when the moving time is greater than the time threshold.
In some embodiments, the terminal includes a voltage management chip PMIC;
a control module configured to interrupt charging of the terminal according to the interrupted charging state by the PMIC.
According to another aspect of the embodiments of the present disclosure, there is provided a terminal, including:
a processor;
a memory coupled to the processor;
wherein the processor is configured to load and execute executable instructions to implement the charging method as described above in the first aspect and its alternative embodiments; alternatively, the charging method as described above in the second aspect and its alternative embodiments.
According to another aspect of the embodiments of the present disclosure, there is provided a computer storage medium having at least one instruction, at least one program, code set, or instruction set stored therein, the at least one instruction, at least one program, code set, or instruction set being loaded and executed by a processor to implement the charging method according to the first aspect and its optional embodiments; alternatively, the charging method as described above in the second aspect and its alternative embodiments.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
detecting a first movement acceleration of the terminal through a motion sensor when the terminal is charged with a first charging power; when the first moving acceleration is larger than a first acceleration threshold, determining a corresponding second charging power according to the first acceleration threshold, and switching the charging power of the terminal from the first charging power to the second charging power, wherein the second charging power is smaller than the first charging power; the method judges whether the terminal is in the charging interruption state or not through the movement acceleration of the terminal, reduces the charging power of the terminal when the terminal is determined to be in the charging interruption state, enables a charging interface of a charging wire to be safely pulled out, and avoids potential safety hazards caused by overlarge charging voltage and charging current when high-power charging is carried out, for example, when the current at the charging interface exceeds 5A, the current easily breaks through air to generate electric arcs in the process of pulling out the charging interface of the charging wire.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic diagram of a terminal shown in accordance with an exemplary embodiment;
FIG. 2 is a flow chart illustrating a charging method according to an exemplary embodiment;
FIG. 3 is a flow chart illustrating a charging method according to another exemplary embodiment;
FIG. 4 is a flow chart illustrating a charging method according to another exemplary embodiment;
FIG. 5 is a flow chart illustrating a charging method according to another exemplary embodiment;
FIG. 6 is an interface schematic diagram illustrating a charging method according to an exemplary embodiment;
FIG. 7 is an interface schematic diagram illustrating a charging method according to another exemplary embodiment;
FIG. 8 is a flow chart illustrating a charging method according to another exemplary embodiment;
FIG. 9 is a flowchart illustrating a charging method according to another example embodiment
FIG. 10 is a block diagram illustrating a charging device according to an exemplary embodiment;
fig. 11 is a block diagram illustrating a charging device according to another exemplary embodiment;
fig. 12 is a schematic diagram illustrating a structure of a terminal according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Referring to fig. 1, a schematic structural diagram of a terminal 100 according to an exemplary embodiment is shown, where the terminal 100 includes a motion sensor 101, a memory 102, a processor 103, and a Power Management chip (PMIC) 104;
the motion sensor 101, the memory 102 and the PMIC104 are electrically connected to the processor 103. Optionally, the motion sensor 101, the memory 102 and the PMIC104 are respectively connected to the processor 103 through a bus.
The motion sensor 101 may include at least one of a three-axis acceleration sensor, a six-axis acceleration sensor, a nine-axis acceleration sensor, a gyro sensor, and a posture sensor; the motion sensor 101 is configured to detect an acceleration of the terminal during movement, and report the acceleration to the processor 103.
The Memory 102 may include a Random Access Memory (RAM) or a Read-Only Memory (ROM). The memory 103 stores a program that can realize the above-described charging method. Optionally, the memory 102 further stores a candidate charging power for providing a charging power corresponding to the acceleration when the PMIC104 switches the charging power.
The processor 103 may include one or more processing cores, and the processor 103 is configured to execute the program stored in the memory 102 to implement the charging method provided by the present disclosure. For example, the processor 103 determines to switch the charging power of the terminal from a first charging power to a second charging power according to the received acceleration reported by the motion sensor 101, and sends a charging power switching command to the PMIC104, where the charging power switching command includes the second charging power corresponding to the acceleration determined from the candidate charging powers stored in the memory 102. And the second charging power is smaller than the first charging power.
The PMIC104 can intelligently manage the electric energy in the terminal according to the setting of the processor 103, prevent the situations of overvoltage, overcurrent, overtemperature, short circuit and the like in the terminal and provide corresponding working voltage for other integrated circuits in the terminal; the PMIC104 may also control the terminal charging, in this disclosure the PMIC104 switches the charging power of the terminal from the first charging power to the second charging power according to the charging power switching command sent by the processor 103.
It should be noted that, the processor 103 may also determine to interrupt terminal charging according to the acceleration reported by the motion sensor 101, and send a charging interrupt command to the PMIC 104; the PMIC104 interrupts the terminal charging according to the charging interruption command.
Referring to fig. 2, a flowchart of a charging method provided in an exemplary embodiment is shown, the method being applied to a terminal in a charging state, the terminal being equipped with a motion sensor, and the method including:
step 201, when charging is performed by using the first charging power, detecting a first movement acceleration of the terminal through the motion sensor.
Optionally, the motion sensor comprises at least one of a three-axis acceleration sensor, a six-axis acceleration sensor, a nine-axis acceleration sensor, a gyroscope sensor, and a posture sensor.
When the terminal is charged by adopting the first charging power, the terminal detects the self moving acceleration through the motion sensor to obtain the first moving acceleration. Wherein the first charging power is a default charging power of the terminal. Alternatively, the first charging power may be a maximum charging power of the terminal.
Step 202, determining whether the first moving acceleration is greater than a first acceleration threshold.
The first acceleration threshold is used for judging the charging state of the terminal, and the charging state of the terminal comprises a stable charging state and an interrupted charging state.
When the first moving acceleration is larger than the first acceleration threshold, the terminal judges that the self-charging state is the charging interruption state, and step 203 is executed; when the first moving acceleration is smaller than or equal to the first acceleration threshold, the terminal determines that the terminal is in the stable charging state, and step 205 is executed.
And step 203, determining a second charging power of the terminal according to the first movement acceleration.
When the first moving acceleration is larger than the first acceleration threshold, the terminal determines a corresponding second charging power according to the first moving speed, wherein the second charging power is the charging power of the terminal, and the second charging power is smaller than the first charging power.
Step 204, the charging power of the terminal is switched from the first charging power to the second charging power.
And the terminal switches the charging power of the terminal from the first charging power to the second charging power, and charges the terminal with the second charging power.
Step 205, determining the charging power of the terminal as the first charging power.
When the first moving acceleration is smaller than or equal to the first acceleration threshold, the terminal is still charged with the first charging power.
In summary, in the charging method provided in this embodiment, when the terminal is charged with the first charging power, the motion sensor detects a first moving acceleration of the terminal; when the first moving acceleration is larger than a first acceleration threshold, determining a corresponding second charging power according to the first acceleration threshold, and switching the charging power of the terminal from the first charging power to the second charging power, wherein the second charging power is smaller than the first charging power; the method judges whether the terminal is in the charging interruption state or not through the movement acceleration of the terminal, reduces the charging power of the terminal when the terminal is determined to be in the charging interruption state, enables a charging interface of a charging wire to be safely pulled out, and avoids potential safety hazards caused by overlarge charging voltage and charging current when high-power charging is carried out, for example, when the current at the charging interface exceeds 5A, the current easily breaks through air to generate electric arcs in the process of pulling out the charging interface of the charging wire.
It should be noted that, because the disconnection speed of the charging interface also affects the current breakdown of air, the faster the disconnection speed of the charging interface is, the higher the possibility that the current breaks through air is under the same charging power; therefore, at least two candidate charging powers are stored in the terminal; each candidate charging power corresponds to at least one moving acceleration; the larger the moving acceleration is, the smaller the corresponding candidate charging power is; and when the first moving acceleration of the terminal is larger than the first angular velocity threshold, the terminal determines a second charging power from at least two candidate charging powers according to the first moving acceleration.
Optionally, each candidate charging power corresponds to an acceleration value range; and when the first moving acceleration belongs to the ith acceleration numerical range, determining the ith candidate charging power corresponding to the ith acceleration numerical range as the second charging power, wherein i is a positive integer.
Illustratively, a mapping relation table of the mobile acceleration and the candidate charging power is stored in the terminal, and as shown in table 1, the table includes three acceleration value ranges corresponding to three candidate charging powers; when the first moving acceleration belongs to the 1 st acceleration numerical range [ V1, V2), i.e., is equal to or greater than V1 and less than V2, the corresponding 1 st candidate charging power is W1, and W1 is determined as the second charging power; when the first moving acceleration belongs to the 2 nd acceleration numerical range [ V2, V3), i.e., is equal to or greater than V2 and less than V3, the corresponding 2 nd candidate charging power is W2, and W2 is determined as the second charging power; when the first moving acceleration belongs to the 3 rd acceleration numerical range [ V3, V4], i.e., equal to or greater than V3 and equal to or less than V4, the corresponding 3 rd candidate charging power is W3, and W3 is determined as the second charging power; wherein 0< V1< V2< V3< V4, and first charging power > W1> W2> W3.
TABLE 1
First moving acceleration Candidate charging power
1 [V1,V2) W1
2 [V2,V3) W2
3 [V3,V4] W3
The second charging power determination method enables the terminal to have certain charging power under the condition that the movement acceleration is larger than the first acceleration threshold value but the terminal is still in a non-charging state, so that the charging speed of the terminal is not too low.
Based on the embodiment shown in fig. 2, the determination of the charging state of the terminal further needs to satisfy a certain time duration, as shown in fig. 3, after determining that the first moving acceleration is greater than the first acceleration threshold, the determination step of increasing the time duration includes the following exemplary steps:
step 301, detecting a first moving acceleration of the terminal through the motion sensor when the terminal is charged by adopting the first charging power.
When the terminal is charged by adopting the first charging power, the terminal detects the self moving acceleration through the motion sensor to obtain the first moving acceleration. Wherein the first charging power is a default charging power of the terminal. Alternatively, the first charging power may be a maximum charging power of the terminal.
Step 302, determining whether the first moving acceleration is greater than a first acceleration threshold.
The terminal judges whether the first moving acceleration is larger than a first acceleration threshold value; when the first moving acceleration is greater than the first acceleration threshold, executing step 303; when the first movement acceleration is less than or equal to the first acceleration threshold, step 307 is performed.
Step 303, obtaining the moving time of the terminal.
The moving time is the duration of the first moving acceleration, that is, the terminal measures the first moving acceleration of the terminal through the acceleration sensor during the moving time.
Step 304, judging whether the moving time of the terminal is larger than a time threshold value.
The time threshold is used for judging the state of the terminal; when the first movement acceleration is larger than a first acceleration threshold value and the movement time is larger than a time threshold value, the state of the terminal is a charging interruption state; otherwise, the terminal is in a stable charging state.
The terminal judges whether the moving time of the terminal is larger than a time threshold value; when the moving time is greater than the time threshold, the terminal determines that the state of the terminal is the charge interruption state, and executes step 305; when the moving time is equal to or less than the time threshold, the terminal determines that it is in a stable charging state, and step 307 is executed.
And 305, determining a second charging power of the terminal according to the first movement acceleration.
Optionally, the terminal stores candidate charging powers, determines, from the candidate charging powers, a charging power corresponding to the first moving acceleration as a second charging power, where the second charging power is smaller than the first charging power.
Step 306, the charging power of the terminal is switched from the first charging power to the second charging power.
And the terminal switches the charging power of the terminal from the first charging power to the second charging power for charging.
Step 307, determining the charging power of the terminal as the first charging power.
When the first moving acceleration is smaller than or equal to the first acceleration threshold, or when the first moving acceleration is larger than the first acceleration threshold and the moving time is smaller than or equal to the time threshold, the terminal still charges with the first charging power.
It should be noted that, in the charging method provided in this embodiment, the execution sequence between the determination of the moving time and the determination of the first moving acceleration is not limited, and the terminal may first execute step 303 to step 304; when the moving time is larger than the time threshold, executing step 301 to step 302, otherwise, executing step 307; when the first moving acceleration is greater than the first acceleration threshold, step 305 to step 306 are executed, otherwise step 307 is executed.
In summary, in the charging method provided in this embodiment, when the terminal is charged with the first charging power, the motion sensor detects a first moving acceleration of the terminal; when the first moving acceleration is larger than a first acceleration threshold and the moving time is larger than a time threshold, determining a corresponding second charging power according to the first acceleration threshold, and switching the charging power of the terminal from the first charging power to the second charging power, wherein the second charging power is smaller than the first charging power; the method comprises the steps of judging whether the terminal is in an interrupted charging state or not through the movement acceleration and the movement time of the terminal, reducing the charging power of the terminal when the terminal is determined to be in the interrupted charging state, enabling a charging interface of a charging wire to be pulled out safely, and avoiding potential safety hazards caused by excessive charging voltage and charging current when high-power charging is carried out, for example, when the current at the charging interface exceeds 5A, the current easily breaks through air to generate electric arcs in the process of pulling out the charging interface of the charging wire.
In addition, the terminal also judges the charging state of the terminal according to the moving time of the terminal, and can eliminate the influence of some external environments, for example, the terminal is placed on a certain object for charging, the moving of the object causes the terminal to generate a moving acceleration within the duration of tens of milliseconds, the movement of the tens of milliseconds is not consistent with the actual moving condition when the charging interface is pulled out, and at the moment, the moving condition can be prevented from being judged to be in the charging interruption state by mistake through the judgment of the moving time.
Based on the embodiments shown in fig. 2 and fig. 3, after the terminal switches the first charging power to the second charging power, the charging state of the terminal continues to be detected to determine whether the terminal has interrupted charging, and if the terminal has not interrupted charging, the charging power is adaptively adjusted, please refer to fig. 4, which schematically includes the following steps:
step 401, detecting the charging state of the terminal.
The terminal charging state comprises a charging state and a charging interruption state; the terminal detects a state of charge of the terminal after the charging power is switched from the first charging power to the second charging power.
When the state of the terminal is still the charging state, executing step 402; when the state of the terminal is the charge interruption state, step 406 is performed.
And step 402, continuously detecting a second movement acceleration of the terminal in the target time period through the motion sensor.
The target time period is a time period after the terminal switches the first charging power to the second charging power. Optionally, the second moving acceleration is a group of moving accelerations measured by the acceleration sensor in the target time period, where the group of moving accelerations includes at least two moving accelerations.
In step 403, it is determined whether the second moving acceleration is equal to or less than a second acceleration threshold.
The second acceleration threshold is used for determining that the terminal is in a static state or a moving state; the second acceleration threshold is equal to or less than the first acceleration threshold.
The terminal judges whether the second moving acceleration is equal to or smaller than a second acceleration threshold value; when the second moving acceleration is equal to or less than the second acceleration threshold, determining that the terminal is in a stationary state, and executing step 404; when the second moving acceleration is greater than the second acceleration threshold, it is determined that the terminal is in a moving state, and step 405 is executed.
Optionally, the second moving acceleration includes at least two accelerations; the terminal judges whether each acceleration in the at least two accelerations is equal to or smaller than a second acceleration threshold value. When each of the moving accelerations is equal to or smaller than a second acceleration threshold, executing step 404; otherwise, step 405 is performed.
Step 404, the charging power of the terminal is switched from the second charging power to the first charging power.
And when the second movement acceleration is equal to or less than a second acceleration threshold, the terminal switches the charging power of the terminal from the second charging power to the first charging power.
And step 405, determining the charging power of the terminal to be the second charging power.
Optionally, when at least one of the at least two accelerations is greater than a second acceleration threshold, the terminal determines to still charge at the second charging power.
Step 406, ending the execution of the charging method.
In summary, in the charging method provided in this embodiment, after the terminal switches the first charging power to the second charging power, it is determined whether the terminal has interrupted charging; when the terminal does not interrupt charging, judging whether the terminal is in a static state; and when the terminal is in a static state, switching the second charging power into the first charging power. In the method, under the condition that the terminal does not interrupt charging, the terminal adopts larger charging power when in a static state, so that the terminal is still charged with high power, and the charging speed can be correspondingly accelerated; and the terminal still adopts the second charging power to charge when in the mobile state, maintains smaller charging power, and avoids the potential safety hazard caused by overlarge charging current when the user operates the terminal.
Based on the embodiments shown in fig. 2 and fig. 3, after the terminal switches the charging power to the second charging power, the terminal may continue to charge, and at this time, the terminal may switch the charging power from the second charging power back to the first charging power according to a triggering operation of the user, please refer to fig. 5, and the steps are as follows:
step 501, displaying a charging power setting interface of the terminal.
And displaying a charging power setting interface on a user interface of the terminal, wherein the charging power setting interface comprises a power switching button control, and the power switching button control is used for switching the charging power of the terminal from the second charging power to the first charging power.
Step 502, receiving a trigger operation on a power switch button control.
Optionally, the trigger operation may be at least one of a single click operation, a slide operation, a multi-click operation, and a long press operation.
Optionally, the display screen of the terminal is a touch screen; a user performs triggering operation in a position area corresponding to the power switching button control on the touch screen; the terminal receives a trigger operation on the power switch button control.
Step 503, the charging power is switched from the second charging power to the first charging power according to the triggering operation.
In summary, the charging method provided by the embodiment can enable a user to independently select charging through the first charging power or the second charging power; the user can charge the terminal by using high power while using the terminal; the use experience of the user is improved.
Illustratively, as shown in fig. 6, a charging power setting interface 51 of the terminal is shown, the charging power setting interface 51 includes a power switching button control 52, and a user clicks the power switching button control 52 to switch the charging power of the terminal from the second charging power to the first charging power.
It should be noted that the charging power setting interface of the terminal may further include a charging power setting item, where the charging power setting item is used to set the charging power of the terminal; illustratively, as shown in fig. 7, a user may correspondingly input a target charging power in a charging power setting item 54 on a charging power setting interface 53, click a power switching button control 55, and switch the current charging power to the target charging power; wherein the target charging power is less than or equal to the first charging power. In addition, the charging power setting item may include various forms, not limited to the form in fig. 8 described above. The charging method enables the setting of the charging power to be more flexible.
In the above optional embodiment, when the terminal determines that the terminal is in the charge interruption state, the terminal may switch the charging power from the first charging power to the second charging power, so as to reduce the charging power to avoid potential safety hazards caused by an excessive charging voltage and a charging current when the charging interface of the charging line is pulled out; in addition, the terminal may also interrupt its own charging to achieve the above-mentioned effect, schematically, please refer to fig. 8, the steps of the method are as follows:
step 601, when the terminal is charged by adopting the first charging power, detecting a first movement acceleration of the terminal through a motion sensor.
Step 602, determining whether the first moving acceleration is greater than a first acceleration threshold.
When the first moving acceleration is greater than the first acceleration threshold, executing step 603; when the first moving acceleration is less than or equal to the first acceleration threshold, step 607 is performed.
Step 603, obtaining the moving time of the terminal.
The moving time is the duration of the first moving acceleration, that is, the terminal measures the first moving acceleration of the terminal through the acceleration sensor during the moving time.
Step 604, determining whether the moving time of the terminal is greater than a time threshold.
When the moving time is greater than the time threshold, the terminal determines that the state of the terminal is an interrupted charging state, and executes step 605; when the moving time is equal to or less than the time threshold, the terminal determines that it is in a stable charging state, and then executes step 607.
Step 605, determining the state of the terminal charging as an interrupted charging state.
And when the first moving acceleration is larger than a first acceleration threshold and the moving time is larger than a time threshold, determining that the charging state of the terminal is a charging interruption state.
And 606, interrupting the charging of the terminal according to the charging interruption state.
When the charging state of the terminal is the charging interruption state, the terminal interrupts charging, namely before the charging interface of the charging wire is pulled out, the terminal interrupts charging.
Optionally, the terminal includes a voltage management chip PMIC; the PMIC interrupts charging of the terminal according to the interrupted charging state.
Step 607, determining the charging power of the terminal as the first charging power.
When the first moving acceleration is smaller than or equal to the first acceleration threshold, or when the first moving acceleration is larger than the first acceleration threshold and the moving time is smaller than or equal to the time threshold, the terminal still charges with the first charging power.
In summary, in the charging method provided in this embodiment, when the terminal is charged with the first charging power, the motion sensor detects a first moving acceleration of the terminal; when the first moving acceleration is larger than a first acceleration threshold value, the terminal interrupts charging, wherein the second charging power is smaller than the first charging power; the method judges whether the terminal is in the charging interruption state or not through the moving acceleration of the terminal, when the terminal is determined to be in the charging interruption state, the terminal directly interrupts charging, so that a charging interface of a charging wire can be safely pulled out, potential safety hazards caused by excessive charging voltage and charging current during high-power charging are avoided, for example, when the current at the charging interface exceeds 5A, the current easily breaks through air to generate electric arcs in the process of pulling out the charging interface of the charging wire.
In addition, the terminal also judges the charging state of the terminal according to the moving time of the terminal, and can eliminate the influence of some external environments, for example, the terminal is placed on a certain object for charging, the moving of the object causes the terminal to generate a moving acceleration within the duration of tens of milliseconds, the movement of the tens of milliseconds is not consistent with the actual moving condition when the charging interface is pulled out, and at the moment, the moving condition can be prevented from being judged to be in the charging interruption state by mistake through the judgment of the moving time.
It should be further noted that, based on the above-mentioned alternative embodiment, when the motion sensor in the terminal includes the three-axis acceleration sensor and the gyro sensor, the terminal detects the first movement acceleration of the terminal through the acceleration sensor and the gyro sensor, and detects the second movement acceleration of the terminal. Referring to fig. 9, schematically, a charging method provided by an exemplary embodiment is shown, where the method is applied to a terminal mounted with a three-axis acceleration sensor and a gyroscope sensor, and the method includes:
in step 701, terminal charging is started.
In step 702, the terminal charges the first charging power as the charging power.
The first charging power is the default charging power of the terminal; alternatively, the first charging power may be a maximum charging power of the terminal, and the first charging power may enable high-power charging of the terminal.
Alternatively, when the current charging power of the terminal is the second charging power, the terminal switches the charging power from the second charging power to the first charging power.
And 703, the terminal measures a first movement acceleration of the terminal through a three-axis acceleration sensor and a gyroscope sensor, and obtains the movement time of the terminal.
In step 704, the terminal determines whether the first moving acceleration is greater than a first acceleration threshold, and determines whether the moving time is greater than a time threshold.
When the first moving acceleration of the terminal is greater than the first acceleration threshold and the moving time is greater than the time threshold, executing step 705; otherwise, step 702 is performed.
In step 705, the terminal determines that the terminal is moving with an acceleration that exceeds a first acceleration threshold.
And step 706, the terminal charges the second charging power as the charging power.
Alternatively, when the current charging power of the terminal is the first charging power, the terminal switches the charging power from the first charging power to the second charging power. The second charging power is smaller than the first charging power, and the second charging power can realize low-power charging of the terminal.
In step 707, the terminal detects whether the charging interface of the charging cable is pulled out.
The terminal continuously detects whether the terminal is in a charging state, when the terminal is still in the charging state, the charging interface of the charging line is determined not to be pulled out, and step 708 is executed; when the charging state of the terminal is that the charging is interrupted, it is determined that the charging interface of the charging line is pulled out, and step 710 is executed.
And step 708, the terminal measures a second movement acceleration of the terminal in the target time period through the three-axis acceleration sensor and the gyroscope sensor.
For example, the terminal measures a second moving acceleration of the terminal through the acceleration sensor and the gyro sensor within 3 seconds, where the 3 seconds are consecutive periods of time after the charging power is switched from the first charging power to the second charging power.
In step 709, the terminal determines whether the second moving acceleration is smaller than a second acceleration threshold.
Wherein the second acceleration threshold is less than or equal to the first acceleration threshold. When the second moving acceleration is smaller than the second acceleration threshold, executing step 702; when the second movement acceleration is equal to or greater than the second acceleration threshold, step 706 is performed.
And step 710, finishing the terminal charging.
In summary, in the method provided in this embodiment, when the terminal is charged with the first charging power, the motion sensor detects a first moving acceleration of the terminal; when the first moving acceleration is larger than a first acceleration threshold and the moving time is larger than a time threshold, determining a corresponding second charging power according to the first acceleration threshold, and switching the charging power of the terminal from the first charging power to the second charging power, wherein the second charging power is smaller than the first charging power; the method comprises the steps of judging whether the terminal is in an interrupted charging state or not through the movement acceleration and the movement time of the terminal, reducing the charging power of the terminal when the terminal is determined to be in the interrupted charging state, enabling a charging interface of a charging wire to be pulled out safely, and avoiding potential safety hazards caused by excessive charging voltage and charging current when high-power charging is carried out, for example, when the current at the charging interface exceeds 5A, the current easily breaks through air to generate electric arcs in the process of pulling out the charging interface of the charging wire.
Referring to fig. 10, a charging apparatus provided in an exemplary embodiment is shown, which may be implemented as part of or all of a terminal through software, hardware, or a combination of the two, and includes a motion sensor therein, and includes:
a detection module 801 configured to detect a first movement acceleration of the terminal through the motion sensor while charging with the first charging power;
a determining module 802 configured to determine a second charging power of the terminal according to the first mobile acceleration when the first mobile acceleration is greater than a first acceleration threshold;
a switching module 803 configured to switch the charging power of the terminal from a first charging power to a second charging power, the second charging power being less than the first charging power.
In some embodiments, the determining module 802 includes:
an obtaining submodule 8021 configured to obtain a moving time of the terminal, the moving time being a duration of the first moving acceleration;
a determining submodule 8022 configured to determine a second charging power of the terminal according to the first movement acceleration when the movement time is greater than the time threshold.
In some embodiments, the apparatus further comprises:
a determining module 802 configured to determine the charging power of the terminal as a first charging power when the moving time is equal to or less than a time threshold.
In some embodiments, at least two candidate charging powers are stored in the terminal;
the determining submodule 8022 is configured to determine the second charging power from the at least two candidate charging powers according to the first moving acceleration.
In some embodiments, each candidate charging power corresponds to a range of acceleration values;
the determining submodule 8022 is configured to, when the first moving acceleration belongs to an ith acceleration numerical range, determine an ith candidate charging power corresponding to the ith acceleration numerical range as the second charging power, where i is a positive integer.
In some embodiments, the apparatus further comprises:
a detection module 801 configured to continue to detect, by the motion sensor, a second movement acceleration of the terminal within the target time period when the state is still the charging state;
a switching module 803 configured to switch the charging power of the terminal from the second charging power to the first charging power when the second movement acceleration is equal to or less than a second acceleration threshold.
In some embodiments, the apparatus further comprises:
a determining module 802 configured to determine the charging power of the terminal as a second charging power when the second moving acceleration is greater than a second acceleration threshold.
In some embodiments, the apparatus further comprises:
the display module 804 is configured to display a charging power setting interface of the terminal, where the charging power setting interface includes a power switching button control, and the power switching button control is used to switch the charging power of the terminal from the second charging power to the first charging power;
a receiving module 805 configured to receive a trigger operation on a power switch button control;
a switching module 803 configured to switch the charging power from the second charging power to the first charging power according to a trigger operation.
In some embodiments, the motion sensor includes at least one of a three-axis acceleration sensor, a six-axis acceleration sensor, a nine-axis acceleration sensor, a gyroscope sensor, and a posture sensor.
In summary, the charging device provided in this embodiment detects a first moving acceleration of the terminal through the motion sensor when the terminal is charged with the first charging power; when the first moving acceleration is larger than a first acceleration threshold, determining a corresponding second charging power according to the first acceleration threshold, and switching the charging power of the terminal from the first charging power to the second charging power, wherein the second charging power is smaller than the first charging power; the device judges whether the terminal is in the interrupted charging state through the mobile acceleration of the terminal, when the terminal is determined to be in the interrupted charging state, the charging power of the terminal is reduced, the charging interface of the charging wire can be safely pulled out, and potential safety hazards caused by overlarge charging voltage and charging current are avoided when high-power charging is carried out, for example, when the current at the charging interface exceeds 5A, the air is easily punctured by the current in the process of pulling out the charging interface of the charging wire to generate electric arcs.
Referring to fig. 11, a charging apparatus provided in another exemplary embodiment is shown, which may be implemented as part or all of a terminal through software, hardware or a combination of the two, and includes a motion sensor therein, and includes:
a detection module 901 configured to detect a first moving acceleration of the terminal through the motion sensor while charging with the first charging power;
a determining module 902 configured to determine the state of the terminal charging as an interrupted charging state when the first moving acceleration is greater than a first acceleration threshold;
a control module 903 configured to interrupt charging of the terminal according to the interrupted charging state.
In some embodiments, determining module 902 comprises:
an obtaining submodule 9021 configured to obtain a moving time of the terminal, where the moving time is a duration of the first moving acceleration;
a determination submodule 9022, configured to determine that the state of the terminal charging is the interrupted charging state when the moving time is greater than the time threshold.
In some embodiments, the terminal includes a voltage management chip PMIC;
a control module 903 configured to interrupt charging of the terminal by the PMIC according to the interrupted charging state.
In summary, the charging device provided in this embodiment detects a first moving acceleration of the terminal through the motion sensor when the terminal is charged with the first charging power; when the first moving acceleration is larger than a first acceleration threshold value, the terminal interrupts charging, wherein the second charging power is smaller than the first charging power; the device judges whether the terminal is in the interrupted charging state through the mobile acceleration of the terminal, when the terminal is determined to be in the interrupted charging state, the terminal is directly interrupted to charge, so that a charging interface of a charging wire can be safely pulled out, and when high-power charging is avoided, potential safety hazards caused by overlarge charging voltage and charging current are avoided, for example, when the current at the charging interface exceeds 5A, the current easily breaks through air to generate electric arcs in the process of pulling out the charging interface of the charging wire.
Referring to fig. 12, a block diagram of a charging device 1000 according to an exemplary embodiment is shown. For example, the apparatus 1000 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 12, the apparatus 1000 may include one or more of the following components: processing component 1002, memory 1004, power component 1006, multimedia component 1008, audio component 1010, input/output (I/O) interface 1012, sensor component 1014, and communications component 1016.
The processing component 1002 generally controls the overall operation of the device 1000, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 1002 may include one or more processors 1020 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 1002 may include one or more modules that facilitate interaction between processing component 1002 and other components. For example, the processing component 1002 may include a multimedia module to facilitate interaction between the multimedia component 1008 and the processing component 1002.
The memory 1004 is configured to store various types of data to support operations at the apparatus 1000. Examples of such data include instructions for any application or method operating on device 1000, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1004 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 1006 provides power to the various components of the device 1000. The power components 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 1000.
The multimedia component 1008 includes a screen that provides an output interface between the device 1000 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1008 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 1000 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1010 is configured to output and/or input audio signals. For example, audio component 1010 includes a Microphone (MIC) configured to receive external audio signals when apparatus 1000 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 1004 or transmitted via the communication component 1016. In some embodiments, audio component 1010 also includes a speaker for outputting audio signals.
I/O interface 1012 provides an interface between processing component 1002 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 1014 includes one or more sensors for providing various aspects of status assessment for the device 1000. For example, sensor assembly 1014 may detect an open/closed state of device 1000, the relative positioning of components, such as a display and keypad of device 1000, the change in position of device 1000 or a component of device 1000, the presence or absence of user contact with device 1000, the orientation or acceleration/deceleration of device 1000, and the change in temperature of device 1000. The sensor assembly 1014 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1014 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1014 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1016 is configured to facilitate communications between the apparatus 1000 and other devices in a wired or wireless manner. The device 1000 may access a wireless network based on a communication standard, such as Wi-Fi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1016 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1016 further includes a Near Field Communication (NFC) module to facilitate short-range communications.
In an exemplary embodiment, the apparatus 1000 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the charging methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 1004 comprising instructions, executable by the processor 1020 of the device 1000 to perform the charging method described above is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions, when executed by a processor of device 1000, enable device 1000 to perform the charging method described above.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (22)

1. A method of charging, the method comprising:
when charging is carried out by adopting first charging power, detecting first movement acceleration of a terminal through a motion sensor, wherein the first charging power comprises the maximum charging power of the terminal;
when the first moving acceleration is larger than a first acceleration threshold value, obtaining the moving time of the terminal, wherein the moving time is the duration of the first moving acceleration; when the moving time is larger than a time threshold, determining a second charging power of the terminal according to the first moving acceleration;
and switching the charging power of the terminal from the first charging power to the second charging power, wherein the second charging power is smaller than the first charging power.
2. The method of claim 1, further comprising:
when the moving time is equal to or smaller than the time threshold, determining that the charging power of the terminal is the first charging power.
3. The method according to claim 1 or 2, characterized in that at least two candidate charging powers are stored in the terminal;
the determining the second charging power of the terminal according to the first moving acceleration includes:
and determining the second charging power from the at least two candidate charging powers according to the first moving acceleration.
4. The method of claim 3, wherein each of the candidate charging powers corresponds to a range of acceleration values;
the determining the second charging power from the at least two candidate charging powers according to the first moving acceleration includes:
when the first moving acceleration belongs to the ith acceleration numerical range, determining the ith candidate charging power corresponding to the ith acceleration numerical range as the second charging power, wherein i is a positive integer.
5. The method of claim 1 or 2, wherein after switching the charging power of the terminal from the first charging power to the second charging power, further comprising:
when the state is still the charging state, continuously detecting a second movement acceleration of the terminal in a target time period through the motion sensor;
when the second movement acceleration is equal to or less than a second acceleration threshold, switching the charging power of the terminal from the second charging power to the first charging power.
6. The method of claim 5, further comprising:
and when the second moving acceleration is larger than the second acceleration threshold, determining that the charging power of the terminal is the second charging power.
7. The method of claim 1 or 2, wherein after the switching the charging power of the terminal from the first charging power to the second charging power, further comprising:
displaying a charging power setting interface of the terminal, wherein the charging power setting interface comprises a power switching button control, and the power switching button control is used for switching the charging power of the terminal from the second charging power to the first charging power;
receiving a trigger operation on the power switching button control;
switching the charging power from the second charging power to the first charging power according to the trigger operation.
8. The method of claim 1 or 2, wherein the motion sensor comprises at least one of a three-axis acceleration sensor, a six-axis acceleration sensor, a nine-axis acceleration sensor, a gyroscope sensor, and a posture sensor.
9. A method of charging, the method comprising:
when charging is carried out by adopting first charging power, detecting first movement acceleration of a terminal through a motion sensor, wherein the first charging power comprises the maximum charging power of the terminal;
when the first moving acceleration is larger than a first acceleration threshold value, obtaining the moving time of the terminal, wherein the moving time is the duration of the first moving acceleration; when the moving time is larger than a time threshold, determining that the charging state of the terminal is an interrupted charging state;
and interrupting the charging of the terminal according to the interrupted charging state.
10. The method of claim 9, wherein the terminal includes a voltage management chip PMIC;
the interrupting charging the terminal according to the interrupted charging state includes:
and the PMIC interrupts charging of the terminal according to the interrupted charging state.
11. A charging device, the device comprising:
the mobile terminal comprises a detection module, a processing module and a control module, wherein the detection module is configured to detect a first movement acceleration of the terminal through a motion sensor when charging is carried out by adopting a first charging power, and the first charging power comprises the maximum charging power of the terminal;
the determining module comprises an obtaining submodule and a determining submodule; the obtaining submodule is configured to obtain a moving time of the terminal when the first moving acceleration is greater than a first acceleration threshold, wherein the moving time is a duration of the first moving acceleration; the determination submodule is configured to determine a second charging power of the terminal according to the first movement acceleration when the movement time is greater than a time threshold;
a switching module configured to switch a charging power of the terminal from the first charging power to the second charging power, the second charging power being less than the first charging power.
12. The apparatus of claim 11, further comprising:
the determination module is configured to determine that the charging power of the terminal is the first charging power when the moving time is equal to or less than the time threshold.
13. The apparatus according to claim 11 or 12, wherein at least two candidate charging powers are stored in the terminal;
the determination submodule is configured to determine the second charging power from the at least two candidate charging powers according to the first moving acceleration.
14. The apparatus of claim 13, wherein each of the candidate charging powers corresponds to a range of acceleration values;
the determining submodule is configured to determine, when the first moving acceleration belongs to an ith acceleration numerical range, an ith candidate charging power corresponding to the ith acceleration numerical range as the second charging power, and i is a positive integer.
15. The apparatus of claim 11 or 12, further comprising:
the detection module is configured to continue to detect a second movement acceleration of the terminal within a target time period through the motion sensor when the state is still the charging state;
the switching module is configured to switch the charging power of the terminal from the second charging power to the first charging power when the second movement acceleration is equal to or less than a second acceleration threshold.
16. The apparatus of claim 15, further comprising:
the determining module is configured to determine that the charging power of the terminal is the second charging power when the second movement acceleration is greater than the second acceleration threshold.
17. The apparatus of claim 11 or 12, further comprising:
a display module configured to display a charging power setting interface of the terminal, wherein the charging power setting interface includes a power switching button control, and the power switching button control is used for switching the charging power of the terminal from the second charging power to the first charging power;
a receiving module configured to receive a trigger operation on the power switch button control;
the switching module is configured to switch the charging power from the second charging power to the first charging power according to the trigger operation.
18. The apparatus of claim 11 or 12, wherein the motion sensor comprises at least one of a three-axis acceleration sensor, a six-axis acceleration sensor, a nine-axis acceleration sensor, a gyroscope sensor, and a posture sensor.
19. A charging device, the device comprising:
the mobile terminal comprises a detection module, a processing module and a control module, wherein the detection module is configured to detect a first movement acceleration of the terminal through a motion sensor when charging is carried out by adopting a first charging power, and the first charging power comprises the maximum charging power of the terminal;
the determining module comprises an obtaining submodule and a determining submodule; the obtaining submodule is configured to obtain a moving time of the terminal when the first moving acceleration is greater than a first acceleration threshold, wherein the moving time is a duration of the first moving acceleration; the determination submodule is configured to determine that the terminal charging state is an interrupted charging state when the moving time is greater than a time threshold;
a control module configured to interrupt charging of the terminal according to the interrupted charging state.
20. The apparatus of claim 19, wherein a voltage management chip PMIC is included in the terminal;
the control module is configured to interrupt charging of the terminal by the PMIC according to the interrupted charging state.
21. A terminal, characterized in that the terminal comprises:
a processor;
a memory coupled to the processor;
wherein the processor is configured to load and execute executable instructions to implement the charging method of any one of claims 1 to 10.
22. A computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the charging method according to any one of claims 1 to 10.
CN201910325308.6A 2019-04-22 2019-04-22 Charging method, device, equipment and storage medium Active CN111834679B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910325308.6A CN111834679B (en) 2019-04-22 2019-04-22 Charging method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910325308.6A CN111834679B (en) 2019-04-22 2019-04-22 Charging method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111834679A CN111834679A (en) 2020-10-27
CN111834679B true CN111834679B (en) 2021-12-07

Family

ID=72911909

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910325308.6A Active CN111834679B (en) 2019-04-22 2019-04-22 Charging method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111834679B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105068632A (en) * 2015-09-07 2015-11-18 小米科技有限责任公司 Terminal charging method and device and terminal
CN106253415A (en) * 2016-09-14 2016-12-21 努比亚技术有限公司 A kind of charge control method and device
CN106450535A (en) * 2016-10-27 2017-02-22 乐视控股(北京)有限公司 Method and device for charging mobile terminal and charging system
CN106532839A (en) * 2016-12-07 2017-03-22 维沃移动通信有限公司 Charging control method and system
CN107077181A (en) * 2016-10-18 2017-08-18 深圳达闼科技控股有限公司 A kind of charging current limiter method, device and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013020284A1 (en) * 2011-08-10 2013-02-14 Abb Lv Installation Materials Co. Ltd., Beijing A charging pole for ev and a detecting method thereof
US9013143B2 (en) * 2012-03-09 2015-04-21 GM Global Technology Operations LLC Method for charging a plug-in electric vehicle
US9380453B2 (en) * 2013-06-10 2016-06-28 Lg Electronics Inc. Mobile terminal and method of controlling the same
CN106655339B (en) * 2016-11-14 2019-07-05 青岛海信移动通信技术股份有限公司 A kind of charging management method of mobile terminal, device and mobile terminal
CN107728847B (en) * 2017-10-31 2020-06-12 维沃移动通信有限公司 Charging interference processing method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105068632A (en) * 2015-09-07 2015-11-18 小米科技有限责任公司 Terminal charging method and device and terminal
CN106253415A (en) * 2016-09-14 2016-12-21 努比亚技术有限公司 A kind of charge control method and device
CN107077181A (en) * 2016-10-18 2017-08-18 深圳达闼科技控股有限公司 A kind of charging current limiter method, device and electronic equipment
CN106450535A (en) * 2016-10-27 2017-02-22 乐视控股(北京)有限公司 Method and device for charging mobile terminal and charging system
CN106532839A (en) * 2016-12-07 2017-03-22 维沃移动通信有限公司 Charging control method and system

Also Published As

Publication number Publication date
CN111834679A (en) 2020-10-27

Similar Documents

Publication Publication Date Title
CN108964182B (en) Reverse charging equipment, and method and device for adjusting reverse charging current
CN108110854B (en) Charging method, charging device and computer-readable storage medium
US11398744B2 (en) Charging method and device, electronic device and storage medium
CN107508350B (en) Electronic device, charging method thereof, and storage medium
EP3832841A1 (en) Charging circuit, electronic device, charging control method and device
EP3813223A1 (en) Charging control method, device and storage medium
EP3832840A1 (en) Charging method and device, terminal device and storage medium
CN110941321A (en) Power supply method and device for electronic equipment and intelligent equipment
CN113055966B (en) Frequency band switching method, frequency band switching device and storage medium
CN113224822A (en) Charging control method and device and storage medium
CN111834679B (en) Charging method, device, equipment and storage medium
CN107733021B (en) Control method and device of electronic equipment
CN107422911B (en) Pressure value detection method and device and computer readable storage medium
CN115940310A (en) Charging method, charging device, and storage medium
CN108539823B (en) Charging method and device
CN112311035B (en) Charge control method, charge control device, and readable storage medium
CN112448053B (en) Charging method and device of mobile terminal, terminal and storage medium
CN107528098B (en) Charging method and device
CN111835049B (en) Charging terminal, method and device
CN112448054B (en) Charging method and device of mobile terminal, terminal and storage medium
CN112752315B (en) Method for reducing terminal temperature, device for reducing terminal temperature and storage medium
EP4170856A1 (en) Charging method and device, terminal device and computer readable storage medium
EP4170855A1 (en) Charging method, electronic device and storage medium
CN111130223B (en) Wireless charging display method and device
US20220247198A1 (en) Charging method and device, and device

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