Satellite-borne bimodal multi-serial port communication test system
By designing a satellite-based dual-mode multi-serial communication testing system that supports dual-mode switching, the problem that the existing technology cannot adapt to multi-device serial port detection of multi-device hardware and multi-communication protocols is solved, efficient and economical testing is achieved, and system reliability and testing efficiency are improved.
Patent Information
- Application Number
- CN202510248828.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-04
- Publication Date
- 2025-06-03
AI Technical Summary
The existing communication testing methods cannot adapt to the multi-device serial port detection requirements of multi-serial hardware and multi-communication protocols, and cannot comprehensively test the interface functions and performance of satellite-on-mounted master control devices.
Design a communication test system with dual-mode multi-serial ports on satellites, adopts a multi-serial port MCU controller, configures at least two device serial ports and one monitoring interface, and supports dual-mode switching: serial monitoring mode and serial port simulation mode. The hardware working parameters and software communication protocol of the device serial port can be set independently, supports multi-protocol parallel testing, and has communication error creation function.
It realizes the adaptation of multi-serial hardware and multi-communication protocols, which can eliminate the need for real external devices, reduce test costs, fully verify the error handling logic of the satellite master control, improve system reliability, shorten the test cycle, and is suitable for verification of complex multi-device collaborative scenarios.
Smart Images

