Whole vehicle communication method and system based on asymmetric memory synchronization and vehicle

By introducing asymmetric memory synchronization and co-processors into the vehicle communication system, the performance bottleneck of vehicle Ethernet communication and SOA architecture complexity issues are solved, efficient and reliable vehicle communication is achieved, and system overhead and management complexity are reduced. sex.

CN118802976APending Publication Date: 2024-10-18CHINA FAW CO LTD +1
View PDF 0 Cites 2 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing vehicle Ethernet communication system easily forms a performance bottleneck at the central node, resulting in increased communication delays and packet loss rates. Moreover, the service communication and coordination of the SOA architecture will cause reduced system performance, high management and maintenance complexity, and difficult debugging. .

Method used

Adopting a vehicle communication method based on asymmetric memory synchronization, by adding a co-processor in the domain controller, establishing an Ethernet communication base, and performing virtual memory allocation and encapsulation abstraction to form a business interface to achieve cross-domain communication and reduce intermediate Reduce software development complexity and system overhead and improve network robustness.

Benefits of technology

It reduces signal delay and packet loss rate, simplifies management and maintenance complexity, shortens the development cycle, improves system fluency and network reliability, and avoids fault propagation in centrally routed networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118802976A_ABST
    Figure CN118802976A_ABST
Patent Text Reader

Abstract

The invention discloses a whole vehicle communication method and system based on asymmetric memory synchronization and a vehicle, and the method comprises the steps: a coprocessor unit is newly added in a domain controller, an Ethernet controller is directly connected with a coprocessor, an Ethernet communication base is established, a memory is directly connected with a CPU and the coprocessor at the same time, and the coprocessor unit is connected with the Ethernet communication base; the memory of the domain controller performs memory allocation according to uplink and downlink data to form a service interface for an upper-layer application to call; virtual memory allocation is carried out on uplink and downlink data of the whole vehicle, and the coprocessor is used for maintaining a mapping table between a virtual memory of the whole vehicle and a physical memory in the domain controller. Based on the memory abstraction technology, the cross-domain communication is completed by using the underlying middleware, the signal time delay is reduced through a shorter communication link, the packet loss rate is reduced, each domain controller can be supported to be flexibly matched with memory chips with different capacity specifications according to the magnitude of data needing to be received and sent by the domain, and the manufacturing cost of the controller is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a whole vehicle communication method, system and vehicle, and in particular to a whole vehicle communication method, system and vehicle based on asymmetric memory synchronization. Background Art

[0002] The reliability and stability of the vehicle communication system directly determines the safety of vehicle functions and user experience. With the development of electrified smart cockpits, the number of vehicle domain controllers is increasing, and the corresponding vehicle signal scale is also rising sharply. At present, vehicle Ethernet communication is an emerging in-vehicle communication technology in the automotive industry. Vehicle Ethernet communication technology has obvious advantages in providing high bandwidth, high scalability and standardization. In conjunction with the SOA microservice architecture, the flexibility, scalability and maintainability of vehicle Ethernet communication are further utilized.

[0003] However, communication and coordination between services require additional system overhead, which will reduce system performance to a certain extent; at the same time, in SOA, the granularity of service extraction may be large, resulting in a high degree of coupling, which may affect the flexibility and maintainability of the system. Although SOA provides flexibility and scalability, it also brings technical complexity, requiring developers to have higher skills and knowledge to manage and maintain SOA systems.

[0004] Problems with existing technologies include:

[0005] The vehicle Ethernet communication based on central node routing is prone to form performance bottlenecks at the central node, which can easily cause increased communication delays and packet loss rates in high data transmission and reception scenarios;

[0006] The vehicle communication capability is overly dependent on the central node, resulting in low reliability;

[0007] The communication and coordination between SOA architecture services will cause additional system overhead and reduce system performance, especially when processing high-frequency signals and large data structure signals.

[0008] Case No.: FAW039055-C-XCN1240272 1

[0009] During the implementation of the SOA architecture, the control end and the controlled end need to agree on the service and signal granularity, communication method, data structure, signal frequency, etc., and assign an ID to each service and signal. A lot of documents and specifications will be generated in the process, which may increase the complexity of management and maintenance.

[0010] The service integration and debugging chain in the SOA architecture is long, and debugging is difficult, especially when it involves services of multiple different technologies and platforms.

[0011] Although SOA provides flexibility and scalability, it also brings technical complexity, requiring developers to have higher skills and knowledge to develop and maintain SOA systems. Therefore, existing technologies can no longer meet people's requirements and are in urgent need of improvement. Summary of the invention

[0012] The purpose of the present invention is to provide a whole vehicle communication method, system and vehicle based on asymmetric memory synchronization, so as to solve the technical problem that the whole vehicle Ethernet communication based on central node routing is prone to form a performance bottleneck at the central node. Another technical problem solved by the present invention is that the communication and coordination between SOA architecture services will cause additional system overhead and reduce the performance of the system; another technical problem solved by the present invention is the complexity of SOA architecture implementation process management and maintenance and the difficulty of scheduling.

