Dds communication simulation test system and method, electronic equipment and storage medium

By using Canoe devices and the RTPS protocol in DDS communication simulation testing, the same network and bidirectional information interaction between the publisher and subscriber are achieved, solving the applicability and complexity issues of existing DDS communication testing technologies, improving testing efficiency and accuracy, and making it suitable for vehicle-mounted scenarios.

CN120896859BActive Publication Date: 2026-11-24DEEPAL AUTOMOBILE NANJING RESEARCH INSTITUTE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511065217.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-07-31
Publication Date
2026-11-24
Estimated Expiration
2045-07-31

AI Technical Summary

Technical Problem

Existing DDS communication simulation testing systems cannot achieve two-way information interaction between the publisher and subscriber in vehicle scenarios, which limits the applicability of the test and makes the test prerequisites complicated, making it difficult to become a general testing solution.

Method used

DDS communication simulation test was implemented using a Canoe device. By setting the IP addresses of the publisher and subscriber to be the same and placing them in the same network, data interaction was performed using the RTPS protocol, and the execution results were analyzed using a packet capture tool, supporting bidirectional information interaction between the publisher and subscriber.

Benefits of technology

It enables bidirectional information exchange across the entire DDS communication chain, simplifies test environment setup and configuration, improves test efficiency and accuracy, is applicable to different OEMs and test scenarios, and meets the stringent requirements of automotive scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120896859B_ABST
    Figure CN120896859B_ABST
Patent Text Reader

Abstract

This invention relates to data transmission in in-vehicle distributed systems, specifically to a DDS communication simulation testing system, method, electronic device, and storage medium. The system includes: acquiring a test request; running a test script according to the test request; starting a publisher; and using the publisher to publish test sample data and communicate with a subscriber. The publisher is a Canoe device, and the subscriber is the device under test (DUT), or the publisher is the DUT and the subscriber is a Canoe device. The system captures test messages exchanged between the publisher and subscriber; parses the test messages to obtain execution results; compares the execution results with preset conditions; and outputs test results. This system enables bidirectional information interaction, improves the test chain, simplifies the test process, and enhances test efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to data transmission in vehicle-mounted distributed systems, specifically to a DDS communication simulation test system, method, electronic device, and storage medium. Background Technology

[0002] Data Distributed Service (DDS), as a next-generation distributed real-time communication middleware protocol and API standard, traces its technological roots back to early applications in naval systems. Leveraging the core advantages of its publish-subscribe model, this technology enables real-time data transmission, efficient interaction, security protection, and flexible adaptation, perfectly meeting the diverse needs of distributed communication scenarios. Therefore, it has been widely used in defense, civil aviation, and industrial control fields. With the increasing demand for high-reliability communication technologies in the automotive sector, domestic OEMs are focusing more of their R&D efforts on the development and practical application of DDS in automotive scenarios.

[0003] For example, some related technologies involve constructing a DDS publishing model, matching the model with hardware IP addresses to achieve simulation connections, and relying on dSPACE to complete inter-domain communication. However, this solution only supports Ethernet communication on the DDS publishing end and cannot achieve bidirectional information exchange between the publishing and subscribing ends, limiting its applicability in end-to-end testing scenarios. Another example is the construction of a test system including an industrial control computer, a DDS server, the hardware under test, a CICD platform, and test cases. However, this solution's strong dependence on the CICD platform leads to complex testing prerequisites, making it difficult to become a universal testing solution and significantly reducing its versatility. Summary of the Invention

[0004] The purpose of this invention is to provide a DDS communication simulation test system, method, electronic device and storage medium, which can realize two-way information interaction, improve the test link, simplify the test process and improve test efficiency.

[0005] To achieve the above objectives, the technical solution adopted by the present invention is as follows: In a first aspect, the present invention discloses a DDS communication simulation test method, which includes: Obtain a test request, run a test script according to the test request, start the publishing end, and use the publishing end to publish test sample data and communicate with the subscription end; the publishing end is a Canoe device and the subscription end is the device under test, or the publishing end is the device under test and the subscription end is a Canoe device; The test messages between the publisher and subscriber are captured, the test messages are parsed to obtain the execution results, the execution results are compared with preset conditions, and the test results are output.

