CN109560581B - Charging processing method, charging processing circuit, electronic device, and storage medium - Google Patents

Charging processing method, charging processing circuit, electronic device, and storage medium Download PDF

Info

Publication number
CN109560581B
CN109560581B CN201811347508.3A CN201811347508A CN109560581B CN 109560581 B CN109560581 B CN 109560581B CN 201811347508 A CN201811347508 A CN 201811347508A CN 109560581 B CN109560581 B CN 109560581B
Authority
CN
China
Prior art keywords
charging
output
interface
pin
output pin
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811347508.3A
Other languages
Chinese (zh)
Other versions
CN109560581A (en
Inventor
刘绍斌
庄小利
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811347508.3A priority Critical patent/CN109560581B/en
Publication of CN109560581A publication Critical patent/CN109560581A/en
Application granted granted Critical
Publication of CN109560581B publication Critical patent/CN109560581B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0042Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by the mechanical construction
    • H02J7/0045Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by the mechanical construction concerning the insertion or the connection of the batteries
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • H01M10/446Initial charging measures
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • H01M10/448End of discharge regulating measures
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/48Accumulators combined with arrangements for measuring, testing or indicating the condition of cells, e.g. the level or density of the electrolyte
    • H02J7/0026
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • H02J7/0031Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits using battery or load disconnect circuits
    • H02J7/0032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits using battery or load disconnect circuits disconnection of loads if battery is not under charge, e.g. in vehicle if engine is not running
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • H02J7/0036Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits using connection detecting circuits
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • H02J7/00034Charger exchanging data with an electronic device, i.e. telephone, whose internal battery is under charge
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Chemical & Material Sciences (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Electrochemistry (AREA)
  • General Chemical & Material Sciences (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The embodiment of the application provides a charging processing method, a charging processing circuit, an electronic device and a storage medium, wherein the charging processing method comprises the following steps: acquiring a connection state of the device to be charged; when the connection state is a connected state, communicating with the equipment to be charged; when the communication with the equipment to be charged is successful, outputting a charging signal; and when the communication with the equipment to be charged fails or the connection state is an unconnected state, stopping outputting the charging signal. Charging device is under the unconnected state, does not output the signal of charging, and at this moment, even the output interface that charges advances foreign matter or feed liquor can not lead to the interface short circuit that charges, can practice thrift the consumption moreover, and after connected state and communication succeeded, just output the signal of charging, realize normally charging.

Description

Charging processing method, charging processing circuit, electronic device, and storage medium
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a charging processing method, a charging processing circuit, an electronic device, and a storage medium.
Background
At present, a charging output interface of a charging device can integrate data transmission and charging functions, and the charging device can be an adapter for charging a mobile terminal. After the charging device is connected with the mains supply, the charging output interface of the charging device outputs charging voltage, and when the charging output interface of the charging device is fed with liquid or foreign matters, the charging output interface is easily short-circuited, so that the charging output interface or the adapter is burnt.
Disclosure of Invention
The embodiment of the application provides a charging processing method, a charging processing circuit, an electronic device and a storage medium, which can protect a charging output interface.
The embodiment of the application provides a charging processing method, which comprises the following steps:
acquiring a connection state of the device to be charged;
when the connection state is a connected state, communicating with the equipment to be charged;
when the communication with the equipment to be charged is successful, outputting a charging signal;
and when the communication with the equipment to be charged fails or the connection state is an unconnected state, stopping outputting the charging signal.
An embodiment of the present application further provides a charging processing method, including:
acquiring a connection state with a charging device;
communicating with the charging device when the connection state is a connected state;
and when the communication with the charging device is successful, controlling the charging device to switch from stopping outputting the charging signal to outputting the charging signal.
The embodiment of the present application further provides a charging processing circuit, which includes:
the charging output interface is used for being connected with a charging input interface of equipment to be charged;
the detection module is connected with the charging output interface and is used for acquiring the connection state of the charging output interface and the charging input interface;
the output control module, charge the output interface with the detection module all with the output control module is connected, works as when the connection status is not connection status, stops to pass through charge the output interface output signal of charging, works as when the connection status is connection status, with wait that the charging equipment communicates, and when communication is successful, pass through charge the output interface output signal of charging, when communication fails, stop to pass through charge the output interface output signal of charging.
The embodiment of the present application further provides a charging processing circuit, which includes:
the charging input interface is used for being connected with a charging output interface of a charging device;
the second detection module is connected with the charging input interface and is used for acquiring the connection state of the charging output interface and the charging input interface;
and the charging input interface and the second detection module are connected with the second output control module, and when the connection state is the connected state, the charging input interface and the second detection module are communicated with the charging device, and when the communication is successful, the charging device is controlled to switch from stopping outputting the charging signal to outputting the charging signal.
The embodiment of the application also provides an electronic device, which comprises a shell and a charging processing circuit, wherein the charging processing circuit is arranged in the shell, and the charging processing 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.
According to the charging processing method, the charging processing circuit, the electronic device and the storage medium, firstly, the connection state of the electronic device and the device to be charged is obtained; when the connection state is a connected state, communicating with the equipment to be charged; when the communication with the equipment to be charged is successful, outputting a charging signal; and when the communication with the equipment to be charged fails or the connection state is an unconnected state, stopping outputting the charging signal. Charging device is under the unconnected state, does not output the signal of charging, and at this moment, even the output interface that charges advances foreign matter or feed liquor can not lead to the interface short circuit that charges, can practice thrift the consumption moreover, and after connected state and communication succeeded, just output the signal of charging, realize normally charging.
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 diagram of a first structure of a charging processing circuit according to an embodiment of the present disclosure.
Fig. 2 is a schematic diagram of a second structure of a charging processing circuit according to an embodiment of the present disclosure.
Fig. 3 is a schematic structural diagram of a Type-C interface provided in an embodiment of the present application.
Fig. 4 is a schematic diagram of a third structure of a charging processing circuit according to an embodiment of the present disclosure.
Fig. 5 is a schematic diagram of a fourth structure of a charging processing circuit according to an embodiment of the present disclosure.
Fig. 6 is a schematic diagram of a fifth structure of a charging processing circuit according to an embodiment of the present disclosure.
Fig. 7 is a schematic diagram of a sixth structure of a charging processing circuit according to an embodiment of the present application.
Fig. 8 is a schematic diagram of a seventh structure of a charging processing circuit according to an embodiment of the present disclosure.
Fig. 9 is a schematic flowchart of a charging processing method according to an embodiment of the present application.
Fig. 10 is another schematic flow chart of a charging processing method 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 processing method, a charging processing circuit, an electronic device and a storage medium. The details will be described below separately.
Referring to fig. 1, fig. 1 is a schematic diagram illustrating a first structure of a charging processing circuit according to an embodiment of the present disclosure. The charging processing circuit includes a charging output interface 210, a detection module 220, and an output control module 230.
The charging output interface 210 is used for connecting with the charging input interface 310 of the device 300 to be charged. The charging output interface 210 may be a Universal Serial Bus (USB) interface. Specifically, the charging output interface 210 may be a Micro USB interface or a Type-C interface, and the charging output interface 210 may also be another interface. When the output interface 210 that charges is the Type-C interface, because the pin of Type-C interface is more, and the width of Type-C interface is limited, consequently the interval between Type-C interface pin is less, when advancing foreign matter or feed liquor, causes little short circuit easily to lead to the temperature rise at Type-C interface, thereby burns out the output interface 210 that charges.
The detection module 220 is connected to the charging output interface 210, and the detection module 220 is configured to obtain a connection state between the charging output interface 210 and the charging input interface 310. The detection module 220 is used for detecting a connection state between the charging output interface 210 of the charging device 200 and the charging input interface 310 of the device to be charged 200. The connection state includes a connected state and an unconnected state, the connected state indicates that the charging apparatus 200 and the apparatus to be charged 200 have been physically connected, such as the charging output interface 210 of the charging apparatus 200 is plugged into the charging input interface 310 of the device to be charged 300. The unconnected state indicates that the charging apparatus 200 and the apparatus to be charged 200 have not been physically connected, for example, the charging output interface 210 of the charging apparatus 200 is floating and is not connected to the device to be charged 300.
The charging output interface 210 and the detection module 220 are both connected to the output control module 230, and stop outputting the charging signal through the charging output interface 210 when the connection state is the unconnected state, communicate with the device 300 to be charged when the connection state is the connected state, and output the charging signal through the charging output interface 210 when the communication is successful, and stop outputting the charging signal through the charging output interface 210 when the communication is failed.
And when the connection state is the disconnection state, stopping outputting the charging signal. When the charging apparatus 200 and the device to be charged 300 are in an unconnected state, that is, the charging output interface 210 of the charging apparatus 200 is not connected to the device to be charged 300, the output of the charging signal is also stopped.
When the connection state is the connected state, that is, after the charging device 200 is physically connected to the apparatus to be charged 300, the charging device 200 starts communication with the apparatus to be charged 300. For example, the charging apparatus 200 may actively transmit a connection request to the device to be charged 300, or may receive a connection request transmitted by the device to be charged 300. When the charging device 200 and the device 300 to be charged successfully communicate, a charging signal is output. Specifically, it may be understood that, after the charging device 200 transmits the connection request and receives the reception request information returned by the device to be charged 300, the charging device identifies the reception request information, determines that the communication is successful, and then outputs the charging signal. It is also understood that, after receiving the connection request sent by the device to be charged 300, the charging apparatus 200 recognizes the connection request, returns the reception request information to the device to be charged 300, determines that the communication is successful, and then outputs the charging signal.
When communicating with the device 300 to be charged, the charging apparatus 200 receives the connection request sent by the device 300 to be charged, and then the connection request cannot be recognized, or if the connection request is an illegal connection request, the communication is considered to have failed. Further, the charging apparatus 200 may send a connection request to the device to be charged 300, and if the returned reception request information is not received or an illegal reception request information is received, the communication is also considered to have failed. And stopping outputting the charging signal after the communication fails.
Referring to fig. 2, fig. 2 is a schematic diagram illustrating a second structure of a charging processing circuit according to an embodiment of the present disclosure. In some embodiments, the charging output interface 210 includes a first output terminal SBU1 and a second output terminal SBU2, the first output terminal SBU1 is connected to the second output terminal SBU2 through a first functional element R1, and the first output terminal SBU1 and the second output terminal SBU2 form a loop through the charging input interface 310.
The detection module 220 is connected to the second output terminal SBU2 and obtains a detection voltage or a detection current of the second output terminal SBU2, and the detection module 220 is configured to obtain a connection state of the charging output interface 210 and the charging input interface 310 by detecting a change of the detection voltage or the detection current.
The first functional element R1 may be a resistor or a capacitor. The first output pin SBU1 and the second output pin SBU2 are connected through the first functional device R1, before the charging output interface 210 and the charging input interface 310 are connected, the charging device 200 does not supply power to the first output pin SBU1 and the second output pin SBU2 or supplies a fixed value, after the charging output interface 210 and the charging input interface 310 are connected, the charging input interface 310 supplies voltage to the second output pin SBU2 and grounds the first output pin SBU1, thereby forming a loop. Before the charging output interface 210 and the charging input interface 310 are not connected, the first output pin SBU1 and the second output pin SBU2 have no voltage and no current, or the second output pin SBU2 has a fixed voltage and no current. After the loop is formed, the voltage and the current of the second output terminal SBU2 change, and then the detection voltage or the detection current of the second output terminal SBU2 is detected. When the detected voltage or the detected current of the second output terminal SBU2 is 0 or a fixed value, the connection status is determined as unconnected status, and when the detected voltage or the detected current of the second output terminal SBU2 is a changed value, the connection status is determined as connected status.
It should be noted that, in this embodiment, the first output pin and the second output pin may be non-power supply pins, and a Type-C interface is taken as an example, as shown in fig. 3, the first output pin may be other than SBU1, and may also be one of pins GND, TX1+, TX1-, TX2+, TX2-, RX1+, RX1-, RX2+, RX2-, SBU2, CC1, and CC2 as needed, and the second output pin may be other than SBU2, and may also be one of pins TX1+, TX1-, TX2+, TX2-, RX1+, RX1-, RX2+, RX2-, SBU1, CC1, and CC2 as needed.
In some other embodiments, the second functional element R2 of the charging input interface 310 is connected in series with the first functional element R1, i.e., the second input pin in the charging input interface 310 is connected to the second output pin SBU2 through a third functional element. The second functional element R2 may be a resistor, a capacitor, or the like.
Referring to fig. 4, fig. 4 is a schematic diagram of a third structure of a charging processing circuit according to an embodiment of the present disclosure. In some embodiments, the first output pin SBU1 and the second output pin SBU2 are further connected through the fifth functional element R5 and the second switching element 250.
One end of the fifth functional element R5 is connected to the first output pin SBU1, the other end of the fifth functional element R5 is connected to the input end of the second switch element 250, the output end of the second switch element 250 is connected to the second output pin SBU2, and the control end of the second switch element 250 is connected to the detection module 220.
The first output pin SBU1 and the second output pin SBU2 are connected to each other through a fifth functional element R5 and a second switching element 250, and the fifth functional element R5 is connected in parallel to the first functional element R1. When the detection module 220 detects that the connection state is the connected state, the second switching element 250 is controlled to switch from on to off or from off to on, so as to change the impedance between the first output pin SBU1 and the second output pin SBU2, thereby changing the voltage and the current. After detecting the change, the detecting module 220 sends a new voltage or a new current to the device to be charged 300 to prompt the charging apparatus 200 to be the original charging apparatus 200. When the original charging device 200 is used, high-power quick charging can be performed, and when the original charging device 200 is not used, low-power slow charging can be performed.
In some embodiments, the charging input interface 310 includes a first input pin and a second input pin, the first input pin is grounded, the first input pin is connected to the first output pin SBU1, the second input pin is connected to the second output pin SBU2 through the second functional element R2, and the second input pin has a voltage.
The device to be charged 300 provides voltage for the second input pin, the second input pin is connected to the second output pin SBU2 through the second functional element R2, the second output pin SBU2 is connected to the first output pin SBU1 through the first functional element R1, and the first output pin SBU1 is grounded through the first input pin, so that a loop is realized. The first functional element R1 and the second functional element R2 divide the voltage, and determine whether the current connection state is the connected state or the unconnected state by detecting the voltage of the second input pin or the second output pin SBU 2.
Referring to fig. 5, fig. 5 is a schematic diagram illustrating a fourth structure of a charging processing circuit according to an embodiment of the present disclosure. In some embodiments, the charging output interface 210 includes a third output pin and a fourth output pin, the third output pin and the fourth output pin are conducted through the charging input interface 210, the charging device 200 transmits an identification signal through the third output pin, and when the fourth output pin detects the identification signal, the connection state of the charging output interface 210 and the charging input interface 310 is determined to be a connected state.
Taking the Typc-C interface as an example, the third output pin may be a CC pin, the fourth output pin may be a power input pin VBUS, and an identification signal (e.g., a pulse signal) is sent out at the CC pin at intervals. After the charging input interface 310 is connected to the charging output interface 210, one end of the charging input interface 310 connects the CC pin and the VBUS pin, so that the VBUS pin receives an identification signal, and the charging device 200 sends a charging request to the device 300 to be charged through D +/-upon detecting the identification signal. After the charging is started, the CC pin of the charging device 200 stops sending the pulse signal. In other embodiments, the power supply output pins VBUS and CC pins may be replaced with other pins.
Referring to fig. 6, fig. 6 is a schematic diagram illustrating a fifth structure of a charging processing circuit according to an embodiment of the present disclosure. In some embodiments, the charging output interface 210 includes a communication pin, and the communication pin periodically transmits a connection request, and when receiving reception request information returned by the device to be charged 300 according to the connection request, determines that the connection state of the charging output interface 210 and the charging input interface 310 is a connected state.
The communication pin of the charging output interface 210 may be a D + pin or a D-pin, so that the D + or D-pin of the charging output interface 210 of the charging apparatus 200 sends a signal (such as a connection request) to the device 300 to be charged at intervals to request charging, after the charging apparatus 200 is connected to the device 300 to be charged, the device 300 to be charged receives the request, communication may be established between the two, and the charging apparatus 200 outputs a charging signal to charge the device 300 to be charged.
Referring to fig. 7, fig. 7 is a schematic diagram illustrating a sixth structure of a charging processing circuit according to an embodiment of the present disclosure. In some embodiments, a charging processing circuit is applied to the device to be charged 300, and the charging processing circuit includes a charging input interface 310, a second detection module 320, and a second output control module 330.
The charging input interface 310 is used for connecting with the charging output interface 210 of the charging device 200. The charging input interface 310 is connected to the charging output interface 210 in a matching manner, for example, the charging input interface 310 and the charging output interface 210 may be a male connector and a female connector of a Type-C interface, respectively.
The second detection module 320 is connected to the charging input interface 310, and the second detection module 320 is configured to obtain a connection state between the charging output interface 210 and the charging input interface 310.
The charging input interface 310 and the second detection module 320 are connected to the second output control module 330, communicate with the charging device 200 when the connection state is the connected state, and control the charging device 200 to switch from stopping outputting the charging signal to outputting the charging signal when the communication is successful.
In some embodiments, the charging input interface 310 includes a communication pin that periodically transmits a connection request, and when receiving reception request information returned by the charging device 200 according to the connection request, determines that the connection state of the charging output interface 210 and the charging input interface 310 is a connected state.
The communication pin of the charging input interface 310 may be a D + pin or a D-pin, so that the D + or D-pin of the charging input interface 310 of the device 300 to be charged sends a signal (such as a connection request) to the adapter at intervals to request charging, when the charging device 200 is connected to the device 300 to be charged, the charging device 200 receives the request, communication between the two devices may be established, and the charging device 200 outputs a charging signal to charge the device 300 to be charged.
Referring to fig. 8, fig. 8 is a schematic diagram illustrating a seventh structure of a charging processing circuit according to an embodiment of the present disclosure. In some embodiments, the charging input interface 310 includes a third input pin and a fourth input pin, the third input pin and the fourth input pin are conducted through the charging output interface 210, the device to be charged 300 transmits an identification signal through the third input pin, and when the fourth input pin detects the identification signal, the connection state of the charging output interface 210 and the charging input interface 310 is determined to be a connected state.
Taking a Typc-C interface as an example, the third input pin may be a CC pin, the fourth input pin may be a power input pin VBUS, and an identification signal (e.g., a pulse signal) is sent out at the CC pin at intervals. After the charging input interface 310 is connected to the charging input interface 210, one end of the charging output interface 210 connects the CC pin and the power input pin VBUS, so that the power input pin VBUS receives an identification signal, and the device to be charged 300 sends a charging request to the charging apparatus 200 through D +/-upon detecting the identification signal. After the charging is started, the CC of the device 300 to be charged stops sending the pulse signal. In other embodiments, the power input pins VBUS and CC pins may be replaced with other pins.
The embodiment of the application further provides an electronic device, and the electronic device comprises a shell and a charging circuit, and the charging circuit is arranged in the shell. In some embodiments, the electronic device may be a charging device as desired. In other embodiments, the electronic device may be a device to be charged as desired. The charging device 200 may be an adapter, a charging base, or the like. The device 300 to be charged 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. 9, fig. 9 is a schematic flowchart illustrating a charging processing method according to an embodiment of the present disclosure. The charging processing method of the embodiment can be applied to a charging device. The charging processing method specifically comprises the following steps:
101, acquiring the connection state of the device to be charged.
The connection state includes a connected state and an unconnected state, the connected state indicates that the charging device and the device to be charged have been physically connected, for example, the charging output interface of the charging device is plugged into the charging input interface of the device to be charged. The unconnected state indicates that the charging device and the device to be charged are not physically connected, and if the charging output interface of the charging device is suspended, the charging output interface is not connected with the equipment to be charged. The connection state with the device to be charged can be acquired in various ways in the above-described embodiments.
And 102, when the connection state is the connected state, communicating with the equipment to be charged.
When the connection state is the connected state, that is, after the charging device is physically connected with the device to be charged, the charging device starts to communicate with the device to be charged. For example, the charging apparatus may actively send a connection request to the device to be charged, or may receive a connection request sent by the device to be charged.
103, when the communication with the device to be charged is successful, a charging signal is output.
And when the charging device is successfully communicated with the equipment to be charged, outputting a charging signal. Specifically, after the charging device sends the connection request and receives the reception request information returned by the device to be charged, the charging device identifies the reception request information, determines that the communication is successful, and then outputs the charging signal. It can also be understood that, after receiving a connection request sent by the device to be charged, the charging apparatus returns reception request information to the device to be charged after recognizing the connection request, thereby determining that the communication is successful, and then outputs a charging signal.
In some embodiments, after the step of outputting the charging signal after the communication with the device to be charged is successful, the method further includes:
and when the information of charging completion is received, stopping outputting the charging signal.
The charging device charges the equipment to be charged, sends charging completion information after the equipment to be charged is charged, and stops outputting the charging signal when the charging device receives the charging completion information. The power consumption can be saved, and meanwhile, the overcharging of the equipment to be charged is prevented.
And 104, stopping outputting the charging signal when the communication with the equipment to be charged fails or the connection state is the disconnection state.
When the charging device communicates with the device to be charged, the charging device cannot identify the connection request after receiving the connection request sent by the device to be charged, or the connection request is an illegal connection request, and the communication is considered to be failed. The charging device may also send a connection request to the device to be charged, and if no returned reception request information is received or an illegal reception request information is received, the communication is also considered to be failed. And stopping outputting the charging signal after the communication fails.
In some embodiments, when the connection state is the disconnection state, the output of the charging signal is stopped. When the charging device and the equipment to be charged are in an unconnected state, namely, the charging output interface of the charging device is not connected with the equipment to be charged, the charging device also stops outputting the charging signal.
Referring to fig. 10, fig. 10 is another schematic flow chart of a charging processing method according to an embodiment of the present disclosure. The charging processing method of the embodiment can be applied to the device to be charged. The charging processing method specifically comprises the following steps:
a connection state with a charging device is acquired 201.
The connection state includes a connected state and an unconnected state, the connected state indicates that the charging device and the device to be charged have been physically connected, for example, the charging output interface of the charging device is plugged into the charging input interface of the device to be charged. The unconnected state indicates that the charging device and the device to be charged are not physically connected, and if the charging input interface of the device to be charged is suspended, the charging input interface is not connected with the charging device. The connection state with the device to be charged can be acquired in various ways in the above-described embodiments.
And 202, when the connection state is the connected state, communicating with the charging device.
When the connection state is the connected state, that is, after the charging device is physically connected with the device to be charged, the charging device starts to communicate with the device to be charged. For example, the device to be charged may actively transmit the connection request, or may receive the connection request transmitted by the charging apparatus.
And 203, controlling the charging device to switch from stopping outputting the charging signal to outputting the charging signal after the communication with the charging device is successful.
And when the communication between the charging device and the equipment to be charged is successful, controlling the charging device to switch from stopping outputting the charging signal to outputting the charging signal. Specifically, after the device to be charged sends a connection request and receives reception request information returned by the charging device, the communication is determined to be successful after the reception request information is identified, and then the charging device is controlled to switch from stopping outputting the charging signal to outputting the charging signal.
It can be understood that, after receiving the connection request sent by the charging device, the device to be charged returns the reception request information after recognizing the reception request information, and determines that the communication is successful, and then controls the charging device to switch from stopping outputting the charging signal to outputting the charging signal. The returned reception request information may include a control instruction for controlling the charging device to switch from stopping outputting the charging signal to outputting the charging signal. Or after the communication is successful, the control instruction can be sent again.
In some embodiments, the step of controlling the charging device to switch from stopping outputting the charging signal to outputting the charging signal after the communication with the charging device is successful includes:
popping up a charging confirmation interface after the communication with the charging device is successful;
controlling the charging device to switch from stopping outputting the charging signal to outputting the charging signal according to the determined charging information acquired by the charging confirmation interface;
and controlling the charging device to keep stopping outputting the charging signal according to the determined communication information acquired by the charging confirmation interface.
When the communication with the charging device is successful, the charging confirmation interface can be popped up, and then the user is waited for operation. The charging confirmation interface can comprise a charging virtual button and a data transmission button, and when the charging virtual button is triggered by a user, the charging confirmation interface obtains determined charging information and further controls the charging device to switch from stopping outputting the charging signal to outputting the charging signal. When the data transmission button is triggered, certain communication information is obtained, so that the charging device is controlled to keep stopping outputting the charging signal, and meanwhile data exchange is carried out.
In some embodiments, the step of obtaining the connection state with the charging device further includes:
when receiving a charging start instruction, a communication module communicating with the charging device is started, and a connection request is periodically sent.
The charging start command may be a long press of a power key, a combination key, or other operation mode. And starting a communication module communicated with the charging device by the obtained charging starting instruction, periodically sending a connection request, and waiting for the charging device to return corresponding information.
In some embodiments, after the step of controlling the charging device to switch from stopping outputting the charging signal to outputting the charging signal after the communication with the charging device is successful, the method further includes:
and when the charging is finished, controlling the charging device to stop outputting the charging signal.
The charging device charges the equipment to be charged, and after the equipment to be charged is charged, the charging device sends charging completion information to control the charging device to stop outputting a charging signal. The power consumption can be saved, and meanwhile, the overcharging of the equipment to be charged is prevented.
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 connection state of the device to be charged; when the connection state is a connected state, communicating with the equipment to be charged; when the communication with the equipment to be charged is successful, outputting a charging signal; and when the communication with the equipment to be charged fails or the connection state is an unconnected state, stopping outputting the charging signal.
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 processing method, the charging processing circuit, 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 explain 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 ideas 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 (14)

1. A charging processing method is applied to a charging processing circuit, and is characterized in that the charging processing circuit comprises a charging output interface and a detection module, and the method comprises the following steps:
the method comprises the steps of obtaining a connection state of the device to be charged, wherein a charging output interface is used for being connected with a charging input interface of the device to be charged, the charging output interface comprises a first output pin and a second output pin, the first output pin and the second output pin are connected through a first functional element, and the first output pin and the second output pin form a loop through the charging input interface; the detection module is connected with the charging output interface and used for acquiring the connection state of the charging output interface and the charging input interface, wherein the detection module is connected with the first output pin and used for acquiring the detection voltage or the detection current of the first output pin, and the detection module is used for acquiring the connection state of the charging output interface and the charging input interface through the change of the detection voltage or the detection current;
when the connection state is a connected state, communicating with the equipment to be charged;
when the communication with the equipment to be charged is successful, outputting a charging signal through the charging output interface;
when the communication with the equipment to be charged fails, stopping outputting a charging signal through the charging output interface;
and when the communication with the equipment to be charged fails or the connection state is the unconnected state, stopping outputting a charging signal through the charging output interface.
2. The charging processing method according to claim 1, wherein after the step of outputting the charging signal after the communication with the device to be charged is successful, the method further comprises:
and when the information of charging completion is received, stopping outputting the charging signal.
3. A charging processing method is applied to a charging processing circuit, and is characterized in that the charging processing circuit comprises a charging output interface and a detection module, and the method comprises the following steps:
the method comprises the steps of obtaining a connection state with a charging device, wherein a charging output interface is used for being connected with a charging input interface of equipment to be charged, the charging output interface comprises a first output pin and a second output pin, the first output pin and the second output pin are connected through a first functional element, and the first output pin and the second output pin form a loop through the charging input interface; the detection module is connected with the charging output interface and used for acquiring the connection state of the charging output interface and the charging input interface, wherein the detection module is connected with the first output pin and used for acquiring the detection voltage or the detection current of the first output pin, and the detection module is used for acquiring the connection state of the charging output interface and the charging input interface through the change of the detection voltage or the detection current;
communicating with the charging device when the connection state is a connected state;
and when the communication with the charging device is successful, controlling the charging device to switch from stopping outputting the charging signal to outputting the charging signal.
4. The charging processing method according to claim 3, wherein the step of controlling the charging device to switch from stopping outputting the charging signal to outputting the charging signal after the communication with the charging device is successful comprises:
popping up a charging confirmation interface after the communication with the charging device is successful;
controlling the charging device to switch from stopping outputting the charging signal to outputting the charging signal according to the determined charging information acquired by the charging confirmation interface;
and controlling the charging device to keep stopping outputting the charging signal according to the determined communication information acquired by the charging confirmation interface.
5. The charging processing method according to claim 3, wherein the step of acquiring the connection state with the charging device is preceded by:
and when receiving a charging starting instruction, starting a communication module communicated with the charging device, and periodically sending a connection request.
6. The charging processing method according to claim 3, wherein after the step of controlling the charging device to switch from stopping outputting the charging signal to outputting the charging signal after the communication with the charging device is successful, further comprising:
and when the charging is finished, controlling the charging device to stop outputting the charging signal.
7. A charge processing circuit, comprising:
the charging output interface is used for being connected with a charging input interface of equipment to be charged, wherein the charging output interface comprises a first output pin and a second output pin, the first output pin and the second output pin are connected through a first functional element, and the first output pin and the second output pin form a loop through the charging input interface;
the detection module is connected with the charging output interface and used for acquiring the connection state of the charging output interface and the charging input interface, wherein the detection module is connected with the first output pin and used for acquiring the detection voltage or the detection current of the first output pin, and the detection module is used for acquiring the connection state of the charging output interface and the charging input interface through the change of the detection voltage or the detection current;
the output control module, charge the output interface with the detection module all with the output control module is connected, works as when the connection status is not connection status, stops to pass through charge the output interface output signal of charging, works as when the connection status is connection status, with wait that the charging equipment communicates, and when communication is successful, pass through charge the output interface output signal of charging, when communication fails, stop to pass through charge the output interface output signal of charging.
8. The charge processing circuit of claim 7,
the first output pin and the second output pin are also connected through a fifth functional element and a second switch element,
one end of the fifth functional element is connected with the first output pin, the other end of the fifth functional element is connected with the input end of the second switch element, the output end of the second switch element is connected with the second output pin, and the control end of the second switch element is connected with the detection module.
9. The charge processing circuit of claim 7,
the charging input interface comprises a first input pin and a second input pin, the first input pin is grounded, the first input pin is connected with the first output pin, the second input pin is connected with the second output pin through a second functional element, and the second input pin has voltage.
10. The charge processing circuit of claim 7,
the charging output interface comprises a third output pin and a fourth output pin, the third output pin and the fourth output pin are conducted through the charging input interface, an identification signal is transmitted through the third output pin, and when the fourth output pin detects the identification signal, the connection state of the charging output interface and the charging input interface is determined to be a connected state.
11. The charge processing circuit of claim 7,
the charging output interface comprises a communication pin, the communication pin periodically sends a connection request, and when receiving request information returned by the device to be charged according to the connection request, the connection state of the charging output interface and the charging input interface is determined to be a connected state.
12. A charge processing circuit, comprising:
the charging device comprises a charging input interface, a charging output interface and a charging control interface, wherein the charging input interface is used for being connected with a charging output interface of a charging device, the charging output interface is used for being connected with a charging input interface of equipment to be charged, the charging output interface comprises a first output pin and a second output pin, the first output pin and the second output pin are connected through a first functional element, and the first output pin and the second output pin form a loop through the charging input interface;
the second detection module is connected with the charging input interface, and is used for acquiring the connection state of the charging output interface and the charging input interface, the detection module of the charging device is connected with the charging output interface, and the detection module is used for acquiring the connection state of the charging output interface and the charging input interface, wherein the detection module is connected with the first output pin and acquires the detection voltage or the detection current of the first output pin, the detection module is used for acquiring the connection state of the charging output interface and the charging input interface according to the change of the detection voltage or the detection current, and the second detection module receives the connection state sent by the detection module;
and the charging input interface and the second detection module are connected with the second output control module, and when the connection state is the connected state, the charging input interface and the second detection module are communicated with the charging device, and when the communication is successful, the charging device is controlled to switch from stopping outputting the charging signal to outputting the charging signal.
13. An electronic device comprising a housing and a charging processing circuit within the housing, the charging processing circuit being as in any one of claims 7-12.
14. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the charging processing method according to any one of claims 1 to 6.
CN201811347508.3A 2018-11-13 2018-11-13 Charging processing method, charging processing circuit, electronic device, and storage medium Active CN109560581B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811347508.3A CN109560581B (en) 2018-11-13 2018-11-13 Charging processing method, charging processing circuit, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811347508.3A CN109560581B (en) 2018-11-13 2018-11-13 Charging processing method, charging processing circuit, electronic device, and storage medium

Publications (2)

Publication Number Publication Date
CN109560581A CN109560581A (en) 2019-04-02
CN109560581B true CN109560581B (en) 2020-12-01

Family

ID=65866029

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811347508.3A Active CN109560581B (en) 2018-11-13 2018-11-13 Charging processing method, charging processing circuit, electronic device, and storage medium

Country Status (1)

Country Link
CN (1) CN109560581B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111211608A (en) * 2020-01-09 2020-05-29 广东小天才科技有限公司 Charging short-circuit protection circuit and method and power adapter
CN115606066A (en) * 2020-12-07 2023-01-13 深圳市韶音科技有限公司(Cn) Charging control circuit and acoustic output device
CN114710738B (en) * 2022-03-31 2023-03-24 深圳市微源半导体股份有限公司 Sweat detection method of TWS earphone based on communication mode

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103259300A (en) * 2012-02-15 2013-08-21 宏达国际电子股份有限公司 Portable electronic devices and charging method thereof
CN103413986A (en) * 2013-08-27 2013-11-27 贝壳网际(北京)安全技术有限公司 Method and device for automatically stopping charging after full charge of mobile terminal
CN104505921A (en) * 2015-01-16 2015-04-08 九五堂科技(深圳)有限公司 Charging device and charging management method
CN105576744A (en) * 2015-12-25 2016-05-11 惠州Tcl移动通信有限公司 Charge pal switching implementation method and charge pal
EP3093945A1 (en) * 2015-05-14 2016-11-16 MediaTek, Inc Electronic device, charger within the electronic device, and detecting method for detecting abnormal status of connector of electronic device
CN106300690A (en) * 2015-06-12 2017-01-04 西安中兴新软件有限责任公司 A kind of wireless charging method, equipment and terminal
CN106340932A (en) * 2016-10-17 2017-01-18 惠州Tcl移动通信有限公司 Mobile terminal connection detection method and system based on USB interface charger
CN106786994A (en) * 2017-02-20 2017-05-31 维沃移动通信有限公司 A kind of charging method, charger and mobile terminal
CN106828171A (en) * 2017-03-08 2017-06-13 广州车电网新能源有限公司 Charging pile and the identification system and method for electric automobile wireless telecommunications
CN106877462A (en) * 2017-04-21 2017-06-20 维沃移动通信有限公司 A kind of method and charger for detecting charged state
WO2018068323A1 (en) * 2016-10-14 2018-04-19 华为技术有限公司 Charger

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103259300A (en) * 2012-02-15 2013-08-21 宏达国际电子股份有限公司 Portable electronic devices and charging method thereof
CN103413986A (en) * 2013-08-27 2013-11-27 贝壳网际(北京)安全技术有限公司 Method and device for automatically stopping charging after full charge of mobile terminal
CN104505921A (en) * 2015-01-16 2015-04-08 九五堂科技(深圳)有限公司 Charging device and charging management method
EP3093945A1 (en) * 2015-05-14 2016-11-16 MediaTek, Inc Electronic device, charger within the electronic device, and detecting method for detecting abnormal status of connector of electronic device
CN106300690A (en) * 2015-06-12 2017-01-04 西安中兴新软件有限责任公司 A kind of wireless charging method, equipment and terminal
CN105576744A (en) * 2015-12-25 2016-05-11 惠州Tcl移动通信有限公司 Charge pal switching implementation method and charge pal
WO2018068323A1 (en) * 2016-10-14 2018-04-19 华为技术有限公司 Charger
CN106340932A (en) * 2016-10-17 2017-01-18 惠州Tcl移动通信有限公司 Mobile terminal connection detection method and system based on USB interface charger
CN106786994A (en) * 2017-02-20 2017-05-31 维沃移动通信有限公司 A kind of charging method, charger and mobile terminal
CN106828171A (en) * 2017-03-08 2017-06-13 广州车电网新能源有限公司 Charging pile and the identification system and method for electric automobile wireless telecommunications
CN106877462A (en) * 2017-04-21 2017-06-20 维沃移动通信有限公司 A kind of method and charger for detecting charged state

Also Published As

Publication number Publication date
CN109560581A (en) 2019-04-02

Similar Documents

Publication Publication Date Title
US11288407B2 (en) Method and electronic device for controlling voltage output to external electronic device according to size of voltage detected at signal terminal connected to external electronic device
CN109560581B (en) Charging processing method, charging processing circuit, electronic device, and storage medium
US9444278B2 (en) USB charging with data communication
US11340676B2 (en) Method of identifying external electronic device based on power information and electronic device and storage medium for supporting same
US9258024B2 (en) SIM card connector and mobile terminal
US20170117735A1 (en) Charging Control Method and Mobile Terminal
CN101534349A (en) Method and apparatus for determining external connection device in mobile terminal
US20060145666A1 (en) Device and method for charging an OTG portable device
CN107707000B (en) OTG power supply and wireless charging compatible circuit, related method and terminal equipment
CN111817382B (en) Charger, data line and charging equipment
EP3771987B1 (en) Electronic device for preventing damage of usb device and operating method thereof
US20170357337A1 (en) Wireless input device, charging pad and charging method thereof
CN108733609B (en) Switching circuit, intelligent switching device and switching method of double USB interfaces
CN113937832A (en) Charging cable, and identification method and system of charging cable
KR20210034431A (en) An electronic device supporting connection with external device and power consumption reducing method when using in connection with the external device
US10956350B2 (en) Electronic device with USB type-C connector
CN115622177A (en) Charging method, mobile terminal and storage medium
CN107329520B (en) USB interface connection method, device and system of mobile terminal
CN110492575B (en) Quick charging system and method for handheld device and handheld device
EP4160857A1 (en) Charger, data line and charging device
KR20220054108A (en) Method and electronic device for providing fast charging
EP3629428B1 (en) Method and apparatus for changing impedance of terminal included in connector
KR102508074B1 (en) Continuous communication method and apparatus of contactless communication device
US20220147130A1 (en) Method for selectively controlling voltage, and electronic device and external electronic device therefor
KR20210033758A (en) Method for power supply and an electronic device thereof

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