Power line carrier device testing method and apparatus, computer device, and storage medium

CN122372023BActive Publication Date: 2026-09-25ELECTRIC POWER RES INST CHINA SOUTHERN POWER GRID CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202610823556.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-06-09
Publication Date
2026-09-25
Estimated Expiration
2046-06-09

AI Technical Summary

Benefits of technology

[0051]上述电力线载波设备测试方法、装置、计算机设备和存储介质,测试设备通过对待测试设备发送的第一报文进行格式转换得到第二报文,并将第二报文发送至待测试设备;并且通过获取待测试设备向测试设备发送的第一报文对应的第一信息,以及待测试设备发送的第二报文,不仅能够验证设备传输上下行OFDMA信号在实际网络中的协同工作能力,还能够在单一测试流程中完成待测试设备的发送能力与接收能力的验证,避免了传统上下行分离测试的重复环境配置与初始化操作,缩短了测试时长。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122372023B_ABST
    Figure CN122372023B_ABST
Patent Text Reader

Abstract

The application relates to a power line carrier device testing method and device, computer equipment and a storage medium, and relates to the technical field of device testing. A testing device obtains a second message by performing format conversion on a first message sent by a to-be-tested device, and sends the second message to the to-be-tested device. The testing device obtains first information corresponding to the first message sent by the to-be-tested device to the testing device and a second message sent by the to-be-tested device. The first information and the second message not only can verify the cooperative working capability of device transmission uplink and downlink OFDMA signals in an actual network, but also can complete verification of the sending capability and the receiving capability of the to-be-tested device in a single testing process, thereby avoiding repeated environment configuration and initialization operation in traditional uplink and downlink separation testing, and shortening the testing time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of equipment testing technology, and in particular to a power line carrier equipment testing method, apparatus, computer equipment, and storage medium. Background Technology

[0002] To meet the concurrent communication needs of multiple terminals in smart grids, power line communication (PLC) devices widely employ Orthogonal Frequency Division Multiple Access (OFDMA) technology to achieve synchronous data transmission across multiple sites. During equipment development and grid access testing, standardized testing of the PLC device's OFDMA signal transmission and reception capabilities is required to verify its communication stability and correctness in real-world multi-user scenarios.

[0003] The OFDMA signal transmission and reception capability test for PLC equipment includes downlink OFDMA testing and uplink OFDMA testing. Downlink OFDMA testing verifies the master device's ability to simultaneously transmit OFDMA signals to multiple slave devices, testing the master device's downlink transmission function. Uplink OFDMA testing verifies the ability of multiple slave devices to simultaneously transmit OFDMA signals to the master device, testing the master device's uplink reception function.

[0004] In traditional technologies, downlink OFDMA testing and uplink OFDMA testing are usually conducted as separate projects, which cannot verify the device's ability to work together in a real network to transmit uplink and downlink OFDMA signals. Summary of the Invention

[0005] Therefore, it is necessary to provide a power line carrier device testing method, apparatus, computer equipment, and storage medium to address the above-mentioned technical problems, which can verify the device's ability to transmit uplink and downlink OFDMA signals in a real network.

[0006] In a first aspect, this application provides a method for testing power line carrier equipment, including:

[0007] Obtain first information corresponding to a first message sent by the device under test to the test device, and a second message sent by the device under test; wherein, the second message is a second message received by the device under test from the test device after format conversion of the first message, and the first information includes the first message and / or the first verification result of the first message; the device under test is a power line carrier device;

[0008] Based on the first information, determine the transmission capability of the device under test; and

[0009] The second message is verified to obtain the receiving capability of the device under test.

[0010] Wherein, the first message is an uplink message and the second message is a downlink message, or the first message is a downlink message and the second message is an uplink message; the first verification result of the first message is obtained by the test device performing data verification on the first message; the sending capability is the ability to send messages of the type to which the first message belongs, and the receiving capability is the ability to receive messages of the type to which the second message belongs.

[0011] In one embodiment, the first information includes the first message;

[0012] Determining the transmission capability of the device under test based on the first information includes:

[0013] The first message is verified to obtain the sending capability of the device under test.

[0014] In one embodiment, the first message is an uplink message and the second message is a downlink message;

[0015] The step of obtaining the first information corresponding to the first message sent by the device under test to the test device, and the second message sent by the device under test, includes:

[0016] Receive the first information sent by the test equipment; and,

[0017] Receive the second message sent by the device under test;

[0018] Wherein, the first information is the information corresponding to the first message sent by the device under test to the test device in response to the synchronization trigger signal; the synchronization trigger signal is sent by the test device to the device under test and the auxiliary device, and the synchronization trigger signal is used to trigger the device under test and the auxiliary device to send the first message to the test device.

[0019] In one embodiment, the first message is a downlink message and the second message is an uplink message;

[0020] The step of obtaining the first information corresponding to the first message sent by the device under test to the test device, and the second message sent by the device under test, includes:

[0021] Receive first information sent by at least one test device; and,

[0022] Receive at least one second message sent by the device under test;

