An integrated communication interface control system for semi-physical simulation

CN122963989APending Publication Date: 2026-10-23BEIJING XUANYU INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610890199.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-18
Publication Date
2026-10-23

AI Technical Summary

Technical Problem

该系统通过各功能模块协同工作,实现了多类型、多数量通信接口的集成,解决了现有通讯接口设备/系统难以满足仿真目标对多类型、大数量通讯接口需求的问题

Benefits of technology

(1)本发明通过各功能模块协同工作,实现了多类型、多数量通信接口的集成,将常用接口集成于单张板卡上,在实际使用时可根据仿真目标需要的接口数量和类型进行调整,提高了板卡上通讯接口的集成度,满足了通信仿真过程中仿真目标对多类型、大数量通信接口的需求。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122963989A_ABST
    Figure CN122963989A_ABST
Patent Text Reader

Abstract

An integrated communication interface control system for semi-physical simulation, comprising a user data subsystem, a device data subsystem and a plurality of communication interfaces; each communication interface is connected with a communication device; when a user needs to send user data to the communication device, the user data subsystem is used to receive the user data sent by the user and store the user data in a common storage area; each communication interface performs a data sending operation to send the user data to the communication device connected therewith; when the communication device needs to send device data to the user, the communication device sends the device data to the communication interface connected therewith; the communication interface transmits the device data to the device data subsystem; the device data subsystem generates a device data packet based on the received device data; and the user reads the device data packet after the device data packet is generated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to an integrated communication interface control system for hardware-in-the-loop simulation, belonging to the field of hardware design and interface communication. Background Technology

[0002] In the application scenarios of hardware-in-the-loop (HIL) simulation systems, the simulation context must be constructed based on the actual physical interface of the target device. This means the simulation process must strictly match the target device's physical interface type, quantity, electrical characteristics, mechanical connection specifications, and protocol compatibility requirements. This ensures that the interface presented by the simulation system is consistent with the real device, meeting the direct interface requirements between external physical hardware and the simulation system, and guaranteeing the realism and effectiveness of the HIL simulation. When replicating certain peripheral communication objects of the target device is costly or the data flow is difficult to reproduce, using a hardware-in-the-loop approach to simulate its peripheral interfaces for data monitoring is quite convenient.

[0003] Most existing hardware-in-the-loop (HIL) simulations are based on integrating multiple boards into a PXIE / PCIe chassis. While PXIE / PCIe chassis interface machines achieve modular design, they are typically single-port, single-board configurations. When the target being simulated has multiple external communication interfaces or a large number of the same type of communication interface, multiple boards need to be inserted into the same machine. The increase in the number of boards leads to a greater demand for board slots. Due to the limited internal space of PXIE / PCIe chassis and current technological limitations, board slot resources in existing PXIE / PCIe chassis are scarce, making it difficult for a single device to accommodate multiple boards in actual use. Furthermore, the increased number of boards also increases the risk of driver conflicts between different boards, leading to overall system malfunctions. Therefore, existing communication interface devices / systems are insufficient to meet the needs of simulated targets in hardware-in-the-loop simulations for multiple types and quantities of communication interfaces. Summary of the Invention

[0004] The technical problem solved by this invention is to overcome the shortcomings of existing technologies and provide an integrated communication interface control system for hardware-in-the-loop simulation. This system integrates multiple types and quantities of communication interfaces through the collaborative work of its various functional modules, thus solving the problem that existing communication interface devices / systems cannot meet the simulation target's requirements for multiple types and a large number of communication interfaces.

[0005] The technical solution of this invention is: An integrated communication interface control system for hardware-in-the-loop simulation includes: a common storage area, a packaged storage area, a user data subsystem, a device data subsystem, and multiple communication interfaces; Each of the communication interfaces is connected to a corresponding communication device; the integrated communication interface control system has a management queue and a device queue corresponding to each communication interface. When a user needs to send user data to a communication device, the user data subsystem receives the user data sent by the user; the user data contains target communication interface information; after receiving the user data, the user data subsystem searches for a free location in the public storage area, and after the search is completed, stores the user data in the free location, and at the same time stores the address information of the free location in the management queue of the communication interface corresponding to the target communication interface information; each communication interface performs a data distribution operation based on the address information stored in its corresponding management queue, and sends the user data corresponding to the address information stored in the management queue to the communication device connected to it; When a communication device needs to send device data to a user, it sends the data to the communication interface connected to it. Upon receiving the data, the communication interface transmits it to the device data subsystem. The device data subsystem searches for a free location in the public storage area, stores the device data in the free location, and stores the address information of the free location in the device queue. Every preset time interval, the device data subsystem performs a data packaging operation, generating a device data packet based on the address information stored in the device queue, and stores the device data packet in the packaging storage area. After the device data packet is stored in the packaging storage area, the user reads the device data packet from the packaging storage area.

