System and method for testing communication distance of wireless unvarnished transmission equipment

Through the automated communication between the central server and the test board, the automated testing of the wireless transmissive device communication distance test system is realized, which solves the problem of time-consuming and labor-intensive testing process and inaccurate results in the existing technology, improves the testing efficiency and accuracy, and reduces the On-site testing requirements.

CN119136215APending Publication Date: 2024-12-13济南有人物联网技术有限公司
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411486216.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-23
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

The communication distance test of existing wireless transmissive equipment requires cooperation from multiple testers to manually adjust the channels and parameters, which makes the test process time-consuming and labor-intensive, and the accuracy and consistency of the test results are difficult to ensure, especially in harsh outdoor environments. and efficiency.

Method used

Design a wireless transmissive device communication distance testing system, use the center server to communicate with the tester's equipment end and the test board to conduct automated communication, obtain the equipment distance and synchronization time through heartbeat packet interaction, and use the data channel protocol to process the test data. Implement the entire process automation of equipment configuration, data transmission and reception, distance measurement and result recording.

Benefits of technology

It greatly reduces the labor demand for testing and improves testing efficiency and accuracy. Testers can remotely monitor the testing process, avoiding health and efficiency problems caused by harsh environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119136215A_ABST
    Figure CN119136215A_ABST
Patent Text Reader

Abstract

The invention belongs to the field of wireless unvarnished transmission device communication distance testing, and provides a wireless unvarnished transmission device communication distance testing system and method. The test system comprises a central server, a tester device end and at least two tested ends. A test board card of the tester equipment end is used for issuing a control instruction to each tested end through the central server so as to control each tested end to complete the whole test process; analyzing the content of the test script to obtain a test case, and issuing the test case to a test board card of each tested end through the central server; the test board card of the sending end is used for packaging test data according to a test case and sending the test data to the to-be-tested device of the sending end, the to-be-tested device of the sending end is sent to the to-be-tested device of the receiving end through wireless communication, and the data is sent to the test board card of the receiving end after being transmitted through the to-be-tested device of the receiving end; and the test board card at the receiving end obtains a test result of the test case and sends the test result to the test board card at the tester equipment end through the central server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of wireless transparent transmission equipment communication distance testing, and in particular relates to a testing system and method for the communication distance of wireless transparent transmission equipment. Background Art