[0023] Wherein, the different first information refers to the information corresponding to the first message sent by the device under test to different test devices in response to the message sending instruction; each second message is a second message obtained by converting the format of the first message sent by a test device received by the device under test; the message sending instruction is used to trigger the device under test to send the first message to the at least one test device.

[0024] In one embodiment, the number of test devices is multiple, and the first information includes the first verification result of the first message;

[0025] The step of determining the transmitting capability of the device under test based on the first information and performing data verification on the second message to obtain the receiving capability of the device under test includes:

[0026] Determine the average of the first results of the multiple first verification results received, and determine the transmission capability of the device under test based on the average of the first results;

[0027] Data verification is performed on the different received second messages to obtain multiple second verification results;

[0028] The average value of the second result of the plurality of second verification results is determined, and the receiving capability of the device under test is determined based on the average value of the second result.

[0029] In one embodiment, the step of performing data verification on the second message to obtain the receiving capability of the device under test includes:

[0030] According to the preset message format of the second message, perform data consistency verification on the second message to obtain the target number of consistent data in the second message;

[0031] The receiving capability of the device under test is obtained based on the target quantity and the total number of message data in the second message.

[0032] Secondly, this application also provides a power line carrier equipment testing apparatus, comprising:

[0033] The acquisition module is used to acquire first information corresponding to a first message sent by the device under test to the test device, and a second message sent by the device under test; wherein, the second message is a second message received by the device under test from the test device after format conversion of the first message, and the first information includes the first message and / or the first verification result of the first message; the device under test is a power line carrier device;

[0034] The verification module is used to determine the transmitting capability of the device under test based on the first information; and to perform data verification on the second message to obtain the receiving capability of the device under test.

[0035] Wherein, the first message is an uplink message and the second message is a downlink message, or the first message is a downlink message and the second message is an uplink message; the first verification result of the first message is obtained by the test device performing data verification on the first message; the sending capability is the ability to send messages of the type to which the first message belongs, and the receiving capability is the ability to receive messages of the type to which the second message belongs.

[0036] 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:

[0037] Obtain first information corresponding to a first message sent by the device under test to the test device, and a second message sent by the device under test; wherein, the second message is a second message received by the device under test from the test device after format conversion of the first message, and the first information includes the first message and / or the first verification result of the first message; the device under test is a power line carrier device;

[0038] Based on the first information, determine the transmission capability of the device under test; and

[0039] The second message is verified to obtain the receiving capability of the device under test.

[0040] Wherein, the first message is an uplink message and the second message is a downlink message, or the first message is a downlink message and the second message is an uplink message; the first verification result of the first message is obtained by the test device performing data verification on the first message; the sending capability is the ability to send messages of the type to which the first message belongs, and the receiving capability is the ability to receive messages of the type to which the second message belongs.

[0041] 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:

[0042] Obtain first information corresponding to a first message sent by the device under test to the test device, and a second message sent by the device under test; wherein, the second message is a second message received by the device under test from the test device after format conversion of the first message, and the first information includes the first message and / or the first verification result of the first message; the device under test is a power line carrier device;

[0043] Based on the first information, determine the transmission capability of the device under test; and

[0044] The second message is verified to obtain the receiving capability of the device under test.

[0045] Wherein, the first message is an uplink message and the second message is a downlink message, or the first message is a downlink message and the second message is an uplink message; the first verification result of the first message is obtained by the test device performing data verification on the first message; the sending capability is the ability to send messages of the type to which the first message belongs, and the receiving capability is the ability to receive messages of the type to which the second message belongs.

[0046] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:

[0047] Obtain first information corresponding to a first message sent by the device under test to the test device, and a second message sent by the device under test; wherein, the second message is a second message received by the device under test from the test device after format conversion of the first message, and the first information includes the first message and / or the first verification result of the first message; the device under test is a power line carrier device;

[0048] Based on the first information, determine the transmission capability of the device under test; and

[0049] The second message is verified to obtain the receiving capability of the device under test.

[0050] Wherein, the first message is an uplink message and the second message is a downlink message, or the first message is a downlink message and the second message is an uplink message; the first verification result of the first message is obtained by the test device performing data verification on the first message; the sending capability is the ability to send messages of the type to which the first message belongs, and the receiving capability is the ability to receive messages of the type to which the second message belongs.

[0051] The aforementioned power line carrier equipment testing method, apparatus, computer equipment, and storage medium allow the testing equipment to convert the format of a first message sent by the device under test to obtain a second message, and then send the second message to the device under test. Furthermore, by acquiring the first information corresponding to the first message sent by the device under test to the testing equipment, as well as the second message sent by the device under test, it is possible not only to verify the collaborative working capability of the device in transmitting uplink and downlink OFDMA signals in a real network, but also to complete the verification of the sending and receiving capabilities of the device under test in a single test process. This avoids the repetitive environment configuration and initialization operations of traditional uplink and downlink separation tests, and shortens the test time. Attached Figure Description

[0052] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0053] Figure 1 This is a flowchart illustrating a power line carrier device testing method in one embodiment;

