Communication system, method and vehicle

By establishing a direct channel on the vehicle's PCIE bus to directly transmit control data between domain controllers, the problem of data transmission delay and low throughput between domain controllers is solved, and efficient cross-device communication is achieved.

CN118264707BActive Publication Date: 2024-09-03XIAOMI EV TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410684953.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-09-03
Estimated Expiration
2044-05-29

AI Technical Summary

Technical Problem

The data transmission delay between domain controllers on the vehicle is large and needs to go through the protocol stack, resulting in reduced throughput.

Method used

By establishing a direct channel between the source device and the target device on the PCIE bus, control data is transmitted directly without going through the protocol stack, thereby reducing latency and improving throughput.

Benefits of technology

It realizes communication between two processes across hosts or devices, reduces the data transmission delay caused by the protocol stack, improves the throughput of data transmission, and reduces the resource occupation of the central processor.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118264707B
    Figure CN118264707B
Patent Text Reader

Abstract

The present disclosure relates to a communication system, method and vehicle, and to the technical field of device interaction. The present disclosure includes: a source device, a target device, a first device and a second device; the first device is used to query a channel number corresponding to a first information from a mapping table and send the channel number to the source device; the first information is used to indicate information of a communication connection between the source device and the target device; the source device is used to generate control data and send the control data to the target device through a channel indicated by the channel number; the second device is used to query the first information corresponding to the channel number from the mapping table and send the first information to the target device; the target device is used to process the control data according to the first information. Using the communication system proposed in the present disclosure, data transmission delay can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of device interaction technology, and in particular to a communication system, method and vehicle. Background Art

[0002] Currently, a vehicle is equipped with multiple devices, and the vehicle is controlled through data interaction between the source device and the target device.

[0003] Taking the example that the source device is domain controller A on a vehicle and the target device is domain controller B, when domain controller A on the vehicle needs to communicate with domain controller B, domain controller A needs to transmit data to domain controller B through the protocol stack, which increases the delay of data transmission. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present disclosure provides a communication system, method and vehicle.

[0005] According to a first aspect of an embodiment of the present disclosure, there is provided a communication system, including: a source device, a target device, a first device and a second device;

[0006] The first device is used to query the channel number corresponding to the first information from the mapping table and send the channel number to the source device; the first information is used to indicate the communication connection between the source device and the target device;

[0007] The source device is used to generate control data and send the control data to the target device through the channel indicated by the channel number;

[0008] The second device is used to query the first information corresponding to the channel number from the mapping table and send the first information to the target device;

[0009] The target device is used to process the control data according to the first information.

[0010] Optionally, the first device is further configured to obtain the first information from the source device.

[0011] Optionally, the first device is further used to create a channel corresponding to the first information and establish the mapping table.

[0012] Optionally, the first device is used to divide a channel corresponding to the first information on a PCIE bus.

[0013] Optionally, the source device is further configured to obtain the control data from the first storage space, and send the control data to the target device through the channel indicated by the channel number.

[0014] Optionally, the source device includes a source control layer, and the target device includes a target control layer; the source control layer is used to obtain the control data from the first storage space, and send the control data to the target control layer through the channel indicated by the channel number;

[0015] The target control layer is used to store the control data into a second storage space;

[0016] The target device is further configured to obtain the control data from the second storage space.

[0017] Optionally, the first information includes a target process identifier of the target device; the second device is further used to search the target process identifier corresponding to the channel number from the mapping table, and send the control data to the target device;

[0018] The target device is used to process the control data through the target process indicated by the target process identifier.

[0019] Optionally, the target device is further configured to control the target process to suspend the ongoing first service after acquiring the control data, and process the control data to execute the second service.

[0020] Optionally, the first information includes a source device identifier of the source device, a source process identifier of the source device, a source device identifier of the target device, a target process identifier of the target device, and a protocol number.

[0021] Optionally, the first device is further configured to use at least one piece of information in the first information as the channel number.

[0022] According to a second aspect of an embodiment of the present disclosure, a communication method is provided, which is applied to a communication system, the system comprising: a source device, a target device, a first device and a second device;

[0023] The first device is used to query the channel number corresponding to the first information from the mapping table and send the channel number to the source device; the first information is used to indicate the communication connection between the source device and the target device;

[0024] The source device is used to generate control data and send the control data to the target device through the channel indicated by the channel number;

[0025] The second device is used to query the first information corresponding to the channel number from the mapping table and send the first information to the target device;

[0026] The target device is used to process the control data according to the first information.

[0027] According to a third aspect of an embodiment of the present disclosure, there is provided a communication method, including:

[0028] A channel number corresponding to the first information is queried from a mapping table and the channel number is sent to a source device; the channel number is used to instruct the source device to send the generated control data to a target device via a channel indicated by the channel number; the control data is used to instruct the target device to process the control data based on the first information, the first information is information corresponding to the channel number queried from the mapping table by a second device and transmitted to the target device, and the first information is used to indicate information of a communication connection between the source device and the target device.

[0029] According to a fourth aspect of an embodiment of the present disclosure, there is provided a communication method, including:

[0030] receiving a channel number sent by a first device; the channel number is a channel number corresponding to first information queried by the first device from a mapping table, the first information being information indicating a communication connection between a source device and a target device;

[0031] Generate control data and send the control data to the target device through the channel indicated by the channel number, wherein the control data indicates that the target device processes the control data according to first information after receiving the control data, and the first information is information corresponding to the channel number queried by the second device from the mapping table and transmitted to the target device.

[0032] According to a fifth aspect of an embodiment of the present disclosure, there is provided a communication method, including:

[0033] receiving control data sent by a source device through a channel indicated by a channel number; the channel number is a channel number corresponding to first information queried by the first device from a mapping table and sent to the source device, the first information being information indicating a communication connection between the source device and the target device;

[0034] receiving first information sent by a second device, where the first information is first information corresponding to the channel number queried by the second device from the mapping table;

[0035] The control data is processed according to the first information.

[0036] According to a sixth aspect of an embodiment of the present disclosure, a vehicle is provided, on which the communication system provided by the first aspect of an embodiment of the present disclosure is arranged.

[0037] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0038] The source device can transmit the control data to the target device through the channel corresponding to the first information, or the source process of the source device can transmit the control data to the target device through the channel without going through the protocol stack, thereby reducing the data transmission delay caused by the protocol stack and improving the data transmission throughput. Without going through the protocol stack, communication between two processes across hosts or devices is realized.

[0039] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0041] Figure 1 The diagram is a schematic diagram showing the interaction of various devices in a communication system according to an exemplary embodiment.

[0042] Figure 2 It is a schematic diagram of a framework of a communication system according to an exemplary embodiment.

[0043] Figure 3 It is a schematic diagram of a framework of a communication system according to an exemplary embodiment.

[0044] Figure 4 It is a schematic diagram of a framework of a communication system according to an exemplary embodiment.

[0045] Figure 5 The present invention is a flowchart showing a communication method according to an exemplary embodiment.

[0046] Figure 6 The present invention is a flowchart showing a communication method according to an exemplary embodiment.

[0047] Figure 7 The present invention is a flowchart showing a communication method according to an exemplary embodiment.

[0048] Figure 8 It is a block diagram of a communication device according to an exemplary embodiment.

[0049] Fig. 9 It is a block diagram of a communication device according to an exemplary embodiment.

[0050] Fig.10 It is a block diagram of a communication device according to an exemplary embodiment.

[0051] Fig.11is a block diagram of a vehicle according to an exemplary embodiment.

[0052] Fig.12 It is a block diagram of a communication device according to an exemplary embodiment.

[0053] Fig.13 is a block diagram of a chip system according to an exemplary embodiment. DETAILED DESCRIPTION

[0054] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and systems consistent with some aspects of the present disclosure as detailed in the appended claims.

[0055] The embodiments described in some embodiments of the present disclosure below do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and systems consistent with some aspects of the present disclosure as detailed in the appended claims.

[0056] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.

[0057] Before introducing the following solutions, some technical terms involved in the embodiments of the present disclosure are explained.

[0058] 1. NTB (NCM Transfer Block) device is a device based on the NCM (Network Control Model for Communications) protocol. NTB device is used to divide data into a series of blocks or packets during data transmission. Each block contains certain data and additional control information, such as checksum, sequence number and address information, to ensure the correct transmission of data.

[0059] 2. PCIE (Peripheral Component Interconnect Express) bus. PCIE bus is used to connect high-speed hardware devices on the motherboard, such as graphics cards (GPU), network cards, solid-state drives or other forms of expansion cards. For example, PCIE bus can be used to connect source devices and target devices, providing high-speed data transmission channels for source devices and target devices. PCIE bus can also manage each channel to allow data to be quickly transmitted from the source device to the target device. The physical channel in the PEIC bus is implemented by hardware. Each physical channel can support multiple virtual channels, and different types of traffic can be assigned to different virtual channels. Please refer to Figure 2 As shown, Figure 2 The PCIE switch in the embodiment is a device connected through the PCIE bus. The PCIE switches are connected through the PCIE bus, and multiple physical channels can be divided on the PCIE bus. One physical channel corresponds to one port on the PCIE switch.

[0060] 3. Protocol is the rules and standards used to specify data transmission, which can ensure accurate transmission in a complex network environment. The source device and the target device comply with the same protocol to parse and encapsulate data, so that data can be transmitted from the source device to the target device.

[0061] Figure 1 is a schematic diagram of a communication system according to an exemplary embodiment. Figure 1 As shown, the communication system includes a source device, a target device, a first device and a second device.

[0062] The source device and the target device can be different domain controllers on the vehicle, such as the power domain controller, chassis domain controller, smart cockpit domain controller, autonomous driving domain controller and body domain controller; the source device and the target device can also be terminal devices, which include vehicle-mounted devices, portable devices, home appliances, wearable devices and sensors, etc. The vehicle-mounted devices are the central control screen, headrest screen, car speakers, etc. configured on the vehicle, portable devices can be mobile phones, computers and tablets, etc., home appliances can be washing machines, air conditioners, televisions, refrigerators, etc., wearable devices can be headphones, watches, etc., and sensors can be temperature sensors, speed sensors, smoke sensors, etc. on the vehicle.

[0063] The first device may be a first NTB device, which is an NTB device connected to the source device and is used to query the channel number corresponding to the first information from the mapping table and send the channel number to the source device. Each source device is equipped with its own first device.

[0064] The mapping table includes first information and a channel number with a mapping relationship, the first information is used to indicate information of a communication connection between a source device and a target device. The channel number is used to uniquely identify a channel on a PCIE bus, which may be a physical channel, and one physical channel corresponds to one channel number.

[0065] The first information includes identification information related to the source device, identification information related to the target device, and a transmission protocol between the source device and the target device. The transmission protocol can be any one of the HTTP (Hyper Text Transfer Protocol), TCP (Transmission Control Protocol) and UDP (User Datagram Protocol), and of course it can also be other protocols, which is not limited in the embodiments of the present disclosure.

