A SOMEIP communication middle layer implementation system, method and vehicle

By providing the SOMEIP communication intermediate layer on the Android system, the system is implemented, the service information and protocol configuration files are analyzed, the signal interface mapping and encapsulated signal interface definitions are generated, and the problems of low development efficiency and poor scalability are solved, and the efficient SOMEIP protocol signal transmission is achieved and vehicle services improve driving experience and system safety.

CN118138626BActive Publication Date: 2024-11-01MEIJIA (WUHAN) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410095941.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-23
Publication Date
2024-11-01
Estimated Expiration
2044-01-23

AI Technical Summary

Technical Problem

The existing SOMEIP communication intermediate layer code is inefficient in development on Android systems and is not easy to expand. Since the operating environment is different from the APP implementation environment, it is impossible to use the SOMEIP protocol to transmit and receive signals in a timely and convenient manner.

Method used

Provide a SOMEIP communication intermediate layer implementation system, including file resolution module, automobile service module and vehicle hardware abstraction layer module. By analyzing the service information, service interface information and protocol configuration information of SOMEIP service, it automatically realizes the client and the server. The service information transmission between them generates signal interface mapping and encapsulated signal interface definitions, and supports cross-process communication to improve transmission speed and security.

Benefits of technology

It improves the development efficiency and scalability of the SOMEIP protocol, so that clients can transmit and receive signals without understanding the details of the protocol, enhances the comprehensiveness of vehicle services and driving experience, and ensures the security of system and user data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118138626B_ABST
    Figure CN118138626B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of SOMEIP communication, and discloses a SOMEIP communication intermediate layer implementation system, method and vehicle. The present invention parses a file containing service information of a SOMEIP service, service interface information of a corresponding service and SOMEIP protocol configuration information through a file parsing module to determine a mode of service information transmission and processing between a client and a server, and generates SOMEIP signal interface mappings between different automobile service modules corresponding to different service information and a vehicle hardware abstraction layer module, as well as a corresponding encapsulation signal interface definition provided by the automobile service module to the client, so that service information transmission between the client and the server can be automatically realized, and the client does not need to understand any SOMEIP protocol details, but only needs to focus on its own business logic implementation, thereby greatly improving development efficiency and having stronger expansibility.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of SOMEIP communication, and in particular to a SOMEIP communication intermediate layer implementation system, method and vehicle. Background Art

[0002] In the field of intelligent driving, the in-vehicle entertainment information system is an intelligent multimedia device integrated into the center console of the car. More and more manufacturers use the Android system to design the in-vehicle entertainment information system. The SOMEIP protocol is widely used in the electronic control unit (ECU) for data communication of the vehicle Ethernet. The communication between the in-vehicle infotainment (IVI) system designed based on the Android system and the vehicle ECU must also use the SOMEIP protocol. The existing SOMEIP communication middle layer code implementation is based on the Linux system as the platform and is implemented in C++ language. The APP on the Android system runs in the Java environment in the Dalvik virtual machine, and needs to use the Java Native Interface (JNI) and other methods to call the C++ code implementation. It is not possible to use the SOMEIP protocol to send and receive signals in a timely and convenient manner, and the development efficiency is low and it is not easy to expand. Summary of the invention

[0003] In view of this, the present invention provides a SOMEIP communication middle layer implementation system to solve the problem that the SOMEIP communication middle layer operating environment is different from the APP implementation environment, resulting in the inability to use the SOMEIP protocol to send and receive signals in a timely and convenient manner, low development efficiency, and difficulty in expansion.

[0004] In a first aspect, the present invention provides a SOMEIP communication intermediate layer implementation system, which is applied to an Android architecture. The system includes a file parsing module, a car service module and a vehicle hardware abstraction layer module, wherein the file parsing module is used to receive a file containing service information of a SOMEIP service, service interface information of a corresponding service and SOMEIP protocol configuration information, and based on a preset SOMEIP communication configuration template, determine a method for transmitting and processing service information between a client and a server, and generate a SOMEIP signal interface mapping between different car service modules and vehicle hardware abstraction layer modules corresponding to different service information, and a corresponding encapsulated signal interface definition provided by the car service module to the client; the car service module is used to encapsulate the corresponding signal interface for the client to call based on the service information transmitted with the client, so that the client can send and receive service information through the signal interface provided by the car service module, and transmit service information with the vehicle hardware abstraction layer module based on the service information through the corresponding SOMEIP signal interface; the vehicle hardware abstraction layer module is used to transmit service information with the car service module through the corresponding SOMEIP signal interface based on the service information, and transmit and receive service information with the server through the SOMEIP protocol stack, and the vehicle hardware abstraction layer module is integrated with a SOMEIP protocol stack for service information communication.