[0054] Figure 2 This is a flowchart illustrating the process of determining the transmitting and receiving capabilities of a device under test in one embodiment.

[0055] Figure 3 This is a structural block diagram of a power line carrier device testing apparatus in one embodiment;

[0056] Figure 4 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0057] 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.

[0058] The device testing method provided in this application can be applied to application scenarios where the collaborative working capability of PLC devices transmitting uplink and downlink OFDMA signals in actual networks is tested.

[0059] This method can be executed by a host computer, which can be a server. The server can be a standalone physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server providing cloud computing services.

[0060] In one exemplary embodiment, such as Figure 1 The diagram illustrates a method for testing power line carrier equipment. Taking the application of this method to a host computer as an example, the method includes the following steps:

[0061] S101, obtain the first information corresponding to the first message sent by the device under test to the test device, and the second message sent by the device under test.

[0062] The device under test is a power line carrier device, specifically a power line carrier OFDMA communication module, which has OFDMA uplink and downlink transmission and reception capabilities. The test device refers to a transparent physical device with protocol parsing, format conversion, and physical layer signal regeneration capabilities, used to simulate a PLC station and perform message loopback.

[0063] The first message refers to the uplink OFDMA message or downlink OFDMA message sent by the device under test to the test device. The second message is the second message received by the device under test from the test device, obtained by format conversion of the first message. The first message is an uplink message and the second message is a downlink message, or the first message is a downlink message and the second message is an uplink message. The first information corresponding to the first message includes the first message and / or the first verification result of the first message, which is obtained by the test device through data verification of the first message.

[0064] For example, before testing the device under test, the test environment needs to be initialized. For instance, the device under test is placed in a designated location on the test bench. After all other devices are powered off, the device under test is powered on first. Dual-band parameters of 700K-3.7MHz and 2.5M-5.7MHz are configured. The device under test is powered on and initializes the test environment, setting the programmable attenuator to its default value (e.g., 10dB attenuation). The device under test sends a preset number (e.g., 20) test command frames in both band 1 (2.5M-5.7MHz) and band 2 (700K-3.7MHz). (The Tone Map Index (TMI) of the test command frame can be set to 4.) By receiving the dual-band test command frames, the device under test automatically negotiates and sets the target operating frequency band for preamble and frame control.

[0065] Then, the test equipment continuously sends a preset number (e.g., 5) of beacon frames at preset intervals (e.g., 1 second) to the device under test to complete clock synchronization with the device under test.

[0066] After synchronization is complete, the device under test sends a first message to the testing device according to the message sending instruction. After receiving the first message, the testing device generates first information containing the first message or the first verification result and uploads it to the host computer. At the same time, the testing device performs protocol conversion and physical layer signal regeneration on the first message and sends the converted second message to the device under test. After receiving and parsing the second message, the testing device forwards it to the host computer through the serial port. The host computer completes the synchronous acquisition of the first information and the second message.

[0067] The message sending instruction can be the first message sent by the test device or the host computer to the device under test, or it can be the message parameters of the first message sent by the test device or the host computer to the device under test, used to instruct the device under test to generate the first message.

[0068] S102, based on the first information, determine the transmitting capability of the device under test; and perform data verification on the second message to obtain the receiving capability of the device under test.

[0069] Among them, the sending capability is the ability to send messages of the type to which the first message belongs, that is, the accuracy, stability and integrity of the device under test sending OFDMA messages of the corresponding type; the receiving capability is the ability to receive messages of the type to which the second message belongs, that is, the accuracy and processing correctness of the device under test receiving and parsing OFDMA messages of the corresponding type.

[0070] Data verification refers to the consistency comparison and verification of parameters such as message data segments, resource unit (RU) allocation, TMI mode, and frame format.

[0071] For example, after receiving the first information, if the first information is the first message, it directly performs data verification; if the first information is the first verification result, it directly calculates the ratio of the number of successful first message transmissions to the total number of transmissions based on the verification result to obtain the transmission capability index. If the first information is both the first message and the first verification result, the host computer can either perform data verification on the first message to obtain a verification result, average it with the first verification result to obtain the final verification result, and determine the transmission capability index of the device under test based on the final verification result; or the host computer can simply store the first message and directly determine the transmission capability index of the device under test based on the first verification result.

[0072] For example, if the first information includes the first verification result, the test device can compare the first message sent by the device under test with the message sending instruction to determine whether the first message sent by the device under test is consistent with the message sending instruction, and then determine the first verification result based on the number of consistent first messages and the total number of first messages.

[0073] If the host computer needs to verify the first message sent by the device under test to the test device, it can also compare the received first message with the message sending command to determine whether the received first message is consistent with the message sending command, and then determine the sending capability of the device under test based on the number of consistent first messages and the total number of first messages.

[0074] For example, if the ratio of the number of consistent first messages to the total number of first messages exceeds a first preset threshold, then the sending capacity of the device under test is determined to meet the standard. The first preset threshold can be set according to actual business needs, for example, it can be set to 90%.