[0013] The present invention provides the following scheme:

[0014] A vehicle communication method based on asymmetric memory synchronization is applied to a vehicle communication system based on asymmetric memory synchronization. The domain controller in the vehicle communication system includes a CPU, a memory, and an Ethernet controller, including:

[0015] A coprocessor unit is added inside the domain controller, the Ethernet controller is directly connected to the coprocessor and an Ethernet communication base is established, the Ethernet communication base is used for data interaction and read and write operations with the memory, and the memory is directly connected to the CPU and the coprocessor at the same time;

[0016] The domain controller allocates memory based on the upstream and downstream data related to the domain, encapsulates and abstracts the allocated physical memory address segments, and forms a business interface for upper-layer applications to call;

[0017] Case No.: FAW039055-C-XCN1240272 2

[0018] Allocate virtual memory for the uplink and downlink data of the whole vehicle to ensure the uniqueness of the virtual memory address, wherein the coprocessor is used to maintain a mapping table between the virtual memory of the whole vehicle and the physical memory in the domain controller;

[0019] Each domain controller is connected to the backbone network through an Ethernet routing node for vehicle-wide communication.

[0020] Furthermore, the allocated physical memory address segment is encapsulated and abstracted to form a service interface for upper-layer applications to call, specifically: the allocated physical memory address segment is encapsulated and abstracted by the ROM middleware, and the functions and services of the ROM middleware include:

[0021] Driver hardware devices: Provide a unified interface to the operating system to access hardware devices;

[0022] Perform file management: manage files and directories, and process read and write requests for files;

[0023] Establish a network protocol stack: realize network communication functions and support various network protocols;

[0024] Security performance support: Provide encryption and authentication security mechanisms to protect the security of data transmission;

[0025] Database connection pool: manages database connections to optimize database access efficiency.

[0026] Furthermore, the memory update mode includes a periodic synchronization mode, a change synchronization mode, a setting request mode, and a query request synchronization mode.

[0027] Further, in the periodic synchronization mode, the coprocessor of the domain controller periodically reads the service segment data in the memory, and unicasts / multicasts / broadcasts to the controller IP concerned with the service segment data through the Ethernet controller;

[0028] In the change synchronization mode, when the service segment data changes, the coprocessor of the controller reads the asymmetric memory service segment data and unicasts / multicasts / broadcasts the data to the controller IP concerned with the service data through the Ethernet controller.

[0029] Furthermore, in the setting request mode, the coprocessor belonging to the data source domain controller waits for the remote controller to issue a setting request. When the setting request is received, the coprocessor writes the business data segment carried in the setting request into the corresponding address segment of the memory and returns the write result to the remote controller.

[0030] Case No.: FAW039055-C-XCN1240272 3

[0031] Furthermore, in the query request mode, the coprocessor of the domain controller waits for the remote controller to send a query request. When receiving the query request, the coprocessor reads the memory field to which the requested data belongs and returns it to the remote controller.

[0032] A vehicle communication system based on asymmetric memory synchronization is used to implement a vehicle communication method based on asymmetric memory synchronization. The domain controller in the vehicle communication system includes a CPU, a memory, an Ethernet controller, and also includes:

[0033] A coprocessor collaborative working module, in which a coprocessor unit is added inside the domain controller, the Ethernet controller is directly connected to the coprocessor and an Ethernet communication base is established, the Ethernet communication base is used for data interaction and reading and writing operations with the memory, and the memory is directly connected to the CPU and the coprocessor at the same time;

[0034] The memory address segment encapsulation abstraction module allocates memory to the domain controller based on the upstream and downstream data related to the domain, encapsulates and abstracts the allocated physical memory address segment, and forms a business interface for upper-layer applications to call;

[0035] The vehicle data virtual memory allocation module performs virtual memory allocation for the vehicle uplink and downlink data to ensure the uniqueness of the virtual memory address, wherein the coprocessor is used to maintain a mapping table between the vehicle virtual memory and the physical memory in the domain controller;

[0036] The vehicle communication module, each domain controller is connected to the backbone network through the Ethernet routing node for vehicle communication.

[0037] An electronic device comprises: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the method.

[0038] A computer-readable storage medium stores a computer program executable by an electronic device. When the computer program runs on the electronic device, the electronic device executes the steps of the method.

[0039] A vehicle comprising:

[0040] Electronic device, used to implement the method described;

[0041] a processor, the processor running a program, and when the program is running, executing the steps of the method for data output from the electronic device;

[0042] The storage medium is used to store a program, and when the program is run, the steps of the method are executed for the data output from the electronic device.

[0043] Compared with the prior art, the present invention has the following advantages:

[0044] Compared with the prior art microservice architecture communication technology, the present invention has the following advantages: based on memory abstraction technology, the underlying middleware only needs to implement the memory abstract interface to complete cross-domain communication, which greatly reduces the workload of middleware development coding and the number of documents and specifications in the design process, reduces the complexity of management and maintenance, and thus shortens the development cycle.

