Method for isolating transceiving data

By employing a gateway system and shared memory design in the distributed system, isolated data transmission and reception for different communication protocols and interface types are achieved, solving the problems of integration difficulties and insufficient fault isolation, and improving the system's reliability and data transmission efficiency.

CN120751011BActive Publication Date: 2026-11-24ECARX (HUBEI) TECHCO LTD
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In existing technologies, distributed systems face challenges such as protocol diversity and integration difficulties, performance bottlenecks, resource contention, and insufficient fault isolation when dealing with different communication protocols and interface types, leading to increased system complexity and decreased performance.

Method used

A gateway system is adopted, which uses shared memory and gateway instances corresponding to each interface type to achieve isolated data transmission and reception. The gateway instance performs data routing and format conversion according to the interface type, and uses discovery threads and forwarding threads for multi-threaded concurrent processing. The shared memory is divided into dedicated areas for each interface type to ensure data security and isolation.

Benefits of technology

It enables efficient, secure, and isolated data transmission between different hosts, avoiding resource waste and fault propagation, improving system reliability and data transmission efficiency, and supporting the expansion of dynamic interface types and fault isolation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120751011B_ABST
    Figure CN120751011B_ABST
Patent Text Reader

Abstract

The application provides a method for isolating transceiving data, a gateway system in a host routes target data to a gateway instance corresponding to a current interface type of the target data according to a current interface type of target data in shared memory, and then the gateway instance sends the target data to a gateway instance corresponding to the current interface type in other data, so that the gateway instance in other host writes the target data into the shared memory of the other host, and an application can read the target data from the shared memory, realizing data transmission between applications in different hosts, suitable for transmitting data from applications of various interface types to applications in other hosts, realizing isolation of data of different interface types, and the failure of one interface will not affect the normal operation of other interfaces, improving the overall reliability of the system, realizing zero-copy communication, greatly reducing memory bandwidth consumption and CPU load, and improving data transmission efficiency, realizing efficient cross-interface communication.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data transmission technology, specifically to a method for isolating and transmitting data. Background Technology

[0002] In modern distributed systems, it is often necessary to exchange data between different communication protocols and interface types. This is especially true in high-performance systems that require zero-copy communication, such as autonomous driving, robotics, and industrial automation. A gateway mechanism that can efficiently handle data of different interface types is needed.

[0003] Current communication methods mainly suffer from the following problems: 1. Protocol diversity and integration difficulties: The system needs to support multiple protocols such as DDS, SOMEIP, CAN, and Ethernet simultaneously, each with different characteristics; 2. Performance bottlenecks: Traditional communication methods involve multiple data replications, leading to increased latency and wasted resources, especially when processing large data structures; 3. Limitations of a single gateway architecture: Mixed processing of data from different interface types increases complexity; 4. Resource contention leads to performance degradation; 5. Insufficient fault isolation: A single failure may affect the entire system. Summary of the Invention

[0004] In view of the above-mentioned defects or deficiencies in the prior art, this application aims to provide a method for isolating and transmitting data to solve the problems of protocol diversity and integration difficulties, data transmission delay, resource waste, high complexity of data processing for different interface types, and system impact from failures in the related technologies.

[0005] This application provides a method for isolating and transmitting data, applied to various hosts. The hosts include various applications and a gateway system. The gateway system includes shared memory and gateway instances corresponding to various interface types. The method includes:

[0006] The gateway system routes the target data to the corresponding gateway instance based on the current interface type corresponding to the target data in the shared memory. The target data is the data to be transmitted written by the application in the host where the gateway system is located.

[0007] The gateway instance sends the target data to the gateway instance corresponding to the current interface type on other hosts, so that the gateway instance corresponding to the current interface type on other hosts writes the target data into the shared memory of the other hosts, wherein the application on the other hosts reads the target data from the shared memory.

[0008] Optionally, gateway instances of the same interface type on different hosts connect via network connections corresponding to the interface type. The gateway instance then sends the target data to the gateway instance on other hosts corresponding to the current interface type, including:

[0009] The gateway instance performs format conversion on the target data according to the transmission format of the network corresponding to the current interface type;

[0010] The gateway instance sends the format-converted target data to the network corresponding to the current interface type, so that the gateway instance corresponding to the current interface type on other hosts can obtain the target data from the network.

[0011] Optionally, the gateway system routes the target data to the corresponding gateway instance based on the current interface type corresponding to the target data in the shared memory, including:

[0012] The gateway system calls the discovery thread according to a preset discovery cycle, so that the discovery thread routes the target data to the corresponding gateway instance according to the current interface type of the target data in the shared memory;

[0013] The gateway instance sends the target data to the gateway instance corresponding to the current interface type in other hosts, including:

[0014] The gateway system invokes a forwarding thread according to a preset forwarding cycle, so that the forwarding thread controls the gateway instance to send the target data to the gateway instance corresponding to the current interface type in other hosts.

[0015] Optionally, the gateway instance includes an inbound gateway and an outbound gateway. The gateway instance sends the target data to the gateway instance corresponding to the current interface type on other hosts, so that the gateway instance corresponding to the current interface type on the other hosts writes the target data into the shared memory of the other hosts, including:

[0016] The outbound gateway in the gateway instance sends the target data to the inbound gateway corresponding to the current interface type in other hosts, so that the inbound gateway in the other hosts writes the target data into the shared memory of the other hosts.

[0017] Optionally, the shared memory consists of dedicated memory areas for each interface type; before the gateway system routes the target data to the corresponding gateway instance based on the current interface type corresponding to the target data in the shared memory, the method further includes:

[0018] The application in the host where the gateway system is located writes the target data into the dedicated memory area of ​​the current interface type in the host.

[0019] The gateway system routes the target data to the corresponding gateway instance based on the current interface type corresponding to the target data in shared memory, including:

[0020] The gateway system routes the target data to the corresponding gateway instance through the channel corresponding to the dedicated memory area of ​​the current interface type.

[0021] Optionally, the determination of dedicated memory regions for each interface type includes:

[0022] The gateway system obtains each interface type and the corresponding transmission data attributes of each interface type;

