Search

CN-121996482-A - Test system capable of realizing rapid configuration of communication protocol and UI (user interface)

CN121996482ACN 121996482 ACN121996482 ACN 121996482ACN-121996482-A

Abstract

The specification provides a test system capable of realizing rapid configuration of a communication protocol and a UI (user interface), and relates to the field of communication protocols. The method comprises the steps of generating a receiving protocol storage file by a receiving protocol configuration module according to a message name and a message attribute, generating a sending protocol storage file by a sending protocol configuration module according to the message name and the message attribute, generating an interface layout protocol storage file by an interface UI configuration module according to a monitoring signal and an interface expected display effect, automatically generating a software test interface by an interface UI generating module according to the interface layout protocol storage file, generating a parameter binding interface by a sending data generating module to complete framing of sending data, and analyzing the receiving data by a receiving data analyzing module and updating data corresponding to UI controls on the test interface. The test system is only suitable for a fixed and single communication protocol data format, and the display interface layout is continuously adjusted due to different monitoring signals. The system has good flexibility and higher universality.

Inventors

  • ZHANG SIQING
  • WANG XIAO
  • LIU BAOCHEN

Assignees

  • 北京遥感设备研究所

Dates

Publication Date
20260508
Application Date
20251216

Claims (10)

  1. 1. The test system capable of realizing rapid configuration of a communication protocol and a UI (user interface) is characterized by comprising an interface UI generating module (1), a receiving protocol configuration module (2), an interface UI configuration module (3), a sending protocol configuration module (4), a protocol file storage module (5), a sending data generating module (6) and a receiving data analyzing module (7); The receiving protocol configuration module (2) is used for generating a receiving protocol storage file according to the message name and the message attribute input by a user in the receiving message configuration interface, and transmitting the receiving protocol storage file to the protocol file storage module (5) for storage; The sending protocol configuration module (4) is used for generating a sending protocol storage file according to the message name and the message attribute input by a user in the sending message configuration interface, and transmitting the sending protocol storage file to the protocol file storage module (5) for storage; The interface UI configuration module (3) is used for binding the monitoring signals with data in the received message according to the monitoring signals and the expected display effect of the interface, freely and flexibly configuring each display control, generating an interface layout protocol storage file, and transmitting the interface layout protocol storage file to the protocol file storage module (5) for storage; the protocol file saving module (5) is used for storing a receiving protocol saving file, a sending protocol saving file and an interface layout protocol saving file; The interface UI generation module (1) is used for reading the receiving protocol, the sending protocol and the interface layout protocol from the protocol file storage module (5) to generate a system test interface; the sending data generating module (6) is used for packaging protocol parameters input by a user at a system testing interface into a sending frame according to a sending protocol and sending the sending frame to a product end to be tested; The received data analysis module (7) is used for analyzing the response frame returned by the product end to be tested according to the receiving protocol, displaying the analyzed data information on the system test interface and updating the data information of the system test interface in real time.
  2. 2. The system according to claim 1, wherein when the communication protocol of the product to be tested is changed, the receiving protocol configuration module (2), the sending protocol configuration module (4), and the interface UI configuration module (3) regenerate the receiving protocol save file, the sending protocol save file, and the interface layout protocol save file according to the new communication protocol received by the protocol configuration interface, thereby realizing modification of the whole test software.
  3. 3. The system according to claim 1, wherein the receiving protocol configuration module (2), the transmitting protocol configuration module (4), and the interface UI configuration module (3) are respectively connected to the protocol file saving module (5), and the protocol file saving module (5) is connected to the interface UI generation module (1); the sending data generating module (6) and the receiving data analyzing module (7) are respectively connected with the interface UI generating module (1).
  4. 4. The system of claim 1, wherein the test system further comprises a hardware bottom layer module (8), and wherein the sending data generating module (6) and the receiving data analyzing module (7) are in communication interaction with the product to be tested through the hardware bottom layer module (8).
  5. 5. The system of claim 1, wherein the transmission protocol comprises protocol generic information, a base protocol, and a radar parameter protocol; The protocol general information is used for specifying the current transmission protocol period transmission/single transmission, the check byte position, the sequence code position, the size end, whether the radar parameter protocol is contained, the byte number of a frame, the maximum number of binding radar, the number of sub-protocols in the radar parameter protocol and the total byte number of the radar parameter protocol part.
  6. 6. The system of claim 5, wherein the attributes of the base protocol include parameter name, parameter start position, length, size end, control generation type, data value type, parsing mode, scale, data value unit, data value decimal place, numerical maximum and minimum; the radar parameter protocol attribute is the same as the base protocol attribute.
  7. 7. The system of claim 1, wherein the interface layout protocol freely combines multiple controls of the same type into a control group to configure an optimized interface layout.
  8. 8. The system of claim 1, wherein the receiving protocol configuration interface further comprises a data display control option, wherein the data display control option comprises a Chart control display, a textBox control display, both controls display, and neither control display.
  9. 9. A test method capable of implementing rapid configuration of a communication protocol and a UI interface, applied to the system of any one of claims 1 to 8, comprising: The receiving protocol configuration module generates a receiving protocol storage file according to the message name and the message attribute input by the user in the receiving message configuration interface, and transmits the receiving protocol storage file to the protocol file storage module for storage; The sending protocol configuration module generates a sending protocol storage file according to the message name and the message attribute input by the user in the sending message configuration interface, and transmits the sending protocol storage file to the protocol file storage module for storage; the interface UI configuration module is used for binding the monitoring signals with data in the received message according to the monitoring signals and the expected display effect of the interface, freely and flexibly configuring each display control, generating an interface layout protocol storage file, and transmitting the interface layout protocol storage file to the protocol file storage module for storage; the protocol file saving module reads the received protocol saving file, the transmitted protocol saving file and the interface layout protocol saving file; the interface UI generating module reads the receiving protocol, the sending protocol and the interface layout protocol from the protocol file storing module to generate a system test interface; the sending data generating module packages parameters input by a user in a system testing interface into sending frames according to a sending protocol and sends the sending frames to a product end to be tested; The receiving data analysis module analyzes the response frame returned by the product end to be tested according to the receiving protocol, displays the analyzed data information on the system test interface, and updates the data information of the system test interface in real time.
  10. 10. A protocol configurable data frame transmitting and receiving method for implementing the system of any one of claims 1 to 8, comprising: Step one, after a test system operates an initialized global variable, reading parameters in a transmission protocol file and dynamically generating a transmission protocol button; reading the receiving protocol and the interface configuration protocol to generate a test main interface display control group, and establishing connection between the display control group and the analysis data storage set; Step two, the testing system performs the interface mapping of the bottom hardware according to the communication equipment and the communication mode selected by the user, the program opens up a main thread and a sub thread, the main thread is responsible for the man-machine interaction of software control and interface updating, and the sub thread is responsible for driving the bottom hardware to perform data read-write communication work and receive data analysis; Step three, waiting for a user to trigger a transmission protocol button by a main thread of a transmission protocol configuration module, generating a parameter binding interface according to a transmission protocol, inputting the numerical value of each parameter control, and splicing one frame of data to be transmitted according to the starting position and the length of each parameter, the data type and the frame type information after finishing inputting and confirming the setting; Judging whether the current frame is a single transmission frame or a periodic transmission frame according to the protocol general information in the transmission protocol file; Step five, if the frame is sent periodically, updating data in a collection frame sending set by using the frame data to be sent; Step six, judging whether the current transmission frame data is a radar parameter binding frame or not according to the protocol general information in the transmission protocol file; Step seven, if the frame data are the radar parameter binding frame data, the frame data to be transmitted are stored in a radar parameter binding transmission set; if the frame is not the radar parameter binding frame, the frame data to be sent is sent to a product to be detected through a hardware board card mapped by a hardware interface layer; step eight, continuously inquiring whether data are written in the radar parameter binding and transmitting set by the sub-thread, if so, splitting the data into a plurality of frames according to the requirement, sequentially transmitting the frames to a product to be tested through a hardware board card mapped by a hardware interface layer, and clearing the radar parameter binding and transmitting set after transmitting; step nine, if no data exists in the radar parameter binding and transmitting set, inquiring whether the data is written in the acquisition frame transmitting set, if so, inserting a sequence code and a check value at a proper position according to a transmitting protocol, and transmitting the sequence code and the check value to a product to be tested through a hardware board card mapped by a hardware interface layer; step ten, the receiving protocol configuration module inquires the hardware board card receiving buffer mapped by the hardware interface layer, if the data is received, frame length and verification judgment are carried out, and one frame of data meeting the requirement is sent to the data analysis function for processing; Step eleven, analyzing the data frame according to the initial position and length of each parameter in the data analysis function, then converting the data frame into a data format specified by a protocol and corresponding to each parameter, and storing the analyzed data in a file or a database according to a receiving protocol; And step twelve, after analysis, the data is distributed according to the interface layout protocol, and the main thread is returned to update each display control group of the UI interface.