[0006] Furthermore, the user data subsystem includes a receiving storage area, a user receiving module, a data forwarding module, and an interface queue management module; The user receiving module receives user data transmitted by the user and stores the user data in the receiving storage area. After the user finishes sending the user data, the user sends a storage completion signal to the data forwarding module. After receiving the storage completion signal, the data forwarding module searches for an empty location in the public storage area. After the search is completed, the user data stored in the receiving storage area is transferred to the empty location in the public storage area. At the same time, the address information of the empty location and the target communication interface information in the user data are sent to the interface queue management module. The interface queue management module performs an address information storage operation based on the target communication interface information and stores the address information in the management queue corresponding to the target communication interface information.

[0007] Furthermore, the interface queue management module performs the address information storage operation as follows: based on the target communication interface information, the interface queue management module searches for the target communication interface corresponding to the target communication interface information among all communication interfaces, and stores the address information in the management queue corresponding to the target communication interface.

[0008] Furthermore, the data distribution operation performed by the communication interface specifically involves: First, the communication interface selects the first node in its corresponding management queue as the target node; then, it executes the second step. The second step is to read the address information stored in the target node through the communication interface; then proceed to the third step. The third step is for the communication interface to locate the corresponding address information in the public storage area based on the read address information; then proceed to the fourth step. Fourth step: The communication interface reads the user data stored at the located position; then proceed to fifth step. Fifth, the communication interface sends the read user data to the communication device connected to it; then proceed to sixth step. Step 6: The communication interface determines whether the next node of the target node in the management queue is empty. If the next node of the target node is empty, the data distribution operation ends; otherwise, proceed to step 7. Step 7: The timer execution module uses the next node of the current target node in the management queue as the latest target node and repeats steps 2 to 6.

[0009] Furthermore, the device data subsystem includes a device receiving module, a device queue management module, and a device packaging module; The device receiving module receives device data transmitted from the communication interface and searches for a free location in the public storage area. After the search is completed, it stores the device data in the free location and sends the address information of the free location to the device queue management module. The device packaging module performs device data packaging operations, generates device data packets based on the address information stored in the device queue, and stores the device data packets in the packaging storage area. After the device data packets are stored in the packaging storage area, the device packaging module sends a read signal to the user. After receiving the read signal, the user reads the device data packets from the packaging storage area.

[0010] Furthermore, the device packaging module performs the device data packaging operation as follows: the device packaging module searches for all device data corresponding to all address information currently stored in the device queue in the public storage area, and packages all the found device data to generate a device data packet.

[0011] Furthermore, after the device packaging module completes the device data packaging operation, it deletes the packaged device data from the public storage area and deletes the node in the device queue that stores the address information corresponding to the packaged device data. After the user finishes reading the device data packet, they send a read completion signal to the device packaging module. Upon receiving the read completion signal, the device packaging module deletes the device data packet read by the user from the packaging storage area.

[0012] Furthermore, after the communication interface sends user data to the communication device, it defines the address information of the sent user data as completed address information and sends the completed address information to the user data subsystem. After receiving the completed address information, the user data subsystem deletes the data stored at the location corresponding to the completed address information in the public storage area, and at the same time deletes the node storing the completed address information in the management queue corresponding to the communication interface.

[0013] Furthermore, the communication interfaces include a serial port, a CAN interface, a DA interface, and an AD interface.

[0014] Furthermore, the integrated communication interface control system is implemented based on FPGA; The user generates user data on the host computer. After the user data is generated, the host computer sends it to the device data subsystem of the integrated communication interface control system. At the same time, the user reads the device data packets in the packaged storage area through the host computer. The FPGA is connected to the host computer via a PCIe interface; user data generated by the user on the host computer is sent to the FPGA via the PCIe interface.

[0015] The advantages of this invention compared to the prior art are: (1) This invention integrates multiple types and quantities of communication interfaces by working together of various functional modules. Commonly used interfaces are integrated on a single board. In actual use, the number and type of interfaces required by the simulation target can be adjusted, which improves the integration of communication interfaces on the board and meets the needs of the simulation target for multiple types and large quantities of communication interfaces in the communication simulation process.

[0016] (2) This invention integrates multiple communication interfaces into one system and is implemented on one FPGA board. In actual use, the host computer only needs to configure the FPGA driver, which reduces the number of boards required for physical simulation and fundamentally solves the problem of easy conflict between drivers of different boards.