Figure CN120090688A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of communication device simulation testing, and particularly to a communication testing system for on-board dual-mode multi-serial ports. Background Art
[0002] The satellite payload system has increasingly adopted the method of using a single master controller to control multiple external devices to meet its complex functional requirements. The master controller of the satellite payload is mostly connected to external devices through general interfaces to reduce the complexity of the product and improve its reliability. Among them, the asynchronous serial interface is a relatively common general interface. The controlled external devices are usually various different functional components with relatively single functions. For example, the payload thermostat mainly realizes the temperature control of the payload, the stepper motor controller mainly realizes the driving function of the stepper motor in the payload, and the imaging circuit mainly realizes the function of obtaining remote sensing images, etc. Different controlled devices generally have different asynchronous serial hardware requirements and different communication protocol requirements. Comprehensive testing of the functions and performances of these interfaces of the on-board master plays a crucial role in the research and development process of the on-board master device. In the existing communication interface testing method systems, many use real external devices for testing, and there are also serial port simulation detection methods for single devices, that is, to detect the communication function of the serial port to be tested and confirm whether the serial port hardware and its functions are normal. Among the existing communication testing methods, there are methods for multi-serial port and multi-device detection of the same device, and the functions of single listening or single simulation of the communication protocol for the same device are implemented. There is no method and device for multi-device serial port detection that adapts to multi-serial port hardware and multi-communication protocols.
[0003] In summary, the present application proposes a communication testing system for on-board dual-mode multi-serial ports. Summary of the Invention
[0004] The object of the present invention is to address the problem in the background art that there is no method for multi-device serial port detection that adapts to multi-serial port hardware and multi-communication protocols in the existing communication testing methods, and to propose a communication testing system for on-board dual-mode multi-serial ports.
[0005] The technical solution of the present invention: A communication testing system for on-board dual-mode multi-serial ports, comprising:
[0006] A core master control module, which uses a multi-serial port MCU controller and is configured with at least two device serial ports and one monitoring interface;
[0007] The hardware working parameters and software communication protocols of the device serial ports can be independently set to adapt to the asynchronous serial interface requirements of different external devices;
[0008] The system supports dual-mode switching:
[0009] a) Serial port monitoring mode: The device's serial port is configured in the monitoring mode to independently monitor the transmission information of the on-board main control serial port, check the data correctness based on the preset communication protocol, and output the inspection results through the monitoring interface;
[0010] b) Serial port emulation mode: The device's serial port is configured in the emulation mode to simulate the response of external devices, parse the main control instructions according to the preset protocol and generate response signals. At the same time, it supports the communication error-making function, and the error-making types include at least one of baud rate exception, frame header error, frame length mismatch, and frame check failure, and outputs the test results through the monitoring interface.
[0011] Optionally, the monitoring interface is one of a serial port, a USB interface, or an Ethernet interface, and is used to configure the working mode, hardware parameters, and communication protocol of the device's serial port.
[0012] Optionally, the communication error-making function is implemented by dynamically modifying the keyword fields in the hardware parameters or software protocol of the device's serial port to simulate abnormal scenarios in the actual communication environment.
[0013] Optionally, the device's serial port supports multi-protocol parallel testing in the emulation mode, and each device's serial port can be independently configured with different communication protocols to simultaneously simulate the interaction behaviors of multiple external devices.
[0014] Optionally, the system further includes a real-time statistics module for recording and outputting the correct rate, error type, and response delay time of the main control sending instructions.
[0015] Compared with the prior art, the present application includes at least one of the following beneficial technical effects:
[0016] The present invention can modify the software and hardware parameters of the serial port emulation device according to the requirements of external devices, has versatility, can use multiple serial ports to simultaneously emulate the interfaces of the same communication protocol, and can use multiple serial ports to simultaneously emulate the interfaces of different communication protocols.
[0017] The present invention can work in the serial port monitoring mode, monitor the correct / error instructions of the instruction frames sent by the main control, and perform real-time statistics.
[0018] The present invention can work in the serial port emulation mode, monitor the correct / error instructions of the instruction frames sent by the main control, parse the instruction functions, and emulate the external serial port device to perform simulated responses.
[0019] Based on the simulated response, the present invention can perform communication response error-making functions of multiple types (baud rate, frame header, frame length, frame check), can comprehensively test the correct and error branch functions of the on-board main control board software, improve the stability of the on-board main control board while reducing the development cost.
[0020] In summary, the present invention supports the independent configuration of various hardware parameters and protocols, adapts to the test requirements of different satellite payload devices, does not rely on real external devices, reduces the test cost, can comprehensively verify the error handling logic of the on-board main control through the dynamic error generation function, improves the system reliability, runs different protocols in parallel through multiple serial ports, shortens the test cycle, is applicable to the verification of complex multi-device collaborative scenarios, and the real-time statistics function provides detailed error type distribution and performance indicators, providing data support for optimizing the main control software. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a working flow chart of a communication test system for an on-board dual-mode multi-serial port. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0022] The technical solutions of the present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.
[0023] Embodiment 1
[0024] As Figure 1 shown, a communication test system for an on-board dual-mode multi-serial port proposed by the present invention includes:
[0025] A core main control module, which uses a multi-serial port MCU controller and configures at least two device serial ports and one monitoring interface; the monitoring interface is one of a serial port, a USB interface or an Ethernet interface, and is used to configure the working mode, hardware parameters and communication protocol of the device serial port. The selection of various types of monitoring interfaces facilitates the connection of different test environments and devices. Whether it is a traditional serial port device or a USB or Ethernet device with high-speed transmission requirements, it can be easily accessed, greatly expanding the application scope of the system and reducing the test obstacles caused by interface incompatibility.
[0026] The hardware working parameters and software communication protocols of the device serial port can be independently set to adapt to the asynchronous serial interface requirements of different external devices; the device serial port supports multi-protocol parallel testing in the simulation mode, and each device serial port can be independently configured with different communication protocols to simultaneously simulate the interaction behaviors of various external devices. The independent setting of hardware parameters and software protocols enables the system to flexibly respond to the complex interface requirements of various external devices. In satellite projects, different payload devices often adopt different communication standards, and this feature can ensure that the system seamlessly docks with various devices without the need for additional conversion or adaptation hardware development. The multi-protocol parallel testing function significantly improves the test efficiency, and R & D personnel can simultaneously test and verify the communication protocols of multiple devices, greatly shortening the overall test cycle.
[0027] The system supports dual-mode switching:
[0028] a) Serial Port Monitoring Mode: The device's serial port is configured in the monitoring mode to independently monitor the transmitted information of the on-board main control serial port, check the data correctness based on the preset communication protocol, and output the inspection results through the monitoring interface. The serial port monitoring mode can monitor and verify the data of the on-board main control serial port in real time and independently. This helps to promptly detect potential problems in the data transmission process of the on-board main control, such as protocol errors and data transmission errors. By outputting the inspection results, it provides intuitive data feedback for R & D personnel, facilitating their quick positioning and problem-solving, and ensuring the accuracy and stability of the data transmission of the on-board main control system.
[0029] b) Serial Port Emulation Mode: The device's serial port is configured in the emulation mode to simulate the response of external devices, parse the main control instructions according to the preset protocol and generate response signals. At the same time, it supports the communication error injection function, and the error types include at least one of baud rate anomaly, frame header error, frame length mismatch, and frame check failure, and outputs the test results through the monitoring interface. The serial port emulation mode simulates the response of real external devices, providing a test scenario close to the actual operating environment for the on-board main control system. In this mode, by actively injecting various communication errors, it can comprehensively test the fault tolerance ability and error handling mechanism of the on-board main control. The output test results provide a key basis for optimizing the system reliability, helping to enhance the anti-interference and self-repair capabilities of on-board devices in the complex space environment.
[0030] Among them, the communication error injection function is realized by dynamically modifying the hardware parameters of the device's serial port or the key fields in the software protocol to simulate abnormal scenarios in the actual communication environment. The error injection methods of dynamically modifying hardware parameters and software protocol key fields highly simulate various communication anomalies that may occur in the actual space environment. This flexible and precise error injection means makes the test more targeted and realistic, enabling R & D personnel to deeply understand the operating performance of the on-board main control system in extreme situations, and thus conduct targeted system optimization and improvement.
[0031] Working Principle:
[0032] Serial Port Monitoring Mode: The system sets the two device serial ports to the monitoring mode, independently configures the hardware parameters (such as baud rate, data bits, stop bits) and software communication protocols (such as frame format, check mode) of each serial port, captures the instruction data stream sent by the on-board main control in real time, parses and verifies the data correctness according to the preset protocol (such as checksum, instruction format), and counts the error types (such as frame loss, protocol mismatch). The results are fed back to the host computer through the monitoring interface.
[0033] Serial Port Emulation Mode: The device's serial port is switched to the emulation mode to simulate the behavior of external devices. After receiving the master control instruction, the system generates a response signal according to the preset protocol (such as the thermostat returns temperature data, and the motor controller returns a status code). At the same time, it supports actively injecting communication errors (such as baud rate offset, missing frame header / trailer, checksum error) to test the fault tolerance of the master control device. The error injection parameters can be dynamically configured through the monitoring interface.
[0034] The serial ports of each device can be independently configured with different communication protocols (such as RS-422, RS-485, custom protocol), and support simulating the interaction scenarios of multiple external devices at the same time. For example, one serial port emulates the Modbus protocol of a thermostat, and the other serial port emulates the CAN protocol of a motor.
[0035] The monitoring interface displays in real time metrics such as the throughput, error rate, and response latency of the master control sent instructions, which is conducive to generating test reports and supporting fault location and performance optimization.
[0036] The present invention supports independent configuration of various hardware parameters and protocols, adapts to the test requirements of different satellite payload devices, does not rely on real external devices, and reduces the test cost. Through the dynamic error generation function (such as abnormal baud rate, frame checksum error), the error handling logic of the on-board master control can be comprehensively verified, and the system reliability can be improved. Multiple serial ports run different protocols in parallel, shortening the test cycle and being applicable to the verification of complex multi-device collaboration scenarios. The real-time statistics function provides detailed error type distribution and performance metrics, providing data support for optimizing the master control software.
[0037] Embodiment 2
[0038] Based on Embodiment 1, the system of this embodiment further includes a real-time statistics module for recording and outputting the correct rate, error type, and response delay time of the master control sent instructions. The real-time statistics module provides accurate operation data, enabling R & D personnel to clearly understand the operation status of the system at different stages. By analyzing the correct rate and error type, the problem points in the system can be quickly located. For example, a frequently occurring error type can guide R & D personnel to troubleshoot the corresponding hardware or software module. The statistics of the response delay time help evaluate the response performance of the system and provide a strong basis for optimizing the real-time performance of the system, thereby comprehensively improving the operation quality of the system.
[0039] Embodiment 3
[0040] In this embodiment, a communication test system is provided. The system is characterized by an MCU controller (ARM-type MCU) with multiple serial ports as the core master control of the simulation test system, and at least two device serial ports (simulating external devices) and a monitoring interface (connecting to the host computer, setting the working mode of the simulation test system, and displaying the correct and error instruction counting functions of real-time statistics) are required. Using an ARM-type MCU as the core master control benefits from its powerful processing ability and rich peripheral resources. The powerful processing ability can efficiently run complex simulation test programs, ensuring the fluency and stability of the system when processing multiple tasks and multiple protocols. The rich peripheral resources facilitate the connection with various device serial ports, simplifying the complexity of the hardware design. At the same time, the mature ecosystem of the ARM MCU provides developers with a large number of development tools and technical support, reducing the development difficulty, shortening the development cycle, and helping to quickly build and improve the communication test system.
[0041] Develop the corresponding simulation test program for this system to achieve the switching of dual modes, implement the functions of the communication protocols of the corresponding devices, and implement the functions of communication protocol, data processing and detection, instruction parsing and response of the corresponding devices. The specially developed simulation test program closely fits the system hardware architecture and functional requirements. Achieving dual-mode switching provides the system with diverse test means to meet the requirements of different test scenarios. The implementation of the device communication protocol function ensures that the system can accurately simulate the communication behaviors of various external devices. The improvement of data processing, detection, instruction parsing and response functions enables the system to interact with the on-board master control system comprehensively and accurately, providing a solid software foundation for testing and optimizing the on-board communication system.
[0042] The above specific embodiments are only several optional embodiments of the present invention. Based on the technical solution of the present invention and the relevant inspirations of the above embodiments, those skilled in the art can make various alternative improvements and combinations to the above specific embodiments.
Claims
1. A satellite-borne dual-mode multi-serial port communication test system, characterized in that: include: The core control module adopts a multi-serial port MCU controller and is equipped with at least two device serial ports and one monitoring interface; The hardware operating parameters and software communication protocol of the device serial port can be set independently to adapt to the asynchronous serial interface requirements of different external devices; The system supports dual-mode switching: a) Serial port monitoring mode: The device serial port is configured in monitoring mode, independently monitoring the information sent by the onboard main control serial port, checking the correctness of the data based on the preset communication protocol, and outputting the inspection results through the monitoring interface; b) Serial port simulation mode: The device serial port is configured in simulation mode to simulate the response of external equipment, parse the main control command according to the preset protocol and generate a response signal. It also supports the communication error correction function. The error types include at least one of abnormal baud rate, frame header error, frame length discrepancy and frame check failure, and output the test results through the monitoring interface.
2. The satellite-borne dual-mode multi-serial port communication test system according to claim 1, characterized in that: The monitoring interface is one of a serial port, a USB interface or an Ethernet interface, and is used to configure the working mode, hardware parameters and communication protocol of the device serial port.
3. The satellite-borne dual-mode multi-serial port communication test system according to claim 1, characterized in that: The communication error generation function is implemented by dynamically modifying the hardware parameters of the device serial port or the key fields in the software protocol to simulate abnormal scenarios in an actual communication environment.
4. The satellite-borne dual-mode multi-serial port communication test system according to claim 1, characterized in that: The device serial port supports multi-protocol parallel testing in simulation mode, and each device serial port can be independently configured as a different communication protocol to simulate the interactive behavior of multiple external devices at the same time.
5. The satellite-borne dual-mode multi-serial port communication test system according to claim 1, characterized in that: The system also includes a real-time statistics module for recording and outputting the accuracy rate, error type and response delay time of the instructions sent by the master control.
Citation Information
Patent Citations
Simulation method based on sensing device
CN105577439A
Coal mine power supply monitoring system and method applicable to various protocol comprehensive protectors
CN106681259A
Satellite test system and method suitable for multiple analogue simulation states
CN112666847A
Multifunctional satellite simulation test system and method
CN112947384A
Universal serial bus emulation of peripheral devices
WO2015138912A1