[0066] See also Figure 2 The mapping table shown in the figure contains identification information related to the source device, identification information related to the target device, the transmission protocol between the source device and the target device, and the channel number. The identification information related to the source device includes the source device identification (Src Ip) of the source device and the source process identification (Src Port) involved in the source device. The source device identification is used to identify the source device, and the source process identification is used to identify the source process in the application after the source device calls the application; the identification information related to the target device includes the target device identification (Dst Ip) of the target device and the target process identification (Dst Port) involved in the target device. The target device identification is used to uniquely identify a target device, and the target process identification is used to identify the target process in the application after the target device calls the application; it can be understood that the source device identification, source process identification, target device identification, target process identification, and protocol form a five-tuple that has a mapping relationship with a unique channel number, and different five-tuples correspond to different channel numbers.

[0067] See also Figure 2 As shown, the first device includes a first driver layer, a second driver layer and a third driver layer. The first driver layer may be a network card driver layer (NTb_netdev driver), which is used to obtain the first information output by the source device, query the channel number corresponding to the first information from the mapping table, and send the channel number to the second driver layer. The second driver layer may be a network transport layer (NTB_transport driver), which is used to provide a unified interface for data transmission between the first driver layer and the third driver layer, and send the channel number to the third driver layer. The third driver layer may be a hardware driver layer (ntb_hw driver), which is used to transmit the channel number to the source device.

[0068] See also Figure 2 and Figure 3 As shown, in the mapping table establishment stage, the first driver layer obtains the first information output by the source device, and transmits the first information to the third driver layer through the second driver layer. After the third driver layer obtains the first information, it divides a channel uniquely corresponding to the first information on the PCIE bus, and establishes a mapping table containing the first information and the channel number with a mapping relationship, and stores the mapping table in the third storage space.

[0069] In the use phase of the mapping table, the first driver layer obtains the first information output by the source device, reads the mapping table from the third storage space, searches the mapping table for the channel number corresponding to the first information, and then sends the channel number to the third driver layer through the second driver layer; the third driver layer sends the channel number to the source device; the source device transmits the control data generated by itself to the target device through the channel indicated by the channel number. The third storage space can be a first register configured for the first device.

[0070] The source device refers to a transmitting end that generates and sends control data. The source device is used to generate control data and send the control data to the target device through a channel indicated by a channel number.

[0071] For example, see Figure 3 As shown, the source device stores the generated control data in the first storage space, and after receiving the channel number sent by the third driver layer, reads the control data from the first storage space and sends the control data to the target device through the channel indicated by the channel number. The first storage space can be a first memory.

[0072] Optionally, a source control layer is configured on the source device. The source control layer may be a controller driver layer (dmacontroller driver), which is software deployed on the source device. The source control layer is responsible for the data transmission process from the first storage space to the target device or from the target device to the first storage space, without the intervention of the central processing unit (CPU). It allocates necessary system resources, such as dma channels and memory buffers, for data transmission. In addition, during the data transmission process, the source control layer can also detect and handle errors to ensure the integrity and reliability of data transmission.

[0073] For example, the control data generated by the source device is stored in the first storage space, the source control layer reads the control data from the first storage space, and the source control layer receives the channel number sent by the third driver layer, and the source control layer sends the control data to the target device through the channel indicated by the channel number.

[0074] The second device is used to query the first information corresponding to the channel number from the mapping table and send the first information to the target device.

[0075] The second device may be a second NTB device, which is an NTB device connected to the target device and is used to query the first information corresponding to the channel number from the mapping table and send the first information to the target device.

[0076] The second device is equipped with a fourth storage space, and the fourth storage space is used to store the mapping table. The fourth storage space can be a second register configured for the second device. It is understandable that after the first device creates the mapping table and stores the mapping table in the third storage space, the second device will also store the same mapping table in the equipped fourth storage space to facilitate subsequent search for the channel number or the first information.

[0077] In the domain controller scenario used in a vehicle, different domain controllers in the vehicle are equipped with their own NTB devices, each NTB device is also equipped with its own storage space, and each storage space stores a mapping table, which contains the first information and channel number of the communication connection between each domain controller.

[0078] For example, a vehicle has five domain controllers, namely, a power domain controller, a chassis domain controller, an intelligent cockpit domain controller, an autonomous driving domain controller and a body domain controller. If the five domain controllers communicate with each other in pairs, 10 communication combinations will be generated. A mapping table will be stored in the storage space of the five domain controllers, and the mapping table contains the first information and channel number of the communication connection between the domain controllers under the 10 communication combinations.

[0079] See also Figure 2 As shown, the second device includes a fourth driver layer, a fifth driver layer and a sixth driver layer. The fourth driver layer may be a network card driver layer, the fifth driver layer may be a network transmission layer, and the sixth driver layer may be a hardware driver layer. The sixth driver layer is used to determine the channel occupied by the source device when sending control data, and upload the channel number of the channel to the fifth driver layer, the fifth driver layer transmits the channel number to the fourth driver layer, the fourth driver layer reads the mapping table from the fourth storage space, queries the first information corresponding to the channel number from the mapping table, and sends the first information to the target device, so that the target device processes the control data according to the first information.

[0080] It can be understood that the first driver layer and the fourth driver layer are the same network layer, but the devices connected to the NTB devices where they are located are different. Similarly, the second driver layer and the fifth driver layer are also the same network layer, but the devices connected to the NTB devices where they are located are different. The third driver layer and the sixth driver layer are also the same network layer, but the devices connected to the NTB devices where they are located are different.

[0081] The same NTB device can play different roles to implement different functions. For example, the NTB device can be used as a channel and mapping table creation role to divide the communication channel for the source device and the target device on the PCIE bus. The NTB device can also be used as a forwarding role for the first information to find the channel occupied by the source device to send control data, query the first information corresponding to the channel, and send the first information to the source device for processing.

[0082] The target device refers to a receiving end that receives the control data and the first information. The target device is used to process the control data according to the first information sent by the second device and the control data sent by the source device and according to the information indicated by the first information.

[0083] For example, after the source device sends the generated control data to the target device through the channel indicated by the channel number, the target device stores the control data in the second storage space, and after receiving the first information sent by the second device, reads the control data from the second storage space and processes the control data according to the first information. The second storage space can be a second memory.

[0084] Optionally, a target control layer is configured on the target device. The target control layer may be a controller driver layer, which is software deployed on the target device. The target control layer is responsible for the data transmission process from the second storage space to the source device or from the source device to the second storage space without the need for access to a central processing unit.

[0085] For example, the target control layer receives the control data transmitted from the channel and stores the control data in the second storage space, and the target device reads the control data from the second storage space to process the control data.

[0086] In some cases, see Figure 1 and Figure 3 As shown, if the source device wants to send control data to the target device to realize the automatic parking function of the vehicle. The source device can send its own source device identification, source process identification, target device identification of the target device, target process identification of the target process, and the communication protocol between the source device and the target device (hereinafter referred to as the first information) to the first driver layer of the first device, and the first driver layer forwards the first information to the third driver layer through the second driver layer. The third driver layer creates a channel that uniquely corresponds to the first information, and establishes a mapping relationship between the first information and the channel number to form a mapping table, and then stores the mapping table in the third storage space. The first driver layer reads the mapping table from the third storage space, queries the channel number corresponding to the first information; then sends the channel number to the third driver layer through the second driver layer; the third driver layer sends it to the source control layer.

[0087] After the source device generates control data, it stores the generated control data in the first storage space. When the source control layer receives the channel number, it reads the control data from the first storage space and sends the control data to the target control layer of the target device through the channel indicated by the channel number.

[0088] The target control layer stores the control data in the second storage space, and the target control layer sends the channel number of the control data sent by the source control layer to the sixth driver layer of the second device. The sixth driver layer sends the channel number to the fourth driver layer through the fifth driver layer. The fourth driver layer reads the mapping table from the fourth storage space, searches for the first information corresponding to the channel number, and transmits the first information to the target device.

[0089] After receiving the first information, the target device reads the control data from the second storage space and processes the control data according to the first information.

[0090] It can be understood that the information indicated by the first information includes the source device identifier of the source device, the source process identifier, the target device identifier of the target device, the target process identifier and the communication protocol. Then, the fourth driver layer will find the corresponding target device based on the target device identifier, and then notify the target process of the target device that the data needs to be processed based on the target process identifier. In this way, the target device will read the control data from the second storage space through the target process, and process the control data through the target process to realize the automatic parking function of the vehicle.

[0091] Currently, see Figure 4 As shown, the data sent by the source device will be transmitted to the first device through the TCP protocol stack or the IP protocol stack, and the first device will then transmit the data to the source control layer, which will pass the data through the underlying physical layer, such as Figure 4 The PCIE switch in transmits the data to the target control layer, which switch can be the above-mentioned PCIE switch, and the target control layer then transmits the data to the second device, and the second device then transmits the data to the target device through the TCP protocol stack or the IP protocol stack, thereby completing the data interaction.

[0092] However, the TCP protocol stack or IP protocol stack consists of four network layers, namely the network interface layer (the network interface layer includes the physical layer and the data link layer), the network layer (IP protocol or TCP protocol), the transport layer and the application layer. The transmission of data through the TCP protocol stack or the IP protocol stack will slow down the data transmission speed, thereby increasing the data transmission delay. The data transmission delay leads to a decrease in throughput. Throughput refers to the amount of data that can be transmitted between the source device and the target device per unit time, usually measured in the number of bytes of data transmitted per second, or the number of operations that the system can request or execute per second.

[0093] In order to reduce data transmission delay, the embodiment of the present disclosure abandons data transmission between the TCP protocol stack or the IP protocol stack, and establishes channels corresponding to different first information on the PCIE bus between the source device and the target device. Then, the source device can transmit control data to the target device through the channel corresponding to the first information without the need for data transmission through the four network layers of the TCP protocol stack or the IP protocol stack, thereby reducing data transmission delay and improving data throughput.

[0094] Furthermore, when applied to the scenario of communication between domain controllers on a vehicle, since the number of domain controllers on a vehicle is reduced, usually within 5, when the vehicle configures a mapping table, the first information from the source domain controller to the target domain controller can be configured for each domain controller in the mapping table. The mapping table has the first information and channel of the communication connection from each source domain controller to the target domain controller, so that the solution of communication between the source domain controller and the target domain controller through the channel can be realized. The first information binds the source domain controller and the target domain controller. The source domain controller can find the target process involved in the target domain controller based on the first information, thereby transmitting the control data to the target process through the channel.

[0095] Through the above technical solution, on the first hand, the source device can transmit the control data to the target device through the channel corresponding to the first information, or the source process of the source device can transmit the control data to the target device through the channel, without passing through the protocol stack, thereby reducing the data transmission delay caused by the protocol stack, improving the data transmission throughput, and realizing the communication between two processes across hosts or devices without passing through the protocol stack; on the second hand, the protocol stack runs in the central processing unit, so if the control data is transmitted by using the protocol stack for data interaction, the control data will pass through the central processing unit, and the channel is configured in the embodiment of the present disclosure, and the source control layer is configured for the source device. , a target control layer is configured for the target device, so the source control layer can directly obtain the control data from the first storage space, and send the control data to the target control layer through the channel. The target control layer stores the control data in the second storage space for the target device to retrieve. In this process, the interaction of control data between the source device and the target device does not need to be processed by the central processing unit, thereby reducing the resource occupation of the central processing unit; thirdly, since different source devices and target devices are equipped with different channels for interaction, each channel is independent of each other, and the network resources between the source device and the target device will not be occupied by other devices, so that the transmission speed between the source device and the target device is guaranteed.

[0096] An exemplary embodiment of the above-mentioned source device and target device is introduced below, which is used to explain an exemplary scheme in which the source device sends the first information to the first device or the second device uploads the first information to the target device.

[0097] See also Figure 3 As shown, the source device can transmit the first information to the first driver layer of the first device by calling the socket interface through a designated application program.

[0098] The designated application may be a soa app (service-oriented application), which implements data transmission between the source device and the first device by using network services, message queues and other technologies. After receiving the first information, the application calls the socket interface to transparently transmit the first information to the first driver layer without passing through the protocol stack.

[0099] The socket interface may be an interface in XDP (eXpress Data Path) mode. In the early stage of network data packets entering the kernel network protocol stack, users may filter, forward and modify data packets through XDP, thereby reducing the transmission delay of data packets and achieving high data throughput. Direct communication between the application and the first device may be achieved through the socket interface.

[0100] The fourth driver layer in the second device can directly transparently transmit the first information to the application program through the socket interface, and the application program then transmits the first information to the target device.

[0101] Through the setting of the socket interface and the application, the source device can call the socket interface through the application and directly transmit the first information to the first device without passing through the protocol stack; the second device can also directly transmit the first information to the application through the socket interface, and then transmit it to the target device without passing through the protocol stack, thereby reducing the network overhead brought by the protocol stack.

[0102] An exemplary embodiment of creating a channel number is described below.

[0103] At least one kind of information in the first information may be used as a channel number, and the channel number is used to uniquely identify a physical channel on the PCIE bus.

[0104] See also Figure 2As shown, the mapping table contains the device identifier 192.168.0.1 of the source device, the source process identifier 2455, the device identifier 192.168.0.10 of the target device, the target process identifier 25 of the target device and the communication protocol tcp. Assuming that the source process identifier, the target process identifier and the communication protocol in the first information are used as the channel number, and the source process identifier, the target process identifier and the communication protocol are stored in the third storage space of the source controller, the information stored in the third storage space of the source controller can be used as the channel number, and the channel number is 2455 25, tcp, which is used to identify a channel on the PCIE bus.

[0105] For example, the mapping table contains the device identifier 192.168.0.10 of the source device, the source process identifier 5678, the device identifier 192.168.0.1 of the target device, the target process identifier 20 of the target device and the communication protocol udp. Assuming that the source process identifier, target process identifier and communication protocol in the first information are used as the channel number, the source process identifier, target process identifier and communication protocol are stored in the third storage space of the source controller, then the information stored in the third storage space of the source controller can be used as the channel number, and the channel number is 20 5678, udp, which is used to identify a channel on the PCIE bus.

[0106] Through the above technical solution, the source process identifier, target process identifier and protocol stored in the third storage space in the source controller can be used as the channel number. Since the source process identifier, target process identifier and protocol used between different source processes and target processes are different, the communication connection information between different source processes and target processes is unique. Using this information as the channel number can uniquely identify a channel, and there will be no duplication of channel numbers. On the one hand, the source process identifier, target process identifier and protocol stored in the third storage space or the fourth storage space can be used as the channel number to avoid duplication of the channel number; on the other hand, the data stored in the third storage space can be used as the channel number, and there is no need to generate an additional channel number.

[0107] The following introduces the receive interrupt function of the target device. The receive interrupt function can be configured on the target device to ensure priority processing of control data.

[0108] After acquiring the control data, the target device controls the target process to suspend the ongoing first service, and processes the control data to execute the second service.

[0109] The first service is the service being processed by the target process, and the second service is the service that needs to be processed based on the control data.

[0110] Optionally, after the target device obtains the control data from the second storage space and obtains the first information, the control data is sent to the target process indicated by the first information. After the target process receives the control data, if there is an ongoing first business, the ongoing first business is suspended and the control data is executed to implement the second business.

[0111] Through the above technical solution, after the target device is equipped with the receiving interrupt function, it can give priority to processing the control data sent by the source device, thereby improving the flexibility and efficiency of data processing. In the domain controller interaction scenario applied to the vehicle, if the autonomous driving domain controller sends control data to the body domain controller, the body domain controller will suspend the ongoing first business and execute the control data first, thereby meeting the needs of the autonomous driving domain controller.

[0112] Based on the same inventive concept, an embodiment of the present disclosure proposes a communication method, which is applied to a communication system, the system comprising: a source device, a target device, a first device and a second device;

[0113] The first device is used to query the channel number corresponding to the first information from the mapping table and send the channel number to the source device; the mapping table contains the first information and the channel number having a mapping relationship, and the first information is used to indicate the information of the communication connection between the source device and the target device;

[0114] The source device is used to generate control data and send the control data to the target device through the channel indicated by the channel number;

[0115] The second device is used to query the first information corresponding to the channel number from the mapping table and send the first information to the target device;

[0116] The target device is used to process the control data according to the first information.

[0117] Based on the same inventive concept, the present disclosure also proposes a communication method, see Figure 5 As shown, the communication method is performed by a first device and includes the following steps:

[0118] In step S11, a channel number corresponding to the first information is queried from a mapping table and the channel number is sent to a source device; the channel number is used to instruct the source device to send the generated control data to a target device through a channel indicated by the channel number; the control data is used to instruct the target device to process the control data based on the first information, and the first information is information corresponding to the channel number queried from the mapping table by the second device and transmitted to the target device;

[0119] The mapping table includes first information and a channel number having a mapping relationship, and the first information is used to indicate information of a communication connection between the source device and the target device.

[0120] Optionally, a socket interface is called to obtain control data from a specified application, where the control data is sent by the source device to the application.

[0121] Optionally, the first information is sent to a source control layer of the source device.

[0122] Based on the same inventive concept, the present disclosure also proposes a communication method, see Figure 6 As shown, the communication method is performed by the source device and includes the following steps:

[0123] In step S21, a channel number sent by a first device is received.

[0124] The channel number is a channel number corresponding to the first information queried by the first device from a mapping table, the mapping table containing the first information and the channel number having a mapping relationship, and the first information is used to indicate information of a communication connection between the source device and the target device;

[0125] In step S22, control data is generated and sent to the target device through the channel indicated by the channel number.

[0126] The control data indicates that the target device processes the control data according to first information after receiving the control data, where the first information is information corresponding to the channel number queried from the mapping table by the second device and transmitted to the target device.

[0127] Optionally, the communication method further includes: storing the control data in the first storage space.

[0128] Optionally, sending the control data to the target device through the channel indicated by the channel number includes: acquiring the control data from the first storage space through the source control layer, and transmitting the control data to the target device through the channel.

[0129] Based on the same inventive concept, the present disclosure also proposes a communication method, see Figure 7 As shown, the communication method is executed by the target device and includes the following steps:

[0130] In step S31, control data transmitted by the source device through the channel indicated by the channel number is received.

[0131] The channel number is a channel number corresponding to the first information queried by the first device from a mapping table and sent to the source device, wherein the mapping table contains the first information and the channel number having a mapping relationship, and the first information is used to indicate information of a communication connection between the source device and the target device;

[0132] In step S32, first information sent by the second device is received.

[0133] The first information is first information corresponding to the channel number queried by the second device from the mapping table;

[0134] In step S33, the control data is processed according to the first information.

[0135] Optionally, processing the control data according to the first information includes: querying and obtaining a target process according to a target process number indicated by the first information, and sending the control data to the target process for processing.

[0136] Figure 8 is a block diagram of a communication device according to an exemplary embodiment. Figure 8 The communication device 800 includes a query module 810, which is configured to query a channel number corresponding to the first information from a mapping table and send the channel number to a source device; the channel number is used to instruct the source device to send the generated control data to the target device through the channel indicated by the channel number; the control data is used to instruct the target device to process the control data based on the first information, and the first information is the information corresponding to the channel number queried by the second device from the mapping table and transmitted to the target device.

[0137] Fig. 9 is a block diagram of a communication device according to an exemplary embodiment. Fig. 9 The communication device 900 includes a channel number receiving module 910 and a generating module 920 .

[0138] The channel number receiving module 910 is configured to receive the channel number sent by the first device; the channel number is the channel number corresponding to the first information queried by the first device from a mapping table, and the mapping table contains the first information and the channel number with a mapping relationship, and the first information is used to indicate the information of the communication connection between the source device and the target device.

[0139] The generating module 920 is configured to generate control data and send the control data to the target device through the channel indicated by the channel number, wherein the control data indicates that the target device processes the control data according to the first information after receiving the control data, and the first information is the information corresponding to the channel number queried by the second device from the mapping table and transmitted to the target device.

[0140] Fig.10 is a block diagram of a communication device according to an exemplary embodiment. Fig.10 The communication device 1000 includes a control data receiving module 1010, a first information receiving module 1020 and a processing module 1030.

[0141] The control data receiving module 1010 is configured to receive control data sent by a source device through a channel indicated by a channel number; the channel number is a channel number corresponding to the first information queried by the first device from a mapping table and sent to the source device, the mapping table includes the first information and the channel number having a mapping relationship, and the first information is used to indicate information of a communication connection between the source device and the target device;

[0142] The first information receiving module 1020 is configured to receive first information sent by a second device, where the first information is first information corresponding to the channel number queried by the second device from the mapping table;

[0143] The processing module 1030 is configured to process the control data according to the first information.

[0144] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the system, and will not be elaborated here.

[0145] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, and the program instructions, when executed by a processor, implement the steps of the communication system provided by the present disclosure.

[0146] Fig.11 1 is a block diagram of a vehicle 1100 according to an exemplary embodiment. For example, the vehicle 1100 may be a hybrid vehicle, a non-hybrid vehicle, an electric vehicle, a fuel cell vehicle, or other types of vehicles. The vehicle 1100 may be an autonomous vehicle, a semi-autonomous vehicle, or a non-autonomous vehicle.

[0147] Reference Fig.11, the vehicle 1100 may include various subsystems, such as an infotainment system 1110, a perception system 1120, a decision control system 1130, a drive system 1140, and a computing platform 1150. The vehicle 1100 may also include more or fewer subsystems, and each subsystem may include multiple components. In addition, each subsystem and each component of the vehicle 1100 may be interconnected by wire or wireless means.

[0148] In some embodiments, the infotainment system 1110 may include a communication system, an entertainment system, and a navigation system, etc.

[0149] The perception system 1120 may include several sensors for sensing information about the environment around the vehicle 1100. For example, the perception system 1120 may include a global positioning system (the global positioning system may be a GPS system, or a Beidou system or other positioning systems), an inertial measurement unit (IMU), a laser radar, a millimeter wave radar, an ultrasonic radar, and a camera.

