A data line test system and method supporting fast charging mode switching

By analyzing the voltage data change characteristics during the data cable test, 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 test results in existing technologies and enables a comprehensive and accurate evaluation of data cable performance.

CN121324801BActive Publication Date: 2026-05-12LEAGTECH DONGGUAN ELECTRONIC CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
LEAGTECH DONGGUAN ELECTRONIC CO LTD
Filing Date
2025-12-04
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

Existing data cable testing methods 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 achieves an objective and comprehensive evaluation of the overall performance of the data cable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121324801B_ABST
    Figure CN121324801B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of data line performance test, in particular to a data line test system and method supporting fast charging mode switching. The method comprises: obtaining voltage data in the data line test process; evaluating the complexity of voltage change in the initial test process based on the relative change of voltage before and after handshaking and the fluctuation characteristics of voltage data in the handshaking process; determining whether the charging protocol is matched successfully according to the voltage data change; if matched successfully, evaluating the voltage compliance 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 characteristics 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 handshaking and the fluctuation characteristics of voltage data in the handshaking process, and then evaluating the data line performance. The present application improves the reliability of data line performance test results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data cable performance testing technology, and specifically to a data cable testing system and method that supports fast charging mode switching. Background Technology

[0002] With the widespread use of portable electronic devices such as smartphones, tablets, and laptops, users' demands for charging speed are increasing. High-speed charging, achieved by increasing voltage, current, or dynamically adjusting power, relies not only on the charger and the device itself but also on the data cable connecting them. The data cable internally communicates with the charger and device via a specific electronic marker chip to negotiate and activate the corresponding fast charging mode. Traditional data cable testing methods primarily focus on basic electrical performance (such as on-resistance and current carrying capacity) and physical durability, failing to effectively test whether the data cable can correctly identify, switch, and stably support multiple fast charging protocols.

[0003] Existing methods for testing data cables primarily focus on basic electrical performance and physical connection reliability, such as DC resistance and voltage drop testing. This involves applying a constant current and measuring the voltage drop across the data cable to calculate conductor resistance, assessing its current carrying capacity and power transmission efficiency. However, this single-protocol static testing method struggles to simulate the complex scenarios of dynamic switching between multiple protocols in real-world use. Furthermore, it cannot accurately capture instantaneous changes in electrical parameters during mode switching, failing to meet the needs of product development verification and mass production quality control, resulting in low reliability of data cable performance test results. Summary of the Invention

[0004] To address the issue of low reliability in performance test results of existing methods for testing data cables, the present invention aims to provide a data cable testing system and method that supports fast charging mode switching. The specific technical solution adopted is as follows:

[0005] In a first aspect, the present invention provides a data cable testing method that supports fast charging mode switching, the method comprising the following steps:

[0006] Acquire voltage data during the data line test process, which includes an initial test process and a secondary test process;

[0007] 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.

[0008] 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.

[0009] The performance of the data cable is evaluated based on the variation factors of all charging stages under different charging protocols.

[0010] Preferably, 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:

[0011] 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.

[0012] The complexity of voltage changes during the initial test process is obtained based on the first ratio and the first variance.

[0013] Preferably, the step of determining whether the charging protocol is successfully matched based on the complexity of the initial test process and the changes in voltage data includes:

[0014] 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.

[0015] 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.

[0016] 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;

[0017] The matching accuracy is used to determine whether the charging protocol is successfully matched.

[0018] Preferably, determining whether the charging protocol is successfully matched based on the matching accuracy includes: if the matching accuracy is greater than the matching threshold, then the charging protocol is determined to be successfully matched; if the matching accuracy is less than or equal to the matching threshold, then the charging protocol is determined to be unsuccessfully matched.

[0019] Preferably, the evaluation of the voltage compliance of each charging stage based on the differences between the voltage data and the preset voltage under each charging protocol during the secondary test, as well as the fluctuation characteristics of the voltage data, includes:

[0020] For any charging phase:

[0021] Calculate the first difference between the mean of all voltage data in any charging phase and the preset voltage;

[0022] 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.

[0023] Preferably, the step of combining 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 includes:

[0024] 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.

[0025] 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.

[0026] Preferably, the evaluation of the data line performance based on the variation factors of all charging stages under different charging protocols includes:

[0027] 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.

[0028] Based on the overall distribution of the switching stability values ​​under all charging protocols, the performance evaluation coefficient of the data cable is obtained.

[0029] The performance of the data cable is judged to be qualified based on the performance evaluation coefficient.

[0030] Preferably, the step of judging whether the performance of the data cable is qualified based on the performance evaluation coefficient includes:

[0031] If the performance evaluation coefficient is greater than the preset performance threshold, the data cable is deemed to be of qualified performance.

[0032] If the performance evaluation coefficient is less than or equal to the preset performance threshold, the data cable is deemed to be unqualified.

[0033] Preferably, if the charging protocol fails to match, the data cable is deemed to be of substandard performance.

[0034] Secondly, the present invention provides a data cable testing system that supports fast charging mode switching. This system is used to implement the method of the first aspect, and the system includes:

[0035] 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.

[0036] 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.

[0037] 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.

[0038] 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.

[0039] The present invention has at least the following beneficial effects:

[0040] This invention 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 process. Successful matching does not necessarily mean good data cable performance; 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 secondary testing, as well as the fluctuation characteristics of the voltage data. This yields the voltage compliance level. Furthermore, by combining the relative changes in voltage before and after the handshake and the voltage fluctuation characteristics of the same charging stage, the variation factor for each charging stage is determined. The variation factor is a comprehensive quantitative indicator that includes both the closeness of the voltage value to the ideal value at that stage and the dynamic characteristics during voltage establishment and maintenance. Finally, by comprehensively evaluating the variation factors of all charging stages under different charging protocols, the performance of the data cable is comprehensively assessed. The method provided by this invention avoids the misleading effect of occasional excellent performance at a single test moment masking overall performance deficiencies, making a more objective and comprehensive final judgment on the overall performance of the data cable, and improving the reliability and accuracy of the data cable performance test results. Attached Figure Description

[0041] To more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0042] Figure 1 A flowchart illustrating a data cable testing method supporting fast charging mode switching provided in an embodiment of the present invention;

[0043] Figure 2 This is a structural block diagram of a data cable testing system that supports fast charging mode switching, provided in an embodiment of the present invention. Detailed Implementation

[0044] To further illustrate the technical means and effects adopted by the present invention to achieve the intended purpose, the following detailed description of a data cable testing system and method supporting fast charging mode switching according to the present invention is provided in conjunction with the accompanying drawings and preferred embodiments.

[0045] 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 this invention pertains.

[0046] The following description, in conjunction with the accompanying drawings, details the specific solution of a data cable testing system and method supporting fast charging mode switching provided by the present invention.

[0047] An embodiment of a data cable testing method supporting fast charging mode switching:

[0048] This embodiment proposes a data cable testing method that supports fast charging mode switching, such as... Figure 1 As shown, a data cable testing method supporting fast charging mode switching in this embodiment includes the following steps:

[0049] Step S1: Obtain voltage data during the data line test process. The test process includes an initial test process and a secondary test process.

[0050] When testing the performance of a data cable, first, firmly connect one end of the data cable under test (e.g., USB-A or USB-C male connector) to the analog charger port of the test system, and the other end (e.g., USB-C male connector) to the analog device port of the system. Ensure all connection points have good contact and avoid introducing additional resistance to complete the data cable connection. Next, initialize the system, start the test system, run the test software, and perform a self-test to confirm that modules such as the protocol simulator, voltage / current source / load, and high-precision measurement unit are working properly. Then, select or set the test items in the test software interface to complete the parameter configuration. Specifically, select the fast charging protocols to be tested, such as PD3.0, QC4+, SCP, VOOC, etc., and specify the voltage and current combinations to be tested for each protocol (e.g., PD protocol test 5V / 3A, 9V / 2A, 12V / 1.5A, etc.).

[0051] 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.

[0052] 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.

[0053] 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.

[0054] 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.

[0055] 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.

[0056] 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.

[0057] 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.

[0058] 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.

[0059] 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.

[0060] 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:

[0061]

[0062] 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 represents the first ratio.

[0063] 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.

[0064] 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.

[0065] 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.

[0066] 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.

[0067] 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.

[0068] 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.

[0069] 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.

[0070] 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.

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

[0072] 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.

[0073] 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.

[0074] 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.

[0075] 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.

[0076] For any charging phase:

[0077] 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.

[0078] 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.

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

[0080] 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.

[0081] 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.

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

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

[0084] 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.

[0085] 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.

[0086] 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.

[0087] 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.

[0088] 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.

[0089] 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.

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

[0091] 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.

[0092] An embodiment of a data cable testing system that supports fast charging mode switching:

[0093] 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.

[0094] 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.

[0095] 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.

[0096] 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.

[0097] 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.

[0098] 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).

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

[0100] 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. The complexity of evaluating voltage changes during the initial test process 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. Based on the first ratio and the first variance, the complexity of the voltage change during the initial test process is obtained. The complexity of the voltage change during the initial test process is as follows: 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, and s represents the first variance; Represents the normalization function. Indicates the first ratio; 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.

2. 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.

3. The data cable testing method supporting fast charging mode switching according to claim 2, 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.

4. 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.

5. 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.

6. The data cable testing method supporting fast charging mode switching according to claim 5, 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.

7. 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.

8. 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.