CN114156985A - Detection method based on charger, charger and controller - Google Patents

Detection method based on charger, charger and controller Download PDF

Info

Publication number
CN114156985A
CN114156985A CN202111469787.2A CN202111469787A CN114156985A CN 114156985 A CN114156985 A CN 114156985A CN 202111469787 A CN202111469787 A CN 202111469787A CN 114156985 A CN114156985 A CN 114156985A
Authority
CN
China
Prior art keywords
controller
voltage
charger
interface
packet
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.)
Granted
Application number
CN202111469787.2A
Other languages
Chinese (zh)
Other versions
CN114156985B (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.)
Agco Microelectronics Shenzhen Co ltd
Original Assignee
Agco Microelectronics Shenzhen Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Agco Microelectronics Shenzhen Co ltd filed Critical Agco Microelectronics Shenzhen Co ltd
Priority to CN202111469787.2A priority Critical patent/CN114156985B/en
Publication of CN114156985A publication Critical patent/CN114156985A/en
Application granted granted Critical
Publication of CN114156985B publication Critical patent/CN114156985B/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/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The utility model provides a detection method, charger and controller based on charger, relate to cable detection technical field, the charger includes two controllers and two controllers respectively corresponding interface, and two controllers include first controller and the second controller that links to each other through the bus, the method includes: one of the two controllers sends a first data packet to a communication terminal in the corresponding interface; in response to the first packet, the other of the two controllers sending first information to the one controller via the bus; after the one controller receives the first information, the first controller controls the first power supply terminal in the corresponding interface to output current with first voltage; the second controller measures a second voltage at a second power supply terminal in the corresponding interface; and outputting a detection result of the cable according to at least the first voltage and the second voltage.

Description