[0006] Furthermore, before obtaining the test request from the device under test, the method further includes: connecting the publisher and the subscriber via Ethernet, and setting the IP addresses of the publisher and the subscriber to be the same, so that the publisher and the subscriber are in the same network.

[0007] Furthermore, the test scripts include publisher test scripts and subscriber test scripts; The creation of the release-side test script includes: Create a new vCDL script file, import the DDS module and function library into the vCDL script file, so that the test script can obtain DDS protocol support; Establish DDS domains and data topics, and configure the publisher and QoS policies; Specify the network interface used by the publishing end; The creation process for the subscription-side test script is the same as that for the publishing-side test script.

[0008] Furthermore, the execution result is whether the subscriber has received the test sample data published by the publisher; If the subscriber receives the test sample data published by the publisher, the test is considered to have passed; otherwise, the test is considered to have failed.

[0009] Furthermore, the test sample data published by the publishing end is encapsulated as RTPS messages, and the publishing end and the subscription end complete data interaction through the RTPS protocol.

[0010] Furthermore, the data interaction between the publisher and subscriber via the RTPS protocol includes: DDS nodes broadcast handshake information to their surroundings, and DDS participants are identified after a successful handshake. DDS participants confirm the subscriber and publisher by sending and receiving messages; The publishing end encapsulates the test sample data into Data sub-messages in the RTPS protocol, publishes them over the network, and periodically sends heartbeat messages after sending the Data sub-messages. After receiving the Data sub-message and the heartbeat message, the subscriber responds to the publisher via an AckNack message. If the subscriber verifies that the received Data sub-message is correct, it reports in the AckNack message that the test sample data has been received completely. If the subscriber finds that some Data sub-messages are missing, it reports in the AckNack message that the test sample data has not been received completely.

[0011] Furthermore, the packet capture tool displays the parsed execution results through a graphical interface.

[0012] Secondly, this invention discloses a DDS communication simulation test system, which includes: The acquisition module is used to acquire test requests, run test scripts according to the test requests, start the publishing end, and use the publishing end to publish test sample data and communicate with the subscription end; the publishing end is a Canoe device and the subscription end is the device under test, or the publishing end is the device under test and the subscription end is a Canoe device; The capture module is used to capture test messages exchanged between the publisher and subscriber, and parse the test messages to obtain the execution results; The judgment module is used to compare the execution result with preset conditions and output the test result.

[0013] Thirdly, the present invention discloses an electronic device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the aforementioned DDS communication simulation test method.

[0014] Fourthly, the present invention discloses a computer-readable storage medium having a computer program stored thereon, which is executed by a processor to implement the above-described DDS communication simulation test method.

[0015] The present invention has the following unexpected beneficial effects: 1. This invention supports bidirectional information interaction between the publishing end and the subscription end, which can fully cover the entire link scenario of DDS communication, enabling the test to more realistically simulate the bidirectional data flow process in the vehicle environment, ensuring the functional integrity and reliability of the device under test in actual communication scenarios, and improving the comprehensiveness and accuracy of the test.

[0016] 2. This invention can complete testing solely based on Canoe devices, significantly simplifying the test environment setup and configuration adaptation processes, reducing operational complexity, and substantially improving testing efficiency. It also facilitates rapid deployment and application in engineering practice. Furthermore, testing based on Canoe devices eliminates the need for additional dedicated equipment or platforms, reducing dependence on specific hardware / software environments and making it easier to promote and apply across different OEMs and testing scenarios, thus enhancing its versatility.

[0017] 3. By optimizing the testing process and improving interactive functions, this invention can better meet the stringent requirements of DDS communication testing in automotive scenarios. Its simplified operation and comprehensive testing capabilities can accelerate the verification and implementation of DDS technology in automotive Ethernet, providing strong support for the related technology research and development of domestic OEMs. Attached Figure Description

[0018] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention.

[0019] Figure 1 A flowchart illustrating the DDS communication simulation test method according to an embodiment of the present invention is shown.

[0020] Figure 2 A schematic diagram illustrating the creation process of the test script according to an embodiment of the present invention is shown.

[0021] Figure 3 This diagram illustrates the data interaction process between the publisher and subscriber as described in an embodiment of the present invention.

[0022] Figure 4 A schematic diagram of the structure of the DDS communication simulation test device according to an embodiment of the present invention is shown.

