Method and device for testing throughput of wireless communication, electronic equipment and storage medium
By sending the target network access information and receiving IP addresses and signal strength on devices that do not have Root permissions, testing the wireless communication throughput of the second electronic device under the target network is realized, and automated testing in the prior art is solved The difficult-to-achieve problem improves the versatility and efficiency of the test.
Patent Information
- Application Number
- CN202310952863.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-31
- Publication Date
- 2025-02-14
AI Technical Summary
The prior art is difficult to implement automated wireless communication throughput testing on devices that do not have Root permissions, and the general range and efficiency of throughput testing are insufficient.
The access information of the target network is sent to the second electronic device through the first electronic device, and receives the IP address and signal strength it sends, and the throughput of the second electronic device under the target network is tested based on this information.
It realizes testing the device's wireless communication throughput without Root permission, expands the general range of throughput testing, and can automatically switch the test access network, saves test manpower and improves testing efficiency.
Smart Images

Figure CN119450552A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to a method, device, electronic device, and storage medium for testing wireless communication throughput. Background Art
[0002] Throughput is the amount of data successfully transmitted to a network device or port per unit time and can be used to measure device performance. Device throughput testing is an essential component of wireless communication testing. It reflects the device's transmission performance and can also verify the device's antenna performance and coexistence with other wireless systems. Therefore, a more efficient and widely applicable wireless communication throughput testing method is needed. Summary of the Invention
[0003] The present disclosure aims to solve one of the technical problems in the related art at least to a certain extent.
[0004] In a first aspect of the present disclosure, an embodiment provides a method for testing wireless communication throughput, which is applied to a first electronic device and includes:
[0005] sending access information of a target network to be accessed by the second electronic device to the second electronic device;
[0006] receiving a first Internet Protocol (IP) address and signal strength sent by the second electronic device;
[0007] Based on the second IP address of the first electronic device, the first IP address, and the signal strength, a throughput of the second electronic device in the target network is tested.
[0008] In a second aspect of the present disclosure, a method for testing wireless communication throughput is provided. The method is performed by a second electronic device and includes:
[0009] receiving access information of a target network sent by the first electronic device;
[0010] Accessing the target network based on the access information, and determining a first Internet Protocol (IP) address and signal strength of the target network;
[0011] The first IP address and signal strength are sent to the first electronic device.
[0012] According to a third aspect of the present disclosure, a device for testing wireless communication throughput is provided. The device is configured in a first electronic device and includes:
[0013] A first sending module, configured to send access information of a target network to be accessed by the second electronic device to the second electronic device;
[0014] a first receiving module, configured to receive a first Internet Protocol (IP) address and a signal strength sent by the second electronic device;
[0015] The testing module is configured to test the throughput of the second electronic device in the target network based on the second IP address of the first electronic device, the first IP address, and the signal strength.
[0016] In a fourth aspect of the present disclosure, an embodiment is provided of a wireless communication throughput testing device, the device being configured in a second electronic device and comprising:
[0017] A second receiving module is configured to receive access information of a target network sent by the first electronic device;
[0018] a determination module, configured to access the target network based on the access information and determine a first Internet Protocol (IP) address and signal strength of the target network;
[0019] The second sending module is configured to send the first IP address and signal strength to the first electronic device.
[0020] The fifth aspect embodiment of the present disclosure proposes an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the wireless communication throughput testing method proposed in the embodiment of the present disclosure is implemented.
[0021] The sixth aspect embodiment of the present disclosure proposes a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the wireless communication throughput testing method proposed in the embodiment of the present disclosure.
[0022] The seventh aspect embodiment of the present disclosure proposes a computer program product, including a computer program, which, when executed by a processor, implements the wireless communication throughput testing method proposed in the embodiment of the present disclosure.
[0023] The wireless communication throughput testing method, device, electronic device, and storage medium provided by the present disclosure have the following beneficial effects:
[0024] In this embodiment, the first electronic device sends access information of the target network to which the second electronic device is to access to the second electronic device, then receives the first Internet Protocol (IP) address and signal strength sent by the second electronic device. Based on the first electronic device's second IP address, first IP address, and signal strength, the throughput of the second electronic device's wireless communication on the target network is tested. Thus, based on the network's access information, IP address, and signal strength, wireless communication throughput testing of devices is performed without requiring permission, expanding the universal scope of throughput testing and enabling automatic switching of test access networks, saving testing manpower and improving the efficiency of throughput testing.
[0025] Additional aspects and advantages of the present disclosure will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The above and / or additional aspects and advantages of the present disclosure will become apparent and readily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0027] Figure 1 A flowchart of a method for testing wireless communication throughput provided by an embodiment of the present disclosure;
[0028] Figure 2 A flowchart of a method for testing wireless communication throughput provided by another embodiment of the present disclosure;
[0029] Figure 3 A flowchart of a method for testing wireless communication throughput provided by another embodiment of the present disclosure;
[0030] Figure 4 A signaling interaction diagram of a wireless communication throughput testing method provided by another embodiment of the present disclosure;
[0031] Figure 5 A schematic structural diagram of a wireless communication throughput testing device provided by an embodiment of the present disclosure;
[0032] Figure 6 A schematic structural diagram of a wireless communication throughput testing device provided by another embodiment of the present disclosure;
[0033] Figure 7 A block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0034] The following describes in detail embodiments of the present disclosure, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, and should not be construed as limiting the present disclosure.
[0035] The wireless communication throughput testing method in the embodiments of the present disclosure can be performed by the wireless communication throughput testing device in the embodiments of the present disclosure. The device can be configured in an electronic device, which is not limited in this disclosure. The electronic device can be any device with computing capabilities, such as a mobile phone, tablet computer, personal computer, personal digital assistant, wearable device, or other hardware device with various operating systems, touch screens, and / or displays.
[0036] This disclosure mainly proposes a wireless communication throughput testing method for the situation in related technologies where automated throughput testing cannot be performed on devices without root permissions. When it is necessary to test the throughput of a device, an application can be installed on a first electronic device and a second electronic device, and the application can be used to transmit information such as access information, IP address, and signal strength of the target network. The throughput of the second electronic device under the target network is then tested. This allows for automated throughput testing, improves test efficiency, and does not require root permissions, making the wireless communication throughput testing method more versatile.
[0037] The following describes in detail a wireless communication throughput testing method and apparatus provided by the present disclosure with reference to the accompanying drawings.
[0038] Figure 1 A flowchart of a method for testing wireless communication throughput provided by an embodiment of the present disclosure is provided.
[0039] like Figure 1 As shown, the wireless communication throughput testing method, applied to a first electronic device, may include:
[0040] Step 101: Send access information of a target network to be accessed by a second electronic device to the second electronic device.
[0041] In the present disclosure, the first electronic device may be a personal computer (PC) or the like.
[0042] Among them, in the present disclosure, the second electronic device refers to an Android device to be tested for throughput, which may be a mobile phone, tablet computer, wearable device, etc., and the present disclosure does not limit this. The target network refers to a frequency band network of a wireless router that the second electronic device can access, which may be 2.4 gigahertz (2.4GHz, abbreviated as 2.4G), 5 gigahertz low frequency band (5GHz Low Band, abbreviated as 5GL) or 5 gigahertz high frequency band (5GHz High Band, abbreviated as 5GH), etc., and the present disclosure does not limit this. The access information of the target network may be the service set identifier (SSID) and password of the target network, etc., and the present disclosure does not limit this.
[0043] In some possible implementation forms, the first electronic device may send the access information of the target network to the second application in the second electronic device through the first application in the first electronic device.
[0044] The first application is a Windows desktop application developed based on the WinForm framework (Windows Forms), and the second application is an Android application.
[0045] In the embodiment of the present disclosure, a first application of a first electronic device may send access information to a second application of a second electronic device through an ADB shell tool in an Android debug bridge (ADB).
[0046] In some possible implementation forms, the first electronic device may determine the access information of any network in the candidate network list that the second electronic device has not accessed as the access information of the target network.
[0047] The candidate network list refers to the network frequency bands supported by the wireless router connected to the first electronic device and the second electronic device, which may be 2.4G, 5GL or 5GH, etc., and this disclosure does not limit this.
[0048] That is, the first electronic device can randomly determine a network frequency band that the second electronic device has not accessed from the candidate network list as the target network to be accessed. For example, if the candidate network list includes 2.4G, 5GL, or 5GH, and the second electronic device has only accessed the 2.4G frequency band network, the first electronic device can determine the 5GL frequency band network as the target network to be accessed by the second electronic device, thereby obtaining the access information of the target network. Alternatively, the 5GH frequency band network can be determined as the target network to be accessed by the second electronic device, thereby obtaining the access information of the target network.
[0049] Alternatively, the first electronic device may also sequentially determine the access information of the candidate networks in the candidate network list as the access information of the target network based on a preset test order.
[0050] The preset test order may be an order from low to high frequency values corresponding to the candidate networks, or an order from high to low, etc., which is not limited in the present disclosure.
[0051] That is, the first electronic device can sequentially determine candidate networks as target networks for the second electronic device to access in a fixed order. For example, when the preset test order is 5GHz, 5GL, and 2.4G, the first electronic device will determine candidate networks in the 5GHz frequency band as target networks to access, then determine candidate networks in the 5GL frequency band as target networks to access, and finally determine candidate networks in the 2.4G frequency band as target networks to access.
[0052] In the embodiment of the present disclosure, based on the candidate network list, a random or fixed test order is adopted to determine the access information of the network to be accessed, so that the throughput test of the second electronic device in the full-band network can be realized, making the wireless communication throughput test result of the second electronic device more comprehensive and complete.
[0053] In some possible implementations, the first electronic device may determine the access information of the target network to be accessed by the second electronic device in response to a received throughput test initiation instruction. Alternatively, the first electronic device may determine the access information of the target network to be accessed by the second electronic device in response to the second electronic device having completed a throughput test on any network.
[0054] In an embodiment of the present disclosure, after the first electronic device and the second electronic device are connected via a universal serial bus (USB) or other means, the tester can click on the throughput test control in the first application display interface of the first electronic device, so that the first electronic device can receive the throughput test start instruction, respond to the instruction and determine the access information of the target network to be accessed by the second electronic device. Alternatively, it is also possible that during the test process, after completing the throughput test under each network, the access information of a new target network to be accessed for testing can be determined. This can achieve continuous testing of multi-band networks and reduce the waste of resources required to manually reconnect to the network.
[0055] Step 102: Receive a first Internet Protocol (IP) address and signal strength sent by a second electronic device.
[0056] In the disclosed embodiment, after the first electronic device sends access information to the second electronic device, it can receive the first Internet Protocol address (IP) of the second electronic device on the target network and its signal strength, returned by the second application of the second electronic device. Alternatively, it is possible to first receive the first IP address of the second electronic device on the target network, then send a signal strength reporting instruction to the second electronic device, and then receive the signal strength of the second electronic device.
[0057] In some possible implementations, the first electronic device may receive the first IP address sent by the second electronic device, and then, if the first IP address is valid, send a signal strength reporting instruction to the second electronic device, and then receive the signal strength sent by the second electronic device.
[0058] In the disclosed embodiment, specification information about the IP address can be pre-set in the first application of the first electronic device. After receiving the first IP address, it is matched with the specification information. If it matches, the first IP address can be considered legitimate. Then, a signal strength reporting instruction can be sent to the second electronic device through the adb shell to obtain the signal strength of the second electronic device under the target network. Alternatively, when the first IP address does not match the specification information, the first IP address is considered invalid, and then the acquisition of the signal strength of the second electronic device is stopped, ending the throughput test. Thus, the security of the throughput test can be improved by judging the legitimacy of the first IP address.
[0059] Step 103: Based on the second IP address, the first IP address, and the signal strength of the first electronic device, the throughput of the second electronic device in the target network is tested.
[0060] In an embodiment of the present disclosure, the first electronic device can perform a receive (RX) test and a transmit (TX) test between the first application and the second application through the network performance testing tool iperf file based on the second IP address, the first IP address and the signal strength of the first electronic device. In the RX test, the first electronic device acts as a client (server) and the second electronic device acts as a server (client). The first application in the first electronic device sends an iperfclient startup command to the second electronic device through a command line, and runs the iperfserver startup command of the first electronic device to complete the data reception volume test of the second electronic device; the TX test is that the second electronic device acts as a server and the first electronic device acts as a client. The first application in the first electronic device starts the iperfclient through a command line, and sends the iperfserver startup command to the second electronic device through the first application to complete the data transmission volume test of the second electronic device, thereby realizing the throughput test of the second electronic device under the target network and obtaining the throughput test result under the target network.
[0061] In this embodiment, the first electronic device first sends access information of the target network to which the second electronic device is to access to the second electronic device. It then receives the first Internet Protocol (IP) address and signal strength sent by the second electronic device. The throughput of the second electronic device on the target network is then tested based on the first electronic device's second IP address, first IP address, and signal strength. Thus, based on the network's access information, IP address, and signal strength, the wireless communication throughput of the device can be tested without requiring permission, expanding the universal scope of throughput testing and enabling automatic switching of test access networks, saving testing manpower and improving the efficiency of throughput testing.
[0062] Figure 2 A flowchart of a method for testing wireless communication throughput provided by another embodiment of the present disclosure is provided.
[0063] like Figure 2 As shown, the wireless communication throughput testing method, applied to a first electronic device, may include:
[0064] Step 201: Push the installation file of the second application to a designated path of the second electronic device through an Android debug bridge ADB connection with the second electronic device, so as to install the second application in the second electronic device.
[0065] The designated path refers to a path in the second electronic device where the installation file can be stored. It can be fixed or different in different second electronic devices. For example, the designated path can be the / data / local / tmp path, which is not limited in this disclosure.
[0066] In the embodiment of the present disclosure, the first electronic device can push the installation file to a specified path of the second electronic device through the Android debug bridge (ADB). The path has no permission restrictions, and commands can be used to grant the installation file read, write, and executable permissions, thereby enabling the installation of the second application in the second electronic device.
[0067] Step 202: Determine access information of a target network to be accessed by the second electronic device.
[0068] Step 203: Send access information of the target network to the second application in the second electronic device through the first application in the first electronic device.
[0069] Step 204: Receive the first Internet Protocol (IP) address and signal strength sent by the second electronic device.
[0070] The specific implementation of the above steps 202 to 204 can refer to the above embodiments and will not be repeated here.
[0071] Step 205: Acquire the second IP address of the first electronic device using the IP address acquisition function of the first electronic device.
[0072] The IP address acquisition function may be a built-in function of the WinForm framework.
[0073] Step 206: Based on the second IP address, the first IP address, and the signal strength of the first electronic device, the throughput of the second electronic device in the target network is tested.
[0074] In some possible implementations, the first electronic device may launch a first client program in a first application and send a second server program launch instruction to a second application to test the data reception capacity of the second electronic device on the target network. Alternatively, the first server program in the first application may be launched and a second client program launch instruction may be sent to the second application to test the data transmission capacity of the second electronic device on the target network.
[0075] Step 207: Obtain throughput test results and signal strength of the second electronic device under different attenuation values of the target network.
[0076] The attenuation value refers to the loss of wireless signals during propagation.
[0077] In the disclosed embodiment, the throughput test results and signal strengths under different attenuation values in the target network can be obtained, thereby increasing the number of throughput tests and further improving the reliability of the throughput test results.
[0078] Step 208: The throughput test results and signal strengths under different attenuation values are associated with the target network and stored.
[0079] In the embodiment of the present disclosure, the first electronic device can associate the throughput test results and signal strength under different attenuation values with the target network for storage, so as to facilitate later query of the throughput of the second electronic device and measure the performance of the second electronic device. In addition, by storing the network access information of the second electronic device, the efficiency of confirming that the second electronic device is not connected to the network can be improved.
[0080] In this embodiment, the first electronic device, through an Android Debug Bridge (ADB) connection with the second electronic device, pushes the installation file of the second application to a specified path on the second electronic device, thereby installing the second application on the second electronic device. Information and instructions, etc., are then sent or received through the application to implement a throughput test on the target network. Testing the throughput of the electronic device based on the application avoids the need for permission during testing, thereby improving the versatility of the test. Furthermore, conducting throughput tests on the second electronic device under different attenuation values on the same target network can further improve the reliability of the throughput test results.
[0081] Figure 3 A flowchart of a method for testing wireless communication throughput provided by another embodiment of the present disclosure is provided.
[0082] like Figure 3 As shown, the wireless communication throughput testing method, applied to the second electronic device, may include:
[0083] Step 301: Receive access information of a target network sent by a first electronic device.
[0084] In the embodiment of the present disclosure, the second electronic device may receive the SSID and Password of the target network sent by the first electronic device to determine the target network.
[0085] Step 302: Access the target network based on the access information, and determine the first Internet Protocol (IP) address and signal strength of the target network.
[0086] In the embodiment of the present disclosure, the second electronic device can access the target network according to the received SSID and Password, and obtain the first Internet Protocol IP address and signal strength of the network after accessing the target network.
[0087] Step 303: Send the first Internet Protocol IP address and signal strength to the first electronic device.
[0088] In the embodiment of the present disclosure, the second electronic device may send the first IP address and the signal strength to the first electronic device at the same time. Alternatively, the first IP address may be sent first, followed by the signal strength, etc., which is not limited in the present disclosure.
[0089] In some possible implementations, the second electronic device may send the first IP address to the first electronic device, and then upon receiving the signal strength reporting instruction sent by the first electronic device, send the current signal strength to the first electronic device.
[0090] In this embodiment, the first electronic device first receives access information for the target network sent by the first electronic device. Based on the access information, the first electronic device then accesses the target network, determines the first Internet Protocol (IP) address and signal strength of the target network, and sends the first Internet Protocol (IP) address and signal strength to the first electronic device. Thus, accessing the target network based on the access information reduces the human resources required by testers to manually access the network, thus improving the efficiency of throughput testing.
[0091] Figure 4 A signaling interaction diagram of a wireless communication throughput testing method provided by another embodiment of the present disclosure.
[0092] like Figure 4 As shown, the wireless communication throughput testing method may include:
[0093] Step 401: The first electronic device determines access information of a target network to be accessed by the second electronic device.
[0094] Step 402: The first electronic device sends access information of the target network to the second electronic device.
[0095] Step 403: The second electronic device accesses the target network based on the access information, and determines the first Internet Protocol (IP) address and signal strength of the target network.
[0096] Step 404: The second electronic device sends the first Internet Protocol (IP) address and signal strength to the first electronic device.
[0097] Step 405: Based on the second IP address, the first IP address, and the signal strength of the first electronic device, the throughput of the second electronic device in the target network is tested.
[0098] For the specific implementation of the above steps 401 to 406, please refer to the detailed description of the above embodiments of the present disclosure, which will not be repeated here.
[0099] In this embodiment, the first electronic device determines the access information of the target network to be accessed by the second electronic device, and sends the access information to the second electronic device. Then, the second electronic device accesses the target network based on the access information, and determines the first Internet Protocol IP address and signal strength under the target network, and sends them to the first electronic device. Thereafter, based on the second IP address, the first IP address and the signal strength of the first electronic device, the throughput of the second electronic device under the target network is tested. Thus, based on the access information, IP address and signal strength of the target network transmitted between the first electronic device and the second electronic device, the throughput of the second electronic device under the target network is tested to obtain a throughput test result, thereby realizing automated throughput testing and improving test efficiency. In addition, no root permission is used during the test process, making the wireless communication throughput test method more universal.
[0100] In order to implement the above embodiments, the present disclosure further provides a device for testing wireless communication throughput.
[0101] like Figure 5 As shown, Figure 5 This is a schematic diagram of a wireless communication throughput test device provided by an embodiment of the present disclosure. The wireless communication throughput test device 500, which is configured on a first electronic device, may include:
[0102] A first sending module 501 is configured to send access information of a target network to be accessed by the second electronic device to the second electronic device;
[0103] The first receiving module 502 is configured to receive a first Internet Protocol (IP) address and a signal strength sent by a second electronic device;
[0104] The testing module 503 is configured to test the throughput of the second electronic device in the target network based on the second IP address, the first IP address, and the signal strength of the first electronic device.
[0105] In some embodiments, the first determining module 501 may also be used to:
[0106] Access information of a target network is sent to a second application in a second electronic device through a first application in a first electronic device.
[0107] In some embodiments, the first determining module 501 may also be used to:
[0108] The installation file of the second application is pushed to a designated path of the second electronic device through an Android debug bridge ADB connection with the second electronic device, so as to install the second application in the second electronic device.
[0109] In some embodiments, the test module 503 may also be used to:
[0110] Starting a first client program in the first application and sending a second server program starting instruction to the second application to test the data reception amount of the second electronic device under the target network;
[0111] A first server program in the first application is started, and a second client program start instruction is sent to the second application to test the data transmission volume of the second electronic device in the target network.
[0112] In some embodiments, the first determining module 501 may also be used to:
[0113] Determine the access information of any network in the candidate network list that the second electronic device has not accessed as the access information of the target network; or
[0114] Based on a preset test sequence, the access information of the candidate networks in the candidate network list is sequentially determined as the access information of the target network.
[0115] In some embodiments, the first receiving module 502 may also be used to:
[0116] Receive a first IP address sent by the device under test;
[0117] If the first IP address is valid, sending a signal strength reporting instruction to the second electronic device;
[0118] Receive the signal strength sent by the second electronic device.
[0119] In some embodiments, the test module 503 may also be used to:
[0120] Obtaining throughput test results and signal strength of the second electronic device under different attenuation values on the target network;
[0121] The throughput test results and signal strength under different attenuation values are associated with the target network and stored.
[0122] In some embodiments, the first determining module 501 may also be used to:
[0123] In response to receiving the throughput test start instruction, determining access information of a target network to be accessed by the second electronic device; or,
[0124] In response to the second electronic device having completed a throughput test under any network, access information of a target network to be accessed by the second electronic device is determined.
[0125] In some embodiments, the first receiving module 502 may also be used to:
[0126] The second IP address of the first electronic device is acquired by using the IP address acquisition function of the first electronic device.
[0127] The functions and specific implementation principles of any of the above modules in this implementation can be referred to the above method embodiments of the present disclosure, and will not be repeated here.
[0128] In this embodiment, the first electronic device first sends access information of the target network to which the second electronic device is to access to the second electronic device. It then receives the first Internet Protocol (IP) address and signal strength sent by the second electronic device. The throughput of the second electronic device on the target network is then tested based on the first electronic device's second IP address, first IP address, and signal strength. Thus, based on the network's access information, IP address, and signal strength, the wireless communication throughput of the device can be tested without requiring permission, expanding the universal scope of throughput testing and enabling automatic switching of test access networks, saving testing manpower and improving the efficiency of throughput testing.
[0129] like Figure 6 As shown, Figure 6 This is a schematic diagram of a wireless communication throughput test apparatus provided by another embodiment of the present disclosure. The wireless communication throughput test apparatus 600, configured on a second electronic device, may include:
[0130] The second receiving module 601 is configured to receive access information of a target network sent by a first electronic device;
[0131] A determination module 602 is configured to access a target network based on the access information and determine a first Internet Protocol (IP) address and signal strength of the target network;
[0132] The second sending module 603 is configured to send the first Internet Protocol IP address and signal strength to the first electronic device.
[0133] In some embodiments, the second sending module 603 may also be used to:
[0134] sending the first IP address to the first electronic device;
[0135] When a signal strength reporting instruction sent by the first electronic device is received, the current signal strength is sent to the first electronic device.
[0136] In this embodiment, the second electronic device first receives the target network access information sent by the first electronic device. Based on the access information, the second electronic device then accesses the target network, determines the first Internet Protocol (IP) address and signal strength of the target network, and sends the first Internet Protocol (IP) address and signal strength to the first electronic device. This reduces the human resources required by testers to manually access the network, improving the efficiency of throughput testing.
[0137] In order to implement the above embodiments, the present disclosure also proposes an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the wireless communication throughput testing method proposed in the above embodiments of the present disclosure.
[0138] In order to implement the above embodiments, the present disclosure further proposes a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the wireless communication throughput testing method proposed in the above embodiments of the present disclosure is implemented.
[0139] In order to implement the above embodiments, the present disclosure further proposes a computer program product, including a computer program. When the computer program is executed by a processor, it implements the wireless communication throughput testing method proposed in the above embodiments of the present disclosure.
[0140] Figure 7 A block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure is shown. Figure 7 The electronic device 700 shown is merely an example and should not limit the functions and scope of use of the embodiments of the present disclosure.
[0141] like Figure 7 As shown, electronic device 700 is implemented as a general-purpose computing device. Components of electronic device 700 may include, but are not limited to, one or more processors or processing units 16, system memory 28, and bus 18 connecting various system components (including system memory 28 and processing unit 16).
[0142] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. Examples of such architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnection (PCI) bus.
[0143] The electronic device 700 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 700, including volatile and non-volatile media, removable and non-removable media.
[0144] The memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 700 may further include other removable / non-removable, volatile / non-volatile computer system storage media. For example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 7 Not shown, often called a "hard drive"). Although Figure 7 Although not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a Compact Disc Read Only Memory (hereinafter referred to as: CD-ROM), a Digital Video Disc Read Only Memory (hereinafter referred to as: DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the various embodiments of the present disclosure.
[0145] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may include an implementation of a network environment. Program modules 42 generally implement the functions and / or methods of the embodiments described herein.
[0146] The electronic device 700 can also communicate with one or more external devices 14 (e.g., a keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the electronic device 700, and / or any device that enables the electronic device 700 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication can occur via an input / output (I / O) interface 22. Furthermore, the electronic device 700 can communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 700 via a bus 18. It should be understood that, although not shown, other hardware and / or software modules can be used in conjunction with the electronic device 700, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0147] The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing the methods mentioned in the above embodiments.
[0148] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and features of different embodiments or examples, unless they are mutually inconsistent.
[0149] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features being referred to. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. Throughout the present disclosure, "plurality" means at least two, such as two, three, etc., unless otherwise specifically defined.
[0150] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present disclosure includes additional implementations in which functions may be performed out of the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present disclosure belong.
[0151] The logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing the logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (e.g., a computer-based system, a system including a processor, or other system that can fetch and execute instructions from an instruction execution system, apparatus, or device). For purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include the following: an electrical connection with one or more wires (electronic devices), a portable computer disk cartridge (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and programmable read-only memory (EPROM or flash memory), fiber optic devices, and a portable compact disc read-only memory (CDROM). Furthermore, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or otherwise processing it in a suitable manner if necessary, and then storing it in a computer memory.
[0152] It should be understood that various parts of the present disclosure can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used to implement: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application-specific integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0153] Those skilled in the art will appreciate that all or part of the steps in the method for implementing the above-mentioned embodiment can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiment.
[0154] In addition, the functional units in the various embodiments of the present disclosure may be integrated into a single processing module, each unit may exist physically separately, or two or more units may be integrated into a single module. The aforementioned integrated modules may be implemented in the form of hardware or in the form of software functional modules. If the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they may also be stored in a computer-readable storage medium.
[0155] The storage medium mentioned above may be a read-only memory, a magnetic disk, or an optical disk, etc. Although the embodiments of the present disclosure have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present disclosure. A person of ordinary skill in the art may make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present disclosure.
Claims
1. A method for testing wireless communication throughput, characterized in that: The method is applied to a first electronic device, and the method includes: Sending access information of a target network to be accessed by the second electronic device to the second electronic device; receiving a first Internet Protocol IP address and a signal strength sent by the second electronic device; Based on the second IP address of the first electronic device, the first IP address and the signal strength, the throughput of the second electronic device in the target network is tested.
2. The method according to claim 1, characterized in that The sending, to the second electronic device, access information of the target network to be accessed by the second electronic device comprises: The access information of the target network is sent to the second application in the second electronic device through the first application in the first electronic device.
3. The method according to claim 2, characterized in that Before the step of sending the access information of the target network to the second application in the second electronic device through the first application in the first electronic device, the method further includes: The installation file of the second application is pushed to a designated path of the second electronic device through an Android debug bridge ADB connection with the second electronic device, so as to install the second application in the second electronic device.
4. The method according to claim 2, characterized in that The testing of the throughput of the second electronic device under the target network includes: Starting a first client program in the first application, and sending a second server program starting instruction to the second application, so as to test the data reception amount of the second electronic device under the target network; A first server program in the first application is started, and a second client program start instruction is sent to the second application to test the data transmission volume of the second electronic device under the target network.
5. The method according to claim 1, characterized in that The method further comprises: Determine the access information of any network in the candidate network list that the second electronic device has not accessed as the access information of the target network; or, Based on a preset test order, the access information of the candidate networks in the candidate network list is sequentially determined as the access information of the target network.
6. The method according to claim 1, characterized in that The receiving the first Internet Protocol IP address and signal strength sent by the second electronic device includes: Receiving a first IP address sent by the second electronic device; If the first IP address is legal, sending a signal strength reporting instruction to the second electronic device; Receive the signal strength sent by the second electronic device.
7. The method according to any one of claims 1 to 6, characterized in that: After the step of testing the throughput of the second electronic device under the target network, the method further includes: Obtaining throughput test results and signal strengths of the second electronic device at different attenuation values of the target network; The throughput test results and signal strengths under the different attenuation values are associated with the target network and stored.
8. The method according to any one of claims 1 to 6, characterized in that: The determining access information of the target network to be accessed by the second electronic device includes: In response to the received throughput test start instruction, determining access information of a target network to be accessed by the second electronic device; or, In response to the second electronic device having completed a throughput test under any network, access information of a target network to be accessed by the second first electronic device is determined.
9. The method according to any one of claims 1 to 6, characterized in that: After the step of receiving the first Internet Protocol IP address and the signal strength sent by the second electronic device, the method further includes: The second IP address of the first electronic device is acquired by using the IP address acquisition function of the first electronic device.
10. A method for testing wireless communication throughput, characterized in that: The method is applied to a second electronic device, and the method includes: Receiving access information of a target network sent by a first electronic device; Accessing the target network based on the access information, and determining a first Internet Protocol IP address and a signal strength under the target network; The first IP address and signal strength are sent to the first electronic device.
11. The method according to claim 10, characterized in that The sending the first Internet Protocol IP address and the signal strength to the first electronic device includes: sending the first IP address to the first electronic device; When a signal strength reporting instruction sent by the first electronic device is received, the current signal strength is sent to the first electronic device.
12. A wireless communication throughput testing device, characterized in that: The device is configured in a first electronic device and includes: A first sending module, used to send access information of a target network to be accessed by the second electronic device to the second electronic device; A first receiving module, used for receiving a first Internet Protocol IP address and a signal strength sent by the second electronic device; The test module is used to test the throughput of the second electronic device in the target network based on the second IP address of the first electronic device, the first IP address and the signal strength.
13. A wireless communication throughput testing device, characterized in that: The device is configured in a second electronic device and includes: A second receiving module, used to receive access information of a target network sent by the first electronic device; a determination module, configured to access the target network based on the access information, and determine a first Internet Protocol IP address and a signal strength under the target network; The second sending module is used to send the first IP address and signal strength to the first electronic device.
14. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the program, the method for testing the wireless communication throughput as claimed in any one of claims 1 to 11 is implemented.
15. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the wireless communication throughput testing method as described in any one of claims 1 to 11 is implemented.
16. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the wireless communication throughput testing method according to any one of claims 1 to 11.
Citation Information
Cited By
Method, device and equipment for automatically testing throughput of set top box, and medium
CN119676514A