[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.

[0003] Currently, when testing the communication distance of wireless transparent transmission devices such as LoRa, Wi-Fi, and Bluetooth, manual testing is usually used. Testers are required to carry laptops and devices to be tested, power supplies, antenna accessories, etc., and go to different locations to configure and operate the devices.

[0004] However, the manual testing process requires the cooperation of multiple testers, and the channels and parameters are adjusted, data is sent and received, distance is measured, and data is recorded manually. This makes the testing process time-consuming and laborious, and the accuracy and consistency of the test results are difficult to guarantee due to manual recording and observation of data. At the same time, testers may be in a harsh test environment (such as high temperatures in summer) for a long time during outdoor testing, which affects their health and work efficiency. Summary of the invention

[0005] In order to solve the technical problems existing in the above-mentioned background technology, the present invention provides a testing system and method for the communication distance of a wireless transparent transmission device, which can realize the full process automation of equipment configuration, data sending and receiving, distance measurement and result recording, greatly reduce the manpower requirements for testing, and improve test efficiency and result accuracy; testers can remotely monitor the test progress at any location, reduce the demand for on-site testing, and avoid health and efficiency problems caused by harsh environments.

[0006] In order to achieve the above object, the present invention adopts the following technical solution:

[0007] A first aspect of the present invention provides a system for testing the communication distance of a wireless transparent transmission device.

[0008] A wireless transparent transmission device communication distance testing system comprises: a central server, a tester device end and at least two tested ends; the tested ends perform wireless communication through data channels in turn; the tester device end and the tested ends are both connected to a test board; the central server communicates with each test board;

[0009] The test board on the tester's device side is used to: send control instructions to each tested end through the central server to control each tested end to complete the overall test process; parse the test script content, obtain the test case and send it to the test board of each tested end through the central server;

[0010] The test board at the sending end is used to package the test data and send it to the device under test at the sending end according to the test case. The device under test at the sending end sends the test data to the device under test at the receiving end via wireless communication, and the data is sent to the test board at the receiving end after transparent transmission by the device under test at the receiving end; the test board at the receiving end is used to parse the received test data packets packet by packet according to the preset data channel protocol processing flow, obtain the test results of the test case and send them to the test board at the tester's device end through the central server.

[0011] As an implementation method, the central server includes a heartbeat packet processing module, a client management module and a control message forwarding module;

[0012] The heartbeat packet processing module is used to: process the heartbeat packet interaction with the tester's device end and the test board of the tested end;

[0013] The client management module is used to manage the TCP connection and registration process of the tester's device and the test board of the tested end;

[0014] The control message forwarding module is used to forward messages of the tester's equipment end and the test board of the tested end.

[0015] As an implementation mode, in the heartbeat packet processing module, the process of processing the heartbeat packet interaction with the tester device end and the test board of the tested end is:

[0016] If the heartbeat packet is not received for more than the set number of heartbeat packet cycles, the client is considered offline and the corresponding client is removed; otherwise, the heartbeat packet information of the online test board is received;

[0017] Receive heartbeat packet information from the online test board;

[0018] Parse the GPS and battery power information in the heartbeat packet and store them temporarily;

[0019] Calculate the distance between the test board corresponding to the current message and other test boards according to the temporarily stored message;

[0020] Reply to the heartbeat reply packet of the test board.

[0021] As an implementation mode, in the client management module, the steps of managing the TCP connection and registration process of the test board of the tester device and the tested end are as follows:

[0022] Receive the test board TCP connection request and establish a TCP connection;

[0023] Determine whether the device registration package is received within the timeout. If so, continue to determine whether the content of the connection registration package is correct. If correct, add the test board to the client management list; if the device registration package is received outside the timeout or the content of the connection registration package is incorrect, remove the client corresponding to the test board.

[0024] As an implementation mode, in the control message forwarding module, the steps of forwarding the message of the tester's device end and the test board of the tested end are as follows:

[0025] Receive the test board control message and identify the target board ID;

[0026] Based on the target board ID, determine whether the client corresponding to the test board can be found in the client management module. If so, forward the control message; otherwise, return a not found exception.

[0027] As an implementation mode, the process of the test board at the receiving end to parse the received test data packets packet by packet according to the preset data channel protocol processing flow is as follows:

[0028] Receive data packets from the data channel, mark the data packets with timestamps and put them into the cache;

[0029] Extract the checksum at the end of the data packet and compare it with the calculated checksum to see if it is correct. If so, extract the sequence number; otherwise, discard the data packet and include it in the packet loss statistics;

[0030] After extracting the sequence number, first determine whether the change in the sequence number is within the threshold range. If it is within the threshold range, proceed to the next step, otherwise discard it and include it in the packet loss statistics. If the sequence number is within the threshold range, determine whether the sequence number is correct and increase in order. If it is correct, extract the timestamp in the data and subtract it from the timestamp calibrated when the data packet was received before to calculate the data transmission delay, and record the current data packet transmission delay; if the sequence number is incorrect, determine whether the sequence number increases. If so, calculate the number of packet losses based on the sequence number and include it in the packet loss statistics; if the sequence number decreases or repeats, it is directly discarded and not counted;

[0031] Update the packet loss count and total number of packets and total number of bytes, and then calculate the packet loss rate;

[0032] Updating the cumulative delay of data packet transmission and calculating the average delay of data packet transmission;

[0033] Save the updated data and use it for subsequent reporting.

[0034] As an implementation mode, the test board includes: a single-chip microcomputer and an Ethernet communication interface, a power module, a wireless communication module, a GPS module, a serial port and a display screen respectively connected thereto; the Ethernet communication interface is connected to a corresponding terminal, the wireless communication module is connected to a central server, the GPS module is used to collect location information of the corresponding test board, and the serial port is connected to the corresponding tested end.

[0035] As an implementation mode, the central server and each test board communicate with each other through a control channel.

[0036] A second aspect of the present invention provides a method for testing the communication distance of a wireless transparent transmission device.

[0037] A method for testing the communication distance of a wireless transparent transmission device, based on the testing system for the communication distance of the wireless transparent transmission device as described above;

[0038] The method for testing the communication distance of the wireless transparent transmission device comprises:

[0039] When all test boards are online successfully:

[0040] The test board on the tester's device parses the test script content, obtains the test case and sends it to the test boards of each tested end through the central server;

[0041] The test board at the sending end packages the test data according to the test case and sends it to the device under test at the sending end. The device under test at the sending end sends the test data to the device under test at the receiving end via wireless communication. After the device under test at the receiving end transmits the data transparently, the data is sent to the test board at the receiving end.

[0042] The test board at the receiving end parses the received test data packets packet by packet according to the preset data channel protocol processing flow, obtains the test results of the test case and sends them to the test board at the tester's device end via the central server.

[0043] As an implementation method, the test results of the test case include the current distance between the sender and the receiver, the number of received packets, the number of received bytes, the packet loss rate and the average transmission delay.

[0044] The beneficial effects of the present invention are:

[0045] The present invention utilizes a control channel with a central server as the core to communicate with the test boards connected to the test personnel's equipment end and the tested end, controls multiple tested devices to execute the test process according to the test case, and obtains the communication distance of the tested device through heartbeat packet interaction and synchronizes the time and power; obtains the test results such as the number of received packets, the number of received bytes, the packet loss rate and the average transmission delay of the tested device through the data channel protocol, realizes the automation of the whole process of equipment configuration, data sending and receiving, distance measurement and result recording, greatly reduces the test manpower demand, and improves the test efficiency and accuracy; and the test personnel can remotely monitor the test process at any location, reduces the on-site test demand, and avoids the health and efficiency problems caused by the harsh environment.

[0046] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0048] Figure 1 This is a test scenario diagram of the communication distance of the wireless transparent transmission device according to an embodiment of the present invention;