[0045] The present invention can reduce signal delay and packet loss rate through a shorter communication link, and also reduce the manpower cost of vehicle signal debugging. The asymmetric memory design proposed by the present invention can support each domain controller to flexibly match memory chips of different capacity specifications according to the amount of data to be received and sent by the domain, thereby reducing the manufacturing cost of the controller.

[0046] In each domain controller of the present invention, the coprocessor is responsible for establishing a reliable Ethernet communication base and performing data transmission, reception and analysis, reducing the performance overhead of the main controller and improving the fluency of the operating system of each domain controller. The coprocessor builds a distributed Ethernet, which is more reliable than a centralized routing network. Once a node is offline due to an abnormality, it will only cause abnormalities in the relevant signals in the node domain, and will not cause large-scale signal failures in the entire vehicle. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the specific implementation of the present invention or the technical solution in the prior art, the following will briefly introduce the drawings required for the specific implementation or the prior art description. Obviously, the drawings described below are some implementations of the present invention. For the common technical case number in this field: FAW039055-C-XCN1240272 5

[0048] For personnel, other drawings can be obtained based on these drawings without any creative work.

[0049] Figure 1 It is a flow chart of a vehicle communication method based on asymmetric memory synchronization.

[0050] Figure 2 This is the architecture diagram of the vehicle communication system based on asymmetric memory synchronization.

[0051] Figure 3 It is a system framework diagram of an implementation method of an embodiment of the present invention in a specific application scenario.

[0052] Figure 4 It is a data transmission and reception flow chart of an implementation method of an embodiment of the present invention in a specific application scenario.

[0053] Figure 5 It is the topology diagram of the entire vehicle Ethernet.

[0054] Figure 6 It is a whole vehicle communication architecture based on asymmetric memory synchronization (whole vehicle Ethernet topology diagram).

[0055] Figure 7 It is a structural diagram of an electronic device. DETAILED DESCRIPTION

[0056] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0057] like Figure 1 The process of the vehicle communication method based on asymmetric memory synchronization is applied to a vehicle communication system based on asymmetric memory synchronization. The domain controller in the vehicle communication system includes a CPU, a memory (asymmetric memory), and an Ethernet controller, including:

[0058] Step S1, adding a coprocessor unit inside the domain controller, the Ethernet controller is directly connected to the coprocessor and an Ethernet communication base is established, the Ethernet communication base is used for data interaction and reading and writing operations with the memory, and the memory is directly connected to the CPU and the coprocessor at the same time;

[0059] A coprocessor refers to an auxiliary chip or module that works with the CPU (central processing unit) to improve the performance and functionality of a computer system. In step S1, both the CPU and the coprocessor can read and write to the memory, the Ethernet controller is directly connected to the coprocessor, and an Ethernet communication base is established. The Ethernet communication base is used to implement data interaction and can complete tasks by reading and writing to the memory, and the memory is also directly connected to the CPU and the coprocessor.

[0060] Case No.: FAW039055-C-XCN1240272 6

[0061] During the processing of step S1, both the CPU and the coprocessor can perform read and write operations on the memory. For example, in some computing tasks, if a large number of floating-point operations are required, the floating-point operations can be handed over to the coprocessor specifically responsible for floating-point operations to execute, without the need for the CPU to complete them. This can improve computing efficiency and save time.

[0062] It can be seen that by adding a coprocessor unit in step S1, data interaction and read and write operations with memory and other devices are realized through the Ethernet communication base. This design also allows the CPU and coprocessor to jointly read and write memory, thereby improving the overall system performance.

[0063] In step S2, the memory of the domain controller is allocated according to the uplink and downlink data related to the domain, and the allocated physical memory address segment is encapsulated and abstracted to form a business interface for upper-layer applications to call. In this step, the data link of memory-middleware-application is used to replace the data transmission mode of network-communication middleware-memory-business middleware-application in the traditional architecture, which reduces the number of data copies and effectively improves the link delay. The memory size of each domain controller only needs to meet the requirements of the uplink and downlink data volume required by the domain business and reserve appropriate redundancy for subsequent functional upgrades and expansions. There is no need to use chips of the same capacity, that is, to maintain the asymmetry of the memory of the domain controller. In this embodiment, the domain-related refers to the uplink and downlink data related to the domain controller.

[0064] Step S3, uniformly allocate virtual memory for the uplink and downlink data of the entire vehicle to ensure the uniqueness of the virtual memory addresses of the uplink and downlink data, wherein the coprocessor is used to maintain a mapping table between the virtual memory of the entire vehicle and the physical memory in the domain controller.

[0065] In step S3, each domain controller is connected to the backbone network through an Ethernet routing node for vehicle communication. All uplink and downlink data of the vehicle are uniformly allocated to virtual memory to ensure the uniqueness of the virtual memory address of each functional data. The mapping table between the virtual memory of the vehicle and the physical memory in the domain is maintained in each domain coprocessor.