[0023] The gateway system divides the shared memory of the host into dedicated memory areas for each interface type based on the transmission data attributes corresponding to each interface type.

[0024] Optionally, the creation of the channel corresponding to the dedicated memory region includes:

[0025] The gateway system responds to a gateway creation request sent by the application on the host, creates a gateway instance, and binds the gateway instance to the corresponding interface type;

[0026] The gateway system responds to the channel creation request sent by the application on the host and verifies the type of the gateway instance based on the interface type bound to the gateway instance;

[0027] If the verification is successful, the gateway system creates a channel corresponding to the gateway instance and binds the channel to the dedicated memory area.

[0028] Optionally, the application in the host where the gateway system resides writes the target data into a dedicated memory area for the current interface type in the host, including:

[0029] The application in the host where the gateway system is located determines the current security level of the target data, and determines the target sub-region in the dedicated memory area of ​​the current interface type according to the current security level;

[0030] The application in the host where the gateway system is located writes the target data into the target sub-region.

[0031] This application embodiment also provides a method for isolating and transmitting data, applied to various hosts, wherein the hosts include various applications and a gateway system, the gateway system includes shared memory and gateway instances corresponding to various interface types, and the method includes:

[0032] In response to receiving target data sent by a gateway instance of the same interface type on another host, the gateway instance writes the target data into the shared memory of the host, so that the application on the host can read the target data from the shared memory.

[0033] Optionally, before the gateway instance writes the target data into the shared memory of the host, the method further includes:

[0034] The gateway instance performs at least one of the following processing on the target data according to the security level of the corresponding interface type: data verification processing, authorization verification processing, encryption conversion processing, identity authentication processing, and data filtering processing.

[0035] This application embodiment also provides an electronic device, the electronic device comprising:

[0036] Processor and memory;

[0037] The processor executes the steps of the isolated data transmission and reception method provided in any embodiment of this application by calling the program or instructions stored in the memory.

[0038] This application also provides a computer-readable storage medium storing a program or instructions that cause a computer to perform the steps of the method for isolating and transmitting data provided in any embodiment of this application.

[0039] In summary, this application proposes a method for isolating and transmitting data. The gateway system in a host routes the target data to the gateway instance corresponding to the current interface type in the shared memory. The gateway instance then sends the target data to the gateway instance corresponding to the current interface type in other data, allowing gateway instances in other hosts to write the target data into their shared memory. Applications can then read the target data from the shared memory, enabling data transmission between applications on different hosts. This method is suitable for applications of various interface types to send data to applications on other hosts. By using gateway instances of different interface types on different hosts for data transmission, this method achieves data isolation for different interface types. A failure in one interface will not affect the normal operation of other interfaces, improving overall system reliability. Furthermore, this method achieves zero-copy communication through shared memory; data only needs to be written once, eliminating the need for data copying, significantly reducing memory bandwidth consumption and CPU load, and improving data transmission efficiency. This enables efficient cross-interface communication. In addition, the system has good scalability, supporting the dynamic addition of new interface types or the removal of no longer needed interface types. Attached Figure Description

[0040] To more clearly illustrate the technical solutions in the specific embodiments of this application or the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0041] Figure 1 This is a schematic diagram illustrating a gateway system deployment instance provided in an embodiment of this application;

[0042] Figure 2 This is a flowchart illustrating a method for isolating and transmitting data according to an embodiment of this application;

[0043] Figure 3 This is a deployment architecture diagram of a multi-host gateway system provided in an embodiment of this application;

[0044] Figure 4 This is a schematic diagram of a memory pool allocation provided in an embodiment of this application;

[0045] Figure 5 This is a flowchart illustrating the memory matching process for a gateway instance provided in an embodiment of this application.

[0046] Figure 6 This is an isolation architecture diagram of a gateway system provided in an embodiment of this application;

[0047] Figure 7 This is a diagram illustrating a data transmission and reception process provided in an embodiment of this application;

[0048] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0049] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, only the parts relevant to the invention are shown in the accompanying drawings.

[0050] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.

[0051] As mentioned in the background section, in response to the problems in the prior art, this application proposes a method for isolating and transmitting data. This method is applied to various hosts, which include various applications and gateway systems. The gateway system includes shared memory and gateway instances corresponding to various interface types.

[0052] Specifically, each host can deploy a gateway system. This gateway system adopts an interface type-based isolation architecture, separating the logical processing of different communication protocols into different gateway instances to achieve efficient and flexible cross-interface communication. The gateway system consists of gateway instances of various interface types and a shared memory.

[0053] The core of the gateway (ESRGatewayGeneric) system is the ESRGatewayGeneric base class, which provides unified basic functionality for gateway instances of various specific interface types. It also implements strict interface type differentiation through the Interfaces enumeration type. The base class is simply a defined interface; different gateway types inherit this unified interface and then implement their code, ensuring that the interface name called at the upper level is consistent, while different implementations are called based on the different interface types.

[0054] Each gateway instance is bound to a specific interface type when it is created, such as DDS (Data Distribution Service), SOMEIP (Scalable service-oriented middleware over IP), CAN (Controller Area Network), or Ethernet, and only processes data streams that match that interface type.

[0055] Figure 1 This is a schematic diagram illustrating a gateway system deployment instance provided in an embodiment of this application, such as... Figure 1 As shown, the gateway system can enumerate all interface types, including Data Distribution Service (DDS), IP-based Scalable Service-Oriented Middleware (SOMEIP), Controller Area Network (CAN), Ethernet, Process Field Network (PROFINET), Ethernet for Control Automation Technology (ETHERCAT), Custom interfaces, and Internal interfaces. Furthermore, the gateway system can create various gateway instances and bind them to corresponding interface types, such as the ESR2DDS gateway, DDS2ESR gateway, ESR2SOMEIP gateway, SOMEIP2ESR gateway, ESR2CAN gateway, CAN2ESR gateway, ESR2Ethernet gateway, and Ethernet2ESR gateway shown in the figure. This architectural design allows the gateway system to be optimized for the characteristics of each interface type while ensuring the consistency and scalability of the overall architecture.