[0005] The SOMEIP communication middle layer implementation system provided by the present invention parses the file containing the service information of the SOMEIP service, the service interface information of the corresponding service and the SOMEIP protocol configuration information through the file parsing module to determine the mode of service information transmission and processing between the client and the server, and generates SOMEIP signal interface mapping between different automobile service modules and the vehicle hardware abstraction layer module corresponding to different service information, and the corresponding encapsulation signal interface definition provided by the automobile service module to the client, which can automatically realize the service information transmission between the client and the server, and if there is service information transmission, the information can be automatically transmitted according to the parsed configuration information, and the SOMEIP protocol can be used to send and receive signals in a timely and convenient manner, and the client does not need to understand any SOMEIP protocol details, but only needs to focus on its own business logic implementation, which greatly improves the development efficiency and has stronger scalability.

[0006] In an optional embodiment, the service information transmission processing between the client and the server includes: the process of the client and the server registering service interface monitoring, and / or, the client sending a request for service information to the server, and the corresponding server receiving the request for service information and processing it, and / or, the server sending a response information to the client after processing the request for service information, and the corresponding client receiving the response information and processing it, and / or, the server sending event notification information to the client, and the corresponding client receiving the event notification information and processing it.

[0007] The present invention determines the mode of service information transmission and processing between the client and the server by parsing a file containing service information of the SOMEIP service, service interface information of the corresponding service and SOMEIP protocol configuration information, thereby automatically realizing all service information transmission and processing between the client and the server, making vehicle services more comprehensive and timely and improving vehicle driving experience.

[0008] In an optional implementation, the file containing the service information of the SOMEIP service, the service interface information of the corresponding service and the SOMEIP protocol configuration information is in an Excel spreadsheet format.

[0009] The file designed by the present invention, which contains the service information of the SOMEIP service, the service interface information of the corresponding service and the SOMEIP protocol configuration information, is in Excel table format. When parsing the file, the correspondence between the service and the corresponding interface and configuration is clearer, which improves the efficiency of file parsing and facilitates the subsequent addition of service information based on actual needs.

[0010] In an optional implementation, the automobile service module and the vehicle hardware abstraction layer module establish cross-process communication through a Binder mechanism.

[0011] The automobile service module and the vehicle hardware abstraction layer module in the embodiment of the present invention establish cross-process communication through the Binder mechanism, which improves the transmission speed of service information and ensures that only authorized clients can access the cross-process communication interface, thereby ensuring the security of system and user data.

[0012] In a second aspect, the present invention provides a SOMEIP communication intermediate layer implementation method, which is applied to the SOMEIP communication intermediate layer implementation system of the above-mentioned first aspect or any corresponding implementation method thereof, and the method includes: receiving a file containing service information of a SOMEIP service, service interface information of the corresponding service, and SOMEIP protocol configuration information, and based on a preset SOMEIP communication configuration template, determining a method for transmitting and processing service information between a client and a server, and generating a SOMEIP signal interface mapping between different automobile service modules and a vehicle hardware abstraction layer module corresponding to different service information, and a corresponding encapsulated signal interface definition provided by the automobile service module to the client; based on the service information transmitted to the client, encapsulating the corresponding signal interface for the client to call, so that the client sends and receives service information through the signal interface provided by the automobile service module, and transmits service information to the vehicle hardware abstraction layer module based on the service information through the corresponding SOMEIP signal interface; based on the service information, transmitting service information to the automobile service module through the corresponding SOMEIP signal interface, and sending and receiving service information with the server through the SOMEIP protocol stack, wherein the vehicle hardware abstraction layer module is integrated with a SOMEIP protocol stack for service information communication.

[0013] In an optional embodiment, the process in which the client sends a request service information to the server, and the corresponding server receives the request service information and processes it includes: based on the request service information sent by the client, encapsulating the corresponding signal interface for the client to call, so that the client sends the request service information through the signal interface provided by the automobile service module, and sending the request service information sent by the client to the vehicle hardware abstraction layer module through the corresponding SOMEIP signal interface; using the vehicle hardware abstraction layer module to send the request service information to the server through the corresponding SOMEIP protocol stack, so that the server processes based on the request service information.

