Data distribution service invocation methods, systems, electronic devices, and readable storage media

By generating dynamic library files and service code files in the smart cockpit and establishing local service interfaces, the problem of language incompatibility between the smart cockpit and the DDS protocol is solved, achieving low-latency and high-reliability data transmission and improving the transmission efficiency of the in-vehicle smart cockpit.

CN115562763BActive Publication Date: 2025-10-28CHONGQING CHANGAN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211216164.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-30
Publication Date
2025-10-28
Estimated Expiration
2042-09-30

AI Technical Summary

Technical Problem

Because the DDS protocol is implemented using C++ as the development language, while the smart cockpit system is built on the Android language, it is impossible to implement the DDS protocol middleware layer in the smart cockpit using SOA services as the architecture.

Method used

By acquiring the service function library of the intelligent cockpit, compiling the code to generate dynamic library files, and filling the code template with the basic service information to generate service code files, a local service interface is established to call the dynamic library files, thereby realizing data distribution service calls between different languages.

Benefits of technology

Despite the different languages ​​used by the smart cockpit and data distribution service, low-latency and high-reliability data transmission was achieved, improving the transmission efficiency of the in-vehicle smart cockpit.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115562763B_ABST
    Figure CN115562763B_ABST
Patent Text Reader

Abstract

This invention relates to the field of in-vehicle communication technology and discloses a data distribution service invocation method, system, electronic device, and readable storage medium. The method compiles a service function library into a dynamic library file according to the vehicle language and generates a service code file through basic service information. A local service interface for invoking the dynamic library file is then established through the service code file. Even when the smart cockpit and the data distribution service use different code languages, the dynamic library file is invoked through the local service interface established in the smart cockpit, enabling smart cockpits using different languages ​​to invoke the data distribution service. This integrates the low latency and high reliability characteristics of the data distribution service, improving the transmission efficiency of the in-vehicle smart cockpit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of in-vehicle communication technology, and in particular to a data distribution service invocation method, system, electronic device, and readable storage medium. Background Technology

[0002] Currently, with the continuous advancement of vehicle intelligence, in-vehicle functions such as autonomous driving, V2X (vehicle-to-X) communication, and smart cockpits are becoming increasingly sophisticated, making the interaction between vehicle ECUs (Electronic Control Units) increasingly complex. To decouple these previously dispersed ECUs, vehicles have introduced Ethernet and SOA (Service-Oriented Architecture) to deploy ECUs in a layered software architecture, achieving modular and standardized ECU functionality for rapid response to vehicle needs. Furthermore, SOA enables communication via the DDS (Data Distribution Service) protocol, which features low latency, high reliability, and supports various QoS (Quality of Service) strategies, meeting the data transmission requirements in different scenarios.

[0003] However, since the DDS protocol is implemented using C++ as the development language, while the smart cockpit system is built on the Android language, it is impossible to implement the DDS protocol middleware layer in the smart cockpit using SOA services as the architecture. Summary of the Invention

[0004] To provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. This summary is not intended as a general commentary, nor is it intended to identify key / important components or describe the scope of protection of these embodiments, but rather as a prelude to the detailed description that follows.

[0005] In view of the shortcomings of the prior art described above, the present invention discloses a data distribution service invocation method, system, electronic device and readable storage medium to realize the DDS protocol middleware layer in a smart cockpit with SOA service as the architecture.

[0006] This invention discloses a method for invoking a data distribution service, comprising: acquiring a smart cockpit and acquiring a service function library and basic service information corresponding to the data distribution service, wherein the smart cockpit is equipped with an operating system based on an in-vehicle language, and the service function library stores service functions built based on the service language; compiling the service function library according to the in-vehicle language to obtain a dynamic library file for the in-vehicle language, wherein the dynamic library file is used to encapsulate the service functions; filling the basic service information into a preset code template to obtain a service code file; establishing a local service interface in the smart cockpit according to the service code file, and calling the dynamic library file through the local service interface to enable the smart cockpit to invoke the data distribution service.

[0007] Optionally, basic service information can be obtained through the following methods: establishing a service information template corresponding to the data distribution service; receiving template input data from the user into the service information template, and determining the service information template containing the template input data as a service information file; extracting information from the service information file according to a preset extraction script to obtain information string data, wherein the information string data carries the basic service information corresponding to the data distribution service.

[0008] Optionally, the basic service information is filled into a preset code template to obtain a service code file, including: the preset code template includes a base class code template and an interface code template; the basic service information is filled into the framework code template to obtain a base class code file for the service language, and the basic service information is filled into the interface code template to obtain an interface code file for the vehicle language.

[0009] Optionally, establishing a local service interface in the smart cockpit according to the service code file includes: using the smart cockpit to establish a service-oriented framework corresponding to the data distribution service according to the base class code file; and establishing a local service interface in the service framework according to the interface code file, wherein the local service interface is used to realize the interaction between the service language and the vehicle language.

[0010] Optionally, the method further includes: the base class code file includes a first base class code corresponding to the service provider and a second base class code corresponding to the service caller; the interface code file includes a first interface code corresponding to the service provider and a second interface code corresponding to the service caller; if the smart cockpit is the service provider, a local service interface is established through the first base class code and the first interface code; if the smart cockpit is the service caller, a local service interface is established through the second base class code and the second interface code.

[0011] Optionally, before establishing a local service interface in the smart cockpit based on the service code file, the method further includes: generating a service package based on the dynamic library file and the service code file; and sending the service package to the smart cockpit.

[0012] Optionally, compiling the service function library according to the vehicle language to obtain a dynamic library file for the vehicle language includes: obtaining a compilation toolkit for the vehicle language; and using the compilation toolkit to compile the service function library to obtain dynamic library files corresponding to each processor architecture.

[0013] This invention discloses a data distribution service invocation system, comprising: an acquisition module for acquiring a smart cockpit and acquiring a service function library and basic service information corresponding to the data distribution service, wherein the smart cockpit is equipped with an operating system based on an in-vehicle language, and the service function library stores service functions built based on the service language; a compilation module for compiling the service function library according to the in-vehicle language to obtain a dynamic library file for the in-vehicle language, wherein the dynamic library file is used to encapsulate the service functions; a filling module for filling the basic service information into a preset code template to obtain a service code file; and an invocation module for establishing a local service interface in the smart cockpit according to the service code file, and invoking the dynamic library file through the local service interface to enable the smart cockpit to invoke the data distribution service.

[0014] The present invention discloses an electronic device, comprising: a processor and a memory; the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory to cause the electronic device to perform the above-described method.

[0015] The present invention discloses a computer-readable storage medium having a computer program stored thereon: when the computer program is executed by a processor, it implements the above-described method.

[0016] The beneficial effects of this invention are:

[0017] By compiling the service function library into a dynamic library file according to the vehicle's language, and generating service code files based on basic service information, a local service interface for calling the dynamic library file is established through the service code file. In this way, even when the smart cockpit and data distribution service use different code languages, the local service interface established in the smart cockpit allows smart cockpits using different languages ​​to call the data distribution service. This integrates the low latency and high reliability characteristics of the data distribution service, improving the transmission efficiency of the in-vehicle smart cockpit.

[0018] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description

[0019] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort. In the drawings:

[0020] Figure 1 This is a flowchart illustrating a data distribution service invocation method in an embodiment of the present invention;

[0021] Figure 2 This is a flowchart illustrating another data distribution service invocation method in an embodiment of the present invention;

[0022] Figure 3 This is a schematic diagram of the structure of a data distribution service invocation system according to an embodiment of the present invention;

[0023] Figure 4 This is a schematic diagram of the structure of an electronic device in an embodiment of the present invention. Detailed Implementation

[0024] The following specific examples illustrate the implementation of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that, unless otherwise specified, the following embodiments and sub-samples in the embodiments can be combined with each other.

[0025] It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of the present invention. Therefore, the drawings only show the components related to the present invention and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.

[0026] In the following description, numerous details are explored to provide a more thorough explanation of embodiments of the invention. However, it will be apparent to those skilled in the art that embodiments of the invention may be practiced without these specific details. In other embodiments, well-known structures and devices are shown in block diagram form rather than in detail to avoid obscuring embodiments of the invention.

[0027] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this disclosure described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion.

[0028] Unless otherwise stated, the term "multiple" means two or more.

[0029] In this embodiment of the disclosure, the character " / " indicates that the objects before and after it are in an "or" relationship. For example, A / B means: A or B.

[0030] The term "and / or" describes an association between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or A and B.

