Method for testing data transmission rate of mobile phone data line

Through automated testing environment and performance evaluation functions, combined with the fruit fly population optimization algorithm, the problems of cumbersome and inaccurate traditional testing methods are solved, and efficient and accurate mobile phone data transmission rate testing is achieved, supporting the quality control of data lines.

CN119996268APending Publication Date: 2025-05-13DONGGUAN XIYAO ELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411989040.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

Traditional mobile phone data transmission rate testing methods are cumbersome, error-prone, low testing efficiency, and due to manual operation and equipment instability, the accuracy and reliability of the test results are affected.

Method used

By connecting one end of the mobile phone data cable to the data source device for testing and the other end to the data receiving device, setting the data transmission rate, data packet size and transmission protocol parameters, defining performance evaluation functions, simulating the process of fruit fly population looking for food, iteratively adjusting the test parameters, evaluating performance indicators, determining the final test parameter combination, and recording the actual data received and the time taken for transmission, and calculating the actual data transmission rate.

Benefits of technology

It realizes the construction of an automated test environment, reduces manual intervention, improves testing efficiency and accuracy, ensures test consistency and comparability, provides comprehensive performance analysis results, and supports data cable quality control and improvement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996268A_ABST
    Figure CN119996268A_ABST
Patent Text Reader

Abstract

The invention provides a method for testing the data transmission rate of a mobile phone data cable, and relates to the technical field of communication testing, and the method comprises the steps: connecting one end of the mobile phone data cable to a data source device for testing, and connecting the other end of the mobile phone data cable to a data receiving device; the method comprises the following steps: setting a data transmission rate, a data packet size and a transmission protocol test parameter on data source equipment, and configuring a corresponding receiving parameter on data receiving equipment; defining a performance evaluation function to evaluate performance indexes under different test parameter combinations; and simulating a process of searching food by a fruit fly group, adjusting test parameters through iteration, and evaluating performance indexes after each adjustment to determine a final test parameter combination. According to the method, the actual data transmission rate, the transmission error rate and the signal stability of the mobile phone data line are accurately measured and analyzed by simulating the fruit fly foraging process and iteratively optimizing the test parameters, and powerful support is provided for performance evaluation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of communication testing, and in particular to a method for testing the data transmission rate of a mobile phone data line. Background Art

[0002] Traditional testing methods require testers to manually set various test parameters, such as transmission rate, data packet size, etc. This process is relatively cumbersome and prone to errors. For example, when performing batch testing, testers need to set parameters for each data line one by one and perform the test, which increases the time required for testing.

[0003] The professional skills, operating habits and understanding of test standards of testers may lead to deviations in test results. For example, different testers may get slightly different test results when performing the same test due to different proficiency in the use of test software or tools. Testing a single data cable is less efficient for a large number of mobile phone data cables of different brands and models. For example, on a production line, if a large number of data cables need to be tested for performance, using traditional methods will consume a lot of time and manpower, and it is difficult to meet the needs of efficient production.

[0004] Due to the intervention of manual operation and the instability of the test environment and equipment, the accuracy and reliability of traditional test methods are affected to a certain extent. For example, the test process may be affected by external electromagnetic interference, or there may be errors in the test equipment itself, all of which may lead to deviations in the test results. Summary of the invention

[0005] The technical problem to be solved by the present invention is to provide a method for testing the data transmission rate of a mobile phone data line, thereby improving the testing efficiency and accuracy.

[0006] In order to solve the above technical problems, the technical solution of the present invention is as follows:

[0007] In a first aspect, a method for testing the data transmission rate of a mobile phone data line is provided, the method comprising:

[0008] Connect one end of the mobile phone data cable to the data source device for testing, and the other end to the data receiving device;

[0009] Set the data transmission rate, data packet size, and transmission protocol test parameters on the data source device, and configure the corresponding receiving parameters on the data receiving device;

[0010] Define performance evaluation functions to evaluate performance indicators under different test parameter combinations;

[0011] The process of fruit fly colonies searching for food is simulated, the test parameters are adjusted iteratively, and the performance indicators after each adjustment are evaluated to determine the final test parameter combination;

[0012] Start the data source device, start transmitting data to the data receiving device according to the final test parameter combination, and record the actual amount of data received and the time taken for transmission on the data receiving device;

[0013] Calculate the actual data transmission rate of the mobile phone data line based on the actual amount of data received and the time taken for transmission;

[0014] The actual data transmission rate is compared with the preset data transmission rate, and the performance of the mobile phone data line is analyzed, including the transmission error rate and signal stability, to obtain the performance analysis result of the mobile phone data line.

[0015] Furthermore, a performance evaluation function is defined to evaluate the performance indicators under different test parameter combinations, including:

[0016] The performance evaluation function obtains a comprehensive performance score based on the test parameters, including rate, packet size, and performance indicators;

[0017] Based on the comprehensive performance score, the performance indicators under different test parameter combinations are evaluated.

[0018] Furthermore, the process of fruit fly colonies searching for food was simulated, and the test parameters were iteratively adjusted. The performance indicators after each adjustment were evaluated to determine the final test parameter combination, including:

[0019] Define the search space of test parameters, including rate, packet size, and create a population of fruit flies, where each fruit fly represents a set of test parameter combinations;