[0014] In a third aspect, the present invention provides a SOMEIP communication intermediate layer implementation device, which is applied to the SOMEIP communication intermediate layer implementation system of the above-mentioned first aspect or any corresponding embodiment thereof, and the device includes: a SOMEIP communication configuration module, which is used to receive a file containing service information of a SOMEIP service, service interface information of the corresponding service, and SOMEIP protocol configuration information, and based on a preset SOMEIP communication configuration template, determine a method for transmitting and processing service information between a client and a server, and generate a SOMEIP signal interface mapping between different automobile service modules and a vehicle hardware abstraction layer module corresponding to different service information, and a corresponding encapsulation signal interface definition provided by the automobile service module to the client; a first information transmission module, which is used to encapsulate the corresponding signal interface for the client to call based on the service information transmitted to the client, so that the client can send and receive service information through the signal interface provided by the automobile service module, and transmit service information to the vehicle hardware abstraction layer module based on the service information through the corresponding SOMEIP signal interface; a second information transmission module, which is used to transmit service information to the automobile service module through the corresponding SOMEIP signal interface based on the service information, and send and receive service information with the server through the SOMEIP protocol stack, and the vehicle hardware abstraction layer module is integrated with a SOMEIP protocol stack for service information communication.

[0015] In a fourth aspect, the present invention provides a vehicle, comprising the SOMEIP communication intermediate layer implementation system of the first aspect or any corresponding embodiment thereof.

[0016] In a fifth aspect, the present invention provides a computer device, characterized in that it comprises: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the SOMEIP communication intermediate layer implementation method of the above-mentioned second aspect or any corresponding embodiment thereof by executing the computer instructions.

[0017] In a fifth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the SOMEIP communication intermediate layer implementation method of the above-mentioned second aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0019] Figure 1 It is a structural diagram of a system for implementing a SOMEIP communication intermediate layer according to an embodiment of the present invention;

[0020] Figure 2 is a structural example diagram of a SOMEIP communication intermediate layer implementation system according to an embodiment of the present invention;

[0021] Figure 3 is a specific example diagram of a SOMEIP communication middle layer implementation system according to an embodiment of the present invention;

[0022] Figure 4 is an example diagram of a SOMEIP signal matrix template interface according to an embodiment of the present invention;

[0023] Figure 5 is an example flow chart of a system for implementing a SOMEIP communication intermediate layer according to an embodiment of the present invention;

[0024] Figure 6 It is a flowchart of a method for implementing a SOMEIP communication intermediate layer according to an embodiment of the present invention;

[0025] Figure 7 is a schematic structural diagram of a vehicle according to an embodiment of the present invention;

[0026] Figure 8 is a structural block diagram of a device for implementing a SOMEIP communication intermediate layer according to an embodiment of the present invention;

[0027] Fig. 9 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0029] The existing SOMEIP communication middle layer code implementations are all based on the Linux system platform and implemented in C++. However, the APP on the Android system runs in the Java environment of the Dalvik virtual machine and needs to use JNI and other methods to call the C++ code implementation. It is not convenient to use the SOMEIP protocol for signal transmission and reception. The development efficiency is low and it is not easy to expand. This is a problem to be solved.

[0030] Based on the above problems, the embodiment of the present invention provides a SOMEIP communication middle layer implementation system, such as Figure 1 As shown, the system includes a file parsing module 1, a car service module 2 and a vehicle hardware abstraction layer module 3.

[0031] Specifically, the file parsing module 1 is used to receive a file containing service information of a SOMEIP service, service interface information of the corresponding service, and SOMEIP protocol configuration information, and determine the method for transmitting and processing service information between the client and the server based on a preset configuration template of SOMEIP communication, and generate a SOMEIP signal interface mapping between different automobile service modules 2 and the vehicle hardware abstraction layer module 3 corresponding to different service information, and a corresponding encapsulation signal interface definition provided by the automobile service module 2 to the client; the automobile service module 2 is used to encapsulate the corresponding signal interface for the client to call based on the service information transmitted to the client, so that the client can send and receive service information through the signal interface provided by the automobile service module 2, and transmit service information with the vehicle hardware abstraction layer module 3 based on the service information through the corresponding SOMEIP signal interface; the vehicle hardware abstraction layer module 3 is used to transmit service information with the automobile service module 2 through the corresponding SOMEIP signal interface based on the service information, and send and receive service information with the server through the SOMEIP protocol stack, and the vehicle hardware abstraction layer module 3 is integrated with the SOMEIP protocol stack for service information communication.

[0032] In an embodiment of the present invention, the client may be an APP running on an Android system, which may be an APP on a vehicle-mounted central control screen, and is used to provide a user with an interface for selecting vehicle services, such as enabling the user to choose to turn on the air conditioner, play music, and other services. The server may be an on-board ECU device, which may execute the service after receiving the service request sent by the server, or may receive vehicle information obtained by the on-board sensor and send it to the server.

[0033] The SOMEIP communication in the embodiment of the present invention is a controller using the method or data of another controller through service subscription. In the service-oriented SOMEIP communication, SOMEIP provides three service interfaces, namely Events, which mainly provide event-type interfaces. The event can be a trigger event or a periodic event; Methods: remote procedure call, mainly used for remote call methods; Fields: access process data, in order to achieve data acquisition and modification of the application. Different services have different sub-services and different application scenarios, so different interfaces need to be designed based on different services to meet different scenario requirements. For example, if the client needs the server to directly open and close the windows to achieve remote control of the windows, the Method interface can be selected as an example.

[0034] The embodiment of the present invention can design a service information file based on the service requirements for the vehicle, fill in the corresponding service information in the service file, such as the service name and service ID, etc., and correspondingly design the service type corresponding to each service, such as Events, Methods and Fields, and the corresponding service interface information, including method interface type, method interface name, method interface ID, event interface type, name and ID, and field interface type, name and ID, and also fill in the SOMEIP protocol configuration information corresponding to each service in the service file, such as the protocol (UDP or TCP) IP address and communication port required for SOMEIPD communication, just as an example. The designed service information file can be an xml file, txt file, etc., just as an example.

[0035] In the embodiment of the present invention, the file parsing module 1 receives and parses the designed service information file, determines the service information transmission and processing method between the server and the client, such as determining how the server sends a request service information to the client, and how the client receives and processes the request service information sent by the server. This is only an example and is not limited. The method for determining the service information transmission and processing method between the server and the client can be to parse the service information file through a code generation script such as a python script to generate a corresponding runtime-related code file of the service data channel between the server and the client, so that the automobile service module 2 and the vehicle hardware abstraction layer module 3 can be directly operated based on the generated service data channel between the server and the client. The file parsing module 1 can also generate a SOMEIP signal interface mapping between the automobile service module 2 and the vehicle hardware abstraction layer module 3 corresponding to different service information according to the interface type and communication protocol configuration information corresponding to different service types in the service information file, and the corresponding encapsulation signal interface definition provided by the automobile service module 2 to the client, so that the automobile service module 2 and the vehicle hardware transmission module perform data transmission through the corresponding SOMEIP signal interface when transmitting service information, such as Figure 2As shown, the car service module 2 can perform corresponding signal interface encapsulation based on the service information transmitted with the client, and encapsulate the SOMEIP signal interface for the upper-level client to call. The client can send and receive service information based on the SOMEIP signal interface provided by the car service module 2, wherein the car service module 2 is the CarService module, the vehicle hardware transmission module is the VehicleHal module, the VehicleHal module is an executable program written in C++ running on Android, it integrates the SOMEIP protocol stack, and implements the data channel business of the client and server of SOMEIP. The CarService module is an Android system-level APP application, which communicates with VehicleHal across processes through binder, and encapsulates the SOMEIP signal interface for the upper-level ordinary APP application to call.

[0036] like Figure 2 As shown, the vehicle hardware abstraction layer module 3 in the embodiment of the present invention integrates the SOMEIP protocol stack for service information communication. The vehicle abstraction layer module and the automobile service module 2 transmit service information based on different SOMEIP signal interfaces corresponding to different services, and can also process the sending and receiving of service information with the server through the SOMEIP protocol stack. Among them, the vehicle hardware abstraction layer module 3 also integrates the client and the server. The client is used to receive the request service information sent by the client, and determine whether the service contains the required event group. If it does, the request service information can be sent to the server through the SOMEIP protocol stack. When the server sends a notification data message to the client, it can send the notification data message to the client through the corresponding server. For example, Figure 3 As shown, the vehicle hardware abstraction layer module 3 may be integrated with multiple client terminals, such as client1, client2, and clientN may correspond to different clients respectively, and server1, server2, and serverN may correspond to different servers respectively, which is just an example.

[0037] The SOMEIP communication middle layer implementation system provided by the present invention parses the file containing the service information of the SOMEIP service, the service interface information of the corresponding service and the SOMEIP protocol configuration information through the file parsing module 1 to determine the mode of service information transmission and processing between the client and the server, and generates SOMEIP signal interface mapping between different automobile service modules 2 and the vehicle hardware abstraction layer module 3 corresponding to different service information, and the corresponding encapsulation signal interface definition provided by the automobile service module 2 to the client, which can automatically realize the service information transmission between the client and the server. If there is service information transmission, the information can be automatically transmitted according to the parsed configuration information, and the SOMEIP protocol can be used to send and receive signals in a timely and convenient manner. The client does not need to understand any SOMEIP protocol details, but only needs to focus on its own business logic implementation, which greatly improves the development efficiency and has stronger scalability.