[0031] First, it should be noted that in some embodiments, the in-vehicle language used in the smart cockpit of the vehicle terminal is Android. Since the underlying layer of Android is based on the Linux system, Android can call dynamic library files (e.g., SO library files) under the Linux system.

[0032] In some embodiments, the intelligent cockpit in the vehicle terminal adopts a service-oriented architecture (SOA). The SOA architecture adopts the Proxy / Skeleton pattern, where the Proxy service represents a possible remote service (e.g., process, kernel, node, etc.) and is a localized instance of the client. The Skeleton service is the connection between the user-provided service implementation and the middleware transport structure. The server-side implementation class can be derived from the Skeleton service.

[0033] In some embodiments, the service-oriented architecture can integrate a data distribution service (DDS), wherein the data distribution service uses C++ as its service language and is configured with a service function library (DDS C++ library), which stores service functions built based on the C++ language, and the data distribution service can be invoked by calling the service functions.

[0034] In some embodiments, the native service interface includes the JNI (Java Native Interface) interface. The native service interface provides a solution for integrating native code such as C / C++, Android, JAVA, and assembly. This specification enables Java code running within the Java Virtual Machine to interoperate with other programming languages, including creating native methods, updating Java objects, calling Java methods, referencing Java classes, catching and throwing exceptions, etc. It also allows Java code to call programs and libraries written in C / C++ or assembly language. In particular, using C / C++ as the programming language and providing it as an SO library file for upper-level JAVA code to call can prevent JAVA from being decompiled, thereby ensuring the security of the application.

[0035] Combination Figure 1 As shown in the embodiments of this disclosure, a data distribution service invocation method is provided, including:

[0036] Step S101: Obtain the intelligent cockpit and the service function library and basic service information corresponding to the data distribution service;

[0037] The intelligent cockpit is equipped with an operating system based on the vehicle language, and the service function library stores service functions based on the service language.

[0038] Step S102: Compile the service function library code according to the vehicle language to obtain a dynamic library file for the vehicle language;

[0039] Among them, dynamic library files are used to encapsulate service functions;

[0040] Step S103: Fill in the basic service information into the preset code template to obtain the service code file;

[0041] Step S104: Establish a local service interface in the smart cockpit based on the service code file, and call the dynamic library file through the local service interface to enable the smart cockpit to call the data distribution service.

[0042] The data distribution service invocation method provided in this disclosure involves compiling the service function library into a dynamic library file using the vehicle-grade language, and generating a service code file using basic service information. This service code file then establishes a local service interface for calling the dynamic library file. Thus, even when the smart cockpit and the data distribution service use different code languages, the dynamic library file is called through the local service interface established in the smart cockpit, enabling smart cockpits using different languages ​​to invoke the data distribution service. This integrates the low latency and high reliability characteristics of the data distribution service, improving the transmission efficiency of the vehicle-grade smart cockpit.

[0043] Optionally, the service function library is compiled according to the vehicle language to obtain dynamic library files for the vehicle language, including: obtaining a compilation toolkit for the vehicle language; and using the compilation toolkit to compile the service function library to obtain dynamic library files corresponding to each processor architecture.

[0044] In some embodiments, the compilation toolkit includes the Android NDK (Native Development Kit) toolkit. The NDK is a means of implementing the JNI interface in the Android system, used to package C / C++ dynamic libraries and make calls based on the JNI interface.

[0045] In some embodiments, the DDS C++ library is compiled using the Android NDK toolkit to package service functions and generate SO library files corresponding to various CPU architectures, including ARM, x86, etc.

[0046] Optionally, basic service information can be obtained through the following methods: establishing a service information template corresponding to the data distribution service; receiving template data input by the user into the service information template, and determining the service information template with the template data as a service information file; extracting information from the service information file according to a preset extraction script to obtain information string data, wherein the information string data carries the basic service information corresponding to the data distribution service.

[0047] In some embodiments, the service information template is created based on an Excel spreadsheet. The service information template includes the service name, service domain, service code, service package name, and service interface information. The service interface information includes the service interface method name, interface method parameters, QoS information, Topic information, and interface method type. The interface method parameters include input parameters, output parameters, and input / output parameter types, and the interface method type includes Method, Event, Field, etc.

[0048] In some embodiments, information is extracted from the service information file using a Python script to obtain information string data.

