CN110417069B - Charging device, USB cable and charging system - Google Patents

Charging device, USB cable and charging system Download PDF

Info

Publication number
CN110417069B
CN110417069B CN201810401458.6A CN201810401458A CN110417069B CN 110417069 B CN110417069 B CN 110417069B CN 201810401458 A CN201810401458 A CN 201810401458A CN 110417069 B CN110417069 B CN 110417069B
Authority
CN
China
Prior art keywords
resistor
usb cable
usb
resistance value
voltage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810401458.6A
Other languages
Chinese (zh)
Other versions
CN110417069A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201810401458.6A priority Critical patent/CN110417069B/en
Priority to PCT/CN2019/084708 priority patent/WO2019206317A1/en
Publication of CN110417069A publication Critical patent/CN110417069A/en
Application granted granted Critical
Publication of CN110417069B publication Critical patent/CN110417069B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R13/00Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
    • H01R13/66Structural association with built-in electrical component
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R13/00Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
    • H01R13/66Structural association with built-in electrical component
    • H01R13/665Structural association with built-in electrical component with built-in electronic circuit
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R31/00Coupling parts supported only by co-operation with counterpart
    • H01R31/06Intermediate parts for linking two coupling parts, e.g. adapter
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R31/00Coupling parts supported only by co-operation with counterpart
    • H01R31/06Intermediate parts for linking two coupling parts, e.g. adapter
    • H01R31/065Intermediate parts for linking two coupling parts, e.g. adapter with built-in electric apparatus
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The application provides a charging device, a USB cable and a charging system. The charging device includes: the USB cable detection device comprises a detection circuit, a Universal Serial Bus (USB) interface and a processor, wherein the USB interface is used for connecting a USB cable, a circuit of a signal channel of the USB cable comprises a first resistor, and the resistance value of the first resistor is used for identifying the attribute of the USB cable; the detection circuit is used for detecting the first resistor and reporting a detection result to the processor, the first end of the detection circuit is connected with the first resistor through the USB interface, the second end of the detection circuit is connected with the power supply of the charging equipment, and the processor is used for determining the resistance value of the first resistor according to the detection result of the first resistor; and determining the attribute of the USB cable according to the resistance value of the first resistor. The application provides a charging equipment, through the resistance that detects first resistance in the USB cable, confirms the attribute of USB cable. The safety when utilizing the USB cable to charge terminal equipment is improved.

Description

Charging device, USB cable and charging system
Technical Field
The present application relates to the field of circuits, and in particular, to a charging device, a USB cable, and a charging system in the field of circuits.
Background
With the development of terminal product market and consumer products in recent years, the battery capacity of the terminal products is larger and larger, and the charging current is also larger and larger. This has caused more and more market users to reflect safety problems such as cell-phone burns out and the cable burns out. Most of the reasons are that the Universal Serial Bus (USB) cable used by the user is a non-standard cable whose quality cannot be guaranteed or whose specification does not meet the charging requirement, which may cause serious damage to the user's personal and property. At present, the safety problem specifications of the high-end markets of Japan and Europe and America are very strict, some countries have clear legal requirements, and the fault reaching a certain level will face all recalls of products and severe penalties, so that the solution of the safety problem of charging is more and more urgent.
The scheme is that a chip is packaged into the USB Cable, and the USB TYPE-C active Cable of which the E-Marker chip is packaged in the Cable is identified by reading Identity (ID) information in the chip, and a downlink Port (DFP) and an uplink Port (UFP) of the Cable can read the attribute of the USB Cable by using a Power Delivery (PD) protocol, for example, information such as power delivery capability, data delivery capability and ID of the USB Cable can be acquired. Therefore, the charging current and the like can be adjusted according to the attribute of the USB cable, and the safety problems of burning of the USB cable, cable burnout and the like are avoided.
However, the USB cable using the chip-in-package method for identifying the attribute of the USB cable is expensive to manufacture, and is difficult to mass-produce. Therefore, how to ensure the safety of the user when using the USB cable becomes an urgent problem to be solved.
Disclosure of Invention
The application provides a charging device, a USB cable and a charging system. The attribute of the USB cable can be determined by detecting the resistance value of the first resistor in the USB cable. Therefore, the service performance of the USB cable can be determined, the safety of charging the terminal equipment by using the USB cable is improved, and the safety of charging a user is improved.
In a first aspect, a charging device is provided, which includes a detection circuit, a USB interface and a processor, where the USB interface is used to connect a USB cable, a circuit of a signal channel of the USB cable includes a first resistor, and a resistance value of the first resistor is used to identify an attribute of the USB cable; the detection circuit is used for detecting the first resistor and reporting a detection result to the processor, a first end of the detection circuit is connected with the first resistor through the USB interface, a second end of the detection circuit is connected with a power supply of the charging equipment, and the detection circuit obtains detection voltage from the power supply; the processor is configured to: acquiring a detection result of the detection circuit; determining the resistance value of the first resistor according to the detection result of the first resistor; and determining the attribute of the USB cable according to the resistance value of the first resistor.
The charging device provided by the first aspect may detect a resistance value of the first resistor in the USB cable through the detection circuit, and determine the attribute of the USB cable. So as to improve the security of this USB cable when follow-up charging terminal equipment through this USB cable, the security when improving the user and charging.
In one possible implementation manner of the first aspect, the processor is further configured to: and controlling the output current of the charging equipment to the USB cable according to the attribute of the USB cable.
In a possible implementation manner of the first aspect, the detection circuit includes an analog-to-digital converter ADC and a second resistor, two ends of the second resistor are respectively connected to the power supply and the first resistor, the ADC is connected to a circuit between the second resistor and the first resistor, and is configured to acquire voltages at two ends of the first resistor, and the processor acquires a detection result, where the detection result is a voltage acquired by the ADC.
In one possible implementation form of the first aspect, the processor is configured to: and determining the resistance value of the first resistor according to the voltage acquired by the ADC and a first corresponding relation, wherein the first corresponding relation is a preset corresponding relation between the voltage and the resistance value of the first resistor.
In a possible implementation manner of the first aspect, the detection circuit includes an ammeter, a first end of the ammeter is connected to the first resistor, a second end of the ammeter is connected to the power supply, and the processor obtains a detection result of the ammeter, where the detection result is a current value detected by the ammeter.
In one possible implementation form of the first aspect, the processor is configured to: and determining the resistance of the first resistor according to the current value and the detection voltage.
In a possible implementation manner of the first aspect, the detection circuit includes a voltage comparator and a reference circuit, the reference circuit includes an adjustable resistor, a first end of the adjustable resistor is connected to the power supply, a second end of the adjustable resistor is connected to a first input end of the voltage comparator, an input voltage of a second input end of the voltage comparator is a voltage across the first resistor, the voltage comparator is configured to compare the voltage across the first resistor and the voltage of the reference circuit, and the processor is configured to control a resistance value of the adjustable resistor and obtain an output result of the voltage comparator from an output end of the voltage comparator.
In one possible implementation form of the first aspect, the processor is configured to: when the output result of the voltage comparator changes, the resistance value of the adjustable resistor is determined when the output result of the voltage comparator changes; and determining the resistance value of the first resistor according to the resistance value of the adjustable resistor and a second corresponding relation when the output result of the voltage comparator changes, wherein the second corresponding relation is the corresponding relation between a preset resistance value and the resistance value of the first resistor.
In one possible implementation manner of the first aspect, the attributes of the USB cable include: at least one of the USB cable data transfer capability and the USB cable current transfer capability.
In a second aspect, a USB cable is provided, where the USB cable includes a USB plug, a USB socket, and a cable, and a circuit of a signal path of the USB cable includes a first resistor, the first resistor is disposed at a pin of the USB plug or the USB socket, and a resistance of the first resistor is used to identify an attribute of the USB cable.
According to the USB cable provided by the second aspect, the first resistor is arranged in the USB cable, the first resistor is used for uniquely identifying the identity of the USB cable, namely the resistance value of the first resistor is used for identifying the attribute of the USB cable, and the attribute of the USB cable is identified through the first resistor of the USB cable, so that the safety of a user when the user charges the USB cable can be improved on the basis of reducing the manufacturing cost of the USB cable.
In one possible implementation manner of the second aspect, the signal channel is a configuration channel CC.
In one possible implementation manner of the second aspect, the properties of the USB cable include: at least one of a data transmission capability of the USB cable and a current transmission capability of the USB cable.
In a third aspect, a charging system is provided, which includes the charging device in the first aspect or any one of the possible implementation manners of the first aspect, and the USB cable in the second aspect or any one of the possible implementation manners of the second aspect.
The charging system provided by the third aspect may adjust the magnitude of the charging current when the terminal device is charged according to the cable attribute of the USB. The hidden danger such as USB cable burning that the charging current arouses is avoided taking place, improves the security. The current transmission capacity of the USB cable can be fully utilized, the service efficiency of the USB cable is improved, and the user experience is improved.
Drawings
Fig. 1 is a schematic pin definition diagram of a USB Type-C interface according to an embodiment of the present application.
FIG. 2 is a schematic diagram of the circuit configuration on pin CC1/CC2 of the TYPE-C protocol.
Fig. 3 is a schematic block diagram of the structure of a charging apparatus of an embodiment of the present application.
Fig. 4 is a schematic block diagram of the structures of a charging device and a USB cable according to an embodiment of the present application.
FIG. 5 is a schematic diagram of a detection circuit configuration according to an embodiment of the present application.
Fig. 6 is a schematic diagram of a detection circuit structure according to another embodiment of the present application.
Fig. 7 is a schematic diagram of a detection circuit structure according to another embodiment of the present application.
Fig. 8 is a diagram of a typical application scenario of the present application.
Fig. 9 is a schematic flow chart of charging according to an embodiment of the present application.
Detailed Description
The technical solution in the present application will be described below with reference to the accompanying drawings.
Terminal equipment in the embodiments of the present application may refer to user equipment, access terminals, subscriber units, subscriber stations, mobile stations, remote terminals, mobile devices, user terminals, wireless communication devices, user agents, or user devices. The terminal device may also be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a handheld device with Wireless communication function, a computing device or other processing device connected to a Wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a future 5G Network or a terminal device in a future evolved Public Land Mobile Network (PLMN), and the like, and the embodiments of the present application are not limited thereto.
With the development of terminal product market and consumer products in recent years, the battery capacity of terminal equipment is increasing, and the charging current is also increasing. This has caused an increasing number of market users to reflect the safety problems of burning and cable burnout when the terminal device (e.g., mobile phone) is charged by using the USB cable. Most of the reasons are that the USB cable used in charging is a non-standard cable whose quality cannot be guaranteed or whose specification does not meet the charging requirement, which may cause serious damage to the person and property of the user. At present, the safety problem specifications of the high-end markets of Japan and Europe and America are very strict, some countries have clear legal requirements, and the fault reaching a certain level will face all recalls of products and severe penalties, so that the solution of the safety problem of charging is more and more urgent.
Currently, the method for identifying the identity of a USB Cable is to define an electronic Cable mark (electronic Marked Cable) to identify the Cable in a USB TYPE-C protocol. According to the scheme, one chip is packaged into a USB cable, the USB Type-C cable with the E-Marker chip is packaged, and the attributes of the USB cable can be read by a downlink port (main equipment) and an uplink port (slave equipment) through a PD protocol. For example, the maximum current that can be carried by the USB cable or data transmission capability information, etc. is obtained. According to the attribute of the USB cable, charging current and the like are adjusted, so that the safety of a user in use is ensured. For example, suppose that a user is charging a mobile phone with a power bank, the power bank is connected to the mobile phone through a USB cable, and the power bank detects a chip inside the USB cable and identifies the identity of the USB cable by reading ID information inside the chip. And acquiring information such as power transmission capacity, data transmission capacity, ID and the like of the USB cable. Thereby can charge precious output's charging current etc. according to the attribute adjustment of this USB cable, avoid safety problems such as USB cable scorching and cable burnout.
However, the USB cable is expensive to manufacture by using a chip-in-package method to identify the attribute of the USB cable, and is difficult to mass-produce. Therefore, how to ensure the security of the user when using the USB cable without the chip becomes an urgent problem to be solved.
Based on the above problem, the application provides a USB cable and battery charging outfit, can effectual solution user when utilizing the USB cable to charge the security problem.
The application provides a USB cable, this USB cable includes USB plug, USB socket and cable, and including first resistance in the circuit that the signal channel of this USB cable leads to, this first resistance setting is in the pin department of this USB plug or USB socket, and the resistance of this first resistance is used for the attribute of this USB cable of sign.
The utility model provides a USB cable, through set up first resistance in the USB cable, this first resistance is used for the only identity of this USB cable of sign, and the resistance of this first resistance is used for the attribute of this USB cable promptly, for example, can use first resistance to mark the current transmission ability and the data transmission ability etc. of this USB cable. Namely, the first resistor is used for distinguishing different USB cables. The attribute of the USB cable is identified through the first resistor of the USB cable, so that the safety of a user when the user charges the USB cable can be improved on the basis of reducing the manufacturing cost of the USB cable.
Specifically, the USB cable includes a USB plug, a USB socket, and a cable, and the USB plug may be a USB plug of a standard TYPE-C interface, a USB plug of a TYPE-a or TYPE-B interface, or the like. The USB socket may also be a USB socket of a standard TYPE-C interface, or may also be a USB socket of a TYPE-a or TYPE-B interface, etc. The circuit of the signal channel of the USB cable comprises a first resistor, and the first resistor is arranged at a pin of the USB plug or the USB socket. The resistance value of the first resistor is used for identifying the attribute of the USB cable. The pin may be any one of a USB plug or a USB socket. For example, the pin may be a positive voltage data D +, a negative voltage data D-, a null ID. Or any pin of a positive receiving 1 differential bus RX1+, a negative receiving 1 differential bus RX1-, a positive receiving 2 differential bus RX2+, a negative receiving 2 differential bus RX2-, a positive sending 1 differential bus TX1+, a negative sending 1 differential bus TX1-, a positive sending 2 differential bus TX2+, a negative sending 2 differential bus TX2-, a 1 st side band signal line SBU1, a 2 nd side band signal line SBU2, a 1 st Configuration Channel (CC) signal line CC1 and a 2 nd configuration channel signal line CC2 of the Typc-C interface defined by the USB3.1 specification.
Because the USBType-C interface has the pin of longitudinal symmetry, can realize the function of positive and negative interpolation, consequently more and more terminal equipment uses the plug or the socket of USBType-C interface form below the USBType-C interface as the explanation to each pin of example.
FIG. 1 is a schematic diagram of the various pins in a USB Type-C interface. The function and supported protocol of each pin in the USB Type-C interface are as follows:
TX/RX: also called USB3.1 data line. There are two sets of differential signals for USB3.1 data transmission.
CC1/CC 2: the USB Type-C interface comprises 2 CC signal pins, namely a CC1 pin and a CC2 pin, is mainly used for function negotiation, and is two key pins in the Type-C interface. Signals on pin CC1 and pin CC2 may determine the interface insertion direction and may be used to negotiate power functions, alternate modes, and peripheral modes on the interface.
D +/D-: also called USB2.0 data line, is primarily intended to be compatible with the previous USB2.0 standard. There are two sets of differential signals for USB2.0 data transmission.
SBU1/SBU 2: the reserved pin in the USB Type-C interface has different purposes in different application scenarios, for example, can be used as an audio transmission channel or a microphone transmission channel.
GND: for grounding cables.
VBUS: for cable bus power.
The first resistor can be arranged on any pin of a USB plug or a USB socket with a USB Type-C interface. The resistance value of the first resistor is used for identifying the attribute of the USB cable.
For example. Suppose a manufacturer produces three sizes of USB cables. Respectively a USB cable A, a USB cable B and a USB cable C. The current transfer capability of each specification of USB cable is different. Assume that the current carrying capacity of the USB cable a is 1A, the current carrying capacity of the USB cable B is 2A, and the current carrying capacity of the USB cable C is 3A. Therefore, resistors of different resistance values can be provided in the three types of USB cables, respectively. Assume that the resistance of the first resistor in the USB cable a is 10K Ω, the resistance of the first resistor in the USB cable B is 15K Ω, and the resistance of the first resistor in the USB cable is 20K Ω. When a user charges the terminal device by using the USB cables of different specifications, the charging device (e.g., a charger) may detect the resistance of the first resistor, determine the resistance of the first resistor, and adjust the current when the terminal device is charged by using the USB cable according to information such as the current transmission capability of the USB cable corresponding to the resistance. Potential safety hazards caused by burning of the USB cable and the like during charging are avoided.
It should be understood that the interface of the USB plug or the USB socket may be a standard TYPE-C interface, a TYPE-a or TYPE-B interface, etc. The embodiments of the present application are not limited thereto.
Optionally, the first resistor is disposed on a configuration channel CC pin of the USB plug or the USB socket.
FIG. 2 is a schematic diagram of the circuit configuration at pin CC1/CC2 as defined by the TYPE-C protocol. The circuit in the dotted line portion in fig. 2 is in the USB cable, and the solid line portion is located in the downstream port, which may be understood as the USB interface of the main charging device. In the figure, the pin CC1 is connected with the resistors Rp and Rd, equipment connected with the two ends of the USB cable can determine master and slave equipment by detecting the Rd, the resistor Rp on the pin CC1 is used for forming a detection circuit, the pin CC2 is connected with the resistors Rp and Ra, the equipment connected with the two ends of the USB cable can pass, and the circuit on the pin CC2 is debugged and the like. For a standard TYPE-C interface USB cable, the resistance of resistor Ra at pin CC2 is fixed. In the present application, the resistance value of the resistor Ra may be reset, that is, the resistor Ra may be replaced with the first resistor. As the resistance values of the first resistors are different for the USB cables with different specifications, namely different first resistors represent different USB cable specifications and are used for identifying the current transmission capability and the like of the USB cables with different specifications.
It should be understood that in the embodiments of the present application, the first resistance setting may also be provided on other pins of the USB plug or the USB socket. For example, the connection is provided on the SBU1/SBU2 pins, etc. The embodiments of the present application are not limited thereto.
Optionally, the attributes of the USB cable include: at least one of the USB cable data transfer capability and the USB cable current transfer capability.
Particularly, because set up the first resistance that has this USB cable identity of ability sign in the USB cable, to the USB cable of different specifications, the different USB cable attribute that the resistance of different first resistance corresponds, this USB cable attribute can include the data transmission ability, the current transmission ability etc. of USB cable. For example, assuming that the first resistance of a USB cable of a certain specification is 20K Ω, and the current transmission capability of the USB cable is 1A, that is, as long as it is detected that the value of the first resistance in the USB cable is 20K Ω, the current transmission capability of the USB cable can be determined to be 1A according to the resistance value of the first resistance, and information such as the data transmission capability of the USB cable, the ID of the USB cable, and the manufacturer can also be determined according to the resistance value of the first resistance.
It should be understood that in the embodiment of the present application, the attribute of the USB cable may further include other performance information of the USB cable, such as a maximum carrying current, a maximum carrying voltage, a manufacturer, and the like. The embodiments of the present application are not limited thereto.
The present application also provides a charging apparatus, as shown in fig. 3, the charging apparatus 100 includes:
the charging device comprises a detection circuit 110, a USB interface 130 and a processor 130,
the USB interface 120 is used to connect a USB cable, a circuit of a signal channel of the USB cable includes a first resistor, and a resistance of the first resistor is used to identify an attribute of the USB cable;
the detection circuit 110 is configured to detect the first resistor and report a detection result to the processor 130, a first end of the detection circuit is connected to the first resistor through the USB interface 120, a second end of the detection circuit 110 is connected to the power source 140 of the charging device, and the detection circuit obtains a detection voltage from the power source 140;
the processor 130 is configured to: acquiring a detection result of the detection circuit;
determining the resistance value of the first resistor according to the detection result of the first resistor;
and determining the attribute of the USB cable according to the resistance value of the first resistor.
Specifically, as shown in fig. 3, the charging device 100 may be a terminal device having a power supply capability, for example, a Mobile wireless interface (MIFI), a Mobile wireless router (MIFI), or the like. The charging device 100 includes a detection circuit 110, a USB interface 120, and a processor 130. The USB interface 120 may be a TYPE-C interface, and the specific structure may refer to that shown in fig. 1. Alternatively, the TYPE-B interface or the TYPE-a interface may be used, and the embodiments of the present application are not limited herein.
The USB interface 120 is used to connect a USB cable, and a circuit of a signal channel of the USB cable includes a first resistor, and a resistance of the first resistor is used to identify an attribute of the USB cable. The USB cable may be any one of the USB cables provided in the embodiments of the present application. For the description of the USB cable, reference may be made to the above description of the USB cable provided in this application, which is not repeated herein. The detection circuit 110 is configured to detect the first resistor and report a detection result to the processor 130, a first end of the detection circuit is configured to be connected to the first resistor through the USB interface 120, a second end of the detection circuit 110 is connected to a power source 140 of the charging device, and the power source 140 is configured to provide a detection voltage to the detection circuit. I.e., the detection circuit may obtain a detection voltage from the power supply 140. The processor 130 may be connected to the detection circuit 110 by a circuit channel, or may be connected to the detection circuit 110 by a wireless manner, and the processor 130 is configured to obtain a detection result of the detection circuit 110. In fig. 3, the detection circuit 110 and the processor 130 are connected by a dotted line, and the dotted line indicates that the detection circuit 110 and the processor 130 may be physically connected by a circuit or wirelessly connected. I.e., there is no limitation on the form of connection between the detection circuit 110 and the processor 130. The processor 130 determines the resistance value of the first resistor according to the detection result of the first resistor. And determining the attribute of the USB cable according to the resistance value of the first resistor. For example, the ability of the USB cable to carry current or the ability to transmit data, etc. may be determined. So as to adjust the charging current when other terminal equipment is charged through the USB cable subsequently.
Fig. 4 is a schematic diagram of the charging apparatus 100 after being connected to a USB cable. The first end of the detection circuit 110 is connected to the first end of the first resistor through the USB interface 120, and the second end of the first resistor is connected to the ground of the USB cable. The second terminal of the detection circuit 110 is connected to a power source 140 for providing a detection voltage to the detection circuit. The processor 130 is further configured to obtain a detection result of the detection circuit 110. It should be understood that if the first resistor is disposed on the CC pin of the USB cable, the USB interface 120 is connected to the first end of the first resistor through the CC pin, and the second end of the first resistor is grounded through the ground line on the CC pin. If the first resistor is disposed on the other pins of the USB cable, correspondingly, the USB interface 120 is connected to the first end of the first resistor through the other pins of the CC pin, and the second end of the first resistor is grounded through the ground wires of the other pins.
The charging equipment provided by the application can detect the resistance value of the first resistor in the USB cable through the detection circuit, and determine the attribute of the USB cable. For example, the information such as the maximum carrying current and the maximum carrying voltage of the USB cable may be determined, so that the usability of the USB cable may be determined, and therefore, the security of the USB cable may be improved when the terminal device is subsequently charged through the USB cable, and the security of the user during charging may be improved.
It should be understood that the charging device provided by the present application may be any terminal device having a power supply capability, for example, a mobile phone, a computer, a wearable device, etc. The embodiments of the present application are not limited thereto.
It should also be understood that the processor 130 may have different attributes for different models of USB cables according to a correspondence relationship between the resistance value of the first resistor and the attribute of one or more models of USB cables stored in the charging apparatus 100 in advance. For example, the correspondence may be stored in the storage unit of the charging apparatus 100 in the form of a table. For example, the correspondence may be as shown in table 1. And the processor determines the attribute of the USB cable according to the corresponding relation. As the resistance values of the first resistors in the USB cables of the same model are the same, the model, the attribute and the like of the USB cable can be determined according to the value of the first resistor in one USB cable.
TABLE 1
Figure BDA0001645817890000071
It should be understood that table 1 is exemplary only and should not impose any limitations on the embodiments of the present application. The above correspondence relationship may further include correspondence relationships between different resistance values and USB cable attributes. The attributes of the USB cable may also include other content. The embodiments of the present application are not limited thereto.
It should also be understood that, for a charging device and multiple types of USB cables manufactured by the same manufacturer, the charging device 100 may store the resistance values of different first resistors in the multiple types of USB cables and the attributes of different USB cables corresponding to the different resistance values. When the charging device can determine the attribute of the USB cable according to the resistance of the first resistor in the USB cable, it can be determined that the USB cable is produced by the manufacturer.
It should also be understood that when the processor 130 in the charging device cannot determine the resistance value of the first resistor in one of the USB cables according to the detection result of the first resistor in the USB cable, or determine the resistance value of the first resistor in the USB cable but cannot determine the property of the USB cable. It is proved that, in the correspondence between the resistance value of the first resistor of the USB cable and the attribute of the USB cable stored in advance in the charging apparatus 100, there is no data corresponding to the resistance value of the first resistor in the USB cable, that is, the charging apparatus 100 cannot identify the USB cable. The properties of the USB cable cannot be determined.
Optionally, as an embodiment, the processor 130 is configured to:
according to the attribute of the USB cable, the magnitude of the output current of the charging apparatus 100 to the USB cable is controlled.
Specifically, after the charging device 100 determines the attribute of the USB cable, when one end of the USB cable is connected to the charging device and the other end of the USB cable is connected to a device to be charged (for example, a mobile phone), the charging device 100 may control the magnitude of the output current of the charging device 100 to the USB cable, that is, adjust the charging current when the device to be charged is charged according to the attribute of the USB cable, for example, the current transmission capability of the USB cable, so as to avoid the occurrence of hidden troubles such as burning of the USB cable caused by an excessive charging current, thereby improving the safety. The current transmission capability of the USB cable can be fully utilized, for example, the charging current is increased in the bearable range of the USB cable, the use efficiency of the USB cable is improved, and the user experience is improved.
It should be understood that, in the embodiment of the present application, when the processor 130 determines the resistance value of the first resistor in a certain USB cable (taking a second USB cable as an example) according to the detection result of the first resistor in the USB cable, or determines the resistance value of the first resistor in the second USB cable, the property of the second USB cable cannot be determined. For example, a manufacturer produces USB cables with five specifications, which correspond to the resistance values of five different first resistors. And the charging device 100 produced by the manufacturer stores only the attributes of the five types of USB cables corresponding to the resistance values of the five types of first resistors. When the processor 130 detects that neither the resistance of the first resistor in the second USB cable nor the five resistances correspond. That is, the charging apparatus 100 does not store the USB cable attribute corresponding to the first resistance in the second USB cable, it is proved that the second USB cable is not manufactured by the manufacturer, that is, the charging apparatus 100 cannot determine the USB cable attribute. In this case, when the other device is charged by the charging device 100 and the second USB cable, the charging device 100 controls the charging current according to other regulations related to the protocol. For example, the charging current is adjusted to a charging current specified by a standard protocol or to a minimum charging current. The embodiments of the present application are not limited thereto.
Optionally, as an embodiment, the detection circuit 110 includes:
an Analog-to-Digital Converter (ADC) and a second resistor, wherein two ends of the second resistor are respectively connected to the power source 140 and the first resistor, the ADC is connected to a circuit between the second resistor and the first resistor for collecting voltages at two ends of the first resistor, the processor 130 is configured to obtain a detection result, and the detection result is a voltage collected by the ADC
Specifically, as shown in fig. 5, the detection circuit 110 includes an ADC and a second resistor, the ADC is configured to collect a voltage across the first resistor, two ends of the second resistor are respectively configured to be connected to the power supply 140 of the charging device and the first end of the first resistor through the USB interface 120, the ADC is connected to a circuit between the second resistor and the first resistor, and the processor 130 is further configured to obtain a detection result of the ADC, where the detection result is the voltage collected by the ADC. The power supply 140 is used to provide a detection voltage to the detection circuit 110.
After the charging device 100 is connected to the USB cable, the power source 140 is configured to provide a detection voltage to the detection circuit 110, the second resistor is configured to divide the voltage, and the second resistor is a fixed value. Since the second terminal of the first resistor is grounded, the ADC detects the voltage across the first resistor, and the ADC is further configured to report the acquired voltage across the first resistor to the processor 130. Through the detection circuit 110, the ADC can detect the voltage across the first resistor, and the processor 130 can obtain the detection result. And determining the resistance value of the first resistor according to the detection result.
Optionally, as an embodiment, the processor 130 is configured to: the processor is configured to: and determining the resistance value of the first resistor according to the voltage acquired by the ADC and a first corresponding relation, wherein the first corresponding relation is a preset corresponding relation between the voltage and the resistance value of the first resistor.
Specifically, before the charging device 100 detects the resistance value of the first resistor in the USB cable, a correspondence between the resistance value of the first resistor in one or more types of USB cables and the attribute of the USB cable may be preset, and a correspondence between the resistance value of the first resistor and the voltage (i.e., a first correspondence) may be preset. Different models of USB cables have different properties. For example. For a USB cable, the first resistance is a fixed value, while for a charging device, the value of the second resistance in the detection circuit 100 is fixed. Before the charging apparatus 100 leaves the factory, the detection circuit 100 in the charging apparatus 100 described above may be used to detect USB cables having different first resistances, that is, different types of USB cables (USB cables with different attributes). The voltages collected by the ADCs corresponding to the first resistors in the USB cables with different attributes are determined, and the corresponding relation (first corresponding relation) between the voltages collected by the different ADCs and the resistance values of the different first resistors is determined. And storing the correspondence in a storage unit of the charging device. For example, as shown in Table 2,
TABLE 2
Figure BDA0001645817890000081
Figure BDA0001645817890000091
When the charging device 100 is connected to a certain USB cable, the first resistance in the USB cable is detected by the detection unit circuit 100. After acquiring the voltage collected by the ADC, the processor 130 may determine the resistance value of the first resistor according to the voltage collected by the ADC and a pre-stored correspondence, so as to determine the attribute of the first resistor. For example, the voltage collected by the ADC is 55mv, and the processor 130 obtains the resistance value of the first resistor corresponding to 55mv through table lookup, which is 20K Ω. The property of the USB cable can be determined by determining the resistance value of the first resistor.
It should be understood that table 2 is only exemplary and should not impose any limitation on the embodiments of the present application. The correspondence described above may also include further correspondence between voltage and resistance values. The USB cable attributes may also include other content. The embodiments of the present application are not limited thereto.
It should also be understood that when the processor 130 obtains the voltage collected by the ADC and cannot know the resistance value of the first resistor through a table look-up, for example, there is no resistance value of the first resistor corresponding to the voltage collected by the ADC in the table, that is, the attribute of the USB cable cannot be determined, in this case, when the charging device 100 and the USB cable are used to charge other devices, the charging device 100 will control the charging current according to other relevant rules of the protocol. For example, the charging current is adjusted to a charging current specified by a standard protocol or a minimum charging current. The embodiments of the present application are not limited thereto.
Optionally, as an embodiment, the detecting circuit 110 includes an ammeter, a first end of the ammeter is connected to the first resistor, a second end of the ammeter is connected to the power source 140, and the processor obtains a detection result of the ammeter, where the detection result is a current value detected by the ammeter.
Specifically, as shown in fig. 6, the detection circuit 110 includes a current meter, a first end of the current meter is connected to the first resistor, a second end of the current meter is connected to a power source 140 of the charging device, and the power source 140 is configured to provide a detection voltage to the current meter. The processor 130 obtains the detection result of the current meter, which is the current value detected by the current meter.
After the charging device 100 is connected to the USB cable, as shown in fig. 6, the power supply 140 is configured to provide a detection voltage to the first resistor, and since the second end of the first resistor is connected to the ground of the USB cable, the current detected by the current meter is the current flowing through the first resistor. The power source 140, the current meter and the first resistor form a current loop. After the processor 130 obtains the detection result of the current meter, the resistance value of the first resistor can be calculated according to the detection voltage value provided by the power supply 140.
Optionally, as an embodiment, the processor 130 is configured to: and determining the resistance of the first resistor according to the current value and the detection voltage.
Specifically, the processor 130 may calculate a resistance value of the first resistor according to the detection result of the current meter and the detection voltage provided by the power supply 140 of the charging device, and determine the resistance value of the first resistor, so as to determine the attribute of the USB cable by looking up the preset correspondence table between the resistance value of the first resistor and the attribute of the USB cable in the same manner as described above.
It should be understood that when the charging device 100 obtains the resistance value of the first resistor, the USB cable attribute corresponding to the resistance value of the first resistor cannot be obtained through table lookup. In this case, when the other device is charged by the charging device 100 and the USB cable, the charging device 100 controls the charging current according to other regulations related to the protocol. For example, the charging current is adjusted to a charging current specified by a standard protocol or a minimum charging current. The embodiments of the present application are not limited thereto.
Optionally, as an embodiment, the detection circuit 110 includes a voltage comparator and a reference circuit, the reference circuit includes an adjustable resistor, a first end of the adjustable resistor is connected to the power supply 140, a second end of the adjustable resistor is connected to a first input end of the voltage comparator, an input voltage of a second input end of the voltage comparator is a voltage across the first resistor, the voltage comparator is configured to compare the voltage across the first resistor and the voltage of the reference circuit, and the processor 130 is configured to control a resistance of the adjustable resistor and obtain an output result of the voltage comparator from an output end of the voltage comparator.
Specifically, as shown in fig. 7, the detection circuit 110 includes a voltage comparator, which is a circuit that compares an analog voltage signal with a reference voltage, and a reference circuit. The two paths of input of the voltage comparator are analog signals, the output is binary signals 0 or 1, and when the difference value of the two input voltages is increased or decreased and the positive sign and the negative sign are unchanged, the output is kept constant. For example, when the voltage at the "V +" input is greater than the voltage at the "V-" input, the voltage comparator outputs (V)out) Is 0, when the voltage at the "V +" input is less than or equal to the voltage at the "V-" input, the output of the voltage comparator changes (flips), i.e., changes from 0 to 1.
The voltage comparator is used for comparing the voltage at two ends of the first resistor with the voltage of a reference circuit. In FIG. 7, the voltage at the V + terminal is the voltage across the first resistor, and the voltage at the V-terminal is the voltage of the reference circuit. The reference circuit includes an adjustable resistor, the resistance of which is variable. The first terminal of the adjustable resistor is connected to a power supply 140 of the charging device, and the power supply 140 is used for providing a detection voltage for the reference circuit. The power supply 140 of the charging device is also connected to the voltage comparator for supplying power to the voltage comparator. The second terminal of the adjustable resistor is connected to the first input terminal (V-terminal) of the voltage comparator, i.e. to the voltage comparator input terminal V-. Since the second end of the first resistor is connected to the ground of the USB cable, the input voltage of the second input end (V + end) of the comparator is the voltage across the first resistor. The third resistor in the detection circuit 100 is used to divide the voltage of the first resistor, and the resistance of the third resistor is fixed. And a fourth resistor is used for the comparator to form a circuit loop, and the resistance value of the fourth resistor is also fixed. The processor 130 changes the resistance of the adjustable resistor through control, and obtains the output result of the voltage comparator from the output end of the voltage comparator.
After the charging device 100 is connected to the USB cable, the power supply 140 is used to provide voltage to the voltage comparator, the reference circuit and the first resistor. Since the values of the third resistor, the first resistor, and the fourth resistor are fixed for one charging device 100 and one USB cable, the detection voltage supplied to the reference circuit and the first resistor is also fixed. I.e. the input voltage at the V + terminal does not change. Therefore, the processor 130 can control the input voltage of the V-terminal by the resistance value of the adjustable resistor, and then according to the output result of the voltage comparator. The resistance value of the first resistor is determined.
Alternatively, the adjustable resistor may be a resistor array, and the processor 130 may control the resistor array such that the resistor array outputs different resistance values. The adjustable resistor may also be other variable resistance electronic components. The embodiments of the present application are not limited thereto.
Optionally, as an embodiment. The processor 130 is configured to: when the output result of the voltage comparator changes, the resistance value of the adjustable resistor is determined when the output result of the voltage comparator changes;
and determining the resistance value of the first resistor according to the resistance value of the adjustable resistor and a second corresponding relation when the output result of the voltage comparator changes, wherein the second corresponding relation is the corresponding relation between a preset resistance value and the resistance value of the first resistor.
Specifically, before the charging device 100 leaves the factory, the corresponding relationship between the resistance value of the first resistor and the different resistance values of the adjustable resistor in the USB cable of one or more types may be preset. For a USB cable, the first resistor is a fixed value, and for the charging device, the third resistor and the fourth resistor in the detection circuit 100 are also fixed, so before shipping, the charging device 100 can be used to detect USB cables (with different values of the first resistor) with different attributes in advance. Determining a corresponding relation (second corresponding relation) between the first resistor and the adjustable resistor in the USB cables with different attributes, that is, recording the corresponding relation between the resistance of the adjustable resistor and the resistance of the first resistor in the USB cable when the output result of the voltage comparator is inverted in the process of detecting the first resistor in the USB cables with different attributes. And stores USB cable correspondences of different attributes in the charging apparatus 100.
For example, before the factory shipment of the charging device 100, the detection circuit 100 in the charging device 100 is favorable to detect the first resistor in the first USB cable (having the first attribute) in advance, for example, when the value of the adjustable resistor is 44K Ω, the output result of the voltage comparator is inverted, and the resistance value of the first resistor and the resistance value of the adjustable resistor when the output result of the voltage comparator is inverted are recorded. And determines the attributes of the USB cable. And detecting the first resistor in the second USB cable (with the second attribute), for example, when the value of the resistor array is 51K omega, the output result of the voltage comparator is inverted, and recording the resistance value of the first resistor and the resistance value of the adjustable resistor when the output result of the voltage comparator is inverted. And determines the attributes of the USB cable. And detecting the first resistor in the third USB cable (with the third attribute), for example, when the value of the resistor array is 56K omega, the output result of the voltage comparator is inverted, and recording the resistance value of the first resistor and the resistance value of the adjustable resistor when the output result of the voltage comparator is inverted. And determines the attribute of the USB cable and stores the correspondence in the charging apparatus 100. For example, as shown in Table 3,
TABLE 3
Figure BDA0001645817890000111
When the charging device 100 is required to charge a terminal device through a certain USB cable, after the charging device 100 is connected to the USB cable, since the resistance of the first resistor in the USB cable is fixed, the third resistor is also a fixed value, that is, the input voltage at the V + terminal of the voltage comparator is a fixed value. The input voltage of the V-end of the voltage comparator is related to the resistance value of the adjustable resistor, namely the input voltage of the V-end of the voltage comparator is variable. Therefore, the processor 130 changes the input voltage at the V-terminal of the comparator by continuously adjusting the resistance of the adjustable resistor. And obtains the output result of the voltage comparator. When the output result of the voltage comparator is turned over, the input voltage of the V + end and the input voltage of the V-end of the voltage comparator are proved to be the same, the resistance value of the adjustable resistor is determined according to the preset second corresponding relation and the resistance value of the first resistor corresponding to the resistance value of the adjustable resistor when the output result of the voltage comparator is turned over. For example, the charging device 100 detects the first resistance in the USB cable by using the detection circuit 110. For example, the resistance of the adjustable resistor is adjusted, so that the output result of the voltage comparator is inverted. Assuming that the resistance value of the adjustable resistor is 56K Ω when the output result of the voltage comparator is inverted, the corresponding relationship in table 2 can determine that the resistance value of the first resistor in the USB cable is 30K Ω, thereby determining the attribute of the USB cable. After the attribute of the USB cable is determined, when one end of the USB cable is connected to the charging device and the other end of the USB cable is connected to a device to be charged (for example, a mobile phone), the charging device may adjust a charging current for charging the device to be charged according to the attribute of the USB cable, for example, a current transmission capability of the USB cable, so as to avoid a hidden danger such as burning of the USB cable caused by an excessive charging current, and improve safety. The current transmission capability of the USB cable can be fully utilized, for example, the charging current is increased in the bearable range of the USB cable, the use efficiency of the USB cable is improved, and the user experience is improved.
It should be understood that table 3 is only exemplary and should not impose any limitation on the embodiments of the present application. The correspondence described above may also include correspondence between more pairs of resistance values. The USB cable attributes may also include other content. The embodiments of the present application are not limited thereto.
It should also be understood that when the processor 130 in the charging device cannot determine the resistance value of the first resistor according to the output result of the voltage comparator and the second corresponding relationship. For example, after all possible values of the adjustable resistor are tried, the output result of the voltage comparator is not inverted, or the second correspondence relationship does not have the value of the first resistor corresponding to the resistance value of the adjustable resistor when the voltage comparator is inverted, that is, the property of the USB cable cannot be determined. In this case, when the charging device 100 and the USB cable are used to charge another device, the charging device 100 controls the charging current according to another rule related to the protocol. For example, the charging current is adjusted to a charging current specified by a standard protocol or a minimum charging current. The embodiments of the present application are not limited thereto.
It should also be understood that, in the embodiment of the present application, the specific circuit structure included in the detection circuit 110 may also be other structures, and the detection circuit 110 may also include other electronic components for detecting the first resistance. The embodiments of the present application are not limited thereto.
It should also be understood that the charging apparatus 100 may further include a storage unit for storing various correspondences described above or a calculation program executed by the processing, or the like. The storage unit may also be a storage unit located outside a chip of the charging device in the charging device, such as a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a Random Access Memory (RAM), and the like. The processor mentioned in any of the above may be a Central Processing Unit (CPU), a Network Processor (NP) or a combination of the CPU and the NP, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, or one or more integrated circuits for controlling the charge-state detector to detect the first resistor.
The application also provides a charging system, which comprises any one of the USB cables and the charging device provided by the application, the charging system is composed of the USB cable and the charging device, and a schematic structural diagram of the charging system is shown in fig. 4. For a specific description, reference may be made to the above description on the USB cable and the charging device, and for brevity, no further description is given here.
The charging system provided by the present application will be described below with reference to specific examples.
The charging system provided by the present application is used to charge a mobile phone. As shown in fig. 8, fig. 8 is a typical application scenario diagram of the charging system provided in the present application. When the mobile phone is inserted into one end of the USB cable provided by the application, the other end of the USB cable is inserted into the charging device provided by the application. The specific charging process is shown in fig. 9. The charging device first detects a first resistance in the cable USB. The specific detection method is the detection method described above. When the first resistor is detected, the attribute of the USB cable is determined according to the resistance value of the first resistor. The charging device may adjust the charging current according to the USB cable attribute, as shown in fig. 9, may start a fast charge, and may start a thermal protection measure when the USB cable temperature rises to a preset temperature threshold. For example, the charging device may reduce the charging current, etc. When the temperature continues to rise to the charge stop threshold value. The charging device may forcibly stop charging. Or, when the temperature falls below the charging stop threshold value, the charging can be continued, and the like. When the first resistance is not detected, or the first resistance is detected but the USB cable property cannot be determined. The charging device performs charging according to a charging current or a minimum charging current specified by a preset standard protocol. For example, charging would be accomplished with a current of 500 mA.
The application provides a charging system can be according to USB's cable attribute, the size of the charging current when the adjustment charges to terminal equipment. The hidden danger such as USB cable burning that the charging current arouses is avoided taking place, improves the security. The current transmission capacity of the USB cable can be fully utilized, the service efficiency of the USB cable is improved, and the user experience is improved.
It should be understood that fig. 9 is only exemplary, and the charging system may also control the data transmission rate during data transmission, determine the manufacturer, product number, etc. of the USB cable according to the USB cable attribute. The embodiments of the present application are not limited thereto.
It should also be understood that, in various embodiments of the present application, first, second, etc. are used merely to indicate that a plurality of objects are different. For example, the first and second resistances are merely to illustrate different resistances. And should not have any influence on the resistance itself, and the above-mentioned first, second, etc. should not impose any limitation on the embodiments of the present application.
It should also be understood that the above description is only for the purpose of facilitating a better understanding of the embodiments of the present application by those skilled in the art, and is not intended to limit the scope of the embodiments of the present application. It will be apparent to those skilled in the art that various equivalent modifications or changes may be made, or certain steps may be newly added, etc., based on the examples given above. Or a combination of any two or more of the above embodiments. Such modifications, variations, or combinations are also within the scope of the embodiments of the present application.
It should also be understood that the foregoing descriptions of the embodiments of the present application focus on highlighting differences between the various embodiments, and that the same or similar elements that are not mentioned may be referred to one another and, for brevity, are not repeated herein.
It should also be understood that the order of description of the above processes does not mean the order of execution, and the order of execution of the processes should be determined by their function and inherent logic, and should not limit the implementation process of the embodiments of the present application.
It should be understood that the term "and/or" and "at least one of a or B" herein is merely one type of association that describes an associated object, meaning that three types of relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (11)

1. A charging device, comprising a detection circuit, a Universal Serial Bus (USB) interface, and a processor,
the USB interface is used for connecting a USB cable, a circuit of a signal channel of the USB cable comprises a first resistor, and the resistance value of the first resistor is used for identifying the attribute of the USB cable;
the detection circuit is used for detecting the first resistor and reporting a detection result to the processor, a first end of the detection circuit is connected with the first resistor through the USB interface, a second end of the detection circuit is connected with a power supply of the charging equipment, and the detection circuit obtains a detection voltage from the power supply;
the processor is configured to: acquiring a detection result of the detection circuit;
determining the resistance value of the first resistor according to the detection result of the first resistor;
determining the attribute of the USB cable according to the resistance value of the first resistor;
the detection circuit comprises a voltage comparator and a reference circuit, the reference circuit comprises an adjustable resistor, a first end of the adjustable resistor is connected with the power supply, a second end of the adjustable resistor is connected with a first input end of the voltage comparator, the input voltage of a second input end of the voltage comparator is the voltage at two ends of the first resistor, and the voltage comparator is used for comparing the voltage at two ends of the first resistor with the voltage of the reference circuit;
the processor is configured to: controlling the resistance value of the adjustable resistor, and acquiring the output result of the voltage comparator from the output end of the voltage comparator;
when the output result of the voltage comparator changes, determining the resistance value of the adjustable resistor when the output result of the voltage comparator changes;
and determining the resistance value of the first resistor according to the resistance value of the adjustable resistor and a second corresponding relation when the output result of the voltage comparator changes, wherein the second corresponding relation is the corresponding relation between a preset resistance value and the resistance value of the first resistor.
2. The charging device of claim 1, wherein the processor is further configured to:
and controlling the output current of the charging equipment to the USB cable according to the attribute of the USB cable.
3. The charging device according to claim 1 or 2,
the detection circuit comprises an analog-to-digital converter (ADC) and a second resistor, wherein two ends of the second resistor are respectively connected with the power supply and the first resistor, the ADC is connected on a circuit between the second resistor and the first resistor and used for collecting voltages at two ends of the first resistor, the processor obtains a detection result, and the detection result is the voltage collected by the ADC.
4. The charging device of claim 3, wherein the processor is configured to: and determining the resistance value of the first resistor according to the voltage acquired by the ADC and a first corresponding relation, wherein the first corresponding relation is a preset corresponding relation between the voltage and the resistance value of the first resistor.
5. The charging apparatus according to claim 1 or 2, wherein the detection circuit includes a current meter, a first end of the current meter is connected to the first resistor, a second end of the current meter is connected to the power supply, and the processor obtains a detection result of the current meter, where the detection result is a current value detected by the current meter.
6. The charging device of claim 5, wherein the processor is configured to: and determining the resistance of the first resistor according to the current value and the detection voltage.
7. The charging apparatus according to claim 1 or 2, wherein the properties of the USB cable include:
at least one of the USB cable data transmission capability and the current transmission capability of the USB cable.
8. A Universal Serial Bus (USB) cable is characterized in that the USB cable comprises a USB plug, a USB socket and a cable, a circuit of a signal channel of the USB cable comprises a first resistor, the first resistor is arranged at a pin of the USB plug or the USB socket, the resistance value of the first resistor is used for identifying the attribute of the USB cable,
the first resistor is determined according to the resistance value of the adjustable resistor when the output result of the voltage comparator changes and a second corresponding relation, and the second corresponding relation is the corresponding relation between a preset resistance value and the resistance value of the first resistor.
9. The USB cable of claim 8, wherein the signal channel is a Configuration Channel (CC).
10. The USB cable according to claim 8 or 9, wherein the properties of the USB cable include:
at least one of a data transmission capability of the USB cable and a current transmission capability of the USB cable.
11. A charging system characterized by comprising the charging device of any one of claims 1 to 7 and the USB cable of any one of claims 8 to 10.
CN201810401458.6A 2018-04-28 2018-04-28 Charging device, USB cable and charging system Active CN110417069B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810401458.6A CN110417069B (en) 2018-04-28 2018-04-28 Charging device, USB cable and charging system
PCT/CN2019/084708 WO2019206317A1 (en) 2018-04-28 2019-04-28 Charging device, usb cable and charging system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810401458.6A CN110417069B (en) 2018-04-28 2018-04-28 Charging device, USB cable and charging system

Publications (2)

Publication Number Publication Date
CN110417069A CN110417069A (en) 2019-11-05
CN110417069B true CN110417069B (en) 2021-08-20

Family

ID=68293471

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810401458.6A Active CN110417069B (en) 2018-04-28 2018-04-28 Charging device, USB cable and charging system

Country Status (2)

Country Link
CN (1) CN110417069B (en)
WO (1) WO2019206317A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115407116A (en) * 2019-12-31 2022-11-29 Oppo广东移动通信有限公司 Method and device for determining charging current
CN111444049B (en) * 2020-03-05 2022-05-13 瑞芯微电子股份有限公司 USB cable, multifunctional USB debugging method, debugger and debugging device
CN113364070A (en) * 2020-03-05 2021-09-07 Oppo广东移动通信有限公司 Charging control method, system, terminal and storage medium
CN111404227A (en) * 2020-03-30 2020-07-10 维沃移动通信有限公司 Charging method, OTG cable and electronic equipment
CN111651392B (en) * 2020-05-21 2022-01-28 上海龙旗科技股份有限公司 Method, system and equipment for connecting wearable equipment
TWI723920B (en) * 2020-07-16 2021-04-01 宏碁股份有限公司 Power delivery system with improved lifetime
CN111881072B (en) * 2020-07-30 2021-11-23 武汉精立电子技术有限公司 High-speed USB TYPE-C interface device supporting bidirectional transmission and graphic signal generator
CN112713627B (en) * 2020-12-24 2023-04-18 Oppo广东移动通信有限公司 Voltage control method, voltage control device, storage medium, and electronic apparatus
CN114138377B (en) * 2022-02-08 2022-07-05 荣耀终端有限公司 Electronic device, control method thereof, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103338970A (en) * 2011-02-02 2013-10-02 西门子公司 Method for protecting a charging cable, and charging device
CN106059010A (en) * 2016-07-29 2016-10-26 深圳市云充吧科技有限公司 Mobile power supply and data processing method thereof
CN106170710A (en) * 2015-04-29 2016-11-30 广东欧珀移动通信有限公司 Identify the method for type, power supply adaptor and the cable of cable
CN106374309A (en) * 2016-11-02 2017-02-01 上海传英信息技术有限公司 USB transmission line, mobile terminal and USB charging method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365388B (en) * 2012-04-09 2017-02-22 华为终端有限公司 Power supply method of terminal device and terminal device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103338970A (en) * 2011-02-02 2013-10-02 西门子公司 Method for protecting a charging cable, and charging device
CN106170710A (en) * 2015-04-29 2016-11-30 广东欧珀移动通信有限公司 Identify the method for type, power supply adaptor and the cable of cable
CN106059010A (en) * 2016-07-29 2016-10-26 深圳市云充吧科技有限公司 Mobile power supply and data processing method thereof
CN106374309A (en) * 2016-11-02 2017-02-01 上海传英信息技术有限公司 USB transmission line, mobile terminal and USB charging method