[0038] Specifically, the file containing the service information of the SOMEIP service, the service interface information of the corresponding service and the SOMEIP protocol configuration information is in an Excel spreadsheet format.

[0039] The file containing the service information of the SOMEIP service, the service interface information of the corresponding service and the SOMEIP protocol configuration information designed in the embodiment of the present invention can be in Excel table format. Figure 4 As shown, the Excel table can be a SOMEIP signal matrix that defines the methods of each business of the signal, the data type transmitted and other data. The method naming, data type format and the like in the signal matrix must follow a fixed template, and the corresponding text parsing module is a matrix parsing module. The signal matrix may specifically include the service name, service ID, service description, and the service type corresponding to the service, such as the event type or method type, the name, ID, description of the method or event, and the TCP / IP transport layer protocol corresponding to the service, as an example only.

[0040] Specifically, the information in the file including the service information of the SOMEIP service, the service interface information of the corresponding service and the SOMEIP protocol configuration information are all in a preset unified format.

[0041] In the embodiment of the present invention, the service naming, data type, method naming, etc. in the file must follow a unified template, and the preset unified format is not limited, and can be set according to the actual application scenario. The data format is the format in which the data is stored in the file or record. It can be in the form of a numerical value, a character, or a binary number. It is described by the data type and the number growth rate. For example, the method naming length is 7 digits. Just as an example, since the services of SOMEIP are defined by the signal matrix, the service naming, data type, method naming, etc. in the signal matrix all follow a template, so the SOMEIP service-related interface in VehicleHal and the corresponding service interface in CarService can be automatically generated by parsing the matrix Excel table and Python script, which greatly improves the development efficiency. Users can fill in the service information, service interface information and SOMEIP protocol configuration information corresponding to the service or application scenario in the file of the above unified template based on different services and different application scenarios, and then automatically generate the SOMEIP service-related interface in VehicleHal and the corresponding service interface in CarService through the file parsing module and Python script.

[0042] Specifically, the automobile service module 2 and the vehicle hardware abstraction layer module 3 establish cross-process communication through the Binder mechanism.

[0043] In a specific embodiment, Figure 3 As shown, the matrix parsing module generates the code for service information transmission between the client and the server through a python script based on the matrix Excel file to determine the way in which the client and the server transmit service information, and the matrix parsing module generates the SOMEIP signal interface mapping between the automobile service module 2 and the vehicle hardware abstraction layer module 3 corresponding to different service information, and the automobile service module 2 provides the corresponding encapsulation signal interface definition to the client.

[0044] The automobile service module 2 runs based on the code for transmitting service information between the client and the server generated by the matrix parsing module, and provides the SOMEIP signal interface corresponding to the service information encapsulation transmitted by the client to the client, so that the client can send and receive service information based on the SOMEIP signal interface provided by the automobile service module 2. After receiving the request service information sent by the client, the automobile service module 2 can transmit the request service information to the vehicle hardware abstraction layer module 3 through the data forwarding module based on the SOMEIP signal interface corresponding to the vehicle hardware abstraction layer module 3 and the Binder mechanism. The vehicle hardware abstraction layer module 3 receives the request service information through the corresponding SOMEIP signal interface based on the received request service information. Protocol stack, such as the client side. After receiving the request service information sent by the client, the client side determines whether the service information contains the required event group. If it does, it sends a request service message to the server through the SOMEIP standard protocol stack to process data reception and transmission, that is, through the SOMEIP Ethernet. After receiving the request service information, the server executes the service. If the service is valid, a request response can be sent. The vehicle hardware abstraction layer module 3 can send the request response to the automobile service module 2 based on the SOMEIP signal interface corresponding to the request service. After receiving the request response information, the automobile service module 2 sends the request response information to the client by encapsulating the corresponding signal interface, and the client can receive the response. This is just an example.

[0045] Specifically, the service information transmission processing between the client and the server includes: the process of the client and the server registering service interface monitoring, and / or, the client sending a request for service information to the server, and the corresponding server receiving the request for service information and processing it, and / or, the server sends a response information to the client after processing the request for service information, and the corresponding client receives the response information and processes it, and / or, the server sends an event notification information to the client, and the corresponding client receives the event notification information and processes it.

[0046] In a specific embodiment, Figure 5As shown, the server sends the notification data message through the SOMEIP protocol stack of the vehicle hardware abstraction layer module 3 and then through the service server of the vehicle hardware abstraction layer module 3 to determine whether the notification data message is a subscribed event group. If so, it is forwarded to the automobile service module 2 through the corresponding SOMEIP signal interface. The data forwarding module in the automobile service module 2 is converted into a Java layer to send the notification data message to the client through the encapsulation interface, just as an example. The client can be an Android APP registration interface monitor, then define the SOMEIP signal interface provided by the automobile service module 2 to the client, and define the SOMEIP signal interface for data transmission between the automobile service module 2 and the business interface of the vehicle hardware abstraction layer, just as an example. The method for establishing the subscribe subscription service and the subscribe ack service response between the client and the server can be that after the client receives the required request service, it determines whether the service contains the required event group. If it does, it sends a subscribe message to the server. When the server receives the request service, if the request service has a response, it can send a subscribe ack for response, just as an example.

[0047] According to an embodiment of the present invention, an embodiment of a method for implementing a SOMEIP communication intermediate layer is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0048] In this embodiment, a SOMEIP communication middle layer implementation method is provided, which can be used for the above-mentioned SOMEIP communication middle layer implementation system. Figure 5 is a flow chart of a method for implementing a SOMEIP communication intermediate layer according to an embodiment of the present invention. Figure 6 As shown, the process includes the following steps:

[0049] Step S601, receiving a file containing service information of the SOMEIP service, service interface information of the corresponding service and SOMEIP protocol configuration information, and based on a pre-set SOMEIP communication configuration template, determining a method for transmitting and processing service information between the client and the server, and generating a SOMEIP signal interface mapping between different automobile service modules and the vehicle hardware abstraction layer module corresponding to different service information, as well as a corresponding encapsulation signal interface definition provided by the automobile service module to the client.

[0050] The file parsing module in the embodiment of the present invention receives and parses the designed service information file, determines the service information transmission and processing method between the server and the client, such as determining how the server sends the request service information to the client, and how the client receives the request service information sent by the server and processes it. The process is only for example and not limited. Among them, the method for determining the service information transmission and processing method between the server and the client can be to parse the service information file through a code generation script such as a python script to generate the corresponding code of the service data channel between the server and the client, so that the automobile service module and the vehicle hardware abstraction layer module can be directly based on the generated service data channel between the server and the client. The file parsing module can also generate SOMEIP signal interface mappings between different automobile service modules and vehicle hardware abstraction layer modules corresponding to different service information according to the interface type and communication protocol configuration information corresponding to different service types in the service information file, as well as the corresponding encapsulation signal interface definition provided by the automobile service module to the client, so that the automobile service module and the vehicle hardware transmission module can perform data transmission through the corresponding SOMEIP signal interface when transmitting service information.

[0051] Step S602, based on the service information transmitted with the client, encapsulate the corresponding signal interface for the client to call, so that the client can send and receive service information through the signal interface provided by the automobile service module, and transmit the service information with the vehicle hardware abstraction layer module through the corresponding SOMEIP signal interface based on the service information.

[0052] The automobile service module of the embodiment of the present invention can perform corresponding signal interface encapsulation based on the service information transmitted with the client, encapsulate the SOMEIP signal interface for the upper-level client to call, and the client can send and receive service information based on the SOMEIP signal interface provided by the automobile service module, wherein the automobile service module is a CarService module.

[0053] Step S603, based on the service information, the service information is transmitted to the automobile service module through the corresponding SOMEIP signal interface, and the service information is sent and received with the server through the SOMEIP protocol stack. The vehicle hardware abstraction layer module is integrated with the SOMEIP protocol stack for service information communication.

[0054] The vehicle abstraction layer module and the automobile service module of the embodiment of the present invention transmit service information based on different SOMEIP signal interfaces corresponding to different services, and can also process the sending and receiving of service information with the server through the SOMEIP protocol stack. Among them, the vehicle hardware abstraction layer module also integrates the client and the server. The client is used to receive the request service information sent by the client, and determine whether the service contains the required event group. If it does, the request service information can be sent to the server through the SOMEIP protocol stack. When the server sends a notification data message to the client, it can send the notification data message to the client through the corresponding server.

[0055] In one embodiment, the process in which a client sends a request service message to a server, and the corresponding server receives the request service message and processes it includes: based on the request service message sent by the client, encapsulating the corresponding signal interface for the client to call, so that the client sends the request service message through the signal interface provided by the automobile service module, and sending the request service message sent by the client to the vehicle hardware abstraction layer module through the corresponding SOMEIP signal interface; using the vehicle hardware abstraction layer module to send the request service message to the server through the corresponding SOMEIP protocol stack, so that the server processes it based on the request service message.

