Data exchange system and method for automobile display device based on IPC model
Through the data exchange system of the IPC model, the problems of inconsistent communication methods and strong module coupling in the existing automobile instrument system are solved, cross-platform data transmission and rapid iteration are realized, development efficiency and portability are improved, and users are simplified Realization of needs.
Patent Information
- Application Number
- CN202011533216.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-22
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2040-12-22
AI Technical Summary
The lack of a unified communication method in existing automotive instrument systems results in limited electronic architecture and strong binding of application modules to IPC models, resulting in low development efficiency, poor portability and strong coupling, making it difficult to adapt to rapid iteration and multi-platform deployment.
Through the data exchange system based on the IPC model, the application domain, tool domain, system domain and system middleware domain are divided, and universal applications and data service universal applications are used to generate a unified data service interface file and pass the IPC model universal layer And the adaptation layer code generator realizes data abstraction and adaptation, isolates the application layer and physical layer, and realizes cross-platform data transmission.
It realizes that the IPC communication model can be modified without changing other modules, improves development efficiency and portability, reduces the coupling between application modules and underlying hardware, and simplifies the implementation and iteration process of user requirements.
Smart Images

Figure CN112612466B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of automobile instruments, and in particular to a data exchange system and method of automobile display equipment based on an IPC model. Background Art
[0002] The automotive instrument system is the body data display center of the whole vehicle, and needs to interact with each ECU unit in the body. With the application and promotion of ADAS technology and L2 autonomous driving technology, the amount of information that the instrument needs to process is increasing. After a large amount of information reaches the instrument system, how to efficiently and safely flow between the modules inside the instrument system is the primary problem that must be solved. However, the electronic architecture of the instrument system is subject to chip design and manufacturing and the market, and it lags behind the demand itself. At present, there are a variety of electronic architectures in the automotive instrument software system, including a combination instrument solution based on a microcontroller, a full LCD solution based on a microcontroller plus an on-chip system microprocessor, and an intelligent cockpit solution based on a multi-core heterogeneous system microprocessor. This increase in data volume and the inconsistency of the electronic architecture have led to the existence of multiple communication methods in the existing system software, making the existing system software extremely complex and redundant, and greatly reducing the data transmission and development efficiency of each functional module. And the existing technology has the following defects:
[0003] 1. There is no unified communication method at the application module layer. Restricted by the form of the electronic architecture, it is necessary to select a specific IPC model based on the electronic architecture before using a specific IPC model interface to develop application function modules.
[0004] 2. The application module is strongly bound to the IPC model, which prevents application function developers from fully focusing on function development. The adaptation work of the IPC module is moved to the application module layer, and the rapid iteration of the application module is not utilized.
[0005] 3. Poor portability. The same business logic function cannot be quickly transferred on different platforms. Each application module must be bound to the IPC module on a specific platform.
[0006] 4. Low development efficiency. Currently, Internet development thinking has been introduced into the automotive industry. A large number of applications require rapid iteration, but the current IPC model is not suitable for this development model and is inefficient.
[0007] 5. The choice of underlying physical hardware is single and cannot adapt to multiple different physical transmission devices under the same software framework. The application module interface is also coupled with the underlying physical device. Summary of the invention
[0008] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a data exchange method for an automobile display device based on an IPC model, divide and abstract the entire IPC general model, convert customer needs into logical instructions, and quickly respond from data input to processing conversion to achieve customer needs.
[0009] The following technical scheme is used to achieve the data exchange system of automobile display devices based on the IPC model. The IPC model includes application domain, tool domain, system domain, and system middleware domain. The application domain is connected to the system middleware domain through the tool domain. The software modules of the system include data service general application and general application.
[0010] The application domain includes common application programs and data service definition files;
[0011] The tool domain includes IPC data service interface files, IPC data service code generator, IPC model general layer code generator and IPC model adaptation layer code generator;
[0012] The system domain includes the adaptation layer configuration file and the IPC physical layer;
[0013] The system middle domain includes the IPC model general layer, the IPC model adaptation layer and the device IPC protocol stack;
[0014] The user's needs are generated into corresponding files, and each file is sent to the system's intermediate domain for processing through each generator, and finally executed through a general application to meet the user's needs.
[0015] Preferably, the data service universal application obtains data services through a connection module, and organizes the data services into a unified format and sends them to the IPC model universal layer, wherein the connection module includes connecting the universal application to the IPC model universal layer via Ethernet, MOST and CAN buses.
[0016] Preferably, the retrieval tag of each of the IPC data service definition files is defined as the function number of the file, the IPC model general layer code generator filters out the IPC data service interface files with the function number as the retrieval tag, and multiple IPC service definition files with specific function numbers are collected as a structure array and stored in the IPC data service interface file.
[0017] Preferably, the data service definition file is processed into an IPC data service interface file by an IPC data service code generator, and the IPC model adaptation layer code generator completes the parameter configuration of the IPC physical layer through the adaptation layer configuration file.
[0018] Preferably, in the system domain, a protocol stack is matched in a device IPC protocol stack set, and at the same time, a corresponding configuration file is selected from an adaptation layer configuration file set, and an IPC model adaptation layer code adapted to the device IPC protocol stack is generated by calling an IPC model adaptation layer code generator.
[0019] Preferably, the IPC model is pre-stored in the display device of the automobile, comprising the following steps:
[0020] Step 1: The data service general application converts the customer's requirements into data services, matches the data services into IPC data service definition files in a unified format, and outputs the IPC data service definition files into IPC data service interface files through an IPC data service code generator.
[0021] Step 2: Use the IPC model general layer code generator to screen whether the IPC data service interface files in the general layer are all files with function codes as retrieval tags. If so, go to step 3; if not, go to step 4;
[0022] Step 3: Convert the filtered IPC data service interface file into the specific code for circulation in the general layer, and send it to the adaptation layer to execute step 5;
[0023] Step 4: Discard the files that do not use the function code as the search tag and execute step 1;
[0024] Step 5: Select a matching protocol stack from the device IPC protocol stack set, and select a matching configuration file from the adaptation layer configuration file set, and then call the matching generator in the IPC model adaptation layer code generator set to generate an IPC model adaptation layer code that can be adapted to the device IPC protocol stack, and then realize customer needs through a general application, where the general application is the client of the data service application.
[0025] Preferably, the data service universal application obtains data services through a connection module, and organizes the data services into a unified format and sends them to the IPC model universal layer, wherein the connection module includes connecting the universal application to the IPC model universal layer via Ethernet, MOST and CAN buses.
[0026] Preferably, the format of the data service definition file is an EXCEL file.
[0027] Preferably, the device IPC protocol stack is a communication mode, and the communication mode includes SPI communication, UART communication and shared memory communication.
[0028] The beneficial effects of the present invention are:
[0029] (1) Compared with the existing technology, when customer needs change, there is no need to change other modules, only the general application in the IPC communication model needs to be modified; BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 It is a working principle diagram of the present invention;
[0031] Figure 2 A working principle diagram of the general layer of the IPC model of an embodiment of the present invention;
[0032] Figure 3 A diagram showing a data service definition file according to an embodiment of the present invention;
[0033] Figure 4 A schematic diagram of a device IPC protocol stack according to an embodiment of the present invention;
[0034] Figure 5 An implementation diagram of an embodiment of the present invention when modified according to customer needs;
[0035] Figure 6 This is an implementation diagram of the IPC physical layer modification of an embodiment of the present invention. DETAILED DESCRIPTION
[0036] Below in conjunction with the appended Figures 1 to 6 , clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other implementations obtained by ordinary technicians in this field without creative work.
[0037] In the description of the present invention, it should be understood that the terms "counterclockwise", "clockwise", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating directions or positional relationships, are based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention, and do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as a limitation on the present invention.
[0038] Example:
[0039] The data exchange system of the automobile display device is based on the IPC model. The IPC model includes the application domain, tool domain, system domain, and system middleware domain. The application domain is connected to the system middleware domain through the tool domain. The software modules of the system include data service general application and general application.
[0040] The application domain includes common application programs and data service definition files;
[0041] The tool domain includes IPC data service interface files, IPC data service code generator, IPC model general layer code generator and IPC model adaptation layer code generator;
[0042] The system domain includes the adaptation layer configuration file and the IPC physical layer;
[0043] The system middle domain includes the IPC model general layer, the IPC model adaptation layer and the device IPC protocol stack;
[0044] The user's needs are generated into corresponding files, and each file is sent to the system's intermediate domain for processing through each generator, and finally executed through a general application to meet the user's needs.
[0045] It is worth noting that the data service general application obtains data services through the connection module, and organizes the data services into a unified format and sends them to the IPC model general layer, wherein the connection module includes connecting the general application to the IPC model general layer through Ethernet, MOST and CAN buses.
[0046] It is worth noting that the retrieval tag of each IPC data service definition file is defined as the function number of the file, the IPC model general layer code generator filters out the IPC data service interface files with the function number as the retrieval tag, and multiple IPC service definition files with specific function numbers are collected as a structure array and stored in the IPC data service interface file.
[0047] It is worth noting that the data service definition file is processed into an IPC data service interface file by the IPC data service code generator, and the IPC model adaptation layer code generator completes the parameter configuration of the IPC physical layer through the adaptation layer configuration file.
[0048] It is worth noting that in the system domain, the protocol stack is matched in the device IPC protocol stack set, and at the same time, the corresponding configuration file is selected from the adaptation layer configuration file set, and the IPC model adaptation layer code adapted to the device IPC protocol stack is generated by calling the IPC model adaptation layer code generator.
[0049] It is worth noting that the main developer of the application domain is the business logic application development engineer, whose main task is to handle the user logic requirements of the user, which is unrelated to the specific IPC physical layer and the device IPC protocol stack. It is isolated from the specific IPC physical layer and the device protocol stack by calling the IPC model general layer in the system middleware domain. As long as the user's data type and logic remain unchanged, the application domain does not need to be changed, even if the system engineer modifies the IPC physical layer and the device protocol stack.
[0050] It is worth mentioning that the data service general application is the main body of the data-centric architecture, which provides the information source for other models in the entire software architecture. The real source of this information can be various external ECUs through the body bus such as CAN, Ethernet, MOST, etc. It can also come from a virtual bus (which can be applied to simulation tests). This information is abstracted into a unified message type through the data service general application and forwarded to each general application. This module only acts as a data provider and is only responsible for the validity of the data. The specific data logic is abstracted into the general application. Due to the variety of external data sources, there can be more than one instance of the data service general application, and multiple external data sources can be abstracted into one data service application.
[0051] It is worth noting that the general application is the client of the data service application, the consumer of data, and the implementer of user logic. There may be multiple general applications in a software system, which obtain different data from the data service general application and complete specific tasks according to the user-defined logic functions.
[0052] It is worth noting that by abstracting the application module layer into data service general applications and general applications, the data part and the logic part of user needs are separated, achieving minimal modification after changes in user needs.
[0053] It is worth noting that the development process of the application domain is as shown in the following figure:
[0054] 111. It is necessary to manually convert user requirements into data service definition files. Since user requirements are defined in various formats, such as PDF, WORD, and EXCEL, they cannot be completed by tools.
[0055] 222. Use the IPC data service code generator provided by the tool domain to convert the data service definition file into an IPC data service interface file, which defines the validity of the data and will be used in the general layer of the IPC model.
[0056] 333. Use the IPC model common layer code generator provided by the tool domain to convert the IPC data service interface file into an IPC data service interface implementation file, which will also be used in the IPC model common layer.
[0057] 444. Use the data service general application provided in the system middleware domain to load the IPC data service interface file to implement the verification and distribution of the defined data.
[0058] 5. General applications use IPC data service interface files to obtain available data types and implement user logic requirements.
[0059] In the generated IPC data service interface file, the defined function number will be used as the legal retrieval tag of the message. Any message not defined in the data service definition file does not have a legal retrieval tag and will not appear in the generated IPC data service interface file. In the IPC model general layer, each message will be checked to see if it has a legal retrieval tag. Any illegal tags will be discarded. Each message is ultimately abstracted into a structure, and all message collections are abstracted into a structure array. These abstract message collections are placed in the IPC data service interface file.
[0060] It is worth noting that the middle domain of the system:
[0061] The system middleware domain is the work that system middleware engineers need to complete, which is mainly divided into the following four modules:
[0062] IPC Model General Layer
[0063] The IPC model general layer is the interface that the application model layer can access. It has a unified and fixed interface. Its specific content only comes from the IPC data service interface file and the IPC data service interface implementation file.
[0064] IPC model adaptation layer
[0065] To support a variety of different device IPC protocol stacks, the IPC model adaptation layer designs a unified device IPC protocol stack loader, selects a specific device IPC protocol stack according to the adaptation layer configuration file, and configures the parameters of the IPC physical layer.
[0066] Device IPC protocol stack
[0067] The device IPC protocol stack is a specific communication method, which can be SPI-based communication, UART-based or network-based communication, or directly using shared memory communication.
[0068] Data Services Generic Application
[0069] It is worth mentioning that the tool domain contains three categories of tool sets, which perform different functions, as follows:
[0070] IPC data service code generator: This tool is used by application engineers. Its input file is the data service definition file, and its output is the IPC data service interface file, which contains all data sets with function numbers as retrieval tags. It is a data middleware file and is not related to a specific language. If you want to form an interface file that can be used in the IPC model general layer, you need to use the IPC model general layer code generator.
[0071] IPC model general layer code generator: This tool takes the IPC data service interface file as input. The tool does not define any data, but only focuses on how to implement the code that can be used in the IPC model general layer in a specific language using a data set with a function number as a retrieval tag.
[0072] IPC model adaptation layer code generator set: This is a set of generators that has nothing to do with the application layer code. It only focuses on how the device IPC protocol stack is bound to the IPC model common layer and completes the parameter configuration of the IPC physical layer according to the adaptation layer configuration file.
[0073] It is worth noting that the system domain:
[0074] The system domain is managed and configured by the system engineer, who mainly selects specific hardware resources based on the system resources. After selecting a hardware resource, the system engineer selects a matching protocol stack from the device IPC protocol stack set, and selects a matching configuration file from the adaptation layer configuration file set, and then calls the matching generator in the IPC model adaptation layer code generator set to generate the IPC model adaptation layer code that can adapt to the device IPC protocol stack.
[0075] It is worth mentioning that please refer to Figure 4 The following figure is a commonly used architecture model. When user requirements change, since there is no abstraction of user data requirements and user logic requirements at the application layer, the data service and application program need to be modified at the same time, increasing the risk of modification, increasing modification time, and being inefficient. If the IPC physical layer needs to be modified, since there is no general layer added to the application layer and IPC communication layer, everything from the IPC protocol stack to the data service and application program will be modified. At the same time, such an application is strongly bound to the underlying IPC and cannot be transferred. Please refer to Figure 5 .
[0076] Embodiment 2:
[0077] The IPC model is pre-stored in the car's display device. The user's specific use includes the following steps:
[0078] Step 1: The data service general application converts the customer's requirements into data services, matches the data services into IPC data service definition files in a unified format, and outputs the IPC data service definition files into IPC data service interface files through an IPC data service code generator.
[0079] Step 2: Use the IPC model general layer code generator to screen whether the IPC data service interface files in the general layer are all files with function codes as retrieval tags. If so, go to step 3; if not, go to step 4;
[0080] Step 3: Convert the filtered IPC data service interface file into the specific code for circulation in the general layer, and send it to the adaptation layer to execute step 5;
[0081] Step 4: Discard the files that do not use the function code as the search tag and execute step 1;
[0082] Step 5: Select a matching protocol stack from the device IPC protocol stack set, and select a matching configuration file from the adaptation layer configuration file set, and then call the matching generator in the IPC model adaptation layer code generator set to generate an IPC model adaptation layer code that can be adapted to the device IPC protocol stack, and then realize customer needs through a general application, where the general application is the client of the data service application.
[0083] It is worth noting that the data service general application obtains data services through the connection module, and organizes the data services into a unified format and sends them to the IPC model general layer, wherein the connection module includes connecting the general application to the IPC model general layer through Ethernet, MOST and CAN buses.
[0084] It is worth noting that the format of the data service definition file is an EXCEL file.
[0085] It is worth noting that the device IPC protocol stack is a communication method, and the communication methods include SPI communication, UART communication and shared memory communication.
[0086] To sum up, the automobile control system is optimized into 4 sections, and the various types of signals received are converted into the same format for storage and processing, so as to realize the conversion of user needs into electrical signals and then realize customer needs.
Claims
1. A data exchange system for automobile display devices based on an IPC model, characterized in that: The IPC model includes application domain, tool domain, system domain, and system middleware domain. The application domain is connected to the system middleware domain through the tool domain. The system software modules include general data service applications and general applications. The application domain includes common application programs and data service definition files; The tool domain includes IPC data service interface files, IPC data service code generator, IPC model general layer code generator and IPC model adaptation layer code generator; The system domain includes the adaptation layer configuration file and the IPC physical layer; The system middle domain includes the IPC model general layer, the IPC model adaptation layer and the device IPC protocol stack; Generate corresponding files based on user requirements, and send each file to the system intermediate domain for processing through each generator, and finally execute it through the general application to meet the user's needs; The IPC model is pre-stored in the car's display device. The user's specific use includes the following steps: Step 1: The general data service application converts the customer's requirements into data services by matching the data services into IPC data service definition files in a unified format and outputting the IPC data service definition files into IPC data service interface files through the IPC data service code generator. Step 2: Use the IPC model general layer code generator to screen whether the IPC data service interface files in the general layer are all files with function codes as retrieval tags. If so, go to step 3; if not, go to step 4; Step 3: Convert the filtered IPC data service interface file into the specific code for circulation in the general layer, and send it to the adaptation layer to execute step 5; Step 4: Discard the files that do not use the function code as the search tag and execute step 1; Step 5: Select a matching protocol stack from the device IPC protocol stack set, and select a matching configuration file from the adaptation layer configuration file set, and then call the matching generator in the IPC model adaptation layer code generator set to generate an IPC model adaptation layer code that can be adapted to the device IPC protocol stack, and then realize customer needs through a general application, where the general application is the client of the data service application.
2. The data exchange system for automobile display devices based on the IPC model according to claim 1, characterized in that: The general data service application obtains data services through the connection module, and organizes the data services into a unified format and sends them to the IPC model general layer, wherein the connection module includes connecting the general application to the IPC model general layer through Ethernet, MOST and CAN buses.
3. The data exchange system of the automobile display device based on the IPC model according to claim 2 is characterized in that: The retrieval tag of each IPC data service definition file is defined as the function number of the file, the IPC model general layer code generator filters out the IPC data service interface files with the function number as the retrieval tag, and multiple IPC service definition files with specific function numbers are collected as a structure array and stored in the IPC data service interface file.
4. The data exchange system for automobile display devices based on the IPC model according to claim 3 is characterized in that: The data service definition file is processed into an IPC data service interface file by an IPC data service code generator, and the IPC model adaptation layer code generator completes the parameter configuration of the IPC physical layer through the adaptation layer configuration file.
5. The data exchange system for automobile display devices based on the IPC model according to claim 4 is characterized in that: In the system domain, a protocol stack is matched in a device IPC protocol stack set, and at the same time, a corresponding configuration file is selected from an adaptation layer configuration file set, and an IPC model adaptation layer code adapted to the device IPC protocol stack is generated by calling an IPC model adaptation layer code generator.
6. The data exchange system for automobile display devices based on the IPC model according to claim 5, characterized in that: The general data service application obtains data services through the connection module, and organizes the data services into a unified format and sends them to the IPC model general layer, wherein the connection module includes connecting the general application to the IPC model general layer through Ethernet, MOST and CAN buses.
7. The data exchange system of the automobile display device based on the IPC model according to claim 6 is characterized in that: The format of the data service definition file is an EXCEL file.
8. The data exchange system for automobile display devices based on the IPC model according to claim 7, characterized in that: The device IPC protocol stack is a communication method, and the communication method includes SPI communication, UART communication and shared memory communication.
Citation Information
Patent Citations
Intelligent data ingestion system and method for governance and security
AU2019204976A1
General transmission protocol frame aimed at CORBA middleware, communication system and method
CN105162858A
Business abstraction and multi-engine scheduling-based data summarization method and system
CN108268529A
System and method for performing active secondary editing of executable program of VR / AR / MR device
CN110096268A
Micro-service code generation system and method based on business domain data model library
CN111488145A
