Method and device for testing throughput of equipment, equipment and medium

By acquiring and traversing the router channel and attenuator attenuation range, the target channel and attenuation value are automatically selected for device throughput testing, solving the problem of low efficiency in the existing technology, and achieving efficient throughput test results extraction and intuitive data display .

CN119211086APending Publication Date: 2024-12-27GEER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310762100.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-26
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

The existing device throughput testing methods are inefficient, requiring manual control of the router and sorting out the test results, and it is impossible to automatically select the target channel and attenuation value.

Method used

By obtaining the router channel range and attenuator attenuation range, traversing the target channel and target attenuation values ​​in turn, performing throughput tests based on the matching interface, and extracting the test results according to the set data format.

Benefits of technology

It realizes automation of device throughput testing, improves testing efficiency, and can intuitively understand the throughput of the equipment to be tested.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119211086A_ABST
    Figure CN119211086A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data communication, and discloses an equipment throughput test method and device, equipment and a medium, and the method comprises the steps: obtaining a router channel range and an attenuator attenuation range; traversing the router channel range and the attenuator attenuation range in sequence to select a target channel and a target attenuation value; the target channel is any router channel contained in the router channel range, and the target attenuation value is any attenuator attenuation value contained in the attenuator attenuation range. Based on the target channel, the target attenuation value and an interface matched with the current communication mode, carrying out throughput testing on the to-be-tested equipment to obtain a testing result; and according to the set data format, the throughput corresponding to the to-be-tested equipment is automatically extracted from the test result, so that a user can intuitively know the throughput. The router channel range and the attenuator attenuation range are traversed in sequence, the target channel and the target attenuation value corresponding to the current test can be automatically selected, and the equipment throughput test efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data communication technology, and in particular to a method, apparatus, device and computer-readable storage medium for device throughput testing. Background Art

[0002] Wireless Fidelity (WiFi) is a technology that can connect personal computers, handheld devices and other terminals to each other wirelessly. With the continuous development of wireless network transmission technology, especially the newly launched WiFi6 and WiFi7 standards in recent years, more and more devices are connected to the network through WiFi. With the enrichment of application scenarios, the requirements for throughput are also higher, such as cloud games, augmented reality technology (AR), virtual reality technology (VR), smart home, etc.

[0003] The most primitive throughput test method is to use the network performance test command to manually test the throughput of the device and manually organize the test results. Or, the test results can be obtained by extracting data from the output test log. The current test methods all require manual control of the router to adjust the test channel, and the overall test efficiency is low.

[0004] It can be seen that how to improve the efficiency of device throughput testing is a problem that technical personnel in this field need to solve. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a method, apparatus, device and computer-readable storage medium for device throughput testing, which can improve the efficiency of device throughput testing.

[0006] In order to solve the above technical problems, the embodiment of the present application provides a method for testing device throughput, including:

[0007] Get the router channel range and attenuator attenuation range;

[0008] Traversing the router channel range and the attenuator attenuation range in sequence to select a target channel and a target attenuation value; wherein the target channel is any router channel included in the router channel range, and the target attenuation value is any attenuator attenuation value included in the attenuator attenuation range;

[0009] Based on the target channel, the target attenuation value, and an interface matching the current communication mode, a throughput test is performed on the device to be tested to obtain a test result;

[0010] The throughput corresponding to the device under test is extracted from the test result according to a set data format.

[0011] Optionally, the sequentially traversing the router channel range and the attenuation range of the attenuator to select a target channel and a target attenuation value includes:

[0012] Select any untraversed router channel from the router channel range as the target channel;

[0013] Under the target channel, any attenuation value of the attenuator that has not been traversed is selected in sequence from the attenuator attenuation range as the target attenuation value.

[0014] Optionally, after performing a throughput test on the device to be tested based on the target channel, the target attenuation value, and an interface matching the current communication mode to obtain a test result, the method further includes:

[0015] Determining whether there is an untraversed attenuation value of the attenuator in the attenuation range of the attenuator;

[0016] In the case where there is an untraversed attenuator attenuation value in the attenuator attenuation range, executing the step of sequentially selecting any untraversed attenuator attenuation value from the attenuator attenuation range as the target attenuation value under the target channel;

[0017] In the case that there is no untraversed attenuator attenuation value in the attenuator attenuation range, determining whether there is an untraversed router channel in the router channel range;