[0020] During initialization, the position of each set of parameters in the search space is randomly assigned, and a data transmission rate test is performed on each fruit fly to obtain the test results;

[0021] Based on the test results, the comprehensive performance score of each fruit fly is calculated using the performance evaluation function;

[0022] In each iteration, the food-seeking behavior of a fruit fly group is simulated, and the position of the fruit flies is updated according to the comprehensive performance score of each fruit fly;

[0023] The process of updating the fruit fly position is continued. When the preset number of iterations is reached, the comprehensive performance score of each fruit fly is evaluated, and the final test parameter combination is determined based on the comprehensive performance score of the fruit fly.

[0024] Furthermore, in each iteration, the food-seeking behavior of the fruit fly group is simulated, and the position of the fruit fly is updated according to the comprehensive performance score of each fruit fly, including:

[0025] For each fruit fly in the population, three different fruit flies were randomly selected and the difference vector was calculated using the test parameter combination of the selected three fruit flies;

[0026] Generate a new candidate position based on the current fruit fly's parameter combination and differential vector;

[0027] Performing a data transmission rate test using a new test parameter combination of the candidate position to obtain test results including a transmission rate, an error rate, and a stability index;

[0028] According to the test results, the comprehensive performance score of the new candidate position is compared with the score of the current fruit fly. If the comprehensive performance score of the new candidate position is higher than the score of the current fruit fly, the position of the current fruit fly is updated to the new position.

[0029] Furthermore, the actual data transmission rate is compared with the preset data transmission rate, and the performance of the mobile phone data line is analyzed, including the transmission error rate and signal stability, to obtain the performance analysis results of the mobile phone data line, including:

[0030] Calculate the difference between the actual data transmission rate and the preset data transmission rate, and evaluate the rate matching degree based on the difference to obtain a performance score. If the difference exceeds the trust region radius, it is marked as a rate mismatch and the score is adjusted. Evaluate whether the transmission error rate is lower than the preset threshold, and adjust the performance score based on the comparison result between the error rate and the threshold. If the error rate exceeds the range within the trust region, adjust the score. Evaluate the signal stability index, compare the signal stability index with the stability standard within the trust region. If the signal stability exceeds the trust region, adjust the factors related to the signal stability to obtain the evaluation results of the rate matching degree, transmission error rate and signal stability.

[0031] Based on the evaluation results of rate matching degree, transmission error rate and signal stability, the performance analysis results of the mobile phone data line are generated, including rate matching degree, transmission error rate, signal stability and final performance level.

[0032] In a second aspect, a data transmission rate test system for a mobile phone data line includes:

[0033] The test equipment module is used to provide a data transmitter and a data receiver, and the data transmitter is connected to the data receiver through a data line of the mobile phone to be tested, so as to realize a bidirectional or unidirectional data transmission test;

[0034] The acquisition module is used to collect the raw data in the transmission process in real time, and includes a data acquisition unit and an indicator extraction unit;

[0035] A parameter setting module, used for receiving test parameters input by a user;

[0036] A processing module is used to process the raw data collected by the acquisition module to obtain a processing result;

[0037] The performance evaluation module is used to calculate the comprehensive performance score of the data line according to the processing results of the processing module and the preset scoring rules;

[0038] The report generation module is used to automatically generate a formatted test report based on the comprehensive performance score of the performance evaluation module and the data during the test process;

[0039] Iterative optimization module is used to simulate the optimization process and randomly select three different parameter combinations for calculation and optimization in each iteration.

[0040] According to a third aspect, a computing device includes:

[0041] one or more processors;

[0042] The storage device is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method described.

[0043] In a fourth aspect, a computer-readable storage medium stores a program, and when the program is executed by a processor, the method described is implemented.

[0044] The above solution of the present invention includes at least the following beneficial effects:

[0045] By connecting one end of the mobile phone data cable to the data source device for testing and the other end to the data receiving device, the construction of an automated test environment is realized, which greatly reduces manual intervention and improves test efficiency. Test parameters such as data transmission rate, data packet size, and transmission protocol are set on the data source device, and the corresponding receiving parameters are configured on the data receiving device to ensure the consistency and comparability of the test and improve the accuracy of the test results.

[0046] By defining a performance evaluation function to evaluate the performance indicators under different test parameter combinations, a quantitative basis is provided for the optimization of test parameters. By simulating the process of fruit fly colonies looking for food, iteratively adjusting the test parameters, and evaluating the performance indicators after each adjustment, this intelligent optimization method can quickly find the optimal test parameter combination, improving the effectiveness and pertinence of the test.

[0047] Start the data source device, start transmitting data to the data receiving device according to the final test parameter combination, and record the actual amount of data received and the time taken for transmission on the data receiving device, which provides an accurate data basis for calculating the actual data transmission rate. According to the actual amount of data received and the time taken for transmission, calculate the actual data transmission rate of the mobile phone data line and compare it with the preset data transmission rate. This quantitative comparison method can intuitively reflect the performance level of the data line. By analyzing the performance indicators such as the transmission error rate and signal stability of the mobile phone data line, a comprehensive performance analysis result is obtained, which provides strong support for the quality control and improvement of the data line. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 The present invention is a flowchart of a method for testing the data transmission rate of a mobile phone data line provided by an embodiment of the present invention.

[0049] Figure 2 The present invention is a schematic diagram of a data transmission rate testing system for a mobile phone data line provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0050] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0051] like Figure 1 As shown, an embodiment of the present invention provides a method for testing the data transmission rate of a mobile phone data line, the method comprising the following steps:

[0052] Step 11, connect one end of the mobile phone data cable to the data source device for testing, and the other end to the data receiving device;

[0053] Step 12, setting the data transmission rate, data packet size, and transmission protocol test parameters on the data source device, and configuring corresponding receiving parameters on the data receiving device;

[0054] Step 13, defining a performance evaluation function to evaluate the performance indicators under different test parameter combinations;

[0055] Step 14, simulating the process of fruit fly colonies searching for food, iteratively adjusting the test parameters, and evaluating the performance indicators after each adjustment to determine the final test parameter combination;

[0056] Step 15, start the data source device, start transmitting data to the data receiving device according to the final test parameter combination, and record the actual amount of data received and the time taken for transmission on the data receiving device;

[0057] Step 16, calculating the actual data transmission rate of the mobile phone data line according to the actual amount of data received and the time taken for transmission;

[0058] Step 17, comparing the actual data transmission rate with the preset data transmission rate, analyzing the performance of the mobile phone data line, including the transmission error rate and signal stability, and obtaining the performance analysis result of the mobile phone data line.

[0059] In the embodiment of the present invention, a stable test environment is constructed to ensure the accuracy and reliability of data transmission. The uncertain factors in the test process are reduced through a clear connection method.

[0060] Step 12: Through refined parameter settings, the test process is made more in line with the actual application scenario, which improves the practicality and accuracy of the test results.

[0061] Step 13 provides a quantitative evaluation standard for the optimization of the test parameters, making the optimization process more scientific and efficient. Through the performance evaluation function, the impact of different parameter combinations on the performance of the data line can be intuitively understood.

[0062] Step 14 uses an intelligent optimization method to quickly find the optimal test parameter combination by simulating biological behavior in nature. This method not only improves the optimization efficiency, but also enhances the flexibility and adaptability of the test.

[0063] Step 15: Verify the validity of the final test parameter combination through the actual data transmission process and record the detailed data transmission information.

[0064] Step 16, through a quantitative calculation method, the actual data transmission rate of the mobile phone data line is obtained, which provides a direct basis for performance evaluation. This method makes the test results more objective and accurate.

[0065] Step 17, by comparing the actual and preset data transmission rates, the performance level of the mobile phone data cable is intuitively understood. At the same time, by deeply analyzing indicators such as transmission error rate and signal stability, a comprehensive performance analysis result is obtained, which provides strong support for the quality control and improvement of the data cable.

[0066] In a preferred embodiment of the present invention, the above step 11, connecting one end of the mobile phone data cable to a data source device for testing, and connecting the other end to a data receiving device; the above step 12, setting the data transmission rate, data packet size, and transmission protocol test parameters on the data source device, and configuring corresponding receiving parameters on the data receiving device, may include:

[0067] Ensure that the data source device and data receiving device used for the test are in normal working condition. Check the integrity of the mobile phone data cable to ensure that there is no damage or poor contact. Plug one end of the mobile phone data cable into the corresponding interface of the data source device, such as a USB interface. Plug the other end of the data cable into the corresponding interface of the data receiving device, such as a USB interface.

[0068] Step 12, enter the settings interface or control panel of the data source device through a computer or by directly operating it. Find the data transmission rate option in the settings interface, and select the appropriate rate value to set it according to the test requirements. Find the packet size setting option, and enter or select the packet size required for the test. Select or configure the applicable transmission protocol, such as USB 2.0, USB 3.0, Type-C, etc., to ensure compatibility with the data receiving device. After confirming that all settings are correct, save and apply these parameters. Enter the settings interface or control panel of the data receiving device through a computer or by directly operating the data receiving device. According to the settings of the data source device, configure the corresponding receiving parameters, such as receiving rate, packet processing method, etc. Ensure that the buffer size of the receiving device is sufficient to accommodate the expected amount of data. Perform a connection test on the data receiving device to verify whether the connection with the data source device is normal. Check whether the receiving parameters are consistent with the settings of the data source device to ensure smooth data transmission. Ensure that both the data source device and the data receiving device are ready for data transmission testing. Check all connections and settings to ensure that they are correct, and then prepare to start the test.

[0069] In a preferred embodiment of the present invention, the above step 13, defining a performance evaluation function to evaluate performance indicators under different test parameter combinations, may include:

[0070] Step 131, the performance evaluation function obtains a comprehensive performance score according to the test parameters, including rate, packet size and performance index; the calculation formula of the performance evaluation function is:

[0071]

[0072] Where F represents the comprehensive performance score; w 1 、w 2 、w 3 、w 4 represents the weight coefficient; R represents the rate in the test parameter; R maxIndicates the maximum rate; S indicates the packet size in the test parameters; H indicates the protocol header size; S max Indicates the maximum packet size; E r represents the transmission error rate; L represents the packet loss rate; N represents the number of time windows; i represents the index variable; P L represents the average packet loss rate; P i represents the packet loss rate measured in the i-th time window;

[0073] Step 132, based on the comprehensive performance score, to evaluate the performance indicators under different test parameter combinations.