[0075] For example, the host computer can also perform data verification on the second message, comparing the content of the second message with that of the original message. For instance, if the second message matches the original message, the successful reception count is incremented by one, and then the ratio of the number of successful receptions of the second message to the total number of receptions is calculated to obtain the reception capability index. The original message corresponding to the second message can be obtained from the message sending command.

[0076] For example, the device under test is a PLC-OFDMA master node module, and the test equipment consists of two transparent physical devices; the first message is a downlink OFDMA message, and the message sending instructions are 2 sites, RU resource unit allocation, TMI=4, 2.5M-5.7MHz frequency band, and the total number of transmissions is 100.

[0077] After receiving the message sending instruction, the device under test generates the first message, namely the downlink OFDMA message, and sends the downlink OFDMA message to the test device. The test device verifies the downlink OFDMA message, and the first verification result is a complete match of 98 times. The test device then sends the first verification result to the host computer. The test device converts the downlink OFDMA message into the second message, namely the uplink OFDMA message, and sends the uplink OFDMA message to the device under test. The device under test then sends the received uplink OFDMA message to the host computer.

[0078] The host computer determines that the transmitting capability of the device under test meets the standard based on the first verification result; the host computer verifies the second message, and the verification result shows that the message is correctly parsed 97 times, thus determining that the receiving capability of the device under test meets the standard.

[0079] In the above embodiments, the test device converts the format of the first message sent by the device under test to obtain the second message, and sends the second message to the device under test. Furthermore, by obtaining the first information corresponding to the first message sent by the device under test to the test device, as well as the second message sent by the device under test, it can not only verify the device's ability to transmit uplink and downlink OFDMA signals in a real network, but also complete the verification of the sending and receiving capabilities of the device under test in a single test process. This avoids the repetitive environment configuration and initialization operations of traditional uplink and downlink separation tests, and shortens the test time.

[0080] In some optional implementations, the first information corresponding to the first message can be the first message itself. That is, after the device to be tested sends the first message to the testing device, the testing device sends the received first message to the host computer, and the host computer verifies the first message.

[0081] For example, the host computer performs data verification on the first message to obtain the sending capability of the device under test.

[0082] For example, the host computer can compare the received first message with the configuration parameters of the first message to determine whether the received first message matches the configuration parameters, and then determine the sending capability of the device under test based on the number of matching first messages and the total number of first messages.

[0083] For example, after the host computer obtains the first message uploaded by the test device, it starts the verification program. First, it verifies whether the frame format of the first message conforms to the PLC-OFDMA standard, distinguishing between the 700K-3.7MHz A format and the 2.5M-5.7MHz B format preamble and frame control; then it verifies whether the RU resource unit allocation is consistent with the preset test parameters, confirming that the subcarrier division is correct; next, it verifies whether the site location information matches the test site number, and whether the TMI mode is the preset TMI=4 or TMI=9; finally, it verifies the content of each byte of the message data segment to ensure that it is completely consistent with the original test data.

[0084] After verification, the number of first messages that passed verification is counted. The transmission accuracy rate is obtained by dividing the number of passed messages by the total number of first messages sent. The transmission accuracy rate is then used to determine the transmission capability of the device under test. For example, if the transmission accuracy rate exceeds 90%, the transmission capability of the device under test is determined to meet the standard.

[0085] In the above embodiments, the first information is limited to directly containing the first message. The host computer can directly perform full-dimensional data verification on the original message without relying on the preprocessing results of the test equipment. It can directly obtain the original state of the message sent by the device under test, avoid data distortion in the intermediate links, and improve the accuracy and reliability of the sending capability test.

[0086] In some alternative implementations, the first message can be an uplink message, and the second message can be a downlink message.

[0087] Based on this, it can receive the first message sent by the test device; and receive the second message sent by the device under test.

[0088] The first information refers to the information corresponding to the first message sent by the device under test (DUT) to the test device in response to the synchronization trigger signal. The synchronization trigger signal is sent by the test device to both the DUT and the auxiliary device, and is used to trigger the DUT and the auxiliary device to send the first message to the test device. The synchronization trigger signal can be a trigger frame sent by the test device, which is a dedicated synchronization trigger signal for PLC-OFDMA, used to precisely control the transmission timing of multiple stations. The auxiliary device can be a transparent physical device used to simulate a PLC slave station and respond synchronously to the trigger signal with the DUT.

[0089] For example, after the test environment is initialized, the host computer controls the test equipment to send a synchronization trigger signal (Trigger frame) to the device under test and the auxiliary equipment. This signal has built-in parameters such as uplink transmission timing, RU allocation, TMI mode and frequency band configuration to ensure millisecond-level synchronization of multiple devices.

[0090] After receiving the Trigger frame, the device under test and the auxiliary device simultaneously send an uplink first message to the test device in strict accordance with the triggering sequence. The test device receives the first messages sent by the device under test and the auxiliary device in parallel, temporarily stores the messages, and then uploads the first information containing the first message sent by the device under test and / or the first verification result to the host computer through the network port. The host computer receives the first information containing the first message sent by the device under test and / or the first verification result.