Detection method based on charger, charger and controller
Technical Field
The disclosure relates to the technical field of cable detection, in particular to a detection method based on a charger, the charger and a controller.
Background
With the rapid development of electronic manufacturing industry, various electronic devices are used increasingly frequently in production and life.
Disclosure of Invention
According to an aspect of the embodiments of the present disclosure, there is provided a detection method based on a charger, the charger including two controllers and interfaces corresponding to the two controllers, the two controllers including a first controller and a second controller connected via a bus, the method including: one of the two controllers sends a first data packet to a communication terminal in the corresponding interface; in response to the first packet, the other of the two controllers sending first information to the one controller via the bus; after the one controller receives the first information, the first controller controls the first power supply terminal in the corresponding interface to output current with first voltage; the second controller measures a second voltage at a second power supply terminal in the corresponding interface; and outputting a detection result of the cable according to at least the first voltage and the second voltage.
In some embodiments, the method further comprises: in response to the first information, the one controller transmits a 1 st second packet to the communication terminal in the corresponding interface; in response to the ith second data packet from the communication terminal in the corresponding interface, the other controller sends second information corresponding to the ith second data packet to the one controller through the bus, wherein i is an integer greater than or equal to 1; and responding to the second information corresponding to the ith second data packet, and sending the (i + 1) th second data packet to the communication terminal in the corresponding interface by the controller.
In some embodiments, the one controller enters the standby mode in case that the first information is not received within a first time interval from the transmission of the first data packet or second information corresponding to an ith data packet is not received within a second time interval from the transmission of an ith second data packet.
In some embodiments, the first information, the ith second packet, and the second information corresponding to the ith second packet are all the first packets.
In some embodiments, the one controller sends the first packet to a communication terminal in the corresponding interface in a case where the detection request is received, the corresponding interface is not connected with the load, and the cable is connected with the corresponding interface.
In some embodiments, the method further comprises: and the other controller sends the detection request to the one controller through the bus under the condition that the corresponding interface is not connected with a load and the cable is connected with the corresponding interface.
In some embodiments, the other controller repeatedly sends the detection request to the one controller via the bus at a third time interval before receiving the first data packet.
In some embodiments, the detection request is sent in response to a user operating a manipulation component of the charger.
In some embodiments, the method further comprises: after outputting the detection result, the first controller controls the first power supply terminal to stop outputting the current.
In some embodiments, the method further comprises: before the first power supply terminal outputs the current, the second controller controls a switch connected with the second power supply terminal to be closed so that the second power supply terminal is connected with the discharge terminal; after outputting the detection result, the second controller controls the switch to be turned off so that the second power supply terminal is disconnected from the discharge terminal.
In some embodiments, outputting the detection result of the cable according to at least the first voltage and the second voltage comprises: calculating a difference between the first voltage and the second voltage; and determining the resistance of the cable according to the current and the difference value so as to output the detection result of the cable.
In some embodiments, the first controller and the second controller are both charging PD controllers; the interfaces corresponding to the first controller and the second controller are Universal Serial Bus (USB) class C interfaces.
In some embodiments, the first data packet carries information indicative of the magnitude of the first voltage and the current.
According to another aspect of the embodiments of the present disclosure, there is provided a charger including two controllers and interfaces corresponding to the two controllers, the two controllers including a first controller and a second controller connected via a bus, wherein: one of the two controllers is configured to transmit a first packet to a communication terminal in the corresponding interface; the other of the two controllers is configured to transmit first information to the one controller via the bus in response to the first packet; the first controller is further configured to control the first power supply terminal in the corresponding interface to output a current having a first voltage after the first information is transmitted; the second controller is further configured to measure a second voltage at a second power supply terminal in the corresponding interface; at least one of the two controllers is further configured to output a detection result of the cable at least according to the first voltage and the second voltage.
In some embodiments, the one controller is further configured to transmit a 1 st second packet to the communication terminal in the corresponding interface in response to the first information; transmitting an i +1 th second packet to a communication terminal in a corresponding interface in response to corresponding second information transmitted by the another controller receiving an i-th second packet, where i is an integer greater than or equal to 1; the other controller is further configured to transmit second information corresponding to the ith second packet to the one controller via the bus in response to the ith second packet from the communication terminal in the corresponding interface.
In some embodiments, the one controller is further configured to enter the standby mode if the first information is not received within a first time interval from the transmission of the first data packet or second information corresponding to an ith data packet is not received within a second time interval from the transmission of the ith second data packet.
In some embodiments, the first information, the ith second packet, and the second information corresponding to the ith second packet are all the first packets.
In some embodiments, the one controller is configured to send the first packet to a communication terminal in the corresponding interface if the detection request is received, the corresponding interface is not connected with a load, and the cable is connected with the corresponding interface.
In some embodiments, the other controller is further configured to send the detection request to the one controller via the bus if the corresponding interface is not connected to a load and the cable is connected to the corresponding interface.
In some embodiments, the other controller is configured to repeatedly send the detection request to the one controller via the bus at a third time interval before receiving the first data packet.
In some embodiments, the charger further comprises: a manipulation member; wherein the detection request is transmitted in response to an operation of the manipulating part by a user.
In some embodiments, the first controller is further configured to control the first power supply terminal to stop outputting the current after outputting the detection result.
In some embodiments, the charger further comprises: a switch connected to the second power supply terminal; wherein the second controller is further configured to control the switch to close so that the second power supply terminal is connected with the discharge terminal before the first power supply terminal outputs the current; after the detection result is output, the switch is controlled to be turned off so that the second power supply terminal is disconnected from the discharge terminal.
In some embodiments, the at least one controller is configured to calculate a difference between the first voltage and the second voltage; and determining the resistance of the cable according to the current and the difference value so as to output the detection result of the cable.
In some embodiments, the charger further comprises a selector switch having a plurality of gears; wherein the at least one controller is further configured to determine a corresponding threshold value in dependence on the current gear of the selector switch; comparing the resistance with the threshold value to output a detection result of the cable.
In some embodiments, the first controller and the second controller are both charging PD controllers; the interfaces corresponding to the first controller and the second controller are Universal Serial Bus (USB) class C interfaces.
In some embodiments, the first data packet carries information indicative of the magnitude of the first voltage and the current.
According to still another aspect of the embodiments of the present disclosure, there is provided a detection method based on a charger, where the charger includes a first controller, a second controller connected to the first controller via a bus, an interface corresponding to the first controller, and an interface corresponding to the second controller, and the method includes: the first controller sends a first data packet to a communication terminal in a corresponding interface; after receiving first information sent by the second controller via the bus in response to the first data packet, the first controller controls the first power terminal in the corresponding interface to output a current having a first voltage so that the second controller measures a second voltage at the second power terminal in the corresponding interface; the first controller outputs a detection result of the cable at least according to the first voltage and the second voltage.
According to still another aspect of the embodiments of the present disclosure, there is provided a detection method based on a charger, where the charger includes a first controller, a second controller connected to the first controller via a bus, an interface corresponding to the first controller, and an interface corresponding to the second controller, and the method includes: in response to a first packet from a communication terminal in a corresponding interface, the first controller sends first information to the second controller via the bus; after the second controller receives the first information, the first controller controls the first power terminal in the corresponding interface to output a current with a first voltage so that the second controller measures a second voltage at the second power terminal in the corresponding interface; the first controller outputs a detection result of the cable at least according to the first voltage and the second voltage.
According to still another aspect of the embodiments of the present disclosure, there is provided a detection method based on a charger, where the charger includes a first controller, a second controller connected to the first controller via a bus, an interface corresponding to the first controller, and an interface corresponding to the second controller, and the method includes: the second controller sends a first data packet to the communication terminal in the corresponding interface, so that the first controller controls the first power terminal in the corresponding interface to output current with the first voltage after the second controller receives first information sent by the first controller through the bus in response to the first data packet; the second controller measures a second voltage at a second power supply terminal in the corresponding interface; and the second controller outputs the detection result of the cable at least according to the first voltage and the second voltage.
According to still another aspect of the embodiments of the present disclosure, there is provided a detection method based on a charger, where the charger includes a first controller, a second controller connected to the first controller via a bus, an interface corresponding to the first controller, and an interface corresponding to the second controller, and the method includes: in response to a first packet from a communication terminal in the corresponding interface, the second controller sends first information to the first controller via the bus so that the first controller controls a first power supply terminal in the corresponding interface to output a current having a first voltage; the second controller measures a second voltage at a second power supply terminal in the corresponding interface; the second controller outputs a detection result of the cable at least according to the first voltage and the second voltage.
According to a further aspect of the embodiments of the present disclosure, there is provided a controller, where the controller is used as a first controller in a charger, and the charger further includes a second controller connected to the first controller via a bus, an interface corresponding to the first controller, and an interface corresponding to the second controller; the first controller includes: a transmitting module configured to transmit a first packet to a communication terminal in a corresponding interface; a control module configured to control a first power terminal in a corresponding interface to output a current having a first voltage after receiving first information transmitted by a second controller via a bus in response to the first data packet, so that the second controller measures a second voltage at a second power terminal in the corresponding interface; an output module configured to output a detection result of the cable according to at least the first voltage and the second voltage.
According to a further aspect of the embodiments of the present disclosure, there is provided a controller, where the controller is used as a first controller in a charger, and the charger further includes a second controller connected to the first controller via a bus, an interface corresponding to the first controller, and an interface corresponding to the second controller; the first controller includes: a transmission module configured to transmit first information to the second controller via the bus in response to a first packet from the communication terminal in the corresponding interface; a control module configured to control a first power terminal in a corresponding interface to output a current having a first voltage after a second controller receives the first information so that the second controller measures a second voltage at a second power terminal in the corresponding interface; an output module configured to output a detection result of the cable according to at least the first voltage and the second voltage.
According to a further aspect of the embodiments of the present disclosure, there is provided a controller, where the controller is used as a first controller in a charger, and the charger further includes a second controller connected to the first controller via a bus, an interface corresponding to the first controller, and an interface corresponding to the second controller; the first controller includes: a memory; and a processor coupled to the memory and configured to execute the charger-based detection method of any of the above embodiments based on instructions stored in the memory.
According to a further aspect of the embodiments of the present disclosure, there is provided a controller, where the controller is used as a second controller in a charger, and the charger further includes a first controller connected to the second controller via a bus, an interface corresponding to the first controller, and an interface corresponding to the second controller; the second controller includes: a transmitting module configured to transmit a first data packet to a communication terminal in a corresponding interface so that a first controller controls a first power terminal in the corresponding interface to output a current having a first voltage after a second controller receives first information that the first controller transmits via a bus in response to the first data packet; a measurement module configured to measure a second voltage at a second power supply terminal in a corresponding interface; and an output module configured to output a detection result of the cable according to at least the first voltage and the second voltage.
According to a further aspect of the embodiments of the present disclosure, there is provided a controller, where the controller is used as a second controller in a charger, and the charger further includes a first controller connected to the second controller via a bus, an interface corresponding to the first controller, and an interface corresponding to the second controller; the second controller includes: a transmitting module configured to transmit first information to the first controller via the bus in response to a first packet from the communication terminal in the corresponding interface so that the first controller controls the first power supply terminal in the corresponding interface to output a current having a first voltage; a measurement module configured to measure a second voltage at a second power supply terminal in a corresponding interface; an output module configured to output a detection result of the cable according to at least the first voltage and the second voltage.
According to a further aspect of the embodiments of the present disclosure, there is provided a controller, where the controller is used as a second controller in a charger, and the charger further includes a first controller connected to the second controller via a bus, an interface corresponding to the first controller, and an interface corresponding to the second controller; the second controller includes: a memory; and a processor coupled to the memory and configured to execute the charger-based detection method of any of the above embodiments based on instructions stored in the memory.
In the embodiment of the present disclosure, one of the two controllers of the charger transmits a data packet to the communication terminal in the corresponding interface, so that in the case where the other controller receives the data packet, the two ends of the cable of the data packet transmission controller are notified by the first information that the two interfaces of the charger have been connected. Thereafter, the first controller controls the first power supply terminal to output a current having a first voltage, and the second controller measures a second voltage at the second power supply terminal. In this way, on the one hand, it can be ensured that the second controller can accurately measure the second voltage, so that the detection result of the cable can be accurately output according to the first voltage and the second voltage. On the other hand, the quality of detectable cable can be realized only by connecting the two ends of the cable to the two interfaces of the charger, and the convenience of cable detection is improved.
The technical solution of the present disclosure is further described in detail by the accompanying drawings and examples.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a schematic flow diagram of a charger-based detection method according to some embodiments of the present disclosure;
fig. 2A is a schematic circuit configuration diagram of a charger according to some embodiments of the present disclosure;
fig. 2B is a perspective schematic view of a charger according to some embodiments of the present disclosure;
FIG. 3 is a schematic flow chart diagram of a charger-based detection method according to further embodiments of the present disclosure;
FIG. 4 is a schematic structural diagram of a first controller according to some embodiments of the present disclosure;
FIG. 5 is a schematic structural diagram of a second controller according to some embodiments of the present disclosure;
fig. 6 is a schematic structural diagram of a controller according to some embodiments of the present disclosure.
Detailed Description
Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. The description of the exemplary embodiments is merely illustrative and is in no way intended to limit the disclosure, its application, or uses. The present disclosure may be embodied in many different forms and is not limited to the embodiments described herein. These embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art. It should be noted that: the relative arrangement of parts and steps, the composition of materials, numerical expressions and numerical values set forth in these embodiments are to be construed as merely illustrative, and not as limitative, unless specifically stated otherwise.
The use of "first," "second," and similar terms in this disclosure is not intended to indicate any order, quantity, or importance, but rather are used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that the element preceding the word covers the element listed after the word, and does not exclude the possibility that other elements are also covered.
In the present disclosure, when a specific component is described as being located between a first component and a second component, there may or may not be intervening components between the specific component and the first component or the second component. When it is described that a specific component is connected to other components, the specific component may be directly connected to the other components without having an intervening component, or may be directly connected to the other components without having an intervening component.
All terms (including technical or scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs unless specifically defined otherwise. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
In the related art, an electronic device may be connected to a cable connected to a charger in order to charge the electronic device. The quality of the cable directly affects the charging speed of the electronic device, the health of the battery, and the like.
However, the inventors have noted that, in practice, it is difficult to directly discriminate the quality of the cable because the cable is covered with an insulating layer.
In view of the above, the present disclosure provides a charger-based detection method capable of conveniently and accurately detecting the quality of a cable.
Fig. 1 is a schematic flow diagram of a charger-based detection method according to some embodiments of the present disclosure.
For ease of understanding, the charger of some embodiments of the present disclosure will first be described with reference to fig. 2A and 2B.
Fig. 2A is a schematic circuit configuration diagram of a charger according to some embodiments of the present disclosure; fig. 2B is a perspective view of a charger according to some embodiments of the present disclosure.
As shown in fig. 2A, the charger includes two controllers 210 and 220 (i.e., a first controller 210 and a second controller 220), and interfaces corresponding to the two controllers 210 and 220, respectively. For convenience of explanation, an interface corresponding to the first controller 210 will be referred to as a first interface 230, and an interface corresponding to the second controller 220 will be referred to as a second interface 240 hereinafter. A cable may be connected between the first interface 230 and the second interface 240.
Here, the first controller 210 and the second controller 220 are connected via a bus 250. The bus 250 may be a two-wire synchronous serial bus, such as an Inter-Integrated Circuit (I)2C) A bus. The first controller 210 and the second controller 220 may be, for example, Power Delivery (PD) controllers.
The first interface 230 and the second interface 240 each include a communication terminal and a power terminal. Hereinafter, the communication terminal and the power terminal in the first interface 230 are referred to as a first communication terminal 231 and a first power terminal 232, respectively, and the communication terminal and the power terminal in the second interface 240 are referred to as a second communication terminal 241 and a second power terminal 242, respectively.
In some embodiments, the first interface 230 and the second interface 240 are both Universal Serial Bus (USB) class C interfaces, i.e., Type-C interfaces.
In some embodiments, the first communication terminal 231 and the second communication terminal 241 are both acknowledgement Connection (CC) terminals in a Type-C interface.
In some embodiments, referring to fig. 2A, the first interface 230 further includes a ground terminal 233, and other terminals 234, and the second interface 240 also includes a ground terminal 243 and other terminals 244. In the case where the first communication terminal 231 and the second communication terminal 241 are both CC terminals, the other terminals 234 and 244 may include, for example, a Digital Positive (D +) terminal, a Digital negative (D-) terminal, or the like.
It should be understood that the charger may include various other components in addition to the aforementioned components to achieve the basic functions of the charger.
For example, referring to fig. 2A, the charger may further include a DC-DC converter 260 connected to the first power terminal 232 via a switch 261, and a DC-DC converter 270 connected to the second power terminal 242 via a switch 271. The DC- DC converters 260 and 270 may be, for example, boost converters, buck converters, or buck-boost converters. In one or more embodiments, the two DC- DC converters 260 and 270 may be connected with an AC-DC converter 280 in the charger. The AC-DC converter 280 may be connected to the input voltage terminal Vin to obtain an input voltage in a case where a plug 293 (see fig. 2B) of the charger is connected to an alternating current power source outside the charger.
In some embodiments, referring to fig. 2A, the two controllers 210 and 220 also include a ground terminal GND, respectively. For example, the ground terminal GND of the first controller 210 may be connected to the ground terminal 233 via one resistance, and the ground terminal GND of the second controller 220 may be connected to the ground terminal 243 via another resistance.
In some embodiments, referring to fig. 2A, the first controller 210 may be connected with the DC-DC converter 260 and the switch 261, so that the first controller 210 can control the output of the first power terminal 232 by controlling the DC-DC converter 260 and the switch 261. Similarly, the second controller 220 may be connected with the DC-DC converter 270 and the switch 271 so that the second controller 220 can control the output of the second power terminal 242 by controlling the DC-DC converter 270 and the switch 271.
As shown in fig. 1, the charger-based detection method includes steps 102 to 110.
In step 102, one of the two controllers transmits a first packet to a communication terminal in the corresponding interface.
The first data packet may be any type of data packet that conforms to the communication specification between the two controllers 210 and 220.
It should be understood that one controller that sends the first packet to the communication terminal in the corresponding interface may be the first controller 210 or the second controller 220.
In step 104, in response to the first packet, the other of the two controllers sends first information to the one controller via the bus.
It should be understood that in the case where one end of the cable to be detected is connected to the first interface 230 and the other end is connected to the second interface 240, the first data packet transmitted by one controller may reach the other controller via a communication terminal in the interface corresponding to the other controller. If the first packet is received, the other controller may know that both ends of the cable are connected to the first interface 230 and the second interface 240. In this case, the other controller that receives the first packet may enter the detection mode, for example, from the standby mode.
For convenience of explanation, hereinafter, a controller of the two controllers 210 and 220 that transmits the first packet is referred to as a packet transmission controller, and a controller of the two controllers 210 and 220 that receives the first packet is referred to as a packet reception controller.
After receiving the first packet, the packet receiving controller may send a first message to the packet sending controller via the bus 250 to inform the packet sending controller that both ends of the cable to be detected are connected to the first interface 230 and the second interface 240. The packet transmission controller may also enter a detection mode, e.g. from a standby mode, in case the first information is received.
After the first information is received by the packet transmission controller, steps 106 to 110 may be performed.
In step 106, the first controller controls the first power terminal in the corresponding interface to output a current having a first voltage.
For example, referring to fig. 2A, the first controller 210 may control the first power terminal 232 to output a current having a first voltage by controlling the DC-DC converter 260 and controlling the switch 261 to be closed.
The packet transmission controller will be described as the first controller 210. The first controller 210 may first transmit a first packet to the first communication terminal 231; if both ends of the cable are connected to the first interface 230 and the second interface 240, the second controller 220 may receive the first packet from the second communication terminal 241 and transmit the first information to the first controller 210 via the bus 250; upon receiving the first information, the first controller 210 may control the first power terminal 232 to output a current having a first voltage.
The packet transmission controller will be described as the second controller 220. The second controller 220 may first transmit a first packet to the second communication terminal 241; if both ends of the cable are connected to the first interface 230 and the second interface 240, the first controller 210 may receive the first packet from the first communication terminal 231 and transmit the first information to the second controller 220 via the bus 250; after receiving the first information, the second controller 220 may further send a response message of receiving the first information to the first controller 210 via the bus 250 to drive the first controller 210 to control the first power terminal 232 to output a current with the first voltage.
As some implementations, the magnitudes of the first voltage and current may be preset default values. However, the present disclosure is not limited thereto. For example, the magnitude of the first voltage and current may be communicated to the first controller 210 by the second controller 220; for another example, the magnitudes of the first voltage and the current may be input by a user detecting the cable.
At step 108, the second controller measures a second voltage at a second power supply terminal in the corresponding interface.
In the case where both ends of the cable are connected to the first interface 230 and the second interface 240, the current having the first voltage output from the first power terminal 232 flows from one end of the cable connected to the first interface 230 to the other end connected to the second interface 240. At this time, the second controller 220 may measure the voltage at the second power supply terminal 242 (i.e., the second voltage).
In step 110, a detection result of the cable is output according to at least the first voltage and the second voltage.
In some embodiments, the detection result of the cable may be output according to only the first voltage and the second voltage. If the second voltage is reduced more than the first voltage, the quality of the cable is relatively poor; if the second voltage drops less than the first voltage, it indicates that the quality of the cable is relatively good.
In other embodiments, the detection result of the cable may be output according to the first voltage, the second voltage, and the current. This will be further explained later in connection with some embodiments.
It is understood that step 110 may be performed by the first controller 210, by the second controller 220, or by other performing components in the charger.
For example, after measuring the second voltage, the second controller 220 may notify the first controller 210 of the magnitude of the second voltage, so that the first controller 210 performs step 110.
For another example, the first controller 210 may inform the second controller 220 of the magnitudes of the first voltage and the current, so that the second controller 220 performs step 110 after measuring the second voltage.
For another example, the first controller 210 and the second controller 220 may respectively notify the magnitudes of the first voltage and the second voltage to other execution units so that the execution units execute step 110.
In the above-described embodiment, one of the two controllers 210 and 220 of the charger transmits a packet to the communication terminal in the corresponding interface, so that in the case where the other controller receives the packet, the packet transmission controller is notified that both ends of the cable are connected to the two interfaces of the charger through the first information. Thereafter, the first controller 210 controls the first power supply terminal 232 to output a current having a first voltage, and the second controller 220 measures a second voltage at the second power supply terminal 242. In this way, on the one hand, it can be ensured that the second controller 220 can accurately measure the second voltage, so that the detection result of the cable can be accurately output according to the first voltage and the second voltage. On the other hand, the quality of detectable cable can be realized only by connecting the two ends of the cable to the two interfaces of the charger, and the convenience of cable detection is improved.
The charger-based detection method shown in fig. 1 is further described below in conjunction with some embodiments.
In some embodiments, the packet transmission controller transmits the first packet to the communication terminal in the corresponding interface in a case where the detection request is received, the corresponding interface is not connected with the load, and the cable is connected with the corresponding interface.
The load may be various electronic devices such as a mobile phone, a tablet computer, a notebook computer, and the like.
The packet transmission controller will be described as the first controller 210. If one of the two CC terminals 231 of the first interface 230 is connected with a specific pull-down resistor in the cable and the other is not connected with a specific pull-down resistor in the load (e.g., one CC terminal 231 is connected with a specific pull-down resistor in the cable and the other CC terminal 231 is connected with a specific pull-up resistor in the charger), the first controller 210 may confirm that the first interface 230 is not connected with the load and the cable is connected with the first interface 230.
It is understood that if the corresponding interface has a load connected thereto, or no cable is connected to the corresponding interface, it may indicate that both ends of the cable are not connected to the first interface 230 and the second interface 240. In these cases, the packet transmission controller does not transmit the first packet.
The packet transmission controller transmits the first packet when the detection request is received, the corresponding interface is not connected with the load, and the cable is connected with the corresponding interface. Thus, the operating pressure of the packet transmission controller can be reduced.
Some implementations of the packet transmit controller receiving the detection request are given below.
As some implementations, the detection request is sent in response to a user operating a manipulation component of the charger.
Referring to fig. 2A, the charger includes a manipulating part 291. The manipulating part 291 may include, but is not limited to, a push button switch, a selection switch, and the like.
In some embodiments, the manipulating part 291 may be directly connected with the packet transmission controller. After the user performs a corresponding operation on the manipulating part 291, the manipulating part 291 may transmit a detection request to the packet transmission controller.
In other embodiments, the manipulating part 291 may be connected with the packet transmission controller via other control parts. After the user performs a corresponding operation on the manipulating part 291, the manipulating part 291 may transmit an electric signal representing a detection request to the control part so that the control part transmits the detection request to the packet transmission controller.
Taking the operating member 291 as a push switch SB (see fig. 2A) as an example. In case of a need to detect the cable, the user may first connect both ends of the cable to the first interface 230 and the second interface 240 and then press a button to cause the packet transmission controller to receive the detection request, thereby triggering the transmission of the first packet.
In these implementations, the packet transmission controller may transmit the first packet if the user's need to detect the cable is certain. In this way, the operating pressure of the packet transmission controller can be further reduced.
As another implementation, the packet receiving controller sends a detection request to the packet sending controller via the bus 250 when the corresponding interface is not connected to the load and the cable is connected to the corresponding interface.
Similarly, if the corresponding interface has a load connected thereto, or no cable is connected to the corresponding interface, it may indicate that both ends of the cable are not connected to the first interface 230 and the second interface 240. In this case, the packet reception controller does not transmit the detection request.
In these implementations, the packet reception controller sends a detection request to the packet transmission controller to trigger the transmission of the first packet if the corresponding interface is not connected to a load and the cable is connected to the corresponding interface. Therefore, the working pressure of the data packet sending controller can be further reduced, an additional operation part does not need to be constructed in the charger, the manufacturing cost of the charger is saved, and additional operation of a user is not needed.
In some embodiments, the packet receiving controller may repeatedly send a detection request to the packet sending controller via the bus 250 at a preset time interval (i.e., a third time interval) before receiving the first packet. In this way, the first controller 210 can send the first packet in time after the first interface 230 switches from the other state to the state in which the load is not connected and the cable is connected, so that the detection result of the cable can be obtained in time, and the user experience can be improved.
In some embodiments, the packet transmit controller is a first controller 210 and the packet receive controller is a second controller 220.
In these embodiments, the detection request sent by the second controller 220 to the first controller 210 may carry information indicative of the magnitude of the first voltage and current, and the detection result of the cable is output by the second controller 220 based on at least the known first voltage and the measured second voltage.
For example, in the case where the cable is connected to the second interface 240 and the second interface 240 is not connected to the load, the second controller 220 may repeatedly send a detection request carrying information such as "5V/3A" to the first controller 210 at preset time intervals until the first controller 210 confirms that the cable is connected to the first interface 230 and the first interface 230 is not connected to the load. Then, the first controller 210 may transmit the first data packet; if the first information is received, the first controller 210 may control the first power terminal 232 to output a 3A current having a voltage of 5V. After the first power terminal 232 outputs the current, the second controller 220 may measure the voltage at the second power terminal 242 and output the detection result of the cable directly according to the first voltage and the second voltage.
The first controller 210 controls the first power terminal 232 to output corresponding current and voltage according to the information carried in the detection request sent by the second controller 220, so that the second controller 220 can directly output the detection result after measuring the voltage at the second power terminal 242. In this way, the second controller 220 can know the magnitude of the first voltage and the current without being notified by the first controller 210, so as to output the detection result of the cable according to at least the first voltage and the second voltage in the following. This can reduce the operating pressure of the second controller 220, and can improve the output speed of the cable detection result, improving the user experience.
Other embodiments of the charger-based detection method shown in fig. 1 are described further below.
In some embodiments, after outputting the detection result, the first controller 210 controls the first power terminal 232 to stop outputting the current. For example, the first controller 210 may control the switch 261 to be turned off, so that the DC-DC converter 260 is disconnected from the first power terminal 232, thereby causing the first power terminal 232 to stop outputting current. Thus, the current output can be stopped in time after the detection is completed, and the energy consumption can be reduced.
In some embodiments, before the first power terminal 232 outputs a current having the first voltage, the second controller 220 controls the switch 221 (see fig. 2A) connected with the second power terminal 242 to be closed so that the second power terminal 242 is connected with the discharge terminal 222.
In these embodiments, after the detection result is output, the second controller 220 controls the switch 221 to be turned off so that the second power terminal 242 is disconnected from the discharge terminal 222.
For example, the first controller 210 is a packet transmission controller. In this case, the second controller 220 may control the switch 221 to be closed in response to the first packet from the second communication terminal 241.
Also for example, the second controller 220 is a packet transmission controller. In this case, the second controller 220 may control the switch 221 to be closed in response to the first information transmitted by the first controller 210 via the bus 250.
As some implementations, while controlling the switch 221 to be closed, the second controller 220 also controls the switch 271 to be opened, so that the DC-DC converter 270 is disconnected from the second power terminal 242, so that it may be ensured that the second power terminal 242 is connected only with the discharge terminal 222.
It should be understood that fig. 2A only schematically illustrates the discharge terminal 222 directly grounded. However, the disclosed embodiments are not limited thereto.
In the above embodiment, on the one hand, the second controller 220 adjusts the connection of the second power terminal 242 with the discharging terminal 222 before the first power terminal 232 outputs current. Therefore, the current for detecting the cable can be prevented from influencing the normal operation of each component in the charger. On the other hand, the second controller 220 adjusts the second power terminal 242 to be disconnected from the discharge terminal 222 after the detection result is output. In this way, the second power terminal 242 can be adjusted back to the normal state in time after the cable detection is finished, so that the electronic device can be normally charged later.
The following describes, in connection with some embodiments, the detection results of the output cable based on at least the first voltage and the second voltage.
As some implementations, a difference of the first voltage and the second voltage may be calculated, and a detection result of the cable may be output according to the difference.
As another implementation, a difference between the first voltage and the second voltage may be calculated first, then a ratio of the difference to the first voltage may be calculated, and the detection result of the cable may be output according to the ratio.
As still further implementations, a difference between the first voltage and the second voltage may be first calculated. Then, the resistance of the cable may be confirmed according to the magnitude of the current and the difference between the first voltage and the second voltage to output the detection result of the cable.
In some embodiments, referring to fig. 2A, the charger further includes a display unit 292, the display unit 292 may be configured to display a detection result of the cable. The detection result of the cable displayed by the display unit 292 may include a numerical type detection result, a hierarchical type detection result, and the like.
As some implementations, the display component 292 can be a display screen, such as a Light Emitting Diode (LED) display screen, to display numerical type detection results.
For example, after calculating a difference between the first voltage and the second voltage, a ratio between the difference and the first voltage, or a resistance of the cable, a control signal may be sent to the display unit 292 so that the display unit 292 displays the calculated difference, ratio, or resistance.
As other implementations, the display component 292 may include one or more lights (e.g., one or more LEDs) to display a hierarchical type of detection. For example, one lamp can be controlled to be in different brightness or different colors to represent the detection results of different quality levels; also for example, a plurality of lamps may be controlled to be turned on to indicate the detection results of different quality levels. For example, referring to fig. 2B, the display member 292 includes lamps 292a and 292B. The controller light 292a may be controlled to light up when the quality grade of the cable is good, and the controller light 292b may be controlled to light up when the quality grade of the cable is poor.
As some implementations, a threshold value suitable for judging the quality level of the cable of the regular length may be set, and the calculated difference value, ratio value, or resistance may be compared with the corresponding threshold value to determine the quality level of the cable, so as to control the display unit 292 in the display condition corresponding to the quality level.
Taking the difference between the first voltage and the second voltage as an example, the threshold value may be set to 0.3V. In case that the difference between the calculated first voltage and the second voltage exceeds 0.3V, it may be determined that the quality level of the cable is "poor"; in the case where the difference does not exceed 0.3V, the quality level of the cable may be determined to be "good".
Also for example, the ratio of the difference between the two voltages to the first voltage can be set to 6%. In case the calculated ratio exceeds 6%, it may be determined that the quality level of the cable is "bad"; in the case where the ratio does not exceed 6%, the quality grade of the cable may be determined to be "good".
Further, taking the resistance of the cable as an example, the threshold value may be set to 0.1 Ω. In the case where the calculated resistance exceeds 0.1 Ω, it may be determined that the quality level of the cable is "poor"; in the case where the resistance does not exceed 0.1 Ω, the quality level of the cable may be determined to be "good".
As other implementations, different ranges of lengths of cable correspond to different thresholds. For example, a length range of [1m, 1.5m) may correspond to a threshold of 0.1 Ω, and a length range of [1.5m, 2m) may correspond to a threshold of 0.2 Ω. In these implementations, the quality level of the cable may be determined by a threshold value corresponding to the length range to which the cable belongs. In this way, the detection result of the cable can be determined more accurately.
In some embodiments, the charger may include an operating member for inputting a length range to which the cable to be detected belongs. The operating member may be a selector switch having a plurality of positions, different positions may correspond to different length ranges, i.e. different positions may correspond to different threshold values. At least one of the two controllers 210 and 220 may determine a corresponding threshold value according to the current position of the selector switch and then compare the determined resistance of the cable with the threshold value to output the detection result of the cable.
For example, when a user needs to test a cable, the user may first connect both ends of the cable to the first and second interfaces 230 and 240, and adjust the selector switch to a position indicating the length range to which the cable belongs, and finally press a button to start testing.
Up to this point, various embodiments have been described that output the detection results of the cable at least in accordance with the first voltage and the second voltage. It is to be understood that the disclosed embodiments are not so limited.
FIG. 3 is a flow chart diagram of a charger-based detection method according to further embodiments of the present disclosure.
As shown in fig. 3, the charger-based detection method includes steps 302 to 306 in addition to steps 102 to 110.
In step 302, one controller transmits the 1 st second packet to the communication terminal in the corresponding interface in response to the first information.
That is, upon receiving the first information transmitted by the packet reception controller, the packet transmission controller continues to transmit the packet (i.e., the 1 st second packet) to the communication terminal in the corresponding interface.
In step 304, in response to the ith second packet from the communication terminal in the corresponding interface, the other controller transmits second information corresponding to the ith second packet to the one controller via the bus. Here, i is an integer of 1 or more.
The description will be given taking the 1 st second packet (i.e., i ═ 1) as an example. The packet reception controller can receive the 1 st second packet with both ends of the cable still connected to the first interface 230 and the second interface 240. In case of receiving the 1 st second packet, the packet reception controller continues to transmit the second information corresponding to the 1 st second packet to the packet transmission controller via the bus 250, so that the packet transmission controller performs step 306.
In step 306, in response to the second information corresponding to the ith second packet, one controller transmits the (i + 1) th second packet to the communication terminal in the corresponding interface.
The description will be made by taking the 1 st second packet as an example. When receiving the second information corresponding to the 1 st second packet, the packet transmission controller continues to transmit the 2 nd second packet to the communication terminal in the corresponding interface. If the 2 nd second packet can be received, the packet receiving controller continues to transmit the second information corresponding to the 2 nd second packet to the packet transmitting controller via the bus 250. The subsequent execution process may be analogized, and is not described in detail herein.
In the above-described embodiment, the packet transmission controller continues to transmit the second packet to the communication terminal in the corresponding interface when receiving the first information and the second information, and the packet reception controller continues to transmit the second information to the packet transmission controller when receiving the second packet. Therefore, whether two ends of the cable are always connected with the two interfaces of the charger can be conveniently confirmed, and repeated detection on the cable can be avoided under the condition that the same cable is always connected with the two interfaces.
The charger-based detection method shown in fig. 3 is further described below in connection with some embodiments.
In some embodiments, in the case that the first information is not received within a preset time interval (i.e., a first time interval) from the transmission of the first data packet or the second information corresponding to the ith data packet is not received within a preset time interval (i.e., a second time interval) from the transmission of the ith second data packet, indicating that the two ends of the cable are not connected with the two interfaces, the data packet transmission controller may enter the standby mode, for example, enter the standby mode from the detection mode.
Similarly, in the case that the 1 st second packet is not received within the preset time interval from the transmission of the first information or the i +1 th second packet is not received within the preset time interval from the transmission of the second information corresponding to the i-th second packet, the packet reception controller may also enter the standby mode, for example, the detection mode enters the standby mode.
In the above embodiment, the controller may switch from the detection mode back to the standby mode in time after the two ends of the cable are changed from the state of being connected to the two interfaces to the state of not being connected to the two interfaces. In this way, the controller can subsequently switch from the standby mode to the charging mode for charging the electronic device more quickly, and can also start to detect the other cable in time under the condition that the user quickly connects the two ends of the other cable to the two ports, so that the user experience can be improved.
It should be understood that the various time intervals in the above embodiments may be the same or different. In practice, each time interval may be set to be greater than the time required by the controller for the closed loop from the transmission of a data packet until the receipt of information corresponding to the data packet. Further, the closer each time interval is set to the time required for the aforementioned closed loop, the more the controller can switch from the detection mode back to the standby mode in time after the cable changes from the state of being connected to the two interfaces to the state of not being connected to the two interfaces.
In some embodiments, the first information, the ith second packet, and the second information corresponding to the ith second packet are all the first packets.
In other words, after receiving the first packet, the packet receiving controller may directly transmit the first packet as the first information to the packet transmitting controller via the bus 250. After receiving the first packet as the first information, the packet transmission controller may directly transmit the first packet as the 1 st second packet to the communication terminal in the corresponding interface.
On the one hand, the operating pressure of both controllers can be reduced. On the other hand, the time required for the controller to close the loop from the transmission of a data packet to the reception of information corresponding to the data packet can be reduced, so that the time interval for triggering the controller to switch back to the standby mode can be reduced, so that the controller switches back from the detection mode to the standby mode more promptly after the cable changes from a state of being connected to two interfaces to a state of not being connected to the two interfaces.
In some embodiments, the first data packet carries information indicative of the magnitude of the first voltage and current. In this way, no matter which controller of the two controllers the packet transmission controller is, the second controller can conveniently know the information of the voltage and the current output by the first power supply terminal.
The present disclosure also provides a charger, referring to fig. 2A, including two controllers 210 and 220, and an interface 230 or 240 corresponding to each of the two controllers 210 and 220. The two controllers 210 and 220 include a first controller 210 and a second controller 220 connected via a bus 250.
One of the two controllers 210 and 220 is configured to transmit a first data packet to a communication terminal in the corresponding interface 230 or 240. The other of the two controllers 210 and 220 is configured to send first information to the one controller via the bus 250 in response to the first packet.
The first controller 210 is further configured to control the first power terminal 232 in the corresponding interface 230 to output a current having a first voltage after the first information is transmitted. The second controller 220 is also configured to measure a second voltage at a second power terminal 242 in the corresponding interface 240. At least one of the two controllers 210 and 220 is further configured to output a detection result of the cable according to at least the first voltage and the second voltage.
It should be understood that the two controllers 210 and 220 may also be configured to perform the operations performed by the two controllers 210 and 220, respectively, in any of the embodiments described above, in order to perform the charger-based detection method of any of the embodiments described above. It should also be understood that the charger may also include the various components included in the charger in any of the embodiments described above. Are not described in detail herein.
Fig. 4 is a schematic structural diagram of a first controller according to some embodiments of the present disclosure.
As shown in fig. 4, the first controller 210 includes a transmission module 401, a control module 402, and an output module 403.
In some embodiments, the sending module 401 may be configured to send the first data packet to the communication terminal 231 in the corresponding interface 230; the control module 402 may be configured to control the first power terminal 232 to output a current having a first voltage after receiving first information sent by the second controller 220 over the bus 250 in response to the first data packet, such that the second controller 220 measures a second voltage at the second power terminal 242.
In other embodiments, the transmitting module 401 may be configured to transmit the first information to the second controller 220 via the bus 250 in response to the first packet from the communication terminal 231; the control module 402 may be configured to control the first power terminal 232 in the corresponding interface 230 to output a current having a first voltage after the second controller 220 receives the first information, such that the second controller 220 measures a second voltage at the second power terminal 242 in the corresponding interface 240.
The output module 403 may be configured to output a detection result of the cable according to at least the first voltage and the second voltage.
Fig. 5 is a schematic structural diagram of a second controller according to some embodiments of the present disclosure.
As shown in fig. 5, the second controller 220 includes a transmitting module 501, a measuring module 502, and an output module 503.
In some embodiments, the sending module 501 may be configured to send a first data packet to the communication terminal 241 in the corresponding interface 240, so that the first controller 210 controls the first power terminal 232 in the corresponding interface 230 to output a current with a first voltage after the second controller 220 receives the first information sent by the first controller 210 via the bus 250 in response to the first data packet.
In other embodiments, the sending module 501 may be configured to send the first information to the first controller 210 via the bus 250 in response to the first data packet from the communication terminal 241 in the corresponding interface 240, so that the first controller 210 controls the first power terminal 232 in the corresponding interface 230 to output a current having the first voltage.
The measurement module 502 may be configured to measure a second voltage at the second power supply terminal 242.
The output module 503 may be configured to output a detection result of the cable according to at least the first voltage and the second voltage.
Fig. 6 is a schematic structural diagram of a controller according to some embodiments of the present disclosure.
As shown in fig. 6, the controller 600 includes a memory 601 and a processor 602 coupled to the memory 601, and the processor 602 is configured to perform the operations performed by the first controller 210 or the second controller 220 in any of the above embodiments based on instructions stored in the memory 601.
It is understood that the controller 600 may be the first controller 210 or the second controller 220.
Thus, various embodiments of the present disclosure have been described in detail. Some details that are well known in the art have not been described in order to avoid obscuring the concepts of the present disclosure. It will be fully apparent to those skilled in the art from the foregoing description how to practice the presently disclosed embodiments.
In the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts in the embodiments are referred to each other. For the charger and controller embodiment, since it basically corresponds to the detection method embodiment based on the charger, the description is relatively simple, and the relevant points can be referred to the partial description of the method embodiment.
As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable non-transitory storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Although some specific embodiments of the present disclosure have been described in detail by way of example, it should be understood by those skilled in the art that the foregoing examples are for purposes of illustration only and are not intended to limit the scope of the present disclosure. It will be understood by those skilled in the art that various changes may be made in the above embodiments or equivalents may be substituted for elements thereof without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.

