CN112821506B - Mobile terminal charging control method and device, storage medium and mobile terminal - Google Patents

Mobile terminal charging control method and device, storage medium and mobile terminal Download PDF

Info

Publication number
CN112821506B
CN112821506B CN202110143620.0A CN202110143620A CN112821506B CN 112821506 B CN112821506 B CN 112821506B CN 202110143620 A CN202110143620 A CN 202110143620A CN 112821506 B CN112821506 B CN 112821506B
Authority
CN
China
Prior art keywords
charging
mobile terminal
target
charging configuration
configuration items
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
CN202110143620.0A
Other languages
Chinese (zh)
Other versions
CN112821506A (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.)
Shandong Aode Smart New Energy Co ltd
Original Assignee
Shandong Aode Smart New Energy 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 Shandong Aode Smart New Energy Co ltd filed Critical Shandong Aode Smart New Energy Co ltd
Priority to CN202110143620.0A priority Critical patent/CN112821506B/en
Publication of CN112821506A publication Critical patent/CN112821506A/en
Application granted granted Critical
Publication of CN112821506B publication Critical patent/CN112821506B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • H02J7/00712Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters
    • 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/0013Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries acting upon several batteries simultaneously or sequentially
    • 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/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
    • 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/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
    • H02J7/0048Detection of remaining charge capacity or state of charge [SOC]
    • 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
    • H02J7/0071Regulation of charging or discharging current or voltage with a programmable schedule
    • 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
    • H02J7/007188Regulation of charging or discharging current or voltage the charge cycle being controlled or terminated in response to non-electric parameters
    • H02J7/007192Regulation of charging or discharging current or voltage the charge cycle being controlled or terminated in response to non-electric parameters in response to temperature
    • H02J7/007194Regulation of charging or discharging current or voltage the charge cycle being controlled or terminated in response to non-electric parameters in response to temperature of the battery

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a mobile terminal charging control method, a mobile terminal charging control device, a storage medium and a mobile terminal, wherein the method comprises the steps of acquiring electric quantity parameters of the mobile terminal when detecting that the mobile terminal is connected with charging equipment; inquiring target charging configuration items corresponding to the mobile terminal according to the inquiry sequence configured by each charging configuration item according to the electric quantity parameters; and controlling the charging equipment to charge the mobile terminal based on the target charging configuration items, and configuring the query sequence of the target charging configuration items as the first query sequence. According to the embodiment, after the target charging configuration item is determined according to the electric quantity parameter, the charging equipment is controlled to be the mobile terminal based on the target charging configuration item, and the query sequence of the target charging configuration item is set to be the first query sequence, so that when a plurality of charging equipment are supported in the mobile terminal, the charging equipment used in the prior time can be preferentially identified, the time spent for identifying the charging equipment is reduced, and the synchronicity between the charging indicator lamp and the icon display and the charging state is improved.

Description