[0091] After receiving the first message, the test equipment converts the uplink first message in UL-OFDMA format into a downlink second message in DL-OFDMA format, completing physical layer signal regeneration and frame format reconstruction. After the conversion is completed, the test equipment sends the second message to the power line channel. After the test equipment receives the second message through the PLC interface, completes frame parsing, data extraction and protocol verification, it forwards the complete second message to the host computer through the serial port. The host computer receives the second message.

[0092] Then, the host computer extracts the first verification result from the first information or directly verifies the first message to obtain the uplink transmission capability of the device under test; and performs data consistency verification on the second message to obtain the downlink reception capability of the device under test, thus completing the integrated test.

[0093] In the above embodiments, by synchronously triggering the device under test and auxiliary devices to send uplink messages to the test device concurrently, the uplink transmission scenario of PLC multi-site is accurately simulated, and the first information and the second message are received at the same time. This realizes the verification of uplink sending capability and downlink receiving capability in a single test process, and solves the problems of no synchronization mechanism and separation of uplink and downlink testing in the existing technology for multi-site testing.

[0094] In some alternative implementations, the first message can be a downlink message, and the second message can be an uplink message.

[0095] Based on this, it can receive first information sent by at least one test device; and receive at least one second message sent by the device under test.

[0096] Here, the different first information refers to the information corresponding to the first message sent by the device under test to different test devices in response to the message sending instruction; each second message is a second message obtained by converting the format of the first message sent by a test device to the device under test; the message sending instruction is used to trigger the device under test to send the first message to at least one test device.

[0097] The message sending command can be a DL-OFDMA configuration command issued by the test device or the host computer, which can include the number of sites, RU information, TMI mode and frequency band parameters, etc.

[0098] For example, the host computer can first configure the test parameters and control the test equipment to send message sending instructions to the device under test. The instructions specify the configuration of the downlink OFDMA site number, RU resource allocation, TMI mode and operating frequency band.

[0099] After receiving the message sending instruction, the device under test parses the parameters and completes its own configuration. It then synchronously sends the downlink first message to at least two other devices according to the message sending instruction. Each device independently receives the corresponding first message, temporarily stores or performs preliminary verification on the message, and uploads the first information containing the first message or the first verification result to the host computer. If there are multiple devices under test, the host computer adopts a multi-threaded receiving mode and stores the first information according to the device number to ensure that the data from multiple devices is not confused or lost. The message sending instruction supports dual-band adaptive switching and automatically matches the A-format frame structure and the B-format frame structure.

[0100] After each test device receives the downlink first message, it converts the DL-OFDMA format to the UL-OFDMA format, generates the second message, and regenerates the physical layer signal to send to the PLC channel. The test device receives the second messages sent by all test devices in parallel, completes frame parsing, data verification, and protocol processing, and then forwards at least one second message to the host computer via the serial port. The host computer associates the first information of each test device with the corresponding second message to form a one-to-one test data group, ensuring that the downlink transmission and uplink reception data are traceable.

[0101] The host computer determines the downlink transmission capability of the device under test based on the first information, and verifies the uplink reception capability of the device under test by checking the second message, thus completing the multi-site downlink concurrent test.

[0102] In the above embodiments, the device under test is controlled to send downlink messages to multiple test devices through message sending instructions, which flexibly adapts to multi-site downlink concurrent test scenarios. At the same time, data from each device is collected independently, which can comprehensively verify the multi-user downlink sending capability of the device under test and improve the comprehensiveness and reliability of the test results.

[0103] In some optional implementations, when there are multiple test devices and the first information includes the first verification result of the first message, the first verification results sent by each test device can be integrated to determine the downlink transmission capability of the device under test; and the verification results corresponding to the second data sent by each test device can be integrated to determine the uplink reception capability of the device under test.

[0104] For example, see Figure 2 , Figure 2 A flowchart illustrating the process of determining the transmitting and receiving capabilities of a device under test is provided, specifically including the following steps:

[0105] S201, determine the average of the first results of the multiple first verification results received, and determine the transmission capability of the device under test based on the average of the first results.

[0106] The device under test synchronously sends the first message to all test devices according to the message sending instruction; each test device independently verifies the data of the received first message, generates the first verification result, and uploads the first verification result as the first information to the host computer; the host computer receives the first verification results of all test devices, organizes them into a data list according to the device number, removes outliers and retains valid data to ensure the accuracy of the mean calculation.

[0107] The host computer sums all valid first verification results, divides them by the number of test devices to obtain the average of the first results, and determines the transmission capability of the device under test based on the average of the first results.

[0108] S202, perform data verification on the different received second messages to obtain multiple second verification results.

[0109] Multiple test devices convert the first message into a second message and send it to the device under test. The device under test then forwards the message to the host computer. The host computer independently performs data consistency verification on each second message, generates the corresponding second verification result, and organizes it into a data list according to the device number.

[0110] S203, determine the average of the second results of multiple second verification results, and determine the receiving capability of the device under test based on the average of the second results.

[0111] The host computer sums all valid second verification results, divides by the number of test devices to obtain the average of the second results, and determines the receiving capability of the device under test based on the average of the second results.