[0023] Figure 5 A schematic diagram of the hardware entity of an electronic device provided in an embodiment of the present invention is shown. Detailed Implementation

[0024] The embodiments of the present invention will be described below with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention and not for limiting the scope of protection of the present invention.

[0025] In one embodiment, the present invention discloses a DDS communication simulation test method, see [link to relevant documentation]. Figure 1 As shown, it includes: Obtain a test request, run a test script according to the test request, start the publishing end, and use the publishing end to publish test sample data and communicate with the subscription end; the publishing end is a Canoe device and the subscription end is the device under test, or the publishing end is the device under test and the subscription end is a Canoe device; The test messages between the publisher and subscriber are captured, the test messages are parsed to obtain the execution results, the execution results are compared with preset conditions, and the test results are output.

[0026] This invention supports bidirectional information interaction between the publisher and subscriber, fully covering the entire DDS communication chain. This feature enables testing to more realistically simulate the bidirectional data flow process in an in-vehicle environment, ensuring the functional integrity and reliability of the device under test in actual communication scenarios, and improving the comprehensiveness and accuracy of the testing.

[0027] This invention enables testing solely based on Canoe devices, significantly simplifying test environment setup and configuration, reducing operational complexity, and greatly improving testing efficiency. It also facilitates rapid deployment and application in engineering practice. Furthermore, testing based on Canoe devices eliminates the need for additional dedicated equipment or platforms, reducing dependence on specific hardware / software environments and making it easier to promote and apply across different OEMs and testing scenarios, thus enhancing its versatility.

[0028] This invention, by optimizing the testing process and improving interactive functions, better meets the stringent requirements of DDS communication testing in automotive scenarios. Its simplified operation and comprehensive testing capabilities can accelerate the verification and implementation of DDS technology in automotive Ethernet, providing strong support for the related technology research and development of domestic OEMs.

[0029] In a preferred embodiment of the present invention, before obtaining the test request from the device under test, the method further includes: connecting the publisher and the subscriber via Ethernet, and setting the IP addresses of the publisher and the subscriber to be the same, so that the publisher and the subscriber are in the same network.

[0030] In this preferred embodiment, the unified IP address configuration avoids complex subnetting, gateway configuration, or routing rule settings, reducing connection failures caused by network parameter mismatches. For testers, no in-depth knowledge of network protocols is required to quickly complete network adaptation between the publisher and subscriber, significantly lowering the technical threshold and operational complexity of setting up the test environment.

[0031] Being on the same network is a fundamental prerequisite for data interaction in the publish-subscribe model. This configuration ensures that DDS data sent by the publisher can be directly recognized and received by the subscriber, avoiding delays, packet loss, or data filtering issues caused by cross-network segment communication. This provides stable underlying network support for subsequent bidirectional information exchange between the publisher and subscriber, reducing testing errors caused by network anomalies from the outset. Furthermore, the shared network configuration provides a bidirectional channel for the publisher to push data to the subscriber and for the subscriber to provide status feedback to the publisher, ensuring the core functionality of bidirectional publish-subscribe interaction and further mitigating the limitations of existing technologies.

[0032] In practical applications of automotive Ethernet, DDS publishers (such as sensors and domain controllers) and subscribers (such as actuators and central control systems) are typically located within the same in-vehicle local area network. This setup accurately simulates the network deployment status of devices in an in-vehicle environment, making the test scenario closer to real-world application conditions. This ensures that the test results effectively reflect the communication performance of the tested devices after actual installation in a vehicle, enhancing the reference value of the test.

[0033] As a preferred embodiment of the present invention, see Figure 2 As shown, the test script includes a publisher test script and a subscriber test script; The creation of the release-side test script includes: Create a new vCDL script file, import the DDS module and function library into the vCDL script file, so that the test script can obtain DDS protocol support; Establish DDS domains and data topics, and configure the publisher and QoS policies; Specify the network interface used by the publishing end; The creation process for the subscription-side test script is the same as that for the publishing-side test script.

[0034] In this preferred embodiment, by importing the DDS module and function library into the vCDL script, the test script directly gains native support for the DDS protocol, avoiding problems such as data format errors and interaction logic deviations caused by insufficient protocol adaptation. This operation ensures that the test script can accurately comply with the DDS protocol specification, laying the foundation for the correctness of subsequent publish-subscribe interactions and improving the professionalism and reliability of the test script.

