Connection circuit, method and device, electronic equipment and storage medium

By using a connection circuit design with a grounded first capacitor in the device interface, the problems of overheating, smoke, and fire during the connection process are solved, achieving a safer and more stable connection detection and power supply process.

CN121636409APending Publication Date: 2026-03-10BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

During the connection process, the device interface has a high probability of overheating, smoking, or catching fire due to foreign objects, liquid ingress, or other factors, resulting in low safety.

Method used

The connection circuit design adopts the first capacitor grounding. The first capacitor slows down the rise speed of the voltage pulse signal to facilitate device connection detection. After confirming that there is no abnormality, it switches to pull-down resistor grounding to perform charging protocol handshake.

Benefits of technology

This reduces the probability of high current generation within the interface, improves the interface's safety and stability, and ensures the safety of normal device connection testing and power supply processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121636409A_ABST
    Figure CN121636409A_ABST
Patent Text Reader

Abstract

The invention provides a connection circuit, method and device, electronic equipment and a storage medium. The circuit comprises a first capacitor, one end of the first capacitor is grounded, and the other end of the first capacitor is connected with a first pin of first equipment; wherein the first pin is used for receiving a voltage pulse signal sent by second equipment connected with the first equipment, and the first capacitor is used for slowing down the voltage rising speed of the voltage pulse signal when the second equipment is not connected with the first equipment, so that the second equipment is determined to be connected with the first equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of device connection technology, and more particularly to connection circuits, methods, apparatus, electronic devices, and storage media. Background Technology

[0002] With the development of electronic devices such as mobile phones and tablets, the scenarios in which devices are interconnected are increasing. The scenarios of charging mobile phones and tablets with chargers, as well as the scenarios of laptops and tablets reversing the charging of mobile phones, are becoming more and more common.

[0003] Because interfaces are mostly open designs, and due to environmental factors, the pins inside the interface are prone to malfunctions due to foreign objects, liquid ingress, etc., while the connecting cables may also malfunction due to aging, damage, etc. In related technologies, after devices are connected via interfaces, there is a high probability that the device interfaces will overheat due to liquid ingress, foreign objects, connector damage and short circuits, and even smoke or fire, resulting in low safety. Summary of the Invention

[0004] To overcome the problems existing in the related technologies, this disclosure provides a connection circuit, method, apparatus, electronic device and storage medium.

[0005] A first aspect of this disclosure provides a connection circuit, the circuit comprising:

[0006] A first capacitor, one end of which is grounded and the other end is connected to the first pin of the first device;

[0007] The first pin is used to receive a voltage pulse signal sent by a second device connected to the first device, and the first capacitor is used to slow down the voltage rise rate of the voltage pulse signal when the second device is not connected to the first device, so as to enable the second device to determine that it is connected to the first device.

[0008] Optionally, the circuit further includes:

[0009] A control component is configured to determine whether an abnormal state exists between the first pin and the second pin when the second device supplies power to the first device based on the second pin.

[0010] Optionally, the circuit further includes:

[0011] A first detection component connected to the first pin is used to detect the voltage of the first pin;

[0012] A control component connected to the first detection component is used to determine whether there is an abnormal state between the first pin and the second pin when the time for the voltage detected by the first detection component to rise from the first voltage to the second voltage is within a preset time interval, wherein the preset time interval is related to the first capacitor.

[0013] Optionally, the circuit further includes:

[0014] A first switch is located between the first pin and the first capacitor;

[0015] Second switch;

[0016] A pull-down resistor, one end of which is connected to the first pin via the second switch, and the other end is grounded;

[0017] The control component is also configured to, upon determining that there is no abnormal state between the first pin and the second pin, control the second switch to connect the first pin to the pull-down resistor and control the first switch to disconnect the first pin from the first capacitor, so that the first device and the second device can handshake based on the charging protocol.

[0018] Optionally, the first device and the second device are connected via a connecting line, and the preset duration interval is related to the first capacitor and the second capacitor, wherein the second capacitor includes the distributed capacitance of the connecting line.

[0019] Optionally, the first pin may include a configuration channel pin, and / or the second pin may include a power supply bus pin.

[0020] A second aspect of this disclosure provides a connection circuit, the circuit comprising:

[0021] A second detection component connected to a first pin of a second device is used to detect the voltage of the first pin of the second device. The first pin of the second device is used to connect to the first pin of the first device. The first pin of the first device is grounded through a first capacitor.

[0022] A control component connected to the second detection component is used to send a voltage pulse signal based on the first pin of the second device, and to determine whether to connect to the first device based on the voltage rise rate detected by the second detection component.

[0023] The first capacitor is used to slow down the voltage rise rate of the voltage pulse signal when the second device is not connected to the first device, so that the second device can determine that it is connected to the first device.

[0024] Optionally, the control component is configured to determine to connect to the first device when the time for the voltage detected by the second detection component to rise from the first voltage to the second voltage is within a preset time interval, wherein the preset time interval is related to the first capacitor.

[0025] Optionally, the first device and the second device are connected by a connecting line, and the preset duration interval is determined based on the first capacitor and the second capacitor, wherein the second capacitor includes the distributed capacitance of the connecting line.

[0026] Optionally, the control component is further configured to supply power to the first device via a second pin when a connection with the first device is determined.

[0027] A third aspect of this disclosure provides a connection system, the system comprising:

[0028] A first connecting circuit assembled in a first device;

[0029] The second connection circuit assembled in the second device;

[0030] The first connection circuit includes a first capacitor, one end of which is grounded and the other end is connected to a first pin of the first device, which is used to slow down the voltage rise rate of the voltage pulse signal when the second device is not connected to the first device.

[0031] The second connection circuit includes:

[0032] A second detection component connected to a first pin of the second device is used to detect the voltage of the first pin of the second device;

[0033] A control component connected to the second detection component is used to send the voltage pulse signal based on the first pin of the second device, and to determine whether to connect to the first device based on the voltage rise rate detected by the second detection component.

[0034] A fourth aspect of this disclosure provides a connection method, the method comprising:

[0035] The voltage of the first pin of the first device is detected based on the first detection component;

[0036] When the time it takes for the voltage detected by the first detection component to rise from the first voltage to the second voltage is within a preset time range, it is determined that the device is connected to the second device.

[0037] If a connection to the second device is established, determine whether there is an abnormal state between the first pin and the second pin.

[0038] Optionally, the method further includes:

[0039] If it is determined that there is no abnormal state between the first pin and the second pin, the second switch is controlled to connect the first pin to the pull-down resistor, and the first switch is controlled to disconnect the first pin from the first capacitor, so that the first device and the second device can handshake based on the charging protocol.

[0040] A fifth aspect of this disclosure provides a connection method, the method comprising:

[0041] A voltage pulse signal is transmitted based on the first pin of the second device;

[0042] The voltage of the first pin is detected based on the second detection component;

[0043] The connection to the first device is determined based on the rate of voltage rise detected by the second detection component.

[0044] A sixth aspect of this disclosure provides a connection device, the device comprising:

[0045] A first detection module is used to detect the voltage of a first pin of a first device based on a first detection component;

[0046] The first connection module is used to determine that it is connected to the second device when the time for the voltage detected by the first detection component to rise from the first voltage to the second voltage is within a preset time interval.

[0047] An anomaly detection module is used to determine whether there is an abnormal state between the first pin and the second pin when it is determined that the connection with the second device is established.

[0048] Optionally, the device further includes:

[0049] The switch control module is used to control the second switch to connect the first pin to the pull-down resistor and control the first switch to disconnect the first pin from the first capacitor when it is determined that there is no abnormal state between the first pin and the second pin, so that the first device and the second device can handshake based on the charging protocol.

[0050] A seventh aspect of this disclosure provides a connection device, the device comprising:

[0051] A pulse transmission module is used to transmit voltage pulse signals based on a first pin of a second device;

[0052] The second detection module is used to detect the voltage of the first pin based on the second detection component;

[0053] The second connection module is used to determine whether to connect to the first device based on the voltage rise rate detected by the second detection component.

[0054] The eighth aspect of this disclosure provides a computer program product including a computer program / instructions that, when executed by a processor, implement the method as described in the fourth or fifth aspect.

[0055] The ninth aspect of this disclosure provides an electronic device including the circuitry described in the first or second aspect.

[0056] The tenth aspect of this disclosure provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the fourth or fifth aspect.

[0057] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:

[0058] In this embodiment, the first pin is grounded through a first capacitor to slow down the voltage rise rate of the voltage pulse signal sent by the second device when the second device is not connected to the first device, thereby enabling the second device to determine its connection to the first device. Compared to the related art scheme where the first device pulls down the voltage pulse signal sent by the second device to ground through a pull-down resistor connected to the first pin to determine the connection of the second device to the first device, the above implementation can determine the connection of the second device to the first device without grounding the first pin. Therefore, even if there are abnormalities in the pins or connecting lines inside the interface, since there are no grounded pins in the interface, the voltage on the pins inside the interface will not form a loop to ground, naturally preventing uncontrollable large currents that could burn out the interface. This greatly reduces the probability of overheating, smoke, or fire after devices are connected via the interface, improving the safety of the interface. Furthermore, since both power supply between devices and interface anomaly detection require applying voltage to the pins, the above implementation also provides a way to enable devices to perform connection detection normally and to immediately provide power supply or perform interface anomaly detection without generating uncontrollable large currents that could burn out the interface, thus greatly improving the stability and availability of the interface.

[0059] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0060] The accompanying drawings, which are incorporated in and form part of this disclosure, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0061] Figure 1 These are schematic diagrams illustrating a connection circuit using some exemplary embodiments.

[0062] Figure 2This is a schematic diagram illustrating the level waveform presented by a first pin in some exemplary embodiments.

[0063] Figure 3 This is a flowchart illustrating one connection method using some exemplary embodiments.

[0064] Figure 4 This is a flowchart illustrating another connection method using some exemplary embodiments.

[0065] Figure 5 This is a branch diagram illustrating a connection method using some exemplary embodiments.

[0066] Figure 6 This is a branch diagram illustrating another connection method using some exemplary embodiments.

[0067] Figure 7 This is a block diagram illustrating a connection device through some exemplary embodiments.

[0068] Figure 8 This is a block diagram illustrating another connection device using some exemplary embodiments.

[0069] Figure 9 These are hardware structure diagrams of an electronic device illustrated by some exemplary embodiments. Detailed Implementation

[0070] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0071] The following section will first introduce some concepts related to charging connections.

[0072] After two devices are physically connected, the process typically involves one device supplying power to the other. This process usually involves two power supply roles: a Source device and a Sense device. The Source device is the one that can provide power, such as a power adapter, charger, or power bank. Its main task is to provide the necessary power to other devices connected to it, and it can adjust the output voltage and current according to the needs of the connected devices. The Sense device is the device that needs power, such as a mobile phone, tablet, or external hard drive. Its role is to obtain power from the Source device to support its own charging or operation.