[0049] Figure 2 is a tester device end connection diagram of an embodiment of the present invention;

[0050] Figure 3 is a schematic diagram of connection of a tested end device according to an embodiment of the present invention;

[0051] Figure 4 is a hardware structure diagram of a test board according to an embodiment of the present invention;

[0052] Figure 5 It is a schematic diagram of the composition of the central server of an embodiment of the present invention;

[0053] Figure 6 is a schematic diagram of data transmission through a data channel according to an embodiment of the present invention;

[0054] Figure 7 It is a flowchart of the receiving end board data channel protocol processing and parsing of an embodiment of the present invention;

[0055] Figure 8 This is a flowchart of a heartbeat packet processing module according to an embodiment of the present invention;

[0056] Fig. 9 is a flowchart of a control message forwarding module according to an embodiment of the present invention;

[0057] Fig.10 is a workflow diagram of a client management module according to an embodiment of the present invention;

[0058] Fig.11 Schematic diagram of a host computer according to an embodiment of the present invention. DETAILED DESCRIPTION

[0059] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0060] It should be noted that the following detailed descriptions are all illustrative and intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0061] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0062] according to Figure 1 The embodiment of the present invention provides a test system for the communication distance of a wireless transparent transmission device, comprising: a central server, a tester device end and at least two tested ends; the tested ends perform wireless communication through data channels in turn; the tester device end and the tested ends are both connected to a test board; the central server communicates with each test board;

[0063] The test board on the tester's device side is used to: send control instructions to each tested end through the central server to control each tested end to complete the overall test process; parse the test script content, obtain the test case and send it to the test board of each tested end through the central server;

[0064] The test board at the sending end is used to package the test data and send it to the device under test at the sending end according to the test case. The device under test at the sending end sends the test data to the device under test at the receiving end via wireless communication, and the data is sent to the test board at the receiving end after transparent transmission by the device under test at the receiving end; the test board at the receiving end is used to parse the received test data packets packet by packet according to the preset data channel protocol processing flow, obtain the test results of the test case and send them to the test board at the tester's device end through the central server.

[0065] This embodiment uses a control channel with a central server as the core to communicate with the test boards connected to the tester's device end and the tested end, controls multiple devices under test to execute the test process according to the test case, and obtains the communication distance of the device under test through heartbeat packet interaction and synchronizes the time and power; obtains test results such as the number of received packets, number of received bytes, packet loss rate and average transmission delay of the device under test through the data channel protocol, realizes the automation of the entire process of device configuration, data sending and receiving, distance measurement and result recording, greatly reduces the test manpower requirements, and improves the test efficiency and accuracy; and the test personnel can remotely monitor the test progress at any location, reducing the need for on-site testing and avoiding health and efficiency problems caused by harsh environments.

[0066] like Figure 4 As shown, the test board includes: a single-chip microcomputer and an Ethernet communication interface, a power module, a wireless communication module (such as a 4G / 5G communication module), a GPS module, a serial port and a display screen respectively connected thereto; the Ethernet communication interface is connected to the corresponding terminal, the wireless communication module is connected to the central server, the GPS module is used to collect the corresponding test board location information, the serial port is connected to the corresponding tested end, and the display screen is used to display the current board power, online status and distance to other test boards obtained through interaction with the central server.