[0035] The test scripts for both the publisher and subscriber sides employ the same creation process, including steps such as importing the protocol library, establishing domains and topics, configuring node parameters, and specifying network interfaces. This forms a unified development standard. For testers, there's no need to learn different development logic for each script, reducing learning costs and operational errors. For test projects, the standardized process facilitates batch development, version management, and reuse of scripts, reducing redundant work caused by inconsistent processes and significantly improving script development efficiency. Furthermore, because the publisher and subscriber scripts use symmetrical development logic and both complete protocol adaptation, parameter configuration, and interface binding, both sides can achieve bidirectional interaction such as data publishing-receiving and request-response based on unified rules. This feature directly supports the core advantage of this invention—simultaneous information interaction between the publisher and subscriber sides—at the script level, effectively overcoming the deficiency of existing technologies that only support single-end communication and ensuring the integrity of the entire DDS communication chain test.

[0036] The establishment of the DDS domain and data topic ensures that the publisher and subscriber interact based on the same communication domain and data topic, avoiding data silos caused by domain isolation or topic mismatch; the QoS policy configuration can flexibly set service quality parameters according to the needs of the vehicle scenario, enabling the test script to simulate communication needs under different working conditions and improve the scenario coverage of the test. By specifying the network interface, the communication interface between the publisher and subscriber is clearly defined, avoiding interface conflicts in a multi-NIC environment and ensuring the uniqueness and stability of the data transmission path.

[0037] vCDL, as the native scripting language of Canoe devices, fully leverages Canoe's integrated advantages in automotive bus testing when combined with the DDS module, such as real-time monitoring, data logging, and automated execution. Testers can directly call scripts through Canoe's visual interface, simplifying the script debugging and test execution process and further lowering the testing threshold.

[0038] In a preferred embodiment of the present invention, the execution result is whether the subscriber receives the test sample data published by the publisher; if the subscriber receives the test sample data published by the publisher, the test is determined to pass; otherwise, the test is determined to fail.

[0039] The judgment method of this preferred embodiment greatly simplifies the logic of result judgment, enabling testers to quickly determine whether the basic communication functions of the device under test are normal, and improving the intuitiveness of the test results and the efficiency of judgment.

[0040] In automotive Ethernet applications, a fundamental requirement for DDS communication is the accurate transmission of data from the publisher (e.g., sensors) to the subscriber (e.g., controllers). Otherwise, subsequent data analysis, command execution, and other processes become impossible. This criterion ensures that test results directly reflect the most basic communication feasibility of the device under test in practical applications, laying a reliable foundation for subsequent, more complex functional tests.

[0041] In a preferred embodiment of the present invention, the test sample data published by the publishing end is encapsulated as an RTPS message, and the publishing end and the subscribing end complete data interaction through the RTPS protocol.

[0042] RTPS (Real-time Publish-Subscribe Protocol) is the underlying transport protocol of DDS. Encapsulating test sample data into RTPS messages and interacting through this protocol ensures that the communication process between the publisher and subscriber conforms to unified technical specifications, avoiding platform barriers caused by proprietary protocols. Regardless of different vendors' DDS implementations or different hardware architectures, seamless integration can be achieved based on the RTPS protocol, significantly improving the cross-platform adaptability of the testing system.

[0043] As a preferred embodiment of the present invention, see Figure 3 As shown, the data interaction between the publisher and subscriber via the RTPS protocol includes: DDS nodes broadcast handshake information to their surroundings, and once the handshake is successful, the DDS participants are identified.

[0044] DDS nodes establish initial connections by broadcasting handshake messages, ensuring that all potential publishers and subscribers in the network are accurately identified and included in the communication domain, avoiding one-way communication or data silos caused by missing nodes. This configuration provides a prerequisite for bidirectional interaction between publishers and subscribers, offering greater flexibility and adaptability than the statically configured communication modes in existing technologies.

[0045] DDS participants confirm the subscriber and publisher by sending and receiving messages.

[0046] By confirming the identities of the publisher and subscriber through message exchange, both parties can clarify the direction and responsibilities of data transmission at the beginning of communication, reducing logical confusion in subsequent interactions, such as the subscriber sending data incorrectly or the publisher receiving instructions incorrectly, and improving the standardization of the communication link.