[0056] Figure 2This is a flowchart illustrating a method for isolating and transmitting data according to an embodiment of this application. This method is applicable to fields such as autonomous driving systems (handling communication between different control domains), robotic systems (handling internal and external communication within robots), distributed computing (data exchange across nodes and protocols), and industrial automation (integrating industrial equipment using different protocols). Taking autonomous driving systems as an example, vehicles need to simultaneously process data from multiple sensors (LiDAR, millimeter-wave radar, cameras, etc.). These sensors typically use different communication interfaces (CAN, Ethernet, SOMEIP, etc.). Therefore, the method for isolating and transmitting data according to an embodiment of this application can achieve data transmission and reception between different control domains (i.e., different hosts).

[0057] See Figure 2 The specific methods for isolating and transmitting data include:

[0058] S110. The gateway system routes the target data to the corresponding gateway instance based on the current interface type of the target data in the shared memory.

[0059] The target data consists of data to be transmitted written by applications on the host machine where the gateway system resides. Applications on the host machine can communicate with the gateway instance on that host machine via shared memory.

[0060] Specifically, the application can first write the data to be transmitted into the shared memory of the host. During the process of writing the target data, the application can also write the current interface type corresponding to the target data, and use the current interface type as the metadata of the target data. This metadata is used to indicate the interface type of the gateway instance processing the target data.

[0061] After the target data is written to the shared memory, the gateway system can further route it to the gateway instance corresponding to the current interface type based on the current interface type of the target data, so that it can be forwarded through the gateway instance of the current interface type.

[0062] Each gateway instance focuses on processing a single type of data. For example, a DDS gateway instance only processes data with the DDS interface type tag, and a SOMEIP gateway instance only processes data with the SOMEIP interface type tag. This specialization allows the gateway system to be optimized for the characteristics of specific interface types.

[0063] S120. The gateway instance sends the target data to the gateway instance corresponding to the current interface type on other hosts, so that the gateway instance corresponding to the current interface type on other hosts writes the target data into the shared memory of other hosts.

[0064] Specifically, after the gateway system routes the target data to the gateway instance of the corresponding interface type, the gateway instance can send the target data to the gateway instance of the current interface type on other hosts, so that the gateway instance on the other hosts writes the target data into the shared memory of the other hosts, and then the application on the other hosts reads the target data from the shared memory.

[0065] When target data arrives at a gateway instance of the same interface type on another host, the gateway instance can write the data into the shared memory of that host based on the current interface type of the target data, while attaching the corresponding interface type tag. Furthermore, when the application reads shared memory, it can receive data matching the interface type it is interested in based on an interface type filter, thus achieving the goal of reading the target data from shared memory. This entire process ensures data type security and isolation throughout the entire process from source to destination, and through the design of shared memory and the gateway interface, it achieves efficient zero-copy communication.

[0066] Each gateway instance can include an inbound gateway and an outbound gateway; gateway instances of the same interface type between different hosts are connected through their respective dedicated networks to form a communication network matrix separated by interface type.

[0067] For example, Figure 3 This is a deployment architecture diagram of a multi-host gateway system provided in an embodiment of this application, such as... Figure 3 As shown, the ESR2DDS gateway on host A (i.e., the outbound gateway in the gateway instance corresponding to the DDS interface type) is connected to the DDS2ESR gateway on host B (i.e., the inbound gateway in the gateway instance corresponding to the DDS interface type) through the DDS network. Similarly, the ESR2SOMEIP gateway on host A is connected to the SOMEIP2ESR gateway on host B through the SOMEIP network, and the ESR2CAN gateway on host A is connected to the CAN2ESR gateway on host B through the CAN bus.

[0068] In this embodiment, a gateway instance can send target data to a gateway instance of the same interface type on another host through the network corresponding to the current interface type.

[0069] In one specific implementation, gateway instances of the same interface type on different hosts send target data to the gateway instance on other hosts corresponding to the current interface type via the network connection corresponding to the interface type. This includes:

[0070] The gateway instance performs format conversion on the target data according to the transmission format of the network corresponding to the current interface type; the gateway instance then sends the format-converted target data to the network corresponding to the current interface type, so that the gateway instances of the current interface type on other hosts can obtain the target data from the network.

[0071] The gateway instance can determine the transmission format of the target data based on the network corresponding to the current interface type, and then perform format conversion on the target data according to the transmission format, such as converting it from ESR (Ethernet Switch Router) to DDS protocol.

[0072] Furthermore, the gateway instance sends the format-converted target data to the network corresponding to the current interface type, so that the target data can reach the gateway instances of other hosts connected to this gateway instance through the network.

[0073] It should be noted that when the target data arrives at the gateway instance on another host connected to this gateway instance, the other gateway instance can perform format conversion on the target data, such as converting it from the DDS protocol to the ESR protocol, and then write the converted target data into shared memory.

[0074] The above implementation allows for the setup of network connections between gateway instances on different hosts. Data can then be transmitted via these networks to gateway instances on other hosts with the same interface type. This architecture enables cross-host interface isolation, ensuring the independence and security of data from different protocols during network transmission, while maintaining system modularity and scalability. Through this design, even in complex distributed environments, the gateway system can maintain efficient data exchange and strict interface isolation, providing a unified and flexible solution for cross-host, cross-protocol communication.

[0075] In this embodiment of the application, a gateway instance may consist of an inbound gateway and an outbound gateway. The outbound gateway of the gateway instance is connected to the inbound gateway of the gateway instance with the same interface type in other hosts (through the corresponding network).

[0076] In some implementations, the gateway instance includes an inbound gateway and an outbound gateway. The gateway instance sends target data to the gateway instance corresponding to the current interface type on other hosts, so that the gateway instance corresponding to the current interface type on other hosts writes the target data into the shared memory of the other hosts, including:

[0077] The outbound gateway in the gateway instance sends the target data to the inbound gateway of the current interface type on other hosts, so that the inbound gateway on other hosts writes the target data into the shared memory of other hosts.