[0018] In the case where there are untraversed router channels in the router channel range, performing the step of selecting any untraversed router channel from the router channel range as the target channel;

[0019] When there is no untraversed router channel in the router channel range, the throughput test process of the device under test is terminated.

[0020] Optionally, the performing a throughput test on the device to be tested based on the target channel, the target attenuation value, and an interface matching the current communication mode to obtain a test result includes:

[0021] Retrieving a target interface that matches the communication mode of the device under test from a plurality of communication interfaces; wherein each communication interface has its own matching communication mode;

[0022] An iperf command set according to the target channel and the target attenuation value is sent to the device under test through the target interface to obtain a test result.

[0023] Optionally, extracting the throughput corresponding to the device under test from the test result according to a set data format includes:

[0024] Filtering a throughput unit symbol from the test results;

[0025] The number adjacent to the throughput unit symbol is used as the throughput corresponding to the device under test.

[0026] Optionally, after extracting the throughput corresponding to the device under test from the test result according to the set data format, the method further includes:

[0027] Record the throughput corresponding to each attenuator attenuation value under each router channel.

[0028] Optionally, after extracting the throughput corresponding to the device under test from the test result according to the set data format, the method further includes:

[0029] A throughput curve is constructed based on the throughput corresponding to each attenuator attenuation value under each router channel.

[0030] The embodiment of the present application also provides a device throughput test apparatus, including an acquisition unit, a traversal unit, a test unit and an extraction unit;

[0031] The acquisition unit is used to acquire the router channel range and the attenuation range of the attenuator;

[0032] The traversal unit is used to traverse the router channel range and the attenuator attenuation range in sequence to select a target channel and a target attenuation value; wherein the target channel is any router channel included in the router channel range, and the target attenuation value is any attenuator attenuation value included in the attenuator attenuation range;

[0033] The test unit is used to perform a throughput test on the device to be tested based on the target channel, the target attenuation value and an interface matching the current communication mode to obtain a test result;

[0034] The extraction unit is used to extract the throughput corresponding to the device under test from the test result according to a set data format.

[0035] Optionally, the traversal unit includes a first selection subunit and a second selection subunit;

[0036] The first selection subunit is used to select any untraversed router channel from the router channel range as a target channel;

[0037] The second selection subunit is used to select, in the target channel, any untraversed attenuation value of the attenuator from the attenuation range of the attenuator in sequence as the target attenuation value.

[0038] Optionally, it further includes a first judgment unit and a second judgment unit;

[0039] The first judging unit is used to judge whether there is an untraversed attenuator attenuation value in the attenuator attenuation range; if there is an untraversed attenuator attenuation value in the attenuator attenuation range, trigger the second selecting subunit to execute the step of selecting any untraversed attenuator attenuation value from the attenuator attenuation range as the target attenuation value in turn under the target channel;

[0040] The second judgment unit is used to judge whether there is an untraversed router channel in the router channel range when there is no untraversed attenuator attenuation value in the attenuator attenuation range; trigger the first selection subunit to execute the step of selecting any untraversed router channel from the router channel range as the target channel when there is an untraversed router channel in the router channel range; and end the throughput test process of the device under test when there is no untraversed router channel in the router channel range.

[0041] Optionally, the test unit includes a calling subunit and a sending subunit;

[0042] The calling subunit is used to call a target interface that matches the communication mode of the device under test from multiple communication interfaces; wherein each communication interface has its own matching communication mode;

[0043] The sending subunit is used to send an iperf command set according to the target channel and the target attenuation value to the device under test through the target interface to obtain a test result.

[0044] Optionally, the extraction unit includes a screening subunit and an acting subunit;

[0045] The screening subunit is used to screen out the throughput unit symbol from the test result;

[0046] The serving subunit is used to use a number adjacent to the throughput unit symbol as the throughput corresponding to the device under test.

[0047] Optionally, a recording unit is also included;

[0048] The recording unit is used to record the throughput corresponding to the attenuation value of each attenuator under each router channel.

[0049] Optionally, a building unit is also included;

[0050] The construction unit is used to construct a throughput curve based on the throughput corresponding to the attenuation value of each attenuator under each router channel.

[0051] The present application also provides an electronic device, including:

[0052] Memory for storing computer programs;

[0053] A processor is used to execute the computer program to implement the steps of the method for device throughput testing as described above.

[0054] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for device throughput testing as described above are implemented.

[0055] It can be seen from the above technical scheme that the router channel range and the attenuator attenuation range are obtained; the throughput of the wireless communication device under different router channels is different. In order to more comprehensively understand the throughput of the device under test, on the basis of determining the router channel, different distances between the router and the device under test can also be simulated by different attenuation values. In the actual test process, the router channel range and the attenuator attenuation range can be traversed in turn to select the target channel and the target attenuation value; wherein the target channel is any router channel included in the router channel range, and the target attenuation value is any attenuator attenuation value included in the attenuator attenuation range. Based on the target channel, the target attenuation value and the interface matching the current communication mode, the throughput test of the device under test is performed to obtain the test result; according to the set data format, the throughput corresponding to the device under test is extracted from the test result. In this technical scheme, by traversing the router channel range and the attenuator attenuation range in turn, the target channel and the target attenuation value corresponding to the current test can be automatically selected, thereby improving the efficiency of the device throughput test. And based on the set data format, the throughput can be automatically screened out from the test results, so that the user can intuitively understand the throughput of the device under test. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0057] Figure 1 A flowchart of a method for device throughput testing provided in an embodiment of the present application;

[0058] Figure 2 A flowchart of a method for selecting a router channel and an attenuation value provided in an embodiment of the present application;

[0059] Figure 3 A schematic diagram of the structure of a device throughput test apparatus provided in an embodiment of the present application;

[0060] Figure 4 A structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0061] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0062] The terms "including" and "having" in the specification and claims of this application and the above drawings, as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may include steps or units that are not listed.

[0063] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0064] Next, a method for testing device throughput provided by an embodiment of the present application is described in detail. Figure 1 A flowchart of a method for device throughput testing provided in an embodiment of the present application, the method comprising:

[0065] S101: Obtain a router channel range and an attenuator attenuation range.

[0066] In an embodiment of the present application, in order to realize automatic control of router channels during the throughput test, a router channel range can be pre-set, and by traversing the router channel range, a router channel included in the router channel range is selected in turn for throughput testing.

[0067] In order to simulate the communication distance between the router and the device under test, an attenuator can be set. Based on the communication distance range to be tested, the attenuation range of the attenuator can be determined. In actual applications, the test equipment can control the attenuator through the interface provided by the attenuator manufacturer. The test equipment can control the router through WebDriver.

[0068] The test equipment can pre-store the router channel range and attenuator attenuation range in the set storage space, and read the router channel range and attenuator attenuation range from the set storage space when the throughput test of the device under test is required. In addition, the user can also input the router channel range and attenuator attenuation range to the test equipment based on the current test requirements.

[0069] The device under test can be a device that communicates based on wireless network transmission technology, such as AR devices, VR devices, tablet computers, mobile phones, smart home devices, etc.

[0070] The test equipment refers to the equipment used to perform wireless network throughput test on the device under test, such as terminal equipment such as a personal computer (PC).

[0071] S102: traverse the router channel range and the attenuation range of the attenuator in sequence to select a target channel and a target attenuation value.

[0072] The router channel range may include multiple different frequency bands, with one frequency band representing one router channel.

[0073] The attenuation range of the attenuator may include a plurality of attenuation values ​​with different values, and each attenuation value has a corresponding communication distance.

[0074] The target channel may be any router channel included in the router channel range, and the target attenuation value may be any attenuator attenuation value included in the attenuator attenuation range.

[0075] In an embodiment of the present application, the test device can select any untraversed router channel from the router channel range as the target channel; under the target channel, select any untraversed attenuator attenuation value from the attenuator attenuation range in turn as the target attenuation value.

[0076] In actual applications, during the throughput test, the test equipment can set traversal marks for the router channels and attenuation values ​​that have been traversed, so as to clearly distinguish which are the router channels and attenuation values ​​that have been traversed and which are the router channels and attenuation values ​​that have not been traversed, thereby avoiding omissions or repeated tests during the test.

[0077] S103: Based on the target channel, the target attenuation value, and the interface matching the current communication mode, a throughput test is performed on the device to be tested to obtain a test result.

[0078] Considering that different devices support different communication protocols for test instructions, in order to support testing of different types of devices, in the embodiments of the present application, communication interfaces can be constructed for the communication protocols required by different types of devices. One communication interface can support one type of communication protocol.

