CN109286220B - Charging circuit, charging processing method, electronic device, and storage medium - Google Patents
Charging circuit, charging processing method, electronic device, and storage medium Download PDFInfo
- Publication number
- CN109286220B CN109286220B CN201811348739.6A CN201811348739A CN109286220B CN 109286220 B CN109286220 B CN 109286220B CN 201811348739 A CN201811348739 A CN 201811348739A CN 109286220 B CN109286220 B CN 109286220B
- Authority
- CN
- China
- Prior art keywords
- charging
- interface
- temperature
- control module
- humidity
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 20
- 238000001514 detection method Methods 0.000 claims description 13
- 238000000034 method Methods 0.000 claims description 13
- 238000004590 computer program Methods 0.000 claims description 9
- 238000010586 diagram Methods 0.000 description 21
- 230000007246 mechanism Effects 0.000 description 11
- 238000004891 communication Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 5
- 239000007788 liquid Substances 0.000 description 5
- 230000008859 change Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 239000011521 glass Substances 0.000 description 3
- 239000000463 material Substances 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000005669 field effect Effects 0.000 description 2
- 238000010438 heat treatment Methods 0.000 description 2
- 229910052751 metal Inorganic materials 0.000 description 2
- 239000002184 metal Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 229910000861 Mg alloy Inorganic materials 0.000 description 1
- 230000003190 augmentative effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 239000000919 ceramic Substances 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 239000000428 dust Substances 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 229910052594 sapphire Inorganic materials 0.000 description 1
- 239000010980 sapphire Substances 0.000 description 1
- 239000010935 stainless steel Substances 0.000 description 1
- 229910001220 stainless steel Inorganic materials 0.000 description 1
Images
Classifications
-
- H02J7/0086—
-
- H02J7/0091—
Landscapes
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
The embodiment of the application provides a charging circuit, a charging processing method, electronic equipment and a storage medium, wherein the charging circuit comprises a charging interface, a humidity acquisition module and a control module, and the charging interface is used for being connected with an external charging device; the humidity acquisition module is arranged in the charging interface and acquires a humidity value in the charging interface; the control module acquires the humidity value through the humidity acquisition module, when the humidity value exceeds a safe humidity value range, the control module controls the external charging device to reduce charging power and prevent the charging interface from being damaged, meanwhile, entering sundries are removed through the reduced charging power, and after the sundries are removed, the control module controls the external charging device to increase the charging power.
Description
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a charging circuit, a charging processing method, an electronic device, and a storage medium.
Background
At present, a charging interface of an electronic device such as a mobile phone can integrate data transmission and charging functions. In the related art, the electronic equipment can be charged in a common charging mode and a quick charging mode through the charging interface, and in the quick charging mode, because the distance between pins of the charging interface is smaller and the charging power is large, when the charging interface has foreign matters or liquid enters, a micro short circuit is easily caused, and then the charging interface and the equipment to be charged are damaged.
Disclosure of Invention
The embodiment of the application provides a charging circuit, a charging processing method, an electronic device and a storage medium, wherein foreign matters or liquid can enter a charging interface, and the charging interface is protected during charging.
The embodiment of the application provides a charging circuit, it includes:
the charging interface is used for connecting an external charging device;
the humidity acquisition module is arranged in the charging interface and acquires a humidity value in the charging interface;
the control module, the interface that charges with the humidity acquisition module all with control module connects, control module passes through the humidity acquisition module acquires the humidity value, works as when the humidity value surpasses safe humidity value scope, control module control outside charging device reduces charging power, works as when the humidity value resumes to safe humidity value within range, control module control outside charging device increases charging power.
The embodiment of the application also provides a charging processing method, which is applied to equipment to be charged, wherein the equipment to be charged comprises a charging interface; the method comprises the following steps:
acquiring a humidity value of the charging interface;
when the humidity value exceeds a safe humidity value range, the control module controls the external charging device to reduce charging power;
and when the humidity value is recovered to be within a safe humidity value range, the control module controls the external charging device to increase the charging power.
The embodiment of the application also provides an electronic device, which comprises a charging circuit and a battery, wherein the charging circuit is connected with the battery, and the charging circuit is as described above.
Embodiments of the present application also provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the charging processing method as described above.
The embodiment of the application provides a charging circuit, a charging processing method, an electronic device and a storage medium, when the charging circuit is in a charging process, and when the humidity value of a charging interface exceeds a safe humidity value range, a control command is sent to an external charging device to control the external charging device to reduce charging power, so that the charging interface is protected, when the humidity value is recovered to the safe humidity value range, namely after the charging interface is normal, the control module controls the external charging device to increase charging power and shorten charging time.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a schematic structural diagram of a first state of an electronic device according to an embodiment of the present application.
Fig. 2 is another schematic structural diagram of the first state of the electronic device according to the embodiment of the present application.
Fig. 3 is a schematic structural diagram of a second state of an electronic device according to an embodiment of the present application.
Fig. 4 is another schematic structural diagram of a second state of the electronic device according to the embodiment of the present application.
Fig. 5 is a schematic structural diagram of a device to be charged and a charging apparatus according to an embodiment of the present disclosure.
Fig. 6 is another schematic structural diagram of a device to be charged and a charging apparatus according to an embodiment of the present disclosure.
Fig. 7 is a schematic structural diagram of a control module and a temperature detection element of a device to be charged according to an embodiment of the present application.
Fig. 8 is a schematic structural diagram of a charging interface and a temperature detection element of a device to be charged according to an embodiment of the present disclosure.
Fig. 9 is a schematic structural diagram of a device to be charged and a charging apparatus according to an embodiment of the present disclosure.
Fig. 10 is a flowchart illustrating a charging processing method according to an embodiment of the present application.
Fig. 11 is a block diagram schematically illustrating a module of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
The embodiment of the application provides a charging circuit, a charging processing method, an electronic device and a storage medium. The details will be described below separately. The electronic device may be a smart phone, a tablet computer, or other devices, and may also be a game device, an AR (Augmented Reality) device, an audio playing device, a video playing device, or other devices.
Referring to fig. 1 to 4, fig. 1 is a schematic structural diagram of a first state of an electronic device according to an embodiment of the present disclosure, fig. 2 is another schematic structural diagram of the first state of the electronic device according to the embodiment of the present disclosure, fig. 3 is a schematic structural diagram of a second state of the electronic device according to the embodiment of the present disclosure, and fig. 4 is another schematic structural diagram of the second state of the electronic device according to the embodiment of the present disclosure. The first state may be a state in which the electronic device 100 does not turn on the camera function, such as a standby state and a state in which the camera is not turned on when the screen is bright. The second state is a state when the electronic device 100 turns on the image capturing function.
In some embodiments, the electronic device 100 may include a display 12, an electronics board 13, a battery 14, a housing 15, a front-facing camera 161, and a rear-facing camera 162. Note that the electronic apparatus 100 is not limited to the above.
In some embodiments, electronic device 100 may further include a sliding mechanism 18, sliding mechanism 18 being coupled to housing 15, sliding mechanism 18 being slidable relative to the housing. The front camera 161 and the rear camera 162 are provided on the slide mechanism 18, and are located on opposite sides, respectively.
When the electronic device 100 is in the first state, the sliding mechanism 18 is in the initial state, i.e., the sliding mechanism 18 is located in the housing.
When the electronic device 100 is in the second state, i.e. when the camera function is turned on, the sliding mechanism 18 slides out of the housing 15, and the front camera 161 and the rear camera 162 are disposed on the sliding mechanism 18. When the sliding mechanism 18 does not slide out of the casing 15, the front camera 161 and the rear camera 162 are hidden in the casing, and when the electronic device 100 is in the second state, the sliding mechanism 18 slides out of the casing 15, so that photographing, shooting and the like can be performed by using the front camera 161 and the rear camera 162.
Wherein the display screen 12 is mounted in the housing 15. The display 12 is electrically connected to the electronic circuit board 13 to form a display surface of the electronic apparatus 100. The display 12 may be in a regular shape, such as a rectangular parallelepiped structure, and the display 12 may cover the entire display surface of the electronic device 100, that is, a full screen display of the electronic device 100 is realized.
In some embodiments, the Display 12 may be a Liquid Crystal Display (LCD) or an Organic Light-Emitting Diode (OLED) Display.
The electronic circuit board 13 is mounted in the housing 15, the electronic circuit board 13 may be a main board of the electronic device 100, and one, two or more functional components of a motor, a microphone, a speaker, an earphone interface, a universal serial bus interface, a front camera 161, a rear camera 162, a receiver 171, a distance sensor, an ambient light sensor, a processor, and the like may be integrated on the electronic circuit board 13. It is noted that, in the description of the present application, "a plurality" means two or more unless specifically defined otherwise.
In some embodiments, the electronic circuit board 13 may be screwed into the housing 15 by screws, or may be snap-fit into the housing 15. It should be noted that the way of specifically fixing the electronic circuit board 13 in the housing 15 according to the embodiment of the present application is not limited to this, and other ways, such as a way of fixing by a snap and a screw together, are also possible.
The electronic device 100 may further include a cover plate mounted to the display 12 to cover the display 12. The cover may be a clear glass cover so that the display 12 is transparent to the cover for display. In some embodiments, the cover plate may be a glass cover plate made of a material such as sapphire.
Wherein the housing 15 may form an outer contour of the electronic device 100. In some embodiments, the housing 15 may be a metal housing component, such as a metal such as magnesium alloy, stainless steel, and the like. It should be noted that the material of the housing 15 in the embodiment of the present application is not limited to this, for example: the housing 15 may be a plastic housing, a ceramic housing, a glass housing, or the like.
The electronic apparatus of the present application may have only the first state, that is, the electronic apparatus does not have the slide mechanism 18, and the electronic apparatus may have a non-display area, and the front camera 161, the receiver 171, the distance sensor, the ambient light sensor, and the like may be provided in the non-display area.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a device to be charged and a charging apparatus according to an embodiment of the present disclosure. The device to be charged 300 includes a charging circuit including a charging interface 310, a humidity acquisition module 362, and a control module 380. The device to be charged 300 may be an electronic device in the above embodiments, and is not described herein again.
The charging interface 310 is used to connect the external charging device 200. The charging interface 310 may be a Universal Serial Bus (USB) interface. Specifically, the charging interface 310 may be a Micro USB interface or a Type-C interface, and of course, the charging interface 310 may also be other interfaces. The charging interface 310 is connected to the external charging device 200 through a charging cable line, and obtains power from the external charging device 200. The external charging device 200 may be an adapter or the like. Charging interface 310 includes a plurality of pins including power pin VBUS.
The humidity acquisition module 362 is disposed in the charging interface 310, and the humidity acquisition module 362 acquires a humidity value in the charging interface 310.
The charging interface 310 and the humidity acquisition module 362 are both connected with the control module 380, the control module 380 acquires a humidity value through the humidity acquisition module 362, when the humidity value exceeds a safe humidity value range, the control module 380 controls an external charging device to reduce charging power, so that the charging interface 310 is prevented from being damaged, and meanwhile, entering sundries, such as liquid entering the charging interface 310 and the like, are removed through the reduced charging power. After the sundries are removed, the control module 380 controls the external charging device to increase the charging power and charge quickly to shorten the charging time when detecting that the humidity value is recovered to the safe humidity value range.
In some embodiments, the charging interface 310 includes a communication pin, the control module 380 is connected to the communication pin, and the control command generated by the control module 380 is transmitted to the external charging device through the communication pin.
The control module 380 generates a control command according to an abnormal condition of the charging interface 310, and then transmits the control command to the external charging device from the communication pin of the charging interface 310. The charging interface 310 may be a Micro USB interface or a Type-C interface, and the communication interface corresponds to a D + pin and a D-pin, and the control instruction is generated according to a USB protocol.
Referring to fig. 6, fig. 6 is another schematic structural diagram of a device to be charged and a charging apparatus according to an embodiment of the present disclosure. The charging circuit further comprises a temperature acquisition module 361, the temperature acquisition module 361 is arranged adjacent to or attached to the charging interface 310, and the temperature acquisition module 361 acquires a temperature value of the charging interface 310; when the temperature value is greater than the first temperature threshold, the control module 380 controls the humidity obtaining module 362 to obtain the humidity value in the charging interface 310, or the control module 380 obtains the humidity value through the humidity obtaining module 362.
The temperature obtaining module 361 of the charging circuit detects the temperature value of the charging interface 310 in real time, and when the temperature value is greater than the first temperature threshold, the control module 380 obtains the humidity value detected by the humidity detecting module. Alternatively, when the temperature value is greater than the first temperature threshold, the control module 380 activates the humidity detection module to detect the humidity value of the charging interface 310.
The temperature obtaining module 361 may change a corresponding resistance value according to a temperature change of the charging interface 310, so as to obtain the first temperature information of the current charging interface 310 according to the change of the resistance value of the temperature obtaining module 361.
Specifically, with reference to fig. 7 and 8, fig. 7 is a schematic structural diagram of a control module and a temperature detection element of a device to be charged according to an embodiment of the present application, and fig. 8 is a schematic structural diagram of a charging interface and a temperature detection element of a device to be charged according to an embodiment of the present application. The temperature acquisition module 361 may be disposed around the charging interface 310, may be disposed in the charging interface 310, and may be attached to the outer surface of the charging interface 310, so as to acquire a temperature value of the charging interface 310. When the temperature value is within the safe temperature value range, it is determined that the charging interface 310 is in the normal state. When the temperature value exceeds the safe temperature value range, it is determined that charging interface 310 is in an abnormal state. The safe temperature value range can be 10-60 ℃, and can also be-10-50 ℃. The safe temperature value range may be the current ambient temperature to 60 degrees celsius, etc. The current ambient temperature may be obtained by setting the ambient temperature obtaining module 361 for the device to be charged. Wherein, when interface 310 feed liquor or the foreign matter that thoughtlessly advances charge, cause the short circuit in the interface 310 that charges to the temperature rises in the interface 310 that makes charging, through lower power charge, both can protect interface 310 that charges not burnt out, can influence foreign matters such as feed liquor, dust through this temperature again, in time carry out the foreign matter clearance effectively. And finally, switching the charging mode of the charging circuit back to the quick charging mode for quick charging. The temperature acquisition module 361 can be a negative temperature coefficient resistor, a single thermistor, a temperature sensor, and other components.
A pin diagram of the charging interface 310 is shown. The Temperature obtaining module 361 may employ a Negative Temperature Coefficient thermistor, wherein the Negative Temperature Coefficient thermistor (NTC) is a material having a Negative Temperature Coefficient thermistor phenomenon that the resistance decreases exponentially with the Temperature rise.
In some embodiments, the number of temperature acquisition modules 361 is at least 2, and each temperature acquisition module 361 is connected to one detection pin of the control module 380.
Each temperature obtaining module 361 can work independently and respectively obtain the temperature value of the charging interface 310. Each temperature acquisition module 361 is connected with a detection pin of the control module 380, so that the control module 380 can acquire at least 2 temperature values, and then when any one temperature value exceeds the safe temperature value range, the fast charging mode is switched to the ordinary charging mode. Or, when at least one temperature value exceeds the safe temperature value range, and at least one temperature value does not exceed the safe temperature value range, but the difference from the maximum value of the safe temperature value range is small (for example, less than 10 degrees celsius or less than 5 degrees celsius), switching from the fast charging mode to the normal charging mode. To prevent malfunction due to damage to the individual temperature acquisition modules 361.
In some embodiments, one end of the temperature obtaining module 361 is connected to the detection pin of the control module 380 and is connected to the power supply VDD through the first resistor R2 or R3, and the other end of the temperature obtaining module 361 is grounded. The temperature acquisition module 361 may be a temperature sensitive resistor RT1 or RT 2.
The power supply VDD may be a power supply raised inside the device 300 to be charged, such as 5V. It should be noted that the detection pin of the control module 380 may be an Analog-to-Digital Converter (ADC) pin.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a device to be charged and a charging apparatus according to an embodiment of the present disclosure. When the temperature value exceeds the first temperature threshold, the control module 380 controls the charging circuit to switch from the fast charging mode to the normal charging mode.
In some embodiments, the device to be charged 300 supports both normal charging and fast charging modes, and the external charging apparatus 200 may also support both normal charging and fast charging modes. The external charging device 200 in the fast charging mode provides higher charging power, e.g., may provide higher voltage and/or current than normal charging. In the fast charging mode, the external charging device 200 provides the electric energy of the first charging power to the device 300 to be charged, and in the normal charging mode, the external charging device 200 provides the electric energy of the second charging power to the device 300 to be charged, and the second charging power is smaller than the first charging power. For example, in the normal charging mode, a charging current of 5V, 1A, and a charging power of 5W is supplied. In the fast charge mode, a charge current of 9V, 2A and 18W of charge power is supplied, or a charge current of 5V, 3A and 15W of charge power may be supplied. In the fast charging mode, the charging power can be increased only by increasing the voltage, only by increasing the current, by increasing the voltage and the current at the same time, and the increased charging power can reach 50W at most, or even higher.
The device 300 to be charged can be charged with the external charging apparatus 200 through the charging interface 310, and can also communicate through the communication pins (D +, D-) of the charging interface 310. The control module 380 may obtain the charging information of the external charging device 200 through the charging interface 310, and then obtain whether the external charging device 200 supports the fast charging according to the charging information, and if the external charging device 200 supports the fast charging, the first charging power may be selected as the target charging power from the first charging power and the second charging power. If the external charging device 200 does not support the fast charging, the second charging power may be selected as the target charging power from the first charging power and the second charging power. After determining the target charging power, the control module 380 generates control information according to the target charging power, and sends the control information to the external charging device 200, where the control information is used to control the external charging device 200 to perform charging according to the target charging power. That is, the control module 380 controls the external charging device 200 to select the fast charge mode or the normal charge mode according to the communication content with the external charging device 200.
It should be noted that, in the fast charging mode, the external charging device 200 may obtain parameters of the battery 330, such as remaining capacity, battery voltage, battery current, and the like, and the external charging device 200 adjusts its output voltage and/or output current according to the parameters of the battery 330. For example, the external charging device 200 outputs different output voltages and/or output currents in the trickle state, the constant current state, or the constant voltage state. In the normal charging mode, the power management chip 382 in the device 300 to be charged can change the voltage and current input by the external charging apparatus 200 to meet the requirements of the battery 330.
In some embodiments, when the target charging power is the first charging power, the power input pin VBUS of the charging interface 310 is connected to the battery 330 directly or through the first switching element 371; when the target charging power is the second charging power, the power input pin VBUS of the charging interface 310 is connected to the battery 330 through the power management chip 382.
When the external charging device 200 and the device 300 to be charged are in the normal charging mode, i.e. when the target charging power is the second charging power, the power input pin VBUS of the charging interface 310 is connected to the battery 330 through the power management chip 382. The power management chip 382 comprises a protection circuit, and can directly short the VBUS grounding of the power input pin of the Type-C interface, stop charging and realize temperature reduction of the Type-C interface.
When the external charging device 200 and the device 300 to be charged are in the fast charging mode, i.e. when the target charging power is the first charging power, the power input pin VBUS of the charging interface 310 is connected to the external charging device 200, and the power input pin VBUS of the charging interface 310 may also be connected to the battery 330 directly or through the first switch element 371. The electric energy of the external charging device 200 directly charges the battery 330 of the device 300 to be charged, so that high-power quick charging can be realized. Meanwhile, the battery management chip 382 does not pass through between the external charging device 200 and the battery 330 of the device 300 to be charged, when the charging interface 310 has foreign matters or liquid entering at the Type-C interface, a short circuit can occur between pins at the Type-C interface, because under the direct charging mode, the pins of the charging interface 310 are directly electrically connected with the battery 330, the battery management chip 382 does not exist between the charging interface 310 and the battery 330 for protection, and the short circuit at the Type-C interface can cause overlarge current in a short time and easily burn the Type-C interface and the device 300 to be charged. If the temperature value of the Type-C interface exceeds the safe temperature value range, the Type-C interface and the battery 330 are disconnected and quit the quick charging, and then the common charging mode is entered.
In some embodiments, the charging circuit includes a first switching element 371. The first switch element 371 includes a first input 3711, a first output 3712 and a first control 3713. The first switch element 371 may be a switch tube. The first switch element 371 may also include a first switch tube 372 and a second switch tube 374, an input end of the first switch tube 372 is used as a first input end 3711, an output end of the second switch tube 374 is used as a first output end 3712, an output end of the first switch tube 372 is connected to an input end of the second switch tube 374, and a control end of the first switch tube 372 is connected to a control end of the second switch tube 374 and is used as a first control end 3713.
The first switch tube 372 and the second switch tube 374 may be field effect transistors or triodes. Taking a field effect transistor as an example, the input terminal of the first switching tube 372 is a source, the output terminal of the first switching tube 372 is a drain, the control terminal of the first switching tube 372 is a gate, the input terminal of the second switching tube 374 is a drain, the output terminal of the second switching tube 374 is a source, and the control terminal of the second switching tube 374 is a gate. The two fet connections may prevent the signal VBAT of the battery 330 from flowing backwards.
In some embodiments, the first switch element 371 may also be a controllable switch.
In some embodiments, the control module 380 includes a first control unit 381 and a second control unit, the first control unit 381 is connected to the first control terminal 3713 of the first switch element 371. The second control unit includes a power management chip 382 and its peripheral circuits, the power input pin of the charging interface 310 is connected to the battery 330 through the power management chip 382, and the power management chip 382 adjusts the electrical signal input by the power input pin according to the parameter of the battery 330 and transmits the adjusted electrical signal to the battery 330. The peripheral circuit includes an inductor L1, one end of the inductor L1 is connected to the power management chip 382, and the other end is connected to the battery 330.
The first control unit 381 is used to control the first switching element 371. The power management chip 382 of the second control unit may adjust the electrical signal input from the power input pin according to parameters of the battery 330 (e.g., the remaining capacity, voltage, and current of the battery 330), and transmit the adjusted electrical signal to the battery 330. The first control unit 381 may be a fast charge management chip, and its peripheral circuits.
In some embodiments, when the temperature value exceeds the first temperature threshold, the control module 380 generates a control command and transmits the control command to the external charging device through the charging interface 310 to control the external charging device to switch from the fast charging mode to the normal charging mode.
The external charging device 200 side lowers the charging power output to the device to be charged 300, i.e., switches from the fast charge mode to the normal charge mode.
In some embodiments, when the temperature value exceeds a second temperature threshold, which is greater than the first temperature threshold, the control module 380 generates a control command and transmits the control command to the external charging device through the charging interface 310 to control the external charging device to stop outputting the charging signal.
When the temperature value of the charging interface 310 is greater than the second temperature threshold value, it indicates that the charging interface 310 is dangerous and easy to burn out, and at this time, the external charging device is controlled to stop outputting the charging signal. Specifically, the control command may be sent to the external charging device to stop outputting the charging signal, or the power input pin VBUS of the charging interface 310 may be grounded, so that the external charging device performs overcurrent protection, and thus stops charging.
In some embodiments, an analog-to-digital conversion (AC-DC) module is disposed in the charging device 200 for converting AC power (e.g., 220V AC power) of the utility power into DC power (e.g., 5V DC power) for charging the device 300 to be charged. The second control unit has a DC-DC voltage conversion module therein, which can adjust the voltage and/or current output to the battery 330 according to the requirement of the battery 330.
The external charging device 200 may further include a fourth switching element 260, an input terminal of the fourth switching element 260 is connected to the output terminal of the AC-DC module, an output terminal of the fourth switching element 260 is connected to the power input pin VBUS of the charging interface 310, and a control terminal of the fourth switching element 260 is connected to the second control module 230. The second control module 230 controls the input and the output of the fourth switching element 260 to be turned on or off, and the charging can be stopped by controlling the input and the output of the fourth switching element 260 to be turned off.
In some embodiments, a resistor R1 may be connected in series with the charging cable 210 between the VBUS line and the CC line to indicate that an external charging device (e.g., a power adapter) is the source device. A resistor R1 may also be connected in series between the VOUT pin and the CC pin of the external charging device 200 to indicate that the external charging device (e.g., a power adapter) is a source device. A battery protection board may be disposed in the battery 330 of the device 300 to be charged, and the battery protection board may implement functions such as short circuit and overcurrent protection. In some embodiments, the charging circuit further comprises a second control module 230 located at the external charging device; the second control module 230 is connected to the charging interface 310, and the second control module 230 intermittently outputs the charging signal to the charging interface 310 according to the control command.
The second control module 230 may intermittently output the charging signal to the charging interface 310, for example, the charging signal is changed into a pulse signal, so that the foreign object may be intermittently heated, thereby preventing the wire from being burned due to continuous heating. After the pulse signal is generated, the voltage of the pulse signal may be lowered or the duty ratio of the pulse signal may be lowered, thereby protecting the charging interface 310.
Referring to fig. 10, fig. 10 is a schematic flowchart illustrating a charging processing method according to an embodiment of the present disclosure. Referring to fig. 5 to 9, the charging processing method is applied to the device 300 to be charged, where the device 300 to be charged includes a charging interface 310, and the charging processing method may specifically include:
and 101, acquiring a humidity value of the charging interface.
The charging interface 310 is used to connect the external charging device 200. The charging interface 310 may be a Universal Serial Bus (USB) interface. Specifically, the charging interface 310 may be a Micro USB interface or a Type-C interface, and of course, the charging interface 310 may also be other interfaces. The charging interface 310 is connected to the external charging device 200 through a charging cable line, and obtains power from the external charging device 200. The external charging device 200 may be an adapter or the like. Charging interface 310 includes a plurality of pins including power pin VBUS.
The humidity value of the interface 310 may be charged in real time. Specifically, the humidity value of the charging interface 310 may be acquired by the humidity detection module 362 disposed in the charging interface 310.
And 102, when the humidity value exceeds the safe humidity value range, the control module controls the external charging device to reduce the charging power.
Thereby preventing the charging interface from being damaged and simultaneously removing the entering sundries through the charging power with reduced power. Such as liquid entering charging interface 310, etc.
And 103, when the humidity value is restored to be within the safe humidity value range, the control module controls the external charging device to increase the charging power.
After the sundries are removed, the control module 380 controls the external charging device to increase the charging power and charge quickly to shorten the charging time when detecting that the humidity value is recovered to the safe humidity value range.
In some embodiments, before acquiring the humidity value of the charging interface, the method further includes: the temperature value of the charging interface 310 may also be acquired, and when the temperature value is greater than the first temperature threshold, the humidity acquisition module 362 is controlled to acquire the humidity value in the charging interface 310, or the humidity acquisition module 362 acquires the humidity value.
When the temperature value is greater than the first temperature threshold, the control module 380 obtains the humidity value detected by the humidity detection module. Alternatively, when the temperature value is greater than the first temperature threshold, the control module 380 activates the humidity detection module to detect the humidity value of the charging interface 310.
In some embodiments, after acquiring the temperature value of charging interface 310, the method further includes: and when the temperature value exceeds a first temperature threshold value, controlling the charging circuit to switch from the fast charging mode to the common charging mode.
In some embodiments, after acquiring the temperature value of charging interface 310, the method further includes: when the temperature value exceeds the first temperature threshold, a control instruction is generated and transmitted to the external charging device through the charging interface 310, so that the external charging device is controlled to switch from the fast charging mode to the normal charging mode.
The external charging device 200 side lowers the charging power output to the device to be charged 300, i.e., switches from the fast charge mode to the normal charge mode.
In some embodiments, after acquiring the temperature value of charging interface 310, the method further includes: when the temperature value exceeds a second temperature threshold, a control command is generated and transmitted to the external charging device through the charging interface 310 to control the external charging device to stop outputting the charging signal, wherein the second temperature threshold is greater than the first temperature threshold.
When the temperature value of the charging interface 310 is greater than the second temperature threshold value, it indicates that the charging interface 310 is dangerous and easy to burn out, and at this time, the external charging device is controlled to stop outputting the charging signal. Specifically, the control command may be sent to the external charging device to stop outputting the charging signal, or the power input pin VBUS of the charging interface 310 may be grounded, so that the external charging device performs overcurrent protection, and thus stops charging.
In some embodiments, the method further comprises: and after receiving the control command, the external charging device intermittently outputs a charging signal to the charging interface according to the control command so as to reduce the charging power.
The external charging device may intermittently output the charging signal to the charging interface 310, for example, the charging signal is changed into a pulse signal, so that the foreign object may be intermittently heated, thereby preventing the wire from being burned due to continuous heating. After the pulse signal is generated, the voltage of the pulse signal may be lowered or the duty ratio of the pulse signal may be lowered, thereby protecting the charging interface 310.
Referring to fig. 11, fig. 11 is a block diagram illustrating an electronic device according to an embodiment of the present disclosure. The electronic device 100 may include control circuitry, which may include storage and processing circuitry 61. The storage and processing circuitry 61 may include memory, volatile memory, etc., and the processing circuitry in the storage and processing circuitry 61 may be used to control the operation of the electronic device 100. The storage and processing circuitry 61 may be used to run software in the electronic device 100.
The electronic device 100 may also include input-output circuitry 62. The input-output circuit 62 may be used to enable the electronic device 100 to input and output data, i.e., to allow the electronic device 100 to receive data from external devices and also to allow the electronic device 100 to output data from the electronic device 100 to external devices. The input-output circuitry 62 may further include a sensor 63, and one or more displays (e.g., display 64).
The electronic device 100 may further include other input-output units 67. The input-output unit 67 may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes and other status indicators, etc.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
An embodiment of the present application further provides a storage medium, where the storage medium stores a computer program, and when the computer program runs on a computer, the computer program causes the computer to execute the charging processing method in any one of the above embodiments, such as: acquiring a humidity value of the charging interface; when the humidity value exceeds a safe humidity value range, the control module controls the external charging device to reduce charging power; and when the humidity value is recovered to be within a safe humidity value range, the control module controls the external charging device to increase the charging power.
In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
It should be noted that, for the charging processing method of the embodiment of the present application, it can be understood by a person skilled in the art that all or part of the process of implementing the charging processing method of the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and the process of executing the computer program can include the process of the embodiment of the charging processing method. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
The charging circuit, the charging processing method, the electronic device, and the storage medium provided in the embodiments of the present application are described in detail above, and specific examples are applied herein to illustrate the principles and implementations of the present application, and the description of the embodiments above is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (7)
1. A charging circuit, comprising:
the charging interface is used for connecting an external charging device;
the humidity acquisition module is arranged in the charging interface and acquires a humidity value in the charging interface;
the first control module acquires the humidity value through the humidity acquisition module, controls the external charging device to reduce charging power when the humidity value exceeds a safe humidity value range, and controls the external charging device to increase charging power when the humidity value is restored to the safe humidity value range;
the charging circuit further comprises a temperature acquisition module, the temperature acquisition module is arranged adjacent to or attached to the charging interface, and the temperature acquisition module acquires a temperature value of the charging interface;
when the temperature value exceeds a first temperature threshold value, the first control module controls the humidity acquisition module to acquire a humidity value in the charging interface, or the first control module acquires the humidity value through the humidity acquisition module;
the charging circuit further comprises a second control module located in the external charging device;
the second control module is connected with the charging interface and outputs a charging signal to the charging interface discontinuously according to a control command;
the number of the temperature acquisition modules is at least 2, and each temperature acquisition module is connected with one detection pin of the first control module.
2. The charging circuit of claim I, wherein the first control module controls the charging circuit to switch from a fast charging mode to a normal charging mode when the temperature value is greater than a first temperature threshold.
3. The charging circuit of claim I, wherein when the temperature value is greater than a first temperature threshold, the first control module generates a control command and transmits the control command to the external charging device through the charging interface to control the external charging device to switch from a fast charging mode to a normal charging mode.
4. The charging circuit of claim I, wherein when the temperature value is greater than a second temperature threshold, the first control module generates a control command and transmits the control command to the external charging device through the charging interface to control the external charging device to stop outputting the charging signal, wherein the second temperature threshold is greater than the first temperature threshold.
5. A charging processing method is applied to equipment to be charged and is characterized in that the equipment to be charged comprises a charging interface; the method comprises the following steps:
acquiring the temperature value of the charging interface;
when the temperature value exceeds a first temperature threshold value, acquiring a humidity value in the charging interface;
when the humidity value exceeds the safe humidity value range, the first control module controls an external charging device to reduce charging power;
when the humidity value is recovered to be within a safe humidity value range, the first control module controls the external charging device to increase charging power;
the method further comprises the following steps:
and after receiving the control command, the external charging device intermittently outputs a charging signal to the charging interface according to the control command so as to reduce the charging power.
6. An electronic device, characterized in that the electronic device comprises a charging circuit and a battery, the charging circuit being connected to the battery, the charging circuit being as claimed in any one of claims 1-4.
7. A computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, carries out the steps of the charging processing method according to claim 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811348739.6A CN109286220B (en) | 2018-11-13 | 2018-11-13 | Charging circuit, charging processing method, electronic device, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811348739.6A CN109286220B (en) | 2018-11-13 | 2018-11-13 | Charging circuit, charging processing method, electronic device, and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109286220A CN109286220A (en) | 2019-01-29 |
CN109286220B true CN109286220B (en) | 2021-05-07 |
Family
ID=65175718
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811348739.6A Active CN109286220B (en) | 2018-11-13 | 2018-11-13 | Charging circuit, charging processing method, electronic device, and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109286220B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111469710A (en) * | 2020-04-02 | 2020-07-31 | 雷锡社 | Battery management system and method |
CN113766614B (en) * | 2021-06-10 | 2023-04-18 | 荣耀终端有限公司 | Method for reducing power consumption of terminal equipment and terminal equipment |
CN117200403A (en) * | 2023-11-03 | 2023-12-08 | 武汉星纪魅族科技有限公司 | Charging control method, electronic device, power adapter and readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106537719A (en) * | 2016-08-15 | 2017-03-22 | 北京小米移动软件有限公司 | Electronic device, charger, charging system, and charging method |
CN106786871A (en) * | 2016-12-19 | 2017-05-31 | 北京小米移动软件有限公司 | Charge control method, apparatus and system |
CN107431351A (en) * | 2015-03-20 | 2017-12-01 | 戴洛格半导体公司 | To the soft short-circuit overvoltage protection of the data wire in fast charge USB charger |
CN108321858A (en) * | 2017-01-16 | 2018-07-24 | 华硕电脑股份有限公司 | Charge protection device and its method |
CN108411310A (en) * | 2018-02-02 | 2018-08-17 | 广东欧珀移动通信有限公司 | Interface circuit and electronic device |
-
2018
- 2018-11-13 CN CN201811348739.6A patent/CN109286220B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107431351A (en) * | 2015-03-20 | 2017-12-01 | 戴洛格半导体公司 | To the soft short-circuit overvoltage protection of the data wire in fast charge USB charger |
CN106537719A (en) * | 2016-08-15 | 2017-03-22 | 北京小米移动软件有限公司 | Electronic device, charger, charging system, and charging method |
CN106786871A (en) * | 2016-12-19 | 2017-05-31 | 北京小米移动软件有限公司 | Charge control method, apparatus and system |
CN108321858A (en) * | 2017-01-16 | 2018-07-24 | 华硕电脑股份有限公司 | Charge protection device and its method |
CN108411310A (en) * | 2018-02-02 | 2018-08-17 | 广东欧珀移动通信有限公司 | Interface circuit and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN109286220A (en) | 2019-01-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109245244B (en) | Charging circuit, charging processing method, electronic device, and storage medium | |
CN109378877B (en) | Charging circuit, charging processing method, electronic device, and storage medium | |
CN109412234B (en) | Charging circuit, charging processing method, electronic device, and storage medium | |
CN109378878B (en) | Charging circuit, charging processing method, electronic device, and storage medium | |
US20210175731A1 (en) | Multi-battery charging and discharging device and mobile terminal | |
US10181742B2 (en) | Electronic device, charger within the electronic device, and detecting method for detecting abnormal status of connector of electronic device | |
US10658860B2 (en) | Electronic device, charger within the electronic device, and detecting method for detecting abnormal status of connector of electronic device | |
WO2015147503A1 (en) | Method for charging battery and electronic device | |
CN109450023B (en) | Charging circuit, charging processing method, electronic device, and storage medium | |
WO2016036128A1 (en) | Electronic device, method of controlling charging by electronic device, and method of supplying power by power supply device | |
US20150256013A1 (en) | Portable power supply | |
CN109286220B (en) | Charging circuit, charging processing method, electronic device, and storage medium | |
CN109286219B (en) | Charging circuit, charging processing method, electronic device, and storage medium | |
EP3123590A1 (en) | Method for charging battery and electronic device | |
TW201447594A (en) | Electronic device with integrated USB port | |
US20100301674A1 (en) | Control circuit and electronic device including the same | |
WO2018034381A1 (en) | Electronic device and electronic device control method | |
KR102052443B1 (en) | System for performing charging and data communication | |
WO2015048105A1 (en) | Apparatus and method to change current limit | |
WO2021020900A1 (en) | Electronic device for preventing damage of usb device and operating method thereof | |
CN107450705B (en) | Electronic device | |
CN109149697B (en) | Charging circuit and electronic device | |
US9141575B2 (en) | Power supply circuit for universal serial bus interface | |
CN112234704B (en) | Flash lamp power supply switching circuit, flash lamp control method and electronic equipment | |
CN102723751B (en) | Multifunctional charging interface, power supply device and charging method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |