[go: up one dir, main page]

CN109888884B - Charging circuit, terminal equipment, charging interface and charging equipment - Google Patents

Charging circuit, terminal equipment, charging interface and charging equipment Download PDF

Info

Publication number
CN109888884B
CN109888884B CN201910245345.6A CN201910245345A CN109888884B CN 109888884 B CN109888884 B CN 109888884B CN 201910245345 A CN201910245345 A CN 201910245345A CN 109888884 B CN109888884 B CN 109888884B
Authority
CN
China
Prior art keywords
signal transmission
pin
charging
detection
pins
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
CN201910245345.6A
Other languages
Chinese (zh)
Other versions
CN109888884A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910245345.6A priority Critical patent/CN109888884B/en
Publication of CN109888884A publication Critical patent/CN109888884A/en
Application granted granted Critical
Publication of CN109888884B publication Critical patent/CN109888884B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The embodiment of the invention provides a charging circuit, a terminal device, a charging interface and a charging device, wherein the charging circuit comprises a device end interface, N signal transmission connecting lines, N switches and a detection module, the device end interface is provided with signal detection pins and N signal transmission pins, the N signal transmission pins are distributed in a regular N-edge shape, and N is an integer greater than or equal to 3: the first ends of the N switches are respectively connected with the N signal transmission pins; the detection module is connected with the signal detection pins, the control end of the detection module is respectively connected with the control ends of the N switches, and the detection module is used for detecting the target voltage values of the signal detection pins and controlling the N switches according to the target voltage values, so that the N signal transmission pins are respectively connected with the N signal transmission connecting lines, and the target signal transmission connecting lines are connected with the target signal transmission pins in the N signal transmission pins. The embodiment of the invention can improve the operation convenience of the terminal equipment.

Description

Charging circuit, terminal equipment, charging interface and charging equipment
Technical Field
The invention relates to the technical field of charging interfaces, in particular to a charging circuit, a terminal device, a charging interface and a charging device.
Background
The technology of charging the equipment through the charger is more and more widely applied to equipment such as computers and intelligent dotting equipment.
At present, in the process of connecting the charging interface and the terminal equipment interface, the directions of the charging interface and the terminal equipment interface must be matched, so that the problems of equipment damage or disconnection and the like caused by reverse connection of the charging interface and the terminal equipment interface are avoided, for example: connecting the power supply (VBUS) contact of the charging terminal to the Ground (GND) contact of the terminal will cause a short circuit of the power supply Ground, thereby burning out the device.
As shown in fig. 1, in the related art, after the charging interface 11 is connected to the device-side interface of the terminal device 12 in a fixed connection direction, the data line 13 connected to the charging interface 11 extends from the lower side of the terminal device 12, which hinders the user from operating the terminal device, and the presence of the data line also hinders the terminal device from being erected on a platform such as a desktop.
Therefore, the charger in the related art has the defect that the terminal equipment is inconvenient to operate.
Disclosure of Invention
The embodiment of the invention provides a charging circuit, a terminal device, a charging interface and a charging device, which aim to solve the problem that a charger in the prior art causes inconvenient operation of the terminal device.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a charging circuit, including: equipment end interface, N signal transmission connecting wire, N switch and detection module, wherein, be provided with signal detection pin and N signal transmission pin on the equipment end interface, N signal transmission pin is positive N limit shape and distributes, N is more than or equal to 3's integer:
the first ends of the N switches are respectively connected with the N signal transmission pins;
the detection module is characterized in that a detection end of the detection module is connected with the signal detection pins, a control end of the detection module is respectively connected with control ends of the N switches and used for detecting target voltage values of the signal detection pins and controlling the N switches according to the target voltage values, so that the N signal transmission pins are respectively connected with the N signal transmission connecting lines, and the target signal transmission connecting line is connected with a target signal transmission pin of the N signal transmission pins, wherein the target signal transmission pin is one of the N signal transmission pins, and under the condition that the target voltage values are different, the target signal transmission connecting lines connected with the target signal transmission pins are different.
In a second aspect, an embodiment of the present invention further provides a terminal device, which includes the charging circuit provided in the embodiment of the present invention.
In a third aspect, an embodiment of the present invention further provides a charging interface, where N signal transmission pins and N charging detection pins are arranged on the charging interface, where the N signal transmission pins and the N charging detection pins are respectively distributed in a regular N-polygon shape, and in a case where the charging interface is connected to the device end interface in the charging circuit provided in the embodiment of the present invention, the signal detection pin is connected to one of the N charging detection pins;
and under the condition that the signal detection pin is connected with different charging detection pins in the N charging detection pins, the target voltage values are different.
In a fourth aspect, an embodiment of the present invention further provides a charging device, which includes the charging interface provided in the embodiment of the present invention.
The charging circuit provided by the embodiment of the invention comprises: equipment end interface, N signal transmission connecting wire, N switch and detection module, wherein, be provided with signal detection pin and N signal transmission pin on the equipment end interface, N signal transmission pin is positive N limit shape and distributes, N is more than or equal to 3's integer: the first ends of the N switches are respectively connected with the N signal transmission pins; the detection module is characterized in that a detection end of the detection module is connected with the signal detection pins, a control end of the detection module is respectively connected with control ends of the N switches and used for detecting target voltage values of the signal detection pins and controlling the N switches according to the target voltage values, so that the N signal transmission pins are respectively connected with the N signal transmission connecting lines, and the target signal transmission connecting line is connected with a target signal transmission pin of the N signal transmission pins, wherein the target signal transmission pin is one of the N signal transmission pins, and under the condition that the target voltage values are different, the target signal transmission connecting lines connected with the target signal transmission pins are different. Like this, because the same signal transmission pin of equipment end interface under the condition of difference, can with the signal transmission connecting wire of difference to support equipment end interface and rather than the interface that charges that matches to realize the connection of a plurality of not equidirectionals between the interface, thereby be convenient for adjust with the extending direction of the data line of the interface connection that charges, avoid it to hinder terminal equipment's operation, promoted this terminal equipment's operation convenience.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a schematic diagram of a connection structure of a terminal device interface and a charging interface in the prior art;
fig. 2 is a circuit diagram of a charging circuit according to an embodiment of the present invention;
fig. 3a is a schematic diagram of signal transmission pins in an equipment terminal interface in a charging circuit according to an embodiment of the present invention;
fig. 3b is a schematic diagram of a signal transmission pin in a charging interface according to an embodiment of the present invention;
fig. 4a is an application scenario diagram of a charging circuit according to an embodiment of the present invention;
fig. 4b is a second application scenario diagram of a charging circuit according to an embodiment of the present invention;
fig. 5a is a schematic diagram of signal detection pins in an equipment terminal interface in a charging circuit according to an embodiment of the present invention;
fig. 5b is a schematic diagram of each charging detection pin in the charging interface according to the embodiment of the present invention;
fig. 6 is a circuit diagram of a switching module in a charging circuit according to an embodiment of the present invention;
fig. 7 is a circuit diagram of a detection module in a charging circuit according to an embodiment of the present invention;
fig. 8 is a diagram of a connection structure among the four-way switches, the CPU, and the ADC in the charging circuit according to the embodiment of the present invention.
Fig. 9 is a circuit diagram of each charge detection pin in the charging circuit according to an embodiment of the present invention;
fig. 10 is a flowchart illustrating operations of another charging circuit according to an embodiment of the present invention;
fig. 11 is a structural diagram of another terminal device provided in the embodiment of the present invention;
FIG. 12 is a block diagram of another charging interface provided by an embodiment of the present invention;
fig. 13 is a structural diagram of another charging device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 2 is a circuit diagram of a charging circuit according to an embodiment of the present invention. As shown in fig. 2, the charging circuit 200 includes: the device comprises an equipment interface 201, N signal transmission connecting lines 202, N switches 203 and a detection module 204, wherein the equipment interface 201 is provided with a signal detection pin 2011 and N signal transmission pins 2012, the N signal transmission pins 2012 are distributed in a regular N-polygon shape, and N is an integer greater than or equal to 3:
first ends of the N switches 203 are connected to the N signal transmission pins 2012, respectively.
The detection end of the detection module 204 is connected to the signal detection pin 2011, the control end of the detection module 204 is connected to the control ends of the N switches 203, and is configured to detect a target voltage value of the signal detection pin 2011, and control the N switches 203 according to the target voltage value, so that the N signal transmission pins 2012 are connected to the N signal transmission connection lines 202, respectively, and the target signal transmission connection line is connected to a target signal transmission pin of the N signal transmission pins 2012, where the target signal transmission pin is one of the N signal transmission pins 2012, and the target signal transmission connection line connected to the target signal transmission pin is different when the target voltage values are different.
It should be noted that in a specific implementation, N may be any integer greater than or equal to 3, for example, 3, 5, and the like, and one signal transmission pin 2012 and one switch 203 are drawn in fig. 2 as an example only, and the value of N is not limited herein.
In a specific implementation, the charging circuit 200 may be applied to any connector, such as: the magnetic connector and the device-side interface may be an interface on a terminal device or an interface on a charger, and are not particularly limited herein.
It should be noted that the "signal transmission PIN" may also be referred to as a "signal transmission contact" or a "signal transmission PIN" or the like, and is used to contact another signal transmission PIN on another interface, so as to transmit signals such as power and data. In addition, the "signal transmission connection LINE" may also be referred to as a "signal transmission trace" or a "signal transmission LINE" and is used to connect with a corresponding signal transmission pin, so as to transmit signals such as electricity and data transmitted on another interface to a corresponding module in the terminal device.
In a specific implementation, any one of the N switches may be an N-direction switch, and a second end of the N-direction switch has N shift positions, so that connection with any one of the N signal transmission connection lines may be achieved.
The charging circuit provided by the embodiment of the invention comprises: equipment end interface, N signal transmission connecting wire, N switch and detection module, wherein, be provided with signal detection pin and N signal transmission pin on the equipment end interface, N signal transmission pin is positive N limit shape and distributes, N is more than or equal to 3's integer: the first ends of the N switches are respectively connected with the N signal transmission pins; the detection module is characterized in that a detection end of the detection module is connected with the signal detection pins, a control end of the detection module is respectively connected with control ends of the N switches and used for detecting target voltage values of the signal detection pins and controlling the N switches according to the target voltage values, so that the N signal transmission pins are respectively connected with the N signal transmission connecting lines, and the target signal transmission connecting line is connected with a target signal transmission pin of the N signal transmission pins, wherein the target signal transmission pin is one of the N signal transmission pins, and under the condition that the target voltage values are different, the target signal transmission connecting lines connected with the target signal transmission pins are different. Like this, because the same signal transmission pin of equipment end interface under the condition of difference, can with the signal transmission connecting wire of difference to support equipment end interface and rather than the interface that charges that matches to realize the connection of a plurality of not equidirectionals between the interface, thereby be convenient for adjust with the extending direction of the data line of the interface connection that charges, avoid it to hinder terminal equipment's operation, promoted this terminal equipment's operation convenience.
As an optional implementation manner, the N signal transmission connection lines include a first signal transmission connection line, a second signal transmission connection line, a third signal transmission connection line, and a fourth signal transmission connection line.
The detection module is used for carrying out first control on the N switches under the condition that the target voltage value is matched with a first voltage value, so that the target signal transmission pin is connected with the first signal transmission connecting line; or, the detection module is configured to perform second control on the N switches under a condition that the target voltage value is matched with a second voltage value, so that the target signal transmission pin is connected to the second signal transmission connection line; or, the detection module is configured to, when the target voltage value matches a third voltage value, perform third control on the N switches, so that the target signal transmission pin is connected to the third signal transmission connection line; or, the detection module is configured to perform fourth control on the N switches under a condition that the target voltage value matches a fourth voltage value, so that the target signal transmission pin is connected to the fourth signal transmission connection line.
In a specific implementation, the first voltage value may be a voltage value detected on a first signal detection pin on the device-side interface when the first signal detection pin is connected with a first signal detection pin on the charging interface; the second voltage value may be a voltage value detected on the signal detection pin when the first signal detection pin on the device-side interface is connected with the second signal detection pin on the charging interface; the third voltage value may be a voltage value detected on the signal detection pin when the first signal detection pin on the device-side interface is connected with the third signal detection pin on the charging interface; the fourth voltage value may be a voltage value detected on the signal detection pin when the first signal detection pin on the device-side interface is connected to the fourth signal detection pin on the charging interface.
During the application, the correspondence between the voltage values and the corresponding controls may be stored in advance, for example: when the first voltage value is detected, it may be determined that a first signal detection pin on the device-side interface is connected to a first signal detection pin on the charging interface, so as to perform first control on the N switches accordingly, so that the target signal transmission pin is connected to the first signal transmission connection line, where the first signal transmission connection line may be a pin matched with the first signal detection pin on the charging interface. For example: judging according to the first voltage: under the condition that a power supply VBUS pin on the charging interface is connected with a GND pin on the equipment end interface, the first switch is controlled to connect the GND pin on the equipment end interface with the VBUS connecting wire, so that the VBUS pin on the charging interface can charge the terminal equipment with the equipment end interface through the VBUS connecting wire.
Of course, the target signal transmission pin may also be another pin on the device-side interface, and is not particularly limited herein.
Correspondingly, when the second voltage value, the third voltage value, or the fourth voltage value is detected, the second control, the third control, or the fourth control is correspondingly performed on the N switches, and the principle of the second control, the third control, or the fourth control is the same as that of the first control performed when the first voltage value is detected, and details are not repeated here.
In this embodiment, the signal transmission connecting line includes 4, and corresponds 4 kinds of connection direction settings 4 magnitude of voltage and 4 kinds of control mode that exist between signal transmission pin and the 4 signal transmission connecting lines respectively to make and to charge and can carry out the connection of 4 middle directions between interface and the equipment end interface, thereby promoted charging circuit's flexibility.
Further, the N signal transmission pins include a first signal transmission pin, a second signal transmission pin, a third signal transmission pin, and a fourth signal transmission pin.
The detection module is used for performing first control on the N switches under the condition that the target voltage value is matched with a first voltage value, so that the first signal transmission pin is connected with the first signal transmission connecting line, the second signal transmission pin is connected with the second signal transmission connecting line, the third signal transmission pin is connected with the third signal transmission connecting line, and the fourth signal transmission pin is connected with the fourth signal transmission connecting line; or, the detection module is configured to perform second control on the N switches under a condition that the target voltage value is matched with a second voltage value, so that the first signal transmission pin is connected to the second signal transmission connection line, the second signal transmission pin is connected to the third signal transmission connection line, the third signal transmission pin is connected to the fourth signal transmission connection line, and the fourth signal transmission pin is connected to the first signal transmission connection line; or, the detection module is configured to, under a condition that the target voltage value matches a third voltage value, perform third control on the N switches, so that the first signal transmission pin is connected to the third signal transmission connection line, the second signal transmission pin is connected to the fourth signal transmission connection line, the third signal transmission pin is connected to the first signal transmission connection line, and the fourth signal transmission pin is connected to the second signal transmission connection line; or, the detection module is configured to, under a condition that the target voltage value matches a fourth voltage value, perform fourth control on the N switches, so that the first signal transmission pin is connected to the fourth signal transmission connection line, the second signal transmission pin is connected to the first signal transmission connection line, the third signal transmission pin is connected to the second signal transmission connection line, and the fourth signal transmission pin is connected to the third signal transmission connection line.
In the application process, the first signal transmission pin, the second signal transmission pin, the third signal transmission pin and the fourth signal transmission pin can be distributed on 4 vertexes of the regular quadrangle, and 4 signal transmission pins distributed on each vertex of the regular quadrangle are correspondingly arranged on the charging interface connected with the equipment end interface.
For example: the magnetic charging interface shown in fig. 3a and 3b comprises an equipment end interface 301 and a charging interface 302, wherein the equipment end interface 301 is provided with 4 signal transmission pins (respectively: a power VUBS pin, a ground GND pin, a data D-pin and a D + pin), the N switches are 4 four-way switches, the 4 signal transmission pins are respectively located at four vertices of a square, first ends of the 4 four-way switches are respectively connected with the 4 signal transmission pins, and second ends of the 4 four-way switches can be connected with any one of 4 signal transmission connecting lines (respectively: a VUBS connecting line, a GND connecting line, a D-connecting line and a D + connecting line).
As shown in fig. 3b, in an application process, a data line 3021 is fixedly connected to the charging interface 302 matched with the device-side interface 301, and N signal transmission pins (where, for example, N is equal to 4) are further disposed on the charging interface 302, and positions of the 4 signal transmission pins on the charging interface 302 correspond to positions of the 4 signal transmission pins on the device-side interface 301 one by one, so that after the device-side interface 301 is connected to the charging interface 302, each signal transmission pin can perform corresponding signal transmission. In a specific application, when the device-side interface 301 is connected to the charging interface 302, the target signal transmission connection line connected to the target signal transmission pin may correspond to the signal transmission pin on the charging interface 302 connected to the target signal transmission pin, for example: in the case that the VBUS pin on the device-side interface 301 is connected to the GND pin on the charging interface 302, the target signal transmission connection line is a GND connection line.
Of course, the charging circuit provided in the embodiment of the present invention may also be applied to other types of interfaces besides the magnetic attraction charging interface, for example: the plug-in interface and the plug-in device-side interface may also be connected to the adapted charging interface in a matching manner after rotating a certain angle, which is not specifically limited herein.
As shown in fig. 2, when the device-side interface 201 and the charging interface connected thereto rotate relatively, the target voltage value on the signal detection pin 2011 changes, and the target voltage value corresponds to the relative angle between the device-side interface 201 and the charging interface connected thereto, so that when the detection module 204 obtains the target voltage value, the relative angle between the device-side interface 201 and the charging interface connected thereto can be determined, and accordingly, the connection direction of the second ends of the N switches 203 is controlled, so that the signal transmission pin on the charging interface is connected to the corresponding signal transmission connection line in the charging circuit 200.
For example: as shown in fig. 3b, the VBUS pin on the charging interface 302 is communicated with the VBUS connection line in the charging circuit 200, the GND pin on the charging interface 302 is communicated with the GND connection line in the charging circuit 200, the D-pin on the charging interface 302 is communicated with the D-connection line in the charging circuit 200, and the D + pin on the charging interface 302 is communicated with the D + connection line in the charging circuit 200, so that data communication between the terminal device having the charging circuit 200 and the charging interface 302 is realized.
Specifically, as shown in fig. 4a, when the data line 3021 extends toward the left side of the terminal device 401, the target voltage value matches the first voltage value, the VBUS pin on the charging interface 302 is connected to the GND pin in the device-side interface 301, the GND pin on the charging interface 302 is connected to the D-pin in the device-side interface 301, the D-pin on the charging interface 302 is connected to the D + pin in the device-side interface 301, and the D + pin on the charging interface 302 is connected to the VBUS pin in the device-side interface 301; in this embodiment, a VBUS pin in the device-side interface 301 is connected to the D + connection line through a first switch, a GND pin in the device-side interface 301 is connected to the VBUS connection line through a second switch, a D-pin in the device-side interface 301 is connected to the GND connection line through a third switch, and a D + pin in the device-side interface 301 is connected to the D-connection line through a fourth switch;
as shown in fig. 4b, when the data line 3021 extends toward the upper side of the terminal device 401, the target voltage value matches the second voltage value, the VBUS pin on the charging interface 302 is connected to the D-pin in the device-side interface 301, the GND pin on the charging interface 302 is connected to the D + pin in the device-side interface 301, the D-pin on the charging interface 302 is connected to the VBUS pin in the device-side interface 301, and the D + pin on the charging interface 302 is connected to the GND pin in the device-side interface 301; in this embodiment, a VBUS pin in the device-side interface 301 is connected to the D-connection line through a first switch, a GND pin in the device-side interface 301 is connected to the D + connection line through a second switch, the D-pin in the device-side interface 301 is connected to the VBUS connection line through a third switch, and the D + pin in the device-side interface 301 is connected to the GND connection line through a fourth switch;
of course, the data line 3021 can also extend toward the right and lower sides of the terminal apparatus 401, which is not further enumerated here.
In this embodiment, the extending direction of the data line prevents the user from operating the terminal device, and the connection angle between the charging interface and the device-side interface can be changed to change the extending direction of the data line.
For example: as shown in fig. 5a and 5b, in this embodiment, N is equal to 4, and the N signal transmission pins are a VBUS pin, a GND pin, a D-pin, and a D + pin, respectively.
As shown in fig. 5a, the device-side interface 501 is provided with a power VBUS pin, a ground GND pin, a data D-pin, and a D + pin in a clockwise direction, and a signal detection pin a is added between the VBUS pin and the GND pin.
As shown in fig. 5B, the charging interface 502 adapted to the device-side interface 501 is also provided with a VBUS pin, a GND pin, a D-pin, and a D + pin, which are arranged in a clockwise direction, and a first charging detection pin B is added between the VBUS pin and the GND pin, a second charging detection pin C is added between the GND pin and the D-pin, a third charging detection pin D is added between the D-pin and the D + pin, and a fourth charging detection pin E is added between the D + pin and the VBUS pin.
It should be noted that the pin B, the pin C, the pin D, and the pin E may also be disposed at other positions, for example: the vertex of the other regular quadrangle is only required to ensure that the other regular quadrangle is centrosymmetric with the regular quadrangle where the 4 signal transmission pins are located, and in this embodiment, the position of the pin a corresponds to the positions of the pin B, the pin C, the pin D, or the pin E, which is not specifically limited herein.
In view of the symmetry principle of the regular quadrangle, the charging interface 502 can be connected to the device-side interface 501 in a matching manner after rotating 90 °, and the pin a can be connected to one of the pins B, C, D, and E.
In this embodiment, when j +1 is less than or equal to 4, and the charging interface 502 rotates by j 90 ° clockwise, the VBUS pin on the device-side interface 501 is connected to the j +1 th signal transmission pin on the charging interface 502; when j +1 is greater than 4, when the charging interface 502 rotates by j 90 ° clockwise, the VBUS pin on the device terminal interface 501 is connected to the kth signal transmission pin on the charging interface 502. Wherein k is equal to a remainder of (j +1) ÷ 4, j is an integer greater than or equal to 0, a VBUS pin on the charging interface 502 is a first signal transmission pin, a GND pin is a second signal transmission pin, a D-pin is a third signal transmission pin, and a D + pin is a fourth signal transmission pin.
It should be noted that, in a specific implementation, when the arrangement order, the number, the name, and the like of each signal transmission pin on the charging interface or the device-side interface may be changed, the connection relationship between each signal transmission pin on the charging interface and the device-side interface is also changed, and the signal transmission connection line connected to the second ends of the N switches is also changed accordingly. The VBUS pin, the GND pin, the D-pin, and the D + pin are only arranged clockwise herein, and the number, name, arrangement order, and the like of the respective signal transmission pins are not limited.
In specific implementation, in order to ensure that the charging interface 502 can correctly transmit signals to the device-side interface 501 after rotating any angle, the second ends of the switches in the charging circuit 200 need to be switched to connect the VBUS pin on the charging interface 502 with the VBUS connection line, the GND pin on the charging interface 502 is connected with the GND connection line, the D + pin on the charging interface 502 is connected with the D + connection line, and the D-pin on the charging interface 502 is connected with the D-connection line.
In the present embodiment, the switching process is performed by the switching module 60 shown in fig. 6, and the switching module 60 includes 4 four-way switches: the first end of the first four-way switch 601 is connected with a VBUS pin on the equipment terminal interface 501, the second four-way switch 602 is connected with a GND pin on the equipment terminal interface 501, the first end of the third four-way switch 603 is connected with a D-pin on the equipment terminal interface 501, the fourth four-way switch 604 is connected with a D + pin on the equipment terminal interface 501, and the second end of each four-way switch can be connected with any one of the VBUS connecting wire, the GND connecting wire, the D-connecting wire and the D + connecting wire.
It should be noted that, in practical applications, there is only one VBUS connection line, one GND connection line, one D-connection line, and one D + connection line, and 4 branches may be led out from each signal transmission connection line, so that each branch corresponds to each four-way switch in fig. 6, so as to implement that the second end of each four-way switch shown in fig. 6 can be connected to any one of the VBUS connection line, the GND connection line, the D-connection line, and the D + connection line. The "first" and "second" of the first four-way switch, the second four-way switch, and the like are used only to distinguish different four-way switches, and the order and specific names of the four-way switches are not limited.
As an optional implementation manner, the detection module includes a detection unit and a control unit, a detection end of the detection unit is connected to the signal detection pin, and a signal sending end of the detection unit is connected to a signal receiving end of the control unit, and is configured to detect the target voltage value and send the target voltage value to the control unit.
And the control end of the control unit is respectively connected with the control ends of the N switches and is used for controlling the N switches according to the target voltage value, so that the N signal transmission pins are respectively connected with the N signal transmission connecting lines, and the target signal transmission pin is connected with the target signal transmission pin in the N signal transmission pins.
As shown in fig. 7, in the present embodiment, the detecting Unit is an Analog-to-digital converter (ADC), and the controlling Unit is a Central Processing Unit (CPU), where the ADC is connected to pin a and the CPU respectively, and as shown in fig. 8, the CPU is connected to control terminals of a first four-way switch 601, a second four-way switch 602, a third four-way switch 603, and a fourth four-way switch 604 respectively. In a specific working process, the ADC detects a voltage value on the pin A and sends the voltage value to the CPU, and the CPU correspondingly controls the 4 four-way switches according to the received voltage value.
In a specific implementation, the detecting unit and the controlling unit may also be any other electronic component or device capable of detecting a voltage and sending different control signals according to a detected voltage value, and are not limited in particular herein.
As an alternative embodiment, the device-side interface 201 shown in fig. 2 is used to connect with a charging interface, which includes N charging detection pins.
The charging circuit further includes: and the signal detection pin is connected with a power supply through the first resistor.
In the case where the device-side interface 201 is connected to the charging interface, the signal detection pin is connected to one of the N charging detection pins, and the target voltage values are different in the case where the signal detection pin is connected to different charging detection pins of the N charging detection pins.
For example: as shown in fig. 7 and 9, in the present embodiment, the pin a is connected to the power supply through another resistor, and the pin B, the pin C, the pin D, and the pin E are grounded through different resistors, so that when the pin a is connected to the pin B, the pin C, the pin D, and the pin E, the voltage value at the pin a is different.
In this embodiment, the pin a is connected to a voltage source of 1.8V (volts) through a 100K Ω (kiloohm) resistor; pin B is grounded (i.e., through a 0 Ω resistor), pin C is grounded through a 20K Ω resistor, pin D is grounded through a 50K Ω resistor, and pin E is grounded through a 100K Ω resistor. When the pin A is connected with the pin B, the ADC detects a target voltage value of 0V on the pin A; when the pin A is connected with the pin C, the analog-to-digital converter ADC detects a target voltage value of 0.3V on the pin A; when the pin A is connected with the pin D, the ADC detects a target voltage value of 0.6V on the pin A; when pin a is connected to pin E, the ADC detects a target voltage value of 0.9V on pin a. Therefore, when the ADC sends different target voltage values to the CPU, the CPU controls the communication direction of the second ends of the 4 four-way switches according to the target voltage values.
The resistance value of the first resistor, the resistance values of the resistors connected to the four charge detection pins, the voltage value of the power supply, and the like may be changed, and the resistance value is not particularly limited.
As an alternative embodiment, the detection module 204 shown in fig. 2 is further configured to control the N switches 203 to be in the off state in a case that the device-side interface 201 is not connected to the charging interface. In a specific implementation, the second end of the switch in the closed state is not connected with any signal transmission connecting line.
In the embodiment, the connection state between the equipment end interface and the charging interface can be prevented from being determined, and the N switches can be prevented from being communicated with the unmatched signal transmission pins and the unmatched signal transmission connecting lines, so that the connection reliability of the equipment end interface and the charging interface is improved.
As shown in fig. 10, the charging circuit provided in the embodiment of the present invention implements a process of detecting and controlling 4 four-way switches to respectively perform switching by the following steps:
in step 1001, the ADC controls all 4 four-way switches to be in an off state when detecting a voltage of 1.8V on pin a.
Step 1002, under the condition that the ADC detects 0V voltage on the pin a, the ADC controls the 4 four-way switches to connect the VBUS pin to the VBUS connection line, the GND pin to the GND connection line, the D-pin to the D-connection line, and the D + pin to the D + connection line.
And step 1003, under the condition that the ADC detects 0.3V voltage on the pin A, controlling the 4 four-way switches to connect the VBUS pin to a GND connecting line, connecting the GND pin to a D-connecting line, connecting the D-pin to a D + connecting line, and connecting the D + pin to the VBUS connecting line.
And 1004, controlling 4 four-way switches to connect the VBUS pin to a D-connecting line, the GND pin to a D + connecting line, the D-pin to the VBUS connecting line and the D + pin to the GND connecting line by the ADC under the condition that the ADC detects 0.6V voltage on the pin A.
Step 1005, under the condition that the ADC detects 0.9V voltage on the pin A, controlling the 4 four-way switches to connect the VBUS pin to the D + connecting line, connecting the GND pin to the VBUS connecting line, connecting the D-pin to the GND connecting line, and connecting the D + pin to the D-connecting line.
It should be noted that, the steps 1001 to 1005 are optional steps, and in a specific implementation, any one of the steps 1001 to 1005 is determined to be executed according to different voltage values detected on the pin a.
In addition, the VBUS pin, the GND pin, the D-pin, and the D + pin are all signal transmission pins on the device-side interface 501.
In this embodiment, the pin a is connected to the power supply through another resistor, and the pin B, the pin C, the pin D, and the pin E are grounded through different resistors, so that when the pin a is connected to the pin B, the pin C, the pin D, and the pin E, the voltage value at the pin a is different. Under the condition that the voltage value of the power supply is detected on the pin A, the fact that the charging interface is not connected with the equipment end interface can be determined, so that the four-way switches are controlled to be in the closed state, and reliability of the charging interface and the equipment end interface in the connection process is improved.
It should be noted that, in a specific application, other circuits may be used to make the voltages on the pin B, the pin C, the pin D, and the pin E have different values, for example: the pins B, C, D, and E are connected to power supplies having different voltage values, respectively, and are not particularly limited herein.
In practical applications, the power supply voltage and the respective resistance values may be affected by the ambient temperature, aging conditions, etc., so that the voltage value detected at the pin a fluctuates. In this embodiment, the charging detection pin connected to the pin a may be determined according to a matching condition between the actual voltage value detected at the pin a and the 5 voltage values, so as to correspondingly control each four-way switch according to a determination result. For example: under the condition that the actual voltage value detected on the pin A is between 0.1V and 0.35V, determining that the actual voltage value is matched with the 0.3V voltage value when the pin A is connected with the pin C, and judging that the pin A is connected with the pin C; and under the condition that the actual voltage value detected on the pin A is between 0.4V and 0.65V, determining that the actual voltage value is matched with the 0.6V voltage value when the pin A is connected with the pin D, and judging that the pin A is connected with the pin D, and the like.
In this embodiment, the charging detection pin connected to the pin a can be determined in any case when the voltage value at the pin a fluctuates, so that the accuracy of the detection structure is improved.
Referring to fig. 11, an embodiment of the present invention further provides a terminal device 1100, where the terminal device 1100 includes the charging circuit 200 provided in the previous embodiment of the present invention.
In the embodiment of the invention, under the condition that the equipment end interface of the terminal equipment is connected with the charging equipment, the connection state between the equipment end interface and the charging equipment is detected through the charging circuit arranged on the terminal equipment, and the connection state between the signal transmission pin and the signal transmission connecting line in the terminal equipment is switched according to the connection state, so that when the equipment end interface rotates relative to the charging equipment, correct signal transmission is carried out between the terminal equipment and the charging equipment, and thus, a data line on the charging equipment can rotate along with the charging equipment, the phenomenon that the data line obstructs the operation of a user on the terminal equipment is avoided, and the operation convenience of the terminal equipment is improved.
Referring to fig. 12, a charging interface 1200 is further provided in an embodiment of the present invention, where N signal transmission pins 1201 and N charging detection pins 1202 are disposed on the charging interface 1200, where the N signal transmission pins 1201 and the N charging detection pins 1202 are respectively distributed in a regular N-polygon shape, and when the charging interface 1200 is connected to the device-side interface 201 in the charging circuit 200 provided in the embodiment of the present invention, the signal detection pin 2011 is connected to one of the N charging detection pins 1202.
In the case where the signal detection pin 2011 is connected to a different charge detection pin of the N charge detection pins 1202, the target voltage values are different.
In a specific implementation, the charging interface 1200 may be the charging interface 502 shown in fig. 5B, in this embodiment, N is equal to 4, the N charging detection pins 1202 are respectively a pin B, a pin C, a pin D, and a pin E, and the N signal transmission pins 1201 are respectively a VBUS pin, a GND pin, a D-pin, and a D + pin.
Optionally, the charging circuit 200 further includes: in the case where the first resistor, the signal detection pin 2011, is connected to the power supply via the first resistor, the N charging detection pins 1202 are grounded via resistors having different resistance values, respectively, so that the target voltage values are different when the signal detection pin 2011 is connected to different charging detection pins of the N charging detection pins 1202.
Optionally, the N charge detection pins 1202 have different voltage values, respectively, so that the target voltage values are different when the signal detection pin 2011 is connected to different charge detection pins of the N charge detection pins 1202.
In a specific implementation, the N charge detection pins 1202 may also be connected to power supplies with different voltage values, respectively, or connected to the same power supply through resistors with different resistance values, so that the N charge detection pins 1202 have different voltage values, respectively.
It should be noted that, in the embodiment of the present invention, a specific working process of the charging interface corresponds to a working process of the charging circuit provided in the embodiment of the present invention, and details are not described herein again.
Referring to fig. 13, a charging device 1300 including the charging interface 1200 according to the embodiment of the present invention is further provided in the embodiment of the present invention.
In a specific implementation, each of the N charge detection pins 1202 may be grounded through a resistor having unequal resistance values as shown in fig. 9.
In addition, the N charge detection pins 1202 may also be connected to power supplies with different voltage values, respectively, or connected to the same power supply through resistors with different resistance values, so that the N charge detection pins 1202 have different voltage values, respectively.
It should be noted that, in the foregoing embodiment of the invention, a specific working process of the charging device corresponds to a working process of the charging circuit provided in the embodiment of the invention, and details are not described here.
In a specific implementation, the terminal Device may be a Mobile phone, a Tablet personal Computer (Tablet personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Wearable Device (Wearable Device), a Computer, a notebook Computer, or other terminal devices that can be connected to a charging Device.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a mobile terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (12)

1. A charging circuit, comprising: equipment end interface, N signal transmission connecting wire, N switch and detection module, wherein, be provided with signal detection pin and N signal transmission pin on the equipment end interface, N signal transmission pin is positive N limit shape and distributes, N is more than or equal to 3's integer:
the first ends of the N switches are respectively connected with the N signal transmission pins;
the detection module is used for detecting a target voltage value of the signal detection pin and controlling the N switches according to the target voltage value, so that the N signal transmission pins are respectively connected with the N signal transmission connecting lines, and the target signal transmission connecting line is connected with a target signal transmission pin of the N signal transmission pins, wherein the target signal transmission pin is one of the N signal transmission pins, and the target signal transmission connecting lines connected with the target signal transmission pins are different under the condition that the target voltage values are different.
2. The charging circuit of claim 1, wherein the N signal transmission connection lines include a first signal transmission connection line, a second signal transmission connection line, a third signal transmission connection line, and a fourth signal transmission connection line;
the detection module is used for carrying out first control on the N switches under the condition that the target voltage value is matched with a first voltage value, so that the target signal transmission pin is connected with the first signal transmission connecting line; or,
the detection module is used for carrying out second control on the N switches under the condition that the target voltage value is matched with a second voltage value, so that the target signal transmission pin is connected with the second signal transmission connecting line; or,
the detection module is used for carrying out third control on the N switches under the condition that the target voltage value is matched with a third voltage value, so that the target signal transmission pin is connected with the third signal transmission connecting line; or,
the detection module is configured to perform fourth control on the N switches under the condition that the target voltage value matches a fourth voltage value, so that the target signal transmission pin is connected to the fourth signal transmission connection line.
3. The charging circuit of claim 2, wherein the N signal transmission pins comprise a first signal transmission pin, a second signal transmission pin, a third signal transmission pin, and a fourth signal transmission pin;
the detection module is configured to perform the first control on the N switches under a condition that the target voltage value matches the first voltage value, so that the first signal transmission pin is connected to the first signal transmission connection line, the second signal transmission pin is connected to the second signal transmission connection line, the third signal transmission pin is connected to the third signal transmission connection line, and the fourth signal transmission pin is connected to the fourth signal transmission connection line; or,
the detection module is configured to perform the second control on the N switches under the condition that the target voltage value is matched with the second voltage value, so that the first signal transmission pin is connected to the second signal transmission connection line, the second signal transmission pin is connected to the third signal transmission connection line, the third signal transmission pin is connected to the fourth signal transmission connection line, and the fourth signal transmission pin is connected to the first signal transmission connection line; or,
the detection module is configured to perform third control on the N switches under the condition that the target voltage value is matched with the third voltage value, so that the first signal transmission pin is connected to the third signal transmission connection line, the second signal transmission pin is connected to the fourth signal transmission connection line, the third signal transmission pin is connected to the first signal transmission connection line, and the fourth signal transmission pin is connected to the second signal transmission connection line; or,
the detection module is configured to perform fourth control on the N switches under a condition that the target voltage value is matched with the fourth voltage value, so that the first signal transmission pin is connected to the fourth signal transmission connection line, the second signal transmission pin is connected to the first signal transmission connection line, the third signal transmission pin is connected to the second signal transmission connection line, and the fourth signal transmission pin is connected to the third signal transmission connection line.
4. The charging circuit according to any one of claims 1 to 3, wherein the device-side interface is configured to connect to a charging interface, and the charging interface includes N charging detection pins;
the charging circuit further includes: the signal detection pin is connected with a power supply through the first resistor;
the device terminal interface is connected with the charging interface, the signal detection pin is connected with one of the N charging detection pins, and the target voltage values are different under the condition that the signal detection pin is connected with different charging detection pins of the N charging detection pins.
5. The charging circuit according to claim 3, wherein the first signal transmission pin is a power supply VBUS pin, the second signal transmission pin is a ground GND pin, the third signal transmission pin is a data D + pin, the fourth signal transmission pin is a D-pin, the first signal transmission connection line is a VBUS connection line, the second signal transmission connection line is a GND connection line, the third signal transmission connection line is a D + connection line, and the fourth signal transmission connection line is a D-connection line.
6. The charging circuit according to claim 1, wherein the detection module comprises a detection unit and a control unit, a detection end of the detection unit is connected to the signal detection pin, and a signal sending end of the detection unit is connected to a signal receiving end of the control unit, and is configured to detect the target voltage value and send the target voltage value to the control unit;
and the control end of the control unit is respectively connected with the control ends of the N switches and is used for controlling the N switches according to the target voltage value, so that the N signal transmission pins are respectively connected with the N signal transmission connecting lines, and the target signal transmission connecting line is connected with the target signal transmission pin in the N signal transmission pins.
7. The charging circuit of claim 1, wherein the detection module is further configured to control the N switches to be in an off state if the device-side interface is not connected to the charging interface.
8. A terminal device, characterized in that it comprises a charging circuit according to any one of claims 1 to 7.
9. A charging interface is characterized in that N signal transmission pins and N charging detection pins are arranged on the charging interface, wherein the N signal transmission pins and the N charging detection pins are respectively distributed in a regular N-shaped shape, and the signal detection pin is connected with one of the N charging detection pins under the condition that the charging interface is connected with a device end interface in a charging circuit according to any one of claims 1 to 7;
and under the condition that the signal detection pin is connected with different charging detection pins in the N charging detection pins, the target voltage values are different.
10. The charging interface of claim 9, further comprising, in the charging circuit: the signal detection pins are grounded through resistors with different resistance values respectively under the condition that the signal detection pins are connected with the power supply through the first resistor, so that the target voltage values are different under the condition that the signal detection pins are connected with different charging detection pins in the N charging detection pins.
11. The charging interface of claim 9, wherein the N charging detection pins have different voltage values respectively, so that the target voltage values are different when the signal detection pin is connected to different charging detection pins of the N charging detection pins.
12. A charging device, characterized in that it comprises a charging interface according to any one of claims 9 to 11.
CN201910245345.6A 2019-03-28 2019-03-28 Charging circuit, terminal equipment, charging interface and charging equipment Active CN109888884B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910245345.6A CN109888884B (en) 2019-03-28 2019-03-28 Charging circuit, terminal equipment, charging interface and charging equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910245345.6A CN109888884B (en) 2019-03-28 2019-03-28 Charging circuit, terminal equipment, charging interface and charging equipment

Publications (2)

Publication Number Publication Date
CN109888884A CN109888884A (en) 2019-06-14
CN109888884B true CN109888884B (en) 2020-09-18

Family

ID=66935060

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910245345.6A Active CN109888884B (en) 2019-03-28 2019-03-28 Charging circuit, terminal equipment, charging interface and charging equipment

Country Status (1)

Country Link
CN (1) CN109888884B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110707782B (en) * 2019-10-31 2021-02-02 维沃移动通信有限公司 Charging control circuit, charging communication circuit, electronic device, and charging control method
CN114052774A (en) * 2020-07-29 2022-02-18 深圳迈瑞生物医疗电子股份有限公司 Power supply device of ultrasonic imaging equipment and ultrasonic imaging system
CN112702083B (en) * 2020-12-24 2022-08-12 维沃移动通信有限公司 Electronic device and communication method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106160038B (en) * 2015-03-31 2018-11-09 鸿富锦精密工业(武汉)有限公司 Charging circuit
US10554058B2 (en) * 2015-05-14 2020-02-04 Media Tek Inc. Systems and methods for monitoring an operating status of a connector
CN106253639B (en) * 2016-08-31 2019-06-21 广东百事泰电子商务股份有限公司 Positive anti-plug can recognize power supply device and intelligent charger
CN206332602U (en) * 2016-08-31 2017-07-14 广东百事泰电子商务股份有限公司 Positive anti-plug can recognize that supply unit and intelligent charger
CN108448177B (en) * 2018-03-14 2019-12-20 维沃移动通信有限公司 Charging method and terminal
CN109274159A (en) * 2018-11-23 2019-01-25 苏州蓝石新动力有限公司 A kind of charging system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MicroUSB接口也能盲插;曹操;《电脑爱好者》;20160115;全文 *

Also Published As

Publication number Publication date
CN109888884A (en) 2019-06-14

Similar Documents

Publication Publication Date Title
CN109888884B (en) Charging circuit, terminal equipment, charging interface and charging equipment
US8878484B2 (en) Methods, systems and apparatus for determining whether an accessory includes particular circuitry
US7403021B2 (en) Testing circuit for a data interface
US9083192B2 (en) Current selectable USB charger
CN107817863B (en) Method and system for managing power supply voltage of USB C-type source device
EP3155697A2 (en) Reversible connector for accessory devices
US11506725B2 (en) USB interface detection module
US9787124B2 (en) Charging device
CN111817380B (en) Charger, data line, charging equipment and electronic equipment
WO2020192549A1 (en) Charging circuit, terminal apparatus, and charging apparatus
US9979114B2 (en) Connector, socket, method for providing signals to connector by socket, electronic equipment
JP2017033461A (en) Detection circuit and detection method for reversible cable, and dual roll device of host device using the same
US8463978B2 (en) Computer with ability to charge electronic device in power off state and USB interface module thereof
US9577455B2 (en) High power charging device
US20110285377A1 (en) Data Transmission Interface and Electronic Device Using the Same
TWI776715B (en) Cable assembly capable of detecting bidirectional charging-current
US20070077817A1 (en) Power supply apparatus
US20200004307A1 (en) Electronic device
CN103001261A (en) Universal USB Charger
CN107706977B (en) Method for detecting charging current and charging device
US20150357919A1 (en) Method and system for variable output power supply
CN101545936A (en) Power supply testing device of USB connection socket
KR102145263B1 (en) Switching apparatus
CN109426641B (en) Protection circuit for USB Type C receiver aiming at high voltage
KR20190001272U (en) USB multi cable apparatus for charging mobile phones

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