[0073] The connection between the Sink device and the Source device is typically established through an interface, with common interfaces including USB Type-C (Universal Serial Bus Type-C, or Type-C for short). The Source device typically communicates with the Sink via a first pin (a pin used for protocol communication, such as the Configuration Channel pin CC of a Type-C interface) (e.g., for connector insertion detection and protocol communication) and supplies power to the Sink via a second pin (a pin used for power supply, such as the Power Bus pin VBUS of a Type-C interface). In this disclosure, for ease of explanation, the above example (i.e., the Type-C interface) will be used as the basis for illustrating the embodiments. However, this disclosure does not limit the specific form factor of the interface or the specific pins involved in the embodiments. Furthermore, in the following description, terms such as "the first pin of the first interface of the first device" may be omitted, and it may be simply referred to as "the first pin of the first device" to refer to the first pin of the interface in the first device used to establish a connection with the second device.

[0074] It should be understood that the concepts of "first pin" and "second pin" in this disclosure do not specifically refer to a single pin, but rather to a type of pin. For example, "first pin" can refer to the CC pin of Type-C. Therefore, each device and each interface can have a first pin and a second pin. When the first device (and similarly the second device) is not connected to the second device, the pins of the first device's interface are in an open-circuit state. At this time, the first device can only collect the physical information of the pins of the first device's interface and perform operations on the pins of the first device's interface, without involving the interfaces of multiple devices. However, when the first device and the second device establish a physical connection, physical contact occurs between the matched interfaces, and the corresponding pins of the two interfaces are connected. Although two different pins are involved, for the circuit topology, the corresponding pins of the two interfaces are equivalent to the same pin (logically, they are also the same pin). Therefore, in the following description, the pins of the two devices may not be distinguished, but are collectively referred to as "first pin," "second pin," etc.

[0075] After a physical connection is established between two devices (e.g., the pins of the interface of the first device are connected to the pins of the interface of the second device via connecting wires), in order to start the power transmission and data exchange process normally, the Sink device and the Source device usually need to go through two stages: connection detection and charging protocol handshake (of course, other stages may also be included).

[0076] For safety reasons, the Source device typically provides basic power to the Sink device after confirming a successful connection with the Sink device. Then, it negotiates and hands-on with the Sink device based on charging protocols such as PD (USB Power Delivery) and QC (Qualcomm Quick Charge) (also known as fast charging protocols or fast charging protocols; since they are mainly used to negotiate electrical parameters related to power supply, they are referred to as "charging protocols" in this disclosure) to finally determine the specific charging parameters (such as voltage and current) to be provided to the Sink device.

[0077] As described in the background section, in related technologies, when devices are connected via interfaces, the probability of the device interfaces overheating, or even producing smoke or fire, is relatively high, resulting in low safety. The following section will explain these technical problems in detail using some device connection methods from related technologies.

[0078] In one exemplary scheme, the Source device can emit a voltage pulse signal (e.g., a square wave) on the CC pin. Upon detecting the voltage pulse signal, the Sink device pulls down the CC pin via a grounded pull-down resistor, causing the voltage pulse signal on the CC pin to disappear. After detecting the disappearance of the voltage pulse signal on the CC pin, the Source device considers itself successfully connected to the Sink device (i.e., confirms a successful connection with the Source device), and can then control the VBUS pin to power on (i.e., supply power to the Sink device based on the VBUS pin). The Sink device can also confirm successful connection to the Source device (i.e., confirms a successful connection with the second device) upon detecting VBUS power-on (or detecting the voltage pulse signal on CC). When one device confirms successful connection to another, the connection detection phase for that device is complete. Next, a handshake can be performed based on the charging protocol to determine the specific electrical parameters for power supply; that is, the charging protocol handshake phase begins.

[0079] In many cases, powering on VBUS is fundamental to informing the Sink device of a successful connection with the Source device, and it's also essential for detecting any abnormalities between the VBUS pin, CC pin, and other pins. However, in the above solution, since the Sink device notifies the Source device of a successful connection by pulling down the CC pin, if a short circuit occurs between the CC pin and the VBUS pin at this point, a loop is effectively formed between the VBUS pin and ground. If the Source device then confirms the connection and begins supplying power to the VBUS pin, it could lead to serious consequences such as interface burn-out and circuit component breakdown.

[0080] In view of this, the present disclosure provides a connection circuit. This circuit can relate to both a first device and a second device.

[0081] A first aspect of this disclosure provides a connection circuit that can be applied to a first device (e.g., a Sink device), the circuit including a first capacitor; one end of the first capacitor is grounded and the other end is connected to a first pin of the first device; the first pin is used to receive a voltage pulse signal sent by a second device connected to the first device, and the first capacitor is used to slow down the voltage rise rate of the voltage pulse signal relative to when the second device is not connected to the first device, so as to enable the second device to determine that it is connected to the first device.

[0082] Please see Figure 1 C1 is the first capacitor. At this time, the first switch Q1 can be in the ON state, allowing the CC pin to be directly grounded through C1. Further control logic and... Figure 1 The other components shown will be described later. When the CC pin is in an open-circuit state (i.e., the state presented by the CC pin when the second device is not connected to the first device), the voltage presented on the CC pin will respond rapidly when a voltage pulse is applied to the CC pin by the Source device. For example, see [link to relevant documentation]. Figure 2 The horizontal axis represents time, and the vertical axis represents the voltage level of the CC pin. Before the Source device is connected, the CC pin is in an open-circuit state. When the Source device applies a square wave voltage to the CC pin, the CC pin will display that square wave voltage. However, because the first device grounds the CC pin through the first capacitor, due to the physical characteristics (charging) of the capacitor, when the Source device pulls up the voltage level of the CC pin, the voltage level of the CC pin will show a special slow growth trend (i.e., the square wave degrades). This trend is related to the characteristics of the first capacitor and can be distinguished from when the second device is not connected to the first device.

[0083] Compared to the related art method where the first device pulls down the voltage pulse signal sent by the second device to ground through a pull-down resistor connected to the first pin, so that the second device determines its connection to the first device, the above-described embodiment can determine the connection of the second device to the first device without grounding the first pin. Therefore, even if there is an abnormality in the pins or connecting wires inside the interface, since there are no grounded pins in the interface, the voltage on the pins inside the interface will not form a loop to ground, and naturally, no uncontrollable large current will be generated, which could lead to interface burnout. This greatly reduces the probability of overheating, smoke, and fire after devices are connected through the interface, and improves the safety of the interface.

[0084] Furthermore, since both power supply between devices and interface anomaly detection require applying voltage to the pins, the above implementation also provides a way to enable devices to perform connection detection normally and to immediately provide power supply or perform interface anomaly detection without generating uncontrollable large currents that could burn out the interface, thus greatly improving the stability and availability of the interface.

[0085] It should be understood that if the process of the Source device restoring the level of the CC pin to a low level is not based on a similar method of pulling down the CC pin, then the falling edge of the level waveform presented by the CC pin will also be affected by the first capacitor and change. Therefore, in this case, "rising" in this embodiment can also be replaced by "falling". The judgment idea is the same as the judgment idea for the rising edge, that is, the voltage drop speed of the voltage pulse signal is used to determine whether it is connected to the first device.

[0086] Furthermore, as mentioned above, when the first device determines that it is connected to the second device, the first device can determine whether there is an abnormal state between the first pin and the second pin.

[0087] For example, the first device can determine whether to establish a connection with the second device after detecting VBUS power-on. The control component can be used to determine whether there is an abnormal state between the first pin and the second pin when the second device supplies power to the first device through the second pin. Specifically, for example, it can determine whether there is an abnormality between the first pin and the second pin by measuring the resistance between the first pin and the second pin and comparing the resistance with a preset normal resistance range; or, it can determine whether there is an abnormality between the first pin and the second pin by measuring the temperature of the first pin and the second pin (of course, it can also measure the temperature of other pins, components, or directly measure the temperature of the interface where the first pin is located) and comparing the measured temperature with a temperature threshold (or comparing the rate of temperature rise with a temperature rise rate threshold); or, it can also determine whether there is an abnormality between the first pin and the second pin by measuring the electrical state of some pins in the interface (e.g., testing whether there is a short circuit between some pins, or whether the voltage of some pins is normal). Of course, the above "determining whether there is an abnormality between the first pin and the second pin" can also be extended to "determining whether the interface where the first pin and the second pin are located is abnormal" and "determining whether the connection path between the second device and the first device is abnormal", which is not limited in this disclosure.

[0088] As another example, the circuit described above may further include a first detection component connected to the first pin and a control component connected to the first detection component; wherein, the first detection component is used to detect the voltage of the first pin; the control component is used to determine whether there is an abnormal state between the first pin and the second pin when the time for the voltage detected by the first detection component to rise from the first voltage to the second voltage is within a preset time interval, and when it is determined that the circuit is connected to the second device, wherein the second device may be used to supply power to the first device based on the second pin, and the preset time interval is related to the first capacitor.

[0089] The above-described steps can also be applied to the functional uses of other components included in the circuit provided in this disclosure, as well as to other similar steps included in the method provided in this disclosure. As mentioned earlier, after the second device sends a voltage pulse signal based on the CC pin, if the first device and the second device are successfully connected, the waveform of the voltage pulse signal will be degraded due to the influence of the capacitance. Therefore, if the first device detects a degraded voltage pulse signal on the CC pin, it can determine that the second device has sent a voltage pulse signal on the CC pin, and that the voltage pulse signal has been degraded due to the influence of the first capacitor assembled in the first device. Therefore, the first device can determine that it has successfully connected with the second device.

[0090] Specifically, when the second device sends a voltage pulse signal to the CC pin, it can continuously pull the level of the CC pin from low to high and then pull it back down. In other words, the level of the CC pin will oscillate between high and low. Therefore, the first voltage can be set to a low level and the second voltage to a high level, and the difference between the moment the voltage reaches the first voltage and the moment it continues to rise and reaches the second voltage (hereinafter referred to as the rise time) can be detected to be within a preset time threshold.

[0091] The preset duration interval is a physical quantity used to measure whether the electrical characteristics of the voltage pulse signal conform to the electrical characteristics exhibited after the CC pin is connected to the first capacitor. For example, if the voltage of the CC pin is quickly raised during the process of the second device raising the voltage of the CC pin (i.e., the rise time is very short), then it can be considered that the voltage rise of the CC pin has not yet been affected by the first capacitor, and therefore it can be considered that no physical connection has been established between the first and second devices. However, if the voltage rise of the CC pin is very slow during the process of the second device raising the voltage of the CC pin (i.e., the rise time is very long), then it can be considered that there is a problem with the CC pin, such as a short circuit between the CC pin and the GND pin (ground pin) causing the CC pin to be grounded (at this time, the voltage of the CC pin is clamped to a low level, and the rise time can be understood as positive infinity), or other similar problems (such as a broken connection wire causing the CC pin to be approximately grounded), then the rise time will be significantly prolonged. Therefore, the above-mentioned preset duration interval can be obtained through experiments and calculations based on the above principles.

[0092] For example, at least one endpoint of the aforementioned preset duration interval can be determined based on the value of the first capacitor. In some cases, the first device and the second device are connected via a connecting line, and the preset duration interval is related to the first capacitor and the second capacitor, the second capacitor including the distributed capacitance of the connecting line. The second capacitor is... Figure 1 The value of C2 shown is typically defined by the protocol to which the connection cable belongs, and can also be determined based on general experiments. This improves the accuracy of the preset time interval, thereby enhancing the accuracy of the connection detection process and preventing situations such as insertion failing to identify the connection, or abnormal connections being identified as normal connections. Of course, it should be understood that the reference dimensions for the endpoints of the aforementioned preset time interval are not limited to C1 and C2; other environmental factors related to the CC pins of the first device's interface and the second device's interface, as well as the connected electrical components, can also be taken into account.

[0093] In summary, when the rising edge duration is within a moderate range, it can be considered that a physical connection has been successfully established between the first device and the second device, and this physical connection has no obvious problems (e.g., the CC pin is grounded due to a broken connection wire). In this case, the first device can be considered to have established a connection with the second device, and the second device can be considered to have established a connection with the first device.

[0094] It is worth noting that in the above steps, the first voltage can be a value greater than the low-level voltage, and the second voltage can be a value less than the high-level voltage, i.e., as follows: Figure 2As shown in the diagram. This is because the voltage of the CC pin may be subject to uncertainty due to the electrical components connected to the conductor and environmental factors; taking a portion of the rising edge under ideal conditions as the basis for judging the rising edge speed can improve the stability, availability, and robustness of the circuit and its associated functions and connection methods.

[0095] In some embodiments, in order to further initiate the charging protocol handshake process after the connection detection process is completed, the above-mentioned detection of interface abnormal state can be completed with the CC pin grounded through the first capacitor. When the first device determines that there is no abnormal state of the interface, the method of grounding the CC pin through the first capacitor can be switched to grounding through the pull-down resistor, so that the CC pin is restored to the general pull-down ground state, so as to notify the second device that no abnormality has been found in the connection path between the second device and the first device and the charging protocol handshake can be started. At the same time, it can also provide conditions for the charging protocol handshake process (because in some charging protocols, the handshake process needs to rely on the pull-down resistor connected to the CC pin).

[0096] Therefore, the circuit may further include: a first switch, a second switch, and a pull-down resistor disposed between the first pin and the first capacitor; one end of the pull-down resistor is connected to the first pin through the second switch, and the other end is grounded; and the control component is further configured to, when it is determined that there is no abnormal state between the first pin and the second pin, control the second switch to connect the first pin to the pull-down resistor, and control the first switch to disconnect the first pin from the first capacitor, so that the first device and the second device can handshake based on the charging protocol.

[0097] Please see Figure 1Q1 is the first switch, Q2 is the second switch, C1 is the first capacitor, and Rd is the pull-down resistor. When the interface of the Sink device is in an unconnected state (e.g., when VBUS is powered off), Q1 can be turned on and Q2 can be turned off to make the circuit connection state as shown in some of the previous embodiments. After the connection detection is initiated, VBUS is powered on, and the Sink device checks and confirms that no abnormality is found in the path between the Sink device and the Source device, the Sink device can control Q1 to be turned off and Q2 to be turned on, so that the circuit connection state returns to the more common pull-down state, to notify the Source device to start the charging protocol handshake, and to provide the necessary support for the charging protocol handshake phase. Based on this, the circuit provided in this disclosure can not only implement the connection detection process and the abnormality detection process while ensuring interface security, but also restore the circuit to a general connection state after these steps to support a large number of charging protocols. It takes into account the security and universality of the circuit, greatly improves the availability of the circuit, and reduces the adaptation difficulty of other software and hardware related to the above circuit.

[0098] A second aspect of this disclosure provides a connection circuit that can be applied to a second device (e.g., a source device) and can cooperate with the circuit provided in the first aspect, the circuit including:

[0099] A second detection component connected to a first pin of a second device is used to detect the voltage of the first pin of the second device. The first pin of the second device is used to connect to the first pin of the first device. The first pin of the first device is grounded through a first capacitor.

[0100] A control component connected to the second detection component is used to send a voltage pulse signal based on the first pin of the second device, and to determine whether to connect to the first device based on the voltage rise rate detected by the second detection component.

[0101] The first capacitor is used to slow down the voltage rise rate of the voltage pulse signal when the second device is not connected to the first device, so that the second device can determine that it is connected to the first device.

[0102] Please see Figure 1The second detection component can be located in the Source device and detect the voltage level presented by the CC pin. Since the first capacitor is used to slow down the voltage rise rate of the voltage pulse signal relative to when the second device is not connected to the first device, the control component can determine connection to the first device in response to the slowing down of the voltage rise rate of the voltage pulse signal. That is, connection to the first device can be determined by detecting the relative change in the voltage pulse signal. Alternatively, objective judgment conditions can be used to determine whether a connection with the first device has been successfully established, for example, using a judgment method similar to that described in the first aspect. That is, the control component determines connection to the first device when the time for the voltage detected by the second detection component to rise from a first voltage to a second voltage is within a preset time interval, wherein the preset time interval is related to the first capacitor. Of course, as described in the first aspect embodiment, this interval can also be related to the second capacitor and other components. That is, the first device and the second device are connected by a connecting line, and the preset time interval is determined based on the first capacitor and the second capacitor, the second capacitor including the distributed capacitance of the connecting line.

[0103] As a source device, the control components of the second device can also be used to supply power to the first device via a second pin when a connection with the first device is determined. For example, when a connection with the first device is determined, power can be supplied to the Sink device via the VBUS pin to enable the first device to obtain power and to confirm a successful connection with the first device. For details regarding the above circuitry, please refer to the first aspect embodiment, which will not be repeated here.

[0104] It is worth noting that the anomaly detection functions and steps provided in the first aspect embodiment can also be applied to the second device, i.e., in combination with the second aspect embodiment. For example, the second device can determine whether there is an anomaly between the first pin and the second pin when it is determined to be connected to the first device, and notify the first device of the determination result, which will not be elaborated here.