[0066] Preferably, step S3 discloses the working principle of the vehicle communication system of the present invention, by allocating virtual memory to the uplink and downlink data of the vehicle to ensure the uniqueness of the virtual memory address of the data. Among them, the coprocessor is used to maintain the mapping table between the virtual memory of the vehicle and the physical memory in the domain controller.

[0067] Case No.: FAW039055-C-XCN1240272 7

[0068] For example, the uplink and downlink data generated by each functional module in the vehicle (such as the engine, brakes, etc.) will be uniformly allocated to virtual memory. By uniformly allocating virtual memory, the same virtual memory address conflict problem between different functional modules can be avoided.

[0069] For example, suppose there are two functional modules A and B in the vehicle, and both need to send data to the domain controller. If virtual memory allocation is not performed, functional module A and functional module B may generate the same virtual memory address, and conflicts may occur during the transmission process. By uniformly allocating virtual memory for uplink and downlink data, it can be ensured that functional module A and functional module B generate different unique addresses, and conflicts will not occur during the transmission process.

[0070] In order to realize vehicle communication, each domain controller is connected to the backbone network through an Ethernet routing node, and uses network routing technology to communicate with other domain controllers, which can realize information exchange and sharing between all functional modules on a global scale.

[0071] The working principle of the whole vehicle communication system disclosed in step S3 shows that by uniformly allocating virtual memory and using a coprocessor to maintain a mapping table, the whole vehicle communication effect is achieved while ensuring the uniformity and uniqueness of each functional data.

[0072] Preferably, the allocated physical memory address segment is encapsulated and abstracted to form a business interface for upper-layer applications to call, specifically: the allocated physical memory address segment is encapsulated and abstracted by ROM middleware, and the functions and services of the ROM middleware include:

[0073] Driver hardware devices: Provide a unified interface to the operating system to access hardware devices;

[0074] Perform file management: manage files and directories, and process read and write requests for files.

[0075] Establish a network protocol stack: implement network communication functions and support various network protocols, such as TCP / IP and other common network protocols.

[0076] Security performance support: Provide encryption and authentication security mechanisms to protect the security of data transmission.

[0077] Database connection pool: manages database connections to optimize database access efficiency.

[0078] Case No.: FAW039055-C-XCN1240272 8

[0079] Preferably, the update mode of the memory includes a periodic synchronization mode, a change synchronization mode, a setting request mode, and a query request synchronization mode.

[0080] Exemplarily, in the periodic synchronization mode, the coprocessor of the domain controller as the data source periodically reads the business segment data of the asymmetric memory, and unicasts / multicasts / broadcasts to the controller IP that pays attention to the business segment data through the Ethernet controller. For example, in some embodiments, in a vehicle communication system based on asymmetric memory synchronization, the domain controller can periodically read the data collected by the sensors of each device and send it to the monitoring system for real-time monitoring.

[0081] In the change synchronization mode, when the service segment data changes, the coprocessor in the domain of the controller to which the data source belongs reads the asymmetric memory service segment data and unicasts / multicasts / broadcasts to the controller IP concerned with the service data through the Ethernet controller. For example, in some embodiments, when the vehicle temperature sensor detects that the temperature in the vehicle has changed, the coprocessor deployed in the vehicle of the relevant vehicle device will read the temperature value collected by the temperature sensor in real time and send it to other devices on the network connected to the device responsible for adjusting the room temperature.

[0082] Exemplarily, in the setting request mode, the coprocessor to which the data source domain controller belongs waits for the remote controller to send a setting request. After receiving the setting request, the coprocessor writes the business data segment carried in the setting request into the corresponding address segment of the asymmetric memory of the local domain, and returns the writing result to the remote controller. For example, in some embodiments, the vehicle communication architecture is based on a distributed database system in the cloud, and the master node can send a setting request to the slave node to modify the content of a specific table or field.

[0083] Exemplarily, in the query request mode, the coprocessor of the domain controller as the data source waits for the remote controller to issue a query request. After receiving the query request, the coprocessor reads the memory field to which the requested data belongs and returns it to the remote controller.

[0084] For the method steps disclosed in the above embodiments, the method steps are described as a series of action combinations for the purpose of simple description, but those skilled in the art should know that the embodiments of the present invention are not limited by the described action sequence, because according to the embodiments of the present invention, some steps can be performed in other sequences or simultaneously.

[0085] The embodiments are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0086] like Figure 2 The vehicle communication system based on asymmetric memory synchronization shown is used to implement a vehicle communication method based on asymmetric memory synchronization. The domain controller in the vehicle communication system includes a CPU, a memory (asymmetric memory), and an Ethernet controller, including:

[0087] A coprocessor collaborative working module, in which a coprocessor unit is added inside the domain controller, the Ethernet controller is directly connected to the coprocessor and an Ethernet communication base is established, the Ethernet communication base is used for data interaction and reading and writing operations with the memory, and the memory is directly connected to the CPU and the coprocessor at the same time;

