CN117319250A - Multi-machine parallel power testing method and device - Google Patents

Multi-machine parallel power testing method and device Download PDF

Info

Publication number
CN117319250A
CN117319250A CN202311343310.9A CN202311343310A CN117319250A CN 117319250 A CN117319250 A CN 117319250A CN 202311343310 A CN202311343310 A CN 202311343310A CN 117319250 A CN117319250 A CN 117319250A
Authority
CN
China
Prior art keywords
test
power
tested
data
equipment
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.)
Pending
Application number
CN202311343310.9A
Other languages
Chinese (zh)
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.)
Guangzhou Tongze Kangwei Technology Co ltd
Original Assignee
Guangzhou Tongze Kangwei Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Tongze Kangwei Technology Co ltd filed Critical Guangzhou Tongze Kangwei Technology Co ltd
Priority to CN202311343310.9A priority Critical patent/CN117319250A/en
Publication of CN117319250A publication Critical patent/CN117319250A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/164Adaptation or special uses of UDP protocol

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Computer Security & Cryptography (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The invention discloses a multi-machine parallel power testing method and a device, which are applied to a testing tool and comprise the following steps: transmitting a plurality of first data messages to the power detection equipment by each test thread corresponding to each equipment to be detected; according to the first data messages, receiving second data messages corresponding to the first data messages sent by the power detection equipment, wherein the second data messages acquire a plurality of power result values of each test thread; and acquiring a plurality of test power values of each device to be tested according to the plurality of power result values of each test thread and the loss value of the corresponding device to be tested. Thus, the mutual confusion of information among different devices to be tested can be prevented, and the inaccuracy of test data caused by data confusion is avoided. Furthermore, the method can prevent the power value of the equipment to be tested from being obtained due to message receiving errors, thereby realizing the simultaneous power detection of a plurality of equipment to be tested.

Description

Multi-machine parallel power testing method and device
Technical Field
The invention relates to the field of WIFI power testing, in particular to a multi-machine parallel power testing method and device.
Background
Current multi-machine parallel testing helps simulate network loading. In the real world, wi-Fi networks often connect multiple devices, such as smartphones, tablet computers, notebook computers, etc., at the same time. By multi-machine parallel testing, we can simulate this high load situation to evaluate the network's performance at high traffic. This is critical to ensure that the network still provides good performance when busy.
In the prior art, when the terminal equipment performs WIFI antenna power multi-machine parallel test, two data interaction modes exist. An interaction mode is that a testing tool is connected with a plurality of relay agent modules, each relay agent module is connected with one WIFI module, a WIFI coupling tester is connected with a plurality of WIFI modules, a value is obtained through interaction between the plurality of relay modules and the WIFI modules, the purpose of parallel testing is achieved, and the testing tool is essentially used for controlling interaction between the plurality of relay modules and the WIFI coupling tester. Another interaction mode is to enable multiple threads for the test tool, but only one thread is allowed to complete parallel testing in a pseudo-multi-threaded mode at a time when the test tool is connected to the WIFI coupling tester.
Therefore, in the prior art, only one thread is allowed to be connected to the WIFI coupling tester at a time to perform power test, but the parallel test time and the labor cost are greatly increased under the condition of multiple interactive tests. Meanwhile, after parallel testing is realized by introducing the UDP protocol, the WIFI coupling tester can receive the test power values corresponding to different threads when the threads are connected with the received test power values, so that the accuracy of the test data is affected.
Disclosure of Invention
The invention provides a multi-machine parallel power test method and device, which are used for solving the problem of inaccurate test data caused by data confusion in the current parallel test using a UDP protocol.
In a first aspect, the present application provides a multi-machine parallel power test processing method, applied to a test tool, including:
transmitting a plurality of first data messages to the power detection equipment by each test thread corresponding to each equipment to be detected;
according to the first data messages, receiving second data messages corresponding to the first data messages sent by the power detection equipment, and obtaining a plurality of power result values of each test thread according to the second data messages;
acquiring a plurality of test power values of each device to be tested according to a plurality of power result values of each test thread and loss values of the corresponding device to be tested;
and when all the test power values of the equipment to be tested meet the preset conditions, determining that the equipment to be tested completes the power test.
Therefore, a test thread is independently arranged according to each device to be tested, so that information between different devices to be tested can be prevented from being confused, and inaccuracy of test data caused by data confusion is avoided. Further, according to the first data message, the second data message corresponding to the first data message is received, so that the situation that the power value of the device to be tested cannot be obtained due to message receiving errors can be prevented, and the power detection of a plurality of devices to be tested is simultaneously carried out.
Further, the sending, by each test thread corresponding to each device to be tested, a plurality of first data messages to the power detection device specifically includes:
connecting the devices to be tested, creating corresponding test threads according to each device to be tested, and sending a plurality of first data messages to the power detection device through the communication channel by the test threads;
the communication channels of the data messages sent by each test thread are different, and the first data message comprises corresponding communication channel information and request information of the equipment to be tested.
Thus, a dedicated test thread is created for each device to be tested in each connection, and the data message sent by each test thread includes communication channel information, so that the corresponding relation between the first data message and the second data message can be determined according to the communication channel information in the first data message later, and the power detection device can also determine the device to be tested corresponding to each first message.
Further, the receiving, according to the first data packets, the second data packets corresponding to each first data packet sent by the power detection device specifically includes:
and determining the corresponding relation between the second data message and the first data message according to the communication channel information and the time information in the second data message, and receiving the corresponding second data message according to the corresponding relation between the second data message and the first data message.
And determining the corresponding relation between the second data message and the first data message, and determining the equipment to be tested corresponding to the second data message. The problem that the accuracy of the test data is affected by taking unordered error data is eliminated.
Further, after sending a plurality of first data messages to the power detection device by each test thread corresponding to each device to be tested, the method includes:
storing request information in data messages sent by each test thread;
and when receiving a second data message corresponding to the first data message, storing request information in the data message sent by each test thread and a test power value obtained according to the second data message correspondingly, and obtaining a message corresponding table of each test thread.
Thus, the message corresponding table is obtained, the test power value corresponding to each device to be tested can be recorded, and the subsequent determination of the test result of the device to be tested is facilitated.
Further, when all the test power values of the device to be tested meet the preset condition, determining that the device to be tested completes the power test, specifically:
judging whether each test power value in each device to be tested meets a preset value or not according to the message corresponding table of each test thread;
if the test power value meeting the preset value in the equipment to be tested reaches the preset number, determining that the equipment to be tested finishes the power test;
and if the test power value meeting the preset value in the equipment to be tested does not reach the preset number, determining that the equipment to be tested does not complete the power test.
Further, the communication channels for sending the data messages by each test thread are different, specifically:
and randomly distributing different UDP ports to each test thread as communication channels, and sending data messages to the UDP ports of the power detection equipment by each test thread according to the corresponding UDP ports.
This allows the use of different communication channels for each test thread by assigning a different UDP port for each test thread. The method and the device realize parallel test of a plurality of devices to be tested by using the UDP protocol, and simultaneously solve the problem of inaccurate test data caused by data confusion in parallel test due to the use of the UDP protocol.
In a second aspect, the present application provides a multi-machine parallel power testing apparatus, including: the system comprises a message sending module, a message receiving module, a power acquisition module and a test completion module;
the message sending module is used for sending a plurality of first data messages to the power detection equipment by each test thread corresponding to each equipment to be detected;
the message receiving module is used for receiving second data messages corresponding to the first data messages sent by the power detection equipment according to the first data messages, and obtaining a plurality of power result values of each test thread according to the second data messages;
the power acquisition module is used for acquiring a plurality of test power values of each device to be tested according to a plurality of power result values of each test thread and loss values of the corresponding device to be tested;
and the test completion module is used for determining that the equipment to be tested completes the power test when all the test power values of the equipment to be tested meet the preset conditions.
Further, the message sending module includes: a thread creation unit;
the thread creation unit is used for connecting the equipment to be tested, creating a corresponding test thread according to each equipment to be tested, and sending a plurality of first data messages to the power detection equipment through the communication channel by the test thread;
the communication channels of the data messages sent by each test thread are different, and the first data message comprises corresponding communication channel information and request information of the equipment to be tested.
Further, the message receiving module includes: a message pairing unit;
the message pairing unit is used for determining the corresponding relation between the second data message and the first data message according to the communication channel information and the time information in the second data message, and receiving the corresponding second data message according to the corresponding relation between the second data message and the first data message.
Further, the multi-machine parallel power testing device further comprises: an information storage module and a correspondence table module;
the information storage module is used for storing request information in data messages sent by each test thread;
and the corresponding table module is used for correspondingly storing the request information in the data messages sent by each test thread and the test power values acquired according to the second data messages when receiving the second data messages corresponding to the first data messages, so as to acquire the message corresponding tables of each test thread.
Further, the message sending module comprises a first judging unit and an equipment testing unit;
the first judging unit is used for judging whether each test power value in each device to be tested meets a preset value according to the message corresponding table of each test thread;
the equipment testing unit is used for determining that the equipment to be tested finishes the power test when the first judging unit determines that the test power value meeting the preset value in the equipment to be tested reaches the preset number;
the device testing unit is further configured to determine that the device to be tested does not complete the power test when the first determining unit determines that the test power value satisfying the preset value in the device to be tested does not reach the preset number.
Therefore, a test thread is independently arranged according to each device to be tested, so that information between different devices to be tested can be prevented from being confused, and inaccuracy of test data caused by data confusion is avoided. Further, according to the first data message, the second data message corresponding to the first data message is received, so that the situation that the power value of the device to be tested cannot be obtained due to message receiving errors can be prevented, and the power detection of a plurality of devices to be tested is simultaneously carried out.
Drawings
Fig. 1: the invention provides a flow diagram of one embodiment of a multi-machine parallel power test processing method;
fig. 2: a schematic diagram of device connection for one embodiment;
fig. 3: a first data message structure diagram of an embodiment;
fig. 4: schematic diagram is set up for the UDP protocol communication channel of an embodiment;
fig. 5: a second data message structure diagram of an embodiment;
fig. 6: a message mapping table structure diagram of an embodiment
Fig. 7: the invention provides a module structure diagram of an embodiment of a multi-machine parallel power test processing device.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present application, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and further implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present application.
Logic and/or steps represented in the flowcharts or otherwise described herein, e.g., a ordered listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
Example 1
Referring to fig. 1, a multi-machine parallel power test processing method provided by an embodiment of the present invention is applied to a test tool, and includes steps S1 to S4, where each step is specifically as follows:
step S1: transmitting a plurality of first data messages to the power detection equipment by each test thread corresponding to each equipment to be detected;
further, the sending, by each test thread corresponding to each device to be tested, a plurality of first data messages to the power detection device specifically includes:
and connecting the devices to be tested, creating corresponding test threads according to each device to be tested, and sending a plurality of first data messages to the power detection device through the communication channel by the test threads.
In an alternative embodiment, the test tool, the device under test and the power detection device are connected as shown in fig. 2.
In fig. 2, the test tool is installed on a PC, and the power detection device includes a WIFI coupling tester and a plurality of power detection modules. The test tool and the equipment to be tested are connected in an associated mode through Telnet commands and the like, the equipment is placed above a power detection module which is connected with the WIFI coupling tester in a wired mode, a WIFI antenna forced sending mode is opened, and after the test tool completes the associated connection and preparation with the equipment to be tested, the test tool immediately creates threads according to the connected equipment to be tested. All test threads in the test tool allow the UDP data messages of the request to be sent to the WIFI coupling tester together at the same time.
Therefore, interaction becomes lighter, a plurality of test threads of the test tool are allowed to send message data to one WIFI coupling tester port at the same time, each thread can be respectively interacted with the WIFI coupling tester, compared with a mode of establishing connection by using a TCP/IP protocol, the parallel test speed can be effectively increased, connection establishment time is shortened, and meanwhile the problem of data result disorder caused by using a UDP protocol to send information can be effectively solved by combining the three binding relations in message information.
The communication channels of the data messages sent by each test thread are different, and the first data message comprises corresponding communication channel information and request information of the equipment to be tested.
In an alternative embodiment, the first data packet includes a request information prefix and communication channel information, that is, request channel information, as shown in fig. 3.
In fig. 3, the prefix of the request information of the first data packet corresponds to the communication channel of the test thread, and more parameters may be added to the first data packet for data transmission.
Thus, a dedicated test thread is created for each device to be tested in each connection, and the data message sent by each test thread includes communication channel information, so that the corresponding relation between the first data message and the second data message can be determined according to the communication channel information in the first data message later, and the power detection device can also determine the device to be tested corresponding to each first message.
Further, the communication channels for sending the data messages by each test thread are different, specifically:
and randomly distributing different UDP ports to each test thread as communication channels, and sending data messages to the UDP ports of the power detection equipment by each test thread according to the corresponding UDP ports. As shown in fig. 4, the WIFI coupling tester is a device in the power detection device, the test tool is installed on the PC, the used UDP port is dynamically allocated to an idle port by the PC, the WIFI coupling tester uses a fixed UDP port, and in a one-to-many manner of the UDP protocol, the test tool allows parallel testing, and all test threads of the test tool allow sending a requested UDP data packet to the WIFI coupling tester together at the same time.
This allows the use of different communication channels for each test thread by assigning a different UDP port for each test thread. The method and the device realize parallel test of a plurality of devices to be tested by using the UDP protocol, and simultaneously solve the problem of inaccurate test data caused by data confusion in parallel test due to the use of the UDP protocol.
Step S2: according to the first data messages, receiving second data messages corresponding to the first data messages sent by the power detection equipment, and obtaining a plurality of power result values of each test thread according to the second data messages;
in an alternative embodiment, fig. 5 is a schematic diagram of a data structure of the second data packet.
The second data packet in fig. 5 is similar to the first data packet in fig. 3, and the data structures thereof are different in that the number of parameters in the middle may be different, and the power result value of the corresponding device under test is added at the end.
Further, the receiving, according to the first data packets, the second data packets corresponding to each first data packet sent by the power detection device specifically includes:
and determining the corresponding relation between the second data message and the first data message according to the communication channel information and the time information in the second data message, and receiving the corresponding second data message according to the corresponding relation between the second data message and the first data message.
And determining the corresponding relation between the second data message and the first data message, and determining the equipment to be tested corresponding to the second data message. The problem that the accuracy of the test data is affected by taking unordered error data is eliminated.
Further, after sending a plurality of first data messages to the power detection device by each test thread corresponding to each device to be tested, the method includes:
storing request information in data messages sent by each test thread;
and when receiving a second data message corresponding to the first data message, storing request information in the data message sent by each test thread and a test power value obtained according to the second data message correspondingly, and obtaining a message corresponding table of each test thread.
Thus, the message corresponding table is obtained, the test power value corresponding to each device to be tested can be recorded, and the subsequent determination of the test result of the device to be tested is facilitated.
Step S3: acquiring a plurality of test power values of each device to be tested according to a plurality of power result values of each test thread and loss values of the corresponding device to be tested;
in an optional embodiment, the loss value corresponding to the device to be tested specifically includes a loss value fixedly set by a wire, a device, and the like;
and subtracting the loss value of the corresponding equipment to be tested from the power result values of each test thread and adding the allowable deviation value of the equipment to be tested to obtain a plurality of test power values of each equipment to be tested.
Step S4: and when all the test power values of the equipment to be tested meet the preset conditions, determining that the equipment to be tested completes the power test.
Further, when all the test power values of the device to be tested meet the preset condition, determining that the device to be tested completes the power test, specifically:
judging whether each test power value in each device to be tested meets a preset value or not according to the message corresponding table of each test thread;
if the test power value meeting the preset value in the equipment to be tested reaches the preset number, determining that the equipment to be tested finishes the power test;
and if the test power value meeting the preset value in the equipment to be tested does not reach the preset number, determining that the equipment to be tested does not complete the power test.
In an alternative embodiment, as shown in fig. 6, the message correspondence table may be a predetermined number for the prefix of the request information in each first message and the corresponding test power value satisfying the preset value in each device under test.
And SWADVR1 to SWADVR.
Therefore, the global cache is introduced, the result of the successful times of each interaction between the thread of the test tool and the WIFI coupling tester is stored, the time for reading data can be shortened and shortened, the result data between each test thread can be visible, and the test can be immediately ended after the successful times are reached.
Therefore, a test thread is independently arranged according to each device to be tested, so that information between different devices to be tested can be prevented from being confused, and inaccuracy of test data caused by data confusion is avoided. Further, according to the first data message, the second data message corresponding to the first data message is received, so that the situation that the power value of the device to be tested cannot be obtained due to message receiving errors can be prevented, and the power detection of a plurality of devices to be tested is simultaneously carried out.
Example two
Referring to fig. 7, a block diagram of an embodiment of a multi-machine parallel power test processing device according to the present invention is shown.
A multi-machine parallel power test processing device, comprising: a message sending module 710, a message receiving module 720, a power obtaining module 730 and a test completion module 740;
the message sending module 710 is configured to send a plurality of first data messages to the power detection device by each test thread corresponding to each device to be tested;
the message receiving module 720 is configured to receive, according to the first data messages, second data messages corresponding to the first data messages sent by the power detection device, and obtain, according to the second data messages, a plurality of power result values of each test thread;
the power obtaining module 730 is configured to obtain a plurality of test power values of each device to be tested according to a plurality of power result values of each test thread and loss values of the corresponding device to be tested;
the test completion module 740 is configured to determine that the device under test completes the power test when all the test power values of the device under test meet a preset condition.
Further, the message sending module 710 includes: a thread creation unit 711;
the thread creating unit 711 is configured to connect to devices to be tested, create a corresponding test thread according to each device to be tested, and send a plurality of first data messages to the power detection device through the communication channel by using the test thread;
the communication channels of the data messages sent by each test thread are different, and the first data message comprises corresponding communication channel information and request information of the equipment to be tested.
Further, the message receiving module 720 includes: a message pairing unit 721;
the message pairing unit 721 is configured to determine a corresponding relationship between the second data message and the first data message according to the communication channel information and the time information in the second data message, and receive the corresponding second data message according to the corresponding relationship between the second data message and the first data message.
Further, the multi-machine parallel power testing device further comprises: an information storage module 750 and a correspondence table module 760;
the information storage module 750 is configured to store request information in a data packet sent by each test thread;
the correspondence table module 760 is configured to store, when receiving a second data packet corresponding to the first data packet, request information in the data packet sent by each test thread and a test power value obtained according to the second data packet, so as to obtain a packet correspondence table of each test thread.
Further, the message sending module 710 includes a first judging unit 712 and an equipment testing unit 713;
the first judging unit 712 is configured to judge whether each test power value in each device to be tested meets a preset value according to the message correspondence table of each test thread;
the device testing unit 713 is configured to determine that the device under test completes the power test when the first determining unit 712 determines that the number of test power values satisfying the preset value in the device under test reaches a predetermined number;
the device testing unit 713 is further configured to determine that the device under test does not complete the power test when the first determining unit 712 determines that the test power value satisfying the preset value in the device under test does not reach the predetermined number.
Therefore, a test thread is independently arranged according to each device to be tested, so that information between different devices to be tested can be prevented from being confused, and inaccuracy of test data caused by data confusion is avoided. Further, according to the first data message, the second data message corresponding to the first data message is received, so that the situation that the power value of the device to be tested cannot be obtained due to message receiving errors can be prevented, and the power detection of a plurality of devices to be tested is simultaneously carried out.
The foregoing embodiments have been provided for the purpose of illustrating the general principles of the present invention, and are not to be construed as limiting the scope of the invention. It should be noted that any modifications, equivalent substitutions, improvements, etc. made by those skilled in the art without departing from the spirit and principles of the present invention are intended to be included in the scope of the present invention.

Claims (11)

1. A multi-machine parallel power testing method, which is applied to a testing tool and comprises the following steps:
transmitting a plurality of first data messages to the power detection equipment by each test thread corresponding to each equipment to be detected;
according to the first data messages, receiving second data messages corresponding to the first data messages sent by the power detection equipment, and obtaining a plurality of power result values of each test thread according to the second data messages;
acquiring a plurality of test power values of each device to be tested according to a plurality of power result values of each test thread and loss values of the corresponding device to be tested;
and when all the test power values of the equipment to be tested meet the preset conditions, determining that the equipment to be tested completes the power test.
2. The method for testing parallel power of multiple machines according to claim 1, wherein each test thread corresponding to each device to be tested sends a plurality of first data messages to the power detection device, specifically:
connecting the devices to be tested, creating corresponding test threads according to each device to be tested, and sending a plurality of first data messages to the power detection device through the communication channel by the test threads;
the communication channels of the data messages sent by each test thread are different, and the first data message comprises corresponding communication channel information and request information of the equipment to be tested.
3. The method for testing parallel power of multiple machines according to claim 1, wherein the receiving, according to the first data packets, the second data packets corresponding to each first data packet sent by the power detection device specifically includes:
and determining the corresponding relation between the second data message and the first data message according to the communication channel information and the time information in the second data message, and receiving the corresponding second data message according to the corresponding relation between the second data message and the first data message.
4. The method for testing parallel power of multiple machines according to claim 1, further comprising, after each test thread corresponding to each device under test sends a plurality of first data packets to the power detection device:
storing request information in data messages sent by each test thread;
and when receiving a second data message corresponding to the first data message, storing request information in the data message sent by each test thread and a test power value obtained according to the second data message correspondingly, and obtaining a message corresponding table of each test thread.
5. The method for testing multiple parallel power according to claim 4, wherein when all the test power values of the device under test meet the preset condition, determining that the device under test completes the power test specifically includes:
judging whether each test power value in each device to be tested meets a preset value or not according to the message corresponding table of each test thread;
if the test power value meeting the preset value in the equipment to be tested reaches the preset number, determining that the equipment to be tested finishes the power test;
and if the test power value meeting the preset value in the equipment to be tested does not reach the preset number, determining that the equipment to be tested does not complete the power test.
6. The method for testing parallel power of multiple machines according to claim 2, wherein the communication channels for each test thread to send the data message are different, specifically:
and randomly distributing different UDP ports to each test thread as communication channels, and sending data messages to the UDP ports of the power detection equipment by each test thread according to the corresponding UDP ports.
7. A multi-machine parallel power testing apparatus, comprising: the system comprises a message sending module, a message receiving module, a power acquisition module and a test completion module;
the message sending module is used for sending a plurality of first data messages to the power detection equipment by each test thread corresponding to each equipment to be detected;
the message receiving module is used for receiving second data messages corresponding to the first data messages sent by the power detection equipment according to the first data messages, and obtaining a plurality of power result values of each test thread according to the second data messages;
the power acquisition module is used for acquiring a plurality of test power values of each device to be tested according to a plurality of power result values of each test thread and loss values of the corresponding device to be tested;
and the test completion module is used for determining that the equipment to be tested completes the power test when all the test power values of the equipment to be tested meet the preset conditions.
8. The multi-machine parallel power testing apparatus of claim 7, wherein the message sending module comprises: a thread creation unit;
the thread creation unit is used for connecting the equipment to be tested, creating a corresponding test thread according to each equipment to be tested, and sending a plurality of first data messages to the power detection equipment through the communication channel by the test thread;
the communication channels of the data messages sent by each test thread are different, and the first data message comprises corresponding communication channel information and request information of the equipment to be tested.
9. The multi-machine parallel power testing device of claim 7, wherein the message receiving module comprises: a message pairing unit;
the message pairing unit is used for determining the corresponding relation between the second data message and the first data message according to the communication channel information and the time information in the second data message, and receiving the corresponding second data message according to the corresponding relation between the second data message and the first data message.
10. The multi-machine parallel power testing apparatus of claim 9, further comprising: an information storage module and a correspondence table module;
the information storage module is used for storing request information in data messages sent by each test thread;
and the corresponding table module is used for correspondingly storing the request information in the data messages sent by each test thread and the test power values acquired according to the second data messages when receiving the second data messages corresponding to the first data messages, so as to acquire the message corresponding tables of each test thread.
11. The multi-machine parallel power testing device according to claim 10, wherein the message sending module comprises a first judging unit and an equipment testing unit;
the first judging unit is used for judging whether each test power value in each device to be tested meets a preset value according to the message corresponding table of each test thread;
the equipment testing unit is used for determining that the equipment to be tested finishes the power test when the first judging unit determines that the test power value meeting the preset value in the equipment to be tested reaches the preset number;
the device testing unit is further configured to determine that the device to be tested does not complete the power test when the first determining unit determines that the test power value satisfying the preset value in the device to be tested does not reach the preset number.
CN202311343310.9A 2023-10-17 2023-10-17 Multi-machine parallel power testing method and device Pending CN117319250A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311343310.9A CN117319250A (en) 2023-10-17 2023-10-17 Multi-machine parallel power testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311343310.9A CN117319250A (en) 2023-10-17 2023-10-17 Multi-machine parallel power testing method and device

Publications (1)

Publication Number Publication Date
CN117319250A true CN117319250A (en) 2023-12-29

Family

ID=89261911

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311343310.9A Pending CN117319250A (en) 2023-10-17 2023-10-17 Multi-machine parallel power testing method and device

Country Status (1)

Country Link
CN (1) CN117319250A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105119663A (en) * 2015-07-17 2015-12-02 深圳市江波龙电子有限公司 WiFi signal test method and system
WO2016172820A1 (en) * 2015-04-27 2016-11-03 华为技术有限公司 Antenna testing apparatus, system and method, and related device
CN110649979A (en) * 2019-09-30 2020-01-03 东莞市欧珀精密电子有限公司 Electronic device antenna performance testing method, electronic device, equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016172820A1 (en) * 2015-04-27 2016-11-03 华为技术有限公司 Antenna testing apparatus, system and method, and related device
CN105119663A (en) * 2015-07-17 2015-12-02 深圳市江波龙电子有限公司 WiFi signal test method and system
CN110649979A (en) * 2019-09-30 2020-01-03 东莞市欧珀精密电子有限公司 Electronic device antenna performance testing method, electronic device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US10367713B2 (en) Cloud based system and method for managing testing configurations for cable test devices
CN108282385B (en) Port test method and communication equipment
CN109873728B (en) Terminal testing method and device and storage medium
CN110519779B (en) Mobile terminal testing method, device, system and storage medium
CN109104329B (en) System for testing compatibility of router and network card
CN103259678A (en) Main-auxiliary switching method, device, equipment and system
CN111263377B (en) Network configuration method, device, equipment and system and distribution network testing method and system
CN104486791A (en) Wireless access equipment anti-interference test system and method
US7363188B1 (en) Apparatus and method for operating automated test equipment (ATE)
US10361945B2 (en) System and method to reconcile cabling test results with cabling test configurations
CN117319250A (en) Multi-machine parallel power testing method and device
CN103441894A (en) Method and system for L2TP concurrent connection performance test
CN111343667B (en) Communication method and communication device
CN113949657B (en) Internet of things detection device, system and test method
CN113109643B (en) Automatic testing method and device for intelligent door lock
US10412608B2 (en) Communication device and testing method
CN108306939A (en) A kind of data processing method, device and forwarding unit
CN109245964B (en) Communication method, system, equipment and medium for public network pressure test
CN114205261B (en) Automatic test method for correctness of network communication data and storage medium
CN115499346B (en) Speed measuring method, device, equipment and medium for multiple network cards
CN116389188B (en) Data transmission method and related device
WO2019071436A1 (en) Automated test system
CN116155782B (en) Test method, device, equipment and storage medium of network acceleration application software
CN115190054B (en) Double-master-station batch communication protocol analysis method
CN116545869A (en) Cross-platform network transmission stability testing method

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