Data line test system and method supporting fast charge mode switching

By analyzing the voltage data during the data cable testing process, the system can determine the success of the charging protocol matching and evaluate the degree of voltage compliance at each charging stage. This solves the problem of low reliability of data cable performance test results in existing technologies and achieves more accurate performance evaluation.

CN121324801AActive Publication Date: 2026-01-13LEAGTECH DONGGUAN ELECTRONIC CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202511815502.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-04
Publication Date
2026-01-13
Estimated Expiration
2045-12-04

AI Technical Summary

Technical Problem

Existing technologies cannot effectively detect whether a data cable can correctly identify, switch, and stably support multiple fast charging protocols, resulting in low reliability of performance test results.

Method used

By acquiring voltage data during the data cable test, analyzing the relative changes in voltage before and after the handshake and the voltage fluctuation characteristics during the handshake process, we can determine whether the charging protocol is successfully matched. After successful matching, we evaluate the degree of voltage compliance and change factors at each charging stage, and comprehensively evaluate the performance of the data cable.

Benefits of technology

This improves the reliability and accuracy of data cable performance test results, avoids the misplacement of overall performance deficiencies due to occasional outstanding performance at a single test moment, and enables an objective and comprehensive judgment on the overall performance of the data cable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121324801A_ABST
    Figure CN121324801A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data line performance testing, in particular to a data line testing system and method supporting fast charge mode switching. The method comprises the following steps: acquiring voltage data in a data line test process, evaluating the complexity of voltage change in an initial test process based on the relative change of voltage before and after handshake in the initial test process and the fluctuation characteristic of the voltage data in the handshake process, and judging whether a charging protocol is successfully matched or not by combining the change condition of the voltage data; if the matching is successful, evaluating the voltage coincidence degree of each charging stage according to the difference between the voltage data of each charging stage under each charging protocol in the secondary test process and the preset voltage and the fluctuation characteristic of the voltage data; and in combination with the relative change of the voltage before and after handshake and the fluctuation characteristic of the voltage data in the handshake process, obtaining the change factor of each charging stage under each charging protocol, thereby evaluating the performance of the data line. According to the invention, the reliability of the data line performance test result is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of data line performance testing, and in particular to a data line testing system and method supporting fast charging mode switching. BACKGROUND

[0002] With the popularity of smart phones, tablets, laptops and other portable electronic devices, users have increasingly high requirements for charging speed. High-speed charging is achieved by increasing voltage, current or dynamically adjusting power. The core implementation process not only depends on the charger and the device itself, but also closely related to the data line connecting the two. The data line needs to communicate with the charger and the device through a specific electronic marker chip to negotiate and activate the corresponding fast charging mode. Traditional data line testing methods mainly focus on basic electrical performance (such as on-resistance, current carrying capacity) and physical durability, and cannot effectively detect whether the data line can correctly identify, switch and stably support multiple fast charging protocols.

[0003] In the existing method, the test of the data line mainly focuses on the basic electrical performance and the physical connection reliability, such as the direct current resistance and the voltage drop test method, by applying a constant current, measuring the voltage drop between the two ends of the data line to calculate the conductor resistance, evaluating its current carrying capacity and power transmission efficiency. This single protocol static test is difficult to simulate the complex scene of multi-protocol dynamic switching in actual use, and cannot accurately capture the instantaneous electrical parameter changes in the mode switching process, making it difficult to meet the needs of product research and development verification and mass production quality control, resulting in low credibility of the performance test results of the data line. SUMMARY

[0004] In order to solve the problem of low credibility of performance test results of the data line in the existing method when testing the performance of the data line, the purpose of the present application is to provide a data line testing system and method supporting fast charging mode switching, and the technical solution adopted is as follows: In a first aspect, the present application provides a data line testing method supporting fast charging mode switching, which comprises the following steps: Obtaining voltage data in the data line testing process, the testing process including an initial testing process and a secondary testing process; Based on the relative change of voltage before and after handshaking in the initial testing process and the fluctuation characteristics of voltage data in the handshaking process, evaluating the complexity of voltage change in the initial testing process; based on the complexity of the initial testing process and the change of voltage data, determining whether the charging protocol is successfully matched; if the charging protocol matches successfully, then according to the difference between the voltage data of each charging stage under each charging protocol in the secondary test process and the preset voltage, and the fluctuation characteristics of the voltage data, the voltage compliance of each charging stage is evaluated respectively; the change factor of each charging stage under each charging protocol is obtained in combination with the relative change of the voltage before and after the handshake of each charging stage under each charging protocol, the fluctuation characteristics of the voltage data in the handshake process and the voltage compliance; The performance of the data line is evaluated according to the change factors of all charging stages under different charging protocols.

