CN116996930A - Wireless device testing method, system, computer device and storage medium - Google Patents

Wireless device testing method, system, computer device and storage medium Download PDF

Info

Publication number
CN116996930A
CN116996930A CN202311265765.3A CN202311265765A CN116996930A CN 116996930 A CN116996930 A CN 116996930A CN 202311265765 A CN202311265765 A CN 202311265765A CN 116996930 A CN116996930 A CN 116996930A
Authority
CN
China
Prior art keywords
test
equipment
upper computer
throughput
tested
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311265765.3A
Other languages
Chinese (zh)
Other versions
CN116996930B (en
Inventor
樊晓婷
钟荣钊
仪亮
余洪波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jingshi Technology Co ltd
Original Assignee
Shenzhen Jingshi Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jingshi Technology Co ltd filed Critical Shenzhen Jingshi Technology Co ltd
Priority to CN202311265765.3A priority Critical patent/CN116996930B/en
Publication of CN116996930A publication Critical patent/CN116996930A/en
Application granted granted Critical
Publication of CN116996930B publication Critical patent/CN116996930B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0888Throughput
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application relates to the field of automatic testing, and discloses a wireless device testing method, a system, computer equipment and a storage medium, wherein the method comprises the following steps: initiating a communication connection request to the equipment to be tested through the first communication port, and judging whether the communication connection is successfully established or not; after the communication connection is successfully established, acquiring equipment type parameters in a response packet of the equipment to be detected, and determining whether the equipment to be detected is wireless equipment according to the equipment type parameters; if yes, performing swallowing test through a throughput test port, calculating and displaying swallowing data in real time, determining whether the swallowing test is abnormal, and if so, displaying an abnormal state in real time; if no abnormality exists, carrying out spitting test on the throughput test port, calculating and displaying spitting data in real time, determining whether the spitting test is abnormal, and if so, displaying an abnormal state in real time. The upper computer can quickly obtain the type of the equipment to be tested, determine the test items and improve the test efficiency.

Description

Wireless device testing method, system, computer device and storage medium
Technical Field
The present application relates to the field of automated testing, and in particular, to a method and system for testing a wireless device, a computer device, and a storage medium.
Background
Before leaving the factory, aiming at the automatic test of the wireless equipment, if the equipment end is not the wireless equipment, the 'test throughput' signal sent by the PC is not processed, and the upper computer judges whether the equipment end has the condition of the test throughput or not by using the timeout, which is a very unnecessary time-consuming behavior. The testing throughput is the same communication link, and the real testing throughput consumes little hardware resources, and other tests are stopped every time the testing throughput tests, so that the hardware resources are wasted and the testing time is prolonged. The data are displayed on the interface of the upper computer after the test is finished, and if the problem of swallowing or spitting out is tested in the test process, the data are not displayed, so that a tester cannot know whether the problem is swallowing or spitting out better.
Disclosure of Invention
In a first aspect, the present application provides a method for testing a wireless device, applied to an upper computer, where the method includes:
initiating a communication connection request to the equipment to be tested through the first communication port, and judging whether the communication connection is successfully established or not;
after the communication connection is successfully established, acquiring equipment type parameters in a response packet of the equipment to be detected, and determining whether the equipment to be detected is wireless equipment according to the equipment type parameters;
if yes, performing throughput test through a throughput test port, calculating and displaying throughput data in real time, determining whether the throughput test is abnormal, and if so, displaying an abnormal state in real time;
if no abnormality exists, carrying out a throughput test port, calculating and displaying throughput data in real time, determining whether the throughput test is abnormal, and if so, displaying an abnormal state in real time.
Further, the initiating a communication connection request to the device to be tested, and establishing a communication connection, includes:
the upper computer is used as a client and initiates communication connection to the equipment to be tested through a TCP protocol;
and counting time through a timer, if the time of the timer exceeds the first preset time after initiating communication connection, determining that the device to be tested cannot be normally connected, and prompting that the device cannot be normally connected.
Further, when the throughput test is performed, the method further includes:
and when other test instructions are received, corresponding tests are carried out through the first communication port and the equipment to be tested.
Further, before performing the swallow test through the throughput test port, the method further includes:
and establishing connection with the equipment to be tested through the spitting test port, and if the connection is not successfully established within a second preset time, determining that the connection is failed to be established, and not performing throughput test and reporting errors.
Further, the determining whether the swallowing amount test is abnormal includes:
and calculating the swallowing amount data in real time, and judging that the swallowing amount is abnormal if the swallowing amount data cannot be calculated.
In a second aspect, the present application provides a method for testing a wireless device, applied to a device under test, the method comprising:
after receiving a communication connection request from an upper computer, establishing connection with the upper computer through a second communication port;
determining whether the wireless device is a wireless device or not, writing a device type parameter of a response in a response packet according to whether the wireless device is the wireless device, and sending the response packet to the upper computer;
when a throughput test request is received, establishing connection with the upper computer through a throughput test port, and receiving test data from the upper computer through the throughput test port;
and after the test data is sent, waiting for a third preset time, and sending reply data to the upper computer to perform a spitting test.
Further, the method further comprises: and when receiving other test instructions from the upper computer, receiving the test instructions from the upper computer through the second communication port for testing.
In a third aspect, the present application also provides a wireless device testing system, including: the upper computer and the equipment to be tested;
the upper computer is used for initiating a communication connection request to the equipment to be tested through the first communication port and judging whether the communication connection is successfully established or not;
after receiving a communication connection request from an upper computer, the equipment to be tested establishes connection with the upper computer through a second communication port;
the device to be tested determines whether the device to be tested is a wireless device or not, and writes a device type parameter of a response in a response packet of the device to be tested according to whether the device to be tested is the wireless device or not;
after the upper computer successfully establishes communication connection, acquiring equipment type parameters in a response packet of the equipment to be detected, and determining whether the equipment to be detected is wireless equipment according to the equipment type parameters;
when the upper computer determines that the device to be detected is wireless equipment, performing throughput test through a throughput test port, calculating and displaying throughput data in real time, determining whether the throughput test is abnormal, and displaying an abnormal state in real time if the throughput test is abnormal;
when the device to be tested receives a throughput test request, establishing connection with the upper computer through a throughput test port, and receiving test data from the upper computer through the throughput test port;
and after the test data transmission is completed, the device to be tested waits for a third preset time, and transmits the reply data to the upper computer to perform the spitting test.
If no abnormality exists, the upper computer performs a spitting test on the port, calculates and displays spitting data in real time, determines whether the spitting test is abnormal, and displays an abnormal state in real time if the spitting test is abnormal.
In a fourth aspect, the present application also provides a computer device comprising a processor and a memory, the memory storing a computer program which, when run on the processor, performs the wireless device testing method.
In a fifth aspect, the present application also provides a readable storage medium storing a computer program which, when run on a processor, performs the wireless device testing method.
The application discloses a wireless device testing method, a system, a computer device and a storage medium, wherein the method comprises the following steps: initiating a communication connection request to the equipment to be tested through a first communication port, and establishing communication connection; acquiring equipment type parameters in a response packet of the equipment to be detected, and determining whether the equipment to be detected is wireless equipment according to the equipment type parameters; if yes, performing throughput test through a throughput test port, calculating and displaying throughput data in real time, determining whether the throughput test is abnormal, and if so, displaying an abnormal state in real time; if no abnormality exists, carrying out a spitting test on the port, calculating and displaying spitting data in real time, determining whether the spitting test is abnormal, and if so, displaying an abnormal state in real time. The upper computer can quickly obtain the type of the equipment to be tested, determine the test items, and reduce waiting and judging time in the actual test process, so that the test efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the present application, the drawings that are required for the embodiments will be briefly described, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope of the present application. Like elements are numbered alike in the various figures.
Fig. 1 is a schematic flow chart of a wireless device testing method according to an embodiment of the application;
FIG. 2 is a schematic diagram of a wireless device testing system according to an embodiment of the present application;
fig. 3 is a flow chart of a wireless device testing method of an upper computer according to an embodiment of the present application;
fig. 4 is a flow chart of a method for testing a wireless device on a device to be tested according to an embodiment of the present application;
fig. 5 shows a schematic diagram of interaction of a wireless device testing system according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments.
The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present application.
The terms "comprises," "comprising," "including," or any other variation thereof, are intended to cover a specific feature, number, step, operation, element, component, or combination of the foregoing, which may be used in various embodiments of the present application, and are not intended to first exclude the presence of or increase the likelihood of one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and should not be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the application belong. The terms (such as those defined in commonly used dictionaries) will be interpreted as having a meaning that is the same as the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in connection with the various embodiments of the application.
The technical scheme of the application is applied to factory testing of products, specifically, when testing wireless equipment, when establishing TCP connection, the equipment to be tested can send a response packet carrying feedback of related parameters to an upper computer according to whether the equipment is the wireless equipment or not, the upper computer determines whether to carry out throughput testing on the equipment according to data in the response packet, and carries out throughput testing through a special testing port, so that the throughput testing and other testing can be carried out in parallel, and the testing efficiency is improved.
The technical scheme of the application is described in the following specific embodiments.
Example 1
As shown in fig. 1, the wireless device testing method of the present embodiment includes:
step S100, the upper computer is used for initiating a communication connection request to the equipment to be tested through the first communication port and judging whether the communication connection is successfully established or not;
the upper computer is a computer device used in automatic testing, such as a computer or a testing server specially used for testing, and the device to be tested is a device that needs to be tested finally.
Before testing, the upper computer initiates a communication connection request to the device to be tested through the first communication port of the upper computer to establish communication connection with the device to be tested, wherein the established request protocol can be a TCP protocol or other self-defined communication protocols.
Here, the communication is implemented through a special first communication port, for example, using TCP, and the first communication port is an 80 port on the upper computer.
When the communication connection is carried out, the timer can be used for timing to judge whether the connection is successfully established, generally, the establishment of the communication connection between the upper computer and the equipment to be tested can be completed in extremely short time, if the time of the timer exceeds the first preset time after the communication connection is initiated, the upper computer cannot be normally connected to the equipment to be tested, and the equipment cannot be normally connected is prompted. The first preset time may be a short time delay of 1 second or the like.
Step S200, after receiving the communication connection request from the upper computer, the device to be tested establishes a connection with the upper computer through the second communication port.
After receiving the communication connection request, the device to be tested establishes connection with the upper computer through a second communication port, wherein the second communication port is a port used for communication on the device to be tested, and similarly, if the second communication port is a TCP protocol, the second communication port is an 80 port on the device to be tested.
When the connection is established, the connection is established according to a specific protocol mode.
In step S300, the device to be tested determines whether it is a wireless device, and writes a device type parameter of the response in the response packet according to whether it is a wireless device.
When the communication connection is established, there is necessarily a return of the response packet, at this time, when the device to be tested receives the communication connection, a judgment is made according to whether the device to be tested is a wireless device or whether the device to be tested supports wireless communication, if the device to be tested is a wireless device, then according to whether the device to be tested is a wireless device, a corresponding device type parameter is added in the response packet, wherein the device type parameter is pre-agreed, for example, the device type parameter is represented as a wireless device when a value of a certain variable is defined to be 1, and the device type parameter is not the wireless device when the value of the certain variable is not 1.
By the method, the device to be tested can directly transmit the key information of the device to the upper computer at the moment of establishing the communication connection, and the upper computer is not required to initiate inquiry, so that the communication steps are reduced, and the operation is performed in the way of establishing the connection, so that the number and the size of the transmitted data packets are not increased, and the efficiency is ensured.
The determining whether the device is a wireless device can be determined by determining whether the device has hardware supporting wireless communication, if the corresponding hardware is not detected, the device does not support wireless communication, and the device is not the wireless device. Similarly, the device may also be determined by whether the wireless drive is activated normally, and if so, the device is not a wireless device.
Step S400, the upper computer acquires the equipment type parameter in the response packet of the equipment to be detected, and determines whether the equipment to be detected is a wireless equipment according to the equipment type parameter;
when the upper computer acquires the response packet, the upper computer can establish connection according to the response packet, and can also determine whether the current device to be tested is a wireless device or not by reading the device type parameter in the response packet. It will be appreciated that only wireless devices need to be throughput tested, devices that do not support wireless communications do not need to be throughput tested, and thus test items for such devices can be quickly determined by this device type parameter.
And S500, if yes, performing swallowing test by the upper computer through a throughput test port, calculating and displaying swallowing data in real time, determining whether the swallowing test is abnormal, and displaying an abnormal state in real time if the swallowing test is abnormal.
The test items of the device to be tested are determined according to the set automatic test items, wherein the throughput test is related to whether the device to be tested is a wireless device or not, so that the throughput test can be directly started when the wireless device is judged to be the device.
The throughput test is a test for testing whether the data throughput of the wireless wifi of the device meets the standard, mainly tests a communication system, and other functional tests for the device to be tested mainly test whether the function of the device to be tested is normal, so that the throughput test can be tested in parallel with other types of test items.
For this reason, in this embodiment, the upper computer specifically sets up a throughput test port to perform throughput test, for example, a port with a port number of 300 is set as a throughput test port, and establishes a connection with the device to be tested using the port, which is understood to be a communication connection. In order to distinguish from the communication described above, the present embodiment refers to the connection established at the time of the throughput test as a test connection.
In this embodiment, the first swallowing test and then the spitting test are selected, so that a swallowing test request is initiated to the device to be tested.
In this embodiment, when performing the swallowing amount test, the swallowing amount data is displayed on the display screen of the upper computer in real time, instead of being displayed after the test is completed, where the swallowing amount calculation formula is as follows:
upper computer upload ∙/test time (millisecond) =swallow (kbps);
and during the throughput test, the upper computer can always perform abnormality detection to determine whether abnormality exists during the test, for example, before the throughput test is performed through the throughput test port, connection is established between the throughput test port and the device to be tested, if connection is not successfully established within a second preset time, connection establishment failure is determined, and throughput test is not performed and errors are reported. In order to display the swallowing amount data in real time, the swallowing amount data can be calculated in real time and displayed on a screen, a tester is informed of the change of the swallowing amount data, and if the swallowing amount data is calculated, the swallowing amount data cannot be calculated due to the fact that system errors and the like occur in the process of calculating the swallowing amount data, the errors are reported.
If the throughput is found to be in a problem in the throughput test, the error reporting can be performed, the condition of test connection interruption occurs, the corresponding error reporting operation can be performed, the subsequent test can not be performed after the abnormality occurs in the test, the error reporting can be performed when the abnormality occurs, and the problem positioning by developers is also facilitated.
And step S600, when the device to be tested receives a throughput test request, connection is established between the throughput test port and the upper computer, and test data from the upper computer is received through the throughput test port.
When the device to be tested receives the swallowing test request, test connection is established between the device to be tested and the upper computer through the throughput test port of the device to be tested, and then test data from the upper computer is received through the port.
It can be seen that two connections are established between the upper computer and the device to be tested, one is a communication connection for communication, which is established through a port specified by a communication protocol, and the other is a test connection, which is connected through a port specified by a throughput test.
The throughput test port is specially used for performing throughput test, so that the throughput data can reach the device to be tested through the port, the device to be tested can receive test data sent by the upper computer through the port, and therefore the upper computer can calculate how much data the device to be tested receives through the port, and the throughput is calculated.
It will be appreciated that because the throughput test uses a specific port, the port that establishes the communication connection may also perform other test items, such as an "IRcut test, a reset key test, an audio test," which require testing controlled by a host computer, and thus require command transmission between ports that pass through the communication connection to implement an automated test, while another natant throughput test port may automatically perform the throughput test, thereby implementing parallel operation of the throughput test and other tests.
When the swallowing test is carried out, the device to be tested can always receive the data from the upper computer, and the device to be tested can always wait until the data transmission of the upper computer is completed before the data transmission of the upper computer is completed.
And step S700, after the test data transmission is completed, the device to be tested waits for a third preset time, and transmits reply data to the upper computer to perform a spitting test.
The throughput test is to send test data to the upper computer through the device to be tested, and send reply data to the upper computer through the throughput test port at this time to complete the throughput test.
In this embodiment, the throughput test is performed after the throughput test is completed, and after it is determined that the data transmission of the upper computer is completed, waiting for a plurality of times is performed, and then the reply data is sent to the upper computer to perform the throughput test, and at the same time, the data calculated in the throughput test is also sent to the upper computer.
Step S800, if no abnormality exists, the upper computer performs a spitting test on the port, calculates and displays spitting data in real time, determines whether the spitting test is abnormal, and displays an abnormal state in real time if the abnormality exists.
If the upper computer is not abnormal in the swallowing amount test, the output test is carried out, then the output data sent by the equipment to be tested is received, whether the abnormality occurs is also determined in real time in the test process, if the abnormality does not occur, the output data is displayed in real time, and if the abnormality occurs, the error is directly reported and the staff is prompted as to which abnormality is, so that the abnormality can be processed in real time.
Wherein the calculation formula of the spitting amount is as follows:
device under test issue ∙/test required time (millisecond) =spit volume (kbps);
and similarly to the swallowing amount test process, when the vomit amount test is carried out, the vomit amount is calculated and displayed in real time, and meanwhile, whether the abnormality occurs is determined, and if the condition that normal test is affected by incapacity of calculation or disconnection and the like occurs, the abnormality is wrongly considered to occur currently.
It can be seen that, in this embodiment, throughput is displayed in real time when the throughput test is performed, so that the tester can grasp the change of the throughput data at the beginning of the test, thereby grasping the throughput and whether the throughput has a problem in real time. Meanwhile, a special test port is arranged for the throughput test, so that the throughput test can be executed together with other tests, the test efficiency of the test is improved, and whether the device supports wireless network transmission device type parameters or not is carried out through the device to be tested when connection is established, so that an upper computer can directly determine that the throughput test is not required without inquiring or judging overtime, and the efficiency of the whole test flow is improved.
Example 2
As shown in fig. 2, the present embodiment further provides a wireless device testing system. The system comprises an upper computer 100 and a device under test 200. The upper computer 100 includes a first communication port 110 and a first throughput test port 120, and the device under test 200 includes a second communication port 210 and a second throughput test port 220.
The upper computer 100 and the device under test 200 are connected in communication through respective communication ports, the communication ports are connected through a communication protocol, and the throughput test ports are connected when the throughput test is performed, and then the throughput test is performed on the ports.
When other test items are required, the upper computer 100 can send corresponding test instructions to the device under test 200 through the communication port, so as to control the device under test to perform throughput test and perform test of other items, thereby ensuring test efficiency. It will be appreciated that if the device under test 200 is not a wireless device, there will also be no second throughput test port 220.
The steps executed by the upper computer 100 side are as shown in fig. 3, and include:
step S110, a communication connection request is initiated to the equipment to be tested through a first communication port, and whether communication connection is successfully established is judged;
this step is similar to step S100 in embodiment 1, and will not be described again here.
Step S120, after the communication connection is successfully established, obtaining the equipment type parameter in the response packet of the equipment to be detected, and determining whether the equipment to be detected is a wireless equipment according to the equipment type parameter.
This step is similar to step S400 in embodiment 1, and will not be described again here.
Step S130, if yes, performing a throughput test through a throughput test port, calculating and displaying throughput data in real time, determining whether the throughput test is abnormal, and if so, displaying an abnormal state in real time;
this step is similar to step S500 in embodiment 1, and will not be described again here.
And step S140, if no abnormality exists, carrying out a spitting test on the throughput test port, calculating and displaying spitting data in real time, determining whether the spitting test is abnormal, and if so, displaying an abnormal state in real time.
This step is similar to step S800 in embodiment 1, and will not be described again here.
The steps performed by the device under test 200 side are as shown in fig. 4, and include:
step S210, after receiving a communication connection request from an upper computer, establishing connection with the upper computer through a second communication port;
this step is similar to step S200 in embodiment 1, and will not be described again here.
Step S220, determining whether the wireless device is a wireless device or not, writing a device type parameter of a response in a response packet according to whether the wireless device is the wireless device, and sending the response packet to the upper computer;
this step is similar to step S300 in embodiment 1, and will not be described again here.
Step S230, when a throughput test request is received, a connection is established between the throughput test port and the upper computer, and test data from the upper computer is received through the throughput test port;
this step is similar to step S600 in embodiment 1, and will not be described again here.
Step S240, after the test data transmission is completed, waiting for a third preset time, and transmitting the reply data to the upper computer for a spitting test.
This step is similar to step S700 in embodiment 1, and will not be described again here.
Further, as shown in fig. 5, in order to provide an interaction schematic diagram between the upper computer 100 and the device under test 200, after the upper computer 100 and the device under test 200 establish a communication connection, the upper computer 100 directly knows whether the device under test is a wireless device, and then can determine whether to execute a throughput test, and other interaction means are not required to be added in the whole test flow, so that the efficiency is increased, and the original test logic is not required to be changed.
The specific test procedure is similar to that of the above-mentioned embodiment 1, and will not be repeated here.
The application also provides a computer device comprising a processor and a memory, the memory storing a computer program which, when run on the processor, performs the wireless device testing method.
The present application also provides a readable storage medium storing a computer program which when run on a processor performs the wireless device testing method.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The apparatus embodiments described above are merely illustrative, for example, of the flow diagrams and block diagrams in the figures, which illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules or units in various embodiments of the application may be integrated together to form a single part, or the modules may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a smart phone, a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application.

Claims (10)

1. A method for testing a wireless device, the method being applied to a host computer, the method comprising:
initiating a communication connection request to the equipment to be tested through the first communication port, and judging whether the communication connection is successfully established or not;
after the communication connection is successfully established, acquiring equipment type parameters in a response packet of the equipment to be detected, and determining whether the equipment to be detected is wireless equipment according to the equipment type parameters;
if yes, performing throughput test through a throughput test port, calculating and displaying throughput data in real time, determining whether the throughput test is abnormal, and if so, displaying an abnormal state in real time;
if no abnormality exists, carrying out a throughput test port, calculating and displaying throughput data in real time, determining whether the throughput test is abnormal, and if so, displaying an abnormal state in real time.
2. The method for testing a wireless device according to claim 1, wherein the step of initiating a communication connection request to the device under test to determine whether the communication connection is successfully established comprises:
the upper computer is used as a client and initiates communication connection to the equipment to be tested through a TCP protocol;
and (3) counting by a timer, if the time of the timer exceeds the first preset time after initiating communication connection, determining that the device to be tested cannot be normally connected, and prompting that the connection cannot be normally established.
3. The method of claim 1, further comprising, when performing the swallow amount test or the spit amount test:
and when other test instructions are received, corresponding tests are carried out through the first communication port and the equipment to be tested.
4. The method of claim 1, wherein prior to said swallowing amount testing via a throughput test port, further comprising:
and establishing connection with the equipment to be tested through the throughput test port, and if the connection is not successfully established within the second preset time, determining that the connection is failed to be established, and not performing throughput test and reporting errors.
5. The wireless device testing method of claim 1, wherein the determining whether the swallowing amount test is abnormal comprises:
and calculating the swallowing amount data in real time, and judging that the swallowing amount is abnormal if the swallowing amount data cannot be calculated.
6. A method of testing a wireless device, applied to a device under test, the method comprising:
after receiving a communication connection request from an upper computer, establishing connection with the upper computer through a second communication port;
determining whether the wireless device is a wireless device or not, writing a device type parameter of a response in a response packet according to whether the wireless device is the wireless device, and sending the response packet to the upper computer;
when a throughput test request is received, establishing connection with the upper computer through a throughput test port, and receiving test data from the upper computer through the throughput test port;
and after the test data is sent, waiting for a third preset time, and sending reply data to the upper computer to perform a spitting test.
7. The wireless device testing method of claim 6, further comprising: and when receiving other test instructions from the upper computer, receiving the test instructions from the upper computer through the second communication port for testing.
8. A wireless device testing system, comprising: the upper computer and the equipment to be tested;
the upper computer is used for initiating a communication connection request to the equipment to be tested through the first communication port and judging whether the communication connection is successfully established or not;
after receiving a communication connection request from an upper computer, the equipment to be tested establishes connection with the upper computer through a second communication port;
the device to be tested determines whether the device to be tested is a wireless device or not, and writes a device type parameter of a response in a response packet of the device to be tested according to whether the device to be tested is the wireless device or not;
after the upper computer successfully establishes communication connection, acquiring equipment type parameters in a response packet of the equipment to be detected, and determining whether the equipment to be detected is wireless equipment according to the equipment type parameters;
when the upper computer determines that the device to be detected is wireless equipment, performing throughput test through a throughput test port, calculating and displaying throughput data in real time, determining whether the throughput test is abnormal, and displaying an abnormal state in real time if the throughput test is abnormal;
when the device to be tested receives a throughput test request, establishing connection with the upper computer through a throughput test port, and receiving test data from the upper computer through the throughput test port;
after the test data transmission is completed, the device to be tested waits for a third preset time, and transmits reply data to the upper computer to perform a spitting test;
if no abnormality exists, the upper computer performs a spitting test on the port, calculates and displays spitting data in real time, determines whether the spitting test is abnormal, and displays an abnormal state in real time if the spitting test is abnormal.
9. A computer device comprising a processor and a memory, the memory storing a computer program that, when run on the processor, performs the wireless device testing method of any of claims 1 to 7.
10. A readable storage medium, characterized in that it stores a computer program which, when run on a processor, performs the wireless device testing method of any of claims 1 to 7.
CN202311265765.3A 2023-09-28 2023-09-28 Wireless device testing method, system, computer device and storage medium Active CN116996930B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311265765.3A CN116996930B (en) 2023-09-28 2023-09-28 Wireless device testing method, system, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311265765.3A CN116996930B (en) 2023-09-28 2023-09-28 Wireless device testing method, system, computer device and storage medium

Publications (2)

Publication Number Publication Date
CN116996930A true CN116996930A (en) 2023-11-03
CN116996930B CN116996930B (en) 2023-12-05

Family

ID=88526992

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311265765.3A Active CN116996930B (en) 2023-09-28 2023-09-28 Wireless device testing method, system, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN116996930B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117909907A (en) * 2024-03-14 2024-04-19 宁德时代新能源科技股份有限公司 High-throughput computing platform, and anomaly removal method, device and storage medium thereof

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102545991A (en) * 2010-12-29 2012-07-04 深圳国人通信有限公司 Modem-based time division-synchronous code division multiple access (TD-SCDMA) on-vehicle repeater and channel switching method
US20120300649A1 (en) * 2007-05-21 2012-11-29 W2Bi, Inc. Mobile device throughput testing
CN104754637A (en) * 2015-03-30 2015-07-01 深圳市吉祥腾达科技有限公司 Wireless device throughput capacity and machine loading capacity measurement method and system
CN107579872A (en) * 2017-08-25 2018-01-12 上海斐讯数据通信技术有限公司 A kind of test envelope and its method of testing for realizing wireless router test
CN110831049A (en) * 2019-10-23 2020-02-21 深圳市共进电子股份有限公司 Network performance testing method and device
CN113672441A (en) * 2021-08-05 2021-11-19 展讯半导体(成都)有限公司 Method and device for testing intelligent equipment
CN116147932A (en) * 2023-02-23 2023-05-23 厦门瑞为信息技术有限公司 Vehicle-mounted automatic tool detection method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120300649A1 (en) * 2007-05-21 2012-11-29 W2Bi, Inc. Mobile device throughput testing
CN102545991A (en) * 2010-12-29 2012-07-04 深圳国人通信有限公司 Modem-based time division-synchronous code division multiple access (TD-SCDMA) on-vehicle repeater and channel switching method
CN104754637A (en) * 2015-03-30 2015-07-01 深圳市吉祥腾达科技有限公司 Wireless device throughput capacity and machine loading capacity measurement method and system
CN107579872A (en) * 2017-08-25 2018-01-12 上海斐讯数据通信技术有限公司 A kind of test envelope and its method of testing for realizing wireless router test
CN110831049A (en) * 2019-10-23 2020-02-21 深圳市共进电子股份有限公司 Network performance testing method and device
CN113672441A (en) * 2021-08-05 2021-11-19 展讯半导体(成都)有限公司 Method and device for testing intelligent equipment
CN116147932A (en) * 2023-02-23 2023-05-23 厦门瑞为信息技术有限公司 Vehicle-mounted automatic tool detection method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117909907A (en) * 2024-03-14 2024-04-19 宁德时代新能源科技股份有限公司 High-throughput computing platform, and anomaly removal method, device and storage medium thereof

Also Published As

Publication number Publication date
CN116996930B (en) 2023-12-05

Similar Documents

Publication Publication Date Title
CN116996930B (en) Wireless device testing method, system, computer device and storage medium
CN107848522B (en) System and method for transmitting diagnostic commands to a vehicle
US20160029230A1 (en) Methods, test systems and arrangements for verifying compliance with requirement specifications
JP5423736B2 (en) Gateway device
CN110731069B (en) Method for controlling wireless device under test using unlink test resources
CN109428783B (en) Network equipment testing method and device
US20070217435A1 (en) Method and apparatus to provide network event messages
CN108028767B (en) Method for upgrading adapter, mobile terminal and adapter
US6182135B1 (en) Method for determining whether two pieces of network equipment are directly connected
CN113722003A (en) Method, device and equipment for adjusting working mode of PHY chip
JPH06291809A (en) Data communications equipment
WO2022242129A1 (en) Multi-public-network connection driving method and apparatus, and computer device and storage medium
US20070280228A1 (en) Communication system and remote diagnosis system
CN115277296A (en) CAN network baud rate matching method, system and electronic equipment
JP5462266B2 (en) Mobile communication network
CN112492555A (en) Control instruction processing method and device
US20030031136A1 (en) Analysis of a data transmission system
CN104185204B (en) A kind of connection status inspection method and device
CN117278450B (en) Heartbeat packet communication method, test system, terminal device and storage medium
US7643433B2 (en) Automatic local LAPB device configuration method and apparatus
CN103346832B (en) A kind of detection method of Fiber connection state and device
CN116192755B (en) Congestion processing method and system based on virtual switch establishment
CN112671608B (en) IPG monitoring method, switching equipment and switching system
CN109391652B (en) Data transmission method for radio system
JP2021129238A (en) Communication device and communication program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant