An instrument display method and system based on data adaptation platform
By using a data adaptation platform approach, the communication protocols and data structures of multi-source data are adapted into a universal protocol, which solves the problem of high development and maintenance costs for vehicle HMI software, achieves adaptation to different vehicle models and module independence, and reduces development and maintenance costs.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- WUHAN KOTEI INFORMATICS
- Filing Date
- 2023-12-14
- Publication Date
- 2026-06-16
AI Technical Summary
Due to different data service providers, in-vehicle HMI software suffers from inconsistent communication protocols and data structures, which increases development and maintenance costs and lacks scalability and module independence.
By adopting a data adaptation platform approach, the original communication protocols and data structures of multi-source data are adapted into general protocols and data structures, and unified parsing and display interface updates are achieved through an adaptation layer, a logic layer, and a display layer.
It achieves unified parsing of communication protocols and data structures from different data service providers, supports adaptation to multiple vehicle models, saves software development and maintenance costs, and improves the independence and scalability of modules.
Smart Images

Figure CN117734601B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of automotive software technology, and more specifically, to an instrument display method and system based on a data adaptation platform, as well as an electronic device and storage medium. Background Technology
[0002] Currently, due to differences among data service providers, in-vehicle infotainment (HMI) software generally suffers from the following problems: 1. For the same project but different vehicle models, different data service providers lead to different communication protocols, requiring the creation of separate code repositories for development. These different communication protocols, when applied to logic modules, prevent the modules from being reused. 2. When the data structures of different data service providers change, the HMI's data structure cache and logic must also be updated synchronously, resulting in the inability to reuse data structures and general logic, increasing maintenance costs. 3. Functional modules lack scalability and clear independence. Currently, all received data is uniformly recorded in a single data management singleton, and functional module division is mainly based on data structure. Different functional modules use this singleton to retrieve data for logical operations, resulting in deep coupling. Adding, deleting, or modifying modules also requires maintaining this data management singleton, as well as other modules related to this module's data, further increasing maintenance costs.
[0003] Therefore, it is necessary to study a method for developing multi-model HMIs that can adapt to various data service providers in order to save system maintenance costs. Summary of the Invention
[0004] This invention addresses the technical problems existing in the prior art by providing an instrument display method and system based on a data adaptation platform, thereby saving software development and maintenance costs.
[0005] According to a first aspect of the present invention, an instrument display method based on a data adaptation platform is provided, comprising:
[0006] Receive multi-source data, adapt the original communication protocol and data structure of the multi-source data into a general protocol and data structure, and obtain the assembled and adapted message;
[0007] Execute the logic corresponding to the assembly and adaptation messages;
[0008] The data is cached based on the execution results, and the instrument display interface is updated.
[0009] Based on the above technical solution, the present invention can also be improved as follows.
[0010] Optionally, receiving multi-source data includes:
[0011] Read the data server configuration corresponding to each data source, connect to the corresponding data server according to the communication method in the read data server configuration, and subscribe to the data structure messages corresponding to the original communication protocol of the connected data server.
[0012] Optionally, the original communication protocol and data structure of the received multi-source data are adapted into a general protocol and data structure to obtain an assembled and adapted message, including:
[0013] The system parses the raw communication protocols and data structure messages received from various data servers, and assembles and adapts the parsed data into messages with the corresponding data structure of the general protocol according to the functional configuration of the requester, so as to obtain the assembled and adapted messages.
[0014] Optionally, the logic corresponding to the execution assembly and adaptation message, which caches data and updates the instrument display interface based on the execution result, includes:
[0015] Receive the assembled and adapted message and perform secondary parsing. Use the parsed data to execute the corresponding logic and cache the execution result data. When the data is updated or there is an operation instruction in the logic, refresh the corresponding instrument display interface.
[0016] According to a second aspect of the present invention, an instrument display system based on a data adaptation platform is provided, comprising:
[0017] An adaptation layer is used to receive multi-source data and adapt the original communication protocol and data structure of the multi-source data into a general protocol and data structure to obtain an assembled and adapted message.
[0018] The logic layer is used to execute the logic corresponding to the assembled and adapted messages, and to package the execution results.
[0019] The display layer is used to cache data and update the instrument display interface based on the execution results.
[0020] Optionally, the adaptation layer includes several communication modules. The adaptation layer reads the data server configuration of each data source, and calls the corresponding communication module to connect to the corresponding data server according to the read data server configuration, and subscribes to the messages of the original communication protocol corresponding to the data structure of the connected data server.
[0021] Optionally, the adaptation layer also includes multiple independent adaptation modules. Each adaptation module is divided according to the functional configuration of the demand side and subscribes to the data structure messages of the original communication protocol of the corresponding data server.
[0022] The adaptation module is used to parse the original communication protocols and data structures received from various data servers, and assemble the parsed information into a message with a data structure corresponding to the general protocol according to the functional configuration of the requester.
[0023] Optionally, the display layer includes several display modules, which are divided according to the functional configuration of the demander. The display modules are used to receive the packaged execution results and perform secondary parsing, cache data according to the secondary parsing results, and refresh the corresponding instrument display interface when the data is updated or there is an operation command.
[0024] According to a third aspect of the present invention, an electronic device is provided, including a memory and a processor, wherein the processor is configured to implement the steps of the above-described instrument display method based on a data adaptation platform when executing a computer management program stored in the memory.
[0025] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, on which a computer management program is stored, wherein when the computer management program is executed by a processor, the steps of the above-described instrument display method based on a data adaptation platform are implemented.
[0026] This invention provides an instrument display method, system, electronic device, and storage medium based on a data adaptation platform. It supports the unified parsing of communication protocols and data structures from different data service providers into a set of custom universal protocols and data structures after access, which can be adapted to various vehicle models and save software development and maintenance costs. Attached Figure Description
[0027] Figure 1 A flowchart of an instrument display method based on a data adaptation platform provided by the present invention;
[0028] Figure 2 A schematic diagram of a data adaptation platform-based instrument display system provided in a certain embodiment of the present invention;
[0029] Figure 3 A schematic diagram illustrating the process of adapting multi-source data to a general protocol and its data type, as provided in a certain embodiment of the present invention;
[0030] Figure 4 A schematic diagram of the hardware structure of an electronic device provided by the present invention;
[0031] Figure 5 This is a schematic diagram of the hardware structure of a computer-readable storage medium provided by the present invention. Detailed Implementation
[0032] The specific embodiments of the present invention will be described in further detail below with reference to the accompanying drawings and examples. The following examples are for illustrative purposes only and are not intended to limit the scope of the invention.
[0033] Figure 1 A flowchart of an instrument display method based on a data adaptation platform provided by the present invention is shown below. Figure 1 As shown, the method includes:
[0034] Receive multi-source data, adapt the original communication protocol and data structure of the multi-source data into a general protocol and data structure, and obtain the assembled and adapted message;
[0035] Execute the logic corresponding to the assembled and adapted messages, and package the execution results;
[0036] The data is cached based on the packaged execution results, and the instrument display interface is updated.
[0037] This invention provides an instrument display method based on a data adaptation platform, which supports the unified parsing of communication protocols and data structures from different data service providers into a set of custom general protocols and data structures (such as HmiMsg messages). This method can be adapted to various vehicle models, saving software development and maintenance costs.
[0038] like Figure 2 The figure shown is a schematic diagram of an instrument display system based on a data adaptation platform according to a certain embodiment of the present invention. Figure 1 The method shown can be used Figure 2 The system implementation is shown. (As shown...) Figure 2 As shown, this embodiment provides an instrument display system based on a data adaptation platform, comprising:
[0039] An adaptation layer is used to receive multi-source data and adapt the original communication protocol and data structure of the multi-source data into a general protocol and data structure to obtain an assembled and adapted message.
[0040] The logic layer is used to execute the logic corresponding to the assembled and adapted messages, and to package the execution results.
[0041] The display layer is used to cache data and update the instrument display interface based on the packaged execution results.
[0042] Understandably, given the deficiencies in the background technology, this invention proposes an instrument display method and system based on a data adaptation platform. This invention enables different vehicle models within the same project to be developed using the same code repository, reusing basic and logic code, thus saving manpower costs in the development and maintenance processes. It also supports the unified parsing of communication protocols and data structures from different data service providers into a single custom universal protocol and data structure, adapting to various vehicle models.
[0043] In one possible embodiment, combining Figure 1 and Figure 2 As shown, the adaptation layer includes several communication modules. The adaptation layer reads the data server configuration of each data source, and calls the corresponding communication module to connect to the corresponding data server according to the read data server configuration, and subscribes to the messages of the original communication protocol corresponding to the data structure of the connected data server.
[0044] In a certain implementation scenario, such as Figure 1 and Figure 2 As shown, the adapter layer connects to data service provider A via the Fdbus Connect communication module and communicates via the Fdbus protocol to subscribe to C++ structure messages; the adapter layer connects to data service provider X via the WebSocket Connect communication module and communicates via the WebSocket protocol to subscribe to JSON messages; the adapter layer connects to data service provider B via the Socket Connect communication module and communicates via the Socket protocol to subscribe to Protobuff messages.
[0045] It is understandable that by using the receiving modules corresponding to various communication protocols, multi-source data from different data service providers can be obtained.
[0046] In one possible embodiment, the adaptation layer further includes multiple independent adaptation modules, each of which is divided according to the functional configuration corresponding to the demand side and subscribes to the data structure messages of the corresponding data server's original communication protocol.
[0047] The adaptation module is used to parse the original communication protocols and data structures of the data sources received from various data servers, and assemble the parsed information into a message with a general protocol data structure according to the functional configuration of the requester, so as to obtain the assembled adaptation message.
[0048] like Figure 2 As shown, to simplify the explanation, two adapter modules are used as examples. Figure 2Each adaptation module contains three parsing modules (parsing module A, parsing module B, and parsing module C). Parsing module A (module A1 in the diagram) in the first adaptation module parses the data provided by data service provider A, and parsing module C (module C1 in the diagram) parses the data provided by data service provider X. The parsed data from data service provider A and data service provider X are then assembled into an HmiMsg message with the corresponding data structure of the general protocol. Similarly, parsing module A (module A2 in the diagram) in the second adaptation module parses the data provided by data service provider X, and parsing module B (module B2 in the diagram) in the first adaptation module parses the data provided by data service provider B. The parsed data from data service provider X and data service provider B are then assembled into an HmiMsg message with the corresponding data structure of the general protocol.
[0049] like Figure 3 The diagram illustrates the process of uniformly adapting data structures from multiple suppliers in one embodiment. The adaptation layer receives multi-source data from multiple suppliers, and after adaptation, it ultimately obtains information about the general protocol and its data structure.
[0050] Figure 2 The two adaptation modules correspond to two different functional configurations. Of course, the adaptation layer may contain more adaptation modules, each with different functional configurations, but their basic working principles are the same, and will not be elaborated here. The HmiMsg message flow, which corresponds to the general protocol data structure assembled by the various adaptation modules, reaches the logic layer. The logic layer then performs the corresponding logical operations based on the received HmiMsg message, such as playing audio or updating the screen.
[0051] In one possible embodiment, the display layer includes several display modules, which are divided according to the functional configuration corresponding to the demand side. The display modules are used to receive the packaged execution results and perform secondary parsing, cache data according to the secondary parsing results, and refresh the corresponding instrument display interface when the data is updated or there is an operation instruction.
[0052] like Figure 2As shown, this embodiment of the invention uses Unity as the display layer. Its main function is to receive and parse messages from the logic layer, cache data, and refresh the corresponding interface when data is updated or when there are operation instructions. C++ is used as the logic layer and adaptation layer. The adaptation layer receives unique data from different vendors and adapts it into a custom general module protocol and data structure for use by the logic layer. The Unity display layer and the C++ logic and adaptation layers are divided into multiple independent hierarchical folders and module code files according to functional configurations, maintaining independence and scalability. In subsequent expansions, the independence and scalability of functional modules can be supported. The definition of the module's logic and data structure can be a separate file, which can be handled by a dedicated module developer, with clear division of labor.
[0053] The following is a comparison of the HMI software development for different vehicle models before and after the implementation of the solution.
[0054] Before using the solution of this invention: Developing HMI software for different car models requires creating multiple Git repositories, which are connected to the communication protocols and data structures of different data service providers. The unique data structures and logical coupling of the providers make the code non-reusable, making the development and maintenance of code for each car model difficult, and the horizontal scalability between different projects is poor.
[0055] After using the solution of this invention: to develop HMI software for different car models, only one Git repository needs to be created. The C++ adaptation layer adapts the communication protocols and data structures of different data service providers into custom general module protocols and data structures for use by the logic layer. The logic layer and the display layer can be reused and extended, and can also be horizontally deployed between different projects. Developers only need to focus on the modules they are responsible for, and the main workload is in the adaptation layer. The development and maintenance difficulty of each car model is low.
[0056] Using the solution of this invention simplifies the software development process and significantly reduces the human resource costs of software development and subsequent maintenance.
[0057] Please see Figure 4 , Figure 4 This is a schematic diagram illustrating an embodiment of the electronic device provided in this invention. For example... Figure 4 As shown, this embodiment of the invention provides an electronic device 400, including a memory 410, a processor 420, and a computer program 411 stored in the memory 410 and executable on the processor 420. When the processor 420 executes the computer program 411, it performs the following steps:
[0058] Receive multi-source data, adapt the original communication protocol and data structure of the multi-source data into a general protocol and data structure, and obtain the assembled and adapted message;
[0059] Execute the logic corresponding to the assembled and adapted messages, and package the execution results;
[0060] The data is cached based on the packaged execution results, and the instrument display interface is updated.
[0061] Please see Figure 5 , Figure 5 This is a schematic diagram illustrating an embodiment of a computer-readable storage medium provided by the present invention. (See diagram below.) Figure 5 As shown, this embodiment provides a computer-readable storage medium 500 on which a computer program 511 is stored. When the computer program 511 is executed by a processor, it performs the following steps:
[0062] Receive multi-source data, adapt the original communication protocol and data structure of the multi-source data into a general protocol and data structure, and obtain the assembled and adapted message;
[0063] Execute the logic corresponding to the assembled and adapted messages, and package the execution results;
[0064] The data is cached based on the packaged execution results, and the instrument display interface is updated.
[0065] This invention provides an instrument display method, system, electronic device, and storage medium based on a data adaptation platform. This allows different vehicle models within the same project to be developed using the same code repository, reusing basic and logic code, thus saving development and maintenance manpower costs. It supports the unified parsing of communication protocols and data structures from different data service providers into a single custom universal protocol and data structure, adapting to the vast majority of vehicle models. It also supports the independence and scalability of functional modules; the logic and data structure definitions of each module are in separate files, which can be handled by dedicated module developers, ensuring clear division of labor.
[0066] It should be noted that the descriptions of each embodiment in the above embodiments have different focuses. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0067] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0068] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0069] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0070] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0071] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including both the preferred embodiments and all changes and modifications falling within the scope of the invention.
[0072] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.
Claims
1. A method for instrument display based on a data adaptation platform, characterized in that, include: Receive multi-source data, adapt the original communication protocol and data structure of the multi-source data into a general protocol and data structure, and obtain the assembled and adapted message; Execute the logic corresponding to the assembly and adaptation messages; Based on the execution results, cache the data and update the instrument display interface; The receiving of multi-source data includes: Read the data server configuration corresponding to each data source, connect to the corresponding data server according to the communication method in the read data server configuration, and subscribe to the data structure message corresponding to the original communication protocol of the connected data server. The logic corresponding to the execution assembly and adaptation message includes data caching and updating the instrument display interface based on the execution result, including: Receive the assembled and adapted message and perform secondary parsing. Use the parsed data to execute the corresponding logic and cache the execution result data. When the data is updated or there is an operation instruction in the logic, refresh the corresponding instrument display interface.
2. The instrument display method based on data adaptation platform as described in claim 1, characterized in that, The original communication protocol and data structure of the received multi-source data are adapted into a general protocol and data structure to obtain the assembled and adapted message, including: The system parses the raw communication protocols and data structure messages received from various data servers, and assembles and adapts the parsed data into messages with the corresponding data structure of the general protocol according to the functional configuration of the requester, so as to obtain the assembled and adapted messages.
3. An instrument display system based on a data adaptation platform, characterized in that, include: An adaptation layer is used to receive multi-source data and adapt the original communication protocol and data structure of the multi-source data into a general protocol and data structure to obtain an assembled and adapted message. The logic layer is used to execute the logic corresponding to the assembled and adapted messages; The display layer is used to cache data and update the instrument display interface based on the execution results; The adaptation layer includes several communication modules. The adaptation layer reads the data server configuration of each data source, calls the corresponding communication module to connect to the corresponding data server according to the read data server configuration, and subscribes to the messages of the original communication protocol corresponding to the data structure of the connected data server. The display layer includes several display modules, which are divided according to the functional configuration of the demander. The display modules are used to receive the packaged execution results and perform secondary parsing, cache data based on the secondary parsing results, and refresh the corresponding instrument display interface when the data is updated or there is an operation command.
4. The instrument display system based on a data adaptation platform according to claim 3, characterized in that, The adaptation layer also includes multiple independent adaptation modules. Each adaptation module is divided according to the functional configuration of the demand side and subscribes to the data structure messages of the original communication protocol of the corresponding data server. The adaptation module is used to parse the original communication protocols and data structures received from various data servers, and assemble the parsed information into a message with a data structure corresponding to the general protocol according to the functional configuration of the requester.
5. An electronic device, characterized in that, It includes a memory and a processor, wherein the processor is used to execute computer management programs stored in the memory to implement the steps of the instrument display method based on data adaptation platform as described in any one of claims 1-2.
6. A computer-readable storage medium, characterized in that, It stores a computer management program, which, when executed by a processor, implements the steps of the instrument display method based on data adaptation platform as described in any one of claims 1-2.