CN117200403A - Charging control method, electronic device, power adapter and readable storage medium - Google Patents
Charging control method, electronic device, power adapter and readable storage medium Download PDFInfo
- Publication number
- CN117200403A CN117200403A CN202311467043.6A CN202311467043A CN117200403A CN 117200403 A CN117200403 A CN 117200403A CN 202311467043 A CN202311467043 A CN 202311467043A CN 117200403 A CN117200403 A CN 117200403A
- Authority
- CN
- China
- Prior art keywords
- pin
- charging
- voltage
- electronic device
- power
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 58
- 230000002159 abnormal effect Effects 0.000 claims abstract description 27
- 238000004590 computer program Methods 0.000 claims description 14
- 101100489713 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) GND1 gene Proteins 0.000 description 42
- 238000010586 diagram Methods 0.000 description 23
- 101100489717 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) GND2 gene Proteins 0.000 description 11
- 238000004891 communication Methods 0.000 description 9
- 238000012545 processing Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 7
- 230000008569 process Effects 0.000 description 6
- 230000005856 abnormality Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 238000005070 sampling Methods 0.000 description 3
- 239000004065 semiconductor Substances 0.000 description 3
- 238000003491 array Methods 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 230000005669 field effect Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000001902 propagating effect Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- RYGMFSIKBFXOCR-UHFFFAOYSA-N Copper Chemical compound [Cu] RYGMFSIKBFXOCR-UHFFFAOYSA-N 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 229910052802 copper Inorganic materials 0.000 description 1
- 239000010949 copper Substances 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000003344 environmental pollutant Substances 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- JEIPFZHSYJVQDO-UHFFFAOYSA-N iron(III) oxide Inorganic materials O=[Fe]O[Fe]=O JEIPFZHSYJVQDO-UHFFFAOYSA-N 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 150000004706 metal oxides Chemical class 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000035772 mutation Effects 0.000 description 1
- 230000003647 oxidation Effects 0.000 description 1
- 238000007254 oxidation reaction Methods 0.000 description 1
- 231100000719 pollutant Toxicity 0.000 description 1
- 230000003238 somatosensory effect Effects 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E60/00—Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
- Y02E60/10—Energy storage using batteries
Landscapes
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
The present disclosure provides a charge control method, an electronic device, a power adapter, and a readable storage medium, where the charge control method applied to the electronic device includes: determining that the electronic equipment is abnormal in charging, and acquiring the voltage of a power supply pin in a charging socket of the electronic equipment; and under the condition that the voltage of the power pin is smaller than or equal to a voltage threshold value, controlling the conduction of a protection device of the charging socket, so that a short circuit is formed between the power pin and the grounding pin of the charging socket.
Description
Technical Field
The present disclosure relates to the field of charging technologies, and more particularly, to a charging control method, an electronic device, a power adapter, and a computer-readable storage medium.
Background
With the charging speed of terminal equipment such as mobile phones and the like becoming faster, the charging power of the terminal equipment becomes larger, and the phenomenon that a charging socket of the terminal equipment burns out sometimes occurs. The reason is that its charging socket is sunken, if there is the pollutant to get into, and the user is difficult to discover, even discovers also is difficult to clear up, charges in the connection charging wire under the dirty circumstances of charging socket, leads to charging socket short circuit to burn out easily.
Disclosure of Invention
According to a first aspect of the present disclosure, there is provided a charge control method applied to an electronic device, including:
determining that the electronic equipment is abnormal in charging, and acquiring the voltage of a power supply pin in a charging socket of the electronic equipment;
and under the condition that the voltage of the power pin is smaller than or equal to a voltage threshold value, controlling the conduction of a protection device of the charging socket, so that a short circuit is formed between the power pin and the grounding pin of the charging socket.
According to a second aspect of the present disclosure, there is provided a charge control method applied to a power adapter, including:
outputting a voltage less than or equal to a voltage threshold to a power supply pin of a charging socket of the electronic device under the condition that the electronic device connected with the power supply adapter is abnormally charged;
and stopping outputting voltage to the power pin of the charging jack of the electronic equipment under the condition that the power pin of the charging jack is short-circuited with the ground pin.
According to a third aspect of the present disclosure there is provided an electronic device comprising a processor and a memory for storing a computer program for controlling the processor to perform the method according to the first aspect of the present disclosure.
According to a fourth aspect of the present disclosure there is provided a power adapter comprising a processor and a memory for storing a computer program for controlling the processor to perform the method according to the second aspect of the present disclosure.
According to a fifth aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method as described in the first aspect of the present disclosure, or implements a method as described in the second aspect of the present disclosure.
Drawings
In order to more clearly illustrate the present disclosure or the prior art solutions, a brief description will be given below of the drawings that are needed in the embodiments or prior art descriptions, it being apparent that the drawings in the following description are some embodiments of the present disclosure and that other drawings may be obtained from these drawings without inventive effort to a person of ordinary skill in the art.
FIG. 1 is a block diagram of a charging system provided by one embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a charging system according to one embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a charging system according to one embodiment of the present disclosure;
FIG. 4 is a flow chart of a charge control method provided by one embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a charging system according to one embodiment of the present disclosure;
FIG. 6 is a schematic circuit diagram of an electronic device according to one embodiment of the present disclosure;
FIG. 7 is a schematic diagram of a connection circuit of a protection device according to one embodiment of the present disclosure;
fig. 8 is a schematic diagram of a charge control method according to an embodiment of the present disclosure;
fig. 9 is a schematic diagram of a charge control method according to an embodiment of the present disclosure;
fig. 10 is a schematic diagram of a charge control method according to an embodiment of the present disclosure;
FIG. 11 is a block diagram of an electronic device provided by one embodiment of the present disclosure;
fig. 12 is a block diagram of a power adapter provided by one embodiment of the present disclosure.
Detailed Description
Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless it is specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses.
Techniques, methods, and apparatus known to one of ordinary skill in the relevant art may not be discussed in detail, but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any specific values should be construed as merely illustrative, and not a limitation. Thus, other examples of exemplary embodiments may have different values.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further discussion thereof is necessary in subsequent figures.
As shown in fig. 1, a charging system 1000 of an embodiment of the present disclosure includes an electronic device 1100 and a power adapter 1200.
The electronic device 1100 in the embodiment of the disclosure may be various handheld devices with rechargeable batteries, vehicle-mounted devices, wearable devices, computing devices, and the like, and specifically may be a portable computer, a desktop computer, a mobile phone, a tablet, a headset, a bracelet, a sound box, an earphone, and the like. As shown in fig. 1, the electronic device 1100 may include a processor 1110, a memory 1120, an interface device 1130, a communication device 1140, a display device 1150, an input device 1160, a speaker 1170, a microphone 1180, and so forth. The processor 1110 may be a central processing unit CPU, a microprocessor MCU, or the like. The memory 1120 includes, for example, ROM (read only memory), RAM (random access memory), nonvolatile memory such as a hard disk, and the like. The interface device 1130 includes, for example, a USB interface, a headphone interface, and the like. The communication device 1140 can be capable of wired or wireless communication, for example, and may specifically include Wifi communication, bluetooth communication, 2G/3G/4G/5G communication, and the like. The display device 1150 is, for example, a liquid crystal display, a touch display, or the like. Input devices 1160 may include, for example, a touch screen, keyboard, somatosensory input, and the like. A user may input/output voice information through the speaker 1170 and the microphone 1180.
The electronic device shown in fig. 1 is merely illustrative and is in no way meant to limit the disclosure, its application, or uses. In an embodiment of the disclosure, the memory 1120 of the electronic device 1100 is configured to store instructions for controlling the processor 1110 to operate to perform any one of the charging control methods provided by the embodiments of the disclosure. It will be appreciated by those skilled in the art that although a plurality of devices are shown for electronic device 1100 in fig. 1, the present disclosure may refer to only some of the devices, e.g., electronic device 1100 refers to processor 1110 and memory 1120 only. The skilled artisan can design instructions in accordance with the disclosed aspects of the present disclosure. How the instructions control the processor to operate is well known in the art and will not be described in detail here.
The power adapter 1200 is a power supply voltage conversion device of an electronic device, and its operation principle is to convert an ac input into a dc output.
Specifically, one end of the power adapter 1200 is connected to the mains supply, the other end of the power adapter 1200 is connected to the electronic device 1100, and the power adapter 1200 may convert the ac power provided by the mains supply into dc power and output the dc power to the electronic device 1100 to charge the electronic device 1100.
It can be understood that the charging socket of the electronic device is matched with the interface type of the charging plug of the power adapter, so that the charging plug of the power adapter is connected with the charging socket of the electronic device, or the charging socket of the electronic device is connected with the charging socket of the power adapter through a corresponding data line, so that the electronic device is charged through the power adapter.
For convenience of explanation, in the embodiment of the present application, the charging plug of the power adapter is used to represent the charging plug directly connected to the charging socket of the electronic device, where the charging plug may be a charging plug fixed on the power adapter or a charging plug on a data line connected to the power adapter, and the embodiment of the present application will not be described herein.
For example, the interface type of the charging jack of the electronic device 1100 may be a Micro-USB female as shown in fig. 2, and the interface type of the charging plug of the power adapter 1200 may be a Micro-USB male as shown in fig. 2. Then, in the case where the charging jack of the electronic device 1100 is connected to the charging plug of the power adapter 1200, the GND1 pin of the Micro-USB female head is connected to the GND2 pin of the Micro-USB male head, the d1+ pin of the Micro-USB female head is connected to the d2+ pin of the Micro-USB male head, the D1 pin of the Micro-USB female head is connected to the D2 pin of the Micro-USB male head, and the VBUS1 pin of the Micro-USB female head is connected to the VBUS2 pin of the Micro-USB male head.
For another example, the interface Type of the charging jack of the electronic device 1100 may be a Type-C female as shown in fig. 3, and the interface Type of the charging plug of the power adapter 1200 may be a Type-C male as shown in fig. 3. Then, in the case where the charging socket of the electronic device 1100 is being connected with the charging plug of the power adapter 1200, the GND1 pin of the Type-C female head is in contact connection with the GND2 pin of the Type-C male head, the RX2+ pin of the Type-C female head is in contact connection with the RX4+ pin of the Type-C male head, the RX 2-pin of the Type-C female head is in contact connection with the RX 4-pin of the Type-C male head, the VBUS1 pin of the Type-C female head is in contact connection with the VBUS2 pin of the Type-C male head, the SBU1 pin of the Type-C female head is in contact connection with the SBU3 of the Type-C male head, the D1 pin of the Type-C female head is in contact connection with the D2 pin of the Type-C male head, the d1+ pin of the Type-C female head is in contact connection with the d2+ pin of the Type-C male head, the CC1 pin of the Type-C female head is in contact connection with the CC2 pin of the Type-C male head, the TX1 pin of the Type-C female head is in contact connection with the TX3 pin of the Type-C male head, the TX1+ pin of the Type-C female head is in contact connection with the TX3+ pin of the Type-C male head, the RX1+ pin of the Type-C female head is in contact connection with the RX3+ pin of the Type-C male head, the RX1 pin of the Type-C female head is in contact connection with the RX3 pin of the Type-C male head, the SBU2 pin of the Type-C female head is in contact connection with the SBU4 pin of the Type-C male head, the VCONN1 pin of the Type-C female head is in contact connection with the CC3 pin of the Type-C male head, the TX2 pin of the Type-C female head is in contact connection with the TX4 pin of the Type-C male head, the TX < 2+ > pin of the Type-C female head is in contact connection with the TX < 4+ > pin of the Type-C male head.
In the case where the charging socket of the electronic device 1100 is reversely connected with the charging plug of the power adapter 1200, the GND1 pin of the Type-C female head is in contact connection with the GND2 pin of the Type-C male head, the RX2+ pin of the Type-C female head is in contact connection with the RX3+ pin of the Type-C male head, the VBUS1 pin of the Type-C female head is in contact connection with the VBUS2 pin of the Type-C male head, the SBU1 pin of the Type-C female head is in contact connection with the SBU4 pin of the Type-C male head, the D1 pin of the Type-C female head is in contact connection with the D3 pin of the Type-C male head, the D1+ pin of the Type-C female head is in contact connection with the D3+ pin of the Type-C male head, the CC1 pin of the Type-C female head is in contact connection with the CC3 pin of the Type-C male head, the TX1 pin of the Type-C female head is in contact connection with the TX4 pin of the Type-C male head, the TX1+ pin of the Type-C female head is in contact connection with the TX4+ pin of the Type-C male head, the RX1+ pin of the Type-C female head is in contact connection with the RX4 pin of the Type-C male head, the SBU2 pin of the Type-C female head is in contact connection with the SBU3 pin of the Type-C male head, the VCONN1 pin of the Type-C female head is in contact connection with the CC2 pin of the Type-C male head, the TX2 pin of the Type-C female head is in contact connection with the TX3 pin of the Type-C male head, the TX < 2+ > pin of the Type-C female head is in contact connection with the TX < 3+ > pin of the Type-C male head.
It is understood that the power adapter 1200 may output a dc voltage to the power pin VBUS1 in the charging jack of the electronic device through the power pin VBUS2 in the charging plug during the charging process of the electronic device through the power adapter.
It is understood that the voltage of the power pin VBUS1 in the charging jack of the electronic device may be the voltage output from the power adapter to the power pin VBUS 1.
It will be appreciated that the charging socket further comprises at least a ground pin GND1.
Fig. 4 is a flow chart of a charging control method according to an embodiment of the present disclosure, where an execution body of the method is an electronic device, as shown in fig. 4, and the method includes:
step 201, determining that the electronic device is abnormally charged, and obtaining the voltage of a power supply pin VBUS1 in a charging socket of the electronic device.
In the present application, an electronic device charging abnormality may be understood as a state of the electronic device when there is a risk of damaging the electronic device. For example, the abnormal charging of the electronic device may be the presence of foreign matter in the charging socket, and further, for example, oxidation rust of the charging socket.
In some embodiments, the charging jack may also include a signal pin, which may be a CC1 pin, in the case where the Type of charging jack may be a Type-C female.
In some embodiments, determining that the electronic device is charging abnormal comprises: obtaining the ground resistance value of the signal pin of the charging socket; and determining that the electronic equipment is abnormal in charging under the condition that the resistance value to ground is smaller than or equal to a resistance value threshold value.
As shown in fig. 5, in the Type-C female head, a pull-down resistor Rd is connected between the CC1 pin and the GND1 pin, and the resistance value of the pull-down resistor is usually 5.1kΩ, and then, in the case that the CC1 pin is not affected by the port abnormality, the ground resistance value of the CC1 pin is 5.1kΩ.
In the Type-C male head, a first pull-up resistor Rp1 is connected between a CC2 pin and a VBUS2 pin, and a second pull-up resistor Rp2 is connected between a CC3 pin and a VBUS2 pin. In the case where the Type-C female terminal of the electronic device 1100 is connected to the Type-C male terminal of the power adapter 1200 in the manner shown in fig. 5, it may be that the CC2 pin of the Type-C male terminal is connected to the CC1 pin of the Type-C female terminal, and the CC3 pin of the Type-C male terminal is connected to the VCONN1 pin of the Type-C female terminal, then the first pull-up resistor Rp1 and the pull-down resistor Rd are connected in series between the VBUS2 pin and the GND1 pin. Or, the CC3 pin of the Type-C male head is connected with the CC1 pin of the Type-C female head, the CC2 pin of the Type-C male head is connected with the VCONN1 pin of the Type-C female head, and then the second pull-up resistor Rp2 and the pull-down resistor Rd are connected in series between the VBUS2 pin and the GND1 pin.
It can be appreciated that the electronic device may obtain the ground resistance value of the CC1 pin by detecting the ratio between the voltage of the CC1 pin and the voltage of the VBUS1 pin in the case where the resistance values of the first pull-up resistor Rp1 and the second pull-up resistor Rp2 are obtained in advance.
In the case that there is a foreign matter in the charging socket of the electronic device, if there is a conductive foreign matter in the charging socket and simultaneously contacts the CC1 pin and the GND1 pin of the Type-C female head, the foreign matter will be connected in parallel with the pull-down resistor Rd, resulting in a decrease in the ground resistance value of the CC1 pin. Therefore, in the case that the Type of the charging socket may be a Type-C female, whether the electronic device is abnormally charged or not may be determined according to the ground resistance value of the CC1 pin.
It will be appreciated that the ground resistance of the signal pin is typically large in the case of a normally charged electronic device. In the case where a foreign matter exists in the charging jack of the electronic device, the ground resistance value of the signal pin may be reduced. Therefore, the electronic device can determine that the electronic device is abnormal in charging under the condition that the ground resistance value of the signal pin is detected to be smaller than or equal to the resistance value threshold value.
It can be appreciated that the resistance threshold may be preset according to an application scenario or specific requirements. For example, the resistance threshold may be 5k omega or 3k omega.
In some embodiments, determining that the electronic device is charging abnormal comprises: acquiring temperature data of the charging jack acquired by a temperature sensor of the electronic equipment; and determining that the electronic equipment is abnormal in charging according to the temperature data.
It is understood that the temperature sensor may be configured to collect temperature data at a first frequency. The first frequency may be preset according to an application scenario or specific requirements. For example, the first frequency may be 10Hz or 1Hz.
It is understood that the temperature sensor may be disposed at a position near the charging socket, such that the temperature data collected by the temperature sensor is the temperature data of the charging socket.
In some embodiments, determining the electronic device charging anomaly from the temperature data comprises: obtaining the temperature variation of the charging jack in a first time period according to the temperature data; and determining that the electronic equipment is abnormal in charging under the condition that the temperature variation is greater than or equal to a temperature variation threshold value.
It is understood that the first period of time may be preset according to the application scenario or specific requirements. For example, the first period of time may be 10 seconds or 1 minute just elapsed.
It is understood that the temperature change threshold may be preset according to the application scenario or specific requirements. For example, the temperature change threshold may be 10 ℃ or 5 ℃.
In some embodiments, the temperature change of the charging socket in the first period may be a difference between a maximum temperature value and a minimum temperature value of the charging socket in the first period, or may be a difference between a temperature value of the charging socket at a last sampling time and a temperature value of the charging socket at a first sampling time in the first period.
In this embodiment, the temperature variation of the charging socket in the first period is greater than or equal to the temperature variation threshold, which indicates that the electronic device is abnormally charged, and foreign objects may exist in the charging socket of the electronic device.
In some embodiments, determining the electronic device charging anomaly from the temperature data comprises: obtaining the current temperature of the charging jack according to the temperature data; and determining that the electronic equipment is abnormal in charging under the condition that the current temperature is greater than or equal to a temperature threshold value.
It is understood that the temperature threshold may be preset according to the application scenario or specific requirements. For example, the temperature threshold may be 40 ℃ or 50 ℃.
In some embodiments, the current temperature of the charging socket may be the temperature value at the last sampling time, or may be an average value of temperature values sampled by the charging socket in the first period.
In this embodiment, the current temperature of the charging socket is greater than or equal to the temperature threshold, which indicates that the electronic device is abnormally charged, and foreign objects may exist in the charging socket of the electronic device.
In step 202, when the voltage of the power pin VBUS1 is less than or equal to the voltage threshold, the protection device of the charging socket is controlled to be turned on, so that a short circuit is formed between the power pin VBUS1 and the ground pin GND1 of the charging socket.
It is understood that the voltage threshold may be preset according to the application scenario or specific requirements. For example, the voltage threshold may be 5V.
In some embodiments, as shown in fig. 6, a protection device 3200 may be connected between the power pin VBUS1 and the ground pin GND1 of the charging socket 3100.
Under the condition that the electronic equipment is charged normally, the protection device of the charging socket is disconnected, so that a short circuit is avoided between a power pin VBUS1 and a ground pin GND1 of the charging socket 3100, and the electronic equipment can be charged normally through the power adapter.
In the case where the voltage of the power supply pin VBUS1 is less than or equal to the voltage threshold, the electronic device controls the protection device 3200 of the charging socket 3100 to be turned on, so that a short circuit is caused between the power supply pin VBUS1 and the ground pin GND1 of the charging socket.
Correspondingly, when the power adapter 1200 detects that the power pin VBUS1 of the charging socket is short-circuited with the ground pin GND1, the output of the voltage to the power pin VBUS1 of the charging socket of the electronic device is stopped, so that the electronic device stops charging, and thus, the charging socket of the electronic device can be protected, and the risk that the charging socket is burnt out is reduced.
It will be appreciated that in the case of a short circuit between the power pin VBUS1 of the charging socket and the ground pin GND1, since the charging socket of the electronic device is connected to the charging plug of the power adapter, the power pin VBUS1 of the charging socket is in contact connection with the power pin VBUS2 of the charging plug of the power adapter, and the ground pin GND1 of the charging socket is in contact connection with the ground pin GND2 of the charging plug of the power adapter, so that the short circuit is also generated between the power pin VBUS2 of the charging plug of the power adapter and the ground pin GND 2.
In some embodiments, the power adapter may be configured to detect a voltage difference between the power pin VBUS2 and the ground pin GND 2. In the case that the power adapter detects that the voltage difference between the power pin VBUS2 and the ground pin GND2 is greater than the set voltage difference, it may be determined that there is no short circuit between the power pin VBUS2 and the ground pin GND 2. When the power adapter detects that the voltage difference between the power pin VBUS2 and the ground pin GND2 is less than or equal to the set voltage difference, it can determine that the power pin VBUS2 and the ground pin GND2 are shorted, that is, the power pin VBUS1 and the ground pin GND1 of the charging socket are shorted.
It is understood that the set voltage difference may be preset according to the application scenario or specific requirements. For example, the set voltage difference may be 1V.
In some embodiments, the protection device 3200 may be provided by a controllable switch. For example, the protection device may be a MOS (Metal-Oxide-Semiconductor Field-Effect Transistor, metal-Oxide semiconductor field effect transistor), a transistor, or the like. The MOS tube can be an NMOS tube or a PMOS tube.
In the embodiment where the protection device is an NMOS transistor Q1, as shown in fig. 7, the drain of the NMOS transistor Q1 may be connected to the power pin VBUS1 of the charging socket, and the source of the NMOS transistor Q1 may be connected to the ground pin GND1 of the charging socket. Under the condition that the electronic device is charged normally, the controller 3300 of the electronic device can output a low-level control signal to the gate of the NMOS transistor, so that the NMOS transistor is turned off, and a short circuit is not generated between the power supply pin VBUS1 and the ground pin GND1 of the charging socket. Under the condition of abnormal charging of the electronic device, the controller 3300 may output a high-level control signal to the gate of the NMOS transistor, so that the NMOS transistor Q1 is turned on, and a short circuit is formed between the power supply pin VBUS1 and the ground pin GND1 of the charging socket.
In some embodiments, as shown in fig. 7, a first resistor R1 may be further connected between the gate of the NMOS transistor Q1 and the ground pin GND1, and a second resistor R2 may be further connected between the gate of the NMOS transistor Q1 and the controller 3300.
It can be understood that by setting the first resistor R1, a bias voltage can be provided for the NMOS transistor Q1, and a small amount of static electricity between the gate and the source can be discharged as a discharging resistor, so that the NMOS transistor Q1 is prevented from generating malfunction, and even the NMOS transistor Q1 is broken down, thereby playing a role in protecting the NMOS transistor Q1.
It can be appreciated that the second resistor R2 is used to limit the gate current of the NMOS transistor Q1, and protect the NMOS transistor Q1 from being damaged by overcurrent. In the working process of the NMOS tube Q1, the second resistor R2 can effectively reduce the transient variation of the grid voltage and reduce the current mutation caused by the variation of the grid voltage, thereby reducing the switching loss of the NMOS tube Q1 and improving the reliability of the NMOS tube Q1.
In some embodiments, the method may further comprise: transmitting target information to a power adapter connected with the charging socket when the voltage of the power pin VBUS1 is larger than a voltage threshold, wherein the target information is used for indicating the power adapter to reduce the voltage output to the power pin VBUS 1; continuously acquiring the voltage of the power supply pin VBUS 1; and under the condition that the voltage of the power pin is smaller than or equal to the voltage threshold value, controlling the protection device of the charging socket to be conducted, so that a short circuit is formed between the power pin VBUS1 and the ground pin GND1 of the charging socket.
It can be understood that, in the process of quick charging of the electronic device, the power adapter outputs a voltage greater than a voltage threshold to the power pin VBUS1 according to a charging protocol of the electronic device, so as to achieve the purpose of increasing the charging power of the electronic device under the condition of outputting the same current.
When the voltage of the power supply pin VBUS1 is larger than the voltage threshold, if the electronic equipment directly controls the protection device of the charging socket to be conducted, so that a short circuit exists between the power supply pin VBUS1 and the ground pin GND1 of the charging socket, a large current flows through the protection device, and the protection device is burnt.
When the voltage of the power supply pin VBUS1 is smaller than or equal to the voltage threshold, if the electronic equipment controls the protection device of the charging socket to be conducted, so that a short circuit is formed between the power supply pin VBUS1 and the ground pin GND1 of the charging socket, the current flowing through the protection device is usually smaller than or equal to the rated current of the protection device, the risk of burning the protection device is reduced, and the safety of the electronic equipment can be further ensured.
It will be appreciated that the more overcurrent capable the protection device is, the more costly it is. In this embodiment, the electronic device instructs the power adapter to reduce the voltage output to the power pin VBUS1, and then turns on the protection device, so that when the power pin VBUS1 of the charging socket is shorted with the ground pin GND1, the current flowing through the protection device is smaller, and therefore, the protection device with weaker overcurrent capability can be adopted, so as to reduce the hardware cost of the electronic device.
In some embodiments, in the event that the voltage of the power supply pin VBUS1 is greater than the voltage threshold, the electronic device sends the target information to the power adapter connected to the charging socket, and the power adapter reduces the voltage output to the power supply pin VBUS1 according to receiving the target information.
It is understood that the power adapter may reduce the voltage output to the power pin VBUS1, may reduce the voltage output to the power pin VBUS1 to a set voltage, may output the voltage to the power pin VBUS1 according to a set step size, and may reduce the voltage output to the power pin VBUS1 to a voltage indicated by the target information, which is not limited herein. The set voltage may be a voltage that is smaller than or equal to a voltage threshold, which is set in advance according to an application scenario or specific requirements, for example, the set voltage may be 5V. The setting step size may be preset according to an application scenario or specific requirements, for example, the setting step size may be 5V.
In some embodiments, the method may further comprise: waiting a second period of time if the voltage of the power supply pin VBUS1 is greater than a voltage threshold; continuously acquiring the voltage of the power supply pin VBUS 1; and under the condition that the voltage of the power pin VBUS1 is smaller than or equal to the voltage threshold value, controlling the protection device of the charging socket to be conducted, so that a short circuit is formed between the power pin VBUS1 and the ground pin GND1 of the charging socket.
That is, the electronic device may detect the voltage of the power supply pin VBUS1 at intervals of the second period.
In one possible implementation, the target information may instruct the power adapter to reduce the voltage output to the power pin VBUS1 to a voltage value specified by the electronic device. Based on this, after the second period of time, under the condition that the voltage of the power supply pin VBUS1 is still greater than the voltage threshold value, the electronic device may turn on the protection device, so that a short circuit is formed between the power supply pin VBUS1 and the ground pin GND1 of the charging socket, and the current flowing through the protection device may be reduced when the protection device is turned on, so as to reduce the risk of burning the protection device of the charging socket. In addition, under the condition that the power supply pin VBUS1 and the ground pin GND1 of the charging socket are detected to be short-circuited, the power supply adapter stops outputting voltage to the power supply pin VBUS1, so that the charging socket of the electronic equipment can be protected, and the risk of burning the charging socket is reduced.
In this implementation, the second period of time is not less than the time required for the power adapter to reduce the voltage output to the power pin VBUS1 to the voltage value specified by the electronic device.
In another possible implementation, the target information may instruct the power adapter to decrease the voltage output to the power pin VBUS1 by a specified or set magnitude. Based on this, after the second period of time, in the case where the voltage of the power supply pin VBUS1 is still greater than the voltage threshold, the electronic device may send the target information again to instruct the power adapter to further reduce the voltage output to the power supply pin VBUS 1.
It is understood that the second period of time may be preset according to the application scenario or specific requirements. The second time period is greater than or equal to a time interval defined by the charging protocol during which the electronic device and the power adapter communicate through the charging jack. For example, the second time period may be 10ms.
It can be understood that in the process of quick charging of the electronic device through the power adapter, the electronic device and the power adapter communicate at set time intervals through the charging socket, and negotiate information such as voltage, current and the like of charging. Wherein the set time interval may be less than or equal to the second time period.
It will be appreciated that, due to foreign objects within the charging jack, normal communication between the power adapter and the electronic device may not be possible. Therefore, when the time that the electronic device does not communicate with the power adapter is greater than or equal to the set time interval, it indicates that foreign matters may exist in the charging socket of the electronic device, so that the electronic device is abnormally charged, and the power adapter can reduce the voltage output to the power pin VBUS 1. In the embodiment of the present application, the second time period is greater than the set time interval. Then, the voltage of the power supply pin VBUS1 continuously acquired by the electronic device after waiting for the second period of time is less than or equal to the voltage threshold value, so that the protection device of the charging socket can be controlled to be conducted, and the power supply pin VBUS1 of the charging socket and the ground pin GND1 are in short circuit, so that the current flowing through the protection device when the protection device is conducted is reduced when the protection device is conducted, and the risk of burning the protection device of the charging socket is reduced.
In some embodiments, in the case where the electronic device sends the target information to the power adapter, the voltage of the power pin VBUS1 acquired by the electronic device after the fourth period of time is still greater than the voltage threshold, which indicates that the power adapter may not be capable of reducing the voltage output to the power pin VBUS1, the electronic device may be a protection device controlling the charging socket to be turned on, so that a short circuit is caused between the power pin VBUS1 and the ground pin GND1 of the charging socket, so that the power adapter stops outputting the voltage to the power pin VBUS1 when detecting that the power pin VBUS1 and the ground pin GND1 of the charging socket of the electronic device are short-circuited, and the risk that the charging socket of the electronic device is burnt is reduced. The fourth time period may be preset according to an application scenario or specific requirements, and the fourth time period is greater than the second time period. For example, the fourth period of time may be 1s.
It will be appreciated that in an embodiment in which the power adapter reduces the voltage output to the power pin VBUS1 by a set magnitude, the fourth period of time may include a plurality of second periods of time, that is, before the fourth period of time ends, the electronic device may perform one or more steps of sending the target information to the power adapter at intervals of the second period of time until the voltage of the power pin VBUS2 is less than or equal to the voltage threshold or the fourth period of time ends. With the implementation manner, misjudgment on the result of whether the power adapter can reduce the voltage output to the power pin VBUS1 is avoided.
In a fourth time period after the electronic equipment sends the target information to the power adapter, the voltage of the power pin VBUS1 acquired by the electronic equipment is smaller than or equal to a voltage threshold value, so that the protection device of the charging socket is controlled to be conducted, the power pin of the charging socket is in short circuit with the grounding pin, the current flowing through the protection device can be reduced when the protection device is conducted, and the risk that the protection device of the charging socket is burnt out is reduced.
In some embodiments, in the event that the electronic device is shorted between the power pin VBUS1 and the ground pin GND1 of the charging jack, if disconnection of the charging jack from the power adapter is detected, the electronic device may control the protection device to be disconnected such that there is no short between the power pin VBUS1 and the ground pin GND1 of the charging jack.
In the case of a re-connection of the charging jack to the power adapter, it may be possible to re-perform the method of the embodiments of the present disclosure to protect the charging jack in the event of a charging abnormality of the electronic device and to continue normal charging in the event of the electronic device excluding the cause of the charging abnormality.
Fig. 8 is a flow chart of a charging control method according to an embodiment of the present disclosure, where an execution subject of the method is a power adapter, as shown in fig. 8, and the method includes:
Step 401, outputting a voltage less than or equal to a voltage threshold to a power supply pin VBUS1 of a charging jack of the electronic device in case of abnormal charging of the electronic device connected to the power supply adapter.
It may be understood that the charging socket of the electronic device is matched with the interface type of the charging plug of the power adapter, so that the charging plug of the power adapter is connected with the charging socket of the electronic device, or alternatively, the charging socket of the electronic device is connected with the charging socket of the power adapter through a corresponding data line, so that the electronic device is charged through the power adapter. For example, the interface type of the charging socket of the electronic device may be a Micro-USB female head, and the interface type of the charging plug of the power adapter may be a Micro-USB male head. For another example, the interface Type of the charging jack of the electronic device may be a Type-C female head, and the interface Type of the charging plug of the power adapter may be a Type-C male head.
In some embodiments, the electronic device may determine that the electronic device is abnormally charged if the ground resistance of the signal pin of the charging jack is detected to be less than or equal to a resistance threshold. The electronic device may further determine that the electronic device is abnormally charged if it is detected that the temperature variation of the charging outlet in the first period of time is greater than or equal to a temperature variation threshold. The electronic device may further determine that the electronic device is abnormally charged if it is detected that the current temperature of the charging socket is greater than or equal to a temperature threshold.
In some embodiments, in the event that an electronic device is determined to be abnormally charged, the electronic device may be to send the target information to the power adapter. Alternatively, in the event of an abnormal charging of the electronic device, the electronic device may not be able to communicate normally with the power adapter. Accordingly, the power adapter may output a voltage less than or equal to a voltage threshold to the power pin VBUS1 of the charging jack of the electronic device in a case where the target information is received or in a case where the electronic device may not be able to normally communicate with the power adapter.
Under the condition that the electronic equipment connected with the power adapter is abnormal in charging, a voltage smaller than or equal to a voltage threshold value is output to a power pin VBUS1 of a charging socket of the electronic equipment, so that when a protection device of the charging socket of the electronic equipment is conducted, the current flowing through the protection device is reduced, and the risk of burning the protection device is reduced.
In some embodiments, in the event of an abnormal charging of an electronic device connected to the power adapter, outputting a voltage less than or equal to a voltage threshold to a power supply pin VBUS1 of a charging jack of the electronic device, comprising: receiving target information sent by the electronic equipment, wherein the target information is sent by the electronic equipment under the condition that the electronic equipment determines that the charging is abnormal and the voltage of a power supply pin VBUS1 is greater than a voltage threshold; and according to the target information, reducing the voltage output to the power supply pin.
It is understood that in the case where the voltage of the power supply pin VBUS1 of the charging jack of the electronic device is greater than the voltage threshold, the electronic device transmits the target information to the power adapter to which the charging jack is connected. According to the received target information, the power adapter can reduce the voltage output to the power pin VBUS1, reduce the current flowing through the protection device when the protection device is conducted, and reduce the risk of burning the protection device.
It is understood that the power adapter may reduce the voltage output to the power pin VBUS1, may reduce the voltage output to the power pin VBUS1 to a set voltage, may output the voltage to the power pin VBUS1 according to a set step size, and may reduce the voltage output to the power pin VBUS1 to a voltage indicated by the target information, which is not limited herein. The set voltage may be a voltage that is smaller than or equal to a voltage threshold, which is set in advance according to an application scenario or specific requirements, for example, the set voltage may be 5V. The setting step size may be preset according to an application scenario or specific requirements, for example, the setting step size may be 5V.
In some embodiments, the method may further comprise: and determining that the time that the electronic device is not communicated with the power adapter is longer than a third time period, and reducing the voltage output to the power pin VBUS 1.
It is understood that the third period of time may be preset according to the application scenario or specific requirements. The third time period is equal to a time interval defined by the charging protocol during which the electronic device and the power adapter communicate through the charging jack. For example, the third period of time may be 10ms.
It can be understood that in the process of quick charging of the electronic device through the power adapter, the electronic device and the power adapter communicate at set time intervals through the charging socket, and negotiate information such as voltage, current and the like of charging.
It will be appreciated that, due to foreign objects within the charging jack, normal communication between the power adapter and the electronic device may not be possible. Therefore, when the time that the electronic device does not communicate with the power adapter is longer than the third time period, it indicates that foreign matters may exist in the charging socket of the electronic device to cause abnormal charging of the electronic device, and the power adapter may reduce the voltage output to the power pin VBUS1, so that the current flowing through the protection device when the protection device is turned on can be reduced when the protection device is turned on, and the risk that the protection device of the charging socket is burnt is reduced.
It is understood that the power adapter may reduce the voltage output to the power pin VBUS1 to the set voltage, or may reduce the voltage output to the power pin VBUS1 to the set voltage according to the set step size, which is not limited herein. The set voltage may be a voltage that is smaller than or equal to a voltage threshold, which is set in advance according to an application scenario or specific requirements, for example, the set voltage may be 5V. The setting step size may be preset according to an application scenario or specific requirements, for example, the setting step size may be 5V.
When the time that the electronic equipment is not communicated with the power adapter is longer than the third time period, the power adapter reduces the voltage output to the power pin VBUS1, can reduce the current flowing through the protection device when the protection device is conducted, and reduces the risk that the protection device of the charging socket is burnt.
Step 402, stopping outputting voltage to the power pin VBUS1 of the charging jack of the electronic device when the power pin VBUS1 of the charging jack and the ground pin GND1 are short-circuited.
It can be understood that, when the charging is abnormal and the voltage output from the power adapter to the power pin VBUS1 is less than or equal to the voltage threshold, the electronic device controls the protection device of the charging socket to be turned on, so that a short circuit is formed between the power pin VBUS1 and the ground pin GND1 of the charging socket.
It will be appreciated that in the case of a short circuit between the power pin VBUS1 of the charging socket and the ground pin GND1, since the charging socket of the electronic device is connected to the charging plug of the power adapter, the power pin VBUS1 of the charging socket is in contact connection with the power pin VBUS2 of the charging plug of the power adapter, and the ground pin GND1 of the charging socket is in contact connection with the ground pin GND2 of the charging plug of the power adapter, so that the short circuit is also generated between the power pin VBUS2 of the charging plug of the power adapter and the ground pin GND 2.
In some embodiments, the power adapter may be configured to detect a voltage difference between the power pin VBUS2 and the ground pin GND 2. In the case that the power adapter detects that the voltage difference between the power pin VBUS2 and the ground pin GND2 is greater than the set voltage difference, it may be determined that there is no short circuit between the power pin VBUS2 and the ground pin GND 2. When the power adapter detects that the voltage difference between the power pin VBUS2 and the ground pin GND2 is less than or equal to the set voltage difference, it can determine that the power pin VBUS2 and the ground pin GND2 are shorted, that is, the power pin VBUS1 and the ground pin GND1 of the charging socket are shorted.
It is understood that the set voltage difference may be preset according to the application scenario or specific requirements. For example, the set voltage difference may be 1V. Under the condition that the power adapter detects the short circuit between the power pin VBUS1 and the ground pin GND1 of the charging socket, the power adapter stops outputting voltage to the power pin VBUS1, the charging socket of the electronic equipment can be protected, and the risk that the charging socket is burnt out is reduced.
Fig. 9 is a flowchart of a charge control method according to an embodiment of the present disclosure. As shown in fig. 9, the charging jack of the electronic device is connected with the power adapter. The electronic equipment determines that the electronic equipment is abnormal in charging, obtains the voltage of a power supply pin VBUS1 in a charging socket of the electronic equipment, determines that the voltage of the power supply pin VBUS1 is larger than a voltage threshold value, and sends target information to the power supply adapter. The power adapter receives the target information and reduces the voltage output to the power pin VBUS1 according to the target information. The electronic equipment continues to acquire the voltage of the power pin VBUS1, determines that the voltage of the power pin VBUS1 is smaller than or equal to a voltage threshold value, and controls the protection device of the charging socket to be conducted, so that a short circuit is formed between the power pin VBUS1 and the ground pin GND1 of the charging socket. When the power adapter detects a short circuit between the power supply pin VBUS1 and the ground pin GND1 of the charging jack, the power adapter stops outputting the voltage to the power supply pin VBUS 1.
Fig. 10 is a flowchart of a charge control method according to an embodiment of the present disclosure. As shown in fig. 10, the charging jack of the electronic device is connected with the power adapter. The electronic equipment determines that the electronic equipment is abnormal in charging, obtains the voltage of a power supply pin VBUS1 in a charging socket of the electronic equipment, determines that the voltage of the power supply pin VBUS1 is greater than a voltage threshold value, and waits for a second time period; the power adapter determines that the electronic device is not in communication with the power adapter for more than a third period of time, reducing the voltage output to the power pin VBUS 1. The electronic equipment continues to acquire the voltage of the power pin VBUS1, determines that the voltage of the power pin VBUS1 is smaller than or equal to a voltage threshold value, and controls the protection device of the charging socket to be conducted, so that a short circuit is formed between the power pin VBUS1 and the ground pin GND1 of the charging socket. When the power adapter detects a short circuit between the power supply pin VBUS1 and the ground pin GND1 of the charging jack, the power adapter stops outputting the voltage to the power supply pin VBUS 1.
Fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, where the electronic device may be capable of being charged through a matched power adapter.
As shown in fig. 11, the electronic device 700 may include a processor 710 and a memory 720, the memory 720 for storing a computer program for controlling the processor 710 to execute the charge control method performed by the electronic device as described in the foregoing embodiments.
Fig. 12 is a schematic structural diagram of a power adapter according to an embodiment of the present disclosure, where the power adapter is capable of charging an electronic device.
As shown in fig. 12, the power adapter 800 may include a processor 810 and a memory 820, the memory 820 storing a computer program for controlling the processor 810 to execute the charge control method performed by the power adapter as described in the foregoing embodiments.
In this embodiment, there is also provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method as in any of the embodiments of the present disclosure.
The present disclosure may be a system, method, and/or computer program product. The computer program product may include a computer readable storage medium having computer readable program instructions embodied thereon for causing a processor to implement aspects of the present disclosure.
The computer readable storage medium may be a tangible device that can hold and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: portable computer disks, hard disks, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static Random Access Memory (SRAM), portable compact disk read-only memory (CD-ROM), digital Versatile Disks (DVD), memory sticks, floppy disks, mechanical coding devices, punch cards or in-groove structures such as punch cards or grooves having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media, as used herein, are not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., optical pulses through fiber optic cables), or electrical signals transmitted through wires.
The computer readable program instructions described herein may be downloaded from a computer readable storage medium to a respective computing/processing device or to an external computer or external storage device over a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmissions, wireless transmissions, routers, firewalls, switches, gateway computers and/or edge servers. The network interface card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium in the respective computing/processing device.
Computer program instructions for performing the operations of the present disclosure can be assembly instructions, instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, c++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer readable program instructions may be executed entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, aspects of the present disclosure are implemented by personalizing electronic circuitry, such as programmable logic circuitry, field Programmable Gate Arrays (FPGAs), or Programmable Logic Arrays (PLAs), with state information of computer readable program instructions, which can execute the computer readable program instructions.
Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable medium having the instructions stored therein includes an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, implementation by software, and implementation by a combination of software and hardware are all equivalent.
The foregoing description of the embodiments of the present disclosure has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the various embodiments described. The terminology used herein was chosen in order to best explain the principles of the embodiments, the practical application, or the technical improvements in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present disclosure is defined by the appended claims.
Claims (13)
1. A charge control method, wherein the method is applied to an electronic device, comprising:
determining that the electronic equipment is abnormal in charging, and acquiring the voltage of a power supply pin in a charging socket of the electronic equipment;
and under the condition that the voltage of the power pin is smaller than or equal to a voltage threshold value, controlling the conduction of a protection device of the charging socket, so that a short circuit is formed between the power pin and the grounding pin of the charging socket.
2. The method of claim 1, further comprising:
transmitting target information to a power adapter connected with the charging socket when the voltage of the power pin is larger than the voltage threshold, wherein the target information is used for indicating the power adapter to reduce the voltage output to the power pin;
Continuously acquiring the voltage of the power supply pin;
and controlling the protection device to be conducted under the condition that the voltage of the power supply pin is smaller than or equal to the voltage threshold value, so that a short circuit is formed between the power supply pin and the grounding pin of the charging socket.
3. The method of claim 1, further comprising:
waiting a second period of time if the voltage of the power pin is greater than a voltage threshold;
continuously acquiring the voltage of the power supply pin;
and controlling the protection device to be conducted under the condition that the voltage of the power supply pin is smaller than or equal to the voltage threshold value, so that a short circuit is formed between the power supply pin and the grounding pin of the charging socket.
4. The method of claim 1, wherein the determining the electronic device charging anomaly comprises:
acquiring temperature data of the charging jack acquired by a temperature sensor of the electronic equipment;
and determining that the electronic equipment is abnormal in charging according to the temperature data.
5. The method of claim 4, wherein the determining the electronic device charging anomaly from the temperature data comprises:
obtaining the temperature variation of the charging jack in a first time period according to the temperature data;
And determining that the electronic equipment is abnormal in charging under the condition that the temperature variation is greater than or equal to a temperature variation threshold value.
6. The method of claim 4, wherein the determining the electronic device charging anomaly from the temperature data comprises:
obtaining the current temperature of the charging jack according to the temperature data;
and determining that the electronic equipment is abnormal in charging under the condition that the current temperature is greater than or equal to a temperature threshold value.
7. The method of claim 1, wherein the determining that the electronic device is charging abnormal comprises:
obtaining the ground resistance value of the signal pin of the charging socket;
and determining that the electronic equipment is abnormal in charging under the condition that the resistance value to ground is smaller than or equal to a resistance value threshold value.
8. A charging control method, wherein the method is applied to a power adapter, comprising:
outputting a voltage less than or equal to a voltage threshold to a power supply pin of a charging socket of the electronic device under the condition that the electronic device connected with the power supply adapter is abnormally charged;
and stopping outputting voltage to the power pin of the charging jack of the electronic equipment under the condition that the power pin of the charging jack is short-circuited with the ground pin.
9. The method of claim 8, wherein the outputting a voltage less than or equal to a voltage threshold to a power pin of a charging jack of the electronic device in the event of a charging anomaly of the electronic device connected to the power adapter comprises:
receiving target information sent by the electronic equipment, wherein the target information is sent by the electronic equipment under the condition that the electronic equipment determines that the charging is abnormal and the voltage of the power supply pin is larger than the voltage threshold;
and according to the target information, reducing the voltage output to the power supply pin.
10. The method of claim 8, further comprising:
and when the electronic equipment is not communicated with the power adapter for more than a third time period, reducing the voltage output to the power pin.
11. An electronic device comprising a processor and a memory for storing a computer program for controlling the processor to perform the method of any of claims 1 to 7.
12. A power adapter comprising a processor and a memory, the memory for storing a computer program for controlling the processor to perform the method of any of claims 8 to 10.
13. A computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any of claims 1 to 7 or implements the method of any of claims 8 to 10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311467043.6A CN117200403A (en) | 2023-11-03 | 2023-11-03 | Charging control method, electronic device, power adapter and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311467043.6A CN117200403A (en) | 2023-11-03 | 2023-11-03 | Charging control method, electronic device, power adapter and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117200403A true CN117200403A (en) | 2023-12-08 |
Family
ID=89005654
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311467043.6A Pending CN117200403A (en) | 2023-11-03 | 2023-11-03 | Charging control method, electronic device, power adapter and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117200403A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109245244A (en) * | 2018-11-13 | 2019-01-18 | Oppo(重庆)智能科技有限公司 | Charging circuit, charging method, electronic equipment and storage medium |
CN109286220A (en) * | 2018-11-13 | 2019-01-29 | Oppo(重庆)智能科技有限公司 | Charging circuit, charging method, electronic equipment and storage medium |
CN109412234A (en) * | 2018-11-13 | 2019-03-01 | Oppo(重庆)智能科技有限公司 | Charging circuit, charging method, electronic equipment and storage medium |
CN114039400A (en) * | 2022-01-11 | 2022-02-11 | 荣耀终端有限公司 | Electronic equipment |
-
2023
- 2023-11-03 CN CN202311467043.6A patent/CN117200403A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109245244A (en) * | 2018-11-13 | 2019-01-18 | Oppo(重庆)智能科技有限公司 | Charging circuit, charging method, electronic equipment and storage medium |
CN109286220A (en) * | 2018-11-13 | 2019-01-29 | Oppo(重庆)智能科技有限公司 | Charging circuit, charging method, electronic equipment and storage medium |
CN109412234A (en) * | 2018-11-13 | 2019-03-01 | Oppo(重庆)智能科技有限公司 | Charging circuit, charging method, electronic equipment and storage medium |
CN114039400A (en) * | 2022-01-11 | 2022-02-11 | 荣耀终端有限公司 | Electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7428835B2 (en) | Charging circuit and charging cable | |
EP3093945B1 (en) | Electronic device, charger within the electronic device, and detecting method for detecting abnormal status of connector of electronic device | |
AU2014415910B2 (en) | Charging protection method and apparatus | |
US10658860B2 (en) | Electronic device, charger within the electronic device, and detecting method for detecting abnormal status of connector of electronic device | |
US20160344210A1 (en) | Power adapter, terminal, and method for processing impedance anomalies in charging circuit | |
CN106505660B (en) | A kind of charge protection method, charging protector and terminal | |
TWI427883B (en) | Over-voltage protection circuit, method and computer program product for operating the same and mobile device | |
CN108964182B (en) | Reverse charging equipment, and method and device for adjusting reverse charging current | |
KR102675130B1 (en) | Device and method for ensuring power delivery in universal serial bus interface | |
EP3484002B1 (en) | Electrostatic protection circuit | |
GB2581663A (en) | Socket monitoring | |
US11742684B2 (en) | Charging control circuit, charging circuit and charging control method | |
CN105634092A (en) | Charging circuit, charger with USB port and charging system | |
US20180097378A1 (en) | Low-voltage, high-current charging with over-voltage sensing | |
CN106877462B (en) | A kind of method and charger detecting charged state | |
WO2017185687A1 (en) | Charging protection method and apparatus, and electronic device | |
JP7417767B2 (en) | Data cables and charging equipment | |
JP6804892B2 (en) | Electrical equipment | |
WO2018076653A1 (en) | Charging method and device, and terminal | |
CN117200403A (en) | Charging control method, electronic device, power adapter and readable storage medium | |
JP6712062B2 (en) | Electronic device, electronic system, and power supply control method | |
CN114389246B (en) | Method for reducing surge voltage and power supply equipment | |
TWI776715B (en) | Cable assembly capable of detecting bidirectional charging-current | |
CN211655734U (en) | Over-temperature protection circuit and charging device | |
CN110768315B (en) | Protection method and system for charging interface 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 |