A Type-C interface foreign body detection device and detection method
By combining DC and AC excitation signals through the multiplexer MUX and signal processing module, the impedance change of the Type-C interface is calculated, which solves the problem of low accuracy of foreign object detection on the Type-C interface and realizes high-precision foreign object detection and calibration verification.
Patent Information
- Application Number
- CN202510020123.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-07
- Publication Date
- 2025-10-03
- Estimated Expiration
- 2045-01-07
AI Technical Summary
In the existing technology, the accuracy of foreign object detection on the Type-C interface is low and misjudgment is prone to occur.
A combination of a multiplexer MUX, an excitation signal source, a signal processing module, an ADC, and a digital processing module is used to determine the presence of foreign matter by detecting changes in the impedance of the port. Accurate calculations are performed using DC and AC excitation signals combined with sine waves, square waves, and triangle waves.
Improves the accuracy of foreign object detection on the Type-C interface, reduces false positives, adapts to the influence of port parasitic capacitance, and provides a calibration test solution.
Smart Images

Figure CN119414475B_ABST
Abstract
Description
Technical Field
[0001] The technical problem to be solved by the present invention is to provide a foreign body detection device and a detection method thereof, in particular a Type-C interface foreign body detection device and a detection method thereof, which belongs to the field of semiconductor integrated circuit technology. Background Art
[0002] The Type-C interface is widely used in modern electronic devices due to its advantages, including support for high-speed interfaces, fast charging, and reversible insertion. However, the Type-C interface of most electronic devices is exposed when not connected, making it susceptible to the entry of foreign objects such as tap water, seawater, juice, and sweat. These liquids can also pick up various fine particles, corroding the pins between the interfaces. Electrical contact accelerates corrosion. Therefore, reliably detecting foreign objects in the Type-C interface is a technical problem that needs to be solved by those skilled in the art.
[0003] Existing technology calculates the theoretical port voltage by connecting resistors Rp, Ra, and Rd to CC1 (or CC2) during CC detection, along with current sources (e.g., 80uA, 180uA, and 330uA). When a foreign object enters the Type-C port, the port voltage deviates from the theoretical value, thereby detecting the presence of a foreign object. Some existing foreign object detection solutions suffer from a single criterion, testing only the resistance value, which can easily lead to misjudgments and low foreign object detection accuracy. Summary of the Invention
[0004] The technical problem to be solved by the present invention is to provide a Type-C interface foreign body detection device and a detection method thereof, so as to improve the accuracy of foreign body detection.
[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0006] A Type-C interface foreign object detection device includes a multiplexer MUX, an excitation signal source, a signal processing module, an ADC, and a digital processing module. The input end of the multiplexer MUX is respectively connected to multiple detection ports of the Type-C interface, the output end of the multiplexer MUX is connected to the output end of the excitation signal source and the input end of the signal processing module, the output end of the signal processing module is connected to the input end of the ADC, and the output end of the ADC is connected to the input end of the digital processing module. The multiplexer MUX selects one of the multiple detection ports of the Type-C interface for foreign object detection. The excitation signal source outputs several excitation signals. The signal processing module samples the excitation signals and converts them into digital signals through the ADC for calculation and processing by the digital processing module. The digital processing module calculates the impedance of the detection port.
[0007] Furthermore, the multiple detection ports of the Type-C interface include port DP, port DN, port SBU1, port SBU2, port CC1 and port CC2.
[0008] Furthermore, the excitation signal output by the excitation signal source includes a DC excitation signal and an AC excitation signal.
[0009] Furthermore, the DC excitation signal includes a voltage source, a current source and a current sink.
[0010] Furthermore, the AC excitation signal includes a sine wave, a square wave and a triangle wave.
[0011] A detection method for a Type-C interface foreign body detection device comprises the following steps:
[0012] S1. For a new Type-C interface, the multiplexer MUX selects a detection port of the Type-C interface.
[0013] S2. The excitation source generates several excitation signals in sequence. Each excitation signal is sampled by the signal processing module and converted into a digital signal by the ADC. Finally, the impedance of the port to be tested is calculated by the digital processing module.
[0014] S3. The multiplexer MUX selects the next detection port of the Type-C interface and repeats step S2 until all detection ports of the Type-C interface are tested, thereby obtaining the parasitic resistance and parasitic capacitance of all detection ports of the new Type-C interface.
[0015] S4: When detecting foreign objects on the Type-C interface, the multiplexer MUX selects a detection port on the Type-C interface.
[0016] S5. The excitation source generates several excitation signals in sequence. Each excitation signal is sampled by the signal processing module and converted into a digital signal by the ADC. Finally, the impedance of the port to be tested is calculated by the digital processing module.
[0017] S6. The multiplexer MUX selects the next detection port of the Type-C interface and repeats step S5 until all detection ports of the Type-C interface are tested, thereby obtaining the current resistance and current capacitance of all detection ports of the Type-C interface.
[0018] S7. Calculate the resistance difference between the current resistance and the parasitic resistance, calculate the capacitance difference between the current capacitance and the parasitic capacitance, and determine whether the resistance difference is greater than a resistance threshold. If so, there is a foreign object. Determine whether the capacitance difference is greater than a capacitance threshold. If so, there is a foreign object.
[0019] Furthermore, the calculation process of the impedance of the port to be detected in steps S2 and S5 is:
[0020] A current source or current sink is used to stimulate the port to be detected. The sampled excitation signal is processed by the signal processing module and quantized by the ADC to obtain the equation:
[0021] ;
[0022] Where R is the resistance matrix, I is the current matrix, and V is the voltage matrix, and they conform to:
[0023] ;
[0024] ;
[0025] ;
[0026] Among them, R11, R12, R21, and R22 are the values of the resistance matrix R, I11 and I12 are the values of the current matrix I, and V11 and V12 are the values of the voltage matrix;
[0027] Assume that the current of the current source applied to the port to be detected is I1, the current of the current sink is I2, the voltage of the port to be detected corresponding to the current I1 is V1, and the voltage of the port to be detected corresponding to the current I2 is V2, then:
[0028] ;
[0029] ;
[0030] ;
[0031] because , we can get
[0032] ;
[0033] Solving the above equation yields the values of resistors R1 and R2;
[0034] A sine wave is used to excite the port to be tested. The sampled excitation signal is processed by the signal processing module and quantized by the ADC. For different resistors R and capacitors C, the phase relationship between the current I and the voltage V at the port to be tested is different:
[0035] ;
[0036] We can get:
[0037] ;
[0038] in, is the phase of the current I at the port to be detected, is the phase of the voltage V at the port to be detected, is the phase difference between current I and voltage V; R is the parallel value of resistors R1 and R2, j is the imaginary number sign, is the frequency;
[0039] Calculate the equivalent capacitance C of the port to be tested based on the measured phase relationship between the current I and voltage V of the port to be tested;
[0040] Furthermore, the calculation process of the impedance of the port to be detected in steps S2 and S5 is:
[0041] A current source or current sink is used to stimulate the port to be detected. The sampled excitation signal is processed by the signal processing module and quantized by the ADC to obtain the equation:
[0042] ;
[0043] Where R is the resistance matrix, I is the current matrix, and V is the voltage matrix, and they conform to:
[0044] ;
[0045] ;
[0046] ;
[0047] Among them, R11, R12, R21, and R22 are the values of the resistance matrix R, I11 and I12 are the values of the current matrix I, and V11 and V12 are the values of the voltage matrix.
[0048] Assume that the current of the current source applied to the port to be detected is I1, the current of the current sink is I2, the voltage of the port to be detected corresponding to the current I1 is V1, and the voltage of the port to be detected corresponding to the current I2 is V2, then:
[0049] ;
[0050] ;
[0051] ;
[0052] because , we can get
[0053] ;
[0054] Solving the above equations yields the values of resistors R1 and R2.
[0055] A sine wave is used to excite the port to be tested. The sampled excitation signal is processed by the signal processing module and quantized by the ADC. For different resistors R and capacitors C, the phase relationship between the current I and the voltage V at the port to be tested is different:
[0056] ;
[0057] We can get:
[0058] ;
[0059] Among them, Im is the effective value of the current amplitude, and Vm is the effective value of the voltage amplitude.
[0060] The value of the equivalent capacitance C of the port to be detected is calculated based on the relationship between the measured current amplitude effective value Im and the voltage amplitude effective value Vm of the port to be detected.
[0061] Compared with existing technologies, the present invention has the following advantages and effects: It provides a Type-C interface foreign object detection device and detection method, which detects the impedance of the foreign object at the port to determine whether the port is foreign. It also proposes a calibration test scheme to address the effects of port parasitic capacitance during actual production and assembly. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] Figure 1 It is a schematic diagram of a Type-C interface foreign body detection device of the present invention.
[0063] Figure 2 It is a detection schematic diagram of a Type-C interface foreign body detection device of the present invention.
[0064] Figure 3 It is a schematic diagram of a calibration scheme of a Type-C interface foreign body detection device of the present invention.
[0065] Figure 4 This is a flow chart of a Type-C interface foreign body detection method of the present invention.
[0066] Figure 5 This is a schematic diagram of the pin definition of the Type-C interface of the present invention. DETAILED DESCRIPTION
[0067] In order to elaborate on the technical solutions adopted by the present invention to achieve the predetermined technical purpose, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments, and the technical means or technical features in the embodiments of the present invention can be replaced without creative work. The present invention will be described in detail below with reference to the drawings and in conjunction with the embodiments.
[0068] like Figure 1 As shown, a Type-C interface foreign object detection device of the present invention includes a multi-way selection switch MUX, an excitation signal source, a signal processing module, an ADC and a digital processing module. The input end of the multi-way selection switch MUX is respectively connected to multiple detection ports of the Type-C interface, the output end of the multi-way selection switch MUX is connected to the output end of the excitation signal source and the input end of the signal processing module, the output end of the signal processing module is connected to the input end of the ADC, and the output end of the ADC is connected to the input end of the digital processing module. The multi-way selection switch MUX selects one of the multiple detection ports of the Type-C interface for foreign object detection. The excitation signal source outputs several excitation signals. The signal processing module samples the excitation signal and converts it into a digital signal through the ADC for calculation and processing by the digital processing module. The digital processing module calculates the impedance of the detection port.
[0069] like Figure 5 As shown, the multiple detection ports of the Type-C interface include port DP, port DN, port SBU1, port SBU2, port CC1 and port CC2.
[0070] The excitation signal output by the excitation signal source includes DC excitation signals and AC excitation signals. DC excitation signals include voltage sources, current sources, and current sinks. AC excitation signals include sine waves, square waves, and triangle waves.
[0071] like Figure 2 As shown, the excitation signal source controls the switching-in of multiple excitation signal sources one by one through a switch.
[0072] like Figure 4 As shown, a detection method of a Type-C interface foreign body detection device includes the following steps:
[0073] S1. For a new Type-C interface (i.e., a Type-C interface without any foreign objects), the multiplexer MUX selects a detection port of the Type-C interface.
[0074] S2. The excitation source generates several excitation signals in sequence. Each excitation signal is sampled by the signal processing module and converted into a digital signal by the ADC. Finally, the impedance of the port to be detected is calculated by the digital processing module.
[0075] S3, the multiplexer MUX selects the next Type-C interface detection port and repeats step S2 until all Type-C interface detection ports have completed detection, such as Figure 3 As shown, the parasitic resistances R3 and R4 and the parasitic capacitances C3 and C4 of all detection ports of the new Type-C interface are obtained.
[0076] S4. When detecting foreign objects on the Type-C interface, the multiplexer MUX selects a detection port of the Type-C interface.
[0077] S5. The excitation source generates several excitation signals in sequence. Each excitation signal is sampled by the signal processing module and converted into a digital signal by the ADC. Finally, the impedance of the port to be detected is calculated by the digital processing module.
[0078] S6. The multiplexer MUX selects the next detection port of the Type-C interface and repeats step S5 until all detection ports of the Type-C interface are detected, thereby obtaining the current resistances R5 and R6 and the current capacitances C5 and C6 of all detection ports of the Type-C interface.
[0079] S7. Calculate the resistance difference between the current resistance and the parasitic resistance, calculate the capacitance difference between the current capacitance and the parasitic capacitance, and determine whether the resistance difference is greater than a resistance threshold. If so, there is a foreign object. Determine whether the capacitance difference is greater than a capacitance threshold. If so, there is a foreign object.
[0080] In the present invention, steps S1-S3 can be completed before leaving the factory and used as calibration values. These calibration values can be subtracted during actual measurement to obtain accurate measurement values.
[0081] The calculation process of the impedance of the port to be detected in steps S2 and S5 is as follows:
[0082] like Figure 2 As shown, a current source or current sink is used to excite the port to be detected. The sampled excitation signal is processed by the signal processing module and quantized by the ADC to obtain the equation:
[0083] ;
[0084] Where R is the resistance matrix, I is the current matrix, and V is the voltage matrix, and they conform to:
[0085] ;
[0086] ;
[0087] ;
[0088] Among them, R11, R12, R21, and R22 are the values of the resistance matrix R, I11 and I12 are the values of the current matrix I, and V11 and V12 are the values of the voltage matrix.
[0089] Assume that the current of the current source applied to the port to be detected is I1, the current of the current sink is I2, the voltage of the port to be detected corresponding to the current I1 is V1, and the voltage of the port to be detected corresponding to the current I2 is V2, then:
[0090] ;
[0091] ;
[0092] ;
[0093] because , we can get
[0094] ;
[0095] Solving the above equations yields the values of resistors R1 and R2.
[0096] A sine wave is used to excite the port to be tested. The sampled excitation signal is processed by the signal processing module and quantized by the ADC. For different resistors R and capacitors C, the phase relationship between the current I and the voltage V at the port to be tested is different:
[0097] ;
[0098] ;
[0099] in, is the phase of the current I at the port to be detected, is the phase of the voltage V at the port to be detected, is the phase difference between current I and voltage V, which can be measured directly at the port; R is the parallel value of resistors R1 and R2, j is the imaginary number sign, It's the frequency.
[0100] The value of the equivalent capacitance C of the port to be detected is calculated based on the measured phase relationship between the current I and the voltage V of the port to be detected.
[0101] In another embodiment, the calculation process of the impedance of the port to be detected in steps S2 and S5 is:
[0102] like Figure 2 As shown, a current source or current sink is used to excite the port to be detected. The sampled excitation signal is processed by the signal processing module and quantized by the ADC to obtain the equation:
[0103] ;
[0104] Where R is the resistance matrix, I is the current matrix, and V is the voltage matrix, and they conform to:
[0105] ;
[0106] ;
[0107] ;
[0108] Among them, R11, R12, R21, and R22 are the values of the resistance matrix R, I11 and I12 are the values of the current matrix I, and V11 and V12 are the values of the voltage matrix.
[0109] Assume that the current of the current source applied to the port to be detected is I1, the current of the current sink is I2, the voltage of the port to be detected corresponding to the current I1 is V1, and the voltage of the port to be detected corresponding to the current I2 is V2, then:
[0110] ;
[0111] ;
[0112] ;
[0113] because , we can get
[0114] ;
[0115] Solving the above equations yields the values of resistors R1 and R2.
[0116] A sine wave is used to excite the port to be tested. The sampled excitation signal is processed by the signal processing module and quantized by the ADC. For different resistors R and capacitors C, the phase relationship between the current I and the voltage V at the port to be tested is different:
[0117] ;
[0118] We can get:
[0119] ;
[0120] Among them, Im is the effective value of the current amplitude, and Vm is the effective value of the voltage amplitude.
[0121] The value of the equivalent capacitance C of the port to be detected is calculated based on the relationship between the measured current amplitude effective value Im and the voltage amplitude effective value Vm of the port to be detected.
[0122] This invention provides a Type-C interface foreign object detection device and method. By detecting the impedance of the foreign object at the port, it can determine whether the port is foreign. At the same time, it proposes a calibration test scheme to address the influence of port parasitic capacitance in actual production assembly.
[0123] The above description is merely a preferred embodiment of the present invention and does not constitute any form of limitation to the present invention. Although the present invention has been disclosed as a preferred embodiment as above, it is not intended to limit the present invention. Any technician familiar with the present profession can make some changes or modifications to equivalent embodiments of equivalent changes using the technical content disclosed above without departing from the scope of the technical solution of the present invention. However, any simple modification, equivalent replacement and improvement of the above embodiments made according to the technical essence of the present invention, within the spirit and principles of the present invention, without departing from the content of the technical solution of the present invention, shall still fall within the scope of protection of the technical solution of the present invention.
Claims
1. A Type-C interface foreign body detection device, characterized by: The invention comprises a multiplexer MUX, an excitation signal source, a signal processing module, an ADC, and a digital processing module. The input end of the multiplexer MUX is respectively connected to multiple detection ports of the Type-C interface, the output end of the multiplexer MUX is connected to the output end of the excitation signal source and the input end of the signal processing module, the output end of the signal processing module is connected to the input end of the ADC, and the output end of the ADC is connected to the input end of the digital processing module. The multiplexer MUX selects one of the multiple detection ports of the Type-C interface for foreign object detection. The excitation signal source outputs several excitation signals. The signal processing module samples the excitation signals and converts them into digital signals through the ADC for calculation and processing by the digital processing module. The digital processing module calculates the impedance of the detection port. The multiple detection ports of the Type-C interface include port DP, port DN, port SBU1, port SBU2, port CC1, and port CC2. The excitation signal output by the excitation signal source includes a DC excitation signal and an AC excitation signal. The detection method of the Type-C interface foreign object detection device includes the following steps: S1. For a new Type-C interface, the multiplexer MUX selects a detection port of the Type-C interface. S2. The excitation source generates several excitation signals in sequence. Each excitation signal is sampled by the signal processing module and converted into a digital signal by the ADC. Finally, the impedance of the port to be tested is calculated by the digital processing module. S3. The multiplexer MUX selects the next detection port of the Type-C interface and repeats step S2 until all detection ports of the Type-C interface are tested, thereby obtaining the parasitic resistance and parasitic capacitance of all detection ports of the new Type-C interface. S4: When detecting foreign objects on the Type-C interface, the multiplexer MUX selects a detection port on the Type-C interface. S5. The excitation source generates several excitation signals in sequence. Each excitation signal is sampled by the signal processing module and converted into a digital signal by the ADC. Finally, the impedance of the port to be tested is calculated by the digital processing module. S6. The multiplexer MUX selects the next detection port of the Type-C interface and repeats step S5 until all detection ports of the Type-C interface are tested, thereby obtaining the current resistance and current capacitance of all detection ports of the Type-C interface. S7. Calculate the resistance difference between the current resistance and the parasitic resistance, calculate the capacitance difference between the current capacitance and the parasitic capacitance, and determine whether the resistance difference is greater than a resistance threshold. If so, there is a foreign object. Determine whether the capacitance difference is greater than a capacitance threshold. If so, there is a foreign object. The calculation process of the impedance of the port to be detected in steps S2 and S5 is: A current source or current sink is used to stimulate the port to be detected. The sampled excitation signal is processed by the signal processing module and quantized by the ADC to obtain the equation: ; Where R is the resistance matrix, I is the current matrix, and V is the voltage matrix, and they conform to: ; ; ; Among them, R11, R12, R21, and R22 are the values of the resistance matrix R, I11 and I12 are the values of the current matrix I, and V11 and V12 are the values of the voltage matrix; Assume that the current of the current source applied to the port to be detected is I1, the current of the current sink is I2, the voltage of the port to be detected corresponding to the current I1 is V1, and the voltage of the port to be detected corresponding to the current I2 is V2, then: ; ; ; because , we can get ; Solving the above equation yields the values of resistors R1 and R2; A sine wave is used to excite the port to be tested. The sampled excitation signal is processed by the signal processing module and quantized by the ADC. For different resistors R and capacitors C, the phase relationship between the current I and the voltage V at the port to be tested is different: ; We can get: ; in, is the phase of the current I at the port to be detected, is the phase of the voltage V at the port to be detected, is the phase difference between current I and voltage V; R is the parallel value of resistors R1 and R2, j is the imaginary number sign, is the frequency; The value of the equivalent capacitance C of the port to be detected is calculated based on the measured phase relationship between the current I and the voltage V of the port to be detected.
2. A Type-C interface foreign body detection device, characterized by: The invention comprises a multiplexer MUX, an excitation signal source, a signal processing module, an ADC, and a digital processing module. The input end of the multiplexer MUX is respectively connected to multiple detection ports of the Type-C interface, the output end of the multiplexer MUX is connected to the output end of the excitation signal source and the input end of the signal processing module, the output end of the signal processing module is connected to the input end of the ADC, and the output end of the ADC is connected to the input end of the digital processing module. The multiplexer MUX selects one of the multiple detection ports of the Type-C interface for foreign object detection. The excitation signal source outputs several excitation signals. The signal processing module samples the excitation signals and converts them into digital signals through the ADC for calculation and processing by the digital processing module. The digital processing module calculates the impedance of the detection port. The multiple detection ports of the Type-C interface include port DP, port DN, port SBU1, port SBU2, port CC1, and port CC2. The excitation signal output by the excitation signal source includes a DC excitation signal and an AC excitation signal. The detection method of the Type-C interface foreign object detection device includes the following steps: S1. For a new Type-C interface, the multiplexer MUX selects a detection port of the Type-C interface. S2. The excitation source generates several excitation signals in sequence. Each excitation signal is sampled by the signal processing module and converted into a digital signal by the ADC. Finally, the impedance of the port to be tested is calculated by the digital processing module. S3. The multiplexer MUX selects the next detection port of the Type-C interface and repeats step S2 until all detection ports of the Type-C interface are tested, thereby obtaining the parasitic resistance and parasitic capacitance of all detection ports of the new Type-C interface. S4: When detecting foreign objects on the Type-C interface, the multiplexer MUX selects a detection port on the Type-C interface. S5. The excitation source generates several excitation signals in sequence. Each excitation signal is sampled by the signal processing module and converted into a digital signal by the ADC. Finally, the impedance of the port to be tested is calculated by the digital processing module. S6. The multiplexer MUX selects the next detection port of the Type-C interface and repeats step S5 until all detection ports of the Type-C interface are tested, thereby obtaining the current resistance and current capacitance of all detection ports of the Type-C interface. S7. Calculate the resistance difference between the current resistance and the parasitic resistance, calculate the capacitance difference between the current capacitance and the parasitic capacitance, and determine whether the resistance difference is greater than a resistance threshold. If so, there is a foreign object. Determine whether the capacitance difference is greater than a capacitance threshold. If so, there is a foreign object. The calculation process of the impedance of the port to be detected in steps S2 and S5 is: A current source or current sink is used to stimulate the port to be detected. The sampled excitation signal is processed by the signal processing module and quantized by the ADC to obtain the equation: ; Where R is the resistance matrix, I is the current matrix, and V is the voltage matrix, and they conform to: ; ; ; Among them, R11, R12, R21, and R22 are the values of the resistance matrix R, I11 and I12 are the values of the current matrix I, and V11 and V12 are the values of the voltage matrix; Assume that the current of the current source applied to the port to be detected is I1, the current of the current sink is I2, the voltage of the port to be detected corresponding to the current I1 is V1, and the voltage of the port to be detected corresponding to the current I2 is V2, then: ; ; ; because , we can get ; Solving the above equation yields the values of resistors R1 and R2; A sine wave is used to excite the port to be tested. The sampled excitation signal is processed by the signal processing module and quantized by the ADC. For different resistors R and capacitors C, the phase relationship between the current I and the voltage V at the port to be tested is different: ; We can get: ; Among them, Im is the effective value of the current amplitude, Vm is the effective value of the voltage amplitude; The value of the equivalent capacitance C of the port to be detected is calculated based on the relationship between the measured current amplitude effective value Im and the voltage amplitude effective value Vm of the port to be detected.
3. A Type-C interface foreign body detection device according to claim 1 or 2, characterized in that: The DC excitation signal includes a voltage source, a current source and a current sink.
4. A Type-C interface foreign body detection device according to claim 1 or 2, characterized in that: The AC excitation signal includes a sine wave, a square wave and a triangle wave.
Citation Information
Patent Citations
Water detecting circuit and electronic device having same
CN110320240A
Electronic devices and methods for detecting foreign object on connector
US20190079123A1
Sensor device
US20230194375A1