CN111064241A - Charging control method and circuit, electronic device, and computer-readable storage medium - Google Patents

Charging control method and circuit, electronic device, and computer-readable storage medium Download PDF

Info

Publication number
CN111064241A
CN111064241A CN201911166790.XA CN201911166790A CN111064241A CN 111064241 A CN111064241 A CN 111064241A CN 201911166790 A CN201911166790 A CN 201911166790A CN 111064241 A CN111064241 A CN 111064241A
Authority
CN
China
Prior art keywords
charging
equipment
information
electronic device
current
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.)
Pending
Application number
CN201911166790.XA
Other languages
Chinese (zh)
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201911166790.XA priority Critical patent/CN111064241A/en
Publication of CN111064241A publication Critical patent/CN111064241A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits

Abstract

The invention relates to a charging control method and circuit, an electronic device and a computer readable storage medium, which can prevent safety accidents caused by charging of non-standard equipment and ensure the safety of a charging process by acquiring the equipment type of the charging equipment when the charging equipment is connected and acquiring charging state information when the equipment type is the non-standard equipment and adjusting charging parameters for charging the electronic device according to the charging state information.

Description

Charging control method and circuit, electronic device, and computer-readable storage medium
Technical Field
The present disclosure relates to the field of charging technologies, and in particular, to a charging control method and circuit, an electronic device, and a computer-readable storage medium.
Background
With the development of communication technology, smart mobile electronic devices (e.g., mobile phones, tablet computers, wearable devices, etc.) have become popular and become a part of daily life. High frequency usage requires frequent charging operations for electronic devices, each of which is typically provided with only one standard power adapter when sold. In daily life, a user sometimes uses a non-standard power adapter to charge an electronic device because the standard power adapter is not carried around, lost, damaged or difficult to distinguish from the non-standard power adapter.
However, there are safety concerns when charging electronic devices using non-standard power adapters. And electronic equipment is difficult to distinguish standard or non-standard power adapter, charges electronic equipment at non-standard charger, and electronic equipment does not have the measure to reduce the potential safety hazard and ensure charging safety.
Disclosure of Invention
The embodiment of the application provides a charging control method and circuit, electronic equipment and a computer readable storage medium, which can carry out safe charging.
A charge control method, comprising:
when the charging equipment is connected, acquiring the equipment type of the charging equipment;
when the equipment type is non-standard equipment, acquiring the charging state information of the electronic equipment;
and adjusting charging parameters for charging the electronic equipment according to the charging state information.
A charge control circuit, comprising:
the type acquisition module is used for acquiring the equipment type of the charging equipment when the charging equipment is connected;
the information acquisition module is used for acquiring the charging state information of the electronic equipment when the equipment type is non-standard equipment;
and the adjusting module is used for adjusting the charging parameters for charging the electronic equipment according to the charging state information.
An electronic device comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to carry out the steps of the method as described above.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method as set forth above.
According to the charging control method and circuit, the electronic equipment and the computer readable storage medium, when the charging control method and circuit are connected with the charging equipment, the equipment type of the charging equipment is obtained, when the equipment type is non-standard equipment, the charging state information is obtained, and the charging parameters for charging the electronic equipment are adjusted according to the charging state information, so that safety accidents caused by charging of the non-standard equipment are prevented, and the safety of the charging process is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow diagram of a charge control method in one embodiment;
FIG. 2 is a flowchart detailing step 102 of FIG. 1 in one embodiment;
FIG. 3 is a flowchart detailing step 106 of FIG. 1 in one embodiment;
FIG. 4 is a flow diagram of a charge control method in one embodiment;
FIG. 5 is a flow diagram of a charge control method in one embodiment;
FIG. 6 is a flowchart detailing step 508 of FIG. 5 in one embodiment;
FIG. 7 is a block diagram of a charge control circuit according to an embodiment;
FIG. 8 is a block diagram illustrating an exemplary detailed structure of the type obtaining module of FIG. 7;
FIG. 9 is a block diagram showing a detailed structure of the conditioning module of FIG. 7 in one embodiment;
FIG. 10 is a block diagram of a charge control circuit according to an embodiment;
FIG. 11 is a block diagram of a charge control circuit in one embodiment;
FIG. 12 is a block diagram illustrating an exemplary implementation of the third hinting module of FIG. 11.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first client may be referred to as a second client, and similarly, a second client may be referred to as a first client, without departing from the scope of the present application. Both the first client and the second client are clients, but they are not the same client.
Referring to fig. 1, fig. 1 is a flowchart illustrating a charging control method according to an embodiment.
In this embodiment, the main execution body of the charging control method is an electronic device, and the electronic device may be, for example, a mobile phone, a tablet computer, and a wearable device. As shown in fig. 1, the charging control method includes steps 102 to 106.
Step 102, when the charging device is connected, the device type of the charging device is obtained.
The charging equipment comprises standard equipment matched with the electronic equipment and non-standard equipment unmatched with the electronic equipment, and the standard equipment is original charging equipment matched with various charging requirements of the electronic equipment. The charging device can be a power adapter or a charger, and the charging device can be a wired charging device or a wireless charging device. When the charging device is a wired charging device, the electronic device and the charging device can perform bidirectional communication based on the transmission line; when the charging device is a wireless charging device, the electronic device and the charging device may communicate bi-directionally over a wireless link.
The standard equipment is matched with various charging requirements of the electronic equipment, so that safe charging can be directly carried out; the non-standard equipment is not completely matched with various charging requirements of the electronic equipment, certain potential safety hazards exist in the charging process, and the charging parameters of the charging equipment need to be limited in the charging process.
When the electronic device is connected with the charging device, the device type of the charging device can be identified by acquiring the device identifier of the charging device, and the device type of the charging device can also be identified by setting the detection circuit to detect the charging parameter of the charging device. In an embodiment, when the electronic device detects a charging signal, for example, when the electronic device detects a change from low to high in a voltage signal of the USB port, it is determined that the electronic device is connected to the charging device, so as to obtain device identification information of the charging device or detect a charging parameter of the charging device through a data transmission function of the USB port.
And 104, acquiring the charging state information of the electronic equipment when the equipment type is the non-standard equipment.
When the device type is non-standard equipment, in order to prevent safety accidents caused by charging of the non-standard equipment, the electronic device needs to acquire charging state information in real time or within preset time to monitor the charging condition, and the safety of the charging process is ensured.
In one embodiment, the charging state information includes temperature information, current charging voltage value, current charging current value, power information, and the like of the electronic device. The temperature information of the electronic device may be a battery temperature value of the electronic device or a charging port temperature value. In one embodiment, the electronic device is provided with a detection circuit for detecting the current charging state information, and the detection circuit may include a temperature sensing circuit, a voltage detection circuit, a current detection circuit, a power detection circuit, and the like.
And step 106, adjusting the charging parameters for charging the electronic equipment according to the charging state information.
When the device type is non-standard distribution device, in order to prevent the occurrence of safety accidents caused by charging of the non-standard distribution device, besides the charging condition is monitored, the charging parameters also need to be adjusted in real time according to the charging state information, and the safety of the charging process is ensured.
In an embodiment, the electronic device has a charging management function, for example, the electronic device is provided with a charging management circuit capable of directly limiting a charging current of the charging device, and step 106 may specifically be to control the charging management circuit to adjust a charging parameter according to the charging status information. In an embodiment, the charging device is provided with a control circuit, the electronic device generates an adjustment instruction according to the charging state information and the required charging requirement, and instructs the control circuit of the charging device to adjust the charging parameter, and step 106 may specifically be sending a corresponding adjustment instruction to the charging device according to the charging state information, where the adjustment instruction is used to instruct the charging device to adjust the charging parameter.
In an embodiment, referring to fig. 2, step 102 includes steps 202 to 206.
Step 202, when the charging device is connected, device identification information of the charging device is acquired.
The equipment identification information can be used for verifying the identity information of the charging equipment, and whether the charging equipment is standard equipment or non-standard equipment can be judged through the identity information. The device identifier may be default settings for factory, and includes one or more information of a device model of the charging device, a charging voltage range, a charging current range, a model of an electronic device that can be charged, and the like. In an embodiment, a communication connection is established between the electronic device and the charging device, the electronic device sends an inquiry instruction to inquire the device identification information of the charging device, and the charging device returns the device identification information of the charging device according to the inquiry instruction. And if the electronic equipment does not receive the equipment identification information returned by the charging equipment within the preset time or the preset times after sending the query instruction, the default charging equipment is the non-standard equipment.
And step 204, when the equipment identification information is matched with the standard equipment identification information, judging that the equipment type is the standard equipment.
And step 206, when the equipment identification information is not matched with the standard equipment identification information, judging that the equipment type is a non-standard equipment.
When the equipment identification information of the charging equipment is matched with the identification information of the standard equipment, the charging equipment is judged to be the standard equipment; and when the equipment identification information of the charging equipment is not matched with the standard equipment identification information, judging that the charging equipment is non-standard equipment.
For example, when the device identification information includes one or more types of information such as a device model, a charging voltage range, a charging current range, and a chargeable electronic device model, the electronic device verifies, through the device identification information, whether the one or more types of information match with the standard device identification information stored in the electronic device for selection, and if the one or more types of information match with the standard device identification information stored in the electronic device, the charging device is a standard device; and if not, the charging equipment is non-standard equipment.
Therefore, in step 102, the device type of the charging device can be identified by comparing the device identification information of the charging device with the standard device identification information, and the current charging state of the electronic device is further confirmed.
In one embodiment, the charging status information includes temperature information of the electronic device, please refer to fig. 3, and step 106 includes steps 302 to 304.
Step 302, when the temperature information is below the first temperature threshold, adjusting the charging current to the first current threshold.
Step 304, when the temperature information is greater than the first temperature threshold and less than the second temperature threshold, adjusting the charging current to be a second current threshold. The second current threshold is less than the first current threshold.
The temperature information of the electronic device may be battery temperature information of the electronic device, or may be charging port temperature information.
Wherein the first temperature threshold and the second temperature threshold can be set according to the heat resistance degree of the battery or the charging port of the electronic device. When the temperature information is below the first temperature threshold, the safety of charging the electronic equipment is high; when the temperature information is between the first temperature threshold and the second temperature threshold, the safety of charging the electronic device is high.
When the first current threshold value corresponds to a current value with a temperature value smaller than the first temperature threshold value, the charging time length can be shorter under the condition of safe charging; the second current threshold, which is smaller than the first current threshold, corresponds to a current value at which the charging time period can be made shorter under the safe charging condition when the temperature value is in a range between the first temperature threshold and the second temperature threshold.
Specific values of the first current threshold, the second current threshold, the first temperature threshold, and the second temperature threshold are set according to actual conditions, and are not limited herein. Wherein the second current threshold may be 70% of the first current threshold.
When the temperature information is smaller than the first temperature threshold, the charging current is adjusted to be the first current threshold, so that the charging equipment can be charged safely and the charging time is short; when the temperature information is larger than the first temperature threshold and smaller than the second temperature threshold, the charging current is adjusted to be the second current threshold, so that the charging equipment can be charged safely and the charging time is short. After the charging current is adjusted to be the second current threshold, if the temperature information is detected to be smaller than the first temperature threshold again, the charging current can be adjusted to be the first current threshold again.
For example, the first temperature threshold is 37 ℃, the second temperature threshold is 40 ℃, the first current threshold is 2A, and the second current threshold is 1.5A. Limiting the charging current to 2A when the temperature value is lower than 37 ℃; the charging current is limited to 1.5A when the temperature value is greater than 37 ℃ and less than 40 ℃ until the temperature value is less than 37 ℃, and the charging current can be limited to 2A again.
In an embodiment, please refer to fig. 3, step 106 further includes step 306.
And step 306, terminating charging when the temperature information is above the second temperature threshold, and outputting fifth prompt information, wherein the fifth prompt information is used for prompting that the current charging state is a dangerous state and prompting a user to disconnect the power supply of the charging equipment first and then disconnect the charging equipment from the electronic equipment.
When the temperature information is above the second temperature threshold, the temperature of the whole electronic equipment is high, charging is dangerous, charging is stopped, and fifth prompt information is output to prompt a user that the current charging state is a dangerous state and prompt the user to perform related power-off operation, so that the charging safety is improved.
In order to enable the user to have more visual auditory sense or visual sense relative to the fifth prompt information so as to clearly prompt the user, the fifth prompt information is one or more of character prompt information, image prompt information and sound prompt information. For example, when the fifth prompt message is a text prompt message, a prompt message "danger, end charging, please disconnect the power of the power adapter first, and then unplug the USB port of the power adapter" may be displayed.
Therefore, step 106 correspondingly adjusts the charging parameters according to the charging state information, so as to prevent safety accidents caused by charging of non-standard equipment and ensure the safety of the charging process; and when the temperature of the whole electronic equipment is higher, the charging is stopped, and the current charging state of the user is prompted to be a dangerous state so that the user can carry out related power-off operation, and the charging safety is further ensured.
According to the charging control method provided by the embodiment, the device type of the charging device is acquired when the charging device is connected, the charging state information is acquired when the device type is a non-standard device, and the charging parameter for charging the electronic device is adjusted according to the charging state information, so that safety accidents caused by charging of the non-standard device are prevented, and the safety of the charging process is ensured.
Referring to fig. 4, fig. 4 is a flowchart illustrating a charging control method according to an embodiment. As shown in fig. 4, the charging control method includes steps 402 to 410.
Step 402, acquiring the device type of the charging device when the charging device is connected.
And step 404, when the device type is a non-standard device, acquiring the charging state information of the electronic device.
In step 406, the charging parameters for charging the electronic device are adjusted according to the charging status information.
In this embodiment, steps 402 to 406 correspond to steps 102 to 106 in the above embodiment one to one, and are not described herein again.
And step 408, outputting first prompt information when the device type is a non-standard device, wherein the first prompt information is used for prompting that the current charging state of the electronic device is a dangerous latent state. The dangerous latent state means that potential safety hazards exist when the current charging equipment charges the electronic equipment.
Specifically, when the charging equipment is non-standard configuration equipment, potential safety hazards exist when the charging equipment charges the electronic equipment, the first prompt information is used for prompting a user that the charging equipment is the non-standard configuration equipment, and the current charging state is a dangerous latent state, so that the user is reminded of paying attention to the charging condition. The first prompt message may be one or more of a text prompt message, an image prompt message, an audio prompt message, or a vibration prompt message, so that the user may visually and/or audibly receive the first prompt message output by the electronic device.
In an embodiment, the first prompt message at least includes the current charging status information, and in some other embodiments, in addition to the important prompt message of the current charging status information, some other secondary prompt messages may be included, for example, some messages may be included to prompt the user how to perform the safety operation currently. In order to highlight the level degree of the prompt information, the prompt information of different levels may be set differently, for example, when the first prompt information is a text prompt information, the important prompt information may be displayed in red, and the other secondary prompt information may be displayed in black.
For example, when the first prompt message is a text prompt message, a red prompt message "non-standard equipment and please pay attention to charging safety" may be displayed, and a black prompt message "the user does not use the electronic equipment and pays attention to the charging condition at any time during the charging process" may be displayed.
And step 410, outputting second prompt information when the device type is standard configuration equipment, wherein the second prompt information is used for prompting that the current charging state is a safe state.
Specifically, when the charging device is a standard matching device, the charging device can safely charge the electronic device without acquiring the charging state information in the charging process or adjusting the charging parameters according to the charging state information. The second prompt message is used for prompting the user that the current charging state is a safe state, and the user does not need to pay attention to the charging situation all the time.
The second prompt message may be one or more of a text prompt message, an image prompt message, an audio prompt message, or a vibration prompt message. For example, when the first prompt message is a text prompt message, a prompt message of "standard equipment, charging safety" may be displayed.
The second prompt message is different from the first prompt message in prompt content, for example, when the first prompt message and the second prompt message are both text messages, the second prompt message is different from the first prompt message in text messages; for example, when the first prompt message and the second prompt message are both vibration prompt messages, at least one of the vibration frequency, the vibration amplitude and the vibration duration of the second prompt message and the first prompt message is different.
In the charging control method provided by this embodiment, the device type of the charging device is identified when the charging device is connected to the charging device, on one hand, when the device type is a non-standard device, a first prompt message is output to prompt that the current charging state is a dangerous latent state, so as to prompt a user to pay attention to the charging condition; and in the charging process, the charging state information is acquired to adjust the charging parameters, so that safety accidents caused by charging of non-standard equipment are prevented, and the safety of the charging process is ensured. On the other hand, when the device type is the standard configuration device, the second prompt information is output to prompt that the current charging state of the user is the safe state, the charging device can safely charge the electronic device, and the user can use the electronic device with confidence.
Referring to fig. 5, fig. 5 is a flowchart illustrating a charging control method according to an embodiment. As shown in fig. 5, the charging control method includes steps 502 to 508.
Step 502, when connecting with a charging device, obtaining a device type of the charging device.
Step 504, when the device type is a non-standard device, acquiring the charging state information of the electronic device.
In step 506, the charging parameters for charging the electronic device are adjusted according to the charging state information.
In this embodiment, steps 502 to 506 correspond to steps 102 to 106 in the above embodiment one to one, and are not described herein again.
And step 508, terminating charging when the charging state information meets the charging completion condition, and outputting third prompt information, wherein the third prompt information is used for prompting a user to disconnect the power supply of the charging equipment first and then disconnect the charging equipment and the electronic equipment, so that the user is prompted to perform safe power-off operation. For example, the user is prompted to disconnect the power of the power adapter first and then unplug the USB port of the power adapter connected to the electronic device.
The third prompt message is different from the first prompt message and the second prompt message in content, and the prompt form may be the same or different. In order to enable the user to have more intuitive auditory sense or visual sense relative to the third prompt information so as to clearly operate the prompt, the third prompt information is one or more of character prompt information, image prompt information and sound prompt information. For example, when the third prompt message is a text prompt message, a prompt message "complete charging, disconnect the power supply of the power adapter first, and then unplug the USB port of the power adapter" may be displayed.
In an embodiment, the charging state information includes electric quantity information, and when the electric quantity information satisfies the charging completion condition, the current charging state is determined to be the charging completion state, and the user is prompted to perform a related power-off operation. The measurement of the power information may be a value of a current power of the electronic device, or a ratio of the current power of the electronic device to a battery capacity, such as a current power percentage. The measure of the power threshold is consistent with the measure of the power information.
In an embodiment, please refer to fig. 6, wherein step 508 includes steps 602 to 606.
Step 602, when the power information is equal to the first power threshold, outputting a fourth prompt message, where the fourth prompt message is used to prompt a user to select whether to terminate charging in the current power state.
When detecting that the electric quantity information of the electronic equipment reaches the first electric quantity threshold value, in order to prolong the service life of the battery, the current electric quantity value of the electronic equipment can be defaulted to meet the basic electricity storage requirement and belong to a full-electricity state, so that fourth prompt information is output to remind a user whether the charging process needs to be terminated. For example, the first preset charge threshold is 80%.
The fourth prompt message can be output in the form of text message, image message or sound message, so that the user can visually obtain the fourth prompt message. For example, the fourth prompting message may be directly displayed on the display screen of the electronic device, and may be accompanied by an answering option for the user to answer. The response options comprise a charging termination option and a charging continuation option, and the user can directly select the corresponding options on the display screen so as to feed back corresponding response information.
And step 604, terminating charging when the charging termination instruction is received, and outputting third prompt information.
And step 606, continuing to charge when the charging continuation instruction is received, terminating charging when the electric quantity information reaches the second electric quantity threshold value, and outputting third prompt information.
When a charging termination instruction is received, judging that the current charging is in a charging completion state, terminating charging, and outputting third prompt information; and when a charging continuation instruction is received, judging the current unfinished charging state, continuing charging until the electric quantity information of the electronic equipment reaches a second electric quantity threshold value, and directly terminating the charging process in order to prevent the battery from being overcharged and consider that the electric quantity value meets the full-charge requirement. For example, the second preset charge threshold is 99%. It should be noted that, when no instruction input by the user is received within the preset time, the current charging completion state is defaulted, the charging is terminated, and the third prompt message is output.
Therefore, in step 508, the battery of the electronic device can be protected by setting the first electric quantity threshold and the second electric quantity threshold, so that charging safety is realized, energy consumption is reduced, and charging time is shortened; the third prompt information is output in the two charging completion states, so that the user can know the charging completion condition, and the user is prompted to perform correct power-off operation, and the charging safety is further improved.
It should be noted that the second electric quantity threshold may also be directly set, and when the electric quantity information of the electronic device reaches the second electric quantity threshold, the third prompt information is directly output, so that the user can know the charging completion condition, and is prompted to perform a correct power-off operation, thereby further improving the charging safety.
In the charging control method provided by this embodiment, the device type of the charging device is identified when the charging device is connected to the charging device, on one hand, when the device type is a non-standard device, in the charging process, the charging state information is obtained, and the charging parameter is adjusted according to the charging state information, so that a safety accident caused by charging of the non-standard device is prevented, and the safety of the charging process is ensured; on the other hand, when the charging is finished, the current charging state is prompted to be the charging finished state, and a user is prompted to carry out related power-off operation, so that the charging safety is further improved.
It should be understood that although the various steps in the flow charts of fig. 1-6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-6 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps. It should be noted that the different embodiments described above may be combined with each other.
Referring to fig. 7, fig. 7 is a block diagram of a charge control circuit in an embodiment.
For details, please refer to fig. 1 and the related description in the embodiment corresponding to fig. 1, which are not repeated herein.
In this embodiment, the charging control circuit 70 includes a type obtaining module 702, an information obtaining module 704, and an adjusting module 706.
A type obtaining module 702, configured to obtain a device type of the charging device when the charging device is connected.
An information obtaining module 704, configured to obtain charging status information of the electronic device when the device type is a non-standard device.
And an adjusting module 706, configured to adjust a charging parameter for charging the electronic device according to the charging status information.
In an embodiment, please refer to fig. 8, the type obtaining module 702 includes a first obtaining unit 802, a first determining unit 804, and a second determining unit 806. Each unit of the type obtaining module 702 is configured to execute each step in the embodiment corresponding to fig. 2, please refer to fig. 2 and the related description in the embodiment corresponding to fig. 2, which is not described herein again.
An obtaining unit 802, configured to obtain device identification information of a charging device when the charging device is connected.
A first determining unit 804 determines that the device type is the standard device when the device identification information matches the standard device identification information.
The second determining unit 806 is configured to determine that the device type is a non-standard device when the device identification information does not match the standard device identification information.
In an embodiment, please refer to fig. 9, the adjusting module 706 includes a first adjusting unit 902, a second adjusting unit 904, and a third adjusting unit 906. The units of the adjusting module 706 are configured to execute the steps in the embodiment corresponding to fig. 3, and please refer to fig. 3 and the related description in the embodiment corresponding to fig. 3 for details, which are not described herein again.
A first adjusting unit 902, configured to adjust the charging current to a first current threshold when the temperature information is below the first temperature threshold.
And a second adjusting unit 904, configured to adjust the charging current to be a second current threshold when the temperature information is greater than the first temperature threshold and less than the second temperature threshold.
And a third adjusting unit 906, configured to terminate charging when the temperature information is greater than the second temperature threshold, and output a fifth prompt message, where the fifth prompt message is used to prompt that the current charging state is a dangerous state and prompt a user to disconnect a power supply of the charging device first and then disconnect the charging device from the electronic device.
Wherein the second current threshold is less than the first current threshold, and the second temperature threshold is greater than the first temperature threshold.
In an embodiment, the electronic device is provided with a charging management circuit, and the adjusting module 706 is specifically configured to control the charging management circuit to adjust the charging parameter according to the charging status information.
In other embodiments, the adjusting module 706 is specifically configured to send a corresponding adjusting instruction to the charging device according to the charging status information, where the adjusting instruction is used to instruct the charging device to adjust the charging parameter.
The charging control circuit 70 provided in this embodiment obtains the device type of the charging device when being connected to the charging device, obtains the charging state information when the device type is a non-standard device, and adjusts the charging parameter for charging the electronic device according to the charging state information, thereby preventing a safety accident caused by charging the non-standard device, and ensuring the safety of the charging process.
Referring to fig. 10, fig. 10 is a block diagram of a charge control circuit in an embodiment.
For details, please refer to fig. 4 and the related description in the embodiment corresponding to fig. 4, which are not repeated herein.
In this embodiment, the charging control circuit 100 includes a type obtaining module 1002, an information obtaining module 1004, an adjusting module 1006, a first prompting module 1008, and a second prompting module 1010.
The type obtaining module 1002 is configured to obtain a device type of a charging device when the charging device is connected to the charging device.
The information obtaining module 1004 is configured to obtain charging status information of the electronic device when the device type is a non-standard device.
An adjusting module 1006, configured to adjust a charging parameter for charging the electronic device according to the charging status information.
The first prompting module 1008 is configured to output first prompting information when the device type is a non-standard device, where the first prompting information is used to prompt that the current charging state of the electronic device is a dangerous latent state.
The second prompting module 1010 is configured to output second prompting information when the device type is a standard configuration device, where the second prompting information is used to prompt that the current charging state is a safe state.
In the charging control circuit 100 provided in this embodiment, when the charging control circuit is connected to the charging device, the device type of the charging device is identified, on one hand, when the device type is a non-standard device, a first prompt message is output to prompt that the current charging state is a dangerous latent state, so as to prompt a user to pay attention to the charging condition; and in the charging process, the charging state information is acquired to adjust the charging parameters, so that safety accidents caused by charging of non-standard equipment are prevented, and the safety of the charging process is ensured. On the other hand, when the device type is the standard configuration device, the second prompt information is output to prompt that the current charging state of the user is the safe state, the charging device can safely charge the electronic device, and the user can use the electronic device with confidence.
Referring to fig. 11, fig. 11 is a block diagram of a charge control circuit in an embodiment.
For details, please refer to fig. 5 and the related description in the embodiment corresponding to fig. 5, which are not repeated herein.
In this embodiment, the charging control circuit 11 includes a type obtaining module 1102, an information obtaining module 1104, an adjusting module 1106 and a third prompting module 1108.
A type obtaining module 1102, configured to obtain a device type of a charging device when the charging device is connected.
An information obtaining module 1104, configured to obtain charging status information of the electronic device when the device type is a non-standard device.
An adjusting module 1106, configured to adjust a charging parameter for charging the electronic device according to the charging status information.
The third prompting module 1108 is configured to terminate charging and output third prompting information when the charging state information meets a charging completion condition, where the third prompting information is used to prompt a user to disconnect a power supply of the charging device first and then disconnect the charging device from the electronic device.
In an embodiment, referring to fig. 12 for assistance, the third prompt module 1108 includes a prompt unit 1201, a first output unit 1202, and a second output unit 1203, where each unit is used to execute each step in the embodiment corresponding to fig. 6, and please refer to fig. 6 and the related description in the embodiment corresponding to fig. 6, which is not repeated herein.
And a prompting unit 1201, configured to output fourth prompting information when the electric quantity information is equal to the first electric quantity threshold, where the fourth prompting information is used to prompt a user to select whether to terminate charging in the current electric quantity state.
And a first output unit 1202, configured to terminate charging when receiving the charging termination instruction, and output third prompt information.
The second output unit 1203 is configured to continue charging when the charging continuation instruction is received, terminate charging until the electric quantity information reaches the second electric quantity threshold, and output a third prompt message.
The charging control circuit 10 provided in this embodiment identifies the device type of the charging device when being connected to the charging device, on one hand, when the device type is a non-standard device, in the charging process, the charging state information is obtained, and the charging parameter is adjusted according to the charging state information, so that a safety accident caused by charging of the non-standard device is prevented, and the safety of the charging process is ensured; on the other hand, when the charging is finished, the current charging state is prompted to be the charging finished state, and a user is prompted to carry out related power-off operation, so that the charging safety is further improved.
The division of each module in the charging control circuit is only for illustration, and in other embodiments, the charging control circuit may be divided into different modules as needed to complete all or part of the functions of the charging control circuit.
For specific limitations of the charge control circuit, reference may be made to the above limitations of the charge control method, which are not described herein again. The modules in the charging control circuit can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
An embodiment of the present application further provides an electronic device, which includes a memory and a processor, where the memory stores a computer program, and when the computer program is executed by the processor, the processor is enabled to execute the steps of the method in the foregoing embodiment.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of the charging control method.
Any reference to memory, storage, database, or other medium used herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (12)