[0074] In the embodiment of the present invention, test parameters are obtained from the data source device and the data receiving device, including rate R, packet size S, protocol header size H, R max is the maximum rate; if it is actually the protocol header size, it needs to be adjusted accordingly), the maximum packet size S max . Obtain performance indicators, including transmission error rate E r , packet loss rate L, the number of time windows N, and the packet loss rate P measured in the i-th time window i and the average packet loss rate P L .

[0075] Calculation rate part Indicates the ratio of the current rate to the maximum rate.

[0076] Calculate the packet size part Indicates the ratio of the current packet size to the maximum packet size, taking into account the impact of the protocol header size on the packet size.

[0077] Calculating the Transmission Error Rate Part-E r , represents the negative value of the transmission error rate, because the lower the error rate, the better the performance.

[0078] Calculating the packet loss rate Where P represents a constant related to the packet loss rate (assuming P = 1, that is, directly considering the variation of the packet loss rate), which reflects the stability and consistency of the packet loss rate. 1 、w 2 、w 3 、w 4 , weighted sum of the above components is taken to obtain the comprehensive performance score F.

[0079] Step 132 changes the test parameters (such as rate, packet size, etc.) and executes step 131 multiple times to obtain comprehensive performance scores under different test parameter combinations. The comprehensive performance scores under different test parameter combinations are compared to find the final test parameter combination. According to the test parameter combination with the highest comprehensive performance score, the corresponding performance indicators (such as transmission error rate, packet loss rate, etc.) are analyzed to understand the performance of the data line under this combination.

[0080] By defining the performance evaluation function, the performance indicators under different test parameter combinations can be quantified, providing a clear basis for the optimization of test parameters. The comprehensive performance score takes into account multiple aspects such as rate, packet size, transmission error rate and packet loss rate, and fully reflects the performance level of the data line. Through the weighted summation method, the weight of each part can be adjusted according to actual needs, making the performance evaluation more flexible and accurate. By comparing the comprehensive performance scores under different test parameter combinations, the optimal test parameter combination can be quickly found to improve the test efficiency. By analyzing the performance indicators under the final test parameter combination, the performance characteristics of the data line can be deeply understood, providing strong support for the quality control and improvement of the data line.

[0081] In a preferred embodiment of the present invention, the above step 14, simulating the process of fruit fly colonies searching for food, iteratively adjusting the test parameters, and evaluating the performance indicators after each adjustment to determine the final test parameter combination, may include:

[0082] Step 141, defining a search space of test parameters, including rate and packet size, and creating a fruit fly population, wherein each fruit fly represents a set of test parameter combinations;

[0083] Step 142, during initialization, randomly assigning the position of each set of parameters in the search space, and performing a data transmission rate test on each fruit fly to obtain a test result;

[0084] Step 143, according to the test results, use the performance evaluation function to calculate the comprehensive performance score of each fruit fly;

[0085] Step 144, in each iteration, simulating the behavior of the fruit fly group in searching for food, and updating the position of the fruit fly according to the comprehensive performance score of each fruit fly;

[0086] Step 145, the process of updating the fruit fly position is continued. When the preset number of iterations is reached, the comprehensive performance score of each fruit fly is evaluated, and the final test parameter combination is determined based on the comprehensive performance score of the fruit fly.

[0087] In an embodiment of the present invention, the value range of the rate and the packet size is determined to form a search space. For example, the rate range is set to [1Mbps, 100Mbps], and the packet size range may be set to [64Bytes, 1500Bytes]. The search space is divided into a number of small areas, each of which represents a set of test parameter combinations. A fruit fly colony is generated, wherein each fruit fly represents a set of test parameter combinations. The number of fruit flies can be determined based on the complexity of the search space and the required accuracy. A unique identifier is assigned to each fruit fly.

[0088] Step 142, randomly assign a set of initial test parameters (rate and packet size) to each fruit fly in the search space. For each fruit fly, use the test parameter combination represented by it to configure the data source device and the data receiving device. Perform data transmission test and record the test results, such as transmission time, transmission error rate, etc.

[0089] Step 143, according to the performance evaluation function, the test result of each fruit fly is used as input to calculate its comprehensive performance score. The comprehensive performance score of each fruit fly is stored in a corresponding data structure.

[0090] Step 144, based on the comprehensive performance score of the fruit fly, simulate the behavior of the fruit fly moving to a higher scoring area. This can be achieved by adjusting the test parameter combination of the fruit fly. For example, for a fruit fly with a higher score, its test parameters can be fine-tuned to an adjacent high-scoring area; for a fruit fly with a lower score, its test parameters can be explored to a wider area. Based on the simulation results, the position of each fruit fly in the search space is updated, that is, the test parameter combination it represents is updated.

[0091] Step 145, repeating steps 142 to 144 until a preset number of iterations is reached. After the last iteration, the comprehensive performance score of each fruit fly is evaluated to find the fruit fly with the highest score. The test parameter combination represented by the fruit fly with the highest score is determined as the final test parameter combination.

[0092] Suppose there is a fruit fly population consisting of 10 fruit flies. During initialization, a set of test parameters is randomly assigned to each fruit fly, such as:

[0093] Fruitfly 1: Rate = 50Mbps, Packet Size = 500Bytes