[0017] (3) The present invention improves the integration and versatility of the communication interface, reduces the number of boards required for hardware-in-the-loop simulation, and thus reduces the cost of hardware-in-the-loop simulation.

[0018] (4) The present invention receives user data sent by the user in the receiving storage area, transfers the user data and device data to be sent in the public storage area, and stores the packaged data in the packaging storage area. The various data are stored separately, so that the user data subsystem and the device data subsystem can operate independently on different data storage areas, avoiding interference between different modules.

[0019] (5) After the communication interface data is sent and the user reads the device data, the present invention instructs the user data subsystem and the device data subsystem to clean up the remaining data in the queue and storage area respectively, so as to avoid data accumulation and reduce memory burden. Attached Figure Description

[0020] Figure 1 This is a schematic diagram of an integrated communication interface control system for hardware-in-the-loop simulation according to the present invention. Figure 2 This is a schematic diagram of the user data subsystem in an integrated communication interface control system for hardware-in-the-loop simulation according to the present invention. Figure 3 This is a schematic diagram of the device data subsystem in an integrated communication interface control system for hardware-in-the-loop simulation according to the present invention. Figure 4 This is a flowchart illustrating the data distribution operation performed by the communication interface in an integrated communication interface control system for semi-physical simulation according to the present invention. Detailed Implementation

[0021] The specific embodiments of the present invention will now be described in further detail with reference to the accompanying drawings.

[0022] like Figure 1 As shown, the present invention provides an integrated communication interface control system for hardware-in-the-loop simulation, including: a common storage area, a packaged storage area, a user data subsystem, a device data subsystem, and multiple communication interfaces; Each of the communication interfaces is connected to a corresponding communication device; the integrated communication interface control system has a management queue and a device queue corresponding to each communication interface. When a user needs to send user data to a communication device, the user data subsystem receives the user data sent by the user; the user data contains target communication interface information; after receiving the user data, the user data subsystem searches for a free location in the public storage area, and after the search is completed, stores the user data in the free location, and at the same time stores the address information of the free location in the management queue of the communication interface corresponding to the target communication interface information; each communication interface performs a data distribution operation based on the address information stored in its corresponding management queue, and sends the user data corresponding to the address information stored in the management queue to the communication device connected to it; When a communication device needs to send device data to a user, it sends the data to the communication interface connected to it. Upon receiving the data, the communication interface transmits it to the device data subsystem. The device data subsystem searches for a free location in the public storage area, stores the device data in the free location, and stores the address information of the free location in the device queue. Every preset time interval, the device data subsystem performs a data packaging operation, generating a device data packet based on the address information stored in the device queue, and stores the device data packet in the packaging storage area. After the device data packet is stored in the packaging storage area, the user reads the device data packet from the packaging storage area.

[0023] Furthermore, such as Figure 2 As shown, the user data subsystem includes a receiving storage area, a user receiving module, a data forwarding module, and an interface queue management module; The user receiving module receives user data transmitted by the user and stores the user data in the receiving storage area. After the user finishes sending the user data, the user sends a storage completion signal to the data forwarding module. After receiving the storage completion signal, the data forwarding module searches for an empty location in the public storage area. After the search is completed, the user data stored in the receiving storage area is transferred to the empty location in the public storage area. At the same time, the address information of the empty location and the target communication interface information in the user data are sent to the interface queue management module. The interface queue management module performs an address information storage operation based on the target communication interface information and stores the address information in the management queue corresponding to the target communication interface information.

[0024] Furthermore, the interface queue management module performs the address information storage operation as follows: based on the target communication interface information, the interface queue management module searches for the target communication interface corresponding to the target communication interface information among all communication interfaces, and stores the address information in the management queue corresponding to the target communication interface.

[0025] Furthermore, such as Figure 4 As shown, the communication interface performs the data distribution operation as follows: First, the communication interface selects the first node in its corresponding management queue as the target node; then, it executes the second step. The second step is to read the address information stored in the target node through the communication interface; then proceed to the third step. The third step is for the communication interface to locate the corresponding address information in the public storage area based on the read address information; then proceed to the fourth step. Fourth step: The communication interface reads the user data stored at the located position; then proceed to fifth step. Fifth, the communication interface sends the read user data to the communication device connected to it; then proceed to sixth step. Step 6: The communication interface determines whether the next node of the target node in the management queue is empty. If the next node of the target node is empty, the data distribution operation ends; otherwise, proceed to step 7. Step 7: The timer execution module uses the next node of the current target node in the management queue as the latest target node and repeats steps 2 to 6.