[0005] Preferably, the complexity of the voltage change in the initial test process is evaluated based on the relative change of the voltage before and after the handshake and the fluctuation characteristics of the voltage data in the handshake process, and includes: The first ratio of the voltage after the handshake to the voltage before the handshake in the initial test process is calculated respectively, and the first variance of the data in the difference sequence corresponding to the voltage data sequence is calculated, the voltage data sequence being obtained by arranging the voltage data in the handshake process in the initial test process in time sequence; The complexity of the voltage change in the initial test process is obtained according to the first ratio and the first variance.

[0006] Preferably, whether the charging protocol matches successfully is determined based on the complexity of the initial test process and the change of the voltage data, and includes: In time sequence, whether each time after the handshake in the initial test process meets the preset condition is judged in turn, and the first time meeting the preset condition is taken as the stable time; The preset condition is that the normalized result of the mean value of the data in the difference sequence corresponding to the first voltage data sequence is less than the preset difference threshold; wherein, the first voltage data sequence is obtained by constructing the voltage data sequence of all time points in the local time period of each time point into the first voltage data sequence; The matching correctness is obtained in combination with the time interval between the handshake and the stable time and the complexity of the initial test process; Whether the charging protocol matches successfully is determined based on the matching correctness.

[0007] Preferably, whether the charging protocol matches successfully is determined based on the matching correctness, and includes: if the matching correctness is greater than the matching threshold, it is determined that the charging protocol matches successfully; if the matching correctness is less than or equal to the matching threshold, it is determined that the charging protocol does not match successfully.

[0008] Preferably, the voltage compliance of each charging stage is evaluated according to the difference between the voltage data of each charging stage under each charging protocol in the secondary test process and the preset voltage, and the fluctuation characteristics of the voltage data, and includes: For any charging phase: calculating a first difference between the mean value of all voltage data of the any charging phase and a preset voltage; evaluating the voltage compliance of the any charging phase according to the first difference and the fluctuation degree of all voltage data of the any charging phase.

[0009] Preferably, the relative change of the voltage before and after the handshake of each charging phase under each charging protocol, the fluctuation feature of the voltage data in the handshake process and the voltage compliance are combined to obtain a change factor of each charging phase under each charging protocol, including: evaluating the complexity of the voltage change of each charging phase under each charging protocol according to the relative change of the voltage before and after the handshake of each charging phase under each charging protocol and the fluctuation feature of the voltage data in the handshake process; multiplying the complexity of the voltage change of each charging phase under each charging protocol by the corresponding voltage compliance to obtain the change factor of each charging phase.

[0010] Preferably, the performance of the data line is evaluated according to the change factors of all charging phases under different charging protocols, including: for any charging protocol, the ratio between the maximum value and the average value of the change factors of all charging phases under the any charging protocol is taken as the corresponding switching stability value under the any charging protocol; obtaining a performance evaluation coefficient of the data line based on the overall distribution of the corresponding switching stability values under all charging protocols; judging whether the performance of the data line is qualified according to the performance evaluation coefficient.

[0011] Preferably, the judging whether the performance of the data line is qualified according to the performance evaluation coefficient includes: if the performance evaluation coefficient is greater than a preset performance threshold, it is determined that the performance of the data line is qualified; if the performance evaluation coefficient is less than or equal to the preset performance threshold, it is determined that the performance of the data line is unqualified.

[0012] Preferably, if the charging protocol is not matched successfully, it is determined that the performance of the data line is unqualified.

[0013] In the second aspect, the application provides a data line test system supporting fast charging mode switching, which is used to implement the method of the first aspect, and the system includes: a data acquisition module, configured to acquire voltage data in a data line test process, the test process including an initial test process and a secondary test process; The initial evaluation module is used for evaluating the complexity of voltage change in the initial test process based on the relative change of voltage before and after handshake and the fluctuation feature of voltage data in the handshake process; and judging whether the charging protocol is matched successfully based on the complexity of the initial test process and the change of voltage data; The change factor determination module is used for evaluating the voltage compliance degree of each charging stage respectively according to the difference between voltage data of each charging stage under each charging protocol in the secondary test process and the preset voltage, and the fluctuation feature of voltage data; and obtaining the change factor of each charging stage under each charging protocol by combining the relative change of voltage before and after handshake, the fluctuation feature of voltage data in the handshake process and the voltage compliance degree of each charging stage under each charging protocol. The secondary evaluation module is used for evaluating the performance of the data line according to the change factors of all charging stages under different charging protocols.