[0088] The memory address segment encapsulation abstraction module allocates memory to the domain controller based on the upstream and downstream data related to the domain, encapsulates and abstracts the allocated physical memory address segment, and forms a business interface for upper-layer applications to call;

[0089] The vehicle data virtual memory allocation module uniformly allocates virtual memory for the uplink and downlink data of the vehicle to ensure the uniqueness of the virtual memory addresses of the uplink and downlink data, wherein the coprocessor is used to maintain a mapping table between the virtual memory of the vehicle and the physical memory in the domain controller;

[0090] The vehicle communication module, each domain controller is connected to the backbone network through the Ethernet routing node for vehicle communication.

[0091] It is worth noting that although only some basic functional modules are disclosed in the embodiment of the present invention, it does not mean that the composition of the present system is limited to the above basic functional modules. On the contrary, what the present embodiment wants to express is that on the basis of the above basic functional modules, those skilled in the art can add one or more functional modules in combination with the prior art to form an infinite number of embodiments or technical solutions. In other words, the present system is open rather than closed. Just because the present embodiment only discloses individual basic functional modules, it cannot be considered that the protection scope of the claims of the present invention is limited to the disclosed basic functional modules. At the same time, for the convenience of description, the above device is divided into various units and modules according to their functions. Case number: FAW039055-C-XCN1240272 10

[0092] Of course, when implementing the present invention, the functions of each unit and module can be implemented in the same or multiple software and / or hardware.

[0093] The implementation methods of the system described above are merely illustrative, for example, the various functional modules, units or subsystems in the system may or may not be physically separated, or may or may not be physical units, that is, they may be located in the same place, or they may be distributed to multiple different systems and their subsystems or modules. Those skilled in the art may select some or all of the functional modules, units or subsystems according to actual needs to achieve the purpose of the embodiments of the present invention, and those of ordinary skill in the art may understand and implement the above-mentioned situations without creative work.

[0094] like Figure 3The system framework diagram of the implementation method of the embodiment of the present invention in a specific application scenario is shown. This embodiment is based on the whole vehicle communication architecture of asymmetric memory synchronization. A coprocessor unit is added inside the domain controller on the basis of the original hardware. The original Ethernet controller is directly connected to the CPU instead of the coprocessor. The original memory is directly connected to the CPU instead of the CPU. The memory is directly connected to the CPU and the coprocessor (Coprocessor). Both the CPU and the coprocessor can read and write the memory. The coprocessor and the Ethernet controller are responsible for establishing a reliable Ethernet communication base for data transmission and reception and reading and writing memory chips.

[0095] This embodiment is based on memory abstraction technology. The memory on each domain controller is allocated according to the upstream and downstream data related to the domain. The allocated physical memory address segment is encapsulated by the ROM middleware to abstract the business interface for the upper-level application to call. The memory-middleware-application data link replaces the network-communication middleware-memory-business middleware-application data transmission mode in the traditional architecture, reduces the number of data copies, and effectively improves the link delay.

[0096] The memory size of each domain controller only needs to meet the requirements of the upstream and downstream data volume required by the domain business and reserve appropriate redundancy for subsequent function upgrades and expansions. There is no need to use chips with the same capacity, that is, asymmetry. This design principle can ensure the flexible design of each domain controller and reduce chip procurement costs;

[0097] In the vehicle communication architecture of this embodiment, all uplink and downlink data of the vehicle are uniformly allocated to virtual memory to ensure the uniqueness of the virtual memory address of each functional data. The virtual case number of the vehicle is maintained in each domain coprocessor: FAW039055-C-XCN1240272 11

[0098] Memory and physical memory mapping table within the domain; each domain controller development team only needs to maintain the memory mapping table and the business abstract interface to complete the correspondence between the entire vehicle communication business, while the development team under the microservice communication architecture usually needs to jointly maintain the business correspondence such as functional service ID, signal ID, data structure, communication middleware interface, business middleware interface, etc., simplifying the number of specification documents in the design and development process, reducing the complexity of management and maintenance, reducing the number of middleware, and thus shortening the R&D cycle.

[0099] It can be seen from this embodiment that no central routing node is designed in the vehicle communication architecture, and each domain controller is connected to the backbone network as an Ethernet routing node. When one of the domain controllers goes offline, the other domain controllers can still forward data packets, which improves the robustness of the network and eliminates the scenario where large-scale functions of the central routing network are unavailable due to the loss of the central node.

[0100] The memory update of this embodiment can flexibly configure the synchronization granularity, and can encapsulate different sizes of memory into separate events according to business needs. The configurable modes of memory update include: periodic synchronization, change synchronization, setting request synchronization, query request synchronization and other modes.