[0112] In the above embodiments, the average value of the verification results of multiple devices is calculated to determine the test capability, which eliminates the random errors of single-device testing and makes the test results more accurate and reliable.

[0113] In some optional implementations, data verification is performed on the second message to obtain the receiving capability of the device under test. The data consistency of the second message can be verified according to the preset message format of the second message to obtain the target number of consistent data in the second message; and the receiving capability of the device under test can be obtained based on the target number and the total number of message data in the second message.

[0114] The preset message format can be the PLC-OFDMA standard frame format, including a preamble, frame control, data segment, and check segment, in both A / B dual-band format. The target number is the number of bytes in the second message that are completely identical to the original data; the total number is the fixed total number of bytes in the second message data segment.

[0115] For example, the host computer extracts the complete data segment of the second message and starts bit-level verification according to the preset message format. For example, the first step is to check the frame header and frame tail identifiers to confirm the integrity of the message; the second step is to check the frame control field and match the A / B format corresponding to the frequency band; the third step is to compare the data segment content byte by byte, mark the consistent data that completely matches the original test data, and count the target number of consistent data.

[0116] Then, the host computer reads the total number of second message data segments (test preset fixed byte length), determines the data consistency ratio between the target number and the total number, and determines the receiving capability of the device under test based on the consistency ratio. For example, if the consistency ratio exceeds 90%, the receiving capability of the device under test is determined to meet the standard.

[0117] The process of the host computer or testing equipment verifying the first message is similar to the process of the host computer verifying the second data, and will not be described in detail here.

[0118] In the above embodiments, the second message is checked for data consistency according to the preset message format, and the receiving capability is determined by the consistency data ratio. This can accurately detect the completeness of the device under test in parsing OFDMA messages, solve the problem that open-loop testing cannot verify the correctness of data, and improve the accuracy of receiving capability testing.

[0119] In some optional implementations, taking the device under test (DUT) as the module under test (DUT) and the test device as a transparent physical device as an example, this paper introduces the process of testing the DUT's ability to send downlink OFDMA messages and receive uplink OFDMA messages, including the following steps:

[0120] Step ae: Test environment initialization.

[0121] Place the DUT in position 1 of performance or protocol compartment 2. After all devices are powered off, power on the transparent physical device first and set the receiving frequency band. Power on the DUT, initialize the platform environment, and set the default attenuation value of the programmable attenuator to 10dB.

[0122] Step f: Dual-band adaptive frequency band configuration.

[0123] The transparent physical device sends 20 test command frames (TMI=4) in both band 1 (2.5M-5.7MHz) and band 2 (700K-3.7MHz); the DUT automatically negotiates and sets the target operating frequency band for preamble and frame control by receiving dual-band redundant signaling.

[0124] Step gh: Beacon frame clock synchronization and DL-OFDMA test.

[0125] The transparent physical device continuously sends 5 beacon frames (with a 1-second interval) to establish initial clock synchronization; then the transparent physical device sends 100 messages according to the DL-OFDMA frame parameters (number of stations, station location, RU information and TMI mode).

[0126] Step i: DUT DL-OFDMA transmission and closed-loop verification.

[0127] The DUT sends the received transparent physical device messages to two transparent physical devices via DL-OFDMA mode. After receiving the messages, the transparent physical devices compare the content. If the content is correct, the DL-OFDMA transmission success count is incremented by 1.

[0128] Furthermore, based on the ratio of the number of successful receptions to the total number of DL-OFDMA messages sent by the DUT, the DL-OFDMA message transmission capacity of the DUT calculated by each transparent physical device is determined; and based on the average of the DL-OFDMA message transmission capacity of the DUT calculated by each transparent physical device, the DL-OFDMA message transmission capacity of the DUT is determined.

[0129] Step j: UL-OFDMA receiver closed-loop verification.

[0130] Two transparent physical devices receive the message, and the transparent physical devices complete the format conversion from DL-OFDMA to UL-OFDMA and physical layer signal regeneration, and send the UL-OFDMA message to the PLC channel.

[0131] The DUT receives UL-OFDMA messages and forwards them to the host computer software via serial port for content comparison. If the content is correct, the success count is incremented by 1.

[0132] Furthermore, the UL-OFDMA receiving capability of the DUT is determined by the ratio of the number of successful receptions to the total number of UL-OFDMA messages sent by the DUT.

[0133] In some optional implementations, taking the device under test (DUT) as the test device and the transparent physical device (PTD) as an example, the process of testing the DUT's ability to send uplink OFDMA messages and receive downlink OFDMA messages is introduced, including the following steps:

[0134] Step ag: Establish the test environment and synchronize with the clock. The implementation method is similar to that in the previous embodiment, and will not be repeated here.

[0135] Step h: UL-OFDMA parameter pre-configuration.

[0136] The transparent physical device sends UL-OFDMA frame configuration information (number of sites, site location, RU information, TMI mode, and message data information) to the DUT; the DUT sets the configuration parameters and message data of the UL-OFDMA message according to the received frame configuration information.

[0137] Step ij: The Trigger frame triggers concurrent transmission from multiple sites.

[0138] The transparent physical device sends trigger frames to the DUT and other transparent physical device sites. The trigger frames serve as synchronization trigger signals and can precisely control the transmission timing of multiple sites.

[0139] After receiving the Trigger frame, the DUT and the transparent physical device site simultaneously send UL-OFDMA message data to the transparent physical device via UL-OFDMA mode.

[0140] The transparent physical device compares the message content; if the comparison is correct, the UL-OFDMA transmission success count is incremented by 1.

[0141] Furthermore, based on the ratio of the number of successful receptions to the total number of UL-OFDMA messages sent by the DUT, the UL-OFDMA reception capability of the DUT calculated by each transparent physical device is determined; and based on the average of the UL-OFDMA reception capabilities of the DUT calculated by each transparent physical device, the UL-OFDMA reception capability of the DUT is determined.

[0142] Step k: DL-OFDMA receiver closed-loop verification.

[0143] The transparent physical device receives the UL-OFDMA message, generates a DL-OFDMA message according to the DL-OFDMA message format, and sends it to the PLC channel.

[0144] The DUT receives DL-OFDMA messages through the PLC interface and forwards them to the host computer via serial port for content comparison. If the content is correct, the success count is incremented by 1.

[0145] Furthermore, based on the ratio of the number of successful receptions to the total number of DL-OFDMA messages sent by the DUT, the DL-OFDMA message transmission capacity of the DUT calculated by each transparent physical device is determined; and based on the average of the DL-OFDMA message transmission capacity of the DUT calculated by each transparent physical device, the DL-OFDMA message transmission capacity of the DUT is determined.

[0146] 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.

[0147] Based on the same inventive concept, this application also provides a power line carrier device testing apparatus for implementing the power line carrier device testing method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations in one or more power line carrier device testing apparatus embodiments provided below can be found in the limitations of the power line carrier device testing method described above, and will not be repeated here.

[0148] In one exemplary embodiment, such as Figure 3 As shown, a structural block diagram of a power line carrier equipment testing device is provided, comprising:

[0149] The acquisition module 10 is used to acquire first information corresponding to the first message sent by the device under test to the test device, and a second message sent by the device under test; wherein, the second message is a second message received by the device under test from the test device after format conversion of the first message, and the first information includes the first message and / or the first verification result of the first message;

[0150] The verification module 20 is used to determine the transmitting capability of the device under test based on the first information; and to perform data verification on the second message to obtain the receiving capability of the device under test.

[0151] Wherein, the first message is an uplink message and the second message is a downlink message, or the first message is a downlink message and the second message is an uplink message; the first verification result of the first message is obtained by the test device performing data verification on the first message; the sending capability is the ability to send messages of the type to which the first message belongs, and the receiving capability is the ability to receive messages of the type to which the second message belongs.

[0152] In one embodiment, the first information includes a first message; the verification module 20 is specifically used for:

[0153] The first message is verified to determine the sending capability of the device under test.

[0154] In one embodiment, the first message is an uplink message and the second message is a downlink message; the acquisition module 10 is specifically used for:

[0155] The device receives first information sent by the test equipment and receives a second message sent by the device under test. The first information is the information corresponding to the first message sent by the device under test to the test equipment in response to the synchronization trigger signal. The synchronization trigger signal is sent by the test equipment to the device under test and the auxiliary equipment, and is used to trigger the device under test and the auxiliary equipment to send the first message to the test equipment.

[0156] In one embodiment, the first message is a downlink message and the second message is an uplink message; the acquisition module 10 is specifically used for:

[0157] The device receives first information sent by at least one test device; and receives at least one second message sent by a device under test; wherein different first information are information corresponding to first messages sent by the device under test to different test devices in response to a message sending instruction; each second message is a second message received by the device under test from a test device after format conversion of the first message; the message sending instruction is used to trigger the device under test to send the first message to at least one test device.

[0158] In one embodiment, the number of test devices is multiple, and the first information includes the first verification result of the first message; the verification module 20 is specifically used for:

[0159] The average value of the first result of the multiple first verification results is determined, and the transmission capability of the device under test is determined based on the average value of the first result; data verification is performed on the different second messages received to obtain multiple second verification results; the average value of the second result of the multiple second verification results is determined, and the reception capability of the device under test is determined based on the average value of the second result.

[0160] In one embodiment, the verification module 20 is specifically used for:

[0161] Based on the preset message format of the second message, perform data consistency verification on the second message to obtain the target number of consistent data in the second message; based on the target number and the total number of message data in the second message, obtain the receiving capability of the device under test.

[0162] Each module in the aforementioned power line carrier equipment testing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, 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.

[0163] In one exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 4As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, 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 operation of the operating system and computer programs stored in the non-volatile storage media. The database stores message sending instructions and received message data. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communication with external terminals via a network connection. When executed by the processor, the computer program implements a power line carrier device testing method.

[0164] Those skilled in the art will understand that Figure 4 The 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.

[0165] In one exemplary embodiment, a computer device is 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 of the power line carrier device testing method described in any of the above embodiments.