[0105] A third aspect of this disclosure provides a connection system, the system comprising:

[0106] A first connecting circuit assembled in a first device;

[0107] The second connection circuit assembled in the second device;

[0108] The first connection circuit may include a first capacitor, one end of which is grounded and the other end is connected to a first pin of the first device, for slowing down the voltage rise rate of the voltage pulse signal when the second device is not connected to the first device.

[0109] The second connection circuit may include:

[0110] A second detection component connected to a first pin of the second device is used to detect the voltage of the first pin of the second device;

[0111] A control component connected to the second detection component is used to send the voltage pulse signal based on the first pin of the second device, and to determine whether to connect to the first device based on the voltage rise rate detected by the second detection component.

[0112] The above system can be a system composed of the connection circuit provided in the first aspect embodiment and the connection circuit provided in the second aspect embodiment (e.g.) Figure 1 (as shown in the overall form), and the interface of the first device equipped with the connection circuit provided in the first aspect embodiment can be connected to the interface of the second device equipped with the connection circuit provided in the second aspect embodiment through a connecting line or other means. For related exemplary technical details and beneficial effects, please refer to the specific description in other embodiments of this disclosure, which will not be repeated here.

[0113] The connection method provided in the embodiments of this disclosure will be described next from the perspectives of the first device (which may be a S nk device) and the second device (which may be a source device).

[0114] This fourth aspect of the disclosure provides a connection method applicable to the circuits provided in the first aspect and other similar circuits. Please refer to... Figure 3 It may include steps S301 to S303.

[0115] Step S301: Detect the voltage of the first pin of the first device based on the first detection component.

[0116] Step S302: When the time it takes for the voltage detected by the first detection component to rise from the first voltage to the second voltage is within a preset time range, it is determined that the device is connected to the second device.

[0117] Step S303: If a connection with the second device is confirmed, determine whether there is an abnormal state between the first pin and the second pin.

[0118] For example, the above steps can be performed by a control component in the connection circuit provided in the first aspect. This component first detects the voltage of the first pin of the first device based on the first detection component, then determines whether a successful connection with the second device has been established based on the aforementioned judgment logic. Finally, if a connection with the second device is established, it determines whether an abnormal state exists between the first pin and the second pin. If an abnormal state is established between the first pin and the second pin, an attempt can be made to eliminate this abnormal state or report it to the user. If an abnormal state is established between the first pin and the second pin, a second switch is controlled to connect the first pin to the pull-down resistor, and a first switch is controlled to disconnect the first pin from the first capacitor, so that the first device and the second device can handshake based on the charging protocol.

[0119] When it is determined that there is no abnormal state between the first pin and the second pin, the above method may further include: controlling the second switch to connect the first pin to the pull-down resistor, and controlling the first switch to disconnect the first pin from the first capacitor, so that the first device and the second device can handshake based on the charging protocol.

[0120] The fifth aspect of this disclosure provides a connection method applicable to the circuits provided in the second aspect and other similar circuits. Please refer to... Figure 4 It may include steps S401 to S403.

[0121] Step S401: A voltage pulse signal is sent based on the first pin of the second device.

[0122] Step S402: Detect the voltage of the first pin based on the second detection component.

[0123] Step S403: Determine whether to connect to the first device based on the voltage rise rate detected by the second detection component.

[0124] For example, the above method can be executed based on the control components in the circuit provided in the second aspect. Specific details and beneficial effects of the embodiments of the fourth and fifth aspects can be found in the relevant descriptions in the foregoing embodiments; here, only the examples provided are used. Figure 5 and Figure 6 The branch diagram shown briefly summarizes the optional steps of the fourth and fifth aspect embodiments described above.

[0125] For source devices (such as a second device), please refer to [link to relevant documentation]. Figure 5 The control component can send a pulse waveform on the CC pin (S501) and determine whether the rising edge duration of the waveform is within the preset duration range (S502).

[0126] If not, continue sending waveforms and continue detection; if yes, confirm successful connection with the first device and control VBUS to power on (S503). At this time, the first device can perform an abnormal state detection step (of course, this step can also be performed by the second device and notified to the first device), and after confirming that there is no abnormality, disconnect the CC pin from the first capacitor, and ground the CC pin through a preset pull-down resistor to notify the second device to start a handshake based on the charging protocol.

[0127] In S504, the second device can determine whether the first device pulls down the CC pin within the preset waiting time. If it does, the first device has completed the abnormal state detection and determined that the connection path is normal. Then the second device can initiate a handshake based on the charging protocol to determine the specific electrical parameters on which to supply power to the first device in the subsequent process (S505a).

[0128] If the first device does not pull down the CC pin within the preset waiting time, it may be due to a problem during the anomaly detection process, or the anomaly in the connection path may have been detected and reported to the user but has not been resolved. In this case, it can be considered that it is not suitable to continue powering the circuit based on the VBUS pin. The second device can then control the VBUS to power down (S505b) to protect the circuit safety to the greatest extent.

[0129] For Sink devices (e.g., the first device), please refer to [link to relevant documentation]. Figure 6 The first device can acquire the voltage pulse waveform on the CC pin based on the first detection component (in this disclosure, unless otherwise specified, the voltage and level values ​​involved in descriptions such as "level of CC pin" are generally considered to be acquired by the corresponding detection component) (S601), and then determine whether the rising edge duration of the waveform is within the preset duration interval (S602).

[0130] If not, the detection and judgment steps can continue; if yes, the second device will also supply power to the first device based on VBUS because the judgment condition in S502 is met. Then the first device can receive the power supply (S603) and start detecting whether the interface status is abnormal (S604). It is worth noting that steps S603 and S604 do not necessarily have a fixed order. For example, S603 can be passively received without any conditions, while S604 can be executed in response to S603 (i.e., after VBUS is powered on, it is considered that a connection has been established with the second device), or it can be executed in response to the condition in S602 being true. The logic shown in the accompanying drawings of this disclosure is only exemplary.