Mobile terminal charging control method and device, storage medium and mobile terminal
Technical Field
The present application relates to the field of mobile terminals, and in particular, to a mobile terminal charging control method and apparatus, a storage medium, and a mobile terminal.
Background
Mobile terminals generally use rechargeable batteries, and charging the mobile terminals is one of the common operations. At present, a mobile terminal can support charging of various charging devices, such as a computer, a charger and the like, meanwhile, the charging devices can be subdivided into various types, each charging configuration is different, and if the configurations do not correspond, the charging is slow or the mobile terminal is damaged.
In order to solve the above problems, currently, a commonly adopted technical scheme is to start to identify the charging equipment supported by the mobile terminal in sequence when the mobile terminal detects the voltage rise on the charging power supply line, and directly adopt the charging configuration corresponding to the charging equipment to charge when the charging equipment supported by the mobile terminal is identified, however, the identification in a fixed sequence can reduce the identification speed of the charging equipment, so that the mobile terminal displays charging through a charging icon or an indicator lamp, but the mobile terminal does not start to charge.
There is thus a need for improvements and improvements in the art.
Disclosure of Invention
The application aims to solve the technical problem of providing a mobile terminal charging control method, a mobile terminal charging control device, a storage medium and a mobile terminal aiming at the defects of the prior art.
In order to solve the technical problem, a first aspect of the present application provides a mobile terminal charging control method, where a plurality of charging configuration items are preconfigured in the mobile terminal, and each of the plurality of charging configuration items is configured with a query sequence; the mobile terminal charging control method specifically comprises the following steps:
when detecting that a mobile terminal is connected with charging equipment, acquiring electric quantity parameters of the mobile terminal;
inquiring target charging configuration items corresponding to the mobile terminal in a plurality of charging configuration items according to the electric quantity parameters and the inquiry sequence configured by each charging configuration item;
and controlling the charging equipment to charge the mobile terminal based on the target charging configuration item, and configuring the query sequence of the target charging configuration item as a first query sequence.
The mobile terminal charging control method comprises the steps that each charging configuration item in the plurality of charging configuration items comprises a battery temperature, a battery residual quantity, a charging current and a charging equipment type; and the query orders of the respective configurations of the charging configuration items are different from each other.
The mobile terminal charging control method, wherein when detecting that the mobile terminal is connected with a charging device, the obtaining the electric quantity parameter of the mobile terminal specifically comprises:
detecting the level state of a charging voltage input pin configured by the mobile terminal;
and when the level state is high, acquiring the target battery temperature and the target battery residual capacity of the mobile terminal to obtain the electric quantity parameter of the mobile terminal.
The mobile terminal charging control method includes that the electric quantity parameter includes a target battery temperature and a target battery remaining electric quantity, and according to the electric quantity parameter, inquiring a target charging configuration item corresponding to the mobile terminal in a plurality of charging configuration items according to inquiry sequences respectively configured by the charging configuration items specifically includes:
inquiring candidate charging configuration items corresponding to the target battery temperature in the plurality of charging configuration items according to the target battery temperature and the inquiry sequence;
and selecting a target charging configuration item from the inquired candidate charging configuration items according to the inquiry sequence according to the target battery residual quantity.
The mobile terminal charging control method, wherein the controlling the charging device to charge the mobile terminal based on the target charging configuration item specifically includes:
detecting whether the type of the charging equipment in the target charging configuration item is the same as the type of the target equipment of the charging equipment connected with the mobile terminal;
when the charging equipment type is the same as the target equipment type, taking the charging current in the target charging configuration item as a target charging current corresponding to the mobile terminal;
and controlling the charging equipment to charge the mobile terminal according to the target charging current.
The mobile terminal charging control method, wherein the configuring the query sequence of the target charging configuration item as the first query sequence specifically comprises:
and configuring the query sequence corresponding to the target charging configuration item as a first query sequence, and updating the query sequence corresponding to each charging configuration item except the target charging configuration item in the plurality of charging configuration items.
The mobile terminal charging control method, wherein the controlling the charging device to charge the mobile terminal based on the target charging configuration item specifically includes:
detecting whether the charging configuration items which are not queried exist in the plurality of charging configuration items or not when the charging equipment type is different from the target equipment type;
if the charging configuration item which is not queried does not exist, prompting the charging failure;
if the charging configuration items which are not queried exist, continuing to execute the steps of querying the target charging configuration items corresponding to the mobile terminal in a plurality of charging configuration items according to the query sequence configured by each charging configuration item from the non-queried charging configuration items according to the electric quantity parameters until all the charging configuration items are queried or the mobile terminal enters a charging state.
The second aspect of the embodiment of the application provides a mobile terminal charging control device, which is applied to a mobile terminal configured with a plurality of charging configuration items, wherein each charging configuration item in the plurality of charging configuration items is configured with a query sequence; the mobile terminal charging control method specifically comprises the following steps:
the acquisition module is used for acquiring electric quantity parameters of the mobile terminal when the mobile terminal is detected to be connected with the charging equipment;
the query module is used for querying target charging configuration items corresponding to the mobile terminal in a plurality of charging configuration items according to the electric quantity parameters and the query sequence configured by each charging configuration item;
and the control module is used for controlling the charging equipment to charge the mobile terminal based on the target charging configuration item and configuring the query sequence of the target charging configuration item as a first query sequence.
A third aspect of the embodiments of the present application provides a computer-readable storage medium storing one or more programs executable by one or more processors to implement steps in a mobile terminal charging control method as described in any one of the above.
A fourth aspect of an embodiment of the present application provides a mobile terminal, including: a processor, a memory, and a communication bus; the memory has stored thereon a computer readable program executable by the processor;
the communication bus realizes connection communication between the processor and the memory;
the processor, when executing the computer readable program, implements the steps in a mobile terminal charging control method as described in any one of the above.
The beneficial effects are that: compared with the prior art, the application provides a mobile terminal charging control method, a mobile terminal charging control device, a storage medium and a mobile terminal, wherein the method comprises the steps of acquiring electric quantity parameters of the mobile terminal when detecting that the mobile terminal is connected with charging equipment; inquiring target charging configuration items corresponding to the mobile terminal in a plurality of charging configuration items according to the electric quantity parameters and the inquiry sequence configured by each charging configuration item; and controlling the charging equipment to charge the mobile terminal based on the target charging configuration item, and configuring the query sequence of the target charging configuration item as a first query sequence. According to the embodiment, after the target charging configuration item is determined according to the electric quantity parameter, the charging equipment is controlled to be the mobile terminal based on the target charging configuration item, and the query sequence of the target charging configuration item is set to be the first query sequence, so that when a plurality of charging equipment are supported in the mobile terminal, the charging equipment used in the last time can be preferentially identified, the time spent for identifying the charging equipment is reduced, the charging reaction efficiency is improved, and the synchronicity between the charging indicator lamp and the icon display and the charging state can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without creative effort for a person of ordinary skill in the art.
Fig. 1 is a flowchart of a mobile terminal charging control method provided by the application.
Fig. 2 is a flowchart of step S10 in the mobile terminal charging control method provided by the present application.
Fig. 3 is a flowchart of step S20 in the mobile terminal charging control method provided by the present application.
Fig. 4 is a schematic diagram of a middle structure of a mobile terminal charging control device provided by the application.
Fig. 5 is a schematic structural diagram of a mobile terminal provided by the present application.
Detailed Description
The application provides a mobile terminal charging control method, a mobile terminal charging control device, a storage medium and a mobile terminal, and in order to make the purposes, technical schemes and effects of the application clearer and more definite, the application is further described in detail below by referring to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. The term "and/or" as used herein includes all or any element and all combination of one or more of the associated listed items.
It will be understood by those skilled in the art that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs unless defined otherwise. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
In particular implementations, the mobile terminals described in embodiments of the present application include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having a touch-sensitive surface (e.g., a touch display screen and/or a touch pad). It should also be appreciated that in some embodiments, the device is not a portable communication device, but rather a desktop computer having a touch-sensitive surface (e.g., a touch display screen and/or a touchpad).
In the following discussion, a mobile terminal including a display and a touch-sensitive surface is described. However, it should be understood that the mobile terminal may also include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The mobile terminal supports various applications, such as one or more of the following: drawing applications, presentation applications, word processing applications, video conferencing applications, disk burning applications, spreadsheet applications, gaming applications, telephony applications, video conferencing applications, email applications, instant messaging applications, workout support applications, photo management applications, data camera applications, digital video camera applications, web browsing applications, digital music player applications, and/or digital video playing applications, among others.
Various applications that may be executed on the mobile terminal may use at least one common physical user interface device such as a touch-sensitive surface. The first or more functions of the touch-sensitive surface and corresponding information displayed on the terminal may be adjusted and/or changed between applications and/or within the corresponding applications. In this way, the common physical framework (e.g., touch-sensitive surface) of the terminal may support various applications with user interfaces that are intuitive and transparent to the user.
It should be understood that the sequence number and the size of each step in this embodiment do not mean the sequence of execution, and the execution sequence of each process is determined by the function and the internal logic of each process, and should not be construed as limiting the implementation process of the embodiment of the present application.
The inventor has found that it is common for mobile terminals to use rechargeable batteries, and charging the mobile terminals is one of the common operations. At present, a mobile terminal can support charging of various charging devices, such as a computer, a charger and the like, meanwhile, the charging devices can be subdivided into various types, each charging configuration is different, and if the configurations do not correspond, the charging is slow or the mobile terminal is damaged.
In order to solve the above problems, currently, a commonly adopted technical scheme is to start to identify the charging equipment supported by the mobile terminal in sequence when the mobile terminal detects the voltage rise on the charging power supply line, and directly adopt the charging configuration corresponding to the charging equipment to charge when the charging equipment supported by the mobile terminal is identified, however, the identification in a fixed sequence can reduce the identification speed of the charging equipment, so that the mobile terminal displays charging through a charging icon or an indicator lamp, but the mobile terminal does not start to charge.
In the embodiment of the application, when the mobile terminal is detected to be connected with the charging equipment, acquiring the electric quantity parameter of the mobile terminal; inquiring target charging configuration items corresponding to the mobile terminal in a plurality of charging configuration items according to the electric quantity parameters and the inquiry sequence configured by each charging configuration item; and controlling the charging equipment to charge the mobile terminal based on the target charging configuration item, and configuring the query sequence of the target charging configuration item as a first query sequence. According to the embodiment, after the target charging configuration item is determined according to the electric quantity parameter, the charging equipment is controlled to be the mobile terminal based on the target charging configuration item, and the query sequence of the target charging configuration item is set to be the first query sequence, so that when a plurality of charging equipment are supported in the mobile terminal, the charging equipment used in the last time can be preferentially identified, the time spent for identifying the charging equipment is reduced, the charging reaction efficiency is improved, and the synchronicity between the charging indicator lamp and the icon display and the charging state can be improved.
The application will be further described by the description of embodiments with reference to the accompanying drawings.
The present embodiment provides a mobile terminal charging control method, as shown in fig. 1 and fig. 2, where the method includes:
and S10, acquiring electric quantity parameters of the mobile terminal when the mobile terminal is detected to be connected with the charging equipment.
Specifically, the mobile terminal is configured with a rechargeable battery, such as a mobile phone, a smart watch, a tablet computer, and the like. The charging device is an external device for supplying power to the mobile terminal, such as a computer, a charger bank, and the like. Therefore, an application scenario of the mobile terminal charging control method provided in this embodiment may be an application scenario in which the mobile terminal is charged by the charging device, for example, an application scenario in which the smart phone charges a rechargeable battery configured by the smart phone through the charger.
The mobile terminal is configured with a plurality of charging configuration items, each of the plurality of charging configuration items comprises a battery temperature, a battery residual capacity, a charging current and a charging device type, for example, the plurality of charging configuration items comprise a charging configuration item A, the charging configuration item A comprises 36 degrees celsius, 50 percent, a computer and 500mA, wherein 36 degrees celsius is the battery temperature, 50 percent is the battery residual capacity, the computer is the charging device type, 500mA is the charging current, and the charging configuration item is expressed as: when the battery temperature is 36 ℃ and the battery capacity of the mobile terminal is 50%, the charging current for charging the mobile terminal by the computer is 500mA. In addition, each of the plurality of charging configuration items is configured with a query order, and the query orders of the respective configurations of the charging configuration items are different from each other. For example, the plurality of charging configuration items include a charging configuration item a, a charging configuration item B, and a charging configuration item C, wherein the query order of the charging configuration item a is a first bit, the query order of the charging configuration item B is a second bit, and the query order of the charging configuration item C is a third bit.
In one implementation manner of this embodiment, the circuit parameter may include a target battery temperature and a target battery remaining power, so as to match the target battery temperature and the target battery remaining power with the battery temperature and the battery remaining power in the charging configuration item, so as to obtain the target charging configuration item. Correspondingly, as shown in fig. 2, when the mobile terminal is detected to be connected with the charging device, the acquiring the electric quantity parameter of the mobile terminal specifically includes:
s11, detecting the level state of a charging voltage input pin configured by the mobile terminal;
and S12, when the level state is high, acquiring the target battery temperature and the target battery residual capacity of the mobile terminal to obtain the electric quantity parameter of the mobile terminal.
Specifically, the charging voltage input pin is located on the charging interface of the mobile terminal, and is in a low level state when the charging interface of the mobile terminal is not connected with the charging device, and is in a high level state when the charging interface of the mobile terminal is connected with the charging device. Thus, it is possible to determine that the terminal device is connected to the charging device by detecting the level state of the charging voltage input pin, and it is possible to take the time at which the charging voltage input pin is converted from the low level state to the high level state as the time at which the charging device is connected, and acquire the target battery temperature and the target battery remaining amount of the mobile terminal at the time. In addition, the charging device is provided with a power supply pin, and the power supply pin outputs power supply voltage to charge the mobile terminal, wherein the power supply voltage output by the power supply pin can be 5V, 9V and 12V, and the power supply voltage output by the power supply pin can be adjusted according to the charging current in the charging configuration item, so that the charging device can improve the power supply voltage matched with the charging current for the mobile terminal.
And S20, according to the electric quantity parameters, inquiring target charging configuration items corresponding to the mobile terminal in a plurality of charging configuration items according to the inquiry sequence configured in each charging configuration item.
Specifically, the target charging configuration items are included in a plurality of charging configuration items, and the target charging configuration items are charging configuration items matched with the electric quantity parameters and found first according to the inquiry sequence configured by each charging configuration item. For example, the plurality of charging configuration items include a charging configuration item a, a charging configuration item B, a charging configuration item C, and a charging configuration item D, wherein a query order corresponding to the charging configuration item a is a first bit, a query order corresponding to the charging configuration item B is a second bit, a query order corresponding to the charging configuration item C is a third bit, and a query order corresponding to the charging configuration item D is a fourth bit; matching the charging configuration item A with the electric quantity parameters according to the query sequence of each charging configuration item, then analogizing the charging configuration item B with the electric quantity parameters, and finally matching the charging configuration item D with the electric quantity parameters; and when the charging configuration items A and the electric quantity parameters are used, the charging configuration item A is directly used as a target charging configuration item, and the operation of inquiring the target charging configuration item corresponding to the mobile terminal in a plurality of charging configuration items according to the inquiry sequence configured in each charging configuration item is stopped.
In an implementation manner of this embodiment, as shown in fig. 3, according to the electrical quantity parameter, the querying, according to a query sequence, of a plurality of charging configuration items configured with each charging configuration item, a target charging configuration item corresponding to the mobile terminal specifically includes:
s21, inquiring candidate charging configuration items corresponding to the target battery temperature in the plurality of charging configuration items according to the target battery temperature and the inquiry sequence;
s22, selecting a target charging configuration item from the inquired candidate charging configuration items according to the inquiry sequence according to the target battery residual quantity.
Specifically, each of the plurality of charging configuration items includes a battery temperature, so that the battery temperature is firstly queried in the plurality of charging configuration items in turn according to a query sequence, when the charging configuration item including the battery temperature is queried, the queried charging configuration item is taken as a target charging configuration item and query operation is stopped, and the operation of selecting the target charging configuration item from the queried candidate charging configuration items according to the query sequence according to the target battery residual quantity is not performed. For example, the plurality of charging profiles sequentially include, in query order, from front to back: [0 ℃,40%, computer, 550mA ], [32 ℃,50%, computer, 590mA ], [34 ℃,57%, computer, 600mA ] and [36 ℃,60%, computer, 700mA ]; the target battery temperature is 34 degrees celsius, then [34 degrees celsius, 57%, computer, 600mA ] is the target charging configuration item.
Further, since it is impossible to include all battery temperature values in the several charging configuration items, when the target charging configuration item is queried in the several charging configuration items based on the target battery temperature, the target charging configuration item including the target battery temperature may not be found. Therefore, according to the target battery temperature, when candidate charging configuration items corresponding to the target battery temperature are queried in the plurality of charging configuration items according to the query sequence, the charging configuration item corresponding to the battery temperature with the smallest absolute value of the difference value of the target battery temperature can be selected, the selected charging configuration item is used as the candidate charging configuration item, and then the target charging configuration item is selected from the candidate charging configuration items based on the residual electric quantity of the target battery. Thus, when the candidate charging configuration items corresponding to the target battery temperature are inquired in the plurality of charging configuration items according to the target battery temperature and the inquiry sequence, the number of the candidate charging configuration items can be detected, and when the number of the candidate charging configuration items is 1, the candidate charging configuration items are taken as target charging configuration items; when the number of the candidate charging configuration items is greater than 1, selecting a target charging configuration item from the queried candidate charging configuration items according to the query sequence, wherein the process of selecting the target charging configuration item from the queried candidate charging configuration items according to the query sequence is the same as the process of querying the candidate charging configuration items according to the query sequence according to the target battery temperature, and is not described herein, and when the candidate charging configuration item containing the target battery remaining circuit is not found in the candidate charging configuration items, selecting the candidate charging configuration item corresponding to the battery remaining electric quantity with the minimum absolute value of the difference value of the target battery remaining electric quantity, and taking the selected candidate charging configuration item as the target charging configuration item.
Illustrating: the plurality of charging configuration items sequentially comprise [0 ℃,40%, computer, 550mA ], [32 ℃,50%, computer, 590mA ], [34 ℃,57%, computer, 600mA ] and [36 ℃,60%, computer, 700mA ] according to the query sequence, wherein the target battery temperature of the mobile terminal is 33 ℃, and the residual capacity of the target battery is 51%, then the candidate charging configuration items queried based on the target battery temperature comprise [32 ℃,50%, computer, 590mA ] and [34 ℃,57%, computer, 600mA ], and the candidate charging configuration items based on the residual capacity of the target battery are selected from [32 ℃,50%, computer, 590mA ] and [34 ℃,57%, computer, 600mA ], wherein the absolute value of the difference between 50% and 51% is minimum, and thus [32 ℃,50%, computer, 590mA ] is the target charging configuration item.
And S30, controlling the charging equipment to charge the mobile terminal based on the target charging configuration item, and configuring the query sequence of the target charging configuration item as a first query sequence.
Specifically, the target charging configuration item includes a battery temperature, a battery remaining capacity, a charging current and a charging device type, and controlling the charging device to charge the mobile terminal based on the target charging configuration item refers to controlling the charging device to charge the mobile terminal according to the charging capacity in the target charging configuration item. The first query sequence refers to that when the charging configuration items are queried in a plurality of charging configuration items, the charging configuration items configured with the first query sequence are queried first, so that the charging configuration items used for the previous time can be queried preferentially, and the identification speed of the charging equipment can be improved. The mobile terminal is characterized in that the mobile terminal is provided with a fixed charging device, the fixed charging device is used for charging the mobile terminal, the probability that the charging device used before is the charging device used by the user frequently is high, and the probability that the charging device used before is the charging device used at this time is correspondingly high, so that the charging device can be quickly inquired, and the identification speed of the charging device can be generally improved in the use period of the mobile terminal.
In one implementation manner of this embodiment, the controlling the charging device to charge the mobile terminal based on the target charging configuration item specifically includes:
detecting whether the type of the charging equipment in the target charging configuration item is the same as the type of the target equipment of the charging equipment connected with the mobile terminal;
when the type of the charging equipment is the same as the type of the target equipment, taking the charging current in the target charging configuration item as a target charging current corresponding to the mobile terminal, and controlling the charging equipment to charge the mobile terminal according to the target charging current;
detecting whether the charging configuration items which are not queried exist in the plurality of charging configuration items or not when the charging equipment type is different from the target equipment type;
if the charging configuration item which is not queried does not exist, prompting the charging failure;
if the charging configuration items which are not queried exist, continuing to execute the steps of querying the target charging configuration items corresponding to the mobile terminal in a plurality of charging configuration items according to the electric quantity parameters from the charging configuration items which are not queried according to the query sequence, until all the charging configuration items are queried or the mobile terminal enters a charging state.
Specifically, each of the plurality of charging configuration items includes a charging device type, and the plurality of charging configuration items may include a first charging configuration item and a second charging configuration item, the charging device type in the first charging configuration item being different from the charging device type of the second charging configuration item. Thus, after the target charging configuration item is acquired, whether the type of the charging device in the target charging configuration item is the same as the type of the target device of the charging device or not can be detected, so as to determine whether the target charging configuration item can be used as the charging configuration item corresponding to the charging device or not.
In addition, when the type of the charging device in the target charging configuration item is the same as the type of the target device of the charging device, the target charging configuration item may be directly used as the charging configuration item corresponding to the charging device. And when the type of the charging equipment in the target charging configuration items is different from the type of the target charging equipment of the charging equipment, searching the target charging configuration items in the plurality of charging configuration items again. At this time, since some charging configuration items may be already queried in the plurality of charging configuration items, some charging configuration items are not queried, so that when the target charging configuration items are searched again in the plurality of charging configuration items, only a part of the charging configuration items which are not queried are queried, and thus, the fact that the queried target charging configuration items which are queried the last time are repeatedly searched can be avoided to enable the query to enter a dead cycle. Of course, after all the charging configuration items are searched, the target charging configuration item matched with the charging equipment is not searched yet, so that the user can be prompted that the charging fails, and the charging equipment cannot be identified, and the user is recommended to replace the charging equipment.
In one implementation manner of this embodiment, since the query orders configured by the charging configuration items are different from each other, while changing the query order of the target charging configuration, the query order of the remaining charging configuration items needs to be updated accordingly. Thus, the query sequence of the target charging configuration item is configured to be the first query sequence specifically:
and configuring the query sequence corresponding to the target charging configuration item as a first query sequence, and updating the query sequence corresponding to each charging configuration item except the target charging configuration item in the plurality of charging configuration items.
Specifically, after configuring a query sequence corresponding to a target charging configuration item as a first query sequence, marking each charging configuration item except the target charging configuration item in a plurality of charging configuration items as each reference charging configuration item, and comparing the query sequence of each reference charging configuration item with the query sequence of the target charging configuration item; if the query sequence of the reference charging configuration item is higher than the query sequence of the target charging configuration item, the query sequence of the reference charging configuration item is moved backward by one bit, and if the query sequence of the reference charging configuration item is later than the query sequence of the target charging configuration item, the query sequence of the reference charging configuration item is kept unchanged so as to update the query sequences corresponding to the charging configuration items except the target charging configuration item in the charging configuration items.
In summary, the present embodiment provides a mobile terminal charging control method, where the method includes acquiring an electric quantity parameter of a mobile terminal when detecting that the mobile terminal is connected to a charging device; inquiring target charging configuration items corresponding to the mobile terminal in a plurality of charging configuration items according to the electric quantity parameters and the inquiry sequence configured by each charging configuration item; and controlling the charging equipment to charge the mobile terminal based on the target charging configuration item, and configuring the query sequence of the target charging configuration item as a first query sequence. According to the embodiment, after the target charging configuration item is determined according to the electric quantity parameter, the charging equipment is controlled to be the mobile terminal based on the target charging configuration item, and the query sequence of the target charging configuration item is set to be the first query sequence, so that when a plurality of charging equipment are supported in the mobile terminal, the charging equipment used in the last time can be preferentially identified, the time spent for identifying the charging equipment is reduced, the charging reaction efficiency is improved, and the synchronicity between the charging indicator lamp and the icon display and the charging state can be improved.
Based on the mobile terminal charging control method, the embodiment provides a mobile terminal charging control device, which is applied to a mobile terminal configured with a plurality of charging configuration items, wherein each charging configuration item in the plurality of charging configuration items is configured with a query sequence; as shown in fig. 4, the mobile terminal charging control method specifically includes:
the acquiring module 100 is configured to acquire an electric quantity parameter of a mobile terminal when detecting that the mobile terminal is connected to a charging device;
the query module 200 is configured to query, according to the electric quantity parameter, a target charging configuration item corresponding to the mobile terminal in a plurality of charging configuration items according to a query sequence configured by each charging configuration item;
the control module 300 is configured to control the charging device to charge the mobile terminal based on the target charging configuration item, and configure a query order of the target charging configuration item as a first query order.
In one embodiment, each of the number of charging profiles includes a battery temperature, a battery remaining power, a charging current, and a charging device type; and the query orders of the respective configurations of the charging configuration items are different from each other.
In one embodiment, the obtaining module is specifically configured to:
detecting the level state of a charging voltage input pin configured by the mobile terminal;
and when the level state is high, acquiring the target battery temperature and the target battery residual capacity of the mobile terminal to obtain the electric quantity parameter of the mobile terminal.
In one embodiment, the power parameter includes a target battery temperature and a target battery remaining power, and the determining module is specifically configured to:
inquiring candidate charging configuration items corresponding to the target battery temperature in the plurality of charging configuration items according to the target battery temperature and the inquiry sequence;
and selecting a target charging configuration item from the inquired candidate charging configuration items according to the inquiry sequence according to the target battery residual quantity.
In one embodiment, the control module is specifically configured to:
detecting whether the type of the charging equipment in the target charging configuration item is the same as the type of the target equipment of the charging equipment connected with the mobile terminal;
when the charging equipment type is the same as the target equipment type, taking the charging current in the target charging configuration item as a target charging current corresponding to the mobile terminal;
and controlling the charging equipment to charge the mobile terminal according to the target charging current.
In one embodiment, the control module is specifically configured to:
and configuring the query sequence corresponding to the target charging configuration item as a first query sequence, and updating the query sequence corresponding to each charging configuration item except the target charging configuration item in the plurality of charging configuration items.
In one embodiment, the control module is specifically configured to:
detecting whether the charging configuration items which are not queried exist in the plurality of charging configuration items or not when the charging equipment type is different from the target equipment type;
if the charging configuration item which is not queried does not exist, prompting the charging failure;
if the charging configuration items which are not queried exist, continuing to execute the steps of querying the target charging configuration items corresponding to the mobile terminal in a plurality of charging configuration items according to the electric quantity parameters from the charging configuration items which are not queried according to the query sequence, until all the charging configuration items are queried or the mobile terminal enters a charging state.
In addition, the specific operation of the mobile terminal charging control device is described in detail in the above method, and will not be described here.
Based on the above mobile terminal charging control method, the present embodiment provides a computer readable storage medium storing one or more programs executable by one or more processors to implement the steps in the mobile terminal charging control method as described in the above embodiment.
Based on the above mobile terminal charging control method, the present application also provides a mobile terminal, as shown in fig. 5, which includes at least one processor (processor) 20; a display screen 21; and a memory (memory) 22, which may also include a communication interface (Communications Interface) 23 and a bus 24. Wherein the processor 20, the display 21, the memory 22 and the communication interface 23 may communicate with each other via a bus 24. The display screen 21 is configured to display a user guidance interface preset in the initial setting mode. The communication interface 23 may transmit information. The processor 20 may invoke logic instructions in the memory 22 to perform the methods of the embodiments described above.
Further, the logic instructions in the memory 22 described above may be implemented in the form of software functional units and stored in a computer readable storage medium when sold or used as a stand alone product.
The memory 22, as a computer readable storage medium, may be configured to store a software program, a computer executable program, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 performs functional applications and data processing, i.e. implements the methods of the embodiments described above, by running software programs, instructions or modules stored in the memory 22.
The memory 22 may include a storage program area that may store an operating system, at least one application program required for functions, and a storage data area; the storage data area may store data created according to the use of the mobile terminal, etc. In addition, the memory 22 may include high-speed random access memory, and may also include nonvolatile memory. For example, a plurality of media capable of storing program codes such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or a transitory storage medium may be used.
In addition, the specific processes that the storage medium and the plurality of instruction processors in the mobile terminal load and execute are described in detail in the above method, and are not stated here.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (7)