[0067] The Ethernet communication interface is connected to the computer and is used to test the communication between the board and the computer host computer.

[0068] Single chip microcomputer: As the control core, it controls the operation of each module of the test board and performs communication protocol processing, etc.

[0069] like Figure 2 As shown in FIG, the tester's equipment side includes a host computer, a test board, a device to be tested, and a power source (such as a battery, etc.). Among them, the structural diagram of the host computer is as follows: Fig.11 The host computer is provided with a display area and a preset command area, such as the command area for importing test cases, importing AT command scripts, and starting tests. The display area is used to display test cases and test results, and interaction records with the test board.

[0070] Figure 3 The figure is a schematic diagram of the connection of the test point device of an embodiment of the present invention, and the test end device includes a test board, a device to be tested and a battery pack. Any test end can be used as a test data sending end or receiving end described later. The battery pack is used to power the test board and the device to be tested; the test board and the device to be tested communicate through a serial port.

[0071] In this embodiment, the central server and each test board communicate with each other through a control channel. The protocol of the control channel is shown in Table 1:

[0072] Table 1 Control channel protocol

[0073]

[0074]

[0075] The control channel protocol is transmitted in JSON format.

[0076] according to Figure 5 , the central server includes a heartbeat packet processing module, a client management module and a control message forwarding module;

[0077] The heartbeat packet processing module is used to: process the heartbeat packet interaction with the tester's device end and the test board of the tested end;

[0078] The client management module is used to manage the TCP connection and registration process of the tester's device and the test board of the tested end;

[0079] The control message forwarding module is used to forward messages of the tester's equipment end and the test board of the tested end.

[0080] like Figure 8 As shown, in the heartbeat packet processing module, the process of processing the heartbeat packet interaction with the tester's device end and the test board of the tested end is:

[0081] If the heartbeat packet is not received for more than the set number of times (for example, 3 times) the client is considered offline and the corresponding client is removed; otherwise, the heartbeat packet information of the online test board is received;

[0082] Receive heartbeat packet information from the online test board;

[0083] Parse the GPS and battery power information in the heartbeat packet and store them temporarily;

[0084] Calculate the distance between the test board corresponding to the current message and other test boards according to the temporarily stored message;

[0085] Reply to the heartbeat reply packet of the test board.

[0086] The heartbeat packet here is a protocol designed for the test board to update the distance, power, and time synchronization with other boards in real time.

[0087] The normal process is: the test board sends a heartbeat packet to the central server at a certain interval (such as 5-10s), the central server replies with a heartbeat reply packet, the test board parses the heartbeat reply packet content, updates the display information and performs its own time calibration.

[0088] The abnormal situation is: the test board sends a heartbeat packet but does not receive a heartbeat reply packet from the server.

[0089] The measures to deal with abnormal situations include:

[0090] Timeout retry: If the heartbeat reply packet is not received within the expected time, the heartbeat packet will be resent immediately.

[0091] Disconnect: If the heartbeat packet times out for a set number of consecutive times (such as 3 times) without receiving a reply, the connection with the server will be actively disconnected and re-registered.

[0092] like Fig.10 As shown, in the client management module, the steps of managing the TCP connection and registration process of the test board of the tester device and the tested end are as follows:

[0093] Receive the test board TCP connection request and establish a TCP connection;

[0094] Determine whether the device registration package is received within the timeout. If so, continue to determine whether the content of the connection registration package is correct. If correct, add the test board to the client management list; if the device registration package is received outside the timeout or the content of the connection registration package is incorrect, remove the client corresponding to the test board.

[0095] In the specific implementation process, after the test board successfully establishes a connection with the central server, it sends a registration message and receives a response message of successful registration from the central server.

[0096] Specifically, if the network times out or fails to connect when the test board is registering with the server.

[0097] When the connection fails, try to reconnect a set number of times (for example, 3 times), each time interval set time (for example, 5 seconds). After sending the registration message, if no reply message is received from the central server, try to resend a set number of times (for example, 3 times), each time interval set time (for example, 5 seconds).

[0098] If the connection or transmission fails for a set number of consecutive retries (for example, 3 times), a local alarm is issued (which can be an alarm on the test board display screen) and the tester is notified to check the network or hardware problems.