[0131] After S604 detects that the interface status (which can be broadly detected in various ways to determine if there is an abnormality in the connection currently established between the first and second devices) is normal, the connection between the CC pin and the first capacitor can be disconnected, and the connection between the CC pin and the pull-down resistor can be turned on (S605a). If the interface status is abnormal, the user can be prompted in S605b that the interface is abnormal (for example, if the first device is a mobile phone, the first device can remind the user "the connection status is abnormal, please clean the interface or replace the charging cable in time" through a visual pop-up or voice broadcast), and S604 will continue to be executed in subsequent processes (for example, periodically).

[0132] Corresponding to the embodiments of the foregoing methods, this disclosure also provides embodiments of the apparatus and the terminal to which it is applied.

[0133] The sixth aspect of this disclosure provides a connection device; please refer to [link / reference]. Figure 7 The device may include:

[0134] The first detection module 701 is used to detect the voltage of the first pin of the first device based on the first detection component;

[0135] The first connection module 702 is used to determine that it is connected to the second device when the time for the voltage detected by the first detection component to rise from the first voltage to the second voltage is within a preset time interval.

[0136] Anomaly detection module 703 is used to determine whether there is an abnormal state between the first pin and the second pin when it is determined that the device is connected to the second device.

[0137] Optionally, the device further includes:

[0138] The switch control module is used to control the second switch to connect the first pin to the pull-down resistor and control the first switch to disconnect the first pin from the first capacitor when it is determined that there is no abnormal state between the first pin and the second pin, so that the first device and the second device can handshake based on the charging protocol.

[0139] The seventh aspect of this disclosure provides a connection device; please refer to [link / reference]. Figure 8 The device may include:

[0140] The pulse transmission module 801 is used to transmit a voltage pulse signal based on the first pin of the second device;

[0141] The second detection module 802 is used to detect the voltage of the first pin based on the second detection component;

[0142] The second connection module 803 is used to determine whether to connect to the first device based on the voltage rise rate detected by the second detection component.

[0143] The specific implementation process of the functions and roles of each module in the above device can be found in the implementation process of the corresponding steps in the above method, and will not be repeated here.

[0144] The eighth aspect of this disclosure provides a computer program product including a computer program / instructions that, when executed by a processor, implement the method as described in the fourth or fifth aspect.

[0145] For the device embodiments and computer program product embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. Furthermore, the device embodiments described above are merely illustrative; the modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, i.e., they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this disclosure according to actual needs. Those skilled in the art can understand and implement this without any inventive effort.

[0146] Ninthly, embodiments of the connection circuits and connection devices provided in this disclosure can be applied to electronic devices. See also... Figure 9 The illustration exemplifies a hardware schematic of an electronic device. For example, device 900 could be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0147] Device 900 may include one or more of the following components: processing component 901, memory 902, power supply component 903, multimedia component 904, audio component 905, input / output (I / O) interface 906, sensor component 907, and communication component 908.

[0148] Processing component 901 typically controls the overall operation of device 900, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 901 may include one or more processors 909 to execute instructions to complete all or part of the steps of the methods described above. Furthermore, processing component 901 may include one or more modules to facilitate interaction between processing component 901 and other components. For example, processing component 901 may include a multimedia module to facilitate interaction between multimedia component 904 and processing component 901.

[0149] Memory 902 is configured to store various types of data to support the operation of device 900. Examples of this data include instructions for any application or method operating on device 900, contact data, phonebook data, messages, pictures, videos, etc. Memory 902 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0150] The power supply component 903 provides power to the various components of the device 900. The power supply component 903 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to the device 900.

[0151] Multimedia component 904 includes a screen that provides an output interface between the device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 904 includes a front-facing camera and / or a rear-facing camera. When the device 900 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0152] Audio component 905 is configured to output and / or input audio signals. For example, audio component 905 includes a microphone (MIC) configured to receive external audio signals when device 900 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 902 or transmitted via communication component 908. In some embodiments, audio component 905 also includes a speaker for outputting audio signals.

[0153] I / O interface 906 provides an interface between processing component 901 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0154] Sensor assembly 907 includes one or more sensors for providing status assessments of various aspects of device 900. For example, sensor assembly 907 can detect the on / off state of device 900, the relative positioning of components such as the display and keypad of device 900, changes in the position of device 900 or a component of device 900, the presence or absence of user contact with device 900, the orientation or acceleration / deceleration of device 900, and temperature changes of device 900. Sensor assembly 907 may also include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 907 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 907 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.

[0155] Communication component 908 is configured to facilitate wired or wireless communication between device 900 and other devices. Device 900 can access wireless networks based on communication standards, such as Wi-Fi, 2G or 3G, 4G or 5G, or combinations thereof. In one exemplary embodiment, communication component 908 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 908 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IRDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0156] In an exemplary embodiment, device 900 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the connection method of the above-described electronic device.

[0157] In a tenth aspect, this disclosure also provides a non-transitory computer-readable storage medium including instructions, such as a memory 902 including instructions, which can be executed by a processor 909 of a device 900 to complete the connection method of the electronic device described above. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0158] The foregoing has described specific embodiments of this disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired results. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0159] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention applied herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not claimed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0160] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

[0161] The above description is merely a preferred embodiment of this disclosure and is not intended to limit this disclosure. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.

Claims