[0101] In the periodic synchronization mode, the coprocessor belonging to the data source domain controller periodically reads the asymmetric memory business segment data and unicasts / multicasts / broadcasts to the controller IP that is concerned about the business data through the Ethernet controller; in the change synchronization mode, when the business segment data changes, the coprocessor belonging to the data source domain controller reads the asymmetric memory business segment data and unicasts / multicasts / broadcasts to the controller IP that is concerned about the business data through the Ethernet controller; in the setting request mode, the coprocessor belonging to the data source domain controller waits for the remote controller to issue a setting request. When the setting request is received, the coprocessor will write the data segment carried in the setting request into the corresponding address segment of the asymmetric memory of the domain and return the write result to the remote end; in the query request mode, the coprocessor belonging to the data source domain controller waits for the remote controller to issue a query request. When the query request is received, the coprocessor will read the memory field to which the requested data belongs and return it to the remote end.

[0102] like Figure 4 As shown, the data sending and receiving process of the embodiment of the present invention in a specific application scenario is as follows:

[0103] CPU reads sensor data;

[0104] The CPU controls data to be written into the memory;

[0105] Case No.: FAW039055-C-XCN1240272 12

[0106] The coprocessor reads memory data;

[0107] The coprocessor queries the memory map;

[0108] Packing virtual address code and business data;

[0109] Send to Ethernet;

[0110] He domain controller receives data;

[0111] The other domain coprocessor queries the memory mapping table;

[0112] The other domain coprocessor controls the writing of data into the memory.

[0113] like Figure 5As shown in the topology diagram of the vehicle Ethernet, this embodiment takes a certain model of electric vehicles on the market as an example. The domain controllers connected to the vehicle Ethernet are: VDC, front PDC, middle PDC, rear PDC, CSC, and TBOX. The VDC in the vehicle model serves as the vehicle gateway and is responsible for transferring business data from the other five domain controllers and the VDC itself.

[0114] like Figure 6 The vehicle communication architecture based on asymmetric memory synchronization (vehicle Ethernet topology diagram) is shown. Under this architecture, the vehicle Ethernet connects all domain controllers in a cascade manner. There is no central gateway in the entire network topology. Each domain can complete the gateway function, which improves the network robustness and prevents vehicle signal abnormalities caused by excessive load or failure of the central node.

[0115] Take the PDC-M, PDC-R, VDC, and CSC domain controllers as an example: the PDC-M domain controller deploys the electric window control service, which includes the left front, left rear, right front, and right rear window opening and closing status, opening degree, and child lock status fields. This service adopts a change synchronization strategy. The unified virtual address encoding of this service is 0x0000112A-0x00001136. The physical address of the electric window control service related fields in the PDC-M domain controller memory is 0x00000000-0x00000012. The coprocessor in the PDC-M domain records the virtual-physical address mapping: 0x0000112A-0x00001136<-->0x00000000-0x00000012;

[0116] The PDC-R domain controller does not pay attention to this business field, so no physical memory for this business field is allocated in the PDC-R domain controller memory;

[0117] Case No.: FAW039055-C-XCN1240272 13

[0118] The VDC domain controller needs to receive and set the service field, so a memory segment of the same size is allocated on the CSC domain controller memory, with a physical address of 0x000000FF-0x0000010B. The coprocessor in the VDC domain records the virtual-physical address mapping: 0x0000112A-0x00001136<-->

[0119] 0x000000FF-0x0000010B;

[0120] The CSC domain controller needs to receive and set the service field, so a memory segment of the same size is allocated on the CSC domain controller memory, and its physical address is 0x00000036-0x00000042. The coprocessor in the CSC domain records the virtual-physical address mapping: 0x0000112A-0x00001136<-->

[0121] 0x00000036-0x00000042.

[0122] After the vehicle is powered on, PDC-M reads the terminal sensor value and writes the corresponding value to the address segment 0x0000112A-0x00001136 of the local memory. The coprocessor reads the data of the address segment 0x0000112A-0x00001136 of the local memory according to the business synchronization strategy (the business is change synchronization), and obtains the corresponding business unified virtual address code 0x0000112A-0x00001136 after querying the mapping table. The coprocessor writes the virtual address code 0x0000112A-0x0 0001136 and the data stored in the address segment of 0x0000112A-0x00001136 of the local memory are packaged and multicast to the VDC and CSC domain controllers through the local Ethernet controller. After the CSC domain controller receives the data message, the coprocessor first queries the unified virtual address code 0x0000112A-0x00001136 according to the local memory mapping table, corresponding to the physical memory 0x00000036-0x00000042, and then writes the business data in the message to the corresponding address segment of the local memory. After the VDC domain controller receives the data message, the coprocessor first queries the unified virtual address code 0x0000112A-0x00001136 according to the local memory mapping table, corresponding to the physical memory 0x000000FF-0x0000010B, and then writes the business data in the message to the corresponding address segment of the local memory.

[0123] During the normal operation of the vehicle, if the driver sets the window opening status through the vehicle screen or voice assistant, the CPU on the CSC side writes the setting data to the local memory 0x00000036-0x00000042, and the coprocessor reads the data in 0x00000036-0x00000042 and packages the virtual address code 0x0000112A-0x00001136 and sends it to the VDC and PDC-M domain controllers. The VDC domain controller receives the case number: FAW039055-C-XCN1240272 14