Claims (37)

1. A charger-based detection method, the charger including two controllers and interfaces corresponding to the two controllers, the two controllers including a first controller and a second controller connected via a bus, the method comprising:
one of the two controllers sends a first data packet to a communication terminal in the corresponding interface;
in response to the first packet, the other of the two controllers sending first information to the one controller via the bus;
after the one controller receives the first information, the first controller controls the first power supply terminal in the corresponding interface to output current with first voltage;
the second controller measures a second voltage at a second power supply terminal in the corresponding interface; and
and outputting the detection result of the cable according to at least the first voltage and the second voltage.
2. The method of claim 1, further comprising:
in response to the first information, the one controller transmits a 1 st second packet to the communication terminal in the corresponding interface;
in response to the ith second data packet from the communication terminal in the corresponding interface, the other controller sends second information corresponding to the ith second data packet to the one controller through the bus, wherein i is an integer greater than or equal to 1;
and responding to the second information corresponding to the ith second data packet, and sending the (i + 1) th second data packet to the communication terminal in the corresponding interface by the controller.
3. The method of claim 2, wherein the one controller enters a standby mode in case the first information is not received within a first time interval from the transmission of the first data packet or the second information corresponding to the ith data packet is not received within a second time interval from the transmission of the ith second data packet.
4. The method of claim 2, wherein the first information, the ith second packet, and the second information corresponding to the ith second packet are the first packet.
5. The method according to claim 1, wherein the one controller transmits the first packet to a communication terminal in the corresponding interface in a case where the detection request is received, the corresponding interface is not connected with a load, and the cable is connected with the corresponding interface.
6. The method of claim 5, further comprising:
and the other controller sends the detection request to the one controller through the bus under the condition that the corresponding interface is not connected with a load and the cable is connected with the corresponding interface.
7. The method of claim 6, wherein the other controller repeatedly sends the detection request to the one controller over the bus at a third time interval before receiving the first data packet.
8. The method of claim 5, wherein the detection request is sent in response to a user operating a manipulation component of the charger.
9. The method of claim 1, further comprising:
after outputting the detection result, the first controller controls the first power supply terminal to stop outputting the current.
10. The method of claim 1, further comprising:
before the first power supply terminal outputs the current, the second controller controls a switch connected with the second power supply terminal to be closed so that the second power supply terminal is connected with the discharge terminal;
after outputting the detection result, the second controller controls the switch to be turned off so that the second power supply terminal is disconnected from the discharge terminal.
11. The method of any of claims 1-10, wherein outputting the detection of the cable based on at least the first voltage and the second voltage comprises:
calculating a difference between the first voltage and the second voltage;
and determining the resistance of the cable according to the current and the difference value so as to output the detection result of the cable.
12. The method of any of claims 1-10, wherein the first controller and the second controller are both charging PD controllers;
the interfaces corresponding to the first controller and the second controller are Universal Serial Bus (USB) class C interfaces.
13. The method of any of claims 1-10, wherein the first data packet carries information indicative of the magnitude of the first voltage and the current.
14. A charger comprising two controllers and respective interfaces for the two controllers, the two controllers comprising a first controller and a second controller connected via a bus, wherein:
one of the two controllers is configured to transmit a first packet to a communication terminal in the corresponding interface;
the other of the two controllers is configured to transmit first information to the one controller via the bus in response to the first packet;
the first controller is further configured to control the first power supply terminal in the corresponding interface to output a current having a first voltage after the first information is transmitted;
the second controller is further configured to measure a second voltage at a second power supply terminal in the corresponding interface;
at least one of the two controllers is further configured to output a detection result of the cable at least according to the first voltage and the second voltage.
15. The charger of claim 14, wherein:
the one controller is further configured to transmit a 1 st second packet to the communication terminal in the corresponding interface in response to the first information; transmitting an i +1 th second packet to a communication terminal in a corresponding interface in response to corresponding second information transmitted by the another controller receiving an i-th second packet, where i is an integer greater than or equal to 1;
the other controller is further configured to transmit second information corresponding to the ith second packet to the one controller via the bus in response to the ith second packet from the communication terminal in the corresponding interface.
16. The charger of claim 15, wherein the one controller is further configured to enter a standby mode if the first information is not received within a first time interval from the transmission of the first data packet or the second information corresponding to the ith data packet is not received within a second time interval from the transmission of the ith second data packet.
17. The charger of claim 15, wherein the first information, the ith second packet, and the second information corresponding to the ith second packet are the first packet.
18. The charger of claim 14, wherein the one controller is configured to send the first data packet to a communication terminal in the corresponding interface if a detection request is received, a load is not connected to the corresponding interface, and the cable is connected to the corresponding interface.
19. The charger of claim 18, wherein the other controller is further configured to send the detection request to the one controller via a bus if a load is not connected to the corresponding interface and the cable is connected to the corresponding interface.
20. The charger of claim 19, wherein the other controller is configured to repeatedly send the detection request to the one controller via the bus at a third time interval before receiving the first data packet.
21. The charger of claim 18, further comprising:
a manipulation member;
wherein the detection request is transmitted in response to an operation of the manipulating part by a user.
22. The charger of claim 14, wherein the first controller is further configured to control the first power terminal to stop outputting the current after outputting the detection result.
23. The charger of claim 14, further comprising:
a switch connected to the second power supply terminal;
wherein the second controller is further configured to control the switch to close so that the second power supply terminal is connected with the discharge terminal before the first power supply terminal outputs the current; after the detection result is output, the switch is controlled to be turned off so that the second power supply terminal is disconnected from the discharge terminal.
24. The charger of any one of claims 14-23, wherein the at least one controller is configured to calculate a difference between the first voltage and the second voltage; and determining the resistance of the cable according to the current and the difference value so as to output the detection result of the cable.
25. The charger of claim 24, further comprising:
a selector switch having a plurality of shift positions;
wherein the at least one controller is further configured to determine a corresponding threshold value in dependence on the current gear of the selector switch; comparing the resistance with the threshold value to output a detection result of the cable.
26. The charger of any one of claims 14-23, wherein the first controller and the second controller are both charging PD controllers;
the interfaces corresponding to the first controller and the second controller are Universal Serial Bus (USB) class C interfaces.
27. The charger of any one of claims 14-23, wherein the first data packet carries information indicative of the magnitude of the first voltage and the current.
28. A detection method based on a charger, wherein the charger comprises a first controller, a second controller connected with the first controller through a bus, an interface corresponding to the first controller and an interface corresponding to the second controller, and the method comprises the following steps:
the first controller sends a first data packet to a communication terminal in a corresponding interface;
after receiving first information sent by the second controller via the bus in response to the first data packet, the first controller controls the first power terminal in the corresponding interface to output a current having a first voltage so that the second controller measures a second voltage at the second power terminal in the corresponding interface;
the first controller outputs a detection result of the cable at least according to the first voltage and the second voltage.
29. A detection method based on a charger, wherein the charger comprises a first controller, a second controller connected with the first controller through a bus, an interface corresponding to the first controller and an interface corresponding to the second controller, and the method comprises the following steps:
in response to a first packet from a communication terminal in a corresponding interface, the first controller sends first information to the second controller via the bus;
after the second controller receives the first information, the first controller controls the first power terminal in the corresponding interface to output a current with a first voltage so that the second controller measures a second voltage at the second power terminal in the corresponding interface;
the first controller outputs a detection result of the cable at least according to the first voltage and the second voltage.
30. A detection method based on a charger, wherein the charger comprises a first controller, a second controller connected with the first controller through a bus, an interface corresponding to the first controller and an interface corresponding to the second controller, and the method comprises the following steps:
the second controller sends a first data packet to the communication terminal in the corresponding interface, so that the first controller controls the first power terminal in the corresponding interface to output current with the first voltage after the second controller receives first information sent by the first controller through the bus in response to the first data packet;
the second controller measures a second voltage at a second power supply terminal in the corresponding interface; and
the second controller outputs a detection result of the cable at least according to the first voltage and the second voltage.
31. A detection method based on a charger, wherein the charger comprises a first controller, a second controller connected with the first controller through a bus, an interface corresponding to the first controller and an interface corresponding to the second controller, and the method comprises the following steps:
in response to a first packet from a communication terminal in the corresponding interface, the second controller sends first information to the first controller via the bus so that the first controller controls a first power supply terminal in the corresponding interface to output a current having a first voltage;
the second controller measures a second voltage at a second power supply terminal in the corresponding interface;
the second controller outputs a detection result of the cable at least according to the first voltage and the second voltage.
32. A controller is used as a first controller in a charger, and the charger further comprises a second controller connected with the first controller through a bus, an interface corresponding to the first controller and an interface corresponding to the second controller;
the first controller includes:
a transmitting module configured to transmit a first packet to a communication terminal in a corresponding interface;
a control module configured to control a first power terminal in a corresponding interface to output a current having a first voltage after receiving first information transmitted by a second controller via a bus in response to the first data packet, so that the second controller measures a second voltage at a second power terminal in the corresponding interface;
an output module configured to output a detection result of the cable according to at least the first voltage and the second voltage.
33. A controller is used as a first controller in a charger, and the charger further comprises a second controller connected with the first controller through a bus, an interface corresponding to the first controller and an interface corresponding to the second controller;
the first controller includes:
a transmission module configured to transmit first information to the second controller via the bus in response to a first packet from the communication terminal in the corresponding interface;
a control module configured to control a first power terminal in a corresponding interface to output a current having a first voltage after a second controller receives the first information so that the second controller measures a second voltage at a second power terminal in the corresponding interface;
an output module configured to output a detection result of the cable according to at least the first voltage and the second voltage.
34. A controller is used as a first controller in a charger, and the charger further comprises a second controller connected with the first controller through a bus, an interface corresponding to the first controller and an interface corresponding to the second controller;
the first controller includes:
a memory; and
a processor coupled to the memory configured to perform the charger-based detection method of claim 28 or 29 based on instructions stored in the memory.
35. A controller is used as a second controller in a charger, and the charger further comprises a first controller connected with the second controller through a bus, an interface corresponding to the first controller and an interface corresponding to the second controller;
the second controller includes:
a transmitting module configured to transmit a first data packet to a communication terminal in a corresponding interface so that a first controller controls a first power terminal in the corresponding interface to output a current having a first voltage after a second controller receives first information that the first controller transmits via a bus in response to the first data packet;
a measurement module configured to measure a second voltage at a second power supply terminal in a corresponding interface; and
an output module configured to output a detection result of the cable according to at least the first voltage and the second voltage.
36. A controller is used as a second controller in a charger, and the charger further comprises a first controller connected with the second controller through a bus, an interface corresponding to the first controller and an interface corresponding to the second controller;
the second controller includes:
a transmitting module configured to transmit first information to the first controller via the bus in response to a first packet from the communication terminal in the corresponding interface so that the first controller controls the first power supply terminal in the corresponding interface to output a current having a first voltage;
a measurement module configured to measure a second voltage at a second power supply terminal in a corresponding interface;
an output module configured to output a detection result of the cable according to at least the first voltage and the second voltage.
37. A controller is used as a second controller in a charger, and the charger further comprises a first controller connected with the second controller through a bus, an interface corresponding to the first controller and an interface corresponding to the second controller;
the second controller includes:
a memory; and
a processor coupled to the memory configured to perform the charger-based detection method of claim 30 or 31 based on instructions stored in the memory.
CN202111469787.2A 2021-12-03 2021-12-03 Detection method based on charger, charger and controller Active CN114156985B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111469787.2A CN114156985B (en) 2021-12-03 2021-12-03 Detection method based on charger, charger and controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111469787.2A CN114156985B (en) 2021-12-03 2021-12-03 Detection method based on charger, charger and controller