[0078] In this context, the outbound gateway in the gateway instance can send target data to the inbound gateway of the current interface type on other hosts through the network of the corresponding interface type. Then, the inbound gateway can write the target data into the shared memory of its host.

[0079] For example, such as Figure 3 As shown, hosts A and B each run multiple applications. These applications can communicate with gateway instances on their respective hosts via local shared memory. Each interface type (DDS, SOMEIP, CAN) has a corresponding outbound gateway (ESR2XXX gateway) and inbound gateway (XXX2ESR gateway), responsible for handling data conversion and transmission for specific protocols. The corresponding gateways on different hosts are interconnected through their respective dedicated networks.

[0080] ESR application 1 or ESR application 2 on host A can write the data to be transmitted into the shared memory of host A. Then, the gateway system routes the target data in the shared memory to the gateway instance of the corresponding interface type. Then, the outbound gateways of each interface type on host A can send the data to the inbound gateway on host B through the corresponding network. Then, the inbound gateway can write the data into the shared memory of host B. ESR application 3 or ESR application 4 on host B can retrieve the data transmitted by the application on host A from the shared memory.

[0081] The above implementation method enables cross-host interface isolation, ensuring the independence and security of data from different protocols during transmission, and further guaranteeing the security of data transmission and reception.

[0082] In this embodiment of the application, for each gateway system on a host, a discovery thread and a forwarding thread can be set. The discovery thread is used to route data in shared memory to the corresponding gateway instance, and the forwarding thread is used to transmit data through the corresponding network to the gateway instance of other hosts, so as to realize a multi-threaded concurrent processing architecture and improve concurrency performance. At the same time, corresponding periods can be set for the discovery thread and the forwarding thread to realize time-based task scheduling and ensure reasonable processing sequence.

[0083] In some implementations, the gateway system routes target data to the corresponding gateway instance based on the current interface type corresponding to the target data in shared memory, including:

[0084] The gateway system calls the discovery thread according to a preset discovery cycle, so that the discovery thread routes the target data to the corresponding gateway instance based on the current interface type of the target data in the shared memory;

[0085] The gateway instance sends the target data to the gateway instance corresponding to the current interface type on other hosts, including:

[0086] The gateway system calls the forwarding thread according to a preset forwarding cycle, so that the forwarding thread controls the gateway instance and sends the target data to the gateway instance corresponding to the current interface type on other hosts.

[0087] Specifically, when the detection reaches the preset discovery period, the gateway system can call the discovery thread to route the target data in the shared memory to the gateway instance of the corresponding interface type.

[0088] Furthermore, when the preset forwarding period is reached, the gateway system can invoke the forwarding thread to control the gateway instance to send the target data to the corresponding interface type gateway instance on other hosts.

[0089] Specifically, the gateway system can call the discovery thread to route each target data to the corresponding gateway instance in the order in which the target data in the shared memory is written by the application; and the gateway system can call the forwarding thread to notify the gateway instance in the order in which the target data is routed to the gateway instance, so that each target data is sent to other gateway instances of the corresponding interface type.

[0090] The above implementation methods can separate the discovery thread and the forwarding thread, improve system concurrency performance through multi-threaded concurrent processing, prevent resource contention, and enable time-based task scheduling to ensure reasonable timing processing. In addition, atomic operations can ensure state consistency under multi-threading.

[0091] In this embodiment of the application, in order to further ensure the isolation between data transmission and reception of different interface types, a dedicated memory pool can be allocated for each interface type. That is, the shared memory is divided into dedicated memory areas corresponding to each interface type. These dedicated memory areas can be optimized in a targeted manner according to the characteristics of their respective interface types to ensure the efficient operation of the system and strict security isolation.

[0092] In some implementations, the shared memory consists of dedicated memory regions for each interface type; before the gateway system routes the target data to the corresponding gateway instance based on the current interface type of the target data in the shared memory, the following steps are also included:

[0093] Applications on the host where the gateway system resides write target data into the dedicated memory area of ​​the current interface type on the host.

[0094] The gateway system routes the target data to the corresponding gateway instance based on the current interface type of the target data in shared memory, including:

[0095] The gateway system routes target data to the corresponding gateway instance through the channel corresponding to the dedicated memory area of ​​the current interface type.

[0096] Applications on the host where the gateway system is located can write target data into the dedicated memory area of ​​the current interface type in the local shared memory.

[0097] Furthermore, the gateway system can route the target data in this dedicated memory area to the corresponding gateway instance through the channel corresponding to the dedicated memory area of ​​the current interface type.

[0098] Figure 4 This is a schematic diagram of a memory pool allocation provided in an embodiment of this application, such as... Figure 4 As shown, each gateway instance is bound to a specific interface type (such as DDS, SOMEIP, CAN, Ethernet, etc.) when it is created. The gateway system can allocate a dedicated memory pool for each interface type to optimize memory usage. When a channel is created, the matching memory pool is selected based on the interface type in the service description of the gateway instance.

[0099] Specifically, each gateway instance is bound to a specific interface type upon creation. This binding is not merely a simple label, but forms a crucial operational constraint that determines all subsequent data processing behavior of the gateway instance. When a gateway is instantiated, it explicitly declares its specific communication protocol through the constructor parameter, which permanently associates the gateway instance with that interface type. For example... Figure 4 The DDS gateway, SOMEIP gateway, CAN gateway, and Ethernet gateway are respectively bound to DDS, SOMEIP, CAN, and Ethernet.

[0100] The binding of interface types directly affects the gateway system's memory management strategy. The gateway system can allocate a corresponding memory pool for each gateway instance, that is, delineate a dedicated memory region within shared memory. For example... Figure 4 The memory includes dedicated memory areas for DDS, SOMEIP, CAN, and Ethernet.

[0101] Furthermore, the gateway system's channel creation process can fully leverage the aforementioned binding and memory specialization mechanisms. When establishing a communication channel, the gateway system checks the interface type specified in the service description. This interface type identifier serves as a key used to unlock the corresponding memory pool. The channel creation mechanism performs a matching operation to ensure that data flowing through the channel is allocated from a memory pool specifically optimized for the interface type specified in the service description.