[0049] Optionally, the basic service information is filled into a preset code template to obtain a service code file, including: the preset code template includes a base class code template and an interface code template; the basic service information is filled into a framework code template to obtain a base class code file for the service language, and the basic service information is filled into an interface code template to obtain an interface code file for the vehicle language.

[0050] Optionally, by filling in the basic service information into the base class code template (DDS-SOA middleware code template), a base class code file (e.g., a Class file) is obtained. The base class code file includes an SOA Proxy C++ code file and a SOASkeleton C++ code file. The base class code file is used to create a service-oriented framework, register services, and set interface method types.

[0051] Optionally, by filling in the basic service information into the interface code template (DDS-JNI intermediate layer code template), interface code files (JNI files) and JAVA files are obtained. The interface code files include SOA Proxy JNI files and SOASkeleton JNI code files, wherein the interface code files are used to encapsulate the JNI interface.

[0052] Optionally, a local service interface is established in the smart cockpit based on the service code file, including: using the smart cockpit to establish a service-oriented framework corresponding to the data distribution service based on the base class code file; and establishing a local service interface in the service framework based on the interface code file, wherein the local service interface is used to realize the interaction between the service language and the vehicle language.

[0053] Optionally, the method further includes: a base class code file including a first base class code corresponding to the service provider and a second base class code corresponding to the service caller; and an interface code file including a first interface code corresponding to the service provider and a second interface code corresponding to the service caller. If the smart cockpit is the service provider, a local service interface is established through the first base class code and the first interface code. If the smart cockpit is the service caller, a local service interface is established through the second base class code and the second interface code.

[0054] In some embodiments, if the intelligent cockpit is the service caller, a local service interface is established through SOA Proxy C++ code files and SOA Proxy JNI files; if the intelligent cockpit is the service provider, a local service interface is established through SOA Skeleton C++ code files and SOA Skeleton JNI files.

[0055] Optionally, before establishing a local service interface in the smart cockpit based on the service code file, the method further includes: generating a service package based on the dynamic library file and the service code file.

[0056] Combination Figure 2 As shown in the embodiments of this disclosure, a data distribution service invocation method is provided, including:

[0057] Step S201: Compile the service function library using a compilation toolkit to obtain a dynamic library file;

[0058] Step S202: Establish a service information template corresponding to the data distribution service, and receive template data entered by the user into the service information template to obtain the service information file;

[0059] Step S203: Extract information from the service information file according to the preset extraction script to obtain information string data;

[0060] The information string data contains the basic service information corresponding to the data distribution service;

[0061] Step S204: Fill in the basic service information into the base class code template to obtain the base class code file;

[0062] Step S205: Fill in the basic service information into the interface code template to obtain the interface code file;

[0063] Step S206: Generate a service package based on the dynamic library file, base class code file, and interface code file;

[0064] Step S207: Establish the service-oriented framework corresponding to the data distribution service based on the base class code file;

[0065] Step S208: Establish a local service interface in the service framework based on the interface code file;

[0066] Step S209: Call the dynamic library file through the local service interface to realize the intelligent cockpit calling data distribution service.

[0067] The data distribution service invocation method provided in this disclosure involves compiling the service function library into a dynamic library file using the vehicle-grade language, and generating a service code file using basic service information. This service code file then establishes a local service interface for calling the dynamic library file. Thus, even when the smart cockpit and the data distribution service use different code languages, the dynamic library file is called through the local service interface established in the smart cockpit, enabling smart cockpits using different languages ​​to invoke the data distribution service. This integrates the low latency and high reliability characteristics of the data distribution service, improving the transmission efficiency of the vehicle-grade smart cockpit.

[0068] Combination Figure 3 As shown, this embodiment of the disclosure provides a data distribution service invocation system, including an acquisition module 301, a compilation module 302, a filling module 303, and an invocation module 304.

[0069] The acquisition module 301 is used to acquire the intelligent cockpit and acquire the service function library and service basic information corresponding to the data distribution service. The intelligent cockpit is equipped with an operating system based on the vehicle language, and the service function library stores service functions based on the service language.

[0070] The compilation module 302 is used to compile the service function library code according to the vehicle language to obtain a dynamic library file for the vehicle language, wherein the dynamic library file is used to encapsulate the service functions;

[0071] The fill module 303 is used to fill in the basic service information into the preset code template to obtain the service code file;