[0026] Furthermore, such as Figure 3 As shown, the device data subsystem includes a device receiving module, a device queue management module, and a device packaging module; The device receiving module receives device data transmitted from the communication interface and searches for a free location in the public storage area. After the search is completed, it stores the device data in the free location and sends the address information of the free location to the device queue management module. The device packaging module performs device data packaging operations, generates device data packets based on the address information stored in the device queue, and stores the device data packets in the packaging storage area. After the device data packets are stored in the packaging storage area, the device packaging module sends a read signal to the user. After receiving the read signal, the user reads the device data packets from the packaging storage area.

[0027] Based on the design of each module in the user subsystem and device subsystem, this invention receives user data sent by the user in the receiving storage area, transfers the user data and device data to be sent in the common storage area, and stores packaged data in the packaging storage area. The various types of data are stored separately, which allows the user data subsystem and device data subsystem to operate independently on different data storage areas, avoiding interference between different modules.

[0028] Furthermore, the device packaging module performs the device data packaging operation as follows: the device packaging module searches for all device data corresponding to all address information currently stored in the device queue in the public storage area, and packages all the found device data to generate a device data packet.

[0029] Furthermore, after the device packaging module completes the device data packaging operation, it deletes the packaged device data from the public storage area and deletes the node in the device queue that stores the address information corresponding to the packaged device data. After the user finishes reading the device data packet, they send a read completion signal to the device packaging module. Upon receiving the read completion signal, the device packaging module deletes the device data packet read by the user from the packaging storage area.

[0030] Furthermore, after the communication interface sends user data to the communication device, it defines the address information of the sent user data as completed address information and sends the completed address information to the user data subsystem. After receiving the completed address information, the user data subsystem deletes the data stored at the location corresponding to the completed address information in the public storage area, and at the same time deletes the node storing the completed address information in the management queue corresponding to the communication interface.

[0031] After the communication interface data transmission is completed and the user has finished reading the device data, the present invention instructs the user data subsystem and the device data subsystem to clean up the residual data in the queue and storage area respectively, so as to avoid data accumulation and reduce memory burden.

[0032] Furthermore, the communication interfaces include a serial port, a CAN interface, a DA interface, and an AD interface.

[0033] Furthermore, the integrated communication interface control system is implemented based on FPGA; The user generates user data on the host computer. After the user data is generated, the host computer sends it to the device data subsystem of the integrated communication interface control system. At the same time, the user reads the device data packets in the packaged storage area through the host computer. The FPGA is connected to the host computer via a PCIe interface; user data generated by the user on the host computer is sent to the FPGA via the PCIe interface.

[0034] This invention integrates multiple communication interfaces into a single system and is implemented on a single FPGA board. In actual use, the host computer only needs to configure the FPGA driver, which reduces the number of boards required for physical simulation and fundamentally solves the problem of driver conflicts between different boards.

[0035] Furthermore, the receiving storage area is the PCIe RAM storage area of ​​the FPGA.

[0036] Based on the above system composition, this invention achieves the integration of multiple types and quantities of communication interfaces through the collaborative work of various functional modules. Commonly used interfaces are integrated onto a single board, and the number and type of interfaces can be adjusted according to the simulation target's requirements during actual use. This improves the integration degree of communication interfaces on the board and meets the simulation target's need for multiple types and a large number of communication interfaces during communication simulation. Furthermore, this invention improves the integration and versatility of communication interfaces, reduces the number of boards required for hardware-in-the-loop simulation, and thus reduces the cost of hardware-in-the-loop simulation.

[0037] The parts of this invention not described in detail are common knowledge to those skilled in the art.

Claims

1. An integrated communication interface control system for hardware-in-the-loop simulation, characterized in that, include: Public storage area, packaged storage area, user data subsystem, device data subsystem, and multiple communication interfaces; Each of the communication interfaces is connected to a corresponding communication device; the integrated communication interface control system has a management queue and a device queue corresponding to each communication interface. When a user needs to send user data to a communication device, the user data subsystem receives the user data sent by the user; the user data contains target communication interface information. After receiving user data, the user data subsystem searches for a free location in the public storage area. Once the search is complete, it stores the user data in the free location and simultaneously stores the address information of the free location in the management queue of the communication interface corresponding to the target communication interface information. Each communication interface performs a data distribution operation based on the address information stored in its corresponding management queue, sending the user data corresponding to the address information stored in the management queue to the communication device connected to it. When a communication device needs to send device data to a user, it sends the data to the communication interface connected to it. Upon receiving the data, the communication interface transmits it to the device data subsystem. The device data subsystem searches for a free location in the public storage area, stores the device data in the free location, and stores the address information of the free location in the device queue. Every preset time interval, the device data subsystem performs a data packaging operation, generating a device data packet based on the address information stored in the device queue, and stores the device data packet in the packaging storage area. After the device data packet is stored in the packaging storage area, the user reads the device data packet from the packaging storage area.