[0102] When channels are created, they are associated with a service description that includes the interface type. The gateway system can use this information to match channels with appropriate memory pools, ensuring that data is allocated from memory optimized for that specific interface type. For example... Figure 4 As shown, the DDS channel, SOMEIP channel, CAN channel, and Ethernet channel are matched with the DDS dedicated memory area, SOMEIP dedicated memory area, CAN dedicated memory area, and Ethernet dedicated memory area, respectively.

[0103] The above design creates a clear separation between different communication domains while maintaining high performance through dedicated memory management. Binding the interface type during gateway instance creation forms the basis of this isolation, upon which memory pool allocation and channel creation mechanisms are built, forming a unified, efficient, and well-isolated communication system.

[0104] In the above implementation, the gateway system can allocate dedicated memory pools and processing resources for each interface type, ensuring complete physical and logical isolation of data across different interface types. This design enables memory optimization tailored to the characteristics of each interface type, improves resource utilization efficiency by customizing memory allocation patterns based on expected usage patterns, maintains overall architectural consistency and scalability, prevents cross-contamination between different protocol domains, enables protocol-specific data storage, creates natural fault isolation boundaries, prevents cascading fault propagation across different interface types, and maintains high-performance data transmission and reception while providing strong isolation guarantees between different protocol domains.

[0105] In one example, determining the dedicated memory region for each interface type includes:

[0106] The gateway system obtains the interface types and the corresponding transmission data attributes of each interface type; based on the transmission data attributes of each interface type, the gateway system divides the shared memory of the host into dedicated memory areas for each interface type.

[0107] Specifically, the gateway system can determine each interface type and its corresponding transmission data attributes, which may include the transmission data frequency and the size of the transmission data block.

[0108] The gateway system can divide the local shared memory into dedicated memory areas for each interface type based on the transmission data attributes corresponding to each interface type, so as to adapt to the unique characteristics and requirements of the protocols associated with the interface types.

[0109] For example, memory pools allocated to DDS interface types can be configured with larger data block sizes to efficiently handle the large data loads common in distributed systems; memory pools allocated to CAN interface types prioritize smaller, more numerous data blocks to manage the high-frequency, compact messages typical of controller area networks.

[0110] Compared to the general one-size-fits-all memory allocation method, the above example can allocate memory regions specifically according to the transmission characteristics of the protocol associated with each interface type, thus meeting the transmission characteristics and requirements of various protocols.

[0111] In one example, the creation of a channel corresponding to a dedicated memory region includes:

[0112] The gateway system responds to the gateway creation request sent by the application on the host, creates a gateway instance, and binds the gateway instance to the corresponding interface type;

[0113] The gateway system responds to the channel creation request sent by the application on the host and verifies the type of the gateway instance based on the interface type bound to the gateway instance;

[0114] If the verification passes, the gateway system creates a channel corresponding to the gateway instance and binds the channel to a dedicated memory area.

[0115] Applications can initiate the creation of gateway instances for the corresponding interface type. It should be noted that if a gateway instance for the corresponding interface type has already been created in the gateway system, the application can request the allocated dedicated memory area and channel without needing to create the gateway instance again.

[0116] Specifically, in response to a gateway creation request sent by an application on the host, the gateway system can first create a gateway instance and then bind the gateway instance to the corresponding interface type of the application.

[0117] After binding is complete, the application can request the gateway system to create a channel. In response to the channel creation request, the gateway system verifies the gateway instance's type based on the interface type it's bound to, specifically whether the bound interface type matches the created instance type. If they match, the system creates the channel corresponding to the gateway instance and requests the corresponding dedicated memory area in shared memory based on the bound interface type, binding the channel to that dedicated memory area. The channel serves as the data transmission route between the gateway instance and the dedicated memory area corresponding to the interface type.

[0118] Figure 5 This is a flowchart illustrating the memory matching process for a gateway instance provided in an embodiment of this application, such as... Figure 5As shown, an application can first request the gateway system to create a gateway instance. The gateway system creates the gateway instance and binds it to a specific interface type. Further, the application continues to request the creation of a channel. The gateway system checks the interface type based on the service description of the gateway instance, i.e., verifies whether the interface type matches the gateway type. The service description includes the interface type, explicitly identifying the communication interface type used by each service. This identification serves as the foundation of the entire matching process and is maintained throughout all stages of system operation.

[0119] To optimize performance and resource utilization, the gateway system can allocate dedicated memory pools for each interface type. These memory pools are specifically optimized based on the characteristics of their respective interface types. During channel creation, the system automatically verifies whether the interface type in the service description matches the gateway's interface type. Only channels that match successfully can be established. If the interface type matches the gateway type, the gateway system can create the channel and request the memory pool to allocate a dedicated memory region from shared memory. Shared memory returns the dedicated memory region, and then returns a memory pool reference and a channel reference to the gateway system. The gateway system then returns the channel creation result to the application.

[0120] The above process ensures the security of data flow types. The gateway system's data routing decisions are also based on the interface types in the service description, ensuring that data always flows to the correct target and maintaining the system's efficient operation and strict isolation.

[0121] In this embodiment, for each interface type, the dedicated memory area can be further divided into multiple sub-regions according to the security level of the data, so as to allocate independent memory areas for data with different security levels and ensure that high-security-level data is not accessed by low-security-level components.

[0122] In one example, an application on the host where the gateway system resides writes target data into a dedicated memory area for the current interface type on the host, including:

[0123] The application on the host where the gateway system is located determines the current security level of the target data and determines the target sub-region in the dedicated memory area of ​​the current interface type according to the current security level; the application on the host where the gateway system is located writes the target data into the target sub-region.

[0124] The application on the host where the gateway system resides can first determine the target sub-region within the dedicated memory area of ​​the current interface type based on the current security level of the target data and the pre-configured allocation relationship between security levels and regions. Furthermore, the application can write the target data into the target sub-region.

[0125] Correspondingly, after the target data is forwarded to the gateway instance on other hosts via the forwarding thread, the gateway instance on other hosts can also write the target data into the target sub-region of the dedicated memory area of ​​the corresponding interface type, based on the current security level of the target data.