[0072] The calling module 304 is used to establish a local service interface in the smart cockpit based on the service code file, and to call the dynamic library file through the local service interface to realize the smart cockpit calling data distribution service.

[0073] The data distribution service invocation system provided in this disclosure compiles the service function library into a dynamic library file according to the vehicle-mounted language, and generates a service code file based on the basic service information. This service code file then establishes a local service interface for calling the dynamic library file. Thus, even when the smart cockpit and the data distribution service use different code languages, the system enables smart cockpits using different languages ​​to call the data distribution service through the local service interface established in the smart cockpit. This integrates the low latency and high reliability characteristics of the data distribution service, improving the transmission efficiency of the vehicle-mounted smart cockpit.

[0074] Figure 4 A schematic diagram of a computer system suitable for implementing the embodiments of this application is shown. It should be noted that... Figure 4 The computer system 400 of the electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.

[0075] like Figure 4 As shown, the computer system 400 includes a Central Processing Unit (CPU) 401, which can perform various appropriate actions and processes, such as executing the methods described in the above embodiments, based on programs stored in Read-Only Memory (ROM) 402 or programs loaded from Storage Unit 408 into Random Access Memory (RAM) 403. The RAM 403 also stores various programs and data required for system operation. The CPU 401, ROM 402, and RAM 403 are interconnected via a bus 404. An Input / Output (I / O) interface 405 is also connected to the bus 404.

[0076] The following components are connected to I / O interface 405: an input section 406 including a keyboard, mouse, etc.; an output section 407 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to I / O interface 405 as needed. A removable medium 411, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 410 as needed so that computer programs read from it can be installed into storage section 408 as needed.

[0077] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program including a computer program for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 409, and / or installed from removable medium 411. When the computer program is executed by central processing unit (CPU) 401, it performs various functions defined in the system of this application.

[0078] It should be noted that the computer-readable medium shown in the embodiments of this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying a computer-readable computer program. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.

[0079] This disclosure also provides a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements any of the methods in this embodiment.

[0080] The computer-readable storage medium in the embodiments of this disclosure will be understood by those skilled in the art: all or part of the steps of the above method embodiments can be implemented by hardware related to computer programs. The aforementioned computer program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disk, or optical disk.

[0081] The electronic device disclosed in this embodiment includes a processor, a memory, a transceiver, and a communication interface. The memory and the communication interface are connected to the processor and the transceiver and complete communication between them. The memory is used to store computer programs, the communication interface is used to perform communication, and the processor and the transceiver are used to run the computer programs, so that the electronic device performs the various steps of the above method.

[0082] In this embodiment, the memory may include random access memory (RAM) and may also include non-volatile memory, such as at least one disk storage device.

[0083] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), graphics processing units (GPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0084] The foregoing description and accompanying drawings fully illustrate embodiments of this disclosure to enable those skilled in the art to practice them. Other embodiments may include structural, logical, electrical, procedural, and other changes. The embodiments represent only possible variations. Individual components and functions are optional unless explicitly required, and the order of operation may vary. Parts and subsamples of some embodiments may be included in or replace parts and subsamples of other embodiments. Moreover, the terminology used in this application is for describing embodiments only and is not intended to limit the claims. As used in the description of embodiments and claims, the singular forms “a,” “an,” and “the” are intended to equally include the plural forms unless the context clearly indicates otherwise. Similarly, the term “and / or” as used herein means including one or more of the associated listed items and all possible combinations thereof. Additionally, when used in this application, the term "comprise" and its variations "comprises" and / or "comprising" refer to the presence of stated subsamples, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other subsamples, wholes, steps, operations, elements, components, and / or groups thereof. Without further limitations, an element defined by the phrase "comprising a..." does not exclude the presence of other identical elements in the process, method, or apparatus that includes the element. In this document, each embodiment may focus on the differences from other embodiments, and similar or identical parts between embodiments can be referred to mutually. For methods, products, etc., disclosed in the embodiments, if they correspond to the method section disclosed in the embodiments, the relevant parts can be referred to the description of the method section.

