A communication test method, a communication test system, a communication device and a storage medium
By introducing automatic packing function and unreliable transmission and communication protocols in the communication test between unmanned equipment and control centers, automated communication testing is realized, solving the high cost and inefficiency problems caused by manual operations in the prior art, and obtaining complete communication test results.
Patent Information
- Application Number
- CN202211170358.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-23
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2042-09-23
AI Technical Summary
The prior art requires manual operation in communication testing between unmanned equipment and control centers, resulting in high labor costs and low testing efficiency.
By introducing automatic packing function and unreliable transmission and communication protocols into the communication equipment, automatic communication testing between unmanned equipment and control center is realized. After the test is completed, the communication equipment of the unmanned device can actively send the test log to the control center to conduct a comprehensive analysis of the communication test results.
Automatic communication test between unmanned equipment and control center is realized, which reduces labor costs, improves testing efficiency, and obtains complete communication test results for communication equipment on both sides.
Smart Images

Figure CN115622928B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication testing technology, and in particular, relates to a communication testing method, a communication testing system, a communication device, and a computer-readable storage medium. Background Art
[0002] With the advancement of science and technology, unmanned equipment has been widely used in various fields of sea, land and air, and can realize the execution of various tasks under the premise of saving manpower. In the process of task execution, unmanned equipment often needs to promptly inform the control center of the collected task video and / or its own status parameters and other information, so that the control center can grasp the progress of the task and ensure the smooth completion of the task. Based on this, before the unmanned equipment is put into use, it is necessary to test the communication performance between the unmanned equipment and the control center. However, in the current testing process, both the unmanned equipment side and the control center side require testers to perform manual operations to ensure the smooth progress of the test, which leads to higher labor costs and lower test efficiency. Summary of the invention
[0003] The present application provides a communication test method, a communication test system, a communication device and a computer-readable storage medium, which can improve the test efficiency of the communication test while saving the manpower cost of the communication test.
[0004] In a first aspect, the present application provides a communication test method, which is applied to a first communication device, the first communication device and the second communication device are networked, the first communication device is deployed in a control center, the second communication device is deployed in an unmanned device, the first communication device and / or the second communication device adopt an unreliable transmission communication protocol, and the first communication device and the second communication device both have an automatic packet filling function; the communication test method includes:
[0005] communicating with a second communication device within a specified test time period;
[0006] After the test time period ends, a first test log is generated, and a second test log sent by the second communication device is received;
[0007] The first test log and the second test log are analyzed to obtain a communication test result.
[0008] In a second aspect, the present application provides a communication test method, which is applied to a second communication device, the second communication device is networked with a first communication device, the first communication device is deployed in a control center, the second communication device is deployed in an unmanned device, the first communication device and / or the second communication device adopt an unreliable transmission communication protocol, and the first communication device and the second communication device both have an automatic packet filling function; the communication test method includes:
[0009] communicating with the first communication device within a specified test time period;
[0010] After the test period ends, a second test log is generated;
[0011] The second test log is sent to the first communication device, so that the first communication device obtains the communication test result by analyzing the second test log and the first test log, wherein the first test log is: a test log generated by the first communication device after the test time period ends.
[0012] In a third aspect, the present application provides a communication test system, including: a first communication device and a second communication device, wherein the first communication device and the second communication device are networked, the first communication device is deployed in a control center, and the second communication device is deployed in an unmanned device, the first communication device and / or the second communication device adopt an unreliable transmission communication protocol, and the first communication device and the second communication device both have an automatic packet filling function; wherein the first communication device includes:
[0013] A first communication module, used to communicate with a second communication device within a specified test time period;
[0014] A first generating module, used for generating a first test log after the test time period ends;
[0015] A receiving module, configured to receive a second test log sent by a second communication device after the test time period ends;
[0016] An analysis module, used to analyze the first test log and the second test log to obtain a communication test result;
[0017] The second communication device comprises:
[0018] A second communication module, used to communicate with the first communication device during a test period;
[0019] A second generating module, used for generating a second test log after the tested time period ends;
[0020] The sending module is used to send the second test log to the first communication device.
[0021] In a fourth aspect, the present application provides a communication device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, and the communication device has an automatic packet filling function; when the processor executes the computer program, the steps of the method of the first aspect are implemented; or, when the processor executes the computer program, the steps of the method of the second aspect are implemented.
[0022] In a fifth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method of the first aspect are implemented; or, when the computer program is executed by a processor, the steps of the method of the second aspect are implemented.
[0023] In a sixth aspect, the present application provides a computer program product, which includes a computer program. When the computer program is executed by one or more processors, it implements the steps of the method of the first aspect; when the computer program is executed by one or more processors, it implements the steps of the method of the second aspect.
[0024] Compared with the prior art, the present application has the following beneficial effects: the communication devices on both sides are equipped with an automatic packet filling function, so that after the communication test starts, the communication devices on both sides can autonomously send data to the opposite side, thereby ensuring that the communication devices on both sides can maintain communication without human assistance. After the test period ends, the communication device deployed on the unmanned device can actively send its test log to the communication device deployed in the control center, so that the communication device deployed in the control center can analyze based on its own test log and the test log of the opposite side, and obtain complete communication test results for the communication devices on both sides. Through the above process, the test efficiency of the communication test can be improved while saving the manpower cost of the communication test. It can be understood that the beneficial effects of the second to sixth aspects mentioned above can refer to the relevant description in the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0026] Figure 1 It is a schematic diagram of the implementation flow of the communication test method provided in the embodiment of the present application;
[0027] Figure 2 It is another implementation flow diagram of the communication test method provided in an embodiment of the present application;
[0028] Figure 3 is a structural block diagram of a communication test system provided in an embodiment of the present application;
[0029] Figure 4 It is a structural diagram of the communication device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0031] In order to illustrate the technical solution of the present application, a specific embodiment is provided below for illustration.
[0032] The following is an introduction to the test environment proposed in the embodiment of the present application:
[0033] Communication equipment is deployed on both the control center side and the unmanned equipment side.
[0034] As an example only, the unmanned equipment may be: an unmanned vehicle, an unmanned ship or an unmanned aerial vehicle, etc. The specific type of the unmanned equipment is not limited here.
[0035] As an example only, the communication device may be an independent physical device, such as a personal computer (PC) or a business device with an automatic packet filling function; or, the communication device may also be composed of two or more physical devices, such as a common PC (or common business device) and an intelligent gateway device with an automatic packet filling function. The embodiments of the present application do not limit the specific device type of the communication device.
[0036] For the sake of distinction, the communication equipment deployed in the control center is recorded as the first communication equipment, and the communication equipment deployed in the unmanned equipment is recorded as the second communication equipment.
[0037] In the preparation stage of the communication test, the tester can debug the first communication device and the second communication device so that the first communication device and the second communication device establish a communication connection before the communication test begins; that is, before the communication test begins, the communication device of the control center and the communication device of the unmanned device have been successfully networked. It can be understood that, from a macro level, after successful networking, the first communication device and the second communication device are both nodes in the networking network; that is, the embodiment of the present application is to implement a communication test between the first node and the second node in the networking network through the first communication device of the first node and the second communication device of the second node, wherein the first node is a node deployed in the control center, and the second node is a node deployed in the unmanned device.
[0038] It should be noted that the first communication device and the second communication device have the following two features:
[0039] The first feature: both the first communication device and the second communication device have the function of automatic packet filling. The automatic packet filling function means that when receiving data sent by a certain device, the data is automatically fed back to the device.
[0040] The second feature: At least one of the first communication device and the second communication device adopts an unreliable transmission communication protocol. The unreliable transmission communication protocol includes the User Datagram Protocol (UDP) and the like; in contrast, the reliable transmission communication protocol includes the Transmission Control Protocol (TCP) and the like. It can be understood that if the communication devices on both sides adopt a reliable transmission communication protocol, the security and reliability of the data during the communication process can be evaluated based on the characteristics of the reliable transmission communication protocol itself; conversely, if the communication device on either side adopts an unreliable transmission communication protocol, the data transmitted during the communication process may be lost, and the loss is difficult to perceive. Based on this, it is only necessary to adopt the communication test method proposed in the embodiment of the present application when the communication device on either side (that is, the first communication device and / or the second communication device) adopts an unreliable transmission communication protocol.
[0041] As an example only, the first communication device may adopt the UDP protocol and the second communication device may adopt the TCP protocol; or, the first communication device may adopt the TCP protocol and the second communication device may adopt the UDP protocol; or, both the first communication device and the second communication device may adopt the UDP protocol, which is not limited here.
[0042] It should be noted that the embodiment of the present application does not limit the number of second communication devices: for a first communication device, it can be networked with more than one second communication device; that is, each second communication device can be used as a group of devices under test with the first communication device. The test process of each group of devices under test is independent of each other; that is, through the communication test method provided in the embodiment of the present application, the communication test of each group of devices under test can be implemented separately.
[0043] Based on the test environment described above, the communication test method applied to the first communication device proposed in the embodiment of the present application is described below. Figure 1 , Figure 1 The implementation process of the communication test method provided in the embodiment of the present application when the first communication device is used as the execution subject is shown, and the details are as follows:
[0044] Step 101: communicate with a second communication device within a specified test time period.
[0045] In one application scenario, the first communication device may obtain a test time period setting instruction input by a tester, and the test time period setting instruction carries start time information and end time information. The first communication device may monitor the time, and when the time reaches the time indicated by the start time information, actively send data to the second communication device. Under the premise that both the first communication device and the second communication device have the automatic packet filling function turned on, subsequent data interaction may be realized based on the automatic packet filling function.
[0046] In another application scenario, the first communication device may obtain a test time period setting instruction input by a tester, and the test time period setting instruction carries the test duration information. On the basis of having obtained the test time period setting instruction, the first communication device may immediately and actively send data to the second communication device after receiving the test start instruction, and may also immediately determine the designated test time period. It can be understood that the start time of the test time period is the time when the test start instruction is received, and the duration of the test time period is the duration indicated by the test duration information. Under the premise that both the first communication device and the second communication device have turned on the automatic packet filling function, subsequent data interaction can be realized based on the automatic packet filling function.
[0047] At the end of the test period, the first communication device can temporarily turn off its automatic packet filling function so that the first communication device stops sending data to the second communication device; if the second communication device fails to receive data, the second communication device will no longer send data to the first communication device. In this way, it can be ensured that the test communication between the first communication device and the second communication device can be stopped in time after the test period ends; that is, it is ensured that the test communication between the first communication device and the second communication device is only performed within the test period. Of course, the first communication device and the second communication device can also stop the test communication between them in time by other means, which is not limited here.
[0048] The first communication device may enable its automatic packet filling function again after the shutdown time of the automatic packet filling function reaches a preset time; or, the tester may enable the automatic packet filling function of the first communication device when preparing for the next communication test, which is not limited here.
[0049] Step 102: after the test time period ends, generate a first test log and receive a second test log sent by a second communication device.
[0050] For the first communication device itself, it can normally generate its own test log based on its communication with the second communication device during the test period. For ease of description, the test log generated by the first communication device itself can be recorded as the first test log.
[0051] Similarly, the second communication device itself can normally generate its own test log based on its communication with the first communication device during the test period. For ease of description, the test log generated by the second communication device itself can be recorded as a second test log.
[0052] Considering that the unmanned equipment may be far away from the control center during the communication test, in order to obtain the communication test results as soon as possible, the second communication equipment can send the second test log generated by it to the first communication equipment after the test period ends. Thus, after the test period ends, the first communication equipment can obtain two test logs: one is the first test log generated by itself, and the other is the second test log generated by the second communication equipment.
[0053] Step 103: Analyze the first test log and the second test log to obtain a communication test result.
[0054] As described above, the first test log is a test log generated from the perspective of the first communication device, and the second test log is a test log generated from the perspective of the second communication device; therefore, these two test logs can fully describe the specific situation of data transmission during the communication process, that is, these two test logs are a complete record of the communication process. Based on this, the first communication device can analyze the first test log and the second test log together to obtain a complete communication test result.
[0055] In some embodiments, to achieve comprehensive analysis and avoid omissions in analysis, the first communication device may first merge the first test log and the second test log to obtain a third test log, and then analyze the third test log to obtain a communication test result.
[0056] Generally speaking, the test log will be sorted based on time sequence, and the events of interest will be recorded in order. Based on this, in order to ensure the orderliness of the third test log obtained after the merger, the first communication device can continue to sort based on time sequence, and rearrange all the information recorded in the first test log and the second test log together, so as to achieve the merger of the first test log and the second test log. Alternatively, the first communication device can also directly add all the information recorded in the second test log to the beginning or end of the first test log. The embodiment of the present application does not limit the specific means of merging.
[0057] In some embodiments, the first test log and the second test log may respectively record the event information of the communication events that have occurred on the corresponding communication devices. In this way, the first test log and the second test log jointly record the event information of all communication events within the test time period (that is, the third test log records the event information of all communication events within the test time period). Among them, each event information records the communication performance parameters when the corresponding communication event occurs. As an example only, the communication performance parameters may include but are not limited to the following items: received signal strength, transmission bandwidth, reference signal received power, signal-to-noise ratio and channel quality index. Taking into account that communication testing is generally to avoid communication anomalies in actual applications, the first communication device may pay relatively more attention to abnormal communication events. Based on this, the analysis process may specifically include:
[0058] Step 1031: Detect whether there is target event information in the test log to be analyzed.
[0059] It can be understood that when the test log merging operation is performed, the test log to be analyzed is specifically: the third test log; when the test log merging operation is not performed, the test log to be analyzed is specifically: the first test log and the second test log.
[0060] The first communication device pre-stores a specified parameter abnormality condition. For each event information in the test log to be analyzed, the first communication parameter can analyze whether the communication performance parameter recorded in the event information meets the parameter abnormality condition. If satisfied, the event information is the target event information, that is, the communication event indicated by the event information is abnormal. If not, the event information is not the target event information, that is, the communication event indicated by the event information is not abnormal.
[0061] Step 1032: If target event information exists, analyze the target event information to determine the cause of the communication anomaly.
[0062] After all event information in the test log to be analyzed is traversed, if no target event information is detected, it can be known that there is no abnormality in the communication between the first communication device and the second communication device during the test time period. Conversely, if the target event information is detected, it can be known that there is an abnormality in the communication between the first communication device and the second communication device during the test time period. The first communication device can analyze the detected target event information to determine the cause of the abnormal communication.
[0063] It should be noted that the embodiment of the present application does not limit the number of target event information, that is, the first communication device may detect multiple target event information from the test log to be analyzed.
[0064] In some embodiments, through the preliminary debugging of the first communication device and the second communication device, the situation where the communication anomaly is caused by the failure of the communication device itself has been basically ruled out; that is, in the presence of target event information, the cause of the communication anomaly is often external to the communication device. Based on this, the event information can be set to also record the state parameters of the unmanned device when the corresponding communication event occurs. Specifically, during the test time period, the data sent by the second communication device to the first communication device may carry the state parameters of the unmanned device, so that the first test log generated by the first communication device can record the state parameters of the unmanned device when the corresponding communication event occurs; when the second communication device receives the data sent by the first communication device, it can immediately obtain the state parameters of the unmanned device where it is located, so that the second test log generated by the second communication device can record the state parameters of the unmanned device when the corresponding communication event occurs.
[0065] When the event information records the occurrence of a corresponding communication event, in the case of the state parameters of the unmanned device, the first communication device can determine the cause of the communication abnormality through the following process:
[0066] A1. Perform correlation analysis based on the state parameters and communication performance parameters recorded in the target event information.
[0067] For any type of state parameter, when performing correlation analysis, a qualitative analysis can be performed first to determine whether the state parameter of this type will indeed affect the communication performance; then a quantitative analysis can be performed to determine within which value range the state parameter of this type can have a positive feedback on the communication performance.
[0068] In one application scenario, each event information also records the timestamp of the corresponding communication event. In addition, the state parameters of the unmanned device include: the location of the unmanned device. Based on this, step A1 may include:
[0069] B1. Determine the movement path of the unmanned equipment based on the timestamp and location recorded in the target event information.
[0070] It can be understood that the moving path shows the locations that the unmanned equipment passes through in chronological order when the communication is abnormal.
[0071] B2. Perform a first marking operation on the moving path according to the performance interval to which the communication performance parameter recorded in the target event information belongs.
[0072] As described above, the communication performance parameters recorded by the target event information meet the preset parameter abnormality conditions; that is, the communication performance parameters recorded by the target event information are actually abnormal communication performance parameters. However, the first communication device cannot judge the degree of abnormality of these abnormal communication performance parameters through the parameter abnormality conditions. Based on this, the first communication device can also be set with a communication performance judgment rule. Through the communication performance judgment rule, the first communication device can judge the performance intervals to which the communication performance parameters recorded by each target event information belong in turn, and perform the first marking operation on the moving path according to the determined performance interval.
[0073] As an example only, based on the order of performance from high to low, the first communication device may set the following three performance intervals for the communication performance parameters recorded in the target event information: a relatively poor performance interval, a poor performance interval, and a very poor performance interval.
[0074] As an example only, the first marking operation can be: marking with different colors; wherein the marking color corresponding to the poor performance interval is yellow, the marking color corresponding to the poor performance interval is orange, and the marking color corresponding to the very poor performance interval is red, which is not limited here. Of course, the first communication device can also use other methods to perform the first marking operation, as long as it can distinguish different performance intervals according to the moving path, which is not limited here.
[0075] It can be understood that, through the first marking operation, the first communication device can represent the movement path of the unmanned device when the communication is abnormal in the form of a heat map, which is convenient for the test personnel to check later.
[0076] B3. Analyze the correlation between the position and communication performance parameters based on the moving path obtained after the first marking operation.
[0077] The first communication device may analyze the moving path obtained after the first marking operation to determine whether the position change has an impact on the communication performance parameters, and the extent of the impact if there is an impact. Furthermore, the first communication device may also access external data and analyze the moving path obtained after the first marking operation in combination with the external data. The external data may be: information on the currently defined signal shielding area, etc., which is not limited here.
[0078] Of course, the first communication device may also output the moving path obtained after the first marking operation to the display screen of the control center for the test personnel to review.
[0079] In an application scenario, when the unmanned device is an unmanned ship, based on the particularity of the marine environment, the first communication device may also take the sea conditions into consideration. Based on this, step A1 may also include:
[0080] B4. Query the sea conditions faced by the unmanned equipment based on the timestamp and location recorded in the target event information.
[0081] Through the timestamp recorded in the target event information, the first communication device can know the exact time when the corresponding communication event occurs. The first communication device uses the exact time and the location of the unmanned device recorded in the target event information as query conditions to query the sea conditions faced by the unmanned device when the corresponding communication event occurs.
[0082] As an example only, the first communication device may query the sea conditions in the data released by the marine weather station, and the embodiment of the present application does not limit the specific method of the query.
[0083] B5. According to the query result, a second marking operation is performed on the moving path obtained after the first marking operation.
[0084] Generally speaking, sea conditions are expressed in the form of levels, which are usually divided into ten levels, wherein the severity of sea conditions increases with increasing levels; that is, a higher level indicates a worse sea condition, and a lower level indicates a milder sea condition. As an example only, the second labeling operation may be: labeling with different line thicknesses; wherein sections of the moving path facing higher levels of sea conditions may be labeled with thicker lines, and sections of the moving path facing lower levels of sea conditions may be labeled with thinner lines, and this is not limited here. Of course, the first communication device may also perform the second labeling operation in other ways, as long as it is possible to distinguish between different levels of sea conditions for the moving path, and this is not limited here.
[0085] B6. Based on the movement paths obtained after the first and second marking operations, the correlation between the sea conditions faced by the unmanned equipment and the communication performance parameters is analyzed.
[0086] Through the first marking operation, the communication performance of each position of the moving path can be visualized; similarly, through the second marking operation, the sea conditions of each position of the moving path can be visualized. The first communication device can analyze the correlation between the sea conditions faced by the unmanned device and the communication performance parameters based on the moving paths obtained after the first marking operation and the second marking operation.
[0087] Of course, the first communication device may also output the moving paths obtained after the first marking operation and the second marking operation to the display screen of the control center for the test personnel to review.
[0088] A2. Determine the cause of the communication anomaly based on the analysis results.
[0089] The first communication device can determine the cause of the communication anomaly through the results of qualitative analysis; further, the first communication device can also generate preliminary solutions to the communication anomaly based on the results of quantitative analysis. As an example only, when it is determined that the communication anomaly is related to certain specific areas, the preliminary solution suggestion can be: the unmanned equipment should try to bypass the specific area when performing tasks. Alternatively, when it is determined that the communication anomaly is related to severe sea conditions, the preliminary solution suggestion can be: improve the structure of the unmanned equipment to enhance the unmanned equipment's ability to resist severe sea conditions; or control the unmanned equipment to suspend the execution of the task when encountering severe sea conditions.
[0090] As can be seen from the above, in the embodiment of the present application, the communication devices on both sides have an automatic packet filling function, so that after the communication test starts, the communication devices on both sides can autonomously send data to the opposite side, thereby ensuring that the communication devices on both sides can maintain communication without human assistance. After the test period ends, the communication device deployed in the unmanned device can actively send its test log to the communication device deployed in the control center, so that the communication device deployed in the control center can analyze based on its own test log and the test log of the opposite side, and obtain complete communication test results for the communication devices on both sides. Through the above process, the test efficiency of the communication test can be improved while saving the manpower cost of the communication test.
[0091] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0092] Based on the test environment described above, the communication test method applied to the second communication device proposed in the embodiment of the present application is described below. Figure 2 , Figure 2 The implementation process of the communication test method provided in the embodiment of the present application when the second communication device is used as the execution subject is shown, and the details are as follows:
[0093] Step 201: communicate with a first communication device within a specified test time period.
[0094] Since the second communication device is the responder of the communication test, the second communication device only needs to automatically feedback data to the first communication device based on its automatic packet filling function when receiving data sent by the first communication device, so as to achieve communication with the first communication device within the specified test time period.
[0095] After the test time period ends, the first communication device will stop sending data to the second communication device. Correspondingly, if the second communication device fails to receive the data sent by the first communication device, it will also stop sending data to the first communication device. In this way, it can be ensured that the test communication between the first communication device and the second communication device can be stopped in time after the test time period ends.
[0096] Step 202: after the test period ends, generate a second test log.
[0097] For the second communication device itself, it can normally generate its own test log based on its communication with the first communication device during the test period. For ease of description, the test log generated by the second communication device itself can be recorded as the second test log.
[0098] Step 203: Send the second test log to the first communication device.
[0099] After generating the second test log, the second communication device can immediately send the second test log to the first communication device. The first communication device can then perform subsequent analysis operations to obtain communication test results, the specific process of which has been described in the previous embodiment and will not be repeated here.
[0100] As can be seen from the above, in the embodiment of the present application, the communication devices on both sides have an automatic packet filling function, so that after the communication test starts, the communication devices on both sides can autonomously send data to the opposite side, thereby ensuring that the communication devices on both sides can maintain communication without human assistance. After the test period ends, the communication device deployed in the unmanned device can actively send its test log to the communication device deployed in the control center, so that the communication device deployed in the control center can analyze based on its own test log and the test log of the opposite side, and obtain complete communication test results for the communication devices on both sides. Through the above process, the test efficiency of the communication test can be improved while saving the manpower cost of the communication test.
[0101] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0102] The communication test method proposed in the embodiment of the present application is briefly described below through specific examples:
[0103] For the test environment: the control center of the unmanned boat and the shore is set with a node. Each node is equipped with an intelligent gateway device with automatic packet injection function. The designated link of the intelligent communication gateway of the control center is connected to the PC under test, and the intelligent communication gateway and the PC constitute the first communication device. The designated link of the intelligent communication gateway of the unmanned boat is connected to the service device under test, and the intelligent communication gateway and the service device constitute the second communication device. Through preliminary debugging, the tester ensures that the first communication device and the second communication device are networked through the air interface, and the first communication device and the second communication device can be pinged.
[0104] Regarding the test process: after the tester logs into the test interface on the PC, he / she enters the test duration and triggers the test to start. The first communication device and the second communication device can then start executing each step of the corresponding communication test method.
[0105] Regarding test output: During the test, the test interface can display the quality of the communication link in real time. After the test, the first communication device can import the first test log and the second test log into the analysis software (or import the third test log into the analysis software), obtain the test communication result through the analysis of the analysis software, and display the test communication result on the test interface.
[0106] See also Figure 3 , Figure 3 The structure block diagram of the communication test system provided by the embodiment of the present application is shown. For the convenience of explanation, only the part related to the embodiment of the present application is shown. Figure 3 The communication test system 3 includes a first communication device 31 and a second communication device 32. The first communication device 31 and the second communication device 32 form a network, the first communication device 31 is deployed in the control center, and the second communication device 32 is deployed in an unmanned device. The first communication device 31 and / or the second communication device 32 adopt an unreliable transmission communication protocol, and the first communication device 31 and the second communication device 31 both have an automatic packet filling function; wherein the first communication device 31 includes:
[0107] The first communication module 311 is used to communicate with the second communication device within a specified test time period;
[0108] A first generating module 312, configured to generate a first test log after the test period ends;
[0109] The receiving module 313 is used to receive a second test log sent by the second communication device after the test time period ends;
[0110] An analysis module 314 is used to analyze the first test log and the second test log to obtain a communication test result;
[0111] The second communication device 32 includes:
[0112] The second communication module 321 is used to communicate with the first communication device during the test period;
[0113] A second generating module 322, configured to generate a second test log after the tested time period ends;
[0114] The sending module 323 is configured to send the second test log to the first communication device.
[0115] In some embodiments, the analysis module 314 includes:
[0116] A merging submodule, used for merging the first test log and the second test log to obtain a third test log;
[0117] The first analysis submodule is used to analyze the third test log to obtain a communication test result.
[0118] In some embodiments, the first test log and the second test log record event information of each communication event within the test time period, and each event information records the communication performance parameters when the corresponding communication event occurs; the analysis module 314 includes:
[0119] The detection submodule is used to detect whether there is target event information in the first test log and the second test log, where the target event information is: event information in which the recorded communication performance parameters meet the specified parameter abnormality condition;
[0120] The second analysis submodule is used to analyze the target event information when there is target event information, and determine the cause of the communication abnormality.
[0121] In some embodiments, each piece of event information also records the state parameters of the unmanned device when the corresponding communication event occurs; the second analysis submodule includes:
[0122] A correlation analysis unit, used to perform correlation analysis based on the state parameters and communication performance parameters recorded in the target event information;
[0123] The abnormality cause determination unit is used to determine the cause of the communication abnormality according to the analysis result.
[0124] In some embodiments, each event information also records the timestamp of the corresponding communication event; the state parameters of the unmanned device include: the location of the unmanned device; the correlation analysis unit includes:
[0125] A path determination subunit is used to determine the moving path of the unmanned equipment according to the timestamp and location recorded in the target event information;
[0126] A first marking subunit, configured to perform a first marking operation on the moving path according to the performance interval to which the communication performance parameter recorded in the target event information belongs;
[0127] The first analysis subunit is used to analyze the correlation between the position and the communication performance parameters according to the moving path obtained after the first marking operation.
[0128] In some embodiments, the unmanned device is an unmanned ship, and the correlation analysis unit further includes:
[0129] The sea condition query subunit is used to query the sea condition faced by the unmanned equipment according to the timestamp and position recorded in the target event information;
[0130] A second marking subunit is used to perform a second marking operation on the moving path obtained after the first marking operation according to the query result;
[0131] The second analysis subunit is used to analyze the correlation between the sea conditions faced by the unmanned equipment and the communication performance parameters according to the movement path obtained after the first marking operation and the second marking operation.
[0132] As can be seen from the above, through the embodiments of the present application, the communication devices on both sides are equipped with an automatic packet filling function, so that after the communication test starts, the communication devices on both sides can autonomously send data to the opposite side, thereby ensuring that the communication devices on both sides can maintain communication without human assistance. After the test period ends, the communication device deployed in the unmanned device can actively send its test log to the communication device deployed in the control center, so that the communication device deployed in the control center can analyze based on its own test log and the test log of the opposite side, and obtain complete communication test results for the communication devices on both sides. Through the above process, the test efficiency of the communication test can be improved while saving the manpower cost of the communication test.
[0133] Corresponding to the communication test method provided above, the present application embodiment also provides a communication device, see Figure 4 The communication device 4 in the embodiment of the present application includes: a memory 401, one or more processors 402 ( Figure 4 Only one is shown in the figure) and a computer program stored in the memory 401 and executable on the processor. The memory 401 is used to store software programs and modules, and the processor 402 executes various functional applications and data processing by running the software programs and units stored in the memory 401 to obtain resources corresponding to the preset events.
[0134] In one application scenario, a communication device 4 is deployed in a control center and networked with another communication device deployed in an unmanned device. The communication device 4 and / or the other communication device deployed in the unmanned device adopt an unreliable transmission communication protocol, and the communication device 4 and the other communication device deployed in the unmanned device both have an automatic packet filling function. The processor 402 implements the following steps by running the above-mentioned computer program stored in the memory 401:
[0135] communicating with another communication device deployed on the unmanned device within a specified test time period;
[0136] After the test time period ends, a first test log is generated, and a second test log sent by another communication device deployed on the unmanned device is received;
[0137] The first test log and the second test log are analyzed to obtain a communication test result.
[0138] Assuming that the above is the first possible implementation mode, in a second possible implementation mode provided based on the first possible implementation mode, the first test log and the second test log are analyzed to obtain a communication test result, including:
[0139] Merge the first test log and the second test log to obtain a third test log;
[0140] The third test log is analyzed to obtain a communication test result.
[0141] In a third possible implementation manner provided based on the first possible implementation manner, the first test log and the second test log record event information of each communication event within the test time period, and each event information records a communication performance parameter when the corresponding communication event occurs; the first test log and the second test log are analyzed to obtain a communication test result, including:
[0142] In the first test log and the second test log, detecting whether there is target event information, the target event information being: event information in which the recorded communication performance parameters meet the specified parameter abnormality condition;
[0143] When target event information exists, the target event information is analyzed to determine the cause of the communication anomaly.
[0144] In a fourth possible implementation provided based on the third possible implementation, each piece of event information further records the state parameters of the unmanned device when the corresponding communication event occurs; analyzing the target event information to determine the cause of the communication abnormality includes:
[0145] Perform correlation analysis based on the state parameters and communication performance parameters recorded in the target event information;
[0146] Based on the analysis results, determine the cause of the communication abnormality.
[0147] In a fifth possible implementation provided on the basis of the fourth possible implementation, each event information also records a timestamp of the corresponding communication event; the state parameters of the unmanned device include: the location of the unmanned device; and correlation analysis is performed based on the state parameters and communication performance parameters recorded in the target event information, including:
[0148] Determine the movement path of the unmanned equipment based on the timestamp and location recorded in the target event information;
[0149] Performing a first marking operation on the moving path according to the performance interval to which the communication performance parameter recorded in the target event information belongs;
[0150] According to the moving path obtained after the first marking operation, the correlation between the position and the communication performance parameters is analyzed.
[0151] In a sixth possible implementation provided based on the fifth possible implementation, the unmanned device is an unmanned ship, and after determining the moving path of the unmanned device, the method further includes:
[0152] Query the sea conditions faced by the unmanned equipment based on the timestamp and location recorded in the target event information;
[0153] According to the query result, a second marking operation is performed on the moving path obtained after the first marking operation;
[0154] According to the movement paths obtained after the first and second marking operations, the correlation between the sea conditions faced by the unmanned equipment and the communication performance parameters is analyzed.
[0155] In another application scenario, the communication device 4 is deployed in an unmanned device and networked with another communication device deployed in a control center. The communication device 4 and / or the other communication device deployed in the control center adopt an unreliable transmission communication protocol, and the communication device 4 and the other communication device deployed in the control center both have an automatic packet filling function. The processor 402 implements the following steps by running the above-mentioned computer program stored in the memory 401:
[0156] communicating with another communication device deployed in the control center within a specified test time period;
[0157] After the test period ends, a second test log is generated;
[0158] The second test log is sent to another communication device deployed in the control center, so that the other communication device deployed in the control center obtains a communication test result by analyzing the second test log and the first test log, wherein the first test log is: a test log generated by the other communication device deployed in the control center after the test time period ends.
[0159] It should be understood that in the embodiment of the present application, the processor 402 may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0160] The memory 401 may include a read-only memory and a random access memory, and provide instructions and data to the processor 402. A part or all of the memory 401 may also include a non-volatile random access memory. For example, the memory 401 may also store information on the device type.
[0161] As can be seen from the above, the communication device proposed in the embodiment of the present application has an automatic packet filling function, which enables the communication device to autonomously send data to the opposite side after the communication test begins, thereby ensuring that the communication device can maintain communication with the opposite side without human assistance. After the test period ends, the communication device deployed in the unmanned device can actively send its test log to the communication device deployed in the control center, so that the communication device deployed in the control center can analyze based on its own test log and the test log of the opposite side, and obtain complete communication test results for the communication devices on both sides. Through the above process, the test efficiency of the communication test can be improved while saving the manpower cost of the communication test.
[0162] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the above-mentioned device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0163] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0164] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of external device software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0165] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the system embodiments described above are merely schematic. For example, the division of the above modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0166] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0167] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the associated hardware through a computer program. The above-mentioned computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the above-mentioned computer program includes computer program code, and the above-mentioned computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The above-mentioned computer-readable storage medium may include: any entity or device capable of carrying the above-mentioned computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer-readable memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the above-mentioned computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media does not include electrical carrier signals and telecommunication signals.
[0168] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A communication test method, characterized in that: The communication test method is applied to a first communication device, the first communication device is networked with a second communication device, the first communication device is deployed in a control center, the second communication device is deployed in an unmanned device, the first communication device and / or the second communication device adopt an unreliable transmission communication protocol, and the first communication device and the second communication device both have an automatic packet filling function, the automatic packet filling function means: when receiving data sent by a device, automatically feeding back data to the device; the communication test method includes: communicating with the second communication device within a specified test time period; After the test time period ends, generating a first test log, and receiving a second test log sent by the second communication device; The first test log and the second test log are analyzed to obtain a communication test result.
2. The communication test method according to claim 1, characterized in that: The analyzing the first test log and the second test log to obtain a communication test result includes: Merging the first test log and the second test log to obtain a third test log; The third test log is analyzed to obtain a communication test result.
3. The communication test method according to claim 1, characterized in that: The first test log and the second test log record event information of each communication event within the test time period, and each event information records a communication performance parameter when the corresponding communication event occurs; the first test log and the second test log are analyzed to obtain a communication test result, including: In the first test log and the second test log, detecting whether there is target event information, the target event information being: event information in which the recorded communication performance parameter meets a specified parameter abnormality condition; In the case where the target event information exists, the target event information is analyzed to determine the cause of the communication abnormality.
4. The communication test method according to claim 3, characterized in that: Each event information also records the state parameters of the unmanned device when the corresponding communication event occurs; the analyzing the target event information to determine the cause of the communication anomaly includes: Performing correlation analysis based on the state parameters and communication performance parameters recorded in the target event information; Based on the analysis results, determine the cause of the communication abnormality.
5. The communication test method according to claim 4, characterized in that: Each event message also records the timestamp of the corresponding communication event; The state parameters of the unmanned equipment include: the location of the unmanned equipment; the correlation analysis of the state parameters and communication performance parameters recorded according to the target event information includes: Determine the moving path of the unmanned equipment according to the timestamp and location recorded in the target event information; Performing a first marking operation on the moving path according to the performance interval to which the communication performance parameter recorded in the target event information belongs; According to the moving path obtained after the first marking operation, the correlation between the position and the communication performance parameter is analyzed.
6. The communication test method according to claim 5, characterized in that: The unmanned equipment is an unmanned ship, and after determining the moving path of the unmanned equipment, the method further includes: Querying the sea conditions faced by the unmanned equipment according to the timestamp and location recorded in the target event information; According to the query result, performing a second marking operation on the moving path obtained after the first marking operation; According to the moving path obtained after the first marking operation and the second marking operation, the correlation between the sea conditions faced by the unmanned equipment and the communication performance parameters is analyzed.
7. A communication test method, characterized in that: The communication test method is applied to a second communication device, the second communication device is networked with a first communication device, the first communication device is deployed in a control center, the second communication device is deployed in an unmanned device, the first communication device and / or the second communication device adopt an unreliable transmission communication protocol, and the first communication device and the second communication device both have an automatic packet filling function, the automatic packet filling function means: when receiving data sent by a device, automatically feeding back data to the device; the communication test method includes: communicating with the first communication device within a specified test time period; After the test time period ends, generating a second test log; The second test log is sent to the first communication device, so that the first communication device obtains a communication test result by analyzing the second test log and the first test log, wherein the first test log is: a test log generated by the first communication device after the test time period ends.
8. A communication test system, characterized in that: include: A first communication device and a second communication device, wherein the first communication device and the second communication device form a network, the first communication device is deployed in a control center, and the second communication device is deployed in an unmanned device, the first communication device and / or the second communication device adopt an unreliable transmission communication protocol, and the first communication device and the second communication device both have an automatic packet filling function, and the automatic packet filling function means: when receiving data sent by a device, automatically feeding back data to the device; wherein the first communication device includes: A first communication module, configured to communicate with the second communication device within a specified test time period; A first generating module, configured to generate a first test log after the test time period ends; A receiving module, configured to receive a second test log sent by the second communication device after the test time period ends; An analysis module, used for analyzing the first test log and the second test log to obtain a communication test result; The second communication device comprises: A second communication module, configured to communicate with the first communication device within the test time period; A second generating module, configured to generate the second test log after the test time period ends; A sending module is used to send the second test log to the first communication device.
9. A communication device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: The communication device has an automatic packet filling function, which means: when receiving data sent by a device, automatically feeding back data to the device; when the processor executes the computer program, it implements the method according to any one of claims 1 to 6; or, when the processor executes the computer program, it implements the method according to claim 7.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Unmanned aerial vehicle ground control station testing and data acquiring method and system thereof
CN104793612A
Automatic test system and method of remotely-controlled equipment
CN107390671A