[0150] The decision control system 1130 may include a computing system, a vehicle controller, a steering system, a throttle, and a braking system.

[0151] The drive system 1140 may include components that provide powered motion for the vehicle 1100. In one embodiment, the drive system 1140 may include an engine, an energy source, a transmission system, and wheels. The engine may be one or a combination of an internal combustion engine, an electric motor, and an air compression engine. The engine is capable of converting energy provided by the energy source into mechanical energy.

[0152] Some or all functions of the vehicle 1100 are controlled by a computing platform 1150. The computing platform 1150 may include at least one first processor 1151 and a first memory 1152, and the first processor 1151 may execute instructions 1153 stored in the first memory 1152.

[0153] The first processor 1151 may be any conventional processor, such as a commercially available CPU. The processor may also include a graphics processor (Graphic Process Unit, GPU), a field programmable gate array (Field Programmable Gate Array, FPGA), a system on chip (System on Chip, SOC), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC) or a combination thereof.

[0154] The first memory 1152 can be implemented by any type of volatile or non-volatile memory device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0155] In addition to the instructions 1153 , the first memory 1152 may also store data, such as road maps, route information, and data such as the location, direction, and speed of the vehicle. The data stored in the first memory 1152 may be used by the computing platform 1150 .

[0156] In the embodiment of the present disclosure, the first processor 1151 may execute instructions 1153 to complete all or part of the steps of the above-mentioned communication system.

[0157] It can be understood that the vehicle is equipped with a domain controller, channels are configured between the domain controllers, and the domain controllers control the transmission of data through the channels.

[0158] Fig.12 1 is a block diagram of a communication device 1200 according to an exemplary embodiment. For example, the communication device 1200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0159] Reference Fig.12 The communication device 1200 may include one or more of the following components: a processing component 1202 , a second memory 1204 , a power component 1206 , a multimedia component 1208 , an audio component 1210 , an input / output interface 1212 , a sensor component 1214 , and a communication component 1216 .

[0160] The processing component 1202 generally controls the overall operation of the communication device 1200, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1202 may include one or more second processors 1220 to execute instructions to complete all or part of the steps of the communication system described above. In addition, the processing component 1202 may include one or more modules to facilitate the interaction between the processing component 1202 and other components. For example, the processing component 1202 may include a multimedia module to facilitate the interaction between the multimedia component 1208 and the processing component 1202.

[0161] The second memory 1204 is configured to store various types of data to support operations on the communication device 1200. Examples of such data include instructions for any application or system operating on the communication device 1200, contact data, phone book data, messages, pictures, videos, etc. The second memory 1204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0162] The power supply component 1206 provides power to the various components of the communication device 1200. The power supply component 1206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the communication device 1200.

[0163] The multimedia component 1208 includes a screen that provides an output interface between the communication device 1200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1208 includes a front camera and / or a rear camera. When the communication device 1200 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0164] The audio component 1210 is configured to output and / or input audio signals. For example, the audio component 1210 includes a microphone (MIC), and when the communication device 1200 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the second memory 1204 or sent via the communication component 1216. In some embodiments, the audio component 1210 also includes a speaker for outputting audio signals.

[0165] The input / output interface 1212 provides an interface between the processing component 1202 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0166] The sensor assembly 1214 includes one or more sensors for providing various aspects of status assessment for the communication device 1200. For example, the sensor assembly 1214 can detect the open / closed state of the communication device 1200, the relative positioning of components, such as the display and keypad of the communication device 1200, the sensor assembly 1214 can also detect the position change of the communication device 1200 or a component of the communication device 1200, the presence or absence of user contact with the communication device 1200, the orientation or acceleration / deceleration of the communication device 1200, and the temperature change of the communication device 1200. The sensor assembly 1214 can include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1214 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1214 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0167] The communication component 1216 is configured to facilitate wired or wireless communication between the communication device 1200 and other devices. The communication device 1200 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1216 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0168] In an exemplary embodiment, the communication device 1200 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to execute the above-mentioned communication system.

[0169] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a second memory 1204 including instructions, and the instructions can be executed by the second processor 1220 of the communication device 1200 to complete the above communication system. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0170] In another exemplary embodiment, a computer program product is also provided. The computer program product includes a computer program executable by a programmable device, and the computer program has a code portion for executing the above-mentioned communication system when executed by the programmable device.

[0171] Some embodiments of the present disclosure also provide a chip system, such as Fig.13 As shown, the chip system includes at least one third processor 1301 and at least one interface circuit 1302. The third processor 1301 and the interface circuit 1302 can be interconnected through lines. For example, the interface circuit 1302 can be used to receive signals from other devices (such as the memory of the electronic device). For another example, the interface circuit 1302 can be used to send signals to other devices (such as the third processor 1301). Exemplarily, the interface circuit 1302 can read the instructions stored in the memory and send the instructions to the third processor 1301. When the instructions are executed by the third processor 1301, the communication device can perform the various steps in the above embodiments. Of course, the chip system can also include other discrete devices, and some embodiments of the present disclosure are not specifically limited to this.

[0172] In some embodiments of the present disclosure, the interface circuit 1302 can obtain data, program instructions and / or information from the internal storage area of ​​the chip system; it can also obtain data, program instructions and / or information from outside the chip system.

[0173] Optionally, the chip system also includes a memory for storing necessary computer programs and data.

[0174] Those skilled in the art may also understand that the various illustrative logical blocks and steps listed in the embodiments of the present application may be implemented by electronic hardware, computer software, or a combination of the two. Whether such functions are implemented by hardware or software depends on the specific application and the design requirements of the entire system. Those skilled in the art may use various systems to implement the functions described for each specific application, but such implementation should not be understood as exceeding the scope of protection of the embodiments of the present application.

[0175] In addition, the word "exemplary" is used herein to indicate serving as an example, instance, or diagram. Any aspect or design described as "exemplary" in this article is not necessarily understood to be advantageous compared to other aspects or designs. On the contrary, the use of the word exemplary is intended to present concepts in a specific way. As used herein, the term "or" is intended to represent an inclusive "or" rather than an exclusive "or". That is, unless otherwise specified or clear from the context, "X applies A or B" is intended to represent any one of the natural inclusive arrangements. That is, if X applies A; X applies B; or X applies both A and B, "X applies A or B" is satisfied under any of the aforementioned examples. In addition, unless otherwise specified or clearly pointed to a singular form from the context, the articles "one" and "an" as used in this application and the appended claims are generally understood to mean "one or more".

[0176] Likewise, although the present disclosure has been shown and described with respect to one or more implementations, equivalent variations and modifications will occur to those skilled in the art after reading and understanding the specification and drawings. The present disclosure includes all such modifications and variations and is limited only by the scope of the claims. In particular, with respect to the various functions performed by the components (e.g., elements, resources, etc.) described above, unless otherwise indicated, the terms used to describe such components are intended to correspond to any component (functionally equivalent) that performs the specific functions of the described components, even if the structure is not equivalent to the disclosed structure. In addition, although specific features of the present disclosure may have been disclosed with respect to only one of several implementations, such features may be combined with one or more other features of other implementations as may be desired and beneficial to any given or specific application. In addition, with respect to "including", "having", "having", "having", or variations thereof used in a specific embodiment or claim, such terms are intended to be inclusive in a manner similar to the term "comprising".

[0177] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.

[0178] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A communication system, It is characterized in that include: A source device, a target device, a first device, and a second device; The first device is configured to query a channel number corresponding to the first information from a mapping table and send the channel number to the source device; The first information is used to indicate information about a communication connection between the source device and the target device; The source device is used to generate control data and send the control data to the target device through the channel indicated by the channel number; The second device is used to query the first information corresponding to the channel number from the mapping table and send the first information to the target device; The target device is used to process the control data according to the first information.

2. The system according to claim 1, It is characterized in that The first device is further configured to obtain the first information from the source device.

3. The system according to claim 1, It is characterized in that The first device is further used to create a channel corresponding to the first information and establish the mapping table.

4. The system according to claim 3, It is characterized in that The first device is used to divide a channel corresponding to the first information on a PCIE bus.

5. The system according to claim 1, It is characterized in that The source device is further configured to obtain the control data from the first storage space, and send the control data to the target device through the channel indicated by the channel number.

6. The system according to claim 1, It is characterized in that The source device includes a source control layer, and the target device includes a target control layer; the source control layer is used to obtain the control data from the first storage space, and send the control data to the target control layer through the channel indicated by the channel number; The target control layer is used to store the control data into a second storage space; The target device is further configured to obtain the control data from the second storage space.

7. The system according to claim 1, It is characterized in that The first information includes a target process identifier of the target device; the second device is further used to search the target process identifier corresponding to the channel number from the mapping table, and send the control data to the target device; The target device is used to process the control data through the target process indicated by the target process identifier.

8. The system according to claim 7, It is characterized in that The target device is also used to control the target process to suspend the ongoing first service after acquiring the control data, and process the control data to execute the second service.

9. The system according to any one of claims 1 to 8, It is characterized in that The first information includes a source device identifier of a source device, a source process identifier of a source device, a source device identifier of a target device, a target process identifier of a target device, and a protocol number.

10. The system according to any one of claims 1 to 8, It is characterized in that The first device is further configured to use at least one piece of information in the first information as the channel number.

11. A communication method, It is characterized in that Applied to a communication system, the system comprising: a source device, a target device, a first device and a second device; The first device is used to query the channel number corresponding to the first information from the mapping table and send the channel number to the source device; the first information is used to indicate the communication connection between the source device and the target device; The source device is used to generate control data and send the control data to the target device through the channel indicated by the channel number; The second device is used to query the first information corresponding to the channel number from the mapping table and send the first information to the target device; The target device is used to process the control data according to the first information.

12. A communication method, It is characterized in that include: Querying a channel number corresponding to the first information from a mapping table and sending the channel number to a source device; The channel number is used to instruct the source device to send the generated control data to the target device through the channel indicated by the channel number; The control data is used to instruct the target device to process the control data based on the first information, where the first information is information corresponding to the channel number queried by the second device from the mapping table and transmitted to the target device; The first information is used to indicate information about the communication connection between the source device and the target device.

13. A communication method, It is characterized in that include: receiving a channel number sent by the first device; The channel number is a channel number corresponding to the first information queried by the first device from the mapping table, where the first information is used to indicate information of a communication connection between the source device and the target device; Generate control data and send the control data to the target device through the channel indicated by the channel number, wherein the control data indicates that the target device processes the control data according to first information after receiving the control data, and the first information is information corresponding to the channel number queried by the second device from the mapping table and transmitted to the target device.

14. A communication method, It is characterized in that include: receiving control data sent by the source device through the channel indicated by the channel number; The channel number is a channel number that the first device queries from a mapping table and corresponds to the first information and sends to the source device, wherein the first information is used to indicate information about a communication connection between the source device and the target device; receiving first information sent by a second device, where the first information is first information corresponding to the channel number queried by the second device from the mapping table; The control data is processed according to the first information.

15. A vehicle, It is characterized in that The vehicle is provided with a system as described in any one of claims 1 to 10.