[0124] After receiving the data, the PDC-M domain controller writes it into the domain memory and controls the terminal execution.

[0125] It can be seen from the above embodiments that the present invention performs unified virtual address encoding on business data based on memory abstraction technology, and each encoding segment abstracts a business interface. The present invention provides an asymmetric memory design, and only physical addresses need to be allocated to the business concerned by the domain controller within the domain. Each domain maintains the correspondence between business and memory through a memory mapping table. A decentralized vehicle Ethernet architecture is adopted to avoid the communication capacity bottleneck being limited to the central node, improve network robustness, and realize business data transmission and reception based on the memory synchronization method.

[0126] like Figure 7 As shown, the present invention provides a whole vehicle communication method and system based on asymmetric memory synchronization, and also provides corresponding electronic equipment, storage medium and vehicle:

[0127] An electronic device includes: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of a whole-vehicle communication method based on asymmetric memory synchronization.

[0128] A computer-readable storage medium stores a computer program executable by an electronic device. When the computer program runs on the electronic device, the electronic device executes the steps of a whole-vehicle communication method based on asymmetric memory synchronization.

[0129] A vehicle comprising:

[0130] An electronic device for implementing a vehicle-wide communication method based on asymmetric memory synchronization;

[0131] A processor, wherein the processor runs a program, and when the program runs, the processor performs steps of a vehicle communication method based on asymmetric memory synchronization for data output from the electronic device;

[0132] A storage medium is used to store a program, which, when running, executes the steps of a vehicle communication method based on asymmetric memory synchronization for data output from an electronic device.

[0133] Figure 7 Schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Figure 7 The electronic device provided in the embodiment of the present invention includes: one or more processors 710 and storage device Case No.: FAW039055-C-XCN1240272 15

[0134] The processor 710 in the electronic device may be one or more, Figure 7A processor 710 is taken as an example; the storage device 720 is used to store one or more programs; the one or more programs are executed by the one or more processors 710, so that the one or more processors 710 implement the whole vehicle communication method based on asymmetric memory synchronization as described in any one of the embodiments of the present invention.

[0135] The electronic device may further include: an input device 730 and an output device 740 .

[0136] The processor 710, storage device 720, input device 730 and output device 740 in the electronic device can be connected via a bus or other means. Figure 7 The example of connecting through bus is taken in the following.

[0137] The storage device 720 in the electronic device is a computer-readable storage medium that can be used to store one or more programs, which can be software programs, computer executable programs, and modules, such as the program instructions / modules corresponding to the vehicle communication method based on asymmetric memory synchronization provided in the embodiment of the present invention. The processor 710 executes various functional applications and data processing of the electronic device by running the software programs, instructions, and modules stored in the storage device 720, that is, the vehicle communication method based on asymmetric memory synchronization in the above method embodiment is implemented.

[0138] The storage device 720 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the storage device 720 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, or other non-volatile solid-state storage device. In some instances, the storage device 720 may further include a memory remotely arranged relative to the processor 710, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0139] The input device 730 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the electronic device. The output device 740 may include a display device such as a display screen.

[0140] Furthermore, when one or more programs included in the above-mentioned electronic device are executed by the one or more processors 710, the program executes the operations of step S1 to step S3 in the embodiment of the present application.

[0141] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0142] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, any one of the embodiments claimed in the claims can be used in any combination in the embodiments of the present invention.

[0143] In the description of this specification, the description with reference to the terms "one embodiment", "example", "specific example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0144] In addition, the technical solutions between the various embodiments of the present invention can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0145] All features disclosed in this specification, or steps in all methods or processes disclosed, except mutually exclusive features and / or steps, can be combined in any way. Any feature disclosed in this specification, unless otherwise stated, can be replaced by other equivalent or alternative features with similar purposes. That is, unless otherwise stated, each feature is only an example of a series of equivalent or similar features. Throughout the specification, the same reference numerals indicate the same elements.

[0146] Case No.: FAW039055-C-XCN1240272 17

[0147] Those skilled in the art will appreciate that the modules in the devices in the embodiments can be adaptively changed and set in one or more devices different from the embodiments. The modules or units or components in the embodiments can be combined into one module or unit or component, and in addition they can be divided into multiple submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including corresponding claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner can be combined in any combination. Unless otherwise explicitly stated, each feature disclosed in this specification (including corresponding claims, abstracts and drawings) can be replaced by an alternative feature that provides the same, equivalent or similar purpose.

[0148] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways, for example: the device embodiments described above are only schematic; for example: the division of units is only a logical function division, and there may be other division methods in actual implementation; for example, multiple units or components can be combined or integrated into another system, or some features can be ignored, or some instructions are not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms not shown.

[0149] In this application, the word "exemplary" is used to mean "used as an example, illustration, or description." Any embodiment described in this application as "exemplary" is not necessarily to be construed as being preferred or advantageous over other embodiments. The following description is given to enable any technician in the field to implement and use the present application. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present application can be implemented without using these specific details. In other instances, well-known structures and processes will not be elaborated in detail to avoid obscuring the description of the present application with unnecessary details. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present application.