[0085] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of this disclosure. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0086] The methods and products (including but not limited to devices and equipment) disclosed in the embodiments herein can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For instance, the division of units may be merely a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some sub-samples may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms. Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected to implement this embodiment according to actual needs. Furthermore, the functional units in the embodiments of this disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0087] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than that shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. In the descriptions corresponding to the flowcharts and block diagrams in the accompanying drawings, the operations or steps corresponding to different blocks may also occur in a different order than disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. Each block in a block diagram and / or flowchart, and combinations of blocks in a block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

Claims

1. A method for invoking a data distribution service, characterized in that, include: The system acquires the intelligent cockpit and the corresponding service function library and service basic information for the data distribution service. The intelligent cockpit is equipped with an operating system based on the vehicle language, and the service function library stores service functions based on the service language. The service function library is compiled according to the vehicle language to obtain a dynamic library file for the vehicle language, wherein the dynamic library file is used to encapsulate the service functions; The basic service information is filled into a preset code template to obtain a service code file; wherein, the preset code template includes a base class code template and an interface code template; the basic service information is filled into the base class code template to obtain a base class code file for the service language, and the basic service information is filled into the interface code template to obtain an interface code file for the vehicle language; A local service interface is established in the smart cockpit according to the service code file, and the dynamic library file is called through the local service interface to enable the smart cockpit to call the data distribution service; The base class code file includes a first base class code corresponding to the service provider and a second base class code corresponding to the service caller; the interface code file includes a first interface code corresponding to the service provider and a second interface code corresponding to the service caller. If the smart cockpit is the service provider, a local service interface is established through the first base class code and the first interface code; if the smart cockpit is the service caller, a local service interface is established through the second base class code and the second interface code.

2. The method according to claim 1, characterized in that, Obtain basic service information through the following methods: Establish a service information template corresponding to the data distribution service; Receive template input data from the user into the service information template, and determine the service information template containing the template input data as a service information file; The service information file is extracted according to a preset extraction script to obtain information string data, wherein the information string data carries the basic service information corresponding to the data distribution service.

3. The method according to claim 2, characterized in that, Establish a local service interface in the smart cockpit according to the service code file, including: The intelligent cockpit is used to establish a service-oriented framework corresponding to the data distribution service based on the base class code file; A local service interface is established in the service framework according to the interface code file, wherein the local service interface is used to realize the interaction between the service language and the vehicle language.

4. The method according to any one of claims 1 to 3, characterized in that, Before establishing a local service interface in the smart cockpit according to the service code file, the method further includes: Generate a service package based on the dynamic library file and the service code file; The service package is sent to the smart cockpit.

5. The method according to any one of claims 1 to 3, characterized in that, The service function library is compiled according to the vehicle language to obtain a dynamic library file for the vehicle language, including: Obtain the compilation toolkit for the vehicle-mounted language; The service function library is compiled using the aforementioned compilation toolkit to obtain dynamic library files corresponding to each processor architecture.

6. A data distribution service invocation system, characterized in that, include: The acquisition module is used to acquire the intelligent cockpit and acquire the service function library and basic service information corresponding to the data distribution service. The intelligent cockpit is equipped with an operating system based on the vehicle language, and the service function library stores service functions based on the service language. A compilation module is used to compile the service function library according to the vehicle language to obtain a dynamic library file for the vehicle language, wherein the dynamic library file is used to encapsulate the service functions; The filling module is used to fill the basic service information into a preset code template to obtain a service code file; wherein, the preset code template includes a base class code template and an interface code template; the basic service information is filled into the base class code template to obtain a base class code file for the service language, and the basic service information is filled into the interface code template to obtain an interface code file for the vehicle language; The calling module is used to establish a local service interface in the smart cockpit based on the service code file, and call the dynamic library file through the local service interface to enable the smart cockpit to call the data distribution service; wherein, the base class code file includes a first base class code corresponding to the service provider and a second base class code corresponding to the service caller, and the interface code file includes a first interface code corresponding to the service provider and a second interface code corresponding to the service caller; if the smart cockpit is the service provider, the local service interface is established through the first base class code and the first interface code; if the smart cockpit is the service caller, the local service interface is established through the second base class code and the second interface code.

7. An electronic device, characterized in that, include: Processor and memory; The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory to cause the electronic device to perform the method as described in any one of claims 1 to 5.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • SOMEIP communication intermediate layer implementation method and system based on SOA architecture of vehicle-mounted Android system

    CN113407362A

  • ICE-based heterogeneous platform efficient intelligent computing application architecture and construction method thereof

    CN113703772A