Data transmission method, apparatus, vehicle and device
By introducing authentication processes and shared memory drivers between subsystems, identity authentication and channel allocation are realized, which solves the problem of data communication between subsystems with different information security levels and achieves high-security and high-performance data transmission.
Patent Information
- Application Number
- PCT/CN2023/135155
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-31
- Filing Date
- 2023-11-29
- Publication Date
- 2024-10-03
AI Technical Summary
In fields such as aviation, autonomous driving, robotics and industrial control, multiple subsystems have different information security levels, making it difficult to achieve high security and high performance for data communication across different subsystems.
By introducing authentication processes and shared memory drivers between subsystems, identity authentication and channel allocation are implemented to ensure the legality and security of communication, and cross-domain channels and intra-domain channels are used for data transmission.
It realizes high-security and high-performance data communication between subsystems of different information security levels, ensures the legality and security of data transmission, and improves the overall performance of the system.
Smart Images

Figure CN2023135155_03102024_PF_FP_ABST
Abstract
Description
Data transmission method, device, vehicle and equipment
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on March 31, 2023, with application number 202310359299.9 and application name “A data transmission method, device, vehicle and equipment”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of communication technology, and in particular to a data transmission method, apparatus, vehicle and equipment. Background Art
[0003] Currently, software systems in fields such as aviation, autonomous driving, robotics, and industrial control are complex, encompassing multiple subsystems and modules with varying functional safety and information security levels. These subsystems and modules require cross-subsystem data communication. For example, in the autonomous driving sector, a vehicle's software system can include multiple subsystems, each with varying information security levels. Therefore, achieving highly secure and high-performance data communication between subsystems with varying information security levels is a pressing challenge.
[0004] Summary of the Invention
[0005] The present application provides a data transmission method, apparatus, vehicle and equipment for achieving high-security and high-performance data communication between subsystems.
[0006] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
[0007] In a first aspect, a data transmission method is provided, which is applied to a communication device including a first subsystem and a second subsystem, wherein the first subsystem and the second subsystem may be subsystems of different information security levels or the same information security level, the first subsystem including a first authentication process and a first application, and the second subsystem including a second authentication process and a second application. The method comprises: the first application sending a request message to the second authentication process, the request message being used to request communication with the second application; the second authentication process authenticating the first application based on the received request message, and after successful authentication, allocating channel information (e.g., a channel name or a channel identifier) for communication between the first and second applications, the channel information being used to indicate a shared memory channel for communication between the first and second applications; the second authentication process sending the channel information to the first and second applications; the first and second applications establishing the shared memory channel based on the channel information, and communicating via the shared memory channel.
[0008] In the above technical solution, when the first application in the first subsystem needs to communicate with the second application in the second subsystem, the first application can send a request message to the second authentication process in the second subsystem. The second authentication process can authenticate the first application and allocate channel information for the communication between the first application and the second application after the authentication is passed, and send it to the first application and the second application. The first application and the second application can create a shared memory channel based on the channel information, so that the first application and the second application communicate through the shared memory channel to achieve high-security and high-performance data communication between different subsystems.
[0009] In one possible implementation of the first aspect, the second authentication process authenticates the first application based on the received request information, including: the second authentication process authenticates the first application and determines the legitimacy of communication between the first application and the second application; if the identity authentication of the first application passes and the communication between the first application and the second application is legal, the first application authentication is determined to have passed; if the identity authentication of the first application fails or the communication between the first application and the second application is illegal, the first application authentication is determined to have failed. In this possible implementation, the second authentication process can improve the legitimacy and security of communication between the first application and the second application by authenticating the first application.
[0010] In one possible implementation of the first aspect, the second authentication process determines the legitimacy of communication between the first application and the second application, including: determining the legitimacy of communication between the first application and the second application based on communication configuration information, where the communication configuration information indicates a correspondence between application communications between different subsystems, where the different subsystems include the first subsystem and the second subsystem. This possible implementation provides a simple, secure, and reliable method for determining the legitimacy of communication between the first application and the second application.
[0011] In one possible implementation of the first aspect, the method further includes: the first authentication process sending identity information of the first application to the second authentication process, where the identity information of the first application is used by the second authentication process to authenticate the first application. In this possible implementation, the first authentication process may send the identity information of the first application to the second authentication process, so that the second authentication process authenticates the first application using the identity information of the first application, thereby ensuring the legitimacy and security of the first application.
[0012] In a possible implementation of the first aspect, the first subsystem further includes a first shared memory driver, the second subsystem further includes a second shared memory driver, and the first application and the second application establish the shared memory channel based on the channel information, including: the first application and the second application respectively send instruction information to the first shared memory driver and the second shared memory driver based on the channel information, the instruction information being used to instruct the creation of the shared memory channel; the first shared memory driver and the second shared memory driver respectively authenticate the first application and the second application, and create the shared memory channel for the first application and the second application after the authentication is passed. In the above possible implementation, when the first application and the second application apply to create a shared memory channel, the first shared memory driver and the second shared memory driver can respectively authenticate the first application and the second application, and create the shared memory channel after the authentication is passed, thereby further improving the security of communication between the first application and the second application.
[0013] In a possible implementation of the first aspect, the indication information includes the channel information, and the first shared memory driver and the second shared memory driver respectively authenticate the first application and the second application, including: the first shared memory driver and the second shared memory driver respectively determine the consistency of the channel information included in the indication information and the channel information assigned by the second authentication process; the first shared memory driver performs identity authentication on the first application, and the second shared memory driver performs identity authentication on the second application; wherein, if the channel information included in the indication information is consistent with the channel information assigned by the second authentication process, and the identity authentication of the first application and the second application are both passed, then it is determined that the authentication of the first application and the second application is passed; if the channel information included in the indication information is inconsistent with the channel information assigned by the second authentication process, or the identity authentication of the first application fails, or the identity authentication of the second application fails, then it is determined that the authentication of the first application and the second application is failed. In the above possible implementation, a simple, secure and reliable authentication method is provided.
[0014] In one possible implementation of the first aspect, the method further includes: the first authentication process sending the channel information allocated by the second authentication process and the identity information of the first application to the first shared memory driver; and the second authentication process sending the channel information allocated by the second authentication process and the identity information of the second application to the second shared memory driver. In this possible implementation, an authentication process in the same subsystem can send the allocated channel information and the identity information of the relevant application to the shared memory driver, so that the shared memory driver uses this information to authenticate the relevant application, thereby further improving the security of application communication between subsystems.
[0015] In a possible implementation of the first aspect, the first shared memory driver includes a first data interface and a first management interface, and the second shared memory driver includes a second data interface and a second management interface; wherein the first data interface is used for the first shared memory driver to communicate with the first application, the first management interface is used for the first shared memory driver to communicate with the first authentication process, the second data interface is used for the second shared memory driver to communicate with the second application, and the second management interface is used for the second shared memory driver to communicate with the second authentication process.
[0016] In a possible implementation of the first aspect, the method further includes: the second authentication process allocates a first cross-domain channel to the first application, and the first cross-domain channel is used for communication between the second authentication process and the first application. In the above possible implementation, the second authentication process can ensure the security of communication between the second authentication process and the first application by establishing a first cross-domain channel for communication between the second authentication process and the first application. In the above possible implementation, communicating with the authentication process through the management interface of the shared memory driver and communicating with the application through the data interface of the shared memory driver can separate the management-level communication and the data-level communication related to the shared memory driver, thereby further improving the security of communication.
[0017] In a second aspect, a data transmission device is provided, comprising a first subsystem and a second subsystem, wherein the first subsystem and the second subsystem may be subsystems of different information security levels or of the same information security level, the first subsystem comprising a first authentication process and a first application, and the second subsystem comprising a second authentication process and a second application. The first application is configured to: send a request message to the second authentication process, wherein the request message is used to request communication with the second application; the second authentication process is configured to: authenticate the first application based on the received request message, and after authentication is successful, allocate channel information (e.g., a channel name or a channel identifier) to the first application and the second application, wherein the channel information is used to indicate a shared memory channel for communication between the first application and the second application; the second authentication process is further configured to: send the channel information to the first application and the second application; and the first application and the second application are further configured to: establish the shared memory channel based on the channel information and communicate via the shared memory channel.
[0018] In a possible implementation of the second aspect, the second authentication process is further used to: perform identity authentication on the first application and determine the legitimacy of communication between the first application and the second application; wherein, if the identity authentication of the first application passes and the communication between the first application and the second application is legal, then it is determined that the authentication of the first application passes; if the identity authentication of the first application fails, or the communication between the first application and the second application is illegal, then it is determined that the authentication of the first application fails.
[0019] In a possible implementation of the second aspect, the second authentication process is also used to: determine the legitimacy of communication between the first application and the second application based on communication configuration information, and the communication configuration information is used to indicate the correspondence between application communications between different subsystems, and the different subsystems include the first subsystem and the second subsystem.
[0020] In a possible implementation of the second aspect, the first authentication process is used to send identity information of the first application to the second authentication process, and the identity information of the first application is used for the second authentication process to authenticate the identity of the first application.
[0021] In a possible implementation of the second aspect, the first subsystem further includes a first shared memory driver, and the second subsystem further includes a second shared memory driver; the first application and the second application are further used to: send indication information to the first shared memory driver and the second shared memory driver respectively according to the channel information, and the indication information is used to instruct to create the shared memory channel; the first shared memory driver and the second shared memory driver are further used to: authenticate the first application and the second application respectively, and create the shared memory channel for the first application and the second application after the authentication is passed.
[0022] In a possible implementation of the second aspect, the indication information includes the channel information; the first shared memory driver and the second shared memory driver are further used to respectively determine the consistency between the channel information included in the indication information and the channel information assigned by the second authentication process; the first shared memory driver is further used to perform identity authentication on the first application; and the second shared memory driver is further used to perform identity authentication on the second application. If the channel information included in the indication information is consistent with the channel information assigned by the second authentication process, and both the first and second applications pass identity authentication, then it is determined that the authentication of the first and second applications has passed; if the channel information included in the indication information is inconsistent with the channel information assigned by the second authentication process, or the identity authentication of the first application fails, or the identity authentication of the second application fails, then it is determined that the authentication of the first and second applications has failed.
[0023] In a possible implementation of the second aspect, the first authentication process is further used to: send the channel information allocated by the second authentication process and the identity information of the first application to the first shared memory driver; the second authentication process is further used to: send the channel information allocated by the second authentication process and the identity information of the second application to the second shared memory driver.
[0024] In a possible implementation of the second aspect, the first shared memory driver includes a first data interface and a first management interface, and the second shared memory driver includes a second data interface and a second management interface; wherein the first data interface is used for the first shared memory driver to communicate with the first application, the first management interface is used for the first shared memory driver to communicate with the first authentication process, the second data interface is used for the second shared memory driver to communicate with the second application, and the second management interface is used for the second shared memory driver to communicate with the second authentication process.
[0025] In a possible implementation of the second aspect, the second authentication process is further used to: allocate a first cross-domain channel to the first application, where the first cross-domain channel is used for communication between the second authentication process and the first application.
[0026] According to a third aspect, a data transmission method is provided for transmitting data between a first subsystem and a second subsystem, wherein the first subsystem and the second subsystem may be subsystems of different information security levels or the same information security level, the first subsystem includes a first authentication process and a first application, and the second subsystem includes a second authentication process and a second application, the method comprising: the first application sends a request message to the second authentication process, the request message being used to request communication with the second application; the first application receives channel information (for example, a channel name or a channel identifier) from the second authentication process, the channel information being authenticated by the second authentication process for the first application based on the received request information, and allocated for communication between the first application and the second application after the authentication is passed, the channel information being used to indicate a shared memory channel for communication between the first application and the second application; the first application establishes the shared memory channel with the second application based on the channel information, and transmits data through the shared memory channel.
[0027] In a possible implementation of the third aspect, the method further includes: the first authentication process sending identity information of the first application to the second authentication process, and the identity information of the first application is used for the second authentication process to authenticate the identity of the first application.
[0028] In a possible implementation of the third aspect, the first subsystem further includes a first shared memory driver, the second subsystem further includes a second shared memory driver, and the first application establishes the shared memory channel with the second application based on the channel information, including: the first application sends indication information to the first shared memory driver based on the channel information, and the indication information is used to instruct the creation of the shared memory channel; the first shared memory driver authenticates the first application and creates the shared memory channel for the first application and the second application after the authentication is passed.
[0029] In a possible implementation of the third aspect, the indication information includes the channel information, and the first shared memory driver authenticates the first application, including: the first shared memory driver determines the consistency of the channel information included in the indication information and the channel information assigned by the second authentication process, and performs identity authentication on the first application; wherein, if the channel information included in the indication information is consistent with the channel information assigned by the second authentication process, and the identity authentication of the first application passes, it is determined that the authentication of the first application passes; if the channel information included in the indication information is inconsistent with the channel information assigned by the second authentication process, or the identity authentication of the first application fails, it is determined that the authentication of the first application fails.
[0030] In a possible implementation manner of the third aspect, the method further includes: the first authentication process sending the channel information allocated by the second authentication process and the identity information of the first application to the first shared memory driver.
[0031] In a possible implementation of the third aspect, the first shared memory driver includes a first data interface and a first management interface; wherein the first data interface is used for the first shared memory driver to communicate with the first application, and the first management interface is used for the first shared memory driver to communicate with the first authentication process.
[0032] In a fourth aspect, a data transmission method is provided for transmitting data between a first subsystem and a second subsystem, where the first subsystem and the second subsystem may be subsystems of different information security levels or the same information security level, the first subsystem includes a first authentication process and a first application, and the second subsystem includes a second authentication process and a second application, the method including: the second authentication process receives request information from the first application, where the request information is used to request communication with the second application; the second authentication process authenticates the first application based on the received request information, and allocates channel information for communication between the first application and the second application after the authentication is passed, where the channel information is used to indicate a shared memory channel for communication between the first application and the second application; the second authentication process sends the channel information to the first application and the second application; the second application establishes the shared memory channel with the first application based on the channel information, and transmits data through the shared memory channel.
[0033] In a possible implementation of the fourth aspect, the second authentication process authenticates the first application based on the received request information, including: the second authentication process authenticates the identity of the first application and determines the legitimacy of the communication between the first application and the second application; wherein, if the identity authentication of the first application passes and the communication between the first application and the second application is legal, then it is determined that the authentication of the first application passes; if the identity authentication of the first application fails, or the communication between the first application and the second application is illegal, then it is determined that the authentication of the first application fails.
[0034] In a possible implementation of the fourth aspect, determining the legitimacy of communication between the first application and the second application includes: determining the legitimacy of communication between the first application and the second application based on communication configuration information, the communication configuration information is used to indicate the correspondence between application communications between different subsystems, and the different subsystems include the first subsystem and the second subsystem.
[0035] In a possible implementation of the fourth aspect, the method further includes: receiving identity information of the first application from the first authentication process to the second authentication process, where the identity information of the first application is used for identity authentication of the first application by the second authentication process.
[0036] In a possible implementation of the fourth aspect, the first subsystem further includes a first shared memory driver, the second subsystem further includes a second shared memory driver, and the second application establishes the shared memory channel with the first application based on the channel information, including: the second application sends indication information to the second shared memory driver based on the channel information, and the indication information is used to instruct the creation of the shared memory channel; the second shared memory driver authenticates the second application, and creates the shared memory channel for the first application and the second application after the authentication is passed.
[0037] In a possible implementation of the fourth aspect, the indication information includes the channel information, and the second shared memory driver authenticates the second application, including: the second shared memory driver determines the consistency of the channel information included in the indication information and the channel information assigned by the second authentication process, and performs identity authentication on the second application; wherein, if the channel information included in the indication information is consistent with the channel information assigned by the second authentication process, and the identity authentication of the first application is passed, it is determined that the authentication of the second application is passed; if the channel information included in the indication information is inconsistent with the channel information assigned by the second authentication process, or the identity authentication of the second application fails, it is determined that the authentication of the second application fails.
[0038] In a possible implementation manner of the fourth aspect, the method further includes: the second authentication process sending the channel information allocated by the second authentication process and the identity information of the second application to the second shared memory driver.
[0039] In a possible implementation of the fourth aspect, the second shared memory driver includes a second data interface and a second management interface; wherein the second data interface is used for the second shared memory driver to communicate with the second application, and the second management interface is used for the second shared memory driver to communicate with the second authentication process.
[0040] In a possible implementation manner of the fourth aspect, the method further includes: the second authentication process allocating a first cross-domain channel to the first application, where the first cross-domain channel is used for communication between the second authentication process and the first application.
[0041] In a fifth aspect, a data transmission device is provided, which includes a first subsystem, and the first subsystem can be used to transmit data with a second subsystem. The first subsystem and the second subsystem can be subsystems with different information security levels or the same information security level. The first subsystem includes a first authentication process and a first application, and the second subsystem includes a second authentication process and a second application; the first application is used to send a request message to the second authentication process, and the request message is used to request communication with the second application; the first application is also used to receive channel information from the second authentication process, and the channel information is authenticated by the second authentication process for the first application based on the received request information, and is allocated for communication between the first application and the second application after the authentication is passed, and the channel information is used to indicate a shared memory channel for communication between the first application and the second application; the first application is also used to establish the shared memory channel with the second application based on the channel information, and transmit data through the shared memory channel.
[0042] In a possible implementation of the fifth aspect, the first authentication process is used to send identity information of the first application to the second authentication process, and the identity information of the first application is used for the second authentication process to authenticate the identity of the first application.
[0043] In a possible implementation of the fifth aspect, the first subsystem also includes a first shared memory driver; the first application is further used to send indication information to the first shared memory driver according to the channel information, and the indication information is used to instruct the creation of the shared memory channel; the first shared memory driver is used to authenticate the first application and create the shared memory channel for the first application and the second application after the authentication is passed.
[0044] In a possible implementation of the fifth aspect, the indication information includes the channel information; the first shared memory driver is further used to determine the consistency between the channel information included in the indication information and the channel information assigned by the second authentication process, and to perform identity authentication on the first application; wherein, if the channel information included in the indication information is consistent with the channel information assigned by the second authentication process, and the identity authentication of the first application is passed, it is determined that the authentication of the first application is passed; if the channel information included in the indication information is inconsistent with the channel information assigned by the second authentication process, or the identity authentication of the first application fails, it is determined that the authentication of the first application is failed.
[0045] In a possible implementation of the fifth aspect, the first authentication process is further configured to send the channel information allocated by the second authentication process and the identity information of the first application to the first shared memory driver.
[0046] In a possible implementation of the fifth aspect, the first shared memory driver includes a first data interface and a first management interface; wherein the first data interface is used for the first shared memory driver to communicate with the first application, and the first management interface is used for the first shared memory driver to communicate with the first authentication process.
[0047] In a sixth aspect, a data transmission device is provided, which includes a second subsystem, and the second subsystem can be used to transmit data between the first subsystem, the first subsystem and the second subsystem can be subsystems with different information security levels or the same information security level, the first subsystem includes a first authentication process and a first application, and the second subsystem includes a second authentication process and a second application; the second authentication process is used to receive request information from the first application, and the request information is used to request communication with the second application; the second authentication process is also used to authenticate the first application based on the received request information, and allocate channel information for communication between the first application and the second application after the authentication is passed, and the channel information is used to indicate a shared memory channel for communication between the first application and the second application; the second authentication process is also used to send the channel information to the first application and the second application; the second application establishes the shared memory channel with the first application based on the channel information, and transmits data through the shared memory channel.
[0048] In a possible implementation of the sixth aspect, the second authentication process is also used to authenticate the first application and determine the legitimacy of communication between the first application and the second application; if the identity authentication of the first application passes and the communication between the first application and the second application is legal, then it is determined that the first application authentication passes; if the identity authentication of the first application fails, or the communication between the first application and the second application is illegal, then it is determined that the first application authentication fails.
[0049] In a possible implementation of the sixth aspect, the second authentication process is also used to determine the legitimacy of communication between the first application and the second application based on communication configuration information, and the communication configuration information is used to indicate the correspondence between application communications between different subsystems, and the different subsystems include the first subsystem and the second subsystem.
[0050] In a possible implementation of the sixth aspect, the second authentication process is further used to receive identity information of the first application from the first authentication process, and the identity information of the first application is used for the second authentication process to authenticate the identity of the first application.
[0051] In a possible implementation of the sixth aspect, the second subsystem also includes a second shared memory driver; the second application is further used to send indication information to the second shared memory driver based on the channel information, and the indication information is used to instruct the creation of the shared memory channel; the second shared memory driver is used to authenticate the second application and create the shared memory channel for the first application and the second application after the authentication is passed.
[0052] In a possible implementation of the sixth aspect, the indication information includes the channel information; the second shared memory driver is further used to determine the consistency between the channel information included in the indication information and the channel information assigned by the second authentication process, and to perform identity authentication on the second application; wherein, if the channel information included in the indication information is consistent with the channel information assigned by the second authentication process, and the identity authentication of the first application is passed, it is determined that the authentication of the second application is passed; if the channel information included in the indication information is inconsistent with the channel information assigned by the second authentication process, or the identity authentication of the second application fails, it is determined that the authentication of the second application fails.
[0053] In a possible implementation manner of the sixth aspect, the second authentication process is further configured to send the channel information allocated by the second authentication process and the identity information of the second application to the second shared memory driver.
[0054] In a possible implementation of the sixth aspect, the second shared memory driver includes a second data interface and a second management interface; wherein the second data interface is used for the second shared memory driver to communicate with the second application, and the second management interface is used for the second shared memory driver to communicate with the second authentication process.
[0055] In a possible implementation of the sixth aspect, the second authentication process is further used to allocate a first cross-domain channel to the first application, and the first cross-domain channel is used for communication between the second authentication process and the first application.
[0056] In another aspect of the present application, a vehicle is provided, comprising a data transmission device provided by the second aspect, the fifth aspect, the sixth aspect or any possible implementation of any of the above aspects.
[0057] In another aspect of the present application, an electronic device is provided, which includes a processor and a memory, wherein instructions are stored in the memory. When the processor runs the instructions in the memory, the electronic device executes the data transmission method provided by the first aspect, the third aspect, the fourth aspect, or any possible implementation of any of the above aspects.
[0058] In another aspect of the present application, a computer-readable storage medium is provided, in which a computer program or instruction is stored. When the computer program or instruction is executed by a device, the device executes the data transmission method provided by the first aspect, the third aspect, the fourth aspect, or any possible implementation of any of the above aspects.
[0059] In another aspect of the present application, a computer program product is provided, which includes: a computer program (also referred to as code, or instructions), which, when executed, enables a computer to execute a data transmission method provided in the first aspect, the third aspect, the fourth aspect, or any possible implementation of any of the above aspects.
[0060] It can be understood that the beneficial effects that can be achieved by any of the data transmission devices, vehicles, electronic devices, computer-readable storage media and computer program products provided above can correspond to the beneficial effects of the data transmission method provided in the first aspect above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] FIG1 is a schematic structural diagram of a vehicle-mounted device provided in an embodiment of the present application;
[0062] FIG2 is a schematic diagram of communication between different subsystems provided in an embodiment of the present application;
[0063] FIG3 is a schematic diagram of another communication between different subsystems provided in an embodiment of the present application;
[0064] FIG4 is a schematic diagram of a hardware architecture of an electronic device provided in an embodiment of the present application;
[0065] FIG5 is a schematic diagram of a software architecture of an electronic device provided in an embodiment of the present application;
[0066] FIG6 is a flow chart of a data transmission method provided in an embodiment of the present application;
[0067] FIG7 is a flow chart of another data transmission method provided in an embodiment of the present application;
[0068] FIG8 is a schematic flow chart of another data transmission method provided in an embodiment of the present application;
[0069] FIG9 is a flow chart of another data transmission method provided in an embodiment of the present application;
[0070] FIG10 is a flow chart of another data transmission method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0071] The following describes the technical solutions in the embodiments of the present application in conjunction with the accompanying drawings. In the description of the present application, unless otherwise specified, " / " indicates that the objects associated with each other are in an "or" relationship. For example, A / B can represent A or B. "And / or" in the present application is only a description of the association relationship between the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural.
[0072] In the description of this application, unless otherwise specified, "plurality" means two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or plural.
[0073] To facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art will understand that the words "first" and "second" do not limit the quantity or execution order, and the words "first" and "second" do not necessarily mean different.
[0074] At the same time, in the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner to facilitate understanding.
[0075] Currently, software systems in fields such as aviation, autonomous driving, robotics, and industrial control are complex and require multiple subsystems and modules with varying functional safety and information security levels. For example, these functional safety levels can include ASIL-D, ASIL-B, and QM in the automotive safety integrity level (ASIL). These subsystems and modules require cross-subsystem data communication.
[0076] Taking a vehicle in the field of autonomous driving as an example, as shown in Figure 1, a vehicle can include a vehicle-side and on-board components. The vehicle-side can include a gateway for providing an in-vehicle network, as well as a smart cockpit and an on-board box (Tbox) connected through the gateway. The smart cockpit can communicate with external terminals (such as the user's mobile phone), and the on-board box can communicate with the cloud network. In addition, the vehicle-side can also include multiple subsystems such as a body control subsystem, an intelligent driving subsystem, and an intelligent power subsystem. These multiple subsystems can be used to control different on-board components. Among them, the body control subsystem can be used to control functions and firmware related to vehicle control, such as doors, windows, and seats on the vehicle; the intelligent driving subsystem can be used to control functions and firmware related to autonomous driving control, such as displays, wireless networks, cameras, and speakers; and the intelligent power subsystem can be used to control functions and firmware related to power, such as the electronic stability program (ESP), electric power steering (EPS), and battery management system (BMS). These subsystems typically have varying levels of information security and functional safety. Therefore, data communication between these subsystems primarily requires high performance for large amounts of data, such as high-precision maps, and high information security for high-risk content, such as autonomous driving configurations.
[0077] In related technologies, different subsystems usually communicate with each other using the following two solutions, which are described below.
[0078] First, applications (apps) between different subsystems communicate based on shared memory. Each subsystem includes an app and a shared memory driver. This shared memory consists of three parts: the first part (represented by the T area) is compatible with the shared memory driver implementation and is provided to the user app for use and organized and managed by the app. The second part (represented by the CH area) is used to allocate channels for communication between different subsystems and is managed by the shared memory driver. Each channel is organized as a first-in-first-out (FIFO) queue with two corresponding FIFOs for receiving and sending. The third part is a dynamically allocated area for temporary use of large data packets, providing an interface to the app to achieve zero-copy requirements for large data packets.
[0079] Exemplarily, as shown in Figure 2, taking different subsystems including subsystem a and subsystem b as an example, when application app1 in subsystem a needs to communicate with application app2 in subsystem b, the method specifically includes: app1 and app2 use the open channel interface (for example, XpcOpenChannel interface) to open the communication channel based on the same channel identifier; app2 uses the viewing interface (for example, XpcPoll interface) to check whether there is a data packet that needs to be received in the channel. If there is no data packet, it sleeps and waits and sets the wait flag; app1 prepares data, and uses the write interface (XpcWrite interface) to store the data in the communication and checks the wait flag to confirm whether app2 is waiting. If so, it sends an ipi interrupt to wake up app2; after app2 is awakened, it uses the read interface (for example, XpcRead interface) to obtain the data packet and determines whether there is the next data packet that has not been received in the channel based on the return value. If so, it continues to use the read interface to obtain the data packet. If not, it uses the viewing interface to sleep and wait; app1 prepares the data that needs to be sent next. In this solution, when it comes to one-to-many or one-to-one communication scenarios, a malicious app can access the channel and obtain communication data in the shared memory as long as it obtains channel information, resulting in poor communication security.
[0080] The second type is that applications between different subsystems usually communicate based on network sockets. For example, taking the different subsystems including subsystem a and subsystem b as an example, as shown in Figure 3, when application app1 in subsystem a communicates with application app2 in subsystem b, app1 and app2 respectively create a socket communication pipe of the transmission control protocol (TCP) or user datagram protocol (UDP) protocol to communicate. In addition, when application app1 and application app2 communicate, the network firewall iptable set in the network protocol layer will be used to add labels to the transmitted data packets, and then the media access control (MAC) mechanism will be added based on the module selinux in the link layer to increase information security protection. In this solution, applications between different subsystems need to communicate through sockets, which will make the transmission link longer, so the performance cannot meet the transmission of large amounts of data, so its use is limited.
[0081] Based on this, embodiments of the present application provide a data transmission method that can be applied to electronic devices in fields such as aviation, autonomous driving, robotics, and industrial control. The electronic devices may include multiple subsystems. The multiple subsystems may have different functional safety levels and / or different information security levels, and the multiple subsystems can communicate with each other. Among them, the electronic devices include but are not limited to: mobile phones, tablets, laptops, PDAs, mobile internet devices (MIDs), wearable devices (such as smart watches, smart bracelets, pedometers, etc.), vehicle-mounted devices (such as cars, bicycles, electric vehicles, airplanes, ships, trains, high-speed railways, etc.), virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, smart home devices (such as refrigerators, televisions, air conditioners, electricity meters, etc.), intelligent robots, workshop equipment, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, or wireless terminals in smart homes, flying equipment (such as intelligent robots, hot air balloons, drones, airplanes), etc.
[0082] For example, the electronic device is taken as an in-vehicle device as an example to introduce and illustrate the structure of the hardware architecture and software architecture of the in-vehicle device.
[0083] FIG4 is a schematic diagram of the hardware architecture of an electronic device provided in an embodiment of the present application. The electronic device can be a vehicle, a car, an in-vehicle terminal, or other terminal for controlling a vehicle. As shown in FIG4 , the hardware architecture of the electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a wireless communication module 160, an audio module 170, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, and a display screen 194.
[0084] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0085] The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and execution.
[0086] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the instruction or data again, it can directly retrieve it from the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0087] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.
[0088] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display 194 and the camera 193. MIPI interfaces include the camera serial interface (CSI) and the display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the electronic device's camera function. The processor 110 and the display 194 communicate via the DSI interface to implement the electronic device's display function.
[0089] USB port 130 is an interface that complies with USB standards and may be a Mini USB port, a Micro USB port, a USB Type-C port, or the like. USB port 130 can be used to connect a charger to charge an electronic device, or to transfer data between the electronic device and peripheral devices. It can also be used to connect headphones to play audio. This port can also be used to connect other electronic devices, such as augmented reality (AR) devices.
[0090] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only for illustrative purposes and does not constitute a structural limitation on the electronic device. In other embodiments of the present application, the electronic device may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.
[0091] The wireless communication function of the electronic device can be implemented through an antenna, a wireless communication module 160, a modem processor, a baseband processor, and the like.
[0092] Antennas are used to transmit and receive electromagnetic wave signals. Each antenna in an electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antennas can be reused as diversity antennas for wireless local area networks. In some other embodiments, antennas can be used in conjunction with tuning switches.
[0093] The wireless communication module 160 can provide wireless communication solutions for electronic devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via an antenna, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive signals to be sent from the processor 110, frequency modulate them, amplify them, and convert them into electromagnetic waves for radiation through the antenna.
[0094] In some embodiments, the electronic device can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS) and / or satellite based augmentation system (SBAS).
[0095] The electronic device implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0096] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be manufactured using a liquid crystal display (LCD), such as an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini-LED, a Micro-LED, a Micro-OLED, or a quantum dot light-emitting diode (QLED).
[0097] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in standard red, green, blue (RGB), luminance chrominance (YUV) and other formats.
[0098] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0099] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor 110.
[0100] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110. The electronic device can use the audio module 170 for functions such as music playback and recording. The audio module 170 may include a speaker, a receiver, a microphone, a headphone jack, and an application processor to implement audio functions.
[0101] The sensor module 180 may include a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
[0102] A touch sensor, also known as a "touch-sensitive device," can be provided on display screen 194. The touch sensor and display screen 194 form a touch screen, also known as a "touch screen." The touch sensor is used to detect touch operations applied to or near the touch sensor. The touch sensor can transmit the detected touch operations to an application processor to determine the type of touch event. Visual output related to the touch operations can be provided through display screen 194. In other embodiments, the touch sensor can also be provided on the surface of the electronic device, in a location different from that of display screen 194.
[0103] Keys 190 include a control key, a power key, a volume key, and the like. Keys 190 may be mechanical keys or touch keys. The electronic device may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device.
[0104] Motor 191 can be used for touch vibration feedback. For example, touch operations applied to different applications can correspond to different vibration feedback effects. Motor 191 can also correspond to different vibration feedback effects for touch operations applied to different areas of display screen 194. Touch vibration feedback effects can also be customized.
[0105] The indicator 192 may be an indicator light, may be used to indicate a change in power level, may also be used to indicate a message, a turn signal, a seat belt reminder light, etc.
[0106] In an embodiment of the present application, the internal memory 121 may include shared memory, which can be used to provide channels for communication between different subsystems. Each channel can be organized in a queue-first-first-out (FIFO) structure. In one example, the shared memory may include three parts: a first part that can be provided to a user app and organized and managed by the app; a second part that is used to allocate channels for communication between different subsystems. Each channel is organized in a queue-first-first-out (FIFO) structure and has two corresponding FIFOs for receiving and sending; and a third part that is a dynamically allocated area that can be used for temporary use of large data packets, providing an interface to the app to achieve zero-copy requirements for large data packets.
[0107] Figure 5 is a schematic diagram of a software architecture of an electronic device provided in an embodiment of the present application. The software architecture may include multiple subsystems running on the hardware resources (also referred to as the hardware layer) of the above-mentioned hardware architecture, and the multiple subsystems may include two or more subsystems. Figure 5 is taken as an example in which the multiple subsystems include a first subsystem and a second subsystem, wherein the first subsystem and the second subsystem may be subsystems of different information security levels or the same information security level. Optionally, the multiple subsystems may include but are not limited to: a power consumption subsystem, an audio subsystem, a video subsystem, an artificial intelligence (AI) subsystem, an image processing subsystem, a modem subsystem, a key management and encryption and decryption algorithm subsystem, etc.
[0108] In an embodiment of the present application, each of the multiple subsystems may include an authentication process, one or more applications, and a shared memory driver. The authentication process may also be referred to as an identity and access management (IAM) process or an authentication and authorization process. In one example, a first subsystem includes a first authentication process, a first application, and a first shared memory driver, and a second subsystem includes a second authentication process, a second application, and a second shared memory driver.
[0109] In one example, the one or more applications may include, but are not limited to, one or more types of applications such as maps, music, calls, games, video playback, calendars, instant messaging, and input methods. Furthermore, each of the multiple subsystems may also include other drivers, such as, but not limited to, display drivers, camera drivers, audio drivers, Bluetooth drivers, and Wi-Fi drivers.
[0110] In one possible embodiment, a synchronization channel may exist between any two of the multiple subsystems, and this synchronization channel may be used for communication between the authentication processes of the two subsystems. For example, a synchronization channel may exist between a first authentication process in a first subsystem and a second authentication process in a second subsystem, and this synchronization channel may be used for communication between the first authentication process and the second authentication process. For example, the first authentication process and the second authentication process may transmit channel information and / or application identification, as described below, via this synchronization channel.
[0111] In another possible embodiment, the shared memory driver of each of the multiple subsystems may include a management interface and a data interface. The management interface may be used for communication between the shared memory driver and an authentication process in the same subsystem, and the data interface may be used for communication between the shared memory driver and an application in the same subsystem. For example, taking the first subsystem as an example, the first authentication process may send channel information and / or application identity information (described below) to the first shared memory driver via the first shared memory driver's management interface, and the first application may send data to the first shared memory driver via the first shared memory driver's data interface.
[0112] In another possible embodiment, there may be a cross-domain channel between the authentication process of any one of the multiple subsystems and the applications of other subsystems, for realizing communication between the authentication process of one subsystem and the applications of another subsystem. For example, there may also be a cross-domain channel between the first application in the first subsystem and the second authentication process in the second subsystem, and the cross-domain channel may be used for communication between the first application and the second authentication process. Similarly, there may be a cross-domain channel between the first authentication process in the first subsystem and the second application in the second subsystem, and the cross-domain channel may be used for communication between the first authentication process and the second application. For example, taking the second subsystem as an example, the first application may send the request information described below to the second authentication process through the cross-domain channel between the second authentication process and the first application.
[0113] In another possible embodiment, an intra-domain channel may exist between the authentication process and the application of each of the multiple subsystems, enabling communication between the authentication process and the application within the subsystem. For example, an intra-domain channel may exist between a first authentication process in a first subsystem and a first application in the first subsystem, enabling communication between the first authentication process and the first application.
[0114] It will be understood that the above-mentioned specific structures and related descriptions of the hardware architecture and software architecture of the electronic device are merely exemplary. In actual applications, the hardware architecture and the software architecture may also include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0115] It is understandable that the hardware architecture and software architecture shown above are all described as an example of one device in which the first subsystem and the second subsystem are located on the same hardware layer. In actual applications, the first subsystem and the second subsystem may also be located in different devices or hardware layers. For example, the different devices or hardware layers may include the vehicle's smart cockpit, on-board box, gateway, and other hardware for intelligent driving. Exemplarily, the first subsystem may be located on the vehicle's smart cockpit, the second subsystem may be located on the on-board box, etc. In the embodiment of the present application, there is no specific restriction on whether the first subsystem and the second subsystem are both located on the same hardware, or are respectively located on different hardware.
[0116] Figure 6 is a flow chart of a data transmission method provided in an embodiment of the present application. The method can be applied to a data transmission device including a first subsystem and a second subsystem. The first subsystem includes a first authentication process, a first application and a first shared memory driver. The second subsystem includes a second authentication process, a second application and a second shared memory driver. The method includes the following steps.
[0117] S201: The first application sends a request message to the second authentication process, where the request message is used to request communication with the second application.
[0118] When a first application in a first subsystem needs to communicate with a second application in a second subsystem, the first application may send a request message to a second authentication process in the second subsystem, requesting communication with the second application. The request message may include an identifier of the second application. Furthermore, the request message may also include an identifier of the first application.
[0119] In one possible embodiment, the second authentication process may allocate a first cross-domain channel to the first application, and the first cross-domain channel may be used for communication between the second authentication process and the first application. In this way, when the first application sends the request information, the first application can send the request information to the second authentication process through the first cross-domain channel.
[0120] Optionally, during the system's initialization phase, the first authentication process in the first subsystem can send application information to the second authentication process in the second subsystem. This application information can be used to indicate information about one or more applications that have been launched in the first subsystem. For example, this application information can include the identity information of the first application. When the second authentication process receives this application information, it can allocate a first cross-domain channel for the first application.
[0121] Similarly, during the system's initialization phase, the second authentication process in the second subsystem can also send application information to the first authentication process in the first subsystem. This application information can be used to indicate information about one or more applications already enabled in the second subsystem, such as including the identity information of the second application. Upon receiving this application information, the first authentication process can allocate a second cross-domain channel for the second application, which can be used for communication between the first authentication process and the second application.
[0122] Optionally, a synchronization channel may exist between the first authentication process and the second authentication process, and the first authentication process and the second authentication process may send the above application information through the synchronization channel.
[0123] S202: The second authentication process authenticates the first application according to the received request information, and allocates channel information for communication between the first application and the second application after the authentication is passed. The channel information is used to indicate a shared memory channel for communication between the first application and the second application.
[0124] The shared memory channel may refer to a channel located in a shared memory, which can be used to implement communication between a first application and a second application. For example, the first application and the second application can write data to the shared memory channel and read data stored in the shared memory channel. Optionally, the shared memory channel may be a channel shared solely by the first application and the second application, i.e., other applications other than the first application and the second application cannot share the shared memory channel. The above-mentioned channel may also be referred to as a pipe or channel, and thus the shared memory channel may also be referred to as a shared memory pipe or a shared memory channel.
[0125] In addition, the channel information may include identification information of the shared memory channel, which may be a channel name or a channel identifier. The channel information may be used to indicate the shared memory channel, or may be used to create the shared memory channel. In other words, the channel information may be used to establish a shared memory channel, and the established shared memory channel may be identified by the channel information.
[0126] In one possible embodiment, the second authentication process authenticates the first application based on the received request information, which may include: the second authentication process authenticates the identity of the first application and determines the legitimacy of communication between the first application and the second application. If the identity authentication of the first application passes and the communication between the first application and the second application is legal, the first application authentication is determined to have passed. If the identity authentication of the first application fails or the communication between the first application and the second application is illegal, the first application authentication is determined to have failed.
[0127] Optionally, the second authentication process may authenticate the first application based on the identity information of the first application. Exemplarily, authenticating the first application may include: authenticating the first application based on the first security context of the first application and related identity information such as the identifier of the first application. The first security context refers to the security context of the first application, which is an access control attribute that can serve as a credential for access by the first application. The first application identifier may be the process identifier (PID) of the first application or the first application identification name.
[0128] The identity information of the first application can be sent by the first authentication process to the second authentication process. The identity information of the first application can be used by the second authentication process to authenticate the first application. For example, during the initial system phase, when the first application is started, the first authentication process can send the identity information of the first application to the second authentication process. In this way, when the second authentication process needs to authenticate the first application, it can use the identity information of the first application to authenticate the first application.
[0129] Optionally, the second authentication process determining the legitimacy of communication between the first application and the second application may include: determining the legitimacy of communication between the first application and the second application based on communication configuration information. The communication configuration information is used to indicate a corresponding relationship between application communications between different subsystems, the different subsystems including the first subsystem and the second subsystem.
[0130] If the correspondence between the application communications between the different subsystems indicated by the communication configuration information includes a correspondence between the first application and the second application, then the communication between the first application and the second application is determined to be legal. If the correspondence between the application communications between the different subsystems indicated by the communication configuration information includes a correspondence between the first application and the second application, then the communication between the first application and the second application is determined to be illegal.
[0131] Optionally, the communication configuration information can also be called a communication whitelist, for example, it is used to indicate the correspondence between one or more applications in the first subsystem and one or more applications in the second subsystem. In addition, the communication configuration information can be pre-configured, for example, the first subsystem and the second subsystem can be configured by static configuration. In this way, when the second authentication process needs to use the communication configuration information, the communication configuration information can be obtained from the corresponding subsystem. Exemplarily, during the system initialization phase, the second subsystem can load the communication configuration information and determine the legitimacy of the communication between the first application and the second application based on the communication configuration information.
[0132] S203: The second authentication process sends the channel information to the first application and the second application.
[0133] After the second authentication process sends the channel information for the first application and the second application, the second authentication process may send the channel information to the first application and the second application respectively. In one possible embodiment, the above S203 may include: S2031. The second authentication process sends the channel information to the second application; S2032. The second authentication process sends the channel information to the first application.
[0134] Optionally, when the second authentication process sends the channel information to the second application, the second authentication process may also forward the request information sent by the first application to the second application, so that the second application can receive the request information and the channel information. When the second application determines to communicate with the first application, the second application may send a reply message to the second authentication process, indicating that it agrees to communicate with the first application.
[0135] Optionally, the second authentication process sends the channel information to the first application, which may include: after the second authentication process receives the reply information sent by the second application, the second authentication process may send response information to the first application, and the response information may include the channel information, and the response information can be used to respond to the request information sent by the first application.
[0136] Furthermore, the second authentication process may also send the identity information of the second application and the channel information to the second shared memory driver. Furthermore, the second authentication process may also send the identifier of the first application and the channel information to the first authentication process. For example, the second authentication process may send the identifier of the first application and the channel information to the first authentication process via a synchronization channel between the first and second authentication processes to synchronize the identifier of the first application and the channel information to the first authentication process. When the first authentication process receives the identifier of the first application and the channel information, the first authentication process may also send the identity information of the first application and the channel information to the first shared memory driver.
[0137] S204: The first application and the second application establish the shared memory channel according to the channel information.
[0138] Specifically, in conjunction with FIG6 , as shown in FIG7 , the first application and the second application establishing the shared memory channel based on the channel information may include: S2041. The first application and the second application respectively send instruction information to the first shared memory driver and the second shared memory driver based on the channel information, the instruction information being used to instruct the creation of the shared memory channel; S2042. The first shared memory driver and the second shared memory driver respectively authenticate the first application and the second application, and create the shared memory channel for the first application and the second application after the authentication is successful. Optionally, the instruction information includes the channel information.
[0139] In one possible embodiment, the above S2041 may include: S2041a. The first application may send first indication information to the first shared memory driver based on the channel information, where the first indication information may be used to instruct the first shared memory driver to create the shared memory channel. Similarly, the above S2041 may include: S2041b. The second application may send second indication information to the second shared memory driver based on the channel information, where the second indication information may be used to instruct the second shared memory driver to create the shared memory channel.
[0140] Optionally, the first shared memory driver may include a first data interface, and the second shared memory driver may include a second data interface, wherein the first data interface is used for the first shared memory driver to communicate with the first application, and the second data interface is used for the second shared memory driver to communicate with the second application.
[0141] In one example, applications in the same subsystem can communicate with a shared memory driver by scheduling a data interface of the shared memory driver. For example, if the channel information is a channel name, a first application can call a first data interface of the first shared memory driver to send first indication information carrying the channel name to the first shared memory driver, and a second application can call a second data interface of the second shared memory driver to send second indication information carrying the channel name to the second shared memory driver.
[0142] In one possible embodiment, a first shared memory driver and a second shared memory driver respectively authenticate a first application and a second application, and create a shared memory channel for the first application and the second application after authentication is successful. This may include: when the first shared memory driver receives first indication information, the first shared memory driver authenticates the first application; when the second shared memory driver receives second indication information, the second shared memory driver authenticates the second application; after the first application passes authentication and the second application authenticates the channel, the first shared memory driver and the second shared memory driver create the shared memory channel for the first application and the second application. For example, after the first application passes authentication and the second application authenticates the channel, the first shared memory driver and the second shared memory driver may, through negotiation, allocate a certain amount of memory space in the shared memory for the first application and the second application, and the memory space may be used as the shared memory channel for communication between the first application and the second application.
[0143] Optionally, the first shared memory driver authenticating the first application may include: the first shared memory driver determining consistency between channel information included in the first indication information and channel information allocated by the second authentication process, and performing identity authentication on the first application. The channel information allocated by the second authentication process may be sent by the second authentication process to the first authentication process, and then by the first authentication process to the first shared memory driver.
[0144] Similarly, the second shared memory driver authenticating the second application may include: the second shared memory driver determining consistency between channel information included in the second indication information and channel information assigned by the second authentication process, and performing identity authentication on the second application. The channel information assigned by the second authentication process may be sent by the second authentication process to the second shared memory driver.
[0145] Specifically, if the channel information included in the first indication information and the second indication information is consistent with the channel information assigned by the second authentication process, and the identity authentication of the first application and the second application is both passed, then it is determined that the authentication of the first application and the second application is passed. If the channel information included in the first indication information and the second indication information is inconsistent with the channel information assigned by the second authentication process, or the identity authentication of the first application fails, or the identity authentication of the second application fails, then it is determined that the authentication of the first application and the second application fails.
[0146] Exemplarily, the first shared memory driver authenticating the first application may include: the first shared memory driver authenticating the first application based on the received identity information of the first application and the identity information of the first application obtained from the kernel. The identity information of the first application may include relevant identity information such as the first security context and the first application identifier of the first application. The first security context refers to the security context of the first application, which is an access control attribute that can serve as a credential for access by the first application. The first application identifier can be the process identity identifier PID of the first application or the first application identifier name.
[0147] Similarly, the second shared memory driver authenticates the second application, which may include: the second shared memory driver authenticates the second application based on the received identity information of the second application and the identity information of the second application obtained from the kernel. The identity information of the second application may include relevant identity information such as the second security context and the second application identifier of the second application. The second security context refers to the security context of the second application, which is an access control attribute that can be used as a credential for access by the second application. The second application identifier can be the process identity identifier PID of the second application or the second application identification name.
[0148] S205: The first application and the second application communicate through the shared memory channel.
[0149] After the shared memory channel is created, the first application and the second application can communicate through the shared memory channel. In one possible embodiment, the first application can write data to the shared memory channel, and the second application can read the data written by the first application from the shared memory channel; or the second application can write data to the shared memory channel, and the first application can read the data written by the second application from the shared memory channel.
[0150] For ease of understanding, the technical solution provided in the embodiment of the present application is illustrated below with reference to FIG8 . In FIG8 , the communication configuration information is referred to as a communication whitelist, the first subsystem is represented as OS-A, the first application is represented as appA, the first authentication process is represented as IAM1, the first shared memory driver is represented as shared memory driver A, the second subsystem is represented as OS-B, the second application is represented as appB, the second authentication process is represented as IAM2, and the second shared memory driver is represented as shared memory driver B.
[0151] Exemplarily, the method includes the following steps. S1. System initialization, which may specifically include: IAM1 loads the communication whitelist, and IAM1 obtains identity information when appA starts; IAM2 loads the communication whitelist, and IAM2 obtains identity information when appB starts; IAM1 sends appA's identity information to IAM2; IAM2 sends appB's identity information to IAM1. S2. appA applies to IAM2 for establishing a connection with appB. S3. IAM2 authenticates appA and allocates channel information after authentication is passed. S4. IAM2 sends appA's request and the channel information to appB, and appB returns a reply message to IAM2 agreeing to communicate with appA. S5. IAM2 sends appB's identity information and the channel information to shared memory driver B. S6. IAM2 sends notification information to IAM1, and the notification information is used to indicate the channel information and appA. S7. IAM1 sends appA's identity information and the channel information to shared memory driver A. S8. IAM2 sends the channel information to appA. S9. appA and appB establish a shared memory channel, which may specifically include: appA requests shared memory driver A to establish the shared memory channel; appB requests shared memory driver B to establish the shared memory channel; shared memory driver A authenticates appA and the authentication is successful; shared memory driver B authenticates appB and the authentication is successful; shared memory driver A and shared memory driver B establish the shared memory channel; shared memory driver A and shared memory driver B return establishment success information to appA and appB, respectively. S10. appA and appB communicate over the shared memory channel.
[0152] In an embodiment of the present application, when a first application in a first subsystem needs to communicate with a second application in a second subsystem, the first application can send a request message to a second authentication process in the second subsystem. The second authentication process authenticates the first application and allocates channel information to the first application and the second application after the authentication is passed, and sends the channel information to the first application and the second application. The first application and the second application respectively request the first shared memory driver and the second shared memory driver to create the shared memory channel based on the channel information. The first shared memory driver and the second shared memory driver respectively authenticate the first application and the second application, and create the shared memory channel for the first application and the second application after the authentication is passed, so that the first application and the second application can communicate through the shared memory channel, thereby realizing high-security and high-performance data communication between different subsystems.
[0153] Figure 9 is a flow chart of another data transmission method provided in an embodiment of the present application. The method can be applied to a communication device including a first subsystem and a second subsystem, wherein the first subsystem includes a first authentication process, a first application, and a first shared memory driver, and the second subsystem includes a second authentication process, a second application, and a second shared memory driver. The method includes the following steps.
[0154] S301: A first application sends a request message to a first authentication process, where the request message is used to request communication with a second application.
[0155] In one possible embodiment, when a first application in a first subsystem needs to transmit data with a second application in a second subsystem, the first application may send a request message to the first authentication process, requesting communication with the second application. Optionally, the request message may include information identifying the second application, such as an identifier or application name.
[0156] S302: The first authentication process authenticates the first application according to the received request information, and allocates channel information for communication between the first application and the second application after the authentication is passed. The channel information is used to indicate a shared memory channel for communication between the first application and the second application.
[0157] The shared memory channel may refer to a channel located in a shared memory, which can be used to implement communication between a first application and a second application. For example, the first application and the second application can write data to the shared memory channel and read data stored in the shared memory channel. Optionally, the shared memory channel may be a channel shared solely by the first application and the second application, i.e., other applications other than the first application and the second application cannot share the shared memory channel. The above-mentioned channel may also be referred to as a pipe or channel, and thus the shared memory channel may also be referred to as a shared memory pipe or a shared memory channel.
[0158] In addition, the channel information may include identification information of the shared memory channel, which may be a channel name or a channel identifier. The channel information may be used to indicate the shared memory channel, or may be used to create the shared memory channel. In other words, the channel information may be used to establish a shared memory channel, and the established shared memory channel may be identified by the channel information.
[0159] In one possible embodiment, the first authentication process authenticates the first application based on the received request information, which may include: the first authentication process authenticates the identity of the first application and determines the legitimacy of communication between the first application and the second application. If the identity authentication of the first application passes and the communication between the first application and the second application is legal, the first application authentication is determined to have passed. If the identity authentication of the first application fails or the communication between the first application and the second application is illegal, the first application authentication is determined to have failed.
[0160] Optionally, the first authentication process may authenticate the first application based on the identity information of the first application. Exemplarily, authenticating the first application may include authenticating the first application based on the first security context of the first application and related identity information such as the first application's identifier. The first security context refers to the security context of the first application, which is an access control attribute that can serve as a credential for access by the first application. The first application identifier may be the process identifier (PID) of the first application or the first application identifier name.
[0161] The identity information of the first application may be obtained by the first authentication process during the initial system phase. For example, during the initial system phase, after the first application is started, the first authentication process may obtain the identity information of the first application. In this way, when the first authentication process needs to authenticate the first application, it uses the identity information of the first application to authenticate the first application.
[0162] Optionally, the first authentication process determining the legitimacy of communication between the first application and the second application may include: determining the legitimacy of communication between the first application and the second application based on communication configuration information. The communication configuration information is used to indicate a corresponding relationship between application communications between different subsystems, the different subsystems including the first subsystem and the second subsystem.
[0163] If the correspondence between the application communications between the different subsystems indicated by the communication configuration information includes a correspondence between the first application and the second application, then the communication between the first application and the second application is determined to be legal. If the correspondence between the application communications between the different subsystems indicated by the communication configuration information includes a correspondence between the first application and the second application, then the communication between the first application and the second application is determined to be illegal.
[0164] Optionally, the communication configuration information can also be called a communication whitelist, for example, it is used to indicate the correspondence between one or more applications in the first subsystem and one or more applications in the second subsystem. In addition, the communication configuration information can be pre-configured, for example, the first subsystem and the second subsystem can be configured by static configuration. In this way, when the first authentication process needs to use the communication configuration information, the communication configuration information can be obtained from the corresponding subsystem. Exemplarily, during the system initialization phase, the first authentication process in the first subsystem can load the communication configuration information and determine the legitimacy of the communication between the first application and the second application based on the communication configuration information.
[0165] S303: The first authentication process sends notification information to the second authentication process, where the notification information is used to indicate the channel information and the second application.
[0166] After the first authentication process allocates the channel information for communication between the first application and the second application, the first authentication process may send the notification information to the second authentication process. Optionally, the notification information may include the channel information and the identifier of the second application, for example, the identifier of the second application may be the PID of the second application or the second application identification name.
[0167] In a possible embodiment, a synchronization channel may exist between the first subsystem and the second subsystem, and the synchronization channel may be used for communication between the first subsystem and the second subsystem. In this way, the first authentication process may send the notification information to the second authentication process through the synchronization channel.
[0168] Optionally, before the second authentication process sends the channel information to the second application, the method may further include: the second authentication process authenticates the second application and determines whether the authentication is successful.
[0169] In one possible embodiment, the second authentication process authenticates the second application, which may include: authenticating the identity of the second application; and determining, based on the communication configuration information, whether communication between the first application and the second application is legal. If the identity authentication of the second application passes and the communication between the first application and the second application is legal, then the authentication of the second application is determined to be successful. If the identity authentication of the second application fails or the communication between the first application and the second application is illegal, then the authentication of the second application is determined to be unsuccessful.
[0170] Optionally, authenticating the second application may include: authenticating the second application based on relevant identity information such as the second security context and the second application identifier of the second application. In another example, determining whether the communication between the first application and the second application is legal based on the communication configuration information may include: if the corresponding relationship between application communications between the different subsystems indicated by the communication configuration information includes a corresponding relationship between the first application and the second application, then determining that the communication between the first application and the second application is legal; if the corresponding relationship between application communications between the different subsystems indicated by the communication configuration information includes a corresponding relationship between the first application and the second application, then determining that the communication between the first application and the second application is illegal.
[0171] It can be understood that the above-mentioned specific description of the second authentication process authenticating the second application is similar to the above-mentioned description of the first authentication process authenticating the first application. For details, please refer to the above-mentioned description of the first authentication process authenticating the first application. The embodiments of this application will not be repeated here.
[0172] Furthermore, when the second authentication process authenticates the second application, during the initialization of the second subsystem, the second authentication process can obtain the communication configuration information by loading; when the second application is started (also called pulled up), the second authentication process can obtain the identity information of the second application, for example, the second authentication process can obtain the second security context and PID and other identity information of the second application from the kernel.
[0173] In addition, the second authentication process can also establish a second intra-domain channel for the second application. The second intra-domain channel is used for communication between the second authentication process and the second application. For example, after the second application is started, the second authentication process can establish a trusted second intra-domain channel for the second application within the second subsystem for communication with the second application.
[0174] Optionally, after obtaining the communication configuration information and the identity information of the second application, the second authentication process may also send the communication configuration information and the identity information of the second application to the second shared memory driver for use when the second shared memory driver authenticates the second application. In one example, the second shared memory driver also includes a second management interface, and the second authentication process may send the above information to the second shared memory driver via the second management interface of the second shared memory driver.
[0175] S304: The first authentication process and the second authentication process send the channel information to the first application and the second application respectively.
[0176] After the second authentication process receives the notification information from the first authentication process, it can determine, based on the notification information, that the first application needs to communicate with the second application, and that the channel information can be used to indicate the shared memory channel through which the first and second applications communicate. The first and second authentication processes can then send the channel information to the first and second applications, respectively. In other words, the first authentication process sends the channel information to the first application, and the second authentication process sends the channel information to the second application, so that the first and second applications each obtain the channel information.
[0177] S305: The first application and the second application create the shared memory channel according to the channel information.
[0178] Specifically, establishing the shared memory channel based on the channel information by the first application and the second application may include: S3051. The first application and the second application respectively send instruction information to the first shared memory driver and the second shared memory driver based on the channel information, the instruction information being used to instruct the creation of the shared memory channel; S3052. The first shared memory driver and the second shared memory driver respectively authenticate the first application and the second application, and create the shared memory channel for the first application and the second application after the authentication is successful. Optionally, the instruction information includes the channel information.
[0179] In one possible embodiment, the above S3051 may include: the first application may send first indication information to the first shared memory driver based on the channel information, where the first indication information may be used to instruct the first shared memory driver to create the shared memory channel. Similarly, the above S3052 may include: the second application may send second indication information to the second shared memory driver based on the channel information, where the second indication information may be used to instruct the second shared memory driver to create the shared memory channel.
[0180] Optionally, the first shared memory driver may include a first data interface, and the second shared memory driver may include a second data interface, wherein the first data interface is used for the first shared memory driver to communicate with the first application, and the second data interface is used for the second shared memory driver to communicate with the second application.
[0181] In one example, applications in the same subsystem can communicate with a shared memory driver by scheduling a data interface of the shared memory driver. For example, if the channel information is a channel name, a first application can call a first data interface of the first shared memory driver to send first indication information carrying the channel name to the first shared memory driver, and a second application can call a second data interface of the second shared memory driver to send second indication information carrying the channel name to the second shared memory driver.
[0182] In one possible embodiment, a first shared memory driver and a second shared memory driver respectively authenticate a first application and a second application, and create a shared memory channel for the first application and the second application after authentication is successful. This may include: when the first shared memory driver receives first indication information, the first shared memory driver authenticates the first application; when the second shared memory driver receives second indication information, the second shared memory driver authenticates the second application; after the first application passes authentication and the second application authenticates the channel, the first shared memory driver and the second shared memory driver create the shared memory channel for the first application and the second application. For example, after the first application passes authentication and the second application authenticates the channel, the first shared memory driver and the second shared memory driver may, through negotiation, allocate a certain amount of memory space in the shared memory for the first application and the second application, and the memory space may be used as the shared memory channel for communication between the first application and the second application.
[0183] Optionally, the first shared memory driver authenticating the first application may include: the first shared memory driver determining consistency between channel information included in the first indication information and channel information allocated by the second authentication process, and performing identity authentication on the first application. The channel information allocated by the second authentication process may be sent by the second authentication process to the first authentication process, and then by the first authentication process to the first shared memory driver.
[0184] Similarly, the second shared memory driver authenticating the second application may include: the second shared memory driver determining consistency between channel information included in the second indication information and channel information assigned by the second authentication process, and performing identity authentication on the second application. The channel information assigned by the second authentication process may be sent by the second authentication process to the second shared memory driver.
[0185] Specifically, if the channel information included in the first indication information and the second indication information is consistent with the channel information assigned by the second authentication process, and the identity authentication of the first application and the second application is both passed, then it is determined that the authentication of the first application and the second application is passed. If the channel information included in the first indication information and the second indication information is inconsistent with the channel information assigned by the second authentication process, or the identity authentication of the first application fails, or the identity authentication of the second application fails, then it is determined that the authentication of the first application and the second application fails.
[0186] Exemplarily, the first shared memory driver authenticating the first application may include: the first shared memory driver authenticating the first application based on the received identity information of the first application and the identity information of the first application obtained from the kernel. The identity information of the first application may include relevant identity information such as the first security context and the first application identifier of the first application. The first security context refers to the security context of the first application, which is an access control attribute that can serve as a credential for access by the first application. The first application identifier can be the process identity identifier PID of the first application or the first application identifier name.
[0187] Similarly, the second shared memory driver authenticates the second application, which may include: the second shared memory driver authenticates the second application based on the received identity information of the second application and the identity information of the second application obtained from the kernel. The identity information of the second application may include relevant identity information such as the second security context and the second application identifier of the second application. The second security context refers to the security context of the second application, which is an access control attribute that can be used as a credential for access by the second application. The second application identifier can be the process identity identifier PID of the second application or the second application identification name.
[0188] S306: The first application and the second application communicate through the shared memory channel.
[0189] After the shared memory channel is created, the first application and the second application can communicate through the shared memory channel. In one possible embodiment, the first application can write data to the shared memory channel, and the second application can read the data written by the first application from the shared memory channel; or the second application can write data to the shared memory channel, and the first application can read the data written by the second application from the shared memory channel.
[0190] It is understood that in the above method embodiment, there are two authentication processes: the authentication process authenticates the application, and the shared memory driver authenticates the application. In actual applications, only one authentication process can also be used. For example, only the authentication process can be used to authenticate the application, or only the shared memory driver can be used to authenticate the application. This embodiment of the present application does not impose specific limitations on this.
[0191] For ease of understanding, the technical solution provided in the embodiment of the present application is illustrated below with reference to FIG10. In FIG10, the communication configuration information is referred to as a communication whitelist, the first subsystem is represented as OS-A, the first application is represented as appA, the first authentication process is represented as IAM1, the first shared memory driver is represented as shared memory driver A, the second subsystem is represented as OS-B, the second application is represented as appB, the second authentication process is represented as IAM2, and the second shared memory driver is represented as shared memory driver B.
[0192] Exemplarily, the method includes the following steps. S1. System initialization, which may specifically include: IAM1 loads the communication whitelist, and IAM1 obtains identity information when appA starts; IAM2 loads the communication whitelist, and IAM2 obtains identity information when appB starts. S2. appA applies to IAM1 to establish a connection with appB. S3. IAM1 authenticates appA and allocates channel information after the authentication is passed. S4. IAM1 sends authentication information and the channel information to shared memory driver A, and the authentication information may include appA's identity information and communication whitelist. S5. IAM1 sends notification information to IAM2, and the notification information is used to indicate the channel information and appB. S6. IAM2 sends the channel information to appB. S7. IAM2 sends authentication information and the channel information to shared memory driver B, and the authentication information may include appB's identity information and communication whitelist. S8. IAM1 sends the channel information to appA. S9. App A and App B establish a shared memory channel, which may specifically include: App A requests shared memory driver A to establish the shared memory channel; App B requests shared memory driver B to establish the shared memory channel; Shared memory driver A authenticates App A and the authentication is successful; Shared memory driver B authenticates App B and the authentication is successful; Shared memory driver A and shared memory driver B establish the shared memory channel; Shared memory driver A and shared memory driver B return a successful establishment response to App A and App B, respectively. S10. App A and App B communicate over the shared memory channel.
[0193] In an embodiment of the present application, when a first application in a first subsystem needs to communicate with a second application in a second subsystem, the first authentication process in the first subsystem can allocate channel information after the first application is authenticated, and send notification information to the second authentication process in the second subsystem, so that the second authentication process authenticates the second application. After the authentication is passed, the first authentication process and the second authentication process can send the channel information to the first application and the second application respectively. The first application and the second application can apply to create a shared memory channel based on the channel information. The first shared memory driver in the first subsystem and the second shared memory driver in the second subsystem can authenticate the first application and the second application respectively, and create the shared memory channel for the first application and the second application after the authentication is passed, so that the first application and the second application communicate through the shared memory channel to achieve high-security and high-performance data communication between different subsystems.
[0194] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the interaction between the first subsystem and the first subsystem. It is understandable that, in order to realize the above functions, the above-mentioned first subsystem and the first subsystem, etc. include hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily appreciate that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in a hardware or computer software driven hardware manner depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0195] In the embodiment of the present application, the first subsystem and the second subsystem can be divided into functional modules according to the above method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.
[0196] The present application also provides a data transmission device, comprising a first subsystem and a second subsystem. The first subsystem and the second subsystem may have different information security levels or the same information security level. The first subsystem includes a first application and a first shared memory driver, and the second subsystem includes a second application and a second shared memory driver. For example, the specific structure of the data transmission device may be shown in FIG5 .
[0197] Optionally, the first subsystem or the second subsystem may include but is not limited to: a power consumption subsystem, an audio subsystem, a video subsystem, an artificial intelligence subsystem, an image processing subsystem, a modem subsystem, a key management and encryption and decryption algorithm subsystem, etc.
[0198] The first application or the second application may include, but is not limited to, one or more types of applications such as maps, music, calls, games, video playback, calendars, instant messaging, and input methods. In addition, each of the multiple subsystems may also include other drivers, such as, but not limited to, display drivers, camera drivers, audio drivers, Bluetooth drivers, and Wi-Fi drivers.
[0199] In one possible embodiment, the first application can be used to: send a request message to the second authentication process, where the request message is used to request communication with the second application; the second authentication process can be used to: authenticate the first application based on the received request message, and allocate channel information to the first application and the second application after the authentication is passed, where the channel information is used to indicate a shared memory channel for communication between the first application and the second application; the second authentication process is also used to: send the channel information to the first application and the second application; the first application and the second application are also used to: establish the shared memory channel based on the channel information, and communicate through the shared memory channel.
[0200] The shared memory channel may be a channel located in a shared memory that can be used to implement communication between the first application and the second application. For example, the first application and the second application can write data to the shared memory channel and read data stored in the shared memory channel. Alternatively, the shared memory channel may be a channel shared exclusively by the first application and the second application, meaning that other applications besides the first application and the second application cannot share the shared memory channel.
[0201] Optionally, the second authentication process is further configured to authenticate the first application and determine the legitimacy of communication between the first application and the second application. If the first application's identity authentication passes and the communication between the first application and the second application is legal, the first application's authentication is determined to have passed. If the first application's identity authentication fails or the communication between the first application and the second application is illegal, the first application's authentication is determined to have failed.
[0202] Optionally, the second authentication process is further used to determine the legitimacy of communication between the first application and the second application based on communication configuration information, where the communication configuration information is used to indicate a correspondence between application communications between different subsystems, including the first subsystem and the second subsystem.
[0203] Furthermore, the first authentication process is used to send identity information of the first application to the second authentication process, and the identity information of the first application is used for the second authentication process to authenticate the identity of the first application.
[0204] Furthermore, the first subsystem further includes a first shared memory driver, and the second subsystem further includes a second shared memory driver. The first application and the second application are further configured to: send instruction information to the first shared memory driver and the second shared memory driver, respectively, based on the channel information, the instruction information being used to instruct the creation of the shared memory channel; and the first shared memory driver and the second shared memory driver are further configured to: authenticate the first application and the second application, respectively, and create the shared memory channel for the first application and the second application after successful authentication.
[0205] In one possible embodiment, the indication information includes the channel information. The first shared memory driver is further configured to: determine consistency between the channel information included in the indication information and the channel information allocated by the second authentication process, and perform identity authentication on the first application; and the second shared memory driver is further configured to: determine consistency between the channel information included in the indication information and the channel information allocated by the second authentication process, and perform identity authentication on the second application.
[0206] Among them, if the channel information included in the indication information is consistent with the channel information allocated by the second authentication process, and the identity authentication of the first application and the second application are both passed, it is determined that the authentication of the first application and the second application is passed; if the channel information included in the indication information is inconsistent with the channel information allocated by the second authentication process, or the identity authentication of the first application fails, or the identity authentication of the second application fails, it is determined that the authentication of the first application and the second application fails.
[0207] Optionally, the first authentication process is further used to: send the channel information allocated by the second authentication process and the identity information of the first application to the first shared memory driver; the second authentication process is further used to: send the channel information allocated by the second authentication process and the identity information of the second application to the second shared memory driver.
[0208] Optionally, the first shared memory driver includes a first data interface and a first management interface, and the second shared memory driver includes a second data interface and a second management interface. The first data interface is used for communication between the first shared memory driver and the first application, and the first management interface is used for communication between the first shared memory driver and the first authentication process. The second data interface is used for communication between the second shared memory driver and the second application, and the second management interface is used for communication between the second shared memory driver and the second authentication process.
[0209] Optionally, the second authentication process is further used to: allocate a first cross-domain channel to the first application, and the first cross-domain channel is used for communication between the second authentication process and the first application.
[0210] The various components of the above-mentioned data transmission device provided in the embodiment of the present application are respectively used to implement the functions of the corresponding steps of the data transmission method. Since each step has been described in detail in the aforementioned method embodiment, it will not be repeated here.
[0211] In an embodiment of the present application, when a first application in a first subsystem needs to communicate with a second application in a second subsystem, the first application can send a request message to a second authentication process in the second subsystem. The second authentication process authenticates the first application and allocates channel information to the first application and the second application after the authentication is passed, and sends the channel information to the first application and the second application. The first application and the second application respectively request the first shared memory driver and the second shared memory driver to create the shared memory channel based on the channel information. The first shared memory driver and the second shared memory driver respectively authenticate the first application and the second application, and create the shared memory channel for the first application and the second application after the authentication is passed, so that the first application and the second application can communicate through the shared memory channel, thereby realizing high-security and high-performance data communication between different subsystems.
[0212] The present application also provides another data transmission device, comprising a first subsystem and a second subsystem. The first subsystem and the second subsystem may be subsystems of different information security levels or of the same information security level. The first subsystem comprises a first application and a first shared memory driver, and the second subsystem comprises a second application and a second shared memory driver.
[0213] Optionally, the first subsystem or the second subsystem may include but is not limited to: a power consumption subsystem, an audio subsystem, a video subsystem, an artificial intelligence subsystem, an image processing subsystem, a modem subsystem, a key management and encryption and decryption algorithm subsystem, etc.
[0214] The first application or the second application may include, but is not limited to, one or more types of applications such as maps, music, calls, games, video playback, calendars, instant messaging, and input methods. In addition, each of the multiple subsystems may also include other drivers, such as, but not limited to, display drivers, camera drivers, audio drivers, Bluetooth drivers, and Wi-Fi drivers.
[0215] In one possible embodiment, a first application and a second application are each configured to obtain channel information indicating a shared memory channel for communication between the first application and the second application. The first application and the second application are also configured to send instruction information to a first shared memory driver and a second shared memory driver, respectively, based on the channel information, instructing the creation of the shared memory channel. The first shared memory driver and the second shared memory driver are respectively configured to authenticate the first application and the second application, and upon successful authentication, create the shared memory channel for the first application and the second application. The first application and the second application are also configured to communicate via the shared memory channel.
[0216] The shared memory channel may be a channel located in a shared memory that can be used to implement communication between the first application and the second application. For example, the first application and the second application can write data to the shared memory channel and read data stored in the shared memory channel. Alternatively, the shared memory channel may be a channel shared exclusively by the first application and the second application, meaning that other applications besides the first application and the second application cannot share the shared memory channel.
[0217] Furthermore, the first subsystem also includes a first authentication process, and the second subsystem also includes a second authentication process. The first authentication process is configured to authenticate the first application when the first application requests communication with the second application, and allocate channel information to the first and second applications upon successful authentication. The first authentication process is also configured to send a notification message to the second authentication process, indicating the channel information and the second application. The second authentication process is configured to receive the notification message; the first and second authentication processes are further configured to send the channel information to the first and second applications, respectively.
[0218] Optionally, the first authentication process is further configured to establish a first intra-domain channel for the first application, the first intra-domain channel being used for communication between the first authentication process and the first application. The second authentication process is further configured to establish a second intra-domain channel for the second application, the second intra-domain channel being used for communication between the second authentication process and the second application.
[0219] Furthermore, the second authentication process is further used to: before sending the channel information to the second application, authenticate the second application and determine whether the authentication is successful.
[0220] In one possible embodiment, authenticating the first application and the second application includes: authenticating the first application and determining, based on communication configuration information, whether communication between the first application and the second application is legal; and authenticating the second application and determining, based on the communication configuration information, whether communication between the first application and the second application is legal. The communication configuration information indicates the corresponding relationship between applications communicating between different subsystems.
[0221] In another possible embodiment, authenticating the first application and the second application includes: authenticating the first application based on the first security context and the first application identifier of the first application; and authenticating the second application based on the second security context and the second application identifier of the second application.
[0222] Optionally, determining whether the communication between the first application and the second application is legal is performed based on the communication configuration information, including: if the correspondence between the application communications between the different subsystems indicated by the communication configuration information includes the correspondence between the first application and the second application, determining that the communication between the first application and the second application is legal; if the correspondence between the application communications between the different subsystems indicated by the communication configuration information includes the correspondence between the first application and the second application, determining that the communication between the first application and the second application is illegal.
[0223] Furthermore, when the first subsystem also includes a first authentication process and the second subsystem also includes a second authentication process, the first shared memory driver also includes a first data interface and a first management interface, and the second shared memory driver also includes a second data interface and a second management interface; wherein the first data interface is used for the first shared memory driver to communicate with the first application, the first management interface is used for the first shared memory driver to communicate with the first authentication process, the second data interface is used for the second shared memory driver to communicate with the second application, and the second management interface is used for the second shared memory driver to communicate with the second authentication process.
[0224] The various components of the above-mentioned data transmission device provided in the embodiment of the present application are respectively used to implement the functions of the corresponding steps of the data transmission method. Since each step has been described in detail in the aforementioned method embodiment, it will not be repeated here.
[0225] In an embodiment of the present application, when the first application in the first subsystem and the second application in the second subsystem obtain channel information and apply to create a shared memory channel based on the channel information, the first shared memory driver in the first subsystem and the second shared memory driver in the second subsystem can respectively authenticate the first application and the second application, and create the shared memory channel for the first application and the second application after the authentication is passed, so that the first application and the second application communicate through the shared memory channel to achieve high-security and high-performance data communication between different subsystems.
[0226] The present application also provides another data transmission device, comprising a first subsystem, the first subsystem being configured to transmit data with a second subsystem. The first subsystem and the second subsystem may have different information security levels or the same information security level. The first subsystem includes a first authentication process and a first application, and the second subsystem includes a second authentication process and a second application.
[0227] Optionally, the first subsystem or the second subsystem may include but is not limited to: a power consumption subsystem, an audio subsystem, a video subsystem, an artificial intelligence subsystem, an image processing subsystem, a modem subsystem, a key management and encryption and decryption algorithm subsystem, etc.
[0228] The first application or the second application may include, but is not limited to, one or more types of applications such as maps, music, calls, games, video playback, calendars, instant messaging, and input methods. In addition, each of the multiple subsystems may also include other drivers, such as, but not limited to, display drivers, camera drivers, audio drivers, Bluetooth drivers, and Wi-Fi drivers.
[0229] In one possible embodiment, the first application can be used to: send a request message to the second authentication process, where the request message is used to request communication with the second application; receive channel information from the second authentication process, where the second authentication process authenticates the first application based on the received request information, and allocates the channel information for communication between the first application and the second application after the authentication is passed, where the channel information is used to indicate a shared memory channel for communication between the first application and the second application; establish the shared memory channel with the second application based on the channel information, and transmit data through the shared memory channel.
[0230] The shared memory channel may be a channel located in a shared memory that can be used to implement communication between the first application and the second application. For example, the first application and the second application can write data to the shared memory channel and read data stored in the shared memory channel. Alternatively, the shared memory channel may be a channel shared exclusively by the first application and the second application, meaning that other applications besides the first application and the second application cannot share the shared memory channel.
[0231] In another possible implementation, the first authentication process is used to send identity information of the first application to the second authentication process, and the identity information of the first application is used by the second authentication process to authenticate the identity of the first application.
[0232] Furthermore, the first subsystem also includes a first shared memory driver, and the first application is also used to: send indication information to the first shared memory driver according to the channel information, and the indication information is used to indicate the creation of the shared memory channel; the first shared memory driver is used to: authenticate the first application, and create the shared memory channel for the first application and the second application after the authentication is passed.
[0233] Optionally, the indication information includes the channel information. The first shared memory driver is further configured to: determine the consistency between the channel information included in the indication information and the channel information allocated by the second authentication process, and perform identity authentication on the first application; wherein, if the channel information included in the indication information is consistent with the channel information allocated by the second authentication process, and the identity authentication of the first application is passed, then it is determined that the authentication of the first application is passed; if the channel information included in the indication information is inconsistent with the channel information allocated by the second authentication process, or the identity authentication of the first application is failed, then it is determined that the authentication of the first application is failed.
[0234] Optionally, the first authentication process is further configured to send the channel information allocated by the second authentication process and the identity information of the first application to the first shared memory driver.
[0235] Optionally, the first shared memory driver includes a first data interface and a first management interface; wherein the first data interface is used for the first shared memory driver to communicate with the first application, and the first management interface is used for the first shared memory driver to communicate with the first authentication process.
[0236] The present application also provides another data transmission device, comprising a second subsystem, which can be used to transmit data to and from a first subsystem. The first subsystem and the second subsystem can be subsystems of different information security levels or of the same information security level. The first subsystem includes a first authentication process and a first application, and the second subsystem includes a second authentication process and a second application.
[0237] Optionally, the first subsystem or the second subsystem may include but is not limited to: a power consumption subsystem, an audio subsystem, a video subsystem, an artificial intelligence subsystem, an image processing subsystem, a modem subsystem, a key management and encryption and decryption algorithm subsystem, etc.
[0238] The first application or the second application may include, but is not limited to, one or more types of applications such as maps, music, calls, games, video playback, calendars, instant messaging, and input methods. In addition, each of the multiple subsystems may also include other drivers, such as, but not limited to, display drivers, camera drivers, audio drivers, Bluetooth drivers, and Wi-Fi drivers.
[0239] In one possible embodiment, the second authentication process is used to: receive request information from the first application, the request information is used to request communication with the second application; the second authentication process is also used to authenticate the first application based on the received request information, and after the authentication is passed, allocate channel information for communication between the first application and the second application, the channel information is used to indicate a shared memory channel for communication between the first application and the second application; the second authentication process is also used to: send the channel information to the first application and the second application; the second application can be used to: establish the shared memory channel with the first application based on the channel information, and transmit data through the shared memory channel.
[0240] The shared memory channel may be a channel located in a shared memory that can be used to implement communication between the first application and the second application. For example, the first application and the second application can write data to the shared memory channel and read data stored in the shared memory channel. Alternatively, the shared memory channel may be a channel shared exclusively by the first application and the second application, meaning that other applications besides the first application and the second application cannot share the shared memory channel.
[0241] In another possible implementation, the second authentication process is further used to: authenticate the first application and determine the legitimacy of communication between the first application and the second application; if the identity authentication of the first application passes and the communication between the first application and the second application is legal, then it is determined that the first application authentication passes; if the identity authentication of the first application fails, or the communication between the first application and the second application is illegal, then it is determined that the first application authentication fails.
[0242] Furthermore, the second authentication process is also used to determine the legitimacy of communication between the first application and the second application based on communication configuration information, where the communication configuration information is used to indicate the correspondence between application communications between different subsystems, including the first subsystem and the second subsystem.
[0243] Optionally, the second authentication process is further used to: receive identity information of the first application from the first authentication process, and the identity information of the first application is used for the second authentication process to authenticate the identity of the first application.
[0244] Optionally, the second subsystem further includes a second shared memory driver. The second application is further configured to: send instruction information to the second shared memory driver based on the channel information, the instruction information being used to instruct the second shared memory driver to create the shared memory channel; the second shared memory driver is configured to: authenticate the second application and, upon successful authentication, create the shared memory channel for the first application and the second application.
[0245] Optionally, the indication information includes the channel information. The second shared memory driver is further used to: determine the consistency between the channel information included in the indication information and the channel information allocated by the second authentication process, and perform identity authentication on the second application; wherein, if the channel information included in the indication information is consistent with the channel information allocated by the second authentication process, and the identity authentication of the first application is passed, then it is determined that the authentication of the second application is passed; if the channel information included in the indication information is inconsistent with the channel information allocated by the second authentication process, or the identity authentication of the second application is failed, then it is determined that the authentication of the second application is failed.
[0246] In a possible implementation, the second authentication process is further configured to send the channel information allocated by the second authentication process and the identity information of the second application to the second shared memory driver.
[0247] In another possible implementation, the second shared memory driver includes a second data interface and a second management interface; wherein the second data interface is used for the second shared memory driver to communicate with the second application, and the second management interface is used for the second shared memory driver to communicate with the second authentication process.
[0248] Furthermore, the second authentication process is further used to: allocate a first cross-domain channel to the first application, and the first cross-domain channel is used for communication between the second authentication process and the first application.
[0249] The various components of the above-mentioned data transmission device provided in the embodiment of the present application are respectively used to implement the functions of the corresponding steps of the data transmission method. Since each step has been described in detail in the aforementioned method embodiment, it will not be repeated here.
[0250] In an embodiment of the present application, when the first application in the first subsystem and the second application in the second subsystem obtain channel information and apply to create a shared memory channel based on the channel information, the first shared memory driver in the first subsystem and the second shared memory driver in the second subsystem can respectively authenticate the first application and the second application, and create the shared memory channel for the first application and the second application after the authentication is passed, so that the first application and the second application communicate through the shared memory channel to achieve high-security and high-performance data communication between different subsystems.
[0251] In another aspect of the present application, a vehicle is also provided, which includes the data transmission device provided by the above-mentioned device embodiment, or is used to execute the data transmission method provided by the above-mentioned method embodiment.
[0252] In another aspect of the present application, an electronic device is provided, which includes a processor and a memory, wherein instructions are stored in the memory. When the processor runs the instructions in the processor, the electronic device executes the steps of the first subsystem in the data transmission method provided in the above method embodiment.
[0253] In another aspect of the present application, an electronic device is provided, which includes a processor and a memory, wherein instructions are stored in the memory. When the processor runs the instructions in the processor, the electronic device executes the steps of the second subsystem in the data transmission method provided in the above method embodiment.
[0254] In another aspect of the present application, an electronic device is provided, which includes a processor and a memory, wherein instructions are stored in the memory. When the processor runs the instructions in the processor, the electronic device executes the steps of the first subsystem and the second subsystem in the data transmission method provided in the above method embodiment.
[0255] The present application also provides a computer-readable storage medium having instructions stored therein. When executed on a device (e.g., a single-chip microcomputer, chip, computer, or processor), the computer-readable storage medium causes the device to execute the steps of the first subsystem of the method embodiment described above. If the various components of the data processing device described above are implemented as software functional units and sold or used as independent products, they may be stored in the computer-readable storage medium.
[0256] The present application also provides a computer-readable storage medium having instructions stored therein. When executed on a device (e.g., a single-chip microcomputer, chip, computer, or processor), the computer-readable storage medium causes the device to execute the steps of the second subsystem of the method embodiment described above. If the various components of the data processing device described above are implemented as software functional units and sold or used as independent products, they may be stored in the computer-readable storage medium.
[0257] The present application also provides a computer-readable storage medium having instructions stored therein. When executed on a device (e.g., a single-chip microcomputer, a chip, a computer, or a processor), the computer-readable storage medium causes the device to execute the steps of the first and second subsystems of the above-described method embodiments. If the various components of the above-described data processing device are implemented as software functional units and sold or used as independent products, they may be stored in the computer-readable storage medium.
[0258] Based on this understanding, the embodiments of the present application also provide a computer program product containing instructions. The technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, server, or terminal device, etc.) or the processor therein to execute all or part of the steps of the method of each embodiment of the present application.
[0259] In another aspect of the present application, a computer program product is also provided, which includes computer instructions. When the computer instructions are run on a device (for example, the device can be a single-chip microcomputer, chip, computer or processor, etc.), the device executes the steps of the first subsystem in the above method embodiment.
[0260] In another aspect of the present application, a computer program product is also provided, which includes computer instructions. When the computer instructions are run on a device (for example, the device can be a single-chip microcomputer, chip, computer or processor, etc.), the device executes the steps of the second subsystem in the above method embodiment.
[0261] In another aspect of the present application, a computer program product is also provided, which includes computer instructions. When the computer instructions are run on a device (for example, the device can be a single-chip microcomputer, chip, computer or processor, etc.), the device executes the steps of the first subsystem and the second subsystem in the above method embodiment.
[0262] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0263] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0264] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0265] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the part of the technical solution of the embodiment of the present application that contributes in essence or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method of each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk.
[0266] Finally, it should be noted that the above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A data transmission method, characterized in that: Applied to a data transmission device including a first subsystem and a second subsystem, the first subsystem including a first authentication process and a first application, the second subsystem including a second authentication process and a second application, the method comprising: The first application sends a request message to the second authentication process, where the request message is used to request communication with the second application; The second authentication process authenticates the first application according to the received request information, and allocates channel information for communication between the first application and the second application after the authentication is passed, wherein the channel information is used to indicate a shared memory channel for communication between the first application and the second application; The second authentication process sends the channel information to the first application and the second application; The first application and the second application establish the shared memory channel according to the channel information, and perform data transmission through the shared memory channel.
2. The method according to claim 1, characterized in that The second authentication process authenticates the first application according to the received request information, including: The second authentication process performs identity authentication on the first application and determines the legitimacy of communication between the first application and the second application; Among them, if the identity authentication of the first application passes and the communication between the first application and the second application is legal, it is determined that the first application authentication passes; if the identity authentication of the first application fails, or the communication between the first application and the second application is illegal, it is determined that the first application authentication fails.
3. The method according to claim 2, characterized in that The determining the legitimacy of the communication between the first application and the second application includes: The legitimacy of the communication between the first application and the second application is determined according to the communication configuration information, wherein the communication configuration information is used to indicate the corresponding relationship between application communications between different subsystems, and the different subsystems include the first subsystem and the second subsystem.
4. The method according to claim 2 or 3, characterized in that: The method further comprises: The first authentication process sends the identity information of the first application to the second authentication process, and the identity information of the first application is used for the second authentication process to authenticate the identity of the first application.
5. The method according to any one of claims 1 to 4, characterized in that: The first subsystem further includes a first shared memory driver, the second subsystem further includes a second shared memory driver, and the first application and the second application establish the shared memory channel according to the channel information, including: The first application and the second application send indication information to the first shared memory driver and the second shared memory driver respectively according to the channel information, wherein the indication information is used to instruct to create the shared memory channel; The first shared memory driver and the second shared memory driver authenticate the first application and the second application respectively, and create the shared memory channel for the first application and the second application after the authentication is passed.
6. The method according to claim 5, characterized in that The indication information includes the channel information, and the first shared memory driver and the second shared memory driver authenticate the first application and the second application respectively, including: The first shared memory driver determines the consistency between the channel information included in the indication information and the channel information allocated by the second authentication process, and performs identity authentication on the first application; The second shared memory driver determines the consistency between the channel information included in the indication information and the channel information allocated by the second authentication process, and performs identity authentication on the second application; Among them, if the channel information included in the indication information is consistent with the channel information allocated by the second authentication process, and the identity authentication of the first application and the second application are both passed, it is determined that the authentication of the first application and the second application is passed; if the channel information included in the indication information is inconsistent with the channel information allocated by the second authentication process, or the identity authentication of the first application fails, or the identity authentication of the second application fails, it is determined that the authentication of the first application and the second application fails.
7. The method according to claim 6, characterized in that The method further comprises: The first authentication process sends the channel information allocated by the second authentication process and the identity information of the first application to the first shared memory driver; The second authentication process sends the channel information allocated by the second authentication process and the identity information of the second application to the second shared memory driver.
8. The method according to claim 6 or 7, characterized in that: The first shared memory driver includes a first data interface and a first management interface, and the second shared memory driver includes a second data interface and a second management interface; Among them, the first data interface is used for the first shared memory driver to communicate with the first application, the first management interface is used for the first shared memory driver to communicate with the first authentication process, the second data interface is used for the second shared memory driver to communicate with the second application, and the second management interface is used for the second shared memory driver to communicate with the second authentication process.
9. The method according to any one of claims 1 to 8, characterized in that: The method further comprises: The second authentication process allocates a first cross-domain channel to the first application, and the first cross-domain channel is used for communication between the second authentication process and the first application.
10. A data transmission device, characterized in that: The device comprises a first subsystem and a second subsystem, the first subsystem comprises a first authentication process and a first application, and the second subsystem comprises a second authentication process and a second application; The first application is used to send a request message to the second authentication process, wherein the request message is used to request communication with the second application; The second authentication process is used to authenticate the first application according to the received request information, and allocate channel information for communication between the first application and the second application after the authentication is passed, wherein the channel information is used to indicate a shared memory channel for communication between the first application and the second application; The second authentication process is further used to send the channel information to the first application and the second application; The first application and the second application are further used to establish the shared memory channel according to the channel information and communicate through the shared memory channel.
11. The device according to claim 10, characterized in that The second authentication process is further used to authenticate the first application and determine the legitimacy of communication between the first application and the second application; Among them, if the identity authentication of the first application passes and the communication between the first application and the second application is legal, it is determined that the first application authentication passes; if the identity authentication of the first application fails, or the communication between the first application and the second application is illegal, it is determined that the first application authentication fails.
12. The device according to claim 10 or 11, characterized in that The second authentication process is also used to determine the legitimacy of communication between the first application and the second application based on communication configuration information, and the communication configuration information is used to indicate the corresponding relationship between application communications between different subsystems, and the different subsystems include the first subsystem and the second subsystem.
13. The device according to claim 11 or 12, characterized in that The first authentication process is used to send the identity information of the first application to the second authentication process, and the identity information of the first application is used for the second authentication process to authenticate the identity of the first application.
14. The device according to any one of claims 10 to 13, characterized in that: The first subsystem further includes a first shared memory driver, and the second subsystem further includes a second shared memory driver; The first application and the second application are further used to send indication information to the first shared memory driver and the second shared memory driver respectively according to the channel information, wherein the indication information is used to instruct to create the shared memory channel; The first shared memory driver and the second shared memory driver are further used to authenticate the first application and the second application respectively, and create the shared memory channel for the first application and the second application after the authentication is passed.
15. The device according to claim 14, characterized in that The indication information includes the channel information; The first shared memory driver is further used to determine the consistency between the channel information included in the indication information and the channel information allocated by the second authentication process, and to perform identity authentication on the first application; The second shared memory driver is further used to determine the consistency between the channel information included in the indication information and the channel information allocated by the second authentication process, and to perform identity authentication on the second application; Among them, if the channel information included in the indication information is consistent with the channel information allocated by the second authentication process, and the identity authentication of the first application and the second application are both passed, it is determined that the authentication of the first application and the second application is passed; if the channel information included in the indication information is inconsistent with the channel information allocated by the second authentication process, or the identity authentication of the first application fails, or the identity authentication of the second application fails, it is determined that the authentication of the first application and the second application fails.
16. The device according to claim 15, characterized in that The first authentication process is further used to send the channel information allocated by the second authentication process and the identity information of the first application to the first shared memory driver; The second authentication process is further used to send the channel information allocated by the second authentication process and the identity information of the second application to the second shared memory driver.
17. The device according to claim 15 or 16, characterized in that The first shared memory driver includes a first data interface and a first management interface, and the second shared memory driver includes a second data interface and a second management interface; Among them, the first data interface is used for the first shared memory driver to communicate with the first application, the first management interface is used for the first shared memory driver to communicate with the first authentication process, the second data interface is used for the second shared memory driver to communicate with the second application, and the second management interface is used for the second shared memory driver to communicate with the second authentication process.
18. The device according to any one of claims 10 to 17, characterized in that: The second authentication process is further used to allocate a first cross-domain channel to the first application, and the first cross-domain channel is used for communication between the second authentication process and the first application.
19. A vehicle, characterized in that: The vehicle comprises a data transmission device as claimed in any one of claims 10-18.
20. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein instructions are stored in the memory, and when the processor runs the instructions in the processor, the electronic device executes the data transmission method according to any one of claims 1 to 9.
21. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed by a device, the device executes the data transmission method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Data transmission method and device, vehicle and equipment
CN118741529A
Method for establishing data transmission channel, terminal system and storage medium
CN114077502A
Application trusted identity confirmation method, management unit and equipment
CN114844672A
Data transmission method and electronic equipment
CN115550340A
Low-latency shared memory channel across address spaces in a computing system
US20220019456A1
Cited By
Cross-domain communication method and system based on capability token, and readable storage medium
CN121333770A