[0047] The publishing end encapsulates the test sample data into Data sub-messages in the RTPS protocol, publishes them over the network, and periodically sends heartbeat messages after sending the Data sub-messages.

[0048] Test sample data is encapsulated into RTPS standard Data sub-messages to ensure the data format conforms to the protocol specifications and avoids parsing errors caused by format incompatibility. The heartbeat messages periodically sent by the publisher provide subscribers with real-time feedback on data transmission status, enabling them to promptly perceive the publisher's online status and data transmission rhythm. If the heartbeat is interrupted, communication anomalies such as network disconnection or publisher failure can be quickly identified.

[0049] After receiving the Data sub-message and heartbeat message, the subscriber responds to the publisher via an AckNack message. If the subscriber verifies that the received Data sub-message is correct, it will report that the test sample data has been received completely in the AckNack. If the subscriber finds that some Data sub-messages are missing, it will report a non-acknowledgment mode in the AckNack, indicating that the test sample data has not been received completely.

[0050] The subscriber uses AckNack messages to accurately report the data reception status. Complete reception confirms successful communication, while partial loss identifies missing content. This closed-loop feedback allows the publisher to specifically retransmit lost data, significantly reducing the risk of data loss due to network jitter and interference. In automotive scenarios, this mechanism is crucial for ensuring the integrity of critical data.

[0051] The RTPS protocol's interaction process perfectly replicates the underlying logic of real-world in-vehicle DDS communication: from node discovery and role negotiation to data transmission and status feedback, every step is consistent with the actual communication scenario after installation in a vehicle. This means that the testing process can not only verify whether data can be transmitted, but also simulate abnormal situations that may occur in the real environment, such as heartbeat interruption, data loss, and the effectiveness of retransmission mechanisms. This allows the test results to directly reflect the communication performance of the device under test in actual applications, providing a more realistic reference for subsequent function optimization and troubleshooting.

[0052] Because each step of the interaction process involves explicit message exchanges—handshake messages, role confirmation messages, Data sub-messages, heartbeat messages, and AckNack messages—Canoe devices, acting as testing tools, can record and parse these messages throughout the entire process. When a test fails, testers can quickly pinpoint the problem by tracing the message sequence. For example, if the handshake fails, network configuration or node compatibility issues can be investigated; if the heartbeat is interrupted, the stability of the publishing end or network link failure can be focused on; if AckNack feedback data is lost, the cause of packet loss can be analyzed (such as network congestion or improper message priority settings). This process-based troubleshooting method is more efficient than traditional, vague result-based judgments, significantly reducing the time cost of testing and troubleshooting. In a preferred embodiment of the present invention, the packet capture tool displays the parsed execution results through a graphical interface.

[0053] The graphical interface transforms complex message data, interaction sequences, and status indicators into intuitive charts, flowcharts, or status markers, such as a green indicator for successful data transmission, a red warning for packet loss, and interaction nodes on a timeline. Testers can quickly understand the communication status, data transmission links, and execution results between the publisher and subscriber without needing to delve into the raw data format or protocol details, significantly reducing information processing time and improving decision-making efficiency during testing.

[0054] In one embodiment, the present invention discloses a DDS communication simulation test system, see [link to relevant documentation]. Figure 4 As shown, the DDS communication simulation test system 10 includes: The acquisition module 11 is used to acquire test requests, run test scripts according to the test requests, start the publishing end, and use the publishing end to publish test sample data and communicate with the subscription end; the publishing end is a Canoe device and the subscription end is the device under test, or the publishing end is the device under test and the subscription end is a Canoe device. The capture module 12 is used to capture test messages of interaction between the publisher and the subscriber, and parse the test messages to obtain the execution results; The judgment module 13 is used to compare the execution result with the preset conditions and output the test result.

[0055] In one embodiment, the present invention discloses an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the above-described DDS communication simulation test method.

[0056] like Figure 5 As shown, the hardware entity of the electronic device 20 includes: a processor 21, a memory 22, and a communication interface 23, wherein: The processor 21 typically controls the overall operation of the electronic device 20.

