Device performance test method and device, computer device, and storage medium
Patent Information
- Application Number
- CN202610806774.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-05
- Publication Date
- 2026-08-21
- Estimated Expiration
- 2046-06-05
AI Technical Summary
[0004]然而,目前的MIMO-PLC技术由于使用了多条相线并行传输,在实际应用场景中,每一根相线上连接的电器数量、类型各异,导致不同相线对信号的衰减程度各不相同
[0046]上述设备性能测试方法、装置、计算机设备和存储介质,通过在上位机中获取并执行针对待测通信设备的测试策略,控制基准通信设备经由与策略相匹配的至少一条目标线路发送报文数据,并收集分析待测设备在各线路上的报文接收情况以判断其数据接收性能是否正常,从而实现了对MIMO-PLC设备在分集、复用等多种空间映射模式下收发性能的自动化、精确化测试,有效填补了现有技术无法模拟多通道衰减差异及验证复杂空间映射功能的空白,且该方案实现简单、成本较低,具有良好的工程实用性。
Smart Images

Figure CN122339509B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer equipment technology, and in particular to a method, apparatus, computer equipment, and storage medium for testing equipment performance. Background Technology
[0002] With the development of Power Line Communication (PLC) technology, Multiple Input Multiple Output Power Line Communication (MIMO-PLC) technology has emerged. This technology utilizes the three-phase four-wire system (including three live wires A, B, and C and one neutral wire N) commonly used in power transmission backbone networks, and transmits data simultaneously through multiple phase wires, thereby significantly improving the transmission efficiency and reliability of communication.
[0003] Traditional testing methods for power line communication are primarily based on single-input single-output (SISO) systems. For example, existing low-voltage power line broadband carrier communication testing methods typically establish a single data transmission channel between a standard carrier communication device and the device under test (DUT), and use attenuators to simulate signal loss on the line to test the device's transmit and receive performance in a single channel.
[0004] However, current MIMO-PLC technology uses multiple phase lines for parallel transmission. In practical applications, the number and type of electrical appliances connected to each phase line vary, resulting in different signal attenuation levels across different phase lines. Existing SISO testing methods cannot support testing the performance of this multi-channel MIMO communication with inconsistent characteristics between channels. In particular, MIMO-PLC supports flexible mapping of data streams to different phase lines for transmission based on the actual transmission quality of each phase line (i.e., spatial mapping), and existing technologies lack effective testing methods for this critical characteristic. Summary of the Invention
[0005] Therefore, it is necessary to provide a device performance testing method, apparatus, computer equipment, and storage medium that can effectively test the device, addressing the aforementioned technical problems.
[0006] In a first aspect, this application provides a device performance testing method, applied to a host computer, which is communicatively connected to a reference communication device and a communication device under test (DUT); the reference communication device and the DUT are connected via at least one communication line; the method includes:
[0007] Obtain a test strategy for testing the data reception performance of the communication device under test;
[0008] The control reference communication device sends message data to the communication device under test through at least one target line that matches the test strategy;
[0009] Obtain the message reception status of the communication device under test through each target line;
[0010] Based on different message reception conditions, determine whether the data reception performance of the communication device under test is normal.
[0011] In one embodiment, the control reference communication device sends message data to the communication device under test via a target line matched with the test strategy, including:
[0012] According to the testing strategy, a target route is selected from at least one route; and,
[0013] Based on the testing strategy, determine the message data to be sent through each target line;
[0014] The control reference communication equipment sends corresponding message data to the communication equipment under test through each target line.
[0015] In one embodiment, when the test strategy involves sending the same message data to the communication device under test via at least one target line, the determination of whether the data reception performance of the communication device under test is normal is based on different message reception conditions, including:
[0016] If all message reception data indicates successful message reception, the data reception performance of the communication device under test is determined to be normal.
[0017] If the message reception status of any message data indicates an abnormality in message data reception, determine that the data reception performance of the communication device under test is abnormal on the target line where message data reception is abnormal.
[0018] In one embodiment, when the test strategy involves sending different message data to the communication device under test (DUT) via at least two target lines, the message reception status of the DUT receiving the corresponding message data via each target line is obtained, including:
[0019] For each target line, obtain the first message reception status of the communication device under test receiving the corresponding target message data through the target line, and the second message reception status of receiving other message data;
[0020] Among them, the target message data is the message data sent by the reference communication device through the target line; the other message data is different message data sent by the reference communication device through other target lines.
[0021] In one embodiment, determining whether the data reception performance of the communication device under test is normal based on the message reception status of different target lines includes:
[0022] For each target line, if the first message reception status indicates that the message data reception is normal, and the second message reception status indicates that the message data reception is abnormal, then the data reception performance of the communication device under test is determined to be normal.
[0023] If the first message reception status indicates that the message data reception is abnormal, it is determined that the data reception performance of the communication device under test is abnormal on the target line where the message data reception is abnormal;
[0024] If the second message reception status indicates that the message data reception is normal, it is determined that there is line crosstalk between the target line and other target lines where the message data reception is normal.
[0025] In one embodiment, the reference communication device and the communication device under test communicate with each other through an attenuator; the attenuators on different lines have different preset attenuation values; the attenuator is used to simulate the line loss of message data transmission between the reference communication device and the communication device under test.
[0026] Secondly, this application also provides a device for testing equipment performance, comprising:
[0027] The acquisition module is used to acquire the test strategy for data reception performance testing of the communication device under test;
[0028] The control module is used to control the reference communication device to send message data to the communication device under test through at least one target line that matches the test strategy;
[0029] The acquisition module is used to acquire the message reception status of the communication device under test receiving the message data sent through each target line;
[0030] The detection module is used to determine whether the data reception performance of the communication device under test is normal based on different message reception conditions.
[0031] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0032] Obtain a test strategy for testing the data reception performance of the communication device under test;
[0033] The control reference communication device sends message data to the communication device under test through at least one target line that matches the test strategy;
[0034] Obtain the message reception status of the communication device under test through each target line;
[0035] Based on different message reception conditions, determine whether the data reception performance of the communication device under test is normal.
[0036] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:
[0037] Obtain a test strategy for testing the data reception performance of the communication device under test;
[0038] The control reference communication device sends message data to the communication device under test through at least one target line that matches the test strategy;
[0039] Obtain the message reception status of the communication device under test through each target line;
[0040] Based on different message reception conditions, determine whether the data reception performance of the communication device under test is normal.
[0041] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:
[0042] Obtain a test strategy for testing the data reception performance of the communication device under test;
[0043] The control reference communication device sends message data to the communication device under test through at least one target line that matches the test strategy;
[0044] Obtain the message reception status of the communication device under test through each target line;
[0045] Based on different message reception conditions, determine whether the data reception performance of the communication device under test is normal.
[0046] The aforementioned device performance testing method, apparatus, computer equipment, and storage medium acquire and execute a test strategy for the communication device under test in a host computer, control the reference communication device to send message data through at least one target line matching the strategy, and collect and analyze the message reception status of the device under test on each line to determine whether its data reception performance is normal. This achieves automated and precise testing of the transceiver performance of MIMO-PLC devices in various spatial mapping modes such as diversity and multiplexing. It effectively fills the gap in existing technologies that cannot simulate multi-channel attenuation differences and verify complex spatial mapping functions. Moreover, this solution is simple to implement, low in cost, and has good engineering applicability. Attached Figure Description
[0047] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0048] Figure 1 This is an application environment diagram of a device performance testing method provided in this embodiment;
[0049] Figure 2A This is a flowchart illustrating a device performance testing method provided in this embodiment;
[0050] Figure 2B This is a schematic diagram of the hardware structure of a device performance testing method provided in this embodiment;
[0051] Figure 3 This is a flowchart illustrating a message data transmission step provided in this embodiment;
[0052] Figure 4 This is a flowchart illustrating a data acceptability test procedure provided in this embodiment.
[0053] Figure 5 This is a flowchart illustrating a data acceptability test procedure provided in this embodiment.
[0054] Figure 6 This is a structural block diagram of a device performance testing apparatus provided in this embodiment;
[0055] Figure 7 This is an internal structural diagram of a computer device provided in this embodiment. Detailed Implementation
[0056] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0057] The device performance testing method provided in this application embodiment can be applied to, for example... Figure 1In the application environment shown, the host computer 100 is communicatively connected to both the reference communication device 101 and the communication device under test 102. The reference communication device 101 and the communication device under test 102 communicate via at least one line. The host computer 100 acquires a test strategy for testing the data reception performance of the communication device under test. It controls the reference communication device 101 to send message data to the communication device under test 102 via at least one target line matching the test strategy. It acquires the message reception status of the communication device under test 101 receiving the sent message data via each target line. Based on the different message reception statuses, it determines whether the data reception performance of the communication device under test 102 is normal.
[0058] In this context, the host computer 100 refers to the computer device (such as a personal computer, server, or dedicated test terminal) that plays the role of main control, coordination, and data processing in the entire testing system. It establishes communication connections with the reference communication device and the device under test (DUT) via serial ports, Ethernet ports, etc., and is responsible for issuing test commands, configuring device parameters (such as operating frequency band and mapping mode), controlling the test process (such as initiating message transmission), and collecting and comparing the message data reported by the receiving end. Finally, it determines the test results based on preset logic. The host computer 100 can be a server, which can be implemented using a standalone server or a server cluster composed of multiple servers.
[0059] The reference communication device 101 is a communication device (e.g., a calibrated standard carrier communication device or a standard central coordinator / site module) used as a reference standard in the test system. Its functions and performance conform to relevant protocol specifications and it operates stably. When testing the receiving performance of the device under test (DUT), it acts as the transmitter, sending specific PLC signals according to the host computer instructions; when testing the transmitting performance of the DUT, it acts as the receiver, responsible for receiving signals and reporting the analysis results. Its role is to provide reliable source data or a receiving comparison benchmark.
[0060] In this context, the communication device under test (DUT) 102 refers to the object being evaluated and verified in the test system, specifically a carrier communication module or device supporting MIMO-PLC functionality. When testing its receiving performance, it acts as a receiver, receiving attenuated signals from a reference device; when testing its transmitting performance, it acts as a transmitter, sending specific data streams according to the spatial mapping strategy configured by the host computer. Its receiving and transmitting behavior is observed to determine whether its MIMO-PLC performance meets the standards.
[0061] In some embodiments, since different phase lines have different signal attenuation levels, in order to increase flexibility and ensure transmission reliability, MIMO-PLC technology supports various combinations of mapping spatial streams to the transmit port. The following embodiments are all based on this.
[0062] In one exemplary embodiment, such as Figure 2A As shown, a device performance testing method is provided, which is applied to... Figure 1 Taking the host computer 100 as an example, the explanation includes the following steps S201 to S204. Wherein:
[0063] S201 Obtain the test strategy for testing the data reception performance of the communication device under test.
[0064] Data reception performance testing refers to a testing system where a host computer controls the transmitting end to send specific messages with known content. The success rate, accuracy, and anti-crosstalk capability of the receiving device on the receiving side are observed and statistically analyzed to quantitatively or qualitatively assess whether the receiving link of the device under test (DUT) is functioning correctly. This is in contrast to data transmission performance testing, which tests the performance of the DUT as a transmitter.
[0065] The test strategy refers to the set of execution logic and parameters pre-set by the host computer to verify specific communication performance indicators. It specifically includes, but is not limited to: the spatial mapping mode to be verified (diversity mode index or multiplexing mode index), the target line combination to be enabled (such as only phase A, phase A+B), the data stream type of the sent messages (single-stream repetition or dual-stream difference), and the expected result logic for judging whether the test passes.
[0066] In one optional embodiment, when the host computer sets the current communication mode to diversity mode, the host computer sends out configuration settings for initialization of all communication devices (including the reference communication device and the device under test), and the standard communication device and the device under test operate in the specified frequency band; a specified attenuation value is set to ensure that the device under test can normally receive the carrier signal of the specified phase line, while not being able to receive signals radiated to this phase line from other phase lines; the host computer software sequentially selects the mapping table in the diversity mode mapping set and sends it to the device under test through the serial port.
[0067] In one optional embodiment, when the host computer sets the current communication mode to multiplexing mode, the host computer sends out configuration to initialize all communication devices (including the reference communication device and the communication device under test), and the standard communication device and the communication device under test operate in the specified frequency band; a specified attenuation value is set to ensure that the communication device under test can normally receive the carrier signal of the specified phase line, while not being able to receive signals radiated to this phase line from other phase lines; the host computer software sequentially selects the mapping table in the diversity mode mapping set and sends it to the communication device under test through the serial port.
[0068] It should be noted that in diversity mode, single-stream communication data can be copied and transmitted on different phase lines; that is, the same message data can be sent on different lines. In multiplexing mode, two-stream communication data are transmitted, with one stream mapped to two phase lines and the other stream mapped to the remaining phase lines. This means that different lines can either send the same message data or send different message data. The mapping table stores different test strategies used for data reception performance testing.
[0069] The S202 control reference communication device sends message data to the communication device under test through at least one target line that matches the test strategy.
[0070] In this context, the target line refers to one or more physical channels in a Multiple-Input Multiple-Output (MIMO) communication link that are selected by the host computer and used to transmit test message signals according to the current test strategy. In this MIMO-PLC scenario, it typically refers to any one or more combinations of phases A, B, and C of the power line. Unselected lines are in a silent or off state.
[0071] In this context, message data refers to data frames or data packets of a specific format transmitted between the reference communication device and the device under test during the testing process. It is typically generated and recorded in advance by a host computer (for subsequent comparison), containing the payload and necessary communication protocol overhead. In multiplexing mode testing, the message data content transmitted on different lines is usually different independent data streams.
[0072] In one optional embodiment, when the host computer sets the current communication mode to diversity mode, the host computer software configures the standard carrier communication device to receive only phase A, phase B, or phase C (single reception); the host computer software controls the device under test to cyclically send a certain number of single-stream specified test messages.
[0073] In one optional embodiment, when the host computer sets the current communication mode to multiplexing mode, the host computer software sets the standard carrier communication device to receive only phase A and phase B, or phase A and phase C, or phase B and phase C (two-receive); the host computer software controls the device under test to send dual-stream specified test messages a certain number of times in a loop.
[0074] S203 obtains the message reception status of the communication device under test receiving the sent message data through each target line.
[0075] The message reception status refers to the specific reception status information reported by the receiving device (the device under test or the reference device) to the host computer via serial port or Ethernet port after completing signal demodulation and decoding. It is usually represented by Boolean values or enumerated values, including but not limited to: successful reception, reception error, and crosstalk reception. Successful reception means the receiving end correctly parses the data, passes verification, and the content is consistent with the original message from the sending end. Reception error includes reception timeout (no signal received), verification failure (incorrect data received), signal loss, etc. Crosstalk reception specifically refers to the phenomenon in multiplexing mode testing where "other message data" that should only be transmitted on other lines is unexpectedly received on a target line.
[0076] In one optional embodiment, when the host computer sets the current communication mode to diversity mode, after the host computer receives the PLC message content reported by the standard carrier communication device from the serial port, it compares it with the content saved before sending. If the content is the same, the message is considered to have been sent successfully, and the communication success count is incremented by 1. If the message data before and after are inconsistent, the communication success count remains unchanged.
[0077] In one optional embodiment, when the host computer sets the current communication mode to multiplexing mode, after the host computer receives the PLC message content reported by the standard carrier communication device from the serial port, it compares it with the content saved before sending. If the content is the same, the message is considered to have been sent successfully, and the communication success count is incremented by 1. If the message data before and after are inconsistent, the communication success count remains unchanged.
[0078] S204 determines whether the data reception performance of the communication device under test is normal based on different message reception conditions.
[0079] In one optional embodiment, when the host computer sets the current communication mode to diversity mode, a) it counts whether different phases are successfully received, and determines whether the corresponding diversity mode test is successful based on the success of different phase receptions. For example, for MIMO diversity mapping mode index 0, the carrier communication device under test needs to transmit data on all three phase lines A, B, and C. Therefore, the standard carrier communication device needs to successfully receive data on only phase A, only phase B, and only phase C for the test to be considered successful. For MIMO diversity mapping mode index 1, the carrier communication device under test needs to transmit data on two phase lines A and C, and no data transmission is performed on phase B. Therefore, the standard carrier communication device needs to successfully receive data on only phase A and only phase C, and fail to receive data on only phase B for the test to be considered successful, and so on.
[0080] In one optional embodiment, when the host computer sets the current communication mode to multiplexing mode, it counts whether different phases are successfully received, and determines whether the corresponding diversity mode test is successful based on the success of different phase reception. For example, for MIMO multiplexing mapping mode index 7, the carrier communication device under test needs to send stream 0 data on both phase lines A and C, and stream 1 data only on phase B. Therefore, the standard carrier communication device needs to successfully receive data on both phases A and B simultaneously, successfully receive data on both phases B and C simultaneously, and fail to receive data on both phases A and C simultaneously for the test to be considered successful. Similarly, for MIMO multiplexing mapping mode index 8, the carrier communication device under test needs to send stream 0 data on both phase lines A and B, and stream 1 data only on phase C. Therefore, the standard carrier communication device needs to successfully receive data on both phases A and C simultaneously, successfully receive data on both phases B and C simultaneously, and fail to receive data on both phases B and C simultaneously for the test to be considered successful, and so on.
[0081] The aforementioned device performance testing method acquires and executes a test strategy for the communication device under test in a host computer, controls a reference communication device to send message data through at least one target line matching the strategy, and collects and analyzes the message reception status of the device under test on each line to determine whether its data reception performance is normal. This achieves automated and precise testing of the transceiver performance of MIMO-PLC devices under various spatial mapping modes such as diversity and multiplexing. It effectively fills the gap in existing technologies that cannot simulate multi-channel attenuation differences and verify complex spatial mapping functions. Moreover, this solution is simple to implement, low in cost, and has good engineering applicability.
[0082] In some embodiments, such as Figure 2B The hardware structure diagram of the device performance testing method shown mainly includes a standard carrier communication device, a carrier communication device under test (DUT), attenuators, and a spectrum analyzer. The devices are connected sequentially via coaxial cables (other transmission lines such as electrical wires can also be used depending on testing needs). Phases A, B, and C of the standard carrier communication device are connected to phases A, B, and C of the DUT via attenuators, respectively. The three attenuators can be independently controlled and set with different attenuation values. Depending on testing needs, the spectrum analyzer L can be connected to H, I, J, D, E, or F (e.g., connected to D to test the spectrum transmission of phase A of the DUT, and connected to H to test the spectrum transmission of phase A of the standard carrier communication device). Furthermore, the carrier communication module, attenuators, and spectrum analyzer need to be connected to a host computer via serial ports or network cables. The host computer issues test commands to each device to complete the test. This system is compatible with existing single-input single-output characteristic tests; all tests of the original characteristics can be performed through software configuration without hardware modifications.
[0083] In some embodiments, the reference communication device and the communication device under test in this embodiment communicate with each other through an attenuator; the attenuator on different lines has a different preset attenuation value; the attenuator is used to simulate the line loss of message data transmission between the reference communication device and the communication device under test.
[0084] In this context, an attenuator refers to a passive radio frequency / signal device connected in series on the transmission line between the reference communication device and the device under test (DUT) in the test system. Its core function is to introduce fixed or adjustable power loss (in decibels, dB) into the passing power line carrier signal (PLC signal). In this MIMO-PLC test scheme, independent adjustable attenuators are connected to the A, B, and C phase lines respectively. By setting different attenuation values for each channel (e.g., 40dB, 60dB, 80dB), the physical characteristics of inconsistent signal attenuation in different phase lines due to differences in electrical load and line length in a real power line environment are simulated, thus constructing a test scenario of three-channel imbalance in a laboratory environment.
[0085] A spectrum analyzer is a precision measuring instrument used in a testing system to observe and analyze the frequency domain characteristics of signals. It can be flexibly connected to test nodes such as D, E, F, H, I, and J in the transmission link via RF cables, capturing and displaying parameters such as the spectrum, center frequency, signal bandwidth, in-band power, and spurious emissions of the carrier signal at the corresponding node in real time. Its function is to assist testers in intuitively judging whether the signal quality at the transmitting end meets the specifications, and to verify whether the attenuator's attenuation of the signal is accurate, thereby ensuring the effectiveness of the test environment.
[0086] Figure 3 This is a flowchart illustrating the message data transmission steps in one embodiment. This embodiment refines the steps in the above embodiments where the reference communication device sends message data to the communication device under test via a target line matching the test strategy. This embodiment provides an optional method for the message data transmission steps, including the following steps:
[0087] S301 selects a target line from at least one line according to the test strategy; and determines the message data to be sent through each target line according to the test strategy.
[0088] In some embodiments, according to a test strategy, a target line is selected from at least one line. Furthermore, the message data transmitted on each line is determined according to the strategy set in the test strategy. It should be noted that the message data transmitted on different lines in this embodiment may be the same or different; this embodiment does not impose any limitations on this.
[0089] The S302 control reference communication device sends corresponding message data to the communication device under test through each target line.
[0090] In some embodiments, the host computer sends control commands to the reference communication device, the reference communication device receives the control commands, and sends corresponding message data to the communication device under test through each target line.
[0091] In the above embodiments, by intelligently selecting the target line combination that precisely matches the spatial mapping mode of the test from multiple lines according to the preset test strategy, and determining the single-stream or multi-stream message data to be sent for each target line according to the strategy, the reference communication device is controlled to perform the transmission. This ensures that the test excitation signal can accurately simulate the signal input conditions of the MIMO-PLC device under test in various actual working scenarios such as diversity or multiplexing, providing a reliable and flexible data source control basis for subsequent accurate judgment of the device's performance under multi-channel transmission and complex data stream mapping.
[0092] Figure 4 This is a flowchart illustrating the data reception test steps in one embodiment. In this embodiment, where the test strategy involves sending the same message data to the communication device under test via at least one target line (i.e., the communication mode is diversity mode), the steps for determining whether the data reception performance of the communication device under test is normal based on different message reception conditions, as described in the previous embodiment, are refined. This embodiment provides an optional method for the data reception test steps, including the following steps:
[0093] S401 obtains the message reception status of the communication device under test (DUT) through each target line, which receives the sent message data.
[0094] In some embodiments, the communication device under test (DUT) determines the message reception status of the message data sent by each target line; the host computer directly obtains the message reception status determined by the DUT.
[0095] S402 determines that the data reception performance of the communication device under test is normal if all message data reception statuses indicate successful message data reception.
[0096] S403 determines that the data reception performance of the communication device under test is abnormal on the target line where the data reception is abnormal, in cases where the message reception status of any message data indicates an abnormality.
[0097] In the above embodiments, by acquiring the reception status of the same message data of the communication device under test on each target line, and judging whether the overall performance of the device is normal based on whether all lines have successfully received the data, and accurately locating the faulty line when any line receives abnormally, it is possible to simply, efficiently and accurately verify the data transmission reliability of the MIMO-PLC device in diversity mode, and quickly identify the specific physical channel with reception performance defects.
[0098] Figure 5 This is a flowchart illustrating the data reception test steps in one embodiment. In this embodiment, where the test strategy involves sending different message data to the communication device under test via at least two target lines (i.e., the communication mode is multiplexing mode), the steps for determining whether the data reception performance of the communication device under test is normal based on different message reception conditions, as described in the previous embodiment, are refined. This embodiment provides an optional method for the data reception test steps, including the following steps:
[0099] For each target line, S501 acquires the first message reception status of the communication device under test receiving the corresponding target message data through the target line, and the second message reception status of receiving other message data.
[0100] Among them, the target message data is the message data sent by the reference communication device through the target line; the other message data is different message data sent by the reference communication device through other target lines.
[0101] In some embodiments, for each target line, the communication device under test determines a first message reception status of receiving corresponding target message data through the target line, and a second message reception status of receiving other message data; the host computer directly obtains the first message reception status and the second message reception status from the communication device under test.
[0102] For each target line, if the first message reception status indicates that the message data reception is normal, and the second message reception status indicates that the message data reception is abnormal, S502 determines that the data reception performance of the communication device under test is normal.
[0103] S503 determines that the data reception performance of the communication device under test is abnormal on the target line where the message data reception is abnormal, provided that the first message reception status indicates an abnormality in message data reception.
[0104] In some embodiments, when the first message reception condition indicates an abnormal message data reception, it is determined that the data reception performance of the communication device under test is abnormal on the target line where the message data reception is abnormal. The abnormal data reception performance specifically refers to the existence of an abnormality on the corresponding target line. This abnormality may be caused by the target line, or by the interface between the line and the communication device under test, or by the internal settings and development of the communication device under test. This embodiment does not limit this.
[0105] S504, under the condition that the second message reception status indicates normal message data reception, determines that there is line crosstalk between the target line and other target lines with normal message data reception.
[0106] Among them, line crosstalk refers to the phenomenon in a MIMO-PLC (Multiple-Input Multiple-Output Power Line Communication) system where, when a reference communication device sends a specific target message data through a target line (such as phase A), the communication device under test unexpectedly receives and parses the message data that should only be transmitted on phase A in the receiving channel of another non-target line (such as phase B or phase C).
[0107] It should be noted that the crosstalk may be caused by insufficient hardware isolation in the device under test (DUT), meaning there is signal leakage in the analog front-end circuits (such as filtering and amplification circuits) between the A, B, and C phase receiving channels within the DUT. It could also be caused by radiative coupling in the test environment, i.e., poor electromagnetic shielding between test cables or connectors, leading to the reception of radiated signals by adjacent lines. This embodiment does not impose such limitations.
[0108] In some embodiments, if during multiplexing mode testing, the host computer detects that the second message reception status indicates that the message data reception is normal (i.e., the device under test receives "other message data" that should not have appeared on a certain phase line), then it is determined that there is line crosstalk between the target line and other lines where crosstalk occurs, and the channel isolation performance of the communication device under test is abnormal accordingly.
[0109] In the above embodiments, by acquiring the expected target message data and the unexpected crosstalk message data of other lines for each target line, and making a judgment based on the combination logic of these two reception results, it is possible not only to accurately verify the MIMO-PLC device's ability to correctly receive and parse multiple independent data streams in multiplexing mode, but also to effectively detect and locate potential risks of signal crosstalk or insufficient isolation between different physical channels. This provides a refined testing method for comprehensively evaluating the communication quality and anti-interference performance of the device in multi-stream parallel transmission scenarios.
[0110] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0111] Based on the same inventive concept, this application also provides a device for implementing the device performance testing method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more device performance testing device embodiments provided below can be found in the limitations of the device performance testing method described above, and will not be repeated here.
[0112] In one exemplary embodiment, such as Figure 6 As shown, a device performance testing apparatus is provided, comprising: an acquisition module 601, a control module 602, an acquisition module 603, and a detection module 604, wherein:
[0113] The acquisition module 601 is used to acquire the test strategy for data reception performance testing of the communication device under test;
[0114] The control module 602 is used to control the reference communication device to send message data to the communication device under test through at least one target line that matches the test strategy;
[0115] The acquisition module 603 is used to acquire the message reception status of the communication device under test receiving the message data sent through each target line;
[0116] The detection module 604 is used to determine whether the data reception performance of the communication device under test is normal based on different message reception conditions.
[0117] In some embodiments, the control module 602 is further configured to select a target line from at least one line according to a test strategy; and to determine the message data to be sent through each target line according to the test strategy; and to control the reference communication device to send the corresponding message data to the communication device under test through each target line.
[0118] In some embodiments, the acquisition module 603 is further configured to determine that the data reception performance of the communication device under test is normal when the message reception status of all message data indicates successful message data reception; and to determine that the data reception performance of the communication device under test is abnormal on the target line where message data reception is abnormal when the message reception status of any message data indicates abnormal message data reception.
[0119] In some embodiments, the acquisition module 603 is further configured to acquire, for each target line, a first message reception status of the communication device under test receiving corresponding target message data through the target line, and a second message reception status of receiving other message data; wherein, the target message data is the message data sent by the reference communication device through the target line; and the other message data is different message data sent by the reference communication device through other target lines.
[0120] In some embodiments, the detection module 604 is further configured to, for each target line, determine that the data reception performance of the communication device under test is normal when the first message reception status indicates normal message data reception and the second message reception status indicates abnormal message data reception; determine that the data reception performance of the communication device under test is abnormal on the target line where the message data reception is abnormal when the first message reception status indicates abnormal message data reception; and determine that there is line crosstalk between the target line and other target lines where the message data reception is normal when the second message reception status indicates normal message data reception.
[0121] In some embodiments, the communication between the reference communication device and the communication device under test in the device performance testing apparatus is established through an attenuator; the attenuator on different lines has a different preset attenuation value; the attenuator is used to simulate the line loss of message data transmission between the reference communication device and the communication device under test.
[0122] Each module in the aforementioned equipment performance testing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0123] In one exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 7 As shown, this computer device includes a processor, memory, input / output interfaces (I / O), and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operating system and computer programs stored in the non-volatile storage media. The database stores data. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network. When executed by the processor, the computer program implements a device performance testing method.
[0124] Those skilled in the art will understand that Figure 7The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0125] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.
[0126] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.
[0127] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0128] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0129] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0130] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0131] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for testing equipment performance, characterized in that, It is applied to a host computer, which is connected to a reference communication device and a communication device under test respectively; The reference communication device and the communication device under test are connected via at least one communication line; the method includes: Obtain a test strategy for testing the data reception performance of the communication device under test; The control reference communication device sends message data to the communication device under test through at least one target line that matches the test strategy; Obtain the message reception status of the communication device under test receiving the sent message data through each of the target lines; Based on different message reception conditions, determine whether the data reception performance of the communication device under test is normal; The control of the reference communication device to send message data to the communication device under test through at least one target line that matches the test strategy includes: in diversity mode, controlling each of the target lines to send the same message data; in multiplexing mode, controlling at least two of the target lines to send different message data. Accordingly, based on different message reception conditions, it is determined whether the data reception performance of the communication device under test is normal, including: in diversity mode, if the message reception conditions of all message data indicate successful reception, then the performance is determined to be normal; in multiplexing mode, if the first message reception condition of any target line indicates abnormal reception, then the line performance is determined to be abnormal; if the second message reception condition indicates normal reception, then the existence of line crosstalk is determined.
2. The method according to claim 1, characterized in that, The control benchmark communication device sends message data to the communication device under test through at least one target line matched with the test strategy, including: According to the testing strategy, a target line is selected from the at least one line; and, Based on the test strategy, determine the message data to be sent through each of the target lines; The reference communication device is controlled to send corresponding message data to the communication device under test through each of the target lines.
3. The method according to claim 1, characterized in that, When the test strategy involves sending the same message data to the communication device under test via at least one target line, determining whether the data reception performance of the communication device under test is normal based on different message reception conditions includes: If all message reception statuses indicate successful message reception, the data reception performance of the communication device under test is determined to be normal. If the message reception status of any message data indicates an abnormality in message data reception, it is determined that the data reception performance of the communication device under test is abnormal on the target line where message data reception is abnormal.
4. The method according to claim 1, characterized in that, When the test strategy involves sending different message data to the communication device under test (DUT) via at least two target lines, the step of obtaining the message reception status of the DUT receiving the corresponding message data via each target line includes: For each target line, the first message reception status of the communication device under test receiving the corresponding target message data through the target line, and the second message reception status of receiving other message data are obtained. The target message data refers to the message data sent by the reference communication device through the target line; the other message data refers to different message data sent by the reference communication device through other target lines.
5. The method according to claim 4, characterized in that, The step of determining whether the data reception performance of the communication device under test is normal based on different message reception conditions includes: For each target line, if the first message reception status indicates that the message data reception is normal, and the second message reception status indicates that the message data reception is abnormal, it is determined that the data reception performance of the communication device under test is normal. If the first message reception status indicates that the message data reception is abnormal, it is determined that the data reception performance of the communication device under test is abnormal on the target line where the message data reception is abnormal. If the second message reception status indicates that the message data reception is normal, it is determined that there is line crosstalk between the target line and other target lines where the message data reception is normal.
6. The method according to claim 1, characterized in that, The reference communication device and the communication device under test communicate with each other through an attenuator; the attenuator on different lines has a different preset attenuation value; the attenuator is used to simulate the line loss of the message data transmitted between the reference communication device and the communication device under test.
7. A device for testing equipment performance, characterized in that, It is applied to a host computer, which is connected to a reference communication device and a communication device under test respectively; The reference communication device and the communication device under test are connected via at least one communication line; the device includes: The first acquisition module is used to acquire the test strategy for data reception performance testing of the communication device under test; The control module is used to control the reference communication device to send message data to the communication device under test through at least one target line that matches the test strategy; The second acquisition module is used to acquire the message reception status of the communication device under test receiving the sent message data through each of the target lines; The detection module is used to determine whether the data reception performance of the communication device under test is normal based on different message reception conditions. The control module is also used to control each of the target lines to send the same message data in diversity mode; and to control at least two of the target lines to send different message data in multiplexing mode. Correspondingly, the detection module is also used to determine that the performance is normal if the message reception status of all message data indicates successful reception in diversity mode; and to determine that the performance of the line is abnormal if the first message reception status of any target line indicates abnormal reception in multiplexing mode, and if the second message reception status indicates normal reception in multiplexing mode, then the existence of line crosstalk is determined.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Wireless isolation type power line carrier communication performance test method and system
CN110492909A
Detection method and device based on PCIE protocol, equipment and storage medium
CN117499271A