CN111314945A - Test method, system and terminal equipment - Google Patents

Test method, system and terminal equipment Download PDF

Info

Publication number
CN111314945A
CN111314945A CN201911287321.3A CN201911287321A CN111314945A CN 111314945 A CN111314945 A CN 111314945A CN 201911287321 A CN201911287321 A CN 201911287321A CN 111314945 A CN111314945 A CN 111314945A
Authority
CN
China
Prior art keywords
test
equipment
tested
data
preset
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
CN201911287321.3A
Other languages
Chinese (zh)
Other versions
CN111314945B (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 Gongjin Electronics Co Ltd
Original Assignee
Shenzhen Gongjin Electronics 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 Gongjin Electronics Co Ltd filed Critical Shenzhen Gongjin Electronics Co Ltd
Priority to CN201911287321.3A priority Critical patent/CN111314945B/en
Publication of CN111314945A publication Critical patent/CN111314945A/en
Application granted granted Critical
Publication of CN111314945B publication Critical patent/CN111314945B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/06Testing, supervising or monitoring using simulated traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength
    • 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)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application is suitable for the technical field of equipment testing, and provides a testing method, a testing system and terminal equipment, wherein a virtual port is registered, a communication connection is established between an entity port of equipment to be tested and a virtual port of target hardware, then a first testing instruction is issued in a current connection mode to control the equipment to be tested to send first testing data to the testing equipment, and the purpose of carrying out data receiving and sending testing on the equipment to be tested by receiving a second data result of the second testing data by the equipment to be tested is achieved, the entity interface does not need to be welded on a connecting line of an LTE module, the LTE module can be tested, the testing efficiency is effectively improved, and the problems that the testing process is complicated and the testing efficiency is low when the performance of the existing testing system for testing the performance with the LTE router are solved.

Description