[0094] Fruitfly 2: Rate = 20Mbps, Packet Size = 1000Bytes...

[0095] Fruitfly 10: Rate = 80Mbps, Packet Size = 200Bytes

[0096] Perform data transfer tests, get the test results of each fruit fly, and use the performance evaluation function to calculate its comprehensive performance score. After the first iteration, update the position of the fruit fly according to the score, such as:

[0097] Fruit Fly 1 (higher score): rate = 52Mbps, packet size = 510Bytes (fine-tuning)

[0098] Fruit Fly 2 (lower score): rate = 30Mbps, packet size = 800Bytes (exploring new areas)...

[0099] After multiple iterations, the fruit fly with the highest score was found, and its test parameter combination was: rate = 75Mbps, packet size = 1200Bytes. This is the final test parameter combination determined.

[0100] By simulating the food-searching behavior of a fruit fly colony, we can efficiently find the optimal test parameter combination in a complex search space, thereby improving test efficiency.

[0101] The fruit fly swarm algorithm has global search capabilities and can avoid falling into local optimal solutions, thereby finding a more comprehensive final test parameter combination. The number of fruit fly swarms, number of iterations, and search space range can be adjusted according to actual needs, making the algorithm more flexible and adaptable. The entire search process is automatically executed, reducing the impact of manual intervention and subjective judgment, and improving the objectivity and accuracy of the test.

[0102] In another preferred embodiment of the present invention, the above step 144, in each iteration, simulating the behavior of the fruit fly group in searching for food and updating the position of the fruit fly according to the comprehensive performance score of each fruit fly, may include:

[0103] Step 1441, for each fruit fly in the fruit fly population, three different fruit flies are randomly selected, and a difference vector is calculated using the test parameter combination of the selected three fruit flies;

[0104] Step 1442, generating a new candidate position according to the parameter combination and the differential vector of the current fruit fly;

[0105] Step 1443, using the test parameter combination of the new candidate position, performing a data transmission rate test to obtain a test result, including a transmission rate, an error rate, and a stability index;

[0106] Step 1444, based on the test results, compare the comprehensive performance score of the new candidate position with the score of the current fruit fly. If the comprehensive performance score of the new candidate position is higher than the score of the current fruit fly, update the position of the current fruit fly to the new position.

[0107] In an embodiment of the present invention, for each fruit fly in a fruit fly colony, three different fruit flies are randomly selected (ensuring that the selected fruit flies do not include the current fruit fly itself). The test parameter combinations of the three randomly selected fruit flies are obtained, including rate and packet size. The difference between the three fruit fly test parameter combinations is calculated to form two difference vectors. For example, the difference vector between the first fruit fly and the second fruit fly, and the difference vector between the first fruit fly and the third fruit fly can be calculated (or other combinations can be used, such as taking the average value of the three fruit fly parameters and then subtracting it from the current fruit fly parameters). The difference vector represents the relative position difference between the selected fruit flies in the test parameter space.

[0108] Step 1442, set a scaling factor to control the influence of the differential vector on the current fruit fly position update. The scaling factor can be adjusted according to the actual situation to balance the relationship between exploration and utilization. The test parameter combination of the current fruit fly is multiplied by the differential vector to obtain a new candidate position. The new candidate position represents a new test parameter combination adjusted based on the current fruit fly position according to the relative position difference of the selected fruit fly.

[0109] Step 1443: Use the test parameter combination of the new candidate position to configure the data source device and the data receiving device, perform data transmission test, and record the test results, including transmission rate, error rate, stability index, etc.

[0110] Step 1444, using the performance evaluation function, taking the test result of the new candidate position as input, calculates its comprehensive performance score. Compare the comprehensive performance score of the new candidate position with the score of the current fruit fly. If the comprehensive performance score of the new candidate position is higher than the score of the current fruit fly, update the position of the current fruit fly to the new position. Otherwise, keep the position of the current fruit fly unchanged.

[0111] Assume that there are 5 fruit flies in the fruit fly population, and the position update of the third fruit fly is currently being processed.

[0112] The 1st, 2nd and 4th flies were randomly selected.

[0113] Get their test parameter combinations: the first fruit fly (rate = 50 Mbps, packet size = 500 Bytes), the second fruit fly (rate = 60 Mbps, packet size = 600 Bytes), the fourth fruit fly (rate = 70 Mbps, packet size = 700 Bytes).

[0114] Calculate the differential vector: For example, the differential vector between the first fruit fly and the second fruit fly can be calculated as (10 Mbps, 100 Bytes), and the differential vector between the first fruit fly and the fourth fruit fly can be calculated as (20 Mbps, 200 Bytes).

[0115] Set the scaling factor to 0.5. Generate a new candidate location using the differential vector and scaling factor: for example, if the parameter combination of the current fruit fly (the third one) is (55Mbps, 550Bytes), then the new candidate location is (55+0.5×10, 550+0.5×100)=(60Mbps, 600Bytes) or (55+0.5×20, 550+0.5×200)=(65Mbps, 650Bytes), depending on the differential vector and combination used. Configure the data source device and the data receiving device to use the test parameter combination of the new candidate location. Perform the test to obtain test results such as transmission rate, error rate, and stability index. Calculate the comprehensive performance score of the new candidate location. Compare the comprehensive performance score of the new candidate location with the score of the current fruit fly. If the new candidate location has a higher score, update the current fruit fly's location to the new location; otherwise, keep the location unchanged.