[0099] like Fig. 9 As shown, in the control message forwarding module, the steps of forwarding the message of the tester's device end and the test board of the tested end are:

[0100] Receive the test board control message and identify the target board ID;

[0101] Based on the target board ID, determine whether the client corresponding to the test board can be found in the client management module. If so, forward the control message; otherwise, return a not found exception.

[0102] For example, the test board at the tester's device end sends a configuration instruction to the transmitter test board and the receiver test board, and the transmitter and receiver test boards reply with a response message and start configuring the devices under test at the transmitter and receiver;

[0103] When the test board sends a configuration command, if the network times out or no response message is received, an exception occurs. You can retry the connection and try to resend the command three times, with an interval of 5 seconds each time.

[0104] If the retry fails for three consecutive times, a local alarm will be issued (which can be an alarm on the test board display screen) and the tester will be notified to check the network or hardware problems.

[0105] The test board on the sending end and the test board on the receiving end send a configuration completion command, and the test board on the tester's device replies with a response message. If the configuration completion command shows that the configuration is successful, proceed to the next step. If the configuration completion command shows that the configuration failed, the test board on the tester's device sends the configuration command again and waits for configuration. If three consecutive retries fail, a local alarm is issued and reported to the computer host computer, informing the tester of the configuration failure board information;

[0106] The abnormal situation is: when the test board on the tester's device sends a configuration completion command, the network times out or does not receive a response message.

[0107] Retry: Try to resend the command 3 times, each time with an interval of 5 seconds.

[0108] Alarm: If the retry fails for three consecutive times, a local alarm will be issued (it can be an alarm on the test board display screen) and the tester will be notified to check the network or hardware problems.

[0109] Figure 6 It is a schematic diagram of data transmission through a data channel of an embodiment of the present invention. The sending end test board packages and sends data, and transmits the data to the sending end device under test through serial port data. The sending end device under test transmits the data to the receiving end device under test through wireless communication. The receiving end device under test transmits the data to the receiving end test board through serial port data, and the receiving end test board parses the received data.

[0110] Data channel protocol processing flow:

[0111] After receiving the start sending command, the test board at the sending end packages the protocol content into the corresponding number of bytes according to the number of test case bytes (the entire protocol length = the number of bytes sent by the test case), and then sends it to the sending end device under test. After wireless communication and transparent transmission between the sending end device under test and the receiving end device under test, it reaches the receiving end test board. The receiving end test board parses the received data, obtains the test results of this data transmission and records them.

[0112] Specific sending end test board data packaging and sending process:

[0113] Pack and generate sending data according to the protocol content:

[0114] Sequence number: After the start of sending, it increases from the first packet of data to each packet of data, such as 1, 2, 3, 4;

[0115] Timestamp: When sending each packet of data, the test board writes the timestamp field according to the current time of the board;

[0116] Data payload field: The number of bytes in the test case minus the number of bytes in other fields minus 12 is the number of bytes in the data payload. For example, if a test case needs to send 20 bytes, the payload field is 8 bytes of random data.

[0117] Checksum: Checksum of all previous fields, such as CRC checksum.

[0118] like Figure 7 As shown, the process of the test board at the receiving end to parse the received test data packets packet by packet according to the preset data channel protocol processing flow is:

[0119] Receive data packets from the data channel, mark the data packets with timestamps and put them into the cache;

[0120] Extract the checksum at the end of the data packet and compare it with the calculated checksum to see if it is correct. If so, extract the sequence number; otherwise, discard the data packet and include it in the packet loss statistics;

[0121] After extracting the sequence number, first determine whether the change in the sequence number is within the threshold range. If it is within the threshold range, proceed to the next step, otherwise discard it and include it in the packet loss statistics; if the sequence number is within the threshold range, determine whether the sequence number is correct and increase in order. If it is correct, extract the timestamp in the data and subtract it from the timestamp calibrated when the data packet was received before to calculate the data transmission delay, and record the current data packet transmission delay; if the sequence number is incorrect, determine whether the sequence number increases. If so, calculate the number of packet losses based on the sequence number and include it in the packet loss statistics; if the sequence number decreases or is repeated, it is directly discarded and not counted;

[0122] Update the packet loss count and total number of packets and total number of bytes, and then calculate the packet loss rate;

[0123] Updating the cumulative delay of data packet transmission and calculating the average delay of data packet transmission;

[0124] Save the updated data and use it for subsequent reporting.

[0125] The integrity check includes:

[0126] Extract checksum: Extract the checksum from the end of the data packet.

[0127] Calculate checksum: Calculate the checksum based on the content of the data packet.

[0128] Verify checksum: Compare the calculated checksum with the checksum extracted from the end of the data packet. If they are consistent, the verification passes; otherwise, the verification fails.

[0129] In the process of checking the sequence number, read the sequence number: read the sequence number from the first two bytes of the data packet.

[0130] Determine the sequence number:

[0131] Correct order: If the sequence number is 1 greater than the sequence number of the previous packet, it meets the expected order and continues processing.

[0132] Incorrect: If the sequence number is too small or has been received, it is considered a duplicate packet and is not counted.

[0133] Out of range: If the sequence number is too large, the data packet is lost and the packet loss information is recorded.

[0134] If the sequence number does not increase correctly (it does not appear in the order of 1, 2, 3, but appears in a situation similar to 1, 3, or 3, 2), then determine whether the sequence number increases after several steps (1, 3). If it increases, calculate the number of packet losses based on the sequence number (1 directly becomes 3, and 3-1-1=1 packet is lost). If the sequence number decreases or is repeated with the sequence number of the previous packet (2, 1 or 2, 2), the packet content is not counted and directly discarded.

[0135] In addition, the increase threshold may be set to 100. If the sequence number is incorrect, such as (1, 2, 3, 101), then the data packet 101 that suddenly increases a lot will be directly treated as a packet loss statistic.

[0136] Among them, packet loss rate = packet loss count / total number of sent packets*100%;

[0137] Average delay = total delay / total number of received packets*100%.

[0138] Save the total number of received packets, total number of received bytes, number of lost packets, packet loss rate, average delay and other statistical results for subsequent control protocol reporting results.

[0139] In one or more embodiments, a method for testing the communication distance of a wireless transparent transmission device is based on the testing system for the communication distance of a wireless transparent transmission device as described above;

[0140] The method for testing the communication distance of the wireless transparent transmission device comprises:

[0141] When all test boards are online successfully:

[0142] The test board on the tester's device parses the test script content, obtains the test case and sends it to the test boards of each tested end through the central server;

[0143] The test board at the sending end packages the test data according to the test case and sends it to the device under test at the sending end. The device under test at the sending end sends the test data to the device under test at the receiving end via wireless communication. After the device under test at the receiving end transmits the data transparently, the data is sent to the test board at the receiving end.

[0144] The test board at the receiving end parses the received test data packets packet by packet according to the preset data channel protocol processing flow, obtains the test results of the test case and sends them to the test board at the tester's device end via the central server.

[0145] The test results of the test cases include the current distance between the sender and the receiver, the number of received packets, the number of received bytes, the packet loss rate, and the average transmission delay.

[0146] Specifically, the test process of the communication distance of the wireless transparent transmission device is as follows:

[0147] Step 1. Test the board and start it online:

[0148] The test board connects to the central server as a TCP client and sends a registration packet.

[0149] The central server verifies the registration package. If the registration package is correct, it confirms that the online process is successful. Otherwise, the client is rejected.

[0150] After the test board is successfully launched, it starts to send heartbeat packets, communicates with the server through heartbeat packets, obtains synchronization information such as real-time distance, time, power, etc. with other boards, and displays it on the board display.

[0151] Table 2 Test board information of the tested end

[0152]

[0153] Step 2. Place the test equipment:

[0154] According to the distance information on the test board display screen, the tester places the connected devices (board, device under test, antenna, power supply) in different test positions, such as one set every 1 kilometer.

[0155] Step 3. Select the personnel test point:

[0156] Determine the control center location where the tester is located as the test board control point on the personnel side.

[0157] Step 4. Import the test script:

[0158] Import the test script into the host computer, including test cases and AT commands.

[0159] Step 5. Start testing:

[0160] The tester clicks the start test button on the computer host

[0161] The host computer sends the test script to the test board on the personnel side.

[0162] The test board parses the test script content.

[0163] Step 6. Execute the test case:

[0164] The test board on the tester's device starts executing test cases one by one according to the test script.

[0165] (1) Configure the device under test:

[0166] The test board on the tester's device sends configuration instructions through the control channel to interact with other boards (transmitter board and receiver board), and configures parameters such as channel, rate, and transmission power of the device under test according to the test case parameters.

[0167] After the configuration is completed, the configured board sends a configuration completion instruction to the personnel end board through the control channel to inform the personnel end of the configuration completion.