Description

Test system capable of realizing rapid configuration of communication protocol and UI (user interface) Technical Field The present document relates to the field of communication protocols, and in particular, to a test system capable of implementing rapid configuration of a communication protocol and a UI interface. Background The prior test system upper computer software is generally specially customized and designed for a specific product, and the test upper computer software of different products corresponds to different protocol data formats, has various protocols and has stronger specialization. The upper computer software user interface is closely related to the sending protocol and the receiving protocol, if protocol parameters in the communication protocol need to be modified or the upper computer software user interface is used for testing other products, the upper computer software program can only be modified again, the low-efficiency repeatability development work is delayed and easy to make mistakes, and software users are required to have a certain programming basis. In addition, due to the limitation of the size of a screen, when monitoring signals are many, the interface design of the upper computer software and the control layout are difficult, and are often disordered, one test software has an interface layout mode, unified standardization is difficult, and if some monitoring signals are temporarily added, the interface of the design software is also troublesome to readjust; therefore, a software solution for the upper computer of the testing system is needed, which solves the problem that the conventional upper computer testing system is only suitable for a certain fixed and single communication protocol data format, and the layout of the display interface is continuously adjusted due to different monitoring signals. Disclosure of Invention The specification provides a test system capable of realizing rapid configuration of a communication protocol and a UI (user interface), which is used for solving the problem that an upper computer test system is only suitable for a certain fixed single communication protocol data format, and the layout of a display interface is continuously adjusted due to different monitoring signals. In a first aspect, the present disclosure provides a test system capable of implementing rapid configuration of a communication protocol and a UI interface, including an interface UI generating module, a receiving protocol configuring module, an interface UI configuring module, a sending protocol configuring module, a protocol file saving module, a sending data generating module, and a receiving data analyzing module; The receiving protocol configuration module is used for generating a receiving protocol storage file according to the message name and the message attribute input by a user in the receiving message configuration interface, and transmitting the receiving protocol storage file to the protocol file storage module for storage; The sending protocol configuration module is used for generating a sending protocol storage file according to the message name and the message attribute input by the user in the sending message configuration interface, and transmitting the sending protocol storage file to the protocol file storage module for storage; the interface UI configuration module is used for binding the monitoring signals with the data in the received message according to the monitoring signals and the expected display effect of the interface, freely and flexibly configuring each display control, generating an interface layout protocol storage file, and transmitting the interface layout protocol storage file to the protocol file storage module for storage; the protocol file storage module is used for storing a receiving protocol storage file, a sending protocol storage file and an interface layout protocol storage file; the interface UI generating module is used for reading the receiving protocol, the sending protocol and the interface layout protocol from the protocol file storing module and generating a system test interface; the sending data generating module is used for packaging protocol parameters input by a user in a system testing interface into a sending frame according to a sending protocol and sending the sending frame to a product end to be tested; The received data analysis module is used for analyzing the response frame returned by the product end to be tested according to the receiving protocol, displaying the analyzed data information on the system test interface, and updating the data information of the system test interface in real time. In a second aspect, the present disclosure provides a test method capable of implementing quick configuration of a communication protocol and a UI interface, including: The receiving protocol configuration module generates a receiving protocol storage file according to the message name and the message attribute i