1. The mobile terminal charging control method is characterized in that a plurality of charging configuration items are pre-configured in the mobile terminal, and each charging configuration item in the plurality of charging configuration items is configured with a query sequence; the mobile terminal charging control method specifically comprises the following steps:
when detecting that a mobile terminal is connected with charging equipment, acquiring electric quantity parameters of the mobile terminal;
inquiring target charging configuration items corresponding to the mobile terminal in a plurality of charging configuration items according to the electric quantity parameters and the inquiry sequence configured by each charging configuration item;
controlling the charging equipment to charge the mobile terminal based on the target charging configuration item, and configuring the query sequence of the target charging configuration item as a first query sequence;
the electric quantity parameters comprise target battery temperature and target battery residual electric quantity, and the inquiring of the target charging configuration items corresponding to the mobile terminal in a plurality of charging configuration items according to the inquiry sequence configured by each charging configuration item according to the electric quantity parameters specifically comprises:
inquiring candidate charging configuration items corresponding to the target battery temperature in the plurality of charging configuration items according to the target battery temperature and the inquiry sequence;
selecting a target charging configuration item from the inquired candidate charging configuration items according to the inquiry sequence according to the target battery residual quantity;
the controlling the charging device to charge the mobile terminal based on the target charging configuration item specifically includes:
detecting whether the type of the charging equipment in the target charging configuration item is the same as the type of the target equipment of the charging equipment connected with the mobile terminal;
when the charging equipment type is the same as the target equipment type, taking the charging current in the target charging configuration item as a target charging current corresponding to the mobile terminal;
controlling the charging equipment to charge the mobile terminal according to the target charging current;
the controlling the charging device to charge the mobile terminal based on the target charging configuration item specifically includes:
detecting whether the charging configuration items which are not queried exist in the plurality of charging configuration items or not when the charging equipment type is different from the target equipment type;
if the charging configuration item which is not queried does not exist, prompting the charging failure;
if the charging configuration items which are not queried exist, continuing to execute the steps of querying the target charging configuration items corresponding to the mobile terminal in a plurality of charging configuration items according to the query sequence configured by each charging configuration item from the non-queried charging configuration items according to the electric quantity parameters until all the charging configuration items are queried or the mobile terminal enters a charging state.
2. The mobile terminal charging control method of claim 1, wherein each of the plurality of charging configuration items comprises a battery temperature, a battery remaining power, a charging current, and a charging device type; and the query orders of the respective configurations of the charging configuration items are different from each other.
3. The method for controlling charging of a mobile terminal according to claim 1, wherein the step of obtaining the electric quantity parameter of the mobile terminal when the mobile terminal is detected to be connected to the charging device specifically comprises:
detecting the level state of a charging voltage input pin configured by the mobile terminal;
and when the level state is high, acquiring the target battery temperature and the target battery residual capacity of the mobile terminal to obtain the electric quantity parameter of the mobile terminal.
4. The method for controlling charging of a mobile terminal according to claim 1, wherein the configuring the query sequence of the target charging configuration item as the first query sequence specifically includes:
and configuring the query sequence corresponding to the target charging configuration item as a first query sequence, and updating the query sequence corresponding to each charging configuration item except the target charging configuration item in the plurality of charging configuration items.
5. The mobile terminal charging control device is characterized by being applied to a mobile terminal provided with a plurality of charging configuration items, wherein each charging configuration item in the plurality of charging configuration items is provided with a query sequence;
the acquisition module is used for acquiring electric quantity parameters of the mobile terminal when the mobile terminal is detected to be connected with the charging equipment;
the query module is used for querying target charging configuration items corresponding to the mobile terminal in a plurality of charging configuration items according to the electric quantity parameters and the query sequence configured by each charging configuration item; inquiring candidate charging configuration items corresponding to the target battery temperature in the plurality of charging configuration items according to the target battery temperature and the inquiry sequence; selecting a target charging configuration item from the inquired candidate charging configuration items according to the inquiry sequence according to the target battery residual quantity;
the control module is used for controlling the charging equipment to charge the mobile terminal based on the target charging configuration item and configuring the query sequence of the target charging configuration item as a first query sequence; detecting whether the type of the charging equipment in the target charging configuration item is the same as the type of the target equipment of the charging equipment connected with the mobile terminal; when the charging equipment type is the same as the target equipment type, taking the charging current in the target charging configuration item as a target charging current corresponding to the mobile terminal; controlling the charging equipment to charge the mobile terminal according to the target charging current; detecting whether the charging configuration items which are not queried exist in the plurality of charging configuration items or not when the charging equipment type is different from the target equipment type; if the charging configuration item which is not queried does not exist, prompting the charging failure; if the charging configuration items which are not queried exist, continuing to execute the steps of querying the target charging configuration items corresponding to the mobile terminal in a plurality of charging configuration items according to the query sequence configured by each charging configuration item from the non-queried charging configuration items according to the electric quantity parameters until all the charging configuration items are queried or the mobile terminal enters a charging state.
6. A computer-readable storage medium storing one or more programs executable by one or more processors to implement the steps in the mobile terminal charging control method of any one of claims 1-4.
7. A mobile terminal, comprising: a processor, a memory, and a communication bus; the memory has stored thereon a computer readable program executable by the processor;
the communication bus realizes connection communication between the processor and the memory;
the processor, when executing the computer readable program, implements the steps in the mobile terminal charging control method as claimed in any one of claims 1 to 4.
CN202110143620.0A 2021-02-02 2021-02-02 Mobile terminal charging control method and device, storage medium and mobile terminal Active CN112821506B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110143620.0A CN112821506B (en) 2021-02-02 2021-02-02 Mobile terminal charging control method and device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110143620.0A CN112821506B (en) 2021-02-02 2021-02-02 Mobile terminal charging control method and device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN112821506A CN112821506A (en) 2021-05-18
CN112821506B true CN112821506B (en) 2023-10-20