[0168] After receiving the configuration completion instructions from the sending and receiving test boards, the test board at the tester's device parses the configuration completion instructions. If the configuration completion instructions show that the configuration is successful, the next step will be continued; if the configuration completion instructions show that the configuration fails, the test board at the tester's device resends the configuration instructions to control the test board at the failed test point to reconfigure the device under test. After three retries, if it still fails, the test board at the tester's device sends an alarm message and informs the tester of the configuration failure test board information.

[0169] (2) Prepare to receive:

[0170] The test board on the tester's device notifies the receiving board through the control channel protocol that it is ready to receive data. The receiving board resets the receiving statistics count (the number of received packets, number of received bytes, packet loss rate, transmission delay, etc.) and starts waiting for data reception.

[0171] (3) Data transmission:

[0172] The test board on the tester's device notifies the test board on the sending end to start sending data.

[0173] The sending board packages and sends data according to the data channel protocol, and sends the data to the sending device under test according to the number of bytes, sending interval, and sending times set in the use case. The data is wirelessly transmitted to the receiving device under test through the device under test, and the receiving device under test transparently transmits the data to the receiving test board. The receiving test board also parses the received data packet by packet according to the data channel protocol processing flow.

[0174] (4) Send completion notification:

[0175] After the sending end board completes data transmission according to the test case, it notifies the receiving end test board of the completion of data transmission through the control channel protocol;

[0176] (5) Data statistical processing:

[0177] After receiving the sending completion notification, the receiving end test board first waits for a certain delay to ensure that all data packets are received and processed, and then analyzes the packet loss and data transmission delay to generate the test results of this use case;

[0178] Step 7. Count and display the test results:

[0179] The receiving test board reports the test results to the test board on the tester's device through the control channel protocol (the reported results include the current distance between the sender and the receiver, the number of received packets, the number of received bytes, the packet loss rate, and the average transmission delay). The test board on the tester's device collects the test results and reports them to the host computer. The host computer displays the test results of the current test case. For example, the first test case and its results are as follows:

[0180] Use Cases:

[0181] Use case number 1; Weather information: Sunny; Transmitter number 001; Receiving device number 002; Transmit power 10dBm; Channel 868Mhz; Rate 50kbps; Antenna model Omni; Antenna gain 2.5dBi; Number of bytes per packet 20; Number of packets sent 100; Packet sending interval 1000ms;

[0182] Results: Distance 100 meters; Number of received packets 100; Number of received bytes 2000; Packet loss rate 0%; Average transmission delay 20ms; Test time 08:30-08:45.

[0183] Step 8. Complete the test:

[0184] Repeat steps 6-8 above until all test cases in the test script are executed, and finally the host computer interface displays all test results.

[0185] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A test system for the communication distance of a wireless transparent transmission device, characterized in that: include: A central server, a tester's device and at least two tested terminals; the tested terminals perform wireless communication via a data channel in turn; The tester's device and the tested end are both connected to the test board; the central server communicates with each test board; The test board on the tester's device is used to: send control instructions to each tested terminal through the central server to control each tested terminal to complete the overall test process; Parse the test script content, obtain the test cases and send them to the test boards of each tested end through the central server; The test board at the transmitting end is used to package the test data according to the test case and send it to the device under test at the transmitting end. The device under test at the transmitting end sends the test data to the device under test at the receiving end via wireless communication, and then sends the data to the test board at the receiving end after transparent transmission by the device under test at the receiving end; The test board at the receiving end is used to parse the received test data packets packet by packet according to the preset data channel protocol processing flow, obtain the test results of the test case and send them to the test board at the tester's device end through the central server.

2. The wireless transmission device communication distance testing system as claimed in claim 1, characterized in that: The central server includes a heartbeat packet processing module, a client management module and a control message forwarding module; The heartbeat packet processing module is used to: process the heartbeat packet interaction with the tester's device end and the test board of the tested end; The client management module is used to manage the TCP connection and registration process of the tester's device and the test board of the tested end; The control message forwarding module is used to forward messages of the tester's equipment end and the test board of the tested end.

3. The wireless transparent transmission device communication distance testing system as claimed in claim 2, characterized in that: In the heartbeat packet processing module, the process of processing the heartbeat packet interaction with the tester's device end and the test board of the tested end is: If the heartbeat packet is not received for more than the set number of heartbeat packet cycles, the client is considered offline and the corresponding client is removed; otherwise, the heartbeat packet information of the online test board is received; Parse the GPS and battery power information in the heartbeat packet and store them temporarily; Calculate the distance between the test board corresponding to the current message and other test boards according to the temporarily stored message; Reply to the heartbeat reply packet of the test board.