Publications (2)

Publication Number Publication Date
CN114156985A true CN114156985A (en) 2022-03-08
CN114156985B CN114156985B (en) 2022-07-22

Family

ID=80452333

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111469787.2A Active CN114156985B (en) 2021-12-03 2021-12-03 Detection method based on charger, charger and controller

Country Status (1)

Country Link
CN (1) CN114156985B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1962452A1 (en) * 2007-02-22 2008-08-27 Omron Europe B.V. A method, a system, a bus master module and a test module for testing the termination of a differential serial communication bus
US20140340097A1 (en) * 2013-05-20 2014-11-20 Lsis Co., Ltd. Method of detecting state of power cable in inverter system
CN104459386A (en) * 2014-11-24 2015-03-25 东莞理工学院 Tester for USB data line
JP2017009548A (en) * 2015-06-26 2017-01-12 三菱電機株式会社 Abnormality detection system, and abnormality detection method
CN108767919A (en) * 2018-05-25 2018-11-06 维沃移动通信有限公司 A kind of charging unit, terminal device and charging method
CN109856456A (en) * 2018-12-07 2019-06-07 维沃移动通信有限公司 A kind of method, electronic equipment, power supply adaptor and system measuring impedance
JP2019138498A (en) * 2018-02-07 2019-08-22 三菱電機株式会社 Inspection device and method
US20200091758A1 (en) * 2018-09-18 2020-03-19 Leviton Manufacturing Company, Inc. Systems and methods for universal serial bus (usb) power delivery with multiple charging ports
CN112395237A (en) * 2019-08-19 2021-02-23 广州汽车集团股份有限公司 Method and system for communication between at least two controllers
CN112630533A (en) * 2020-11-19 2021-04-09 上海电机学院 Power cable core detection device and method thereof

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1962452A1 (en) * 2007-02-22 2008-08-27 Omron Europe B.V. A method, a system, a bus master module and a test module for testing the termination of a differential serial communication bus
US20140340097A1 (en) * 2013-05-20 2014-11-20 Lsis Co., Ltd. Method of detecting state of power cable in inverter system
CN104459386A (en) * 2014-11-24 2015-03-25 东莞理工学院 Tester for USB data line
JP2017009548A (en) * 2015-06-26 2017-01-12 三菱電機株式会社 Abnormality detection system, and abnormality detection method
JP2019138498A (en) * 2018-02-07 2019-08-22 三菱電機株式会社 Inspection device and method
CN108767919A (en) * 2018-05-25 2018-11-06 维沃移动通信有限公司 A kind of charging unit, terminal device and charging method
US20200091758A1 (en) * 2018-09-18 2020-03-19 Leviton Manufacturing Company, Inc. Systems and methods for universal serial bus (usb) power delivery with multiple charging ports
CN109856456A (en) * 2018-12-07 2019-06-07 维沃移动通信有限公司 A kind of method, electronic equipment, power supply adaptor and system measuring impedance
CN112395237A (en) * 2019-08-19 2021-02-23 广州汽车集团股份有限公司 Method and system for communication between at least two controllers
CN112630533A (en) * 2020-11-19 2021-04-09 上海电机学院 Power cable core detection device and method thereof