[0056] After receiving the request service information sent by the client, the automobile service module of the embodiment of the present invention can transmit the request service information to the vehicle hardware abstraction layer module through the data forwarding module based on the SOMEIP signal interface corresponding to the vehicle hardware abstraction layer module and the Binder mechanism. The vehicle hardware abstraction layer module is based on the received request service information through the corresponding SOMEIP protocol stack, such as the client. After receiving the request service information sent by the client, the client determines whether the service information contains the required event group. If it does, the client processes data reception and transmission to the server through the SOMEIP standard protocol stack, that is, sends the request service message through the SOMEIP Ethernet. After receiving the request service information, the server executes the service.

[0057] The embodiment of the present invention further provides a vehicle, such as Figure 7 As shown, the vehicle includes the SOMEIP communication intermediate layer implementation system described in the above embodiment. Please refer to the above embodiment for detailed description, which will not be repeated here.

[0058] In this embodiment, a SOMEIP communication intermediate layer implementation device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0059] This embodiment provides a SOMEIP communication intermediate layer implementation device, which is applied to a SOMEIP communication intermediate layer implementation system of the above embodiment, such as Figure 8 As shown, including:

[0060] The SOMEIP communication configuration module 801 is used to receive a file containing service information of the SOMEIP service, service interface information of the corresponding service and SOMEIP protocol configuration information, and determine the mode of service information transmission and processing between the client and the server based on the preset SOMEIP communication configuration template, and generate SOMEIP signal interface mapping between different automobile service modules and vehicle hardware abstraction layer modules corresponding to different service information, and the definition of the corresponding encapsulated signal interface provided by the automobile service module to the client; the first information transmission module 802 is used to encapsulate the corresponding signal interface for the client to call based on the service information transmitted to the client, so that the client can send and receive service information through the signal interface provided by the automobile service module, and transmit service information with the vehicle hardware abstraction layer module based on the service information through the corresponding SOMEIP signal interface; the second information transmission module 803 is used to transmit service information with the automobile service module through the corresponding SOMEIP signal interface based on the service information, and send and receive service information with the server through the SOMEIP protocol stack, and the vehicle hardware abstraction layer module is integrated with the SOMEIP protocol stack for service information communication.

[0061] In some optional embodiments, the process in which the client sends a request service information to the server, and the corresponding server receives the request service information and processes it includes: based on the request service information sent by the client, encapsulating the corresponding signal interface for the client to call, so that the client sends the request service information through the signal interface provided by the automobile service module, and sending the request service information sent by the client to the vehicle hardware abstraction layer module through the corresponding SOMEIP signal interface; using the vehicle hardware abstraction layer module to send the request service information to the server through the corresponding SOMEIP protocol stack, so that the server processes based on the request service information.

[0062] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0063] The SOMEIP communication intermediate layer implementation device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0064] The embodiment of the present invention also provides a computer device having the above Figure 8 The SOMEIP communication middle layer implementation device is shown.

[0065] See also Fig. 9 , Fig. 9 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Fig. 9 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig. 9 A processor 10 is taken as an example.

[0066] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0067] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0068] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0069] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0070] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Fig. 9 The example of connecting through bus is taken in the following.

[0071] The input device 30 can receive input digital or character information, and generate signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.

[0072] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0073] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A SOMEIP communication middle layer implementation system, characterized in that: Applied to Android architecture, the system includes a file parsing module, a car service module and a vehicle hardware abstraction layer module, wherein: A file parsing module is used to receive a file containing service information of a SOMEIP service, service interface information of a corresponding service, and SOMEIP protocol configuration information, and determine a method for transmitting and processing service information between a client and a server based on a preset configuration template for SOMEIP communication, and generate a SOMEIP signal interface mapping between different automobile service modules and a vehicle hardware abstraction layer module corresponding to different service information, and a corresponding encapsulation signal interface definition provided by the automobile service module to the client; The automobile service module is used to encapsulate the corresponding signal interface for the client to call based on the service information transmitted with the client, so that the client can send and receive the service information through the signal interface provided by the automobile service module, and transmit the service information with the vehicle hardware abstraction layer module through the corresponding SOMEIP signal interface based on the service information. The automobile service module is an application module installed on the Android architecture; A vehicle hardware abstraction layer module, which is used to transmit service information to the automobile service module through the corresponding SOMEIP signal interface based on the service information, and to send and receive service information with the server through the SOMEIP protocol stack. The vehicle hardware abstraction layer module is integrated with the SOMEIP protocol stack for service information communication. The vehicle hardware abstraction layer module is an executable program running on the Android architecture; The automobile service module and the vehicle hardware abstraction layer module establish cross-process communication through the Binder mechanism.