Test method, system and terminal equipment
Technical Field
The present application belongs to the technical field of device testing, and in particular, to a testing method, system and terminal device.
Background
Generally, whether the electronic product quality of network communication is qualified or not must be network detected by a corresponding system. When the performance of a router with an LTE (long Term evolution) module is tested by using the conventional test method for the test system, because an entity port of a router peripheral does not support data transmission between the test equipment and an internal LTE module, and the LTE module is arranged inside the router, an entity interface needs to be welded on a connection line of an LET module during testing, and then the test equipment is connected with the test equipment through the welded entity interface to realize data transmission between the test equipment and the LTE module, and then the entity interface is detached after the test is completed, so that the test process is complicated, and the test efficiency is low.
To sum up, the problem that the test process is complicated and the test efficiency is low exists when the performance of the LTE router is tested by the existing test system.
Disclosure of Invention
The embodiment of the application provides a test method, a test system and terminal equipment, and can solve the problems of complicated test process and low test efficiency when the performance of a router with an LTE (long term evolution) is tested by the conventional test system.
In a first aspect, an embodiment of the present application provides a testing method, including:
registering a first virtual port, and establishing a connection relation between the first virtual port and a second virtual port through an entity port of equipment to be tested, wherein the second virtual port is a virtual port used for transmitting data by target hardware of the equipment to be tested;
issuing a first test instruction to equipment to be tested, wherein the first test instruction is used for controlling the equipment to be tested to send first test data to the test equipment;
issuing a second test instruction to the test equipment, wherein the second test instruction is used for controlling the test equipment to send second test data to the equipment to be tested;
acquiring a first data result of the test equipment receiving the first test data, and acquiring a second data result of the to-be-tested equipment receiving the second test data;
and determining the test result of the equipment to be tested according to the first data result and the second data result.
In one embodiment, the first test data includes a first test signal;
before the obtaining a first data result of the first test data received by the test device, further comprising:
controlling the equipment to be tested to send the first test signal to the test equipment at a first preset sending power;
and acquiring the receiving power of the first test signal received by the test equipment.
In one embodiment, the second test data includes a second test signal;
before the obtaining of the second data result of the device under test receiving the second test data, the method further includes:
controlling the test equipment to send the second test signal to the equipment to be tested at a second preset sending power;
and acquiring a receiving power value of the equipment to be tested for receiving the second test signal.
In one embodiment, the first test data includes a first predetermined number of packets;
before the obtaining a first data result of the first test data received by the test device, further comprising:
sending a first control instruction to the device to be tested, wherein the first control instruction is used for controlling the device to be tested to set the sending power of a signal to be a third preset sending power;
controlling the equipment to be tested to send the first preset number of data packets to the test equipment;
and acquiring the good packet rate of the data packets received by the test equipment.
In one embodiment, the second test data includes a second predetermined number of data packets;
before the obtaining of the second data result of the device under test receiving the second test data, the method further includes:
sending a second control instruction to the test equipment, wherein the second control instruction is used for instructing the test equipment to set the sending power of the signal to a fourth preset sending power;
controlling the test equipment to send the second preset number of data packets to the equipment to be tested;
and acquiring the good packet rate of the data packet received by the equipment to be tested.
In an embodiment, before the obtaining a second data result of the second test data received by the device under test, the method further includes:
sending a third control instruction to the test equipment, wherein the third control instruction is used for controlling the test equipment to set the sending power of the signal to a fifth preset sending power;
acquiring the good packet rate of the data packet received by the equipment to be tested under the current fifth preset sending power;
if the error value of the good packet rate and the preset good packet rate is larger than the preset threshold value, the test equipment is controlled again to adjust the fifth preset sending power of the test equipment according to a preset rule;
and if the error value of the good packet rate and the preset good packet rate is not greater than the preset threshold value, acquiring corresponding fifth preset sending power.
In an embodiment, the determining the test result of the device under test according to the first data result and the second data result includes:
if the first data result meets a first preset result and the second data result meets a second preset result, determining that the test result of the equipment to be tested is successful;
if the first data result does not meet a first preset result, the step of obtaining the first data result is repeatedly executed;
if the second data result does not meet a second preset result, repeatedly executing the step of obtaining the second data result for a preset number of times;
if the frequency of the first data result which does not meet the first preset result reaches a preset frequency or the frequency of the second data result which does not meet the second preset result reaches a preset frequency; determining that the test result of the device to be tested is test failure.
In an embodiment, after the registering the first virtual port and establishing a connection relationship between the first virtual port and the second virtual port through the physical port of the device under test, the method further includes:
controlling the test equipment to send a request signal to the equipment to be tested;
and controlling the equipment to be tested to send a response request signal to the test equipment, and establishing synchronous connection between the equipment to be tested and the test equipment.
In a second aspect, an embodiment of the present application further provides a test system, including: the device comprises terminal equipment, test equipment and equipment to be tested;
the terminal device is connected with an entity port of the device to be tested through a first transmission line, the terminal device registers a first virtual port, the device to be tested comprises target hardware, a second virtual port is provided when the target hardware runs, and the first virtual port is connected with the second virtual port through the entity port; the terminal equipment is connected with the test equipment through a second transmission line; the test equipment is connected with the equipment to be tested through a third transmission line;
the terminal equipment is used for issuing a first test instruction to the equipment to be tested and controlling the equipment to be tested to send first test data to the test equipment; or acquiring a second data result of the equipment to be tested receiving the second test data;
the terminal equipment is also used for issuing a second test instruction to the test equipment and controlling the test equipment to send second test data to the equipment to be tested; acquiring a first data result of the test equipment receiving the first test data;
the terminal device is further used for determining a test result of the device to be tested according to the first data result and the second data result.
In a third aspect, an embodiment of the present application provides a testing apparatus, including:
the system comprises a registration module, a data transmission module and a data transmission module, wherein the registration module is used for registering a first virtual port and establishing a connection relation between the first virtual port and a second virtual port through an entity port of equipment to be tested, and the second virtual port is a virtual port used for transmitting data by target hardware of the equipment to be tested;
the device comprises a first sending module, a second sending module and a control module, wherein the first sending module is used for sending a first test instruction to the device to be tested, and the first test instruction is used for controlling the device to be tested to send first test data to the test device;
the second issuing module is used for issuing a second test instruction to the test equipment, and the second test instruction is used for controlling the test equipment to send second test data to the equipment to be tested;
the first obtaining module is used for obtaining a first data result of the test equipment receiving the first test data and obtaining a second data result of the equipment to be tested receiving the second test data;
and the determining module is used for determining the test result of the equipment to be tested according to the first data result and the second data result.
In a fourth aspect, an embodiment of the present application provides a terminal device, where the terminal device includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, the processor implementing the testing method according to any of the above first aspects when executing the computer program.
In a fifth aspect, the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the testing method according to any one of the above first aspects.
In a sixth aspect, an embodiment of the present application provides a computer program product, which, when run on a terminal device, causes the terminal device to execute the test method according to any one of the first aspect.
It is understood that the beneficial effects of the second to sixth aspects can be seen from the description of the first aspect, and are not described herein again.
Compared with the prior art, the embodiment of the application has the advantages that: the virtual port is registered, the communication connection is established between the entity port of the device to be tested and the virtual port of the target hardware, then the first test instruction is issued in the current connection mode to control the device to be tested to send first test data to the test device, and a second data result of the second test data received by the device to be tested can be obtained to achieve the purpose of data receiving and sending test on the device to be tested.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic structural diagram of a test system according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow chart illustrating an implementation of a testing method according to an embodiment of the present application;
FIG. 3 is a schematic flow chart illustrating an implementation of a testing method according to another embodiment of the present application;
FIG. 4 is a schematic flow chart illustrating an implementation of a testing method according to another embodiment of the present application;
FIG. 5 is a schematic flow chart illustrating an implementation of a testing method according to another embodiment of the present application;
FIG. 6 is a schematic flow chart illustrating an implementation of a testing method according to still another embodiment of the present application;
FIG. 7 is a schematic structural diagram of a testing apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
The test method provided by the embodiment of the present application can be applied to terminal devices such as a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), and the like, and the embodiment of the present application does not limit the specific type of the terminal device.
Referring to fig. 1, in an embodiment, the test method provided by the present application is applied to a test system, where the test system includes a terminal device 1, a test device 3, and a device under test 2;
the terminal device 1 is connected with an entity port of the device to be tested 2 through a first transmission line 7, the terminal device 1 registers a first virtual port, the device to be tested 2 comprises target hardware, a second virtual port is provided when the target hardware runs, and the first virtual port is connected with the second virtual port through the entity port; the terminal equipment 1 is connected with the test equipment 3 through a second transmission line 4; the test equipment 3 is connected with the equipment to be tested 2 through a third transmission line 6.
The terminal device 1 is configured to issue a first test instruction to the device to be tested 2, and control the device to be tested 2 to send first test data to the test device 3; or acquiring a second data result of the device to be tested 2 receiving the second test data; the terminal device 1 is further configured to issue a second test instruction to the test device 3, and control the test device 3 to send second test data to the device to be tested 2; acquiring a first data result of the first test data received by the test equipment 3; the terminal device 1 is further configured to determine a test result of the device to be tested according to the first data result and the second data result.
In application, the terminal device 1 may be a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), and the like, and the specific type of the terminal device 1 is not limited in this embodiment of the application. The testing device 3 is a wireless communication tester (CMW) and is used for testing wireless devices; the device to be tested 2 may be a router device with an LTE module, a broadband wireless device (MIFI) with an LTE module, or the like.
In application, the first transmission line 7 is a network cable, one end of the network cable is connected to the physical port of the terminal device 1, and the other end of the network cable is connected to the physical port of the device to be tested 2, such as a LAN port of a router device. The first virtual Port is two communication Port (Com Port) files added through a registry file in the terminal device 1, and the first virtual Port is used for simulating communication ports (DM Port and AT Port) of an LTE module when a USB (universal serial bus) is inserted for serial communication, that is, a data transmission interface. The terminal device 1 can recognize the second virtual port to the LTE module through a physical port (LAN port) of the router device. Specifically, the second virtual port is a virtual data transmission interface of the LTE module, that is, a ttyUSB0 port and a ttyUSB2 port, which are sealed in the router device in the form of an interface component, the terminal device 1 may call the interface component sealed by the router device and a communication port file of the terminal device 1 through a pre-installed driver, and then the terminal device 1 connects the simulated DM port to the ttyUSB0 port on the LTE module, connects the simulated AT port to the ttyUSB2 port on the router device, and establishes a communication connection between target hardware (the LTE module) of the device under test 2 and the terminal device 1. The terminal device 1 may issue the first test instruction to the device to be tested 2 through the established communication connection, or obtain a second data result of the device to be tested 2 receiving the second test data. The second transmission line 4 is a USB instrument connection line, two ends of the second transmission line are respectively provided with an entity port matched with the entity port of the terminal device 1 and an entity port matched with the entity port of the test device 3, and the terminal device 1 issues a second test instruction to the test device 3 through the USB instrument connection line or obtains a first data result of the test device 3 receiving the first test data; the third transmission line 6 may be a radio frequency line, and the radio frequency line is used for transmitting radio signals between the device under test 2 and the test device 3.
For convenience of explanation, the test device 3 is a wireless communication tester of a model CMW100, the device under test 2 is a router device with an LTE module, the terminal device 1 is a 64-bit computer with an operating system (e.g., WIN7 or WIN10) and the computer is provided with a test platform for loading each test module and application software of an instrument for setting parameters of the test device 3. Specifically, the test module includes a test item configuration module, configured to generate an item configuration interface, initialize configuration data, such as power sent by the initialization configuration test device 3, and also configure a router device test mode, where the configuration router device test mode may be to select whether to perform a connection test with an LTE module of the router device by operating the first virtual port on the configuration interface or to select to log in the router interface through an entity port connected to the router device for performing a connection test; the instrument control module is used for controlling the test equipment 3 to enter a signal transmitting state and controlling the test equipment 3 to stop transmitting signals; the router module is used for providing a logic process of a test item, and if a judgment logic for finishing testing the receiving power of the router is set, the judgment logic can judge whether the times of testing the receiving power of the router reaches the test times or not; the Wifi management module is used for managing external interfaces formed when the executable programs of the modules are loaded; the log module is used for generating a log for recording when the device to be tested is tested; the system also comprises an attenuation measuring module which is used for detecting the transmission loss between the device 2 to be tested and the transmission line of the testing device 3 when the device 2 to be tested is measured, and storing the transmission loss in a document with inf as suffix for the calling of the terminal device 1.
In application, the router device may be arranged in the shielding box 8 and connected to the terminal device 1 through the first transmission line 7 and connected to the testing device 3 through the third transmission line 6 during a testing process, so as to reduce the situation that the router device receives other interference signals when receiving a signal sent by the testing device 3 through the third transmission line 6, which results in inaccurate obtained testing results. The device to be tested is connected with a power supply through a power line 5.
In this embodiment, a virtual port is registered, a communication connection is established between an entity port of a device to be tested and a virtual port of target hardware, then a first test instruction is issued in a current connection mode to control the device to be tested to send first test data to the test device, and a second data result of the second test data received by the device to be tested can be obtained to achieve the purpose of performing data transceiving test on the device to be tested, the test on the LTE module can be achieved without welding an entity interface on a connection line of the LTE module, the test efficiency is effectively improved, and the problems that the test process is complicated and the test efficiency is low when the performance of the device with the LTE router is tested by the existing test system are solved.
Referring to fig. 2, an embodiment of the present application further provides a testing method, including:
s101, registering a first virtual port, and establishing a connection relation between the first virtual port and a second virtual port through an entity port of equipment to be tested, wherein the second virtual port is a virtual port used for transmitting data by target hardware of the equipment to be tested.
In an application, the first virtual Port may be obtained by running two communication Port (Com Port) files that are previously added in the terminal device through a registry file. Specifically, the communication port file is stored in the terminal device in the form of an executable program (DLL), and then the communication port file can be run by the installed driver to form the first virtual port. The first virtual port is used for simulating a communication port (a DM port and an AT port) of an LTE module when a USB (universal serial bus) is inserted for serial communication, that is, a data transmission interface. The terminal device can identify the second virtual port of the LTE module through a physical port (LAN port) of the router device.
In application, the second virtual port is a virtual data transmission interface of the LTE module, that is, a ttyUSB0 port and a ttyUSB2 port, which are sealed in the router device in the form of an interface component, the Wifi management module of the terminal device calls the interface component sealed by the router device and the communication port file of the terminal device through a pre-installed driver, and then connects the simulated DM port to the ttyUSB0 port on the LTE module, connects the simulated AT port to the ttyUSB2 port on the router device, and establishes a communication connection between target hardware (the LTE module) of the device to be tested and the terminal device.
S102, issuing a first test instruction to the equipment to be tested, wherein the first test instruction is used for controlling the equipment to be tested to send first test data to the test equipment.
In application, the first test instruction is sent by the instrument control module and is an instruction for controlling the equipment to be tested; the first test data may be a signal, a data packet, etc., but is not limited thereto. The first test data may be set by a tester on a configuration interface of the project configuration module, for example, the transmission power of a test equipment signal and the transmission number of data packets are set. Specifically, the first test data is to send a preset number of data packets, and the terminal device may send a first test instruction to the device to be tested according to the configured first test data, and control the device to be tested to send the preset number of data packets to the test device. When the first test instruction is issued, the terminal equipment calls the second virtual port of the target hardware to be connected with the first virtual port through the driving program, and the effect that the terminal equipment directly issues the instruction to the target hardware is achieved.
S103, issuing a second test instruction to the test equipment, wherein the second test instruction is used for controlling the test equipment to send second test data to the equipment to be tested.
In application, the second test instruction is sent by the instrument control module and is an instruction for controlling the test equipment; the second test data may be a signal, a data packet, etc., but is not limited thereto. The second test data may be set by a tester on a configuration interface of the project configuration module, for example, the transmission power of the test equipment signal and the transmission number of the data packets are set. Specifically, the second test data is to send a preset number of data packets, and the terminal device may send a second test instruction to the test device according to the configured second test data, and control the test device to send the preset number of data packets to the device to be tested.
S104, obtaining a first data result of the test equipment for receiving the first test data, and obtaining a second data result of the to-be-tested equipment for receiving the second test data.
In application, when a first test instruction is issued to control the device to be tested to send first test data to the test device, at this time, the device to be tested is a sending end, the test device is a receiving end, and the first data result is a data result of the device to be tested serving as a sending end (TX). For example, the remaining standard parameter values (signal bandwidth, signal rate) of the device under test are determined, and then first test data is set, for example, the device under test sends a signal of sending power a according to the first test instruction, and if the receiving power when the test device receives the signal is B, the receiving power B when the test device receives the signal may be used as the first data result. Similarly, when the second test instruction is issued to control the test equipment to send the second test data to the device to be tested, at this time, the device to be tested is the receiving end, the test equipment is the sending end, and the second data result is the data result of the device to be tested as the receiving end (RX). If the test equipment sends the data packets with the quantity C according to the second test instruction, if the equipment to be tested receives the data packets with the quantity B, the quantity D of the data packets received by the equipment to be tested can be used as a second data result.
And S105, determining a test result according to the first data result and the second data result.
In application, the test result is a final test result of the router, that is, the test result is that the LTE module is successfully tested and meets the factory standard, or the test result is failed and does not meet the factory standard. The test result may be determined to be a successful test only when the first data result satisfies the first predetermined result and the second data result satisfies the second predetermined result.
For example, if the first data result is that the device to be tested sends a signal with a sending power according to the first test instruction, and the receiving power of the test device when receiving the signal is B, the standard receiving power of the test device when receiving the signal may be E according to the preset condition that the device to be tested sends the signal with the sending power according to the first test instruction, and if the receiving power B is greater than or equal to the standard receiving power E, it is determined that the first data result satisfies the first preset result; similarly, if the second data result is that the test device sends data packets of the number C according to the second test instruction, and the device to be tested receives data packets of the number D, the number B of the data packets received by the device to be tested may be used as the second data result, the standard receiving number of the data packets received by the device to be tested is F according to the preset condition that the test device sends the data packets of the number C according to the first test instruction, and if the receiving number D is greater than or equal to the standard receiving number F, it is determined that the second data result meets the second preset result.
In this embodiment, a virtual port is registered, a communication connection is established between an entity port of a device to be tested and a virtual port of target hardware, then a first test instruction is issued in a current connection mode to control the device to be tested to send first test data to the test device, and a second data result of the second test data received by the device to be tested can be obtained to achieve the purpose of performing data transceiving test on the device to be tested, the test on the LTE module can be achieved without welding an entity interface on a connection line of the LTE module, the test efficiency is effectively improved, and the problems that the test process is complicated and the test efficiency is low when the performance of the device with the LTE router is tested by the existing test system are solved.
In an embodiment, the first test data includes a first test signal, and before S104, the method includes:
and controlling the equipment to be tested to send the first test signal to the test equipment at a first preset sending power.
In an application, the first preset transmission power may be set as a power value marked in the specification when the router device leaves a factory, and indicates that the distance between the router device and the site device is far and near to indicate the magnitude of the transmission power. In this embodiment, the first preset transmission power of the router device may be set according to a distance between the router device and the test device. The first test signal is a wireless communication signal generated by the router device and transmitted through the radio frequency line in the form of electromagnetic waves.
In application, the terminal device may log in the router device through the web page, issue the control instruction to control the router device to send the first test signal, or transmit the control instruction to control the router device to send the first test signal through the communication connection between the registered first virtual port and the registered second virtual port, which is not limited herein.
And acquiring the receiving power of the first test signal received by the test equipment.
In application, when the test equipment receives the first test signal, the analysis calculation can be performed according to the received signal to obtain the corresponding receiving power, for example, the first test signal generated by the router equipment is received by the test equipment, the test equipment is internally provided with a detection circuit, and the value obtained by converting the first test signal into a digital signal and calculating the digital signal through the detection circuit can be regarded as the receiving power. At this time, the received power is the first data result of the first test data. Under normal conditions, the working performance of the test equipment is in a normal state, and the actual receiving power of the test equipment plus the line loss power is close to or equal to the transmitting power of the router equipment, so that the transmitting end of the router equipment can be detected according to the receiving power.
In this embodiment, the sending power of the signal of the device to be tested is set, and the receiving power of the testing device is used as the first data result, so that the signal sending performance of the router with the LTE module can be detected.
In one embodiment, the second test data includes a second test signal; before S104, the method further includes:
and controlling the test equipment to send the second test signal to the equipment to be tested at a second preset sending power.
In application, the second preset transmission power may be set as: the second test signal, which is transmitted by the test device at the current transmit power, can be received by the router device. That is, on the premise that the router device can just receive the second test signal, the set power value is the second preset transmission power, which is not limited. The second test signal is a wireless communication signal generated by the test equipment and transmitted in the form of electromagnetic waves.
And acquiring a receiving power value of the equipment to be tested for receiving the second test signal.
In application, when the router device receives the second test signal through the radio frequency line, the router device may perform analysis calculation according to the received signal to obtain corresponding received power. If the router device has a detection circuit inside, the value obtained by converting the second test signal into a digital signal and calculating the digital signal by the detection circuit can be regarded as the received power. At this time, the received power is the second data result of the second test data. Under normal conditions, the performance of the receiving end of the router device is in a normal state, and the actual receiving power of the router device plus the line loss power is close to or equal to the transmitting power of the test device, so that the receiving end of the router device can be detected according to the receiving power.
In this embodiment, the sending power of the test device signal is set, and the receiving power of the device to be tested is used as the second data result, so that the signal receiving performance of the router with the LTE module can be directly detected.
Referring to fig. 3, in an embodiment, the first test data includes a first preset number of data packets; before S104, the method further includes:
s201, sending a first control instruction to the device to be tested, wherein the first control instruction is used for controlling the device to be tested to set the sending power of the signal to be a third preset sending power.
In an application, the first control instruction may be a data transfer instruction or a processor control instruction. For example, if the first control instruction is a data transmission instruction, a third preset transmission power may be set on the project configuration interface through the project configuration module, and then the first control instruction is generated. In this embodiment, the operation code is used for controlling the device to be tested to output a third preset transmission power, and the address code component is used for indicating the content of the operation object, that is, the content of the operation object is the power transmission value of the device to be tested. Then sending the data transmission instruction to the router equipment; or, if the first control instruction is a processor control instruction, the program instruction for running the router device may be set according to the configured third preset sending power, and then the program instruction is sent to the router device through the first transmission line.
S202, the device to be tested is controlled to send the first preset number of data packets to the testing device.
In application, the first preset number of data packets may be set as the number of data packets sent under a certain signal sending power when the router device normally works, wherein the first preset number may be set at a project configuration interface through a project configuration module, and then the terminal device generates a control instruction for the first preset number to send to the device to be tested, where the control instruction includes the number of data packets sent by the device to be tested, and the device to be tested performs corresponding work according to the analyzed information after analyzing the control instruction.
S203, acquiring the good packet rate of the data packet received by the test equipment.
In application, the good packet rate may be obtained by obtaining the number of data packets received by the test equipment and the first preset number of data packets sent by the device to be tested, that is, by obtaining the number of data packets received by the test equipment and the first preset number sent by the router device, calculating a ratio of the number of data packets received by the test equipment to the first preset number sent by the router device, and taking the ratio as the good packet rate. At this time, the calculated ratio (i.e., good packet rate) is the first data result of the first test data received by the test equipment. Under normal conditions, a first preset number of data packets sent by the device to be tested under the current signal sending power can be received by the testing device, and the performance of the sending end of the router device can be detected according to the number of the received data packets. For example, the first preset number may be 100, and according to the number of the data packets received by the test equipment, the percentage of the data packets received by the test equipment may be obtained, that is, the packet rate of the data packets received by the test equipment may be considered as a good packet rate, and may also be considered as a signal sending performance parameter of the router equipment.
In this embodiment, the purpose of detecting the signal transmission performance of the router with the LTE module can be achieved by setting the number of data packets transmitted by the device to be tested and using the number of data packets received by the test device as the first data result.
Referring to fig. 4, in an embodiment, the second test data includes a second predetermined number of data packets; before S104, the method further includes:
s301, sending a second control instruction to the test equipment, wherein the second control instruction is used for instructing the test equipment to set the sending power of the signal to a fourth preset sending power.
In application, the second control instruction may be a data transfer instruction or a processor control instruction, which is consistent with the type of the first control instruction. For example, if the second control instruction is a data transmission instruction, a fourth preset transmission power may be set on the project configuration interface through the project configuration module, and then the data transmission instruction including the fourth preset transmission power is transmitted to the test equipment through the second transmission line. The generation manner of the second control instruction may be the same as the generation manner of the first control instruction, and will not be described in detail.
S302, the test equipment is controlled to send the second preset number of data packets to the equipment to be tested.
In application, the second preset quantity is set on the project configuration interface by the tester through the project configuration module, then the terminal device generates control instructions of the second preset quantity and sends the control instructions to the test device, and after the test device analyzes the control instructions, the test device sends the data packets of the second preset quantity according to the control instructions.
S303, acquiring the good packet rate of the data packet received by the equipment to be tested.
In application, the good packet rate may be obtained by obtaining the number of data packets received by the device to be tested and the second preset number of data packets sent by the test device, that is, by obtaining the number of data packets received by the router device and the second preset number sent by the test device, then calculating a ratio of the number of data packets received by the router device to the first preset number sent by the device to be tested, and taking the ratio as the good packet rate. At this time, the calculated ratio (i.e., the good packet rate) is the second data result of the second test data received by the test equipment. Under normal conditions, the second preset number of data packets sent by the test equipment under the current signal sending power can be received by the router equipment, and the performance of the receiving end of the router equipment can be detected according to the number of the received data packets. For example, the second preset number may be 100, and according to the number of the data packets received by the router device, the percentage of the data packets received by the test device may be obtained, that is, the packet rate of the data packets received by the router device may be considered as a good packet rate, and may also be considered as a signal reception performance parameter of the router device.
In this embodiment, by setting the number of data packets sent by the test device and taking the number of data packets received by the device under test as the second data result, the signal reception performance of the router with the LTE module can be detected.
Referring to fig. 5, in another embodiment, S104 further includes before:
s401, sending a third control instruction to the test equipment, wherein the third control instruction is used for controlling the test equipment to set the sending power of the signal to a fifth preset sending power.
In application, the third control instruction may be a data transfer instruction or a processor control instruction, which is the same as the type of the first control instruction. For example, if the third control instruction is a data transmission instruction, then the terminal device generates a fifth preset sending power into the third control instruction, and sends the third control instruction to the test device, where the third control instruction includes power for controlling the test device to send a signal, and after the device to be tested analyzes the third control instruction, the device to be tested performs corresponding work according to analyzed information, which is not limited herein.
S402, acquiring a good packet rate of the data packet received by the device to be tested under the current fifth preset sending power.
In application, the packet rate of the data packet received by the device to be tested under the current fifth preset transmission power is obtained to be consistent with the packet rate of the data packet received by the device to be tested, which is not described in detail.
And S403, if the error value between the good packet rate and the preset good packet rate is greater than a preset threshold, re-controlling the test equipment to adjust the fifth preset sending power of the test equipment according to a preset rule.
In application, the preset good packet rate may be a preset good packet rate that is set by the router device that meets the detection criteria when receiving a preset number of data packets sent by other site devices at a certain sending power. The preset threshold may be a value set by a tester, and is used to judge whether the packet success rate of the data packet received by the device to be tested under the current fifth preset transmission power meets the standard. The preset rule may be to increase or decrease the current fifth preset transmission power by a value of 0.1mW each time. That is, if the packet rate received by the device to be tested under the current fifth preset transmission power does not meet the standard, the parameter value set by the terminal device on the basis of the current fifth preset transmission power is increased by 0.1 mW.
In a specific application, the initial fifth preset power set as above may be: when the test device sends a certain number of data packets with the initial fifth preset sending power, the router device may completely receive all the data packets sent by the test device, or the number of the data packets sent by the test device that the router device may receive is greater than or equal to the preset threshold. For example, when the initial fifth preset power of the test device is set, if the router device may not completely receive all data packets sent by the test device, or the number of data packets that the router device may receive and send by the test device is greater than or equal to a preset value, the terminal device may increase the initial fifth preset sending power parameter of the test device by 0.1. The preset value may be a value set by a tester, and may be, for example, consistent with the number of data packets sent by the test equipment, that is, the good packet rate of the data packets received by the router equipment is 100% under the initial fifth preset power.
S404, if the error value between the good packet rate and the preset good packet rate is not greater than the preset threshold value, acquiring a corresponding fifth preset sending power.
In application, the preset threshold may be set to 0, that is, under the current fifth preset power, if the packet good rate of the data packet sent by the router device receiving the test device is consistent with the preset packet good rate, the current fifth preset power may be obtained. In this case, it may be considered that, when the packet rate of receiving the data packet by the router device is set to meet the standard, the current fifth preset power set by the terminal device for testing the device may be a performance parameter of the receiving end of the router device, for example, a sensitivity value of the router.
In application, when testing the performance parameters of the receiving end of the device to be tested, the main set antenna and the diversity antenna set by the router device can be tested. For example, the router device is controlled to receive the data packet by the main set antenna, and the receiving performance of the main set antenna of the router device is further judged according to whether the good packet rate of the received data packet reaches the standard. Similarly, the receiving performance of the diversity antenna of the router device and the receiving performance of the main set antenna and the diversity antenna operating simultaneously may be tested, which is not limited herein.
In this embodiment, by setting the number of data packets sent by the test device, and comparing the number of data packets received by the device to be tested with the standard preset packet rate, and when the error value is greater than the preset threshold value, adjusting the current fifth preset power until the error value is not greater than the error value, and further determining a specific performance parameter value of the receiving end of the router device, a more specific effect on performance detection of the receiving end of the router with the LTE module can be achieved.
Referring to fig. 6, in an embodiment, S105 includes:
s501, if the first data result meets a first preset result and the second data result meets a second preset result, determining that the test result of the equipment to be tested is successful.
In application, the first preset result is a standard result of the first test data, and is used for judging whether the first data result meets requirements. For example, the device to be tested sends a preset number of data packets at a certain sending power, and the first preset result may be a standard number of data packets sent by the device to be tested that the testing device receives at the current sending power. If the first preset result is met, the number of the data packets received by the test equipment is considered to be greater than or equal to the standard number, and the first data result is considered to meet the first preset result. Similarly, the second preset result may be a standard number of data packets sent by the test equipment received by the device to be tested at the current sending power, and if the second preset result is satisfied, the number of data packets received by the device to be tested may be considered to be greater than or equal to the standard number, and the second data result is considered to satisfy the second preset result, which is not limited herein.
S502, if the first data result does not meet a first preset result, the step of obtaining the first data result is repeatedly executed.
In the application, if it is determined that the first data result does not satisfy the first preset result, that is, when the number of the obtained test device received data packets is smaller than the standard number, the step of obtaining the number of the test device received data packets is executed again, that is, steps S201 to S203 are executed, where the good packet rate of the test device received data packets is obtained in step S203, which is not described in detail.
S503, if the second data result does not meet the second preset result, the step of obtaining the second data result is repeatedly executed for a preset number of times.
In application, if the second data result does not meet the second preset result, the number of the received data packets of the device to be tested is judged to be smaller than the standard number. Then, the step of obtaining the number of the data packets received by the device to be tested is executed, that is, the steps S301 to S303 are executed, where the step S303 of obtaining the good packet rate of the data packets received by the device to be tested includes the step of obtaining the number of the data packets received by the device to be tested, which is not described in detail herein.
S504, if the times that the first data result does not meet the first preset result reach preset times or the times that the second data result does not meet the second preset result reach preset times; determining that the test result of the device to be tested is test failure.
In application, the preset times can be test times set by a tester, and the reliability of a test result is insufficient because the test result is judged according to a test result. Therefore, when the first data result does not meet the first preset result, the step of obtaining the first data result is repeated; and when the second data result does not meet the second preset result, repeating the step of obtaining the second data result. And finally judging that the test result is test failure when the first data result obtained within the continuous preset times does not meet the first preset result or the second data result obtained within the continuous preset times does not meet the second preset result.
In this implementation, when the first data result obtained within the consecutive preset times does not satisfy the first preset result or the second data result within the consecutive preset times does not satisfy the second preset result, it is determined that the test result is a test failure, thereby reducing the problem that the test result of the device to be tested is inaccurate due to external interference or system program operation error in the test process of the test system, and improving the test reliability of the device to be tested.
In an embodiment, after S101, the method further includes:
and controlling the test equipment to send a request signal to the equipment to be tested.
In application, after the terminal device acquires that the test device and the device to be tested are connected through the third transmission line, the terminal device can issue a control instruction and transmit the control instruction to the test device through the second transmission line, so that the router device actively requests to establish connection with the device to be tested.
And controlling the equipment to be tested to send a response request signal to the test equipment, and establishing synchronous connection between the equipment to be tested and the test equipment.
In application, when the device to be tested receives the request signal, the terminal device controls the device to be tested to respond to the request signal, namely, the device to be tested is controlled to agree with the test device to establish connection, and signal communication between the test device and the device to be tested is achieved. In application, the communication connection established between the device to be tested and the test device only performs single communication in the test process, namely the test device is only in a signal receiving mode when the device to be tested only sends signals; or when the test equipment only sends signals, the equipment to be tested is only in a mode of receiving the signals, and only the single performance (receiving performance or transmitting performance) of the equipment to be tested can be detected in the test process.
In this embodiment, the terminal device establishes a communication connection between the device to be tested and the test device by controlling, so that the communication connection established between the device to be tested and the test device only performs single communication in the test process, thereby achieving the purpose of testing the single performance of the device to be tested.
In other embodiments, the terminal device may further establish a connection with a physical port (LAN port) of the router device through a network cable, and then the terminal device may log in the router device through a web page of the LAN port, issue a control instruction in a web interface of the router device, and the router device may control the LTE module to perform a subsequent corresponding test operation step according to the received control instruction. Specifically, the LTE module has a preset communication (AT) command, where a format of the AT command may be set by a tester, and some parameters in the AT command may be configured on a router web page, for example, after a terminal device logs in a router device through a LAN port of a network line connection router device, a strong sending or strong receiving command is issued in the router device, and the router device is controlled to execute an operation of sending a signal according to the strong sending command, or the router device is controlled to execute an operation of receiving a signal according to the strong receiving command. For example, the communication instruction may be that the router device is controlled to set the transmission power of the signal to a first preset transmission power, then the router device is controlled to transmit the communication instruction to the LTE module, and then the LTE module transmits a first test signal to the test device according to the communication instruction; the terminal equipment obtains the receiving power of the first testing signal received by the testing equipment and obtains a first data result.
Referring to fig. 7, the present application also provides a test apparatus 100 comprising:
the registration module 10 is configured to register a first virtual port, and establish a connection relationship between the first virtual port and a second virtual port through an entity port of a device to be tested, where the second virtual port is a virtual port used by target hardware of the device to be tested to transmit data.
The first sending module 20 is configured to send a first test instruction to the device to be tested, where the first test instruction is used to control the device to be tested to send first test data to the test device.
The second issuing module 30 is configured to issue a second test instruction to the test device, where the second test instruction is used to control the test device to send second test data to the device to be tested.
The first obtaining module 40 is configured to obtain a first data result of the first test data received by the test device, and obtain a second data result of the second test data received by the device to be tested.
A determining module 50, configured to determine a test result of the device under test according to the first data result and the second data result.
In one embodiment, the first test data includes a first test signal; the test apparatus 100 further includes:
the first control module is used for controlling the equipment to be tested to send the first test signal to the test equipment at a first preset sending power.
And the second acquisition module is used for acquiring the receiving power of the first test signal received by the test equipment.
In an embodiment, the second test data includes a second test signal, and the test apparatus 100 further includes:
and the second control module is used for controlling the test equipment to send the second test signal to the equipment to be tested at a second preset sending power.
And the third obtaining module is used for obtaining the receiving power value of the second test signal received by the equipment to be tested.
In one embodiment, the first test data includes a first predetermined number of packets; the test apparatus 100 further includes:
the first sending module is used for sending a first control instruction to the device to be tested, and the first control instruction is used for controlling the device to be tested to set the sending power of the signal to be a third preset sending power.
And the third control module is used for controlling the equipment to be tested to send the first preset number of data packets to the test equipment.
And the fourth obtaining module is used for obtaining the good packet rate of the data packets received by the test equipment.
In one embodiment, the second test data includes a second predetermined number of data packets; the test apparatus 100 further includes:
and the second sending module is used for sending a second control instruction to the test equipment, wherein the second control instruction is used for instructing the test equipment to set the sending power of the signal to a fourth preset sending power.
And the fourth control module is used for controlling the test equipment to send the second preset number of data packets to the equipment to be tested.
And the fifth acquisition module is used for acquiring the good packet rate of the data packet received by the equipment to be tested.
In one embodiment, the testing apparatus 100 further comprises:
and the third sending module is used for sending a third control instruction to the test equipment, wherein the third control instruction is used for controlling the test equipment to set the sending power of the signal to a fifth preset sending power.
And the sixth obtaining module is used for obtaining the good packet rate of the data packet received by the device to be tested under the current fifth preset sending power.
And the sixth control module is used for controlling the test equipment to adjust the fifth preset sending power of the test equipment again according to a preset rule if the error value between the packet rate and the preset packet rate is greater than a preset threshold value.
And the seventh obtaining module is configured to obtain a fifth preset sending power if an error value between the packet success rate and a preset packet success rate is not greater than a preset threshold.
In an embodiment, the first obtaining module 40 is further configured to:
if the first data result meets a first preset result and the second data result meets a second preset result, determining that the test result of the equipment to be tested is successful;
if the first data result does not meet a first preset result, the step of obtaining the first data result is repeatedly executed;
if the second data result does not meet a second preset result, repeatedly executing the step of obtaining the second data result for a preset number of times;
if the frequency of the first data result which does not meet the first preset result reaches a preset frequency or the frequency of the second data result which does not meet the second preset result reaches a preset frequency; determining that the test result of the device to be tested is test failure.
In one embodiment, the testing apparatus 100 further comprises:
and the seventh control module is used for controlling the test equipment to send a request signal to the equipment to be tested.
And the eighth control module is used for controlling the equipment to be tested to send a response request signal to the test equipment and establishing synchronous connection between the equipment to be tested and the test equipment.
An embodiment of the present application further provides a terminal device, where the terminal device includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, the processor implementing the steps of any of the various method embodiments described above when executing the computer program.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
Fig. 8 is a schematic diagram of a terminal device 60 according to an embodiment of the present application. As shown in fig. 8, the terminal device 60 of this embodiment includes: a processor 603, a memory 601 and a computer program 602 stored in said memory 601 and executable on said processor 603. The processor 603 implements the steps in the various method embodiments described above, such as steps S101 to S105 shown in fig. 1, when executing the computer program 602. Alternatively, the processor 603 implements the functions of each module/unit in the above-described device embodiments when executing the computer program 602.
Illustratively, the computer program 602 may be partitioned into one or more modules/units that are stored in the memory 601 and executed by the processor 603 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 602 in the terminal device 60. For example, the computer program 602 may be divided into a registration module, a first issuing module, a second issuing module, a first obtaining module, a second obtaining module, and a determination module, where the specific functions of the modules are as follows:
the registration module is used for registering a first virtual port and establishing a connection relationship between the first virtual port and a second virtual port through an entity port of the device to be tested, wherein the second virtual port is a virtual port used for transmitting data by target hardware of the device to be tested.
The device comprises a first sending module and a second sending module, wherein the first sending module is used for sending a first test instruction to the device to be tested, and the first test instruction is used for controlling the device to be tested to send first test data to the test device.
And the second issuing module is used for issuing a second test instruction to the test equipment, and the second test instruction is used for controlling the test equipment to send second test data to the equipment to be tested.
The first obtaining module is used for obtaining a first data result of the test equipment receiving the first test data and obtaining a second data result of the device to be tested receiving the second test data.
And the determining module is used for determining the test result of the equipment to be tested according to the first data result and the second data result.
The terminal device 60 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 603, a memory 601. Those skilled in the art will appreciate that fig. 8 is merely an example of a terminal device 60 and does not constitute a limitation of terminal device 60 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the terminal device may also include input-output devices, network access devices, buses, etc.
The Processor 603 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 601 may be an internal storage unit of the terminal device 60, such as a hard disk or a memory of the terminal device 60. The memory 601 may also be an external storage device of the terminal device 60, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the terminal device 60. In one embodiment, the memory 601 may also include both internal and external memory units of the terminal device 60. The memory 601 is used for storing the computer programs and other programs and data required by the terminal device. The memory 601 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method of testing, comprising:
registering a first virtual port, and establishing a connection relation between the first virtual port and a second virtual port through an entity port of equipment to be tested, wherein the second virtual port is a virtual port used for transmitting data by target hardware of the equipment to be tested;
issuing a first test instruction to equipment to be tested, wherein the first test instruction is used for controlling the equipment to be tested to send first test data to the test equipment;
issuing a second test instruction to the test equipment, wherein the second test instruction is used for controlling the test equipment to send second test data to the equipment to be tested;
acquiring a first data result of the test equipment receiving the first test data, and acquiring a second data result of the to-be-tested equipment receiving the second test data;
and determining the test result of the equipment to be tested according to the first data result and the second data result.
2. The test method of claim 1, wherein the first test data comprises a first test signal;
before the obtaining a first data result of the first test data received by the test device, further comprising:
controlling the equipment to be tested to send the first test signal to the test equipment at a first preset sending power;
and acquiring the receiving power of the first test signal received by the test equipment.
3. The test method of claim 1, wherein the second test data comprises a second test signal;
before the obtaining of the second data result of the device under test receiving the second test data, the method further includes:
controlling the test equipment to send the second test signal to the equipment to be tested at a second preset sending power;
and acquiring a receiving power value of the equipment to be tested for receiving the second test signal.
4. The test method of claim 1, wherein the first test data comprises a first preset number of packets;
before the obtaining a first data result of the first test data received by the test device, further comprising:
sending a first control instruction to the device to be tested, wherein the first control instruction is used for controlling the device to be tested to set the sending power of a signal to be a third preset sending power;
controlling the equipment to be tested to send the first preset number of data packets to the test equipment;
and acquiring the good packet rate of the data packets received by the test equipment.
5. The test method of claim 1, wherein the second test data comprises a second preset number of packets;
before the obtaining of the second data result of the device under test receiving the second test data, the method further includes:
sending a second control instruction to the test equipment, wherein the second control instruction is used for instructing the test equipment to set the sending power of the signal to a fourth preset sending power;
controlling the test equipment to send the second preset number of data packets to the equipment to be tested;
and acquiring the good packet rate of the data packet received by the equipment to be tested.
6. The testing method of claim 5, prior to said obtaining a second data result of said second test data received by said device under test, further comprising:
sending a third control instruction to the test equipment, wherein the third control instruction is used for controlling the test equipment to set the sending power of the signal to a fifth preset sending power;
acquiring the good packet rate of the data packet received by the equipment to be tested under the current fifth preset sending power;
if the error value of the good packet rate and the preset good packet rate is larger than the preset threshold value, the test equipment is controlled again to adjust the fifth preset sending power of the test equipment according to a preset rule;
and if the error value of the good packet rate and the preset good packet rate is not greater than the preset threshold value, acquiring corresponding fifth preset sending power.
7. The method of claim 1, wherein determining the test result for the device under test based on the first data result and the second data result comprises:
if the first data result meets a first preset result and the second data result meets a second preset result, determining that the test result of the equipment to be tested is successful;
if the first data result does not meet a first preset result, the step of obtaining the first data result is repeatedly executed;
if the second data result does not meet a second preset result, repeatedly executing the step of obtaining the second data result for a preset number of times;
if the frequency of the first data result which does not meet the first preset result reaches a preset frequency or the frequency of the second data result which does not meet the second preset result reaches a preset frequency; determining that the test result of the device to be tested is test failure.
8. The method for testing according to claim 1, after registering the first virtual port and establishing a connection relationship between the first virtual port and the second virtual port through the physical port of the device under test, further comprising:
controlling the test equipment to send a request signal to the equipment to be tested;
and controlling the equipment to be tested to send a response request signal to the test equipment, and establishing synchronous connection between the equipment to be tested and the test equipment.
9. A test system, comprising: the device comprises terminal equipment, test equipment and equipment to be tested;
the terminal device is connected with an entity port of the device to be tested through a first transmission line, the terminal device registers a first virtual port, the device to be tested comprises target hardware, a second virtual port is provided when the target hardware runs, and the first virtual port is connected with the second virtual port through the entity port; the terminal equipment is connected with the test equipment through a second transmission line; the test equipment is connected with the equipment to be tested through a third transmission line;
the terminal equipment is used for issuing a first test instruction to the equipment to be tested and controlling the equipment to be tested to send first test data to the test equipment; or acquiring a second data result of the equipment to be tested receiving the second test data;
the terminal equipment is also used for issuing a second test instruction to the test equipment and controlling the test equipment to send second test data to the equipment to be tested; acquiring a first data result of the test equipment receiving the first test data;
the terminal device is further used for determining a test result of the device to be tested according to the first data result and the second data result.
10. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 8 when executing the computer program.
CN201911287321.3A 2019-12-14 2019-12-14 Test method, system and terminal equipment Active CN111314945B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911287321.3A CN111314945B (en) 2019-12-14 2019-12-14 Test method, system and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911287321.3A CN111314945B (en) 2019-12-14 2019-12-14 Test method, system and terminal equipment