[0166] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the power line carrier device testing method described in any of the above embodiments.

[0167] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps of the power line carrier device testing method described in any of the above embodiments.

[0168] 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.

[0169] Those skilled in the art will understand that all or part of the processes in the methods of 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, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory 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, artificial intelligence (AI) processors, etc., and are not limited to these.

[0170] 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 application.

[0171] 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 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 test method for power line carrier equipment, characterized in that, The method is applied to a host computer, and the method includes: The system acquires first information corresponding to a first message sent by a test device and a second message sent by a device under test; wherein the first message is sent by the device under test to the test device; the second message is a second message received by the device under test from the test device after format conversion of the first message; the first information includes the first message and / or the first verification result of the first message; and the device under test is a power line carrier device. Based on the first information, determine the transmission capability of the device under test; and... The second message is verified to obtain the receiving capability of the device under test. Wherein, the first message is an uplink message and the second message is a downlink message, or the first message is a downlink message and the second message is an uplink message; the first verification result of the first message is obtained by the test device performing data verification on the first message; the sending capability is the ability to send messages of the type to which the first message belongs, and the receiving capability is the ability to receive messages of the type to which the second message belongs; the first message and the second message are Orthogonal Frequency Division Multiple Access (OFDMA) messages; If the first message is an uplink message and the second message is a downlink message; the first information is the information corresponding to the first message sent by the device under test to the test device in response to the synchronization trigger signal; the synchronization trigger signal is sent by the test device to the device under test and the auxiliary device, and the synchronization trigger signal includes uplink transmission timing, resource unit allocation, subcarrier mapping index mode and frequency band configuration, and the synchronization trigger signal is used to trigger the device under test and the auxiliary device to simultaneously send the first message to the test device.

2. The method according to claim 1, characterized in that, The first information includes the first message; Determining the transmission capability of the device under test based on the first information includes: The first message is verified to obtain the sending capability of the device under test.

3. The method according to claim 1, characterized in that, The first message is a downlink message and the second message is an uplink message; The step of obtaining the first information corresponding to the first message sent by the test device and the second message sent by the device under test includes: Receive first information sent by at least one test device; and, Receive at least one second message sent by the device under test; Wherein, the different first information refers to the information corresponding to the first message sent by the device under test to different test devices in response to the message sending instruction; each second message is a second message obtained by converting the format of the first message sent by a test device received by the device under test; the message sending instruction is used to trigger the device under test to send the first message to the at least one test device.

4. The method according to claim 3, characterized in that, The number of test devices is multiple, and the first information includes the first verification result of the first message; The transmission capability of the device under test is determined based on the first information. And, performing data verification on the second message to obtain the receiving capability of the device under test, including: Determine the average of the first results of the multiple first verification results received, and determine the transmission capability of the device under test based on the average of the first results; Data verification is performed on the different received second messages to obtain multiple second verification results; The average value of the second result of the plurality of second verification results is determined, and the receiving capability of the device under test is determined based on the average value of the second result.

5. The method according to claim 1 or 2, characterized in that, The step of performing data verification on the second message to obtain the receiving capability of the device under test includes: According to the preset message format of the second message, perform data consistency verification on the second message to obtain the target number of consistent data in the second message; The receiving capability of the device under test is obtained based on the target quantity and the total number of message data in the second message.

6. The method according to claim 1, characterized in that, Data verification includes verifying whether the frame format of the message conforms to the power line carrier orthogonal frequency division multiple access standard, verifying whether the resource unit allocation is consistent with the test preset parameters, verifying whether the site location information matches the test site number, and verifying whether the subcarrier mapping index mode is the preset mode.

7. A power line carrier equipment testing device, characterized in that, The device is deployed on a host computer, and the device includes: The acquisition module is used to acquire first information corresponding to a first message sent by the test device and a second message sent by the device under test; wherein, the first message is sent by the device under test to the test device; the second message is a second message received by the device under test from the test device after format conversion of the first message; the first information includes the first message and / or the first verification result of the first message; the device under test is a power line carrier device; The verification module is used to determine the transmitting capability of the device under test based on the first information; and to perform data verification on the second message to obtain the receiving capability of the device under test. Wherein, the first message is an uplink message and the second message is a downlink message, or the first message is a downlink message and the second message is an uplink message; the first verification result of the first message is obtained by the test device performing data verification on the first message; the sending capability is the ability to send messages of the type to which the first message belongs, and the receiving capability is the ability to receive messages of the type to which the second message belongs; the first message and the second message are Orthogonal Frequency Division Multiple Access (OFDMA) messages; If the first message is an uplink message and the second message is a downlink message; the first information is the information corresponding to the first message sent by the device under test to the test device in response to the synchronization trigger signal; the synchronization trigger signal is sent by the test device to the device under test and the auxiliary device, and the synchronization trigger signal includes uplink transmission timing, resource unit allocation, subcarrier mapping index mode and frequency band configuration, and the synchronization trigger signal is used to trigger the device under test and the auxiliary device to simultaneously send the first message to the test device.

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

  • Testing powerline communication devices

    US20150244604A1