[0014] The present application has at least the following beneficial effects: The present application firstly judges whether the charging protocol is matched successfully by the relative change of voltage before and after handshake and the fluctuation feature of voltage data in the handshake process in the initial test process, and the matched charging protocol does not mean that the performance of the data line is good, and further evaluation is needed; when the charging protocol is matched successfully, the voltage data of each charging stage under different charging protocols in the secondary test process is evaluated according to the difference between the voltage data and the preset voltage, and the fluctuation feature of voltage data, the voltage compliance degree is obtained, and the change factor of each charging stage is determined by combining the relative change of voltage before and after handshake and the voltage fluctuation feature in the same charging stage in the process, the change factor is a comprehensive quantitative index, which contains the proximity of the voltage value of the stage to the ideal value, and also contains the dynamic characteristics of the voltage establishment and maintenance process, and then the performance of the data line is comprehensively evaluated by comprehensively considering the change factors of all charging stages under different charging protocols, the method provided by the present application can avoid the deficiency of the overall performance caused by the accidental excellent performance of a single test moment, and makes a more objective and comprehensive final judgment on the overall performance of the data line, and improves the reliability and accuracy of the performance test result of the data line. BRIEF DESCRIPTION OF DRAWINGS

[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, and the advantages thereof, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor.

[0016] Figure 1 A flowchart of a data line test method supporting fast charging mode switching provided by an embodiment of the present application is shown in FIG. 1. Figure 2 A structural block diagram of a data line test system supporting fast charging mode switching provided by an embodiment of the present application is shown in FIG. 2. DETAILED DESCRIPTION

[0017] In order to further illustrate the technical means and effects adopted by the present application to achieve the predetermined inventive purpose, a data line test system and method supporting fast charging mode switching according to the present application are described in detail below in combination with the accompanying drawings and preferred embodiments.

[0018] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present application belongs.

[0019] The specific scheme of the data line test system and method supporting fast charging mode switching provided by the present application is specifically described below in combination with the accompanying drawings.

[0020] An embodiment of a data line test method supporting fast charging mode switching is provided as follows. An embodiment of a data line test method supporting fast charging mode switching is provided as follows. Figure 1 As shown in FIG. 1, the data line test method supporting fast charging mode switching provided by the present embodiment includes the following steps. Step S1, obtaining voltage data in a data line test process, the test process including an initial test process and a secondary test process.

[0021] When testing the performance of a data line, first, one end (such as a USB-A or USB-C male head) of the data line to be tested is firmly connected to the analog charger port of the test system, and the other end (such as a USB-C male head) is connected to the analog device port of the system, ensuring that all connection points are in good contact and avoiding the introduction of additional resistance, thus completing the connection of the data line. Then, the system is initialized, the test system is started, and the test software is run, and the system is self-checked to confirm that the protocol simulator, voltage and current source / load, high-precision measurement unit, and other modules are working normally. Next, the test project is selected or set in the test software interface to complete the parameter configuration, specifically, the fast charging protocols to be tested, such as PD3.0, QC4+, SCP, VOOC, etc., are checked, and the voltage and current combinations to be tested for each protocol are specified (such as PD protocol test 5V / 3A, 9V / 2A, 12V / 1.5A, etc.).

[0022] The system controls the simulated device port to appear as a device waiting to be charged. The system controls the simulated charger port to send specific voltage or data signals (such as boosting the D+ / D- voltage) to the data line to initiate communication, according to the selected first fast charging protocol (e.g., QC). The system's high-precision measurement unit monitors signal changes on the CC line or D+ / D- line in real time, capturing the response information transmitted from the simulated device. It analyzes whether the response is correct and conforms to the protocol specifications. If the handshake is successful, the system controls the simulated charger port to output the negotiated fast charging voltage, such as 9V for the QC protocol. The system controls the electronic load on the simulated device to apply the negotiated current, for example, 2A. Within the set test duration (e.g., several seconds), the voltage and current values ​​on the VBUS line are monitored in real time. After completing one level test for a protocol, the system's simulated charger port switches the voltage back to 5V or 0V, and then tests the next level of the protocol according to the above process, or switches to the next fast charging protocol in the list, repeating the test.

[0023] Next, dynamic switching and compatibility testing is conducted. This step tests the data cable's behavior when the connection status changes. Specifically, the dynamic switching test between protocols simulates a device scenario that supports multiple protocols. For example, during PD protocol fast charging, the system simulates sending a command to switch to another PD level or another compatible protocol through a simulated device port, monitoring whether the data cable can correctly and quickly transmit this switching command and maintain a stable connection. The system simulates a rapid disconnection and reconnection process through software commands or hardware switches, testing the data cable's response speed and correctness during the re-handshake.

[0024] The voltage data is collected during the data line testing process using the above method. The data line testing process includes an initial test and a secondary test. The initial test lasts from the first moment of the test to the completion of the first handshake. The secondary test covers the entire testing process excluding the initial test. In this embodiment, the voltage data is collected once per second. In specific implementations, the implementer can set this frequency according to specific circumstances.

[0025] Step S2: Based on the relative changes in voltage before and after the handshake during the initial test and the fluctuation characteristics of voltage data during the handshake, evaluate the complexity of voltage changes during the initial test; based on the complexity of the initial test and the changes in voltage data, determine whether the charging protocol is successfully matched.

[0026] As the core carrier for power transmission and signal interaction in consumer electronic devices, the performance of data cables directly affects the charging efficiency, user experience, and electrical safety of terminal devices. Key indicators such as protocol compatibility, high-current transmission stability, mode switching response speed, and insulation protection performance of data cables all have a direct impact on fast charging performance and device safety. However, the quality of data cable products on the market varies greatly. Some low-cost products have problems such as protocol identification errors, excessive voltage drop, severe overheating, and loose interfaces. These not only fail to leverage the advantages of fast charging technology but may also damage terminal devices or even cause safety hazards due to overload, short circuits, and other risks.

[0027] In the test of data cables that support fast charging mode switching, the fast charging mode switching of the data cable is essentially a process of protocol negotiation and dynamic adjustment of electrical parameters between the data cable and the terminal device and the charger. Timing data can intuitively reflect key dynamic indicators such as protocol handshake response speed, voltage / current switching delay, and parameter synchronization timing, while status data can clearly present core information such as protocol matching status, power output status, and interface connection status before and after switching.

[0028] In actual testing, if the timing is disordered (such as excessive switching delay or asynchronous parameter adjustments) or the status data is abnormal (such as protocol handshake failure or abnormal status transition), it can easily lead to stuttering, interruption, or even device misjudgment during fast charging mode switching. It may also hide potential safety risks such as overload and insulation failure. Therefore, analyzing voltage timing data is used to determine whether there are any abnormalities in the data cable during the fast charging mode switching process, thereby testing the performance of the data cable.

[0029] When determining whether a fast charging cable supports the current charging conditions, it's essential to first ensure mutual recognition of the charging protocols of the connected device, cable, and charger. Fast charging mode can only be activated when the charging protocols are consistent. The fast charging protocol handshake is essentially a "request-response-confirmation" message exchange process between the device and the cable via a specific signal channel (such as the CC line of the PD protocol or the D+ / D- lines of the QC protocol). During the handshake, physical signals such as voltage and current on the signal lines undergo specific changes during the interaction phase. After a successful handshake, these signals enter a stable, negotiated state. Therefore, it's necessary to assess the correctness of the current charging protocol matching based on the voltage changes observed during the handshake process.

[0030] Specifically, the voltage data during the handshake process in the initial test is arranged according to time sequence to obtain a voltage data sequence. The difference sequence corresponding to the voltage data sequence is calculated, and the variance of all data in this difference sequence is denoted as the first variance. The ratio of the voltage after the handshake to the voltage before the handshake is calculated, and this ratio is denoted as the first ratio. Based on the first ratio and the first variance, the complexity of the voltage change during the initial test is obtained. It should be noted that in this embodiment, "before the handshake" refers to the last moment before the handshake begins, and "after the handshake" refers to the first moment after the handshake ends.

[0031] As a concrete example, a specific formula for calculating the complexity of voltage changes is given. The complexity of voltage changes during the initial test process can be expressed as: in, This indicates the complexity of voltage changes during the initial test process. This indicates the voltage after the handshake. represents the voltage before the handshake; s represents the variance of all data in the difference sequence corresponding to the voltage data sequence, that is, the first variance; Represents the normalization function. This indicates the first ratio.

[0032] Because fast charging protocols typically use low-voltage power supply for communication testing before the handshake, once the handshake is successful, the voltage will stabilize at the marked voltage for the corresponding power level without frequent fluctuations. Therefore, the larger the ratio between the voltage after the handshake and the voltage before the handshake, and the larger the variance of all data in the differential sequence corresponding to the voltage data sequence during the handshake, the more complex the voltage data changes during the test. This indicates that the voltage after the handshake is more likely to rise to the marked voltage, resulting in a higher handshake success rate, which means that the voltage changes during the initial test process are more complex.

[0033] If the charging protocols are compatible, the data cable will react quickly during the protocol handshake to trigger fast charging mode switching or protocol interaction. If the data cable has quality defects or the protocols are incompatible, the charging voltage may not reach the marked voltage in a timely and accurate manner, resulting in a response delay in charging protocol pairing. If the delay is too high, problems such as fast charging failing to start after plugging in the cable or charging interruptions and stuttering during protocol switching may occur. Therefore, the correctness of charging protocol matching during the initial testing process is judged based on the response delay.

[0034] Specifically, following the chronological order, each moment after the handshake during the initial test is sequentially judged to determine whether a preset condition is met, and the first moment that meets the preset condition is taken as the stable moment. The preset condition is that the normalized result of the mean of the data in the difference sequence corresponding to the first voltage data sequence is less than a preset difference threshold. Obtaining the difference sequence corresponding to the first voltage data sequence includes obtaining the difference sequence corresponding to the first voltage data sequence, which is composed of voltage data from all moments within a local time period. It should be noted that this embodiment uses the maximum-minimum value normalization method for data normalization. In other embodiments, implementers may choose other existing data normalization methods. The maximum-minimum value normalization method is prior art and will not be elaborated further here.

[0035] As a specific example, for any given moment, the method for obtaining the local time period of that moment is as follows: take that moment as the last moment in the local time period of that moment, and take a time period of one minute as the local time period of that moment.

[0036] As a specific example, the preset difference threshold can be determined by collecting the mean of the differential sequence corresponding to the first voltage data sequence at stable moments during historical testing for multiple data lines that have been confirmed as having qualified performance. Then, the distribution characteristics of these means are statistically analyzed, and the preset difference threshold is set based on these distribution characteristics to effectively distinguish between stable and unstable moments. As another specific example, the preset difference threshold can also be set to an empirical value of 0.5.

[0037] The matching accuracy is obtained by combining the time interval between the handshake and the stabilization point, and the complexity of voltage changes during the initial test process. Specifically, the ratio of the complexity of voltage changes during the initial test process to the time interval between the handshake and the stabilization point is used as the matching accuracy. The higher the matching accuracy, the more likely the current charging protocol is to match successfully; therefore, the next step is to determine whether the charging protocol has matched successfully based on the matching accuracy.

[0038] As a specific example, the following method is used to determine whether the charging protocol is successfully matched. Specifically, if the matching accuracy is greater than the matching threshold, the charging protocol is considered successfully matched. However, successful matching does not necessarily mean that the performance of the data cable meets the requirements. To improve the accuracy of the performance test results, further judgment is required. If the matching accuracy is less than or equal to the matching threshold, the charging protocol is considered unmatched, and the data cable is deemed to be unqualified.

[0039] As a concrete example, the matching threshold can be determined by collecting the matching accuracy of data lines that have been confirmed as successfully matched, then statistically analyzing the distribution characteristics of these matching accuracy scores, and setting the matching threshold based on these distribution characteristics to effectively distinguish between successful and unsuccessful matches. As another concrete example, the matching threshold can also be set to an empirical value of 0.7.

[0040] Thus, through the above methods, a preliminary assessment of the data cable's performance has been achieved.

[0041] Step S3: If the charging protocol matching is successful, the voltage compliance of each charging stage is evaluated based on the difference between the voltage data of each charging stage under each charging protocol and the preset voltage, as well as the fluctuation characteristics of the voltage data during the secondary test. The change factor of each charging stage under each charging protocol is obtained by combining the relative change of voltage before and after the handshake of each charging stage under each charging protocol, the fluctuation characteristics of the voltage data during the handshake process, and the voltage compliance.

[0042] Once the charging protocol is successfully matched, the charger should stably and continuously output current to the device, typically only changing the charging power after receiving a charging adjustment command from the charging device. To test the stability of the data cable throughout the charging process, it is necessary to analyze the entire charging state and determine whether changes in charging power at different charging stages cause changes in the charging state, thereby assessing the data cable's performance.

[0043] Specifically, based on the voltage data of the secondary test process under a single charging protocol, the voltage data is segmented according to the pre-set charging stages to obtain voltage data of different stages under each charging protocol.

[0044] The following explanation uses the next charging stage of a charging protocol during the secondary test as an example. The method provided in this embodiment can be used to process other charging stages.

[0045] For any charging phase: The average of all voltage data for the charging phase is obtained, and the absolute value of the difference between this average and the preset voltage is calculated. This absolute value is recorded as the first difference. The larger the absolute value of the difference between the average of all voltage data for the charging phase and the preset voltage, the lower the voltage adaptation rate of the current charging phase. This results in the actual voltage failing to reach the preset voltage when switching fast charging power, thus leading to a lower voltage compliance. The voltage should remain relatively stable at different times during the charging phase, without significant fluctuations. The greater the fluctuation in voltage data, the lower the voltage compliance. Therefore, the voltage compliance of the charging phase is evaluated based on the first difference and the fluctuation of all voltage data for that phase. The preset voltage is set by the implementer according to specific circumstances, and will not be elaborated further here.

[0046] As a concrete example, the variance of all voltage data for this charging phase is calculated. This variance characterizes the degree of fluctuation of all voltage data for this charging phase; the larger the value, the greater the fluctuation of the voltage data and the lower the voltage compliance. The product of the first variance corresponding to this charging phase and the degree of fluctuation of all voltage data for this charging phase is calculated. The value of the exponential function with the natural constant as the base and the negative exponent of this product is taken as the voltage compliance of this charging phase.

[0047] The above methods can be used to obtain the voltage compliance level of a single charging stage under each charging protocol.

[0048] As a specific example, the complexity of voltage changes in each charging stage under each charging protocol is evaluated based on the relative changes in voltage before and after the handshake and the fluctuation characteristics of voltage data during the handshake process. When calculating the complexity of voltage changes in a single charging stage under a charging protocol, the calculation method for the complexity of voltage changes in the initial test process is referenced. Since the complexity of voltage changes in the initial test process has already been explained in step S2, the calculation method for the complexity of voltage changes in each charging stage under each charging protocol will not be elaborated further here.

[0049] Furthermore, the product of the complexity of voltage changes in each charging stage under each charging protocol and the corresponding degree of voltage compliance is used as the variation factor for each charging stage under each charging protocol. Higher complexity of voltage changes and greater degree of voltage compliance indicate more significant voltage changes, i.e., a larger variation factor.

[0050] Thus, by using the above methods, we can obtain the variation factors of each charging stage under a single charging protocol.

[0051] Step S4: Evaluate the performance of the data line based on the variation factors of all charging stages under different charging protocols.

[0052] After determining the variation factors for each charging stage under a single charging protocol, in order to evaluate the performance of the data line, it is necessary to combine the variation factors for all charging stages under all charging protocols for a comprehensive evaluation.

[0053] Specifically, for any charging protocol, the ratio between the maximum and average values ​​of the change factors for all charging stages under that protocol is taken as the corresponding switching stability value for that charging protocol. It should be noted that if the average value of the change factors for all charging stages under a charging protocol is 0, then the corresponding switching stability value for that charging protocol is set to 1.

[0054] After determining the corresponding switching stability value under each charging protocol, the overall distribution of the corresponding switching stability values ​​under all charging protocols is considered to obtain the performance evaluation coefficient of the data cable, thereby enabling the evaluation of the data cable's performance.

[0055] As a concrete example, the average switching stability value under all charging protocols can be calculated. This average value reflects the average level of switching stability of the data cable under different charging protocols; the higher the average level, the better the overall performance of the data cable. Therefore, the normalized result of the average switching stability value under all charging protocols is used as the performance evaluation coefficient of the data cable. If the performance evaluation coefficient is greater than a preset performance threshold, the data cable is deemed to have qualified performance; if the performance evaluation coefficient is less than or equal to the preset performance threshold, the data cable is deemed to have unqualified performance. The average switching stability value under all charging protocols is normalized using a hyperbolic tangent function. That is, the average switching stability value is directly substituted into the hyperbolic tangent function as the independent variable, and the function value of the hyperbolic tangent function is used as the performance evaluation coefficient of the data cable.

[0056] As another concrete example, the average and range of the switching stability values ​​under all charging protocols can be calculated separately. The normalized result of the ratio between the average and the range can be used as the performance evaluation coefficient of the data line. If the performance evaluation coefficient is greater than the preset performance threshold, the data line is judged to be qualified; if the performance evaluation coefficient is less than or equal to the preset performance threshold, the data line is judged to be unqualified. When normalizing the ratio between the average and the range, the hyperbolic tangent function can also be used. The specific normalization method has been explained in the previous example and will not be elaborated further here.

[0057] As another concrete example, the preset performance threshold can be determined by retrieving the performance evaluation coefficients of multiple data lines that have been confirmed as having qualified performance from the database, then statistically analyzing the distribution characteristics of these performance evaluation coefficients, and setting the preset performance threshold based on these distribution characteristics to effectively distinguish between qualified and unqualified data lines. Alternatively, the preset performance threshold can be directly set to an empirical value of 0.65.

[0058] Thus, the method provided in this embodiment has been used to test the performance of the data cable.

[0059] This embodiment first determines whether the charging protocol is successfully matched by observing the relative changes in voltage before and after the handshake during the initial test and the fluctuation characteristics of the voltage data during the handshake. Successful matching does not necessarily mean that the data line is performing well; further evaluation is required. When the charging protocol is successfully matched, the ability to maintain voltage stability at each charging stage under different charging protocols is evaluated based on the differences between the voltage data and the preset voltage during the secondary test and the fluctuation characteristics of the voltage data. This yields the voltage compliance degree. Then, combining the relative changes in voltage before and after the handshake and the voltage fluctuation characteristics of the same charging stage, the variation factor of each charging stage is determined. The variation factor is a comprehensive quantitative indicator that includes both the closeness of the voltage value at that stage to the ideal value and the dynamic characteristics during the voltage establishment and maintenance process at that stage. Finally, the performance of the data line is comprehensively evaluated by integrating the variation factors of all charging stages under different charging protocols. The method provided in this embodiment can avoid the misleading effect of occasional excellent performance at a single test moment on the overall performance deficiencies, making a more objective and comprehensive final judgment on the overall performance of the data line, and improving the reliability and accuracy of the data line performance test results.

[0060] An embodiment of a data cable testing system that supports fast charging mode switching: See Figure 2 The diagram illustrates a structural block diagram of a data cable testing system supporting fast charging mode switching according to an embodiment of the present invention. The system may include a data acquisition module, an initial evaluation module, a change factor determination module, and a secondary evaluation module.

[0061] The data acquisition module is used to acquire voltage data during the data line test process, which includes an initial test process and a secondary test process. The initial evaluation module is used to evaluate the complexity of voltage changes during the initial test process based on the relative changes in voltage before and after the handshake and the fluctuation characteristics of voltage data during the handshake; and to determine whether the charging protocol is successfully matched based on the complexity of the initial test process and the changes in voltage data. The variation factor determination module is used to evaluate the voltage compliance of each charging stage based on the difference between the voltage data of each charging stage under each charging protocol and the preset voltage, as well as the fluctuation characteristics of the voltage data, if the charging protocol matching is successful; and to obtain the variation factor of each charging stage under each charging protocol by combining the relative change of voltage before and after the handshake of each charging stage under each charging protocol, the fluctuation characteristics of the voltage data during the handshake process, and the voltage compliance. The secondary evaluation module is used to evaluate the performance of the data cable based on the changing factors of all charging stages under different charging protocols.

[0062] It should be understood that Figure 2 The structural block diagram and modules of the data cable testing system supporting fast charging mode switching shown can be implemented in various ways. For example, in some embodiments, the system and its modules can be implemented by hardware, software, or a combination of software and hardware. The hardware portion can be implemented using dedicated logic; the software portion can be stored in memory and executed by appropriate instructions, such as a microprocessor or dedicated hardware design. Those skilled in the art will understand that the above-described methods and apparatus can be implemented using computer-executable instructions and / or included in processor control code, for example, such code provided on a carrier medium such as a disk, CD, or DVD-ROM, a programmable memory such as read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. The apparatus and modules of this specification can be implemented not only by hardware circuits such as very large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, or programmable hardware devices such as field-programmable gate arrays, programmable logic devices, etc., but also by software, for example, executed by various types of processors, or by a combination of the above-described hardware circuits and software (e.g., firmware).

[0063] For more details about the above modules, please refer to other parts of this manual; they will not be repeated here.

[0064] It should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for testing data cables that support fast charging mode switching, characterized in that, The method includes the following steps: Acquire voltage data during the data line test process, which includes an initial test process and a secondary test process; Based on the relative changes in voltage before and after the handshake during the initial test and the fluctuation characteristics of voltage data during the handshake, the complexity of voltage changes during the initial test is evaluated; based on the complexity of the initial test and the changes in voltage data, it is determined whether the charging protocol is successfully matched. If the charging protocol is successfully matched, the voltage compliance of each charging stage is evaluated based on the difference between the voltage data of each charging stage under each charging protocol and the preset voltage, as well as the fluctuation characteristics of the voltage data during the secondary test. The change factor of each charging stage under each charging protocol is obtained by combining the relative change of voltage before and after the handshake of each charging stage under each charging protocol, the fluctuation characteristics of voltage data during the handshake process, and the voltage compliance. The performance of the data cable is evaluated based on the variation factors of all charging stages under different charging protocols.

2. The data cable testing method supporting fast charging mode switching according to claim 1, characterized in that, The evaluation of the complexity of voltage changes during the initial test process, based on the relative changes in voltage before and after the handshake and the fluctuation characteristics of voltage data during the handshake, includes: The first ratio of the voltage after the handshake to the voltage before the handshake during the initial test process, and the first variance of the data in the difference sequence corresponding to the voltage data sequence are calculated respectively. The voltage data sequence is obtained by arranging the voltage data during the handshake process in the initial test process according to the time sequence. The complexity of voltage changes during the initial test process is obtained based on the first ratio and the first variance.

3. The data cable testing method supporting fast charging mode switching according to claim 1, characterized in that, The method of determining whether the charging protocol is successfully matched based on the complexity of the initial test process and changes in voltage data includes: In chronological order, determine whether each moment after the handshake in the initial test process meets the preset conditions, and take the first moment that meets the preset conditions as the stable moment. The preset condition is that the normalized result of the mean of the data in the difference sequence corresponding to the first voltage data sequence is less than the preset difference threshold; wherein, the acquisition of the first voltage data sequence includes: recording the voltage data of all times within a local time period of each time as the first voltage data sequence. The matching accuracy is obtained by combining the time interval between the handshake and the stable moment and the complexity of the initial testing process; The matching accuracy is used to determine whether the charging protocol is successfully matched.

4. The data cable testing method supporting fast charging mode switching according to claim 3, characterized in that, The step of determining whether the charging protocol is successfully matched based on the matching accuracy includes: if the matching accuracy is greater than the matching threshold, the charging protocol is determined to be successfully matched; if the matching accuracy is less than or equal to the matching threshold, the charging protocol is determined to be unsuccessfully matched.

5. The data cable testing method supporting fast charging mode switching according to claim 1, characterized in that, The evaluation of voltage compliance at each charging stage is based on the differences between voltage data and preset voltage under each charging protocol during the secondary test, as well as the fluctuation characteristics of voltage data. This includes: For any charging phase: Calculate the first difference between the mean of all voltage data in any charging phase and the preset voltage; The degree of voltage compliance in any charging stage is evaluated based on the first difference and the degree of fluctuation of all voltage data in any charging stage.

6. The data cable testing method supporting fast charging mode switching according to claim 1, characterized in that, The method combines the relative changes in voltage before and after the handshake in each charging stage under each charging protocol, the fluctuation characteristics of voltage data during the handshake process, and the degree of voltage compliance to obtain the change factors for each charging stage under each charging protocol, including: Based on the relative changes in voltage before and after the handshake in each charging stage under each charging protocol and the fluctuation characteristics of voltage data during the handshake process, the complexity of voltage changes in each charging stage under each charging protocol is evaluated. The product of the complexity of voltage changes in each charging stage under each charging protocol and the corresponding degree of voltage compliance is used as the variation factor for each charging stage.

7. The data cable testing method supporting fast charging mode switching according to claim 1, characterized in that, The evaluation of data line performance based on the variation factors of all charging stages under different charging protocols includes: For any charging protocol, the ratio between the maximum value and the average value of the change factors of all charging stages under any charging protocol is taken as the corresponding switching stability value under any charging protocol. Based on the overall distribution of the switching stability values ​​under all charging protocols, the performance evaluation coefficient of the data cable is obtained. The performance of the data cable is judged to be qualified based on the performance evaluation coefficient.

8. The data cable testing method supporting fast charging mode switching according to claim 7, characterized in that, The process of determining whether the data cable's performance is up to standard based on the performance evaluation coefficient includes: If the performance evaluation coefficient is greater than the preset performance threshold, the data cable is deemed to be of qualified performance. If the performance evaluation coefficient is less than or equal to the preset performance threshold, the data cable is deemed to be unqualified.

9. The data cable testing method supporting fast charging mode switching according to claim 1, characterized in that, If the charging protocol fails to match, the data cable is deemed to be of substandard quality.

10. A data cable testing system supporting fast charging mode switching, the system being used to implement the method of claim 1, characterized in that, The system includes: The data acquisition module is used to acquire voltage data during the data line testing process, which includes an initial testing process and a secondary testing process. The initial evaluation module is used to evaluate the complexity of voltage changes during the initial test process based on the relative changes in voltage before and after the handshake and the fluctuation characteristics of voltage data during the handshake; and to determine whether the charging protocol is successfully matched based on the complexity of the initial test process and the changes in voltage data. The variation factor determination module is used to evaluate the voltage compliance of each charging stage based on the difference between the voltage data of each charging stage under each charging protocol and the preset voltage, as well as the fluctuation characteristics of the voltage data, if the charging protocol matching is successful; and to obtain the variation factor of each charging stage under each charging protocol by combining the relative change of voltage before and after the handshake of each charging stage under each charging protocol, the fluctuation characteristics of the voltage data during the handshake process, and the voltage compliance. The secondary evaluation module is used to evaluate the performance of the data cable based on the changing factors of all charging stages under different charging protocols.

Citation Information

Patent Citations

  • Fast charging and fast discharging test device and fast charging and fast discharging test method for mobile power supply

    CN111381181A

  • Mobile phone data line performance test and fault prediction method and system

    CN120763669A

  • Fast charging mode switching circuit and fast charging data line

    CN210577833U

  • Conversion device for quick charger and method for realizing charging conversion

    US20180166889A1