[0126] Through the above implementation method, independent memory regions can be allocated for data with different security levels within shared memory, ensuring that high-security-level data cannot be accessed by low-security-level components. In addition, other security mechanisms can be configured.

[0127] For example, Figure 6 This is an isolation architecture diagram of a gateway system provided in an embodiment of this application, such as... Figure 6 As shown, the gateway system can adopt a layered security model, clearly separating the application layer, shared memory layer and interface isolation layer, and implementing different levels of security policies for each layer.

[0128] refer to Figure 6 In the application layer, different applications can access shared memory through strict access control mechanisms. In the shared memory layer, the gateway system can allocate independent memory areas for data with different security levels, ensuring that high-security-level data is not accessed by low-security-level components. In the interface isolation layer, each interface gateway is assigned a specific security level configuration. For example, DDS and Ethernet gateways are usually configured with a high security level, SOMEIP gateways with a medium security level, and CAN gateways with a low security level, in order to balance performance and security requirements.

[0129] The security policies of Ethernet gateways can include access control and encryption, DDS gateways can include encryption and authentication, SOMEIP gateways can include authentication, and CAN gateways can include data filtering.

[0130] This multi-layered security architecture enables gateway systems to flexibly apply security strategies such as encryption, authentication, access control, and data filtering based on the characteristics and security requirements of different interface types, forming a comprehensive and sophisticated security protection network.

[0131] The method for isolating and transmitting data provided in this application embodiment involves a gateway system in a host routing target data to the gateway instance corresponding to the current interface type in shared memory. The gateway instance then sends the target data to the gateway instance corresponding to the current interface type in other data, allowing gateway instances in other hosts to write the target data into their shared memory. Applications can then read the target data from the shared memory, enabling data transmission between applications on different hosts. This method is suitable for applications of various interface types to send data to applications on other hosts. By using gateway instances of different interface types on different hosts for data transmission, it achieves data isolation for different interface types. A failure in one interface will not affect the normal operation of other interfaces, improving overall system reliability. Furthermore, this method achieves zero-copy communication through shared memory; data only needs to be written once, eliminating the need for data copying, significantly reducing memory bandwidth consumption and CPU load, and improving data transmission efficiency. This enables efficient cross-interface communication. In addition, the system has good scalability, supporting the dynamic addition of new interface types or the removal of no longer needed interface types.

[0132] This application embodiment also provides a method for isolating and transmitting data. This method is applied to various hosts, where each host includes various applications and a gateway system. The gateway system includes shared memory and gateway instances corresponding to various interface types. The specific methods for isolating and transmitting data include:

[0133] When a gateway instance receives target data from a gateway instance of the same interface type on another host, it writes the target data into the shared memory of the host so that the application on the host can read the target data from the shared memory.

[0134] Specifically, if a gateway instance receives target data sent by a gateway instance on another host, it can convert the format of the target data according to its current interface type and write it into its local shared memory. For example, it can write it into the dedicated memory area corresponding to the current interface type in the shared memory. This target data can then be transmitted by the gateway instance on the other host via the network of the corresponding interface type.

[0135] After the gateway instance writes the target data to its local shared memory, the application on the host machine can read the target data from the shared memory. For example, an application can read data from the shared memory that matches the interface type it is interested in, based on an interface type filter.

[0136] For example, Figure 7 This is a data transmission and reception process diagram provided in an embodiment of this application, such as... Figure 7As shown, the publisher application (i.e., the data sender) can write the data to be transmitted into the dedicated memory area of ​​the corresponding interface type through the interface type tag, such as the DDS memory area, SOMEIP memory area, or CAN memory area in the figure. Then, the gateway instance of the corresponding interface type, such as the DDS gateway, SOMEIP gateway, and CAN gateway in the figure, can transmit the data to the gateway instance of the host where the subscriber application (i.e., the data receiver) is located through the external network.

[0137] Furthermore, after the data is transmitted to the gateway instance on the host where the application resides, the gateway instance on the host can write the data into a dedicated memory area for the corresponding interface type. Subscriber applications can then filter by interface type and read the data of the corresponding interface type from the shared memory.

[0138] In this embodiment, corresponding security processing policies can be set for different interface types to further ensure the security of data transmission and reception. When the gateway instance receives data transmitted from the external network, it can process the received data according to the corresponding security processing policy and then write the processed data into local shared memory.

[0139] In some implementations, the method further includes: before the gateway instance writes the target data into the shared memory of the host.

[0140] The gateway instance performs at least one of the following processing on the target data, based on the security level of the corresponding interface type: data verification, authorization verification, encryption conversion, identity authentication, and data filtering.

[0141] When a gateway instance receives target data sent by a gateway instance on a corresponding interface in another host, it can perform at least one of the following processing on the target data, based on the security level of the corresponding interface type: data verification, authorization verification, encryption conversion, identity authentication, and data filtering.

[0142] Specifically, data validation ensures that input or transmitted data conforms to predefined rules, formats, or business logic, preventing invalid, erroneous, or malicious data from entering the system. Authorization verification verifies whether someone has permission to access specific resources or perform specific operations, preventing unauthorized access. Encryption transformation converts data into an unreadable form (encryption) or alters its structure (transformation) using algorithms, protecting data confidentiality. Data filtering filters, cleans, or modifies data according to rules.

[0143] For example, an Ethernet gateway instance can perform access control processing (identity authentication processing, authorization verification processing) and encryption conversion processing; a DDS gateway instance can perform encryption conversion processing and identity authentication processing; a SOMEIP gateway instance can perform identity authentication processing; and a CAN gateway instance can perform data filtering processing.

[0144] Furthermore, after completing the above processing, the processed target data can be written to local shared memory, specifically to a dedicated memory area corresponding to the interface type.

[0145] Through the above implementation methods, corresponding security measures can be given to gateway instances with different interface types, further ensuring data security.