4. The wireless transmission device communication distance test system as claimed in claim 2, characterized in that: In the client management module, the steps of managing the TCP connection and registration process of the tester's device and the test board of the tested end are as follows: Receive the test board TCP connection request and establish a TCP connection; Determine whether the device registration package is received within the timeout. If so, continue to determine whether the content of the connection registration package is correct. If correct, add the test board to the client management list; if the device registration package is received outside the timeout or the content of the connection registration package is incorrect, remove the client corresponding to the test board.

5. The wireless transparent transmission device communication distance testing system as claimed in claim 2, characterized in that: In the control message forwarding module, the steps of forwarding the messages of the tester's device end and the test board of the tested end are as follows: Receive the test board control message and identify the target board ID; Based on the target board ID, determine whether the client corresponding to the test board can be found in the client management module. If so, forward the control message; otherwise, return a not found exception.

6. The wireless transparent transmission device communication distance testing system as claimed in claim 1, characterized in that: The process of the test board at the receiving end parsing the received test data packets packet by packet according to the preset data channel protocol processing flow is as follows: Receive data packets from the data channel, mark the data packets with timestamps and put them into the cache; Extract the checksum at the end of the data packet and compare it with the calculated checksum to see if it is correct. If so, extract the sequence number; otherwise, discard the data packet and include it in the packet loss statistics; After extracting the sequence number, first determine whether the change in the sequence number is within the threshold range. If it is within the threshold range, proceed to the next step; otherwise, discard it and count it in the packet loss statistics; If the sequence number is within the threshold range, determine whether the sequence number is correct and incremented in order. If it is correct, extract the timestamp in the data and calculate the data transmission delay by subtracting it from the timestamp calibrated when the data packet was received previously, and record the current data packet transmission delay. If the sequence number is incorrect, determine whether the sequence number is increased. If so, calculate the number of lost packets based on the sequence number and include it in the packet loss statistics. If the sequence number decreases or is repeated, it will be discarded and not counted; Update the packet loss count and total number of packets and total number of bytes, and then calculate the packet loss rate; Updating the cumulative delay of data packet transmission and calculating the average delay of data packet transmission; Save the updated data and use it for subsequent reporting.

7. The wireless transparent transmission device communication distance testing system as claimed in claim 1, characterized in that: The test board includes: a single-chip microcomputer and an Ethernet communication interface, a power module, a wireless communication module, a GPS module, a serial port and a display screen respectively connected thereto; the Ethernet communication interface is connected to a corresponding terminal, the wireless communication module is connected to a central server, the GPS module is used to collect location information of the corresponding test board, the serial port is connected to the corresponding tested end, and the display screen is used to display the current board power, online status and distance between other test boards obtained through interaction with the central server.

8. The wireless transparent transmission device communication distance testing system as claimed in claim 1, characterized in that: The central server and each test board communicate with each other through a control channel.

9. A method for testing the communication distance of a wireless transparent transmission device, characterized in that: A testing system for the communication distance of a wireless transparent transmission device according to any one of claims 1 to 8; The method for testing the communication distance of the wireless transparent transmission device comprises: When all test boards are online successfully: The test board on the tester's device parses the test script content, obtains the test case and sends it to the test boards of each tested end through the central server; The test board at the sending end packages the test data according to the test case and sends it to the device under test at the sending end. The device under test at the sending end sends the test data to the device under test at the receiving end via wireless communication. After the device under test at the receiving end transmits the data transparently, the data is sent to the test board at the receiving end. The test board at the receiving end parses the received test data packets packet by packet according to the preset data channel protocol processing flow, obtains the test results of the test case and sends them to the test board at the tester's device end via the central server.

10. The method for testing the communication distance of a wireless transparent transmission device as claimed in claim 9, characterized in that: The test results of the test case include the current distance between the sender and the receiver, the number of received packets, the number of received bytes, the packet loss rate and the average transmission delay.

Citation Information

Cited By

  • Equipment scheduling method, device and equipment for OLT (Optical Line Terminal) to register stream printing station, and medium

    CN119966858A

  • Tension testing system for wireless communication equipment in water surface environment

    CN120547496A