1. A charging control method applied to electronic equipment is characterized by comprising the following steps:
when the charging equipment is connected, acquiring the equipment type of the charging equipment;
when the equipment type is non-standard equipment, acquiring the charging state information of the electronic equipment;
and adjusting charging parameters for charging the electronic equipment according to the charging state information.
2. The method of claim 1, further comprising:
when the device type is the non-standard device, outputting first prompt information, wherein the first prompt information is used for prompting that the current charging state of the electronic device is a dangerous latent state;
and when the equipment type is standard equipment, outputting second prompt information, wherein the second prompt information is used for prompting that the current charging state is a safe state.
3. The method of claim 1, further comprising:
and when the charging state information meets the charging completion condition, terminating charging, and outputting third prompt information, wherein the third prompt information is used for prompting a user to disconnect the power supply of the charging equipment firstly and then disconnect the charging equipment and the electronic equipment.
4. The method of claim 3, wherein the charge status information comprises charge information;
and when the charging state information meets the charging completion condition, terminating charging and outputting third prompt information, wherein the third prompt information comprises:
when the electric quantity information is equal to the first electric quantity threshold value, outputting fourth prompt information, wherein the fourth prompt information is used for prompting a user to select whether to terminate charging in the current electric quantity state;
when a charging termination instruction is received, terminating charging and outputting the third prompt message;
continuing charging when a charging continuation instruction is received, stopping charging until the electric quantity information reaches a second electric quantity threshold value, and outputting third prompt information;
wherein the first charge threshold is less than the second charge threshold.
5. The method of any of claims 1-4, wherein the charging status information comprises temperature information of the electronic device, and the charging parameter comprises a charging current; the adjusting the charging parameters for charging the electronic device according to the charging state information includes:
when the temperature information is below a first temperature threshold, adjusting the charging current to be a first current threshold;
when the temperature information is larger than the first temperature threshold and smaller than a second temperature threshold, adjusting the charging current to be a second current threshold;
wherein the second current threshold is less than the first current threshold, and the second temperature threshold is greater than the first temperature threshold.
6. The method of claim 5, wherein adjusting the charging parameters for charging the electronic device based on the charging status information further comprises:
and when the temperature information is above the second temperature threshold, stopping charging, and outputting fifth prompt information, wherein the fifth prompt information is used for prompting that the current charging state is a dangerous state and prompting a user to disconnect the power supply of the charging equipment first and then disconnect the charging equipment and the electronic equipment.
7. The method according to any one of claims 1-4, wherein the electronic device is provided with a charge management circuit; the adjusting the charging parameters for charging the electronic device according to the charging state information includes:
and controlling the charging management circuit to adjust the charging parameters according to the charging state information.
8. The method of any of claims 1-4, wherein said adjusting a charging parameter for charging the electronic device based on the charging status information comprises:
and sending a corresponding adjusting instruction to the charging equipment according to the charging state information, wherein the adjusting instruction is used for indicating the charging equipment to adjust the charging parameter.
9. The method according to any one of claims 1-4, wherein the obtaining the device type of the charging device when connecting with the charging device comprises:
when the charging equipment is connected, acquiring equipment identification information of the charging equipment;
when the equipment identification information is matched with the standard equipment identification information, judging that the equipment type is standard equipment;
and when the equipment identification information is not matched with the standard equipment identification information, judging that the equipment type is non-standard equipment.
10. A charging control circuit applied to an electronic device, comprising:
the type acquisition module is used for acquiring the equipment type of the charging equipment when the charging equipment is connected;
the information acquisition module is used for acquiring the charging state information of the electronic equipment when the equipment type is non-standard equipment;
and the adjusting module is used for adjusting the charging parameters for charging the electronic equipment according to the charging state information.
11. An electronic device comprising a memory and a processor, the memory having stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 9.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 9.
CN201911166790.XA 2019-11-25 2019-11-25 Charging control method and circuit, electronic device, and computer-readable storage medium Pending CN111064241A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911166790.XA CN111064241A (en) 2019-11-25 2019-11-25 Charging control method and circuit, electronic device, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911166790.XA CN111064241A (en) 2019-11-25 2019-11-25 Charging control method and circuit, electronic device, and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN111064241A true CN111064241A (en) 2020-04-24

Family

ID=70298249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911166790.XA Pending CN111064241A (en) 2019-11-25 2019-11-25 Charging control method and circuit, electronic device, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN111064241A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105301060A (en) * 2015-11-19 2016-02-03 上海良相智能化工程有限公司 Hazardous liquid detector
CN105978093A (en) * 2016-06-24 2016-09-28 青岛海信移动通信技术股份有限公司 Mobile terminal
CN109417304A (en) * 2016-11-29 2019-03-01 华为技术有限公司 A kind of method, relevant device and the system of determining charger

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105301060A (en) * 2015-11-19 2016-02-03 上海良相智能化工程有限公司 Hazardous liquid detector
CN105978093A (en) * 2016-06-24 2016-09-28 青岛海信移动通信技术股份有限公司 Mobile terminal
CN109417304A (en) * 2016-11-29 2019-03-01 华为技术有限公司 A kind of method, relevant device and the system of determining charger

Similar Documents

Publication Publication Date Title
CN107843802B (en) Internal short circuit detection method and device
US20180364291A1 (en) Electronic device
CN106030973A (en) Fast charging method, power source adapter and mobile terminal
CN107534312B (en) Remote power control and monitoring of vehicle power systems
JP6490833B2 (en) Charging method, charging device, terminal, and program
CN110266071B (en) Intelligent charging method, device, equipment and readable medium
CN106785138B (en) A kind of charging method and device
CN108569151B (en) On-board charger input current limit setting based on AC input circuit voltage response
CN107706952B (en) Charging method and device
CN107910911B (en) Charging control method, terminal and computer storage medium
CN109217248A (en) A kind of fault handling method and system of connector
CN109254210B (en) Electronic equipment port type detection method and device, detection circuit and electronic equipment
CN112398187B (en) Wearable device, charging control method, and storage medium
CN105896639B (en) Charging control method and electronic equipment
CN110768332B (en) Charging cartridge, charging control method thereof, and readable storage medium
CN106707194B (en) Rechargeable battery detection method and electronic equipment
KR20190005643A (en) Electronic device supporting usb power delivery standard and a method of charging the electronic device
US20170063105A1 (en) Charging method, charging controller and charging system
CN108496289B (en) Battery charging control method, charging equipment, user terminal equipment and system
EP3876381B1 (en) Charge and discharge control method and apparatus for terminal
CN111064241A (en) Charging control method and circuit, electronic device, and computer-readable storage medium
CN112653960A (en) Wireless earphone control method and device, electronic equipment and computer storage medium
CN105490355A (en) Mobile terminal and charger
KR20210089529A (en) Wireless charging method and system for detecting invalid materials during wireless charging
EP3989390A1 (en) Charging control method and apparatus, electronic device and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200424