[0146] In this embodiment, a strict state management and error handling mechanism further ensures stable and reliable system operation. Specifically, the gateway system can strictly manage the state of all tasks, ensuring consistency and predictability of task execution through atomic operations and state flags. A channel lookup and verification mechanism ensures that duplicate channels are not created for the same service description, avoiding resource waste and potential conflicts. The system can also define detailed error types and handling strategies to precisely handle various anomalies, improving system robustness. Data streams of different interface types are strictly isolated, ensuring that a failure in one interface does not affect the normal operation of other interfaces, thus improving overall system reliability.

[0147] The gateway system also supports dynamically adding new communication channels at runtime, expanding functionality without restarting the service. Furthermore, it allows for the safe removal of unnecessary channels at runtime, releasing related resources and optimizing system performance. The gateway system also allows for adjusting task parameters and configurations without service interruption, adapting to ever-changing communication needs. Adding new interface types is easy; simply implement the corresponding gateway and channel classes without modifying the core framework.

[0148] The gateway system ensures the real-time transmission and processing of critical data through optimized scheduling algorithms and resource allocation strategies. It provides strict isolation between interfaces with different security levels, meeting the functional safety requirements of in-vehicle systems. Strict memory access control prevents unauthorized access and memory corruption. Integrity checks are implemented during data transmission to prevent data tampering. Different security policies, including authentication, encryption, and access control, are supported for different interface types.

[0149] In this application embodiment, a three-tiered gateway system architecture can also be proposed, including an interface isolation layer, a channel management layer, and a data forwarding layer. The interface isolation layer includes an interface type binding mechanism (the gateway instance is bound to a specific interface type upon creation to ensure dedicated processing), a memory pool isolation mechanism (a dedicated memory pool is allocated for each interface type to avoid resource contention), and service description filtering (service descriptions are filtered based on the interface type field to ensure type safety).

[0150] The channel management layer can include dynamic channel creation (dynamically creating matching communication channels based on service descriptions), channel type verification (verifying whether the channel's interface type matches the gateway type), and resource lifecycle management (fully managing the creation, use, and release of channels).

[0151] The data forwarding layer can include zero-copy transmission mechanism (achieving efficient data exchange through shared memory and pointer passing), interface type routing (routing data to the correct target based on interface type), and batch processing optimization (grouping data by interface type to improve efficiency).

[0152] This three-tiered architecture ensures strict isolation and efficient processing of data from different interface types, while providing good scalability and security. It is particularly suitable for high-performance systems that need to handle multiple communication protocols, such as autonomous driving, robotics, and industrial automation.

[0153] It should also be noted that the gateway system provided in this application embodiment can be implemented using C++ technology, following the C++14 coding standard, and extensively utilizes modern C++ features such as smart pointers, lambda expressions, atomic operations, and thread-safe containers to ensure high-quality and maintainable code. The gateway system is designed to comply with the POSIX standard, has good cross-platform compatibility, and can be deployed and run on various operating systems such as Linux, QNX, and Android. Through conditional compilation and a platform abstraction layer, the system can adapt to different hardware and software environments, providing a unified solution for heterogeneous system integration.

[0154] Furthermore, the gateway system provided in this application achieves efficient, reliable, and secure cross-interface communication through an innovative interface type isolation mechanism and a three-tiered architecture. This system not only solves the problem of mixed data processing for different interface types in traditional gateway architectures, but also significantly improves performance and reduces resource consumption through a dedicated memory pool and zero-copy technology. The system's modular design and dynamic configuration capabilities give it excellent scalability and adaptability, enabling easy integration of new interface types and communication protocols. Practical applications show that compared to traditional gateway solutions, the gateway system has significant advantages in data throughput, latency, CPU utilization, and memory efficiency.

[0155] The method for isolating and transmitting data provided in this application embodiment involves a gateway instance responding to receiving target data sent by a gateway instance of the same interface type on another host. The gateway instance writes the target data into the shared memory of its host, enabling applications on that host to read the target data from the shared memory. This achieves data transmission between applications on different hosts and is applicable to applications of various interface types sending data to applications on other hosts. This method uses gateway instances of different interface types on different hosts for data transmission, achieving isolation of data for different interface types. A failure of one interface will not affect the normal operation of other interfaces, improving the overall reliability of the system. Furthermore, this method achieves zero-copy communication through shared memory; data only needs to be written once, eliminating the need for data copying, significantly reducing memory bandwidth consumption and CPU load, and improving data transmission efficiency. This enables efficient cross-interface communication. In addition, the system has good scalability, supporting the dynamic addition of new interface types or the removal of no longer needed interface types.

[0156] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 8 As shown, the electronic device 400 includes one or more processors 401 and memory 402.

[0157] The processor 401 may be a central processing unit (CPU) or other form of processing unit with data processing and / or instruction execution capabilities, and may control other components in the electronic device 400 to perform desired functions.

[0158] The memory 402 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 401 may execute the program instructions to implement the isolated data transmission and reception method described above in any embodiment of this application, and / or other desired functions. Various contents such as initial external parameters and thresholds may also be stored in the computer-readable storage medium.

[0159] In one example, the electronic device 400 may further include an input device 403 and an output device 404, these components being interconnected via a bus system and / or other forms of connection mechanisms (not shown). The input device 403 may include, for example, a keyboard, a mouse, etc. The output device 404 may output various information to the outside, including warning messages, braking force, etc. The output device 404 may include, for example, a display, a speaker, a printer, and a communication network and its connected remote output devices, etc.

[0160] Of course, for the sake of simplicity, Figure 8 Only some of the components of the electronic device 400 relevant to this application are shown in this illustration; components such as buses, input / output interfaces, etc., are omitted. In addition, the electronic device 400 may include any other suitable components depending on the specific application.

[0161] In addition to the methods and devices described above, embodiments of this application may also be computer program products, which include computer program instructions that, when executed by a processor, cause the processor to perform the steps of the method for isolating and transmitting data provided in any embodiment of this application.

[0162] The computer program product can be written in any combination of one or more programming languages ​​to perform the operations of the embodiments of this application. The programming languages ​​include object-oriented programming languages ​​such as Java and C++, as well as conventional procedural programming languages ​​such as C or similar languages. The program code can be executed entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0163] Furthermore, embodiments of this application may also be computer-readable storage media storing computer program instructions thereon, which, when executed by a processor, cause the processor to perform the steps of the method for isolating and transmitting data provided in any embodiment of this application.