Family

ID=75860498

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110143620.0A Active CN112821506B (en) 2021-02-02 2021-02-02 Mobile terminal charging control method and device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN112821506B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051027A (en) * 2012-12-26 2013-04-17 Tcl通讯(宁波)有限公司 Mobile terminal and charging method and charging system for charging mobile terminal at different temperatures
CN106096361A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 A kind of unlocked by fingerprint method and mobile terminal
CN106446841A (en) * 2016-09-27 2017-02-22 广东欧珀移动通信有限公司 Fingerprint template matching order updating method and terminal
CN107069844A (en) * 2017-01-13 2017-08-18 广东欧珀移动通信有限公司 Charging method, device and terminal
CN108254697A (en) * 2018-01-10 2018-07-06 上海展扬通信技术有限公司 Battery type detection method, detection terminal and storage medium
CN108879842A (en) * 2018-06-29 2018-11-23 努比亚技术有限公司 Charge control method, mobile terminal and computer readable storage medium
WO2020108639A1 (en) * 2018-11-30 2020-06-04 宁德时代新能源科技股份有限公司 Charging method, apparatus and device, medium, battery management system and charging pile

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051027A (en) * 2012-12-26 2013-04-17 Tcl通讯(宁波)有限公司 Mobile terminal and charging method and charging system for charging mobile terminal at different temperatures
CN106096361A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 A kind of unlocked by fingerprint method and mobile terminal
CN106446841A (en) * 2016-09-27 2017-02-22 广东欧珀移动通信有限公司 Fingerprint template matching order updating method and terminal
CN107069844A (en) * 2017-01-13 2017-08-18 广东欧珀移动通信有限公司 Charging method, device and terminal
CN108254697A (en) * 2018-01-10 2018-07-06 上海展扬通信技术有限公司 Battery type detection method, detection terminal and storage medium
CN108879842A (en) * 2018-06-29 2018-11-23 努比亚技术有限公司 Charge control method, mobile terminal and computer readable storage medium
WO2020108639A1 (en) * 2018-11-30 2020-06-04 宁德时代新能源科技股份有限公司 Charging method, apparatus and device, medium, battery management system and charging pile