2. The integrated communication interface control system for hardware-in-the-loop simulation according to claim 1, characterized in that: The user data subsystem includes a receiving storage area, a user receiving module, a data forwarding module, and an interface queue management module; The user receiving module is used to receive user data transmitted by the user and store the user data in the receiving storage area; after the user finishes sending the user data, he / she sends a storage completion signal to the data forwarding module; after receiving the storage completion signal, the data forwarding module searches for a free location in the public storage area, and after the search is completed, it transfers the user data stored in the receiving storage area to the free location in the public storage area, and at the same time sends the address information of the free location and the target communication interface information in the user data to the interface queue management module. The interface queue management module performs an address information storage operation based on the target communication interface information, storing the address information in the management queue corresponding to the target communication interface information.

3. The integrated communication interface control system for hardware-in-the-loop simulation according to claim 2, characterized in that: The interface queue management module performs the address information storage operation as follows: Based on the target communication interface information, the interface queue management module searches for the target communication interface corresponding to the target communication interface information among all communication interfaces, and stores the address information in the management queue corresponding to the target communication interface.

4. An integrated communication interface control system for hardware-in-the-loop simulation according to claim 2, characterized in that: The communication interface performs the data distribution operation as follows: First, the communication interface selects the first node in its corresponding management queue as the target node; then, it executes the second step. The second step is to read the address information stored in the target node through the communication interface; then proceed to the third step. The third step is for the communication interface to locate the corresponding address information in the public storage area based on the read address information; then proceed to the fourth step. Fourth step: The communication interface reads the user data stored at the located position; then proceed to fifth step. Fifth, the communication interface sends the read user data to the communication device connected to it; then proceed to sixth step. The sixth step is to use the communication interface to determine whether the next node of the target node in the management queue is empty. If the next node of the target node is empty, the data distribution operation ends. Otherwise, proceed to step seven; Step 7: The timer execution module uses the next node of the current target node in the management queue as the latest target node and repeats steps 2 to 6.

5. An integrated communication interface control system for hardware-in-the-loop simulation according to claim 1, characterized in that: The device data subsystem includes a device receiving module, a device queue management module, and a device packaging module; The device receiving module receives device data transmitted from the communication interface, searches for a free location in the public storage area, stores the device data in the free location, and sends the address information of the free location to the device queue management module. The device packaging module performs device data packaging operations, generates device data packets based on the address information stored in the device queue, and stores the device data packets in the packaging storage area. After the device data packets are stored in the packaging storage area, the device packaging module sends a read signal to the user. After receiving the signal to be read, the user reads the device data packet from the packaged storage area.

6. An integrated communication interface control system for hardware-in-the-loop simulation according to claim 5, characterized in that: The device packaging module performs the device data packaging operation as follows: the device packaging module searches for all device data corresponding to all address information currently stored in the device queue in the public storage area, and packages all the found device data to generate a device data packet.

7. An integrated communication interface control system for hardware-in-the-loop simulation according to claim 6, characterized in that: After the device packaging module completes the device data packaging operation, it deletes the packaged device data from the public storage area and deletes the node in the device queue that stores the address information corresponding to the packaged device data. After the user finishes reading the device data packet, they send a read completion signal to the device packaging module. Upon receiving the read completion signal, the device packaging module deletes the device data packet read by the user from the packaging storage area.

8. An integrated communication interface control system for hardware-in-the-loop simulation according to claim 1, characterized in that: After the communication interface sends user data to the communication device, it defines the address information of the sent user data as completed address information and sends the completed address information to the user data subsystem. After receiving the completed address information, the user data subsystem deletes the data stored at the location corresponding to the completed address information in the public storage area, and deletes the node storing the completed address information in the management queue corresponding to the communication interface.

9. An integrated communication interface control system for hardware-in-the-loop simulation according to any one of claims 1 to 8, characterized in that: The communication interfaces include a serial port, a CAN interface, a DA interface, and an AD interface.

10. An integrated communication interface control system for hardware-in-the-loop simulation according to any one of claims 1 to 8, characterized in that: The integrated communication interface control system is implemented based on FPGA; The user generates user data on the host computer. After the user data is generated, the host computer sends it to the device data subsystem of the integrated communication interface control system. At the same time, the user reads the device data packets in the packaged storage area through the host computer. The FPGA is connected to the host computer via a PCIe interface; user data generated by the user on the host computer is sent to the FPGA via the PCIe interface.