[0079] The communication protocols supported by the communication interface may include but are not limited to TCP (Transmission Control Protocol), UDP (User Datagram Protocol), Serial (serial communication protocol), ADB (Android Debug Bridge), Telnet (remote terminal protocol), Socket and other protocols.

[0080] When performing a throughput test, a target interface matching the communication mode of the device under test may be retrieved from multiple communication interfaces; wherein each communication interface has its own matching communication mode;

[0081] The iperf command set according to the target channel and target attenuation value is sent to the device under test through the target interface to obtain the test result.

[0082] The method of using the iperf command to perform throughput testing can be referred to the prior art and will not be described in detail here.

[0083] S104: extracting the throughput corresponding to the device under test from the test results according to the set data format.

[0084] Taking the throughput test based on the iperf command as an example, the obtained test results include not only the throughput but also some other information. In order to help users intuitively understand the throughput of the device under test, the throughput corresponding to the device under test can be extracted from the test results.

[0085] Throughput has its corresponding unit symbol, based on which throughput and other information can be distinguished. Therefore, in practical applications, the throughput unit symbol can be filtered out from the test results; the number adjacent to the throughput unit symbol is used as the throughput corresponding to the device under test.

[0086] It can be seen from the above technical scheme that the router channel range and the attenuator attenuation range are obtained; the throughput of the wireless communication device under different router channels is different. In order to more comprehensively understand the throughput of the device under test, on the basis of determining the router channel, different distances between the router and the device under test can also be simulated by different attenuation values. In the actual test process, the router channel range and the attenuator attenuation range can be traversed in turn to select the target channel and the target attenuation value; wherein the target channel is any router channel included in the router channel range, and the target attenuation value is any attenuator attenuation value included in the attenuator attenuation range. Based on the target channel, the target attenuation value and the interface matching the current communication mode, the throughput test of the device under test is performed to obtain the test result; according to the set data format, the throughput corresponding to the device under test is extracted from the test result. In this technical scheme, by traversing the router channel range and the attenuator attenuation range in turn, the target channel and the target attenuation value corresponding to the current test can be automatically selected, thereby improving the efficiency of the device throughput test. And based on the set data format, the throughput can be automatically screened out from the test results, so that the user can intuitively understand the throughput of the device under test.

[0087] In the embodiment of the present application, the router channel and the attenuation value can be selected by traversing. In order to avoid missing a router channel or a certain attenuation value during the test process, the throughput test of the device under test can be performed each time based on the target channel, the target attenuation value and the interface matching the current communication mode, and after obtaining the test result, it is determined whether all router channels and all attenuation values ​​have been traversed.

[0088] Figure 2 A flowchart of a method for selecting a router channel and an attenuation value provided in an embodiment of the present application, the method comprising:

[0089] S201: Based on a target channel, a target attenuation value, and an interface matching the current communication mode, a throughput test is performed on the device to be tested to obtain a test result.

[0090] The specific implementation of S201 can refer to the introduction of S103, which will not be repeated here.

[0091] S202: Determine whether there is an attenuator attenuation value that has not been traversed in the attenuator attenuation range.

[0092] In the embodiment of the present application, when performing a throughput test on the device under test, the router channel can be selected first, and then the attenuation value can be selected in turn under the router channel. Therefore, each time the throughput test is performed on the device under test based on the target channel, the target attenuation value, and the interface matching the current communication mode, after obtaining the test result, it can be determined whether there is an attenuator attenuation value that has not been traversed in the attenuator attenuation range.

[0093] If there are untraversed attenuator attenuation values ​​in the attenuator attenuation range, it means that all attenuator attenuation values ​​have not been traversed under the target channel, and S203 can be executed at this time; if there are no untraversed attenuator attenuation values ​​in the attenuator attenuation range, it means that all attenuator attenuation values ​​have been traversed under the target channel, and S204 can be executed at this time.

[0094] S203: Under the target channel, select any untraversed attenuation value of the attenuator from the attenuator attenuation range in turn as the target attenuation value.

[0095] When there are untraversed attenuator attenuation values ​​in the attenuator attenuation range, an untraversed attenuator attenuation value can be selected from the attenuator attenuation range as the target attenuation value, and then a throughput test is performed on the device under test based on the target channel, the target attenuation value and an interface matching the current communication mode to obtain the test result.

[0096] S204: Determine whether there is an untraversed router channel in the router channel range.

[0097] In the case that there is no untraversed attenuator attenuation value in the attenuator attenuation range, it can be further determined whether there is an untraversed router channel in the router channel range.

[0098] When there are untraversed router channels in the router channel range, it means that there are still untraversed router channels, and S205 can be executed at this time; when there are no untraversed router channels in the router channel range, it means that the test process of combining all router channels and all attenuation values ​​has been completed, and S206 can be executed at this time.

[0099] S205: Select any untraversed router channel from the router channel range as the target channel.

[0100] In the case that there are untraversed router channels in the router channel range, any untraversed router channel can be selected from the router channel range as a target channel, and then a throughput test is performed on the device under test based on the target channel, the target attenuation value and the interface matching the current communication mode to obtain the test result.

[0101] S206: End the throughput test process of the device under test.

[0102] When there is no untraversed router channel in the router channel range, it means that the throughput test under the combination of all router channels and all attenuation values ​​has been completed, and the throughput test process of the device under test can be ended at this time.

[0103] For example, assume that the router channel range includes router channel A, router channel B, and router channel C; the attenuator attenuation range includes 10 attenuation values, from attenuation value 1 to attenuation value 10. During the test, you can first select router channel A as the target channel, select attenuation value 1 as the target attenuation value, and perform a throughput test on the device under test based on the target channel, target attenuation value, and the interface that matches the current communication mode to obtain the test results. After completing a throughput test, traverse and take out attenuation value 2 in the attenuator range as the target attenuation value, and then perform a throughput test. And so on, until all attenuation values ​​are traversed.

[0104] After selecting router channel A as the target channel and traversing all attenuation values, the router channels that have not been traversed in the router channel range include router channel B and router channel C. Router channel B can be selected as the target channel, and attenuation value 1 can be selected as the target attenuation value. Based on the target channel, target attenuation value, and the interface that matches the current communication mode, the throughput test of the device under test is performed to obtain the test results. After completing a throughput test, traverse and take out attenuation value 2 in the attenuator range as the target attenuation value, and then perform a throughput test. And so on, until all attenuation values ​​are traversed.

[0105] After selecting router channel B as the target channel and traversing all attenuation values, the router channels that have not been traversed in the router channel range include router channel C. Router channel C is selected as the target channel, and attenuation value 1 is selected as the target attenuation value. Based on the target channel, target attenuation value, and the interface that matches the current communication mode, a throughput test is performed on the device under test to obtain the test results. After completing a throughput test, traverse and take out attenuation value 2 in the attenuator range as the target attenuation value, and then perform a throughput test, and so on, until all attenuation values ​​are traversed. At this point, the throughput test process under all router channels and all attenuation value combinations is completed.

[0106] In the embodiment of the present application, by traversing the router channel range and the attenuator attenuation range, the target channel and the target attenuation value can be selected in an orderly manner. By judging whether there are untraversed attenuator attenuation values ​​in the attenuator attenuation range and judging whether there are untraversed router channels in the router channel range, it can be ensured that all attenuation values ​​and all router channels are tested, avoiding omission or repeated testing of router channels and attenuation values.

[0107] In order to facilitate users to subsequently understand the throughput of the device under test under different router channels and different distances, after extracting the throughput corresponding to the device under test from the test results according to the set data format, the throughput corresponding to each attenuator attenuation value under each router channel can be recorded.

[0108] In order to more intuitively understand the throughput of the device under test, a throughput curve can be constructed based on the throughput corresponding to each attenuator attenuation value under each router channel.

[0109] Figure 3 A schematic diagram of the structure of a device throughput test apparatus provided in an embodiment of the present application, comprising an acquisition unit 31, a traversal unit 32, a test unit 33 and an extraction unit 34;

[0110] An acquisition unit 31 is used to acquire a router channel range and an attenuation range of an attenuator;

[0111] The traversal unit 32 is used to traverse the router channel range and the attenuator attenuation range in sequence to select a target channel and a target attenuation value; wherein the target channel is any router channel included in the router channel range, and the target attenuation value is any attenuator attenuation value included in the attenuator attenuation range;

[0112] The test unit 33 is used to perform a throughput test on the device to be tested based on the target channel, the target attenuation value and the interface matching the current communication mode to obtain a test result;

[0113] The extraction unit 34 is used to extract the throughput corresponding to the device under test from the test result according to a set data format.

[0114] Optionally, the traversal unit includes a first selection subunit and a second selection subunit;

[0115] A first selection subunit is used to select any untraversed router channel from the router channel range as a target channel;

[0116] The second selection subunit is used to select, in the target channel, any untraversed attenuation value of the attenuator from the attenuation range of the attenuator in turn as the target attenuation value.

[0117] Optionally, it further includes a first judgment unit and a second judgment unit;

[0118] The first judgment unit is used to judge whether there is an untraversed attenuator attenuation value in the attenuator attenuation range; if there is an untraversed attenuator attenuation value in the attenuator attenuation range, trigger the second selection subunit to execute the step of selecting any untraversed attenuator attenuation value from the attenuator attenuation range as the target attenuation value in the target channel;

[0119] The second judgment unit is used to judge whether there is an untraversed router channel in the router channel range when there is no untraversed attenuator attenuation value in the attenuator attenuation range; if there is an untraversed router channel in the router channel range, trigger the first selection subunit to execute the step of selecting any untraversed router channel from the router channel range as the target channel; if there is no untraversed router channel in the router channel range, end the throughput test process of the device under test.

[0120] Optionally, the test unit includes a calling subunit and a sending subunit;

[0121] The calling subunit is used to call a target interface that matches the communication mode of the device under test from multiple communication interfaces; wherein each communication interface has its own matching communication mode;

[0122] The sending subunit is used to send the iperf command set according to the target channel and the target attenuation value to the device under test through the target interface to obtain the test result.

[0123] Optionally, the extraction unit includes a screening subunit and an acting subunit;

[0124] A screening subunit, used for screening out throughput unit symbols from the test results;

[0125] As a subunit, it is used to take the number adjacent to the throughput unit symbol as the throughput corresponding to the device under test.

[0126] Optionally, a recording unit is also included;

[0127] The recording unit is used to record the throughput corresponding to the attenuation value of each attenuator under each router channel.

[0128] Optionally, a building unit is also included;

[0129] The construction unit is used to construct a throughput curve based on the throughput corresponding to the attenuation value of each attenuator under each router channel.

[0130] Figure 3 The description of the features in the corresponding embodiments can be found in Figure 1 and Figure 2 The relevant descriptions of the corresponding embodiments will not be repeated here one by one.

[0131] It can be seen from the above technical scheme that the router channel range and the attenuator attenuation range are obtained; the throughput of the wireless communication device under different router channels is different. In order to more comprehensively understand the throughput of the device under test, on the basis of determining the router channel, different attenuation values ​​can also be used to determine the different distances between the router and the device under test. In the actual test process, the router channel range and the attenuator attenuation range can be traversed in sequence to select the target channel and the target attenuation value; wherein the target channel is any router channel included in the router channel range, and the target attenuation value is any attenuator attenuation value included in the attenuator attenuation range. Based on the target channel, the target attenuation value and the interface matching the current communication mode, the throughput test of the device under test is performed to obtain the test result; according to the set data format, the throughput corresponding to the device under test is extracted from the test result. In this technical scheme, by traversing the router channel range and the attenuator attenuation range in sequence, the target channel and the target attenuation value corresponding to the current test can be automatically selected, thereby improving the efficiency of the device throughput test. And based on the set data format, the throughput can be automatically screened out from the test results, so that the user can intuitively understand the throughput of the device under test.

[0132] Figure 4 A structural diagram of an electronic device provided in an embodiment of the present application, such as Figure 4 As shown, the electronic device includes: a memory 40 for storing a computer program;

[0133] The processor 41 is configured to implement the steps of the method for device throughput testing in the above embodiment when executing a computer program.

[0134] The electronic device provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer or a desktop computer.

[0135] Among them, the processor 41 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 41 can be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 41 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 41 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 41 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0136] The memory 40 may include one or more computer-readable storage media, which may be non-transitory. The memory 40 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 40 is at least used to store the following computer program 401, wherein, after the computer program is loaded and executed by the processor 41, the relevant steps of the method for device throughput testing disclosed in any of the aforementioned embodiments can be implemented. In addition, the resources stored in the memory 40 may also include an operating system 402 and data 403, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 402 may include Windows, Unix, Linux, etc. Data 403 may include but is not limited to router channel range, attenuator attenuation range, set data format, etc.

[0137] In some embodiments, the electronic device may further include a display screen 42 , an input / output interface 43 , a communication interface 44 , a power supply 45 , and a communication bus 46 .

[0138] Those skilled in the art will understand that Figure 4 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure.

[0139] It is understandable that if the method for device throughput testing in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the current technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the methods of each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, magnetic disk or optical disk and other media that can store program codes.

[0140] Based on this, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for device throughput testing as described above are implemented.

[0141] The above is a detailed introduction to a method, device, device and computer-readable storage medium for a device throughput test provided in an embodiment of the present application. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0142] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0143] The above is a detailed introduction to a method, apparatus, device and computer-readable storage medium for a device throughput test provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application, and the description of the above embodiments is only used to help understand the method and core idea of ​​the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

Claims

1. A method for testing device throughput, characterized in that: include: Get the router channel range and attenuator attenuation range; Traversing the router channel range and the attenuator attenuation range in sequence to select a target channel and a target attenuation value; wherein the target channel is any router channel included in the router channel range, and the target attenuation value is any attenuator attenuation value included in the attenuator attenuation range; Based on the target channel, the target attenuation value, and an interface matching the current communication mode, a throughput test is performed on the device to be tested to obtain a test result; The throughput corresponding to the device under test is extracted from the test result according to a set data format.

2. The method for testing device throughput according to claim 1, characterized in that: The step of sequentially traversing the router channel range and the attenuation range of the attenuator to select a target channel and a target attenuation value includes: Select any untraversed router channel from the router channel range as the target channel; Under the target channel, any attenuation value of the attenuator that has not been traversed is selected in sequence from the attenuator attenuation range as the target attenuation value.

3. The method for testing device throughput according to claim 2, characterized in that: After performing a throughput test on the device to be tested based on the target channel, the target attenuation value, and an interface matching the current communication mode to obtain a test result, the method further includes: Determining whether there is an untraversed attenuation value of the attenuator in the attenuation range of the attenuator; In the case where there is an untraversed attenuator attenuation value in the attenuator attenuation range, executing the step of selecting any untraversed attenuator attenuation value from the attenuator attenuation range as the target attenuation value in the target channel; In the case that there is no untraversed attenuator attenuation value in the attenuator attenuation range, determining whether there is an untraversed router channel in the router channel range; In the case where there are untraversed router channels in the router channel range, performing the step of selecting any untraversed router channel from the router channel range as the target channel; When there is no untraversed router channel in the router channel range, the throughput test process of the device under test is terminated.

4. The method for testing device throughput according to any one of claims 1 to 3, characterized in that: The performing a throughput test on the device to be tested based on the target channel, the target attenuation value, and an interface matching the current communication mode to obtain a test result includes: Retrieving a target interface that matches the communication mode of the device under test from a plurality of communication interfaces; wherein each communication interface has its own matching communication mode; An iperf command set according to the target channel and the target attenuation value is sent to the device under test through the target interface to obtain a test result.

5. The method for testing device throughput according to claim 1, characterized in that: The extracting the throughput corresponding to the device under test from the test result according to the set data format includes: Filtering a throughput unit symbol from the test results; The number adjacent to the throughput unit symbol is used as the throughput corresponding to the device under test.

6. The method for testing device throughput according to claim 1, characterized in that: After extracting the throughput corresponding to the device under test from the test result according to the set data format, the method further includes: Record the throughput corresponding to each attenuator attenuation value under each router channel.

7. The method for testing device throughput according to claim 1, characterized in that: After extracting the throughput corresponding to the device under test from the test result according to the set data format, the method further includes: A throughput curve is constructed based on the throughput corresponding to each attenuator attenuation value under each router channel.

8. A device for testing throughput of a device, characterized in that: Includes acquisition unit, traversal unit, test unit and extraction unit; The acquisition unit is used to acquire the router channel range and the attenuation range of the attenuator; The traversal unit is used to traverse the router channel range and the attenuator attenuation range in sequence to select a target channel and a target attenuation value; wherein the target channel is any router channel included in the router channel range, and the target attenuation value is any attenuator attenuation value included in the attenuator attenuation range; The test unit is used to perform a throughput test on the device to be tested based on the target channel, the target attenuation value and an interface matching the current communication mode to obtain a test result; The extraction unit is used to extract the throughput corresponding to the device under test from the test result according to a set data format.

9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to execute the computer program to implement the steps of the method for device throughput testing according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for device throughput testing according to any one of claims 1 to 7 are implemented.