Also Published As

Publication number Publication date
CN114156985B (en) 2022-07-22

Similar Documents

Publication Publication Date Title
JP5388484B2 (en) Apparatus and method for detecting power supply
WO2022012488A1 (en) Vehicle detection method and apparatus, and detection device
CN105789991A (en) Concentrator with combined power supply
CN102975627B (en) Battery management system and electric vehicle
TW201234184A (en) Adaptive USB charging method and system
CN103457458A (en) Current switching control device and electronic device
JP7118071B2 (en) BATTERY LEAKAGE CURRENT INSPECTION METHOD, APPARATUS AND CIRCUIT
KR20090021518A (en) Apparatus and method for multi-charging battery
TW201201477A (en) Charger
CN109494822B (en) Terminal equipment, charger, charging system and charging method
CN111856256A (en) Quick charging equipment test system and test method thereof
CN105098890A (en) Charging data line and charger
CN114567054A (en) Control method and device and electronic equipment
CN114156985B (en) Detection method based on charger, charger and controller
CN104569673A (en) Test circuit, method and device
KR20140008784A (en) Battery sharing apparatus
CN101286648A (en) Battery charging apparatus, control method thereof, and battery charging control apparatus
CN103001261B (en) Universal charger with USB (universal serial bus)
WO2011158310A1 (en) Communication apparatus
US20170205862A1 (en) Low-power usb host supporting a high-power usb peripheral device and methods thereof
US11431138B2 (en) Battery connector adapter
CN204858641U (en) Charger data line and charger
TWI486827B (en) Mouse device
JP2013223269A (en) Chargeable mobile device
CN101677187A (en) Cell system, control method thereof and charger for cell system

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