2. The system according to claim 1, characterized in that The service information transmission processing between the client and the server includes: the process of the client and the server registering service interface monitoring, and / or, the client sending a request for service information to the server, and the corresponding server receiving the request for service information and processing it, and / or, the server sends a response information to the client after processing the request for service information, and the corresponding client receives the response information and processes it, and / or, the server sends an event notification information to the client, and the corresponding client receives the event notification information and processes it.

3. The system according to claim 1, characterized in that The file containing the service information of the SOMEIP service, the service interface information of the corresponding service and the SOMEIP protocol configuration information is in an Excel spreadsheet format.

4. A SOMEIP communication middle layer implementation method, applied to a SOMEIP communication middle layer implementation system according to any one of claims 1 to 3, characterized in that: The method comprises: Receive a file containing service information of a SOMEIP service, service interface information of the corresponding service, and SOMEIP protocol configuration information, and determine a method for transmitting and processing service information between a client and a server based on a preset configuration template for SOMEIP communication, and generate a SOMEIP signal interface mapping between different automobile service modules and a vehicle hardware abstraction layer module corresponding to different service information, and a corresponding encapsulated signal interface definition provided by the automobile service module to the client, wherein the automobile service module is an application module installed on an Android architecture; Based on the service information transmitted with the client, encapsulate the corresponding signal interface for the client to call, so that the client can send and receive service information through the signal interface provided by the car service module, and transmit the service information with the vehicle hardware abstraction layer module through the corresponding SOMEIP signal interface based on the service information; Based on the service information, the service information is transmitted to the automobile service module through the corresponding SOMEIP signal interface, and the service information is sent and received with the server through the SOMEIP protocol stack. The vehicle hardware abstraction layer module is integrated with the SOMEIP protocol stack for service information communication. The vehicle hardware abstraction layer module is an executable program running on the Android architecture; The automobile service module and the vehicle hardware abstraction layer module establish cross-process communication through the Binder mechanism.

5. The method according to claim 4, characterized in that The process of the client sending a request service message to the server, and the corresponding server receiving the request service message and processing it includes: Based on the request service information sent by the client, the corresponding signal interface is encapsulated for the client to call, so that the client sends the request service information through the signal interface provided by the car service module. Sending the service request information sent by the client to the vehicle hardware abstraction layer module through the corresponding SOMEIP signal interface; The vehicle hardware abstraction layer module is used to send the request service information to the server through the corresponding SOMEIP protocol stack, so that the server processes based on the request service information.

6. A SOMEIP communication middle layer implementation device, applied to a SOMEIP communication middle layer implementation system according to any one of claims 1 to 3, characterized in that: The device comprises: A SOMEIP communication configuration module, which is used to receive a file containing service information of a SOMEIP service, service interface information of a corresponding service, and SOMEIP protocol configuration information, and determine a method for transmitting and processing service information between a client and a server based on a preset SOMEIP communication configuration template, and generate a SOMEIP signal interface mapping between different automobile service modules and a vehicle hardware abstraction layer module corresponding to different service information, and a corresponding encapsulated signal interface definition provided by the automobile service module to the client, wherein the automobile service module is an application module installed on an Android architecture; The first information transmission module is used to encapsulate the corresponding signal interface for the client to call based on the service information transmitted with the client, so that the client can send and receive service information through the signal interface provided by the automobile service module, and transmit the service information with the vehicle hardware abstraction layer module through the corresponding SOMEIP signal interface based on the service information; A second information transmission module is used to transmit service information to the automobile service module through the corresponding SOMEIP signal interface based on the service information, and to send and receive service information with the server through the SOMEIP protocol stack. The vehicle hardware abstraction layer module is integrated with the SOMEIP protocol stack for service information communication. The vehicle hardware abstraction layer module is an executable program running on the Android architecture; The automobile service module and the vehicle hardware abstraction layer module establish cross-process communication through the Binder mechanism.

7. A vehicle, characterized in that: The vehicle includes the SOMEIP communication intermediate layer implementation system described in any one of claims 1-3.

8. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the SOMEIP communication intermediate layer implementation method according to any one of claims 4 to 5 by executing the computer instructions.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the SOMEIP communication intermediate layer implementation method according to any one of claims 4 to 5.