[0116] By randomly selecting fruit flies and calculating differential vectors, more diversity can be introduced, enhancing the exploration ability of the fruit fly population in the test parameter space. Using differential vectors and scaling factors to generate new candidate positions can find better test parameter combinations more quickly and improve convergence speed. By adjusting the scaling factor, a balance can be found between exploring new areas and using existing information to avoid falling into a local optimal solution too early. The entire process is automatically executed, and the positions of fruit flies can be dynamically adjusted according to the test results, which is adaptive. This helps to find the final test parameter combination under different environments and requirements.

[0117] In a preferred embodiment of the present invention, in the above step 15, the data source device is started, and data transmission to the data receiving device is started according to the final test parameter combination, and the actual amount of data received and the time taken for transmission are recorded on the data receiving device; in the above step 16, the actual data transmission rate of the mobile phone data line is calculated according to the actual amount of data received and the time taken for transmission; the calculation formula of the actual data transmission rate of the mobile phone data line is:

[0118]

[0119] Among them, B represents the actual data transmission rate of the mobile phone data line; D r Indicates the amount of valid data received; η p represents the protocol efficiency coefficient; η c represents the coding efficiency coefficient; η h represents the packet header overhead efficiency coefficient; η o represents the channel efficiency coefficient; L represents the packet loss rate; k l Indicates the proportion of redundant data transmission; D t Indicates the amount of task data transmitted; A h Indicates the theoretical transmission rate; Tj Indicates jitter delay; T a Indicates the total network delay time; D o represents the total protocol overhead; f represents the network congestion penalty coefficient; D e Indicates the total amount of erroneous data; k d Indicates the data discard rate; D s Indicates the amount of retransmitted data; D d Indicates the amount of data that is repeatedly transmitted; D g Indicates the total amount of data initially transmitted; D x Indicates the amount of data resent.

[0120] In an embodiment of the present invention, a startup instruction is sent to the data source device, instructing it to start transmitting data according to the final test parameter combination (such as rate, packet size, etc.). Ensure that the connection between the data source device and the data receiving device is normal and both are correctly configured. The data source device starts to transmit data according to the preset parameter combination. Monitor the data transmission process to ensure that the data is continuously and stably transmitted to the data receiving device.

[0121] The data receiving device records the actual amount of data received while receiving data. r And the time taken for transmission. Get these records from the data receiving device. Calculate the relevant part of the effective data volume:

[0122] Get the amount of valid data received D r According to the agreement efficiency coefficient η p , coding efficiency coefficient η c , packet header overhead efficiency coefficient η h and channel efficiency coefficient η o Calculate the efficiency product. Consider the packet loss rate L and the redundant data transmission ratio k l Impact on the amount of effective data.

[0123] Calculate the part related to the transmission time: Get the amount of task data D to be transmitted t And the theoretical transmission rate A h , calculate the basic value of transmission time Add jitter delay T j , total network delay time T a , total protocol overhead D o And the influence of network congestion penalty coefficient f.

[0124] Calculate the data volume adjustment coefficient: Get the total error data volume D e , data discard rate k d . Calculate the total amount of data D initially transmitted g , the amount of retransmitted data D x , the amount of data transmitted repeatedly D dand the amount of data resent D x . Calculate the data volume adjustment factor based on these values

[0125] Comprehensively calculate the actual data transmission rate B: multiply the results of the above two parts to obtain the actual data transmission rate B.

[0126] The automated startup process reduces manual intervention and improves test efficiency. It ensures that the test is performed in a consistent environment and conditions, which enhances the reliability of the test results. The automated transmission process reduces human errors and improves the accuracy of data transmission. Real-time monitoring helps to promptly discover and solve problems in the transmission process. Accurately recording data volume and time information provides a basis for calculating the actual data transmission rate. The automated recording process reduces errors and omissions in human recording. By comprehensively considering multiple factors (such as efficiency coefficient, delay, amount of erroneous data, etc.), the calculated actual data transmission rate is more accurate and comprehensive. The automated calculation process reduces errors and omissions in human calculations and improves calculation efficiency.

[0127] In a preferred embodiment of the present invention, the above step 17, comparing the actual data transmission rate with the preset data transmission rate, analyzing the performance of the mobile phone data line, including the transmission error rate and the signal stability, and obtaining the performance analysis result of the mobile phone data line, may include:

[0128] Step 171, calculate the difference between the actual data transmission rate and the preset data transmission rate, and evaluate the rate matching degree according to the difference to obtain a performance score. If the difference exceeds the trust region radius, it is marked as rate mismatch and the score is adjusted; evaluate whether the transmission error rate is lower than the preset threshold, and adjust the performance score according to the comparison result between the error rate and the threshold. If the error rate exceeds the range within the trust region, the score is adjusted; evaluate the stability index of the signal, compare the signal stability index with the stability standard within the trust region. If the signal stability exceeds the trust region, adjust the factors related to the signal stability to obtain the evaluation results of the rate matching degree, the transmission error rate and the signal stability;

[0129] Step 172, based on the evaluation results of the rate matching degree, transmission error rate and signal stability, generate the performance analysis results of the mobile phone data line, including the rate matching degree, transmission error rate, signal stability and the final performance level.