Also Published As

Publication number Publication date
CN110417069A (en) 2019-11-05
WO2019206317A1 (en) 2019-10-31

Similar Documents

Publication Publication Date Title
CN110417069B (en) Charging device, USB cable and charging system
KR101898185B1 (en) Power adaptor, terminal and charging system
US9588560B2 (en) Baseband PD communication over USB standard a connector
US9588563B2 (en) Protocol for managing a controllable power adapter accessory
KR101248284B1 (en) Charging systems with direct charging port support and extended capabilities
JP5388484B2 (en) Apparatus and method for detecting power supply
US10720778B2 (en) Method for identifying type of cable, power adapter and cable
US10078362B2 (en) Power delivery information over data interface
CN112425030A (en) Electronic device for controlling communication channel by wireless charging and operation method thereof
CN105334420B (en) Information processing method and electronic equipment
CN101022278A (en) Terminal equipment, connector, charger and charging method
CN111585314A (en) Wireless charging transmitter and wireless power transmission method
CN106549459B (en) Determination method of charging voltage and mobile terminal
CN108054541B (en) Switching device, multi-equipment detection system and detection method thereof
CN102984368A (en) Mobile terminal for identifying original batteries automatically and identification method of mobile terminal
TW201815006A (en) Low-voltage, high-current charging with over-voltage sensing
US20180358804A1 (en) Electrical cables with integral surge protection
CN104066028A (en) Communication method based on headset jack and terminal device
CN106374309B (en) USB transmission line, mobile terminal and USB charging method
KR20190005643A (en) Electronic device supporting usb power delivery standard and a method of charging the electronic device
CN109275058A (en) Dual mode headset system, bluetooth equipment and cable
JP2015032976A (en) Information processing apparatus, charging control method and program
CN107706977B (en) Charging current detection method and charging device
US20220085616A1 (en) Charging apparatus and charging method
CN112825401B (en) Charging line, charger, charging control method and charging device

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