[0164] The computer-readable storage medium may be any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may, for example, include, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0165] It should be noted that the terminology used in this application is for the purpose of describing specific embodiments only and is not intended to limit the scope of this application. As shown in the specification and claims of this application, unless the context clearly indicates otherwise, words such as "a," "an," "an," and / or "the" do not specifically refer to the singular and may also include the plural. The terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, or apparatus. Without further limitations, an element defined by the phrase "comprising an..." does not exclude the presence of other identical elements in the process, method, or apparatus that includes said element.

[0166] It should also be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation on this application. Unless otherwise expressly specified and limited, the terms "installed," "connected," "linked," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication between two elements. For those skilled in the art, the specific meaning of the above terms in this application can be understood according to the specific circumstances.

[0167] This document uses specific examples to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. The above descriptions are only preferred embodiments of this application. It should be noted that due to the limitations of written expression, while there are objectively infinite specific structures, those skilled in the art can make several improvements, modifications, or changes without departing from the principles of this application, and can also combine the above technical features in an appropriate manner. These improvements, modifications, changes, or combinations, or the direct application of the inventive concept and technical solution to other situations without modification, should all be considered within the scope of protection of this application.

Claims

1. A method for isolating transmitted and received data, characterized in that, Applied to various hosts, the hosts include various applications and a gateway system, the gateway system includes shared memory and gateway instances corresponding to various interface types, the method includes: The gateway system routes the target data to the corresponding gateway instance based on the current interface type corresponding to the target data in the shared memory. The target data is the data to be transmitted written by the application in the host where the gateway system is located. The gateway instance sends the target data to the gateway instance corresponding to the current interface type on other hosts, so that the gateway instance corresponding to the current interface type on other hosts writes the target data into the shared memory of the other hosts, wherein the application on the other hosts reads the target data from the shared memory; The gateway instance includes an inbound gateway and an outbound gateway. The gateway instance sends the target data to the gateway instance corresponding to the current interface type on other hosts, so that the gateway instance corresponding to the current interface type on the other hosts writes the target data into the shared memory of the other hosts, including: The outbound gateway in the gateway instance sends the target data to the inbound gateway corresponding to the current interface type in other hosts, so that the inbound gateway in the other hosts writes the target data into the shared memory of the other hosts.

2. The method according to claim 1, characterized in that, Gateway instances of the same interface type on different hosts connect via network connections corresponding to the interface type. The gateway instance then sends the target data to the gateway instance on another host corresponding to the current interface type, including: The gateway instance performs format conversion on the target data according to the transmission format of the network corresponding to the current interface type; The gateway instance sends the format-converted target data to the network corresponding to the current interface type, so that the gateway instance corresponding to the current interface type on other hosts can obtain the target data from the network.

3. The method according to claim 1, characterized in that, The gateway system routes the target data to the corresponding gateway instance based on the current interface type corresponding to the target data in shared memory, including: The gateway system calls the discovery thread according to a preset discovery cycle, so that the discovery thread routes the target data to the corresponding gateway instance according to the current interface type of the target data in the shared memory; The gateway instance sends the target data to the gateway instance corresponding to the current interface type in other hosts, including: The gateway system invokes a forwarding thread according to a preset forwarding cycle, so that the forwarding thread controls the gateway instance to send the target data to the gateway instance corresponding to the current interface type in other hosts.

4. The method according to claim 1, characterized in that, The shared memory consists of dedicated memory areas for each interface type; before the gateway system routes the target data to the corresponding gateway instance based on the current interface type of the target data in the shared memory, the following is also included: The application in the host where the gateway system is located writes the target data into the dedicated memory area of ​​the current interface type in the host. The gateway system routes the target data to the corresponding gateway instance based on the current interface type corresponding to the target data in shared memory, including: The gateway system routes the target data to the corresponding gateway instance through the channel corresponding to the dedicated memory area of ​​the current interface type.

5. The method according to claim 4, characterized in that, The determination of dedicated memory areas for each interface type includes: The gateway system obtains each interface type and the corresponding transmission data attributes of each interface type; The gateway system divides the shared memory of the host into dedicated memory areas for each interface type based on the transmission data attributes corresponding to each interface type.

6. The method according to claim 4, characterized in that, The creation of the channel corresponding to the dedicated memory region includes: The gateway system responds to a gateway creation request sent by the application on the host, creates a gateway instance, and binds the gateway instance to the corresponding interface type; The gateway system responds to the channel creation request sent by the application on the host and verifies the type of the gateway instance based on the interface type bound to the gateway instance; If the verification is successful, the gateway system creates a channel corresponding to the gateway instance and binds the channel to the dedicated memory area.

7. The method according to claim 4, characterized in that, The application in the host where the gateway system is located writes the target data into a dedicated memory area for the current interface type in the host, including: The application in the host where the gateway system is located determines the current security level of the target data, and determines the target sub-region in the dedicated memory area of ​​the current interface type according to the current security level; The application in the host where the gateway system is located writes the target data into the target sub-region.

8. A method for isolating transmitted and received data, characterized in that, Applied to various hosts, the hosts include various applications and a gateway system, the gateway system includes shared memory and gateway instances corresponding to various interface types, the method includes: In response to receiving target data sent by a gateway instance of the same interface type on another host, the gateway instance writes the target data into the shared memory of the host, so that the application on the host can read the target data from the shared memory; the target data is the data sent by the other host in performing the method of isolating and sending data according to claim 1.

9. The method according to claim 8, characterized in that, Before the gateway instance writes the target data into the shared memory of the host, the method further includes: The gateway instance performs at least one of the following processing on the target data according to the security level of the corresponding interface type: data verification processing, authorization verification processing, encryption conversion processing, identity authentication processing, and data filtering processing.

Citation Information

Patent Citations

  • Vehicle-mounted communication method, device, equipment and storage medium

    CN114501376A

  • Vehicle-end system-on-chip communication system and method based on protocol conversion

    CN117354385A