Also Published As

Publication number Publication date
CN112821506A (en) 2021-05-18

Similar Documents

Publication Publication Date Title
US11368039B2 (en) Battery charging method and electronic device
US9285851B2 (en) Optimizing battery use for known future load
EP3349323B1 (en) Terminal and method for charging the same
CN106772091B (en) Method and device for updating battery capacity value and terminal
KR102599383B1 (en) Electronic device for displaying an executable application on a split screen and method for the same
EP3193179B1 (en) Electric quantity detection method and apparatus, terminal and storage medium
US10439403B2 (en) Smart bag with display for charging a device
EP3771987A1 (en) Electronic device for preventing damage of usb device and operating method thereof
US20160064980A1 (en) Method of managing the charging of battery and electronic device adapted thereto
US20180294654A1 (en) Storage battery pack, method for controlling storage battery pack, and method for controlling information terminal
CN112596742A (en) BMC software upgrading method, device, equipment and machine readable storage medium
CN104053030A (en) Combined television starting method and combined television
CN112821506B (en) Mobile terminal charging control method and device, storage medium and mobile terminal
CN106786959B (en) Charge control method, device and terminal
CN113364105B (en) Control method, device, terminal and storage medium compatible with charging of multiple batteries
CN110956455A (en) Working method of virtual coin portable operation terminal based on block chain
KR20200100958A (en) Electronic device and method for prefetching application
CN110213811B (en) Mobile terminal shutdown electric quantity control processing method, mobile terminal and storage medium
US11023224B2 (en) Firmware update method for smart charging device
US20190131817A1 (en) Electronic device comprising a battery
CN112701759B (en) Control method of terminal equipment, storage medium and terminal equipment
CN113991764A (en) Charger charging control method and device and charger
CN108321897B (en) Charging control method based on temperature balance, mobile terminal and storage medium
CN108369526B (en) Virtual machine starting method and device and intelligent terminal
CN116865407B (en) Charging method and terminal equipment

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20230917

Address after: 276000 South Road, 600 meters east of the intersection of Huanghai 8th Road and Tuanlin Street, Tuanlin Town, Lingang Economic Development Zone, Linyi City, Shandong Province

Applicant after: Shandong Aode Smart New Energy Co.,Ltd.

Address before: 516003 No.86, hechangqi Road West, Zhongkai high tech Zone, Huizhou City, Guangdong Province

Applicant before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd.

GR01 Patent grant
GR01 Patent grant