1. A connection circuit, characterized by The circuit comprises: a first capacitor, one end of which is grounded and the other end of which is connected to a first pin of a first device; wherein the first pin is configured to receive a voltage pulse signal transmitted by a second device connected to the first device, and the first capacitor is configured to slow down a voltage rising speed of the voltage pulse signal relative to a case where the second device is not connected to the first device, so that the second device determines that the first device is connected.

2. The connection circuit according to claim 1, characterized in that, The circuit further comprises: a control component configured to determine whether an abnormal state exists between the first pin and a second pin of the first device in a case where the second device supplies power to the first device based on the second pin.

3. The connection circuit according to claim 1, characterized in that, The circuit further comprises: a first detection component connected to the first pin and configured to detect a voltage of the first pin; a control component connected to the first detection component and configured to determine whether an abnormal state exists between the first pin and the second pin in a case where the first detection component detects that the voltage rises from a first voltage to a second voltage within a preset time interval, wherein the preset time interval is related to the first capacitor.

4. The connection circuit according to claim 2 or 3, characterized in that, The circuit further comprises: a first switch arranged between the first pin and the first capacitor; a second switch; a pull-down resistor, one end of which is connected to the first pin through the second switch and the other end of which is grounded; The control component is further configured to control the second switch to turn on the first pin and the pull-down resistor and control the first switch to disconnect the first pin and the first capacitor in a case where it is determined that no abnormal state exists between the first pin and the second pin, so that the first device and the second device perform handshake based on a charging protocol.

5. The connection circuit according to claim 3, characterized in that, The first device and the second device are connected through a connection line, the preset time interval is related to the first capacitor and a second capacitor, and the second capacitor includes a distributed capacitance of the connection line.

6. The connection circuit according to claim 1, characterized in that, The first pin includes a configuration channel pin, and / or the second pin includes a power supply bus pin.

7. A connection circuit, characterized by The circuit comprises: a second detection component connected to a first pin of a second device and configured to detect a voltage of the first pin of the second device, the first pin of the second device being configured to be connected to a first pin of a first device, and the first pin of the first device being grounded through a first capacitor; a control component connected to the second detection component and configured to transmit a voltage pulse signal based on the first pin of the second device and determine whether the first device is connected according to a voltage rising speed detected by the second detection component; wherein the first capacitor is configured to slow down a voltage rising speed of the voltage pulse signal relative to a case where the second device is not connected to the first device, so that the second device determines that the first device is connected.

8. The connection circuit according to claim 7, characterized in that The control component is configured to determine that the first device is connected in a case where the voltage detected by the second detection component rises from a first voltage to a second voltage within a preset time interval, wherein the preset time interval is related to the first capacitor. The control component is configured to determine that the first device is connected in a case where the voltage detected by the second detection component rises from a first voltage to a second voltage within a preset time interval, wherein the preset time interval is related to the first capacitor.

9. The connection circuit according to claim 8, characterized in that The first device is connected with the second device through a connecting line, and the preset time interval is determined according to the first capacitance and the second capacitance, and the second capacitance includes a distributed capacitance of the connecting line.

10. The connection circuit of claim 7, wherein The control component is further configured to supply power to the first device based on the second pin when it is determined that the first device is connected.

11. A connection system, characterized in that The system comprises: a first connection circuit arranged in the first device; a second connection circuit arranged in the second device; The first connection circuit comprises a first capacitance, one end of which is grounded and the other end of which is connected with a first pin of the first device, for slowing down a voltage rising speed of a voltage pulse signal when the second device is not connected with the first device. The second connection circuit comprises: a second detection component connected with the first pin of the second device, for detecting a voltage of the first pin of the second device; a control component connected with the second detection component, for sending the voltage pulse signal based on the first pin of the second device, and determining whether the first device is connected according to the voltage rising speed detected by the second detection component.

12. A method of connecting, characterized by The method comprises: detecting a voltage of a first pin of a first device based on a first detection component; determining that the first device is connected when a time interval during which the voltage detected by the first detection component rises from a first voltage to a second voltage is within a preset time interval; determining whether an abnormal state exists between the first pin and a second pin when it is determined that the first device is connected.

13. The method of joining according to claim 12, wherein, The method further comprises: controlling a second switch to turn on the first pin and a pull-down resistor, and controlling a first switch to disconnect the first pin and the first capacitance, so that the first device and the second device perform handshake based on a charging protocol when it is determined that the abnormal state does not exist between the first pin and the second pin.

14. A method of connecting, characterized by The method comprises: sending a voltage pulse signal based on a first pin of a second device; detecting a voltage of the first pin based on a second detection component; determining whether a first device is connected according to a voltage rising speed detected by the second detection component.

15. A connection device, characterized in that The apparatus comprises: a first detection module configured to detect a voltage of a first pin of a first device based on a first detection component; a first connection module configured to determine that a second device is connected when a time interval during which the voltage detected by the first detection component rises from a first voltage to a second voltage is within a preset time interval; an abnormality detection module configured to determine whether an abnormal state exists between the first pin and a second pin when it is determined that the first device is connected.

16. A connection device, characterized in that The apparatus comprises: a pulse sending module configured to send a voltage pulse signal based on a first pin of a second device; a second detection module configured to detect a voltage of the first pin based on a second detection component; a second connection module configured to determine whether a first device is connected according to a voltage rising speed detected by the second detection component.

17. A computer program product comprising computer programs / instructions, characterized in that, The computer program / instructions, when executed by a processor, implement the method of any one of claims 12 to 14.

18. An electronic device, comprising: The circuit comprises any one of claims 1 to 10. The circuit comprises any one of claims 1 to 10.

19. A computer readable storage medium having stored thereon a computer program, characterized in that, The program, when executed by the processor, implements the method of any one of claims 12 to 14.