[0057] The memory 22 is configured to store instructions and applications executable by the processor 21, and can also cache data to be processed or already processed by the various modules in the processor 21 and the electronic device 20, such as image data, audio data, voice communication data and video communication data, which can be implemented by flash memory or random access memory (RAM).

[0058] Communication interface 23 enables electronic devices to communicate with other terminals or servers via a network.

[0059] Data can be transferred between the processor 21, memory 22 and communication interface 23 via bus 24.

[0060] In one embodiment, the present invention discloses a computer-readable storage medium having a computer program stored thereon, which is executed by a processor to implement the DDS communication simulation test method described above.

[0061] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.

[0062] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.

[0063] In addition, each functional unit in the various embodiments of this application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.

[0064] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.

Claims

1. A DDS communication simulation test method, characterized in that, include: Obtain a test request, run a test script according to the test request, start the publishing end, and use the publishing end to publish test sample data and communicate with the subscription end; The publishing end is a Canoe device and the subscription end is the device under test, or the publishing end is the device under test and the subscription end is a Canoe device; Capture test messages that interact between the publishing end and the subscription end, parse the test messages to obtain the execution results, compare the execution results with preset conditions, and output the test results; The test scripts include publisher test scripts and subscriber test scripts; The creation of the release-side test script includes: Create a new vCDL script file, import the DDS module and function library into the vCDL script file to enable the test script to support the DDS protocol; create a DDS domain and data topic, and configure the publisher and QoS policy; Specify the network interface used by the publishing end; The creation process for the subscription-side test script is the same as that for the publishing-side test script.

2. The DDS communication simulation test method according to claim 1, characterized in that: Before obtaining the test request from the device under test, the method further includes: connecting the publisher and the subscriber via Ethernet, and setting the IP addresses of the publisher and the subscriber to be the same, so that the publisher and the subscriber are in the same network.

3. The DDS communication simulation test method according to claim 1, characterized in that: The execution result is whether the subscriber has received the test sample data published by the publisher. The test is considered passed when the subscriber receives the test sample data published by the publisher. Otherwise, the test is considered failed.

4. The DDS communication simulation test method according to claim 1, characterized in that: The test sample data published by the publishing end is encapsulated as RTPS messages, and the publishing end and the subscription end complete data interaction through the RTPS protocol.

5. The DDS communication simulation test method according to claim 4, characterized in that, The data interaction between the publisher and subscriber via the RTPS protocol includes: DDS nodes broadcast handshake information to their surroundings, and DDS participants are identified after a successful handshake. DDS participants confirm the subscriber and publisher by sending and receiving messages; The publishing end encapsulates the test sample data into Data sub-messages in the RTPS protocol, publishes them over the network, and periodically sends heartbeat messages after sending the Data sub-messages. After receiving the Data sub-message and the heartbeat message, the subscriber responds to the publisher via an AckNack message. If the subscriber verifies that the received Data sub-message is correct, it reports in the AckNack message that the test sample data has been received completely. If the subscriber finds that some Data sub-messages are missing, it reports in the AckNack message that the test sample data has not been received completely.

6. The DDS communication simulation test method according to claim 1, characterized in that: The capture module displays the parsed execution results through a graphical interface.

7. A DDS communication simulation test system, characterized in that, include: The acquisition module is used to acquire test requests, run test scripts according to the test requests, start the publishing end, and use the publishing end to publish test sample data and communicate with the subscription end. The publishing end is a Canoe device and the subscription end is the device under test, or the publishing end is the device under test and the subscription end is a Canoe device; The test scripts include publisher test scripts and subscriber test scripts; The creation of the publisher test script includes: creating a new vCDL script file, importing the DDS module and function library into the vCDL script file to enable the test script to obtain DDS protocol support; establishing a DDS domain and data topic, configuring the publisher and QoS policies; specifying the network interface used by the publisher; the creation process of the subscriber test script is the same as that of the publisher test script. The capture module is used to capture test messages exchanged between the publisher and subscriber, and parse the test messages to obtain the execution results; The judgment module is used to compare the execution result with preset conditions and output the test result.

8. An electronic device, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the DDS communication simulation test method as described in any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, The program is executed by the processor to implement the DDS communication simulation test method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Consistency testing method for vehicle-mounted Ethernet

    CN113468070A

  • Testing method and device based on DDS communication, testing equipment and storage medium

    CN115543840A