[0150] Case No.: FAW039055-C-XCN1240272 18

[0151] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A vehicle communication method based on asymmetric memory synchronization is applied to a vehicle communication system based on asymmetric memory synchronization. The domain controller in the vehicle communication system includes a CPU, a memory, and an Ethernet controller. The method is characterized in that: include: A coprocessor unit is added inside the domain controller, the Ethernet controller is directly connected to the coprocessor and an Ethernet communication base is established, the Ethernet communication base is used for data interaction and read and write operations with the memory, and the memory is directly connected to the CPU and the coprocessor at the same time; The domain controller allocates memory based on the upstream and downstream data related to the domain, encapsulates and abstracts the allocated physical memory address segments, and forms a business interface for upper-layer applications to call; Allocate virtual memory for the uplink and downlink data of the whole vehicle to ensure the uniqueness of the virtual memory address, wherein the coprocessor is used to maintain a mapping table between the virtual memory of the whole vehicle and the physical memory in the domain controller; Each domain controller is connected to the backbone network through an Ethernet routing node for vehicle-wide communication.

2. The vehicle communication method based on asymmetric memory synchronization according to claim 1 is characterized in that: The allocated physical memory address segment is encapsulated and abstracted to form a service interface for upper-layer applications to call, specifically: the allocated physical memory address segment is encapsulated and abstracted by the ROM middleware, and the functions and services of the ROM middleware include: Driver hardware devices: Provide a unified interface to the operating system to access hardware devices; Perform file management: manage files and directories, and process read and write requests for files; Establish a network protocol stack: realize network communication functions and support various network protocols; Security performance support: Provide encryption and authentication security mechanisms to protect the security of data transmission; Database connection pool: manages database connections to optimize database access efficiency.

3. The vehicle communication method based on asymmetric memory synchronization according to claim 1 is characterized in that: The memory update modes include periodic synchronization mode, change synchronization mode, setting request mode, and query request synchronization mode.

4. The whole vehicle communication method based on asymmetric memory synchronization according to claim 3 is characterized in that: In the periodic synchronization mode, the coprocessor of the domain controller periodically reads the service segment data in the memory and unicasts / multicasts / broadcasts to the controller IP concerned with the service segment data through the Ethernet controller; In the change synchronization mode, when the service segment data changes, the coprocessor of the controller reads the asymmetric memory service segment data and unicasts / multicasts / broadcasts the data to the controller IP concerned with the service data through the Ethernet controller.

5. The vehicle communication method based on asymmetric memory synchronization according to claim 3 is characterized in that: In the setting request mode, the coprocessor to which the data source domain controller belongs waits for the remote controller to send a setting request. When the setting request is received, the coprocessor writes the business data segment carried in the setting request into the corresponding address segment of the memory and returns the write result to the remote controller.

6. The vehicle communication method based on asymmetric memory synchronization according to claim 3 is characterized in that: In the query request mode, the coprocessor of the domain controller waits for the remote controller to send a query request. When the query request is received, the coprocessor reads the memory field to which the requested data belongs and returns it to the remote controller.

7. A vehicle communication system based on asymmetric memory synchronization, used to implement a vehicle communication method based on asymmetric memory synchronization, the domain controller in the vehicle communication system includes a CPU, a memory, and an Ethernet controller, characterized in that: Also includes: A coprocessor collaborative working module, in which a coprocessor unit is added inside the domain controller, the Ethernet controller is directly connected to the coprocessor and an Ethernet communication base is established, the Ethernet communication base is used for data interaction and reading and writing operations with the memory, and the memory is directly connected to the CPU and the coprocessor at the same time; The memory address segment encapsulation abstraction module allocates memory to the domain controller based on the upstream and downstream data related to the domain, encapsulates and abstracts the allocated physical memory address segment, and forms a business interface for upper-layer applications to call; The vehicle data virtual memory allocation module performs virtual memory allocation for the vehicle uplink and downlink data to ensure the uniqueness of the virtual memory address, wherein the coprocessor is used to maintain a mapping table between the vehicle virtual memory and the physical memory in the domain controller; The vehicle communication module, each domain controller is connected to the backbone network through the Ethernet routing node for vehicle communication.

8. An electronic device, characterized in that: include: A processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the method described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: It stores a computer program executable by an electronic device, and when the computer program runs on the electronic device, the electronic device executes the steps of the method described in any one of claims 1 to 6.

10. A vehicle, characterized in that: include: An electronic device, configured to implement the method according to any one of claims 1 to 6; A processor, wherein the processor runs a program, and when the program runs, the processor performs the steps of the method according to any one of claims 1 to 6 on the data output from the electronic device; A storage medium for storing a program, wherein when the program is run, the program executes the steps of the method according to any one of claims 1 to 6 for data output from an electronic device.

Citation Information

Cited By

  • Communication method and device applied to vehicle and controller

    CN119892881A

  • Communication method, apparatus and controller applied to vehicle

    CN119892881B