[0130] In an embodiment of the present invention, an actual data transmission rate (B_actual) and a preset data transmission rate (B_preset) are obtained. The difference between the two is calculated, i.e., |B_actual-B_preset|. The rate matching degree is evaluated and a performance score is obtained. According to the difference, a preset evaluation standard (such as a trust region radius) is used to judge the rate matching degree. If the difference is within the trust region radius, the rate matching is considered good and a higher performance score is given. If the difference exceeds the trust region radius, it is marked as a rate mismatch, and the score is adjusted accordingly (such as lowering the score). The actual transmission error rate (Error_rate_actual) and the preset threshold (Error_rate_threshold) are obtained. The actual transmission error rate is compared with the preset threshold. If the actual transmission error rate is lower than the preset threshold, the performance score is maintained or improved. If the actual transmission error rate exceeds the range within the trust region (i.e., higher than the preset threshold), the score is adjusted (such as lowering the score).

[0131] Obtain the signal stability index (Stability_index_actual) and the stability standard within the trust domain (Stability_standard). Compare the signal stability index with the stability standard. If the signal stability is within the trust domain, maintain or improve the stability-related performance score portion. If the signal stability is outside the trust domain, adjust the factors related to signal stability (such as considering adjusting signal enhancement measures) and adjust the score accordingly. Summarize the above evaluation results, including the specific evaluation of rate matching degree, transmission error rate, and signal stability.

[0132] Step 172, based on the evaluation results of the rate matching degree, transmission error rate and signal stability, a detailed performance analysis result report is generated. The report includes a detailed description of the rate matching degree, the specific value of the transmission error rate and whether it meets the standard, the evaluation of signal stability and any relevant adjustment suggestions. Based on the performance analysis result report, the final performance level of the mobile phone data cable is determined using the preset performance level evaluation criteria. Performance levels include excellent, good, average, poor, etc.

[0133] Suppose you are performing a performance test on a mobile phone data cable.

[0134] The actual data transmission rate is 90Mbps, and the preset data transmission rate is 100Mbps. The difference is |90-100|=10Mbps. Within the trust domain radius (such as 15Mbps), the rate matching is good, and the initial performance score is 80 points. The actual transmission error rate is 0.5%, which is 1% lower than the preset threshold, and the performance score remains unchanged. The signal stability index is 95% (indicating that the signal is stable), which is 90% higher than the stability standard within the trust domain. The performance score part related to stability is improved, and the total score is adjusted to 85 points. Performance analysis result report: The rate matching is good, the transmission error rate meets the standard, and the signal stability is high. The final performance level is rated as "good".

[0135] By automatically calculating and evaluating indicators such as actual data transmission rate, transmission error rate, and signal stability, the accuracy and objectivity of the test are improved. The generated performance analysis result report provides detailed evaluation information and adjustment suggestions, which helps developers better understand the performance of mobile phone data cables and make targeted optimizations. The automated test process simplifies manual operations, improves test efficiency, and reduces human errors and omissions. The performance level of mobile phone data cables is automatically assessed based on the performance analysis result report, providing strong support for product selection and quality control.

[0136] like Figure 2 As shown, an embodiment of the present invention further provides a data transmission rate test system for a mobile phone data line, comprising:

[0137] The test equipment module is used to provide a data transmitter and a data receiver, and the data transmitter is connected to the data receiver through a data line of the mobile phone to be tested, so as to realize a bidirectional or unidirectional data transmission test;

[0138] The acquisition module is used to collect the raw data in the transmission process in real time, and includes a data acquisition unit and an indicator extraction unit;

[0139] A parameter setting module, used for receiving test parameters input by a user;

[0140] A processing module is used to process the raw data collected by the acquisition module to obtain a processing result;

[0141] The performance evaluation module is used to calculate the comprehensive performance score of the data line according to the processing results of the processing module and the preset scoring rules;

[0142] The report generation module is used to automatically generate a formatted test report based on the comprehensive performance score of the performance evaluation module and the data during the test process;

[0143] Iterative optimization module is used to simulate the optimization process and randomly select three different parameter combinations for calculation and optimization in each iteration.

[0144] It should be noted that the system is a system corresponding to the above method, and all implementation methods in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.

[0145] The embodiment of the present invention further provides a computing device, comprising: a processor, a memory storing a computer program, wherein when the computer program is executed by the processor, the method described above is executed. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.

[0146] The embodiment of the present invention also provides a computer-readable storage medium storing instructions, which, when executed on a computer, enable the computer to execute the method described above. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.

[0147] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for testing the data transmission rate of a mobile phone data line, characterized in that: The method comprises: Connect one end of the mobile phone data cable to the data source device for testing, and the other end to the data receiving device; Set the data transmission rate, data packet size, and transmission protocol test parameters on the data source device, and configure the corresponding receiving parameters on the data receiving device; Define performance evaluation functions to evaluate performance indicators under different test parameter combinations; The process of fruit fly colonies searching for food is simulated, the test parameters are adjusted iteratively, and the performance indicators after each adjustment are evaluated to determine the final test parameter combination; Start the data source device, start transmitting data to the data receiving device according to the final test parameter combination, and record the actual amount of data received and the time taken for transmission on the data receiving device; Calculate the actual data transmission rate of the mobile phone data line based on the actual amount of data received and the time taken for transmission; The actual data transmission rate is compared with the preset data transmission rate, and the performance of the mobile phone data line is analyzed, including the transmission error rate and signal stability, to obtain the performance analysis result of the mobile phone data line.

2. The method for testing the data transmission rate of a mobile phone data line according to claim 1, characterized in that: Define performance evaluation functions to evaluate performance indicators under different test parameter combinations, including: The performance evaluation function obtains a comprehensive performance score based on the test parameters, including rate, packet size, and performance indicators; Based on the comprehensive performance score, the performance indicators under different test parameter combinations are evaluated.

3. The method for testing the data transmission rate of a mobile phone data line according to claim 2, characterized in that: The process of fruit fly colonies searching for food was simulated. The test parameters were adjusted iteratively and the performance indicators after each adjustment were evaluated to determine the final test parameter combination, including: Define the search space of test parameters, including rate, packet size, and create a population of fruit flies, where each fruit fly represents a set of test parameter combinations; During initialization, the position of each set of parameters in the search space is randomly assigned, and a data transmission rate test is performed on each fruit fly to obtain the test results.

4. The method for testing the data transmission rate of a mobile phone data line according to claim 3, characterized in that: The process of fruit fly colonies searching for food was simulated. The test parameters were adjusted iteratively and the performance indicators after each adjustment were evaluated to determine the final test parameter combination, including: Based on the test results, the comprehensive performance score of each fruit fly is calculated using the performance evaluation function; In each iteration, the food-seeking behavior of a fruit fly group is simulated, and the position of the fruit flies is updated according to the comprehensive performance score of each fruit fly; The process of updating the fruit fly position is continued. When the preset number of iterations is reached, the comprehensive performance score of each fruit fly is evaluated, and the final test parameter combination is determined based on the comprehensive performance score of the fruit fly.

5. The method for testing the data transmission rate of a mobile phone data line according to claim 4, characterized in that: In each iteration, the fruit fly group's behavior of searching for food is simulated, and the positions of the fruit flies are updated according to the comprehensive performance score of each fruit fly, including: For each fruit fly in the population, three different fruit flies were randomly selected and the difference vector was calculated using the test parameter combination of the selected three fruit flies; Generate new candidate positions based on the current fruit fly's parameter combination and difference vector.

6. The method for testing the data transmission rate of a mobile phone data line according to claim 5, characterized in that: In each iteration, the fruit fly group's behavior of searching for food is simulated, and the positions of the fruit flies are updated according to the comprehensive performance score of each fruit fly, including: Performing a data transmission rate test using a new test parameter combination of the candidate position to obtain test results including a transmission rate, an error rate, and a stability index; According to the test results, the comprehensive performance score of the new candidate position is compared with the score of the current fruit fly. If the comprehensive performance score of the new candidate position is higher than the score of the current fruit fly, the position of the current fruit fly is updated to the new position.

7. The method for testing the data transmission rate of a mobile phone data line according to claim 6, characterized in that: Compare the actual data transmission rate with the preset data transmission rate, analyze the performance of the mobile phone data line, including the transmission error rate and signal stability, and obtain the performance analysis results of the mobile phone data line, including: Calculate the difference between the actual data transmission rate and the preset data transmission rate, and evaluate the rate matching degree based on the difference to obtain a performance score. If the difference exceeds the trust region radius, it is marked as a rate mismatch and the score is adjusted. Evaluate whether the transmission error rate is lower than the preset threshold, and adjust the performance score based on the comparison result between the error rate and the threshold. If the error rate exceeds the range within the trust region, adjust the score. Evaluate the signal stability index, compare the signal stability index with the stability standard within the trust region. If the signal stability exceeds the trust region, adjust the factors related to the signal stability to obtain the evaluation results of the rate matching degree, transmission error rate and signal stability. Based on the evaluation results of rate matching degree, transmission error rate and signal stability, the performance analysis results of the mobile phone data line are generated, including rate matching degree, transmission error rate, signal stability and final performance level.

8. A data transmission rate test system for a mobile phone data line, the system implementing the method as claimed in any one of claims 1 to 7, characterized in that: include: The test equipment module is used to provide a data transmitter and a data receiver, and the data transmitter is connected to the data receiver through a data line of the mobile phone to be tested, so as to realize a bidirectional or unidirectional data transmission test; The acquisition module is used to collect the raw data in the transmission process in real time, and includes a data acquisition unit and an indicator extraction unit; A parameter setting module, used for receiving test parameters input by a user; A processing module is used to process the raw data collected by the acquisition module to obtain a processing result; The performance evaluation module is used to calculate the comprehensive performance score of the data line according to the processing results of the processing module and the preset scoring rules; The report generation module is used to automatically generate a formatted test report based on the comprehensive performance score of the performance evaluation module and the data during the test process; Iterative optimization module is used to simulate the optimization process and randomly select three different parameter combinations for calculation and optimization in each iteration.

9. A computing device, characterized in that include: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the method as claimed in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program, which, when executed by a processor, implements the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Data transmission rate automatic testing method and intelligent terminal

    CN105306304A

  • FIO performance test parameter optimization method and device based on ant colony algorithm

    CN118394613A