Publications (2)

Publication Number Publication Date
CN111314945A true CN111314945A (en) 2020-06-19
CN111314945B CN111314945B (en) 2023-12-05

Family

ID=71161438

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911287321.3A Active CN111314945B (en) 2019-12-14 2019-12-14 Test method, system and terminal equipment

Country Status (1)

Country Link
CN (1) CN111314945B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111740788A (en) * 2020-06-30 2020-10-02 展讯通信(上海)有限公司 Antenna testing method and related equipment
CN112019400A (en) * 2020-07-31 2020-12-01 惠州高盛达科技有限公司 Radio frequency test method and system based on wireless communication tester
CN113204452A (en) * 2021-04-23 2021-08-03 山东英信计算机技术有限公司 Method, system and medium for measuring high-speed signal
CN113472458A (en) * 2021-06-30 2021-10-01 珠海泰芯半导体有限公司 Method, device, equipment, storage medium and system for testing performance of wireless equipment
CN113986784A (en) * 2021-10-22 2022-01-28 深圳融昕医疗科技有限公司 Virtual port data transmission method and system based on embedded equipment
CN114088108A (en) * 2020-08-24 2022-02-25 航天科工惯性技术有限公司 Test method, device and system and computer readable storage medium
CN114585001A (en) * 2022-02-10 2022-06-03 武汉迈威通信股份有限公司 Wireless performance test method and system
CN114615702A (en) * 2022-04-18 2022-06-10 东南大学成贤学院 Fault detection and diagnosis system based on 5G communication network
CN116055371A (en) * 2021-10-27 2023-05-02 成都鼎桥通信技术有限公司 Communication module performance test system and method, upper computer, medium and program product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1625271A (en) * 2003-12-01 2005-06-08 中兴通讯股份有限公司 One board testing device of digital user wire equipment
CN101534223A (en) * 2008-03-11 2009-09-16 中兴通讯股份有限公司 Device and method for testing network switching equipment
WO2012033484A1 (en) * 2010-09-07 2012-03-15 Verigy (Singapore) Pte. Ltd. Systems, methods and apparatus using virtual appliances in a semiconductor test environment
CN104104488A (en) * 2014-07-15 2014-10-15 中国电子科技集团公司第四十一研究所 Wireless sensor network protocol conformance testing system and method
CN106656667A (en) * 2016-12-14 2017-05-10 迈普通信技术股份有限公司 Switch forwarding performance test methods and system, and control apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1625271A (en) * 2003-12-01 2005-06-08 中兴通讯股份有限公司 One board testing device of digital user wire equipment
CN101534223A (en) * 2008-03-11 2009-09-16 中兴通讯股份有限公司 Device and method for testing network switching equipment
WO2012033484A1 (en) * 2010-09-07 2012-03-15 Verigy (Singapore) Pte. Ltd. Systems, methods and apparatus using virtual appliances in a semiconductor test environment
CN104104488A (en) * 2014-07-15 2014-10-15 中国电子科技集团公司第四十一研究所 Wireless sensor network protocol conformance testing system and method
CN106656667A (en) * 2016-12-14 2017-05-10 迈普通信技术股份有限公司 Switch forwarding performance test methods and system, and control apparatus

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111740788A (en) * 2020-06-30 2020-10-02 展讯通信(上海)有限公司 Antenna testing method and related equipment
CN111740788B (en) * 2020-06-30 2022-11-11 展讯通信(上海)有限公司 Antenna test method and related equipment
CN112019400A (en) * 2020-07-31 2020-12-01 惠州高盛达科技有限公司 Radio frequency test method and system based on wireless communication tester
CN114088108A (en) * 2020-08-24 2022-02-25 航天科工惯性技术有限公司 Test method, device and system and computer readable storage medium
CN113204452A (en) * 2021-04-23 2021-08-03 山东英信计算机技术有限公司 Method, system and medium for measuring high-speed signal
CN113472458A (en) * 2021-06-30 2021-10-01 珠海泰芯半导体有限公司 Method, device, equipment, storage medium and system for testing performance of wireless equipment
CN113472458B (en) * 2021-06-30 2023-09-26 珠海泰芯半导体有限公司 Radio frequency performance test method, device, storage medium and system
CN113986784A (en) * 2021-10-22 2022-01-28 深圳融昕医疗科技有限公司 Virtual port data transmission method and system based on embedded equipment
CN113986784B (en) * 2021-10-22 2024-04-09 深圳融昕医疗科技有限公司 Virtual port data transmission method and system based on embedded equipment
CN116055371A (en) * 2021-10-27 2023-05-02 成都鼎桥通信技术有限公司 Communication module performance test system and method, upper computer, medium and program product
CN116055371B (en) * 2021-10-27 2024-04-02 成都鼎桥通信技术有限公司 Communication module performance test system and method, upper computer, medium and program product
CN114585001B (en) * 2022-02-10 2024-03-22 武汉迈威通信股份有限公司 Wireless performance test method and system
CN114585001A (en) * 2022-02-10 2022-06-03 武汉迈威通信股份有限公司 Wireless performance test method and system
CN114615702A (en) * 2022-04-18 2022-06-10 东南大学成贤学院 Fault detection and diagnosis system based on 5G communication network

Also Published As

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

Similar Documents

Publication Publication Date Title
CN111314945B (en) Test method, system and terminal equipment
US10621797B2 (en) System and method for transferring diagnostic commands to a vehicle
TWI465073B (en) System and method for using multiple network addresses to establish synchronization of a device under test and test equipment controlling the test
CN111478737A (en) Radio frequency test method, device, electronic device and storage medium
CN110650042A (en) Electric power communication network health degree evaluation method and terminal equipment
US12019529B2 (en) Testing method and testing device
CN113359674A (en) Vehicle diagnostic system, method, electronic device, and storage medium
CN110913362B (en) Method and device for realizing wireless signal test through client and test equipment
US8701130B2 (en) Implementing remote procedure calls
CN101909310A (en) Electronic device testing method
CN105764094A (en) Hybrid load balancing method and device
CN111432453B (en) Communication channel determination method, device and equipment
CN112771937A (en) Power backoff method, terminal equipment and storage medium
CN113660547A (en) Vehicle detection method and device, terminal equipment and readable storage medium
CN115695241A (en) Communication pressure testing method and electronic equipment
CN114299534A (en) Method and device for detecting circuit schematic diagram, terminal equipment and storage medium
CN114741286A (en) Data processing method and device, electronic equipment and storage medium
CN109936586B (en) Communication processing method and device
CN113395264A (en) Communication connection method, apparatus, server and medium
CN112584413A (en) Wireless communication link self-checking protection method, device, equipment and storage medium
CN111193561B (en) Dual-frequency WIFI testing method, system, server and storage medium
CN118093444B (en) Test method, test device, electronic equipment and storage medium
CN108923866A (en) antenna calibration method, device, terminal device and storage medium
CN115348201B (en) Calibration scheduling method and related device
CN215956393U (en) Test system and test equipment

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