CN118138626A - SOMEIP communication intermediate layer implementation system, method and vehicle - Google Patents

SOMEIP communication intermediate layer implementation system, method and vehicle Download PDF

Info

Publication number
CN118138626A
CN118138626A CN202410095941.1A CN202410095941A CN118138626A CN 118138626 A CN118138626 A CN 118138626A CN 202410095941 A CN202410095941 A CN 202410095941A CN 118138626 A CN118138626 A CN 118138626A
Authority
CN
China
Prior art keywords
service
someip
information
client
service information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410095941.1A
Other languages
Chinese (zh)
Inventor
张帆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Magna Wuhan Technology Co ltd
Original Assignee
Magna Wuhan Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Magna Wuhan Technology Co ltd filed Critical Magna Wuhan Technology Co ltd
Priority to CN202410095941.1A priority Critical patent/CN118138626A/en
Publication of CN118138626A publication Critical patent/CN118138626A/en
Pending legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Abstract

The invention relates to SOMEIP communication technology field, discloses a SOMEIP communication middle layer realization system, a method and a vehicle, wherein the method determines a mode of carrying out service information transmission processing between a client and a server by analyzing a file containing SOMEIP service information, corresponding service interface information and SOMEIP protocol configuration information by a file analysis module, generates SOMEIP signal interface mapping between different automobile service modules corresponding to different service information and vehicle hardware abstraction layer modules and encapsulation signal interface definition corresponding to the automobile service modules provided for the client, can automatically realize service information transmission between the client and the server, and the client does not need to know any SOMEIP protocol details, only needs to concentrate on own service logic realization, greatly improves development efficiency, and has stronger expansibility.

Description

SOMEIP communication intermediate layer implementation system, method and vehicle
Technical Field
The invention relates to the technical field of SOMEIP communication, in particular to a SOMEIP communication intermediate layer implementation system, a SOMEIP communication intermediate layer implementation method and a vehicle.
Background
In the intelligent driving field, the vehicle-mounted entertainment information system is an intelligent multimedia device integrated In an automobile center console, more and more manufacturers adopt an Android system to design the vehicle-mounted entertainment information system, SOMEIP protocols are largely used In a vehicle-mounted electronic control unit (Electronic Control Unit, ECU) to conduct data communication of a vehicle-mounted Ethernet, the communication between the vehicle-mounted entertainment information system (In-Vehicle Infotainment, IVI) designed based on the Android system and the vehicle-mounted ECU also needs to adopt SOMEIP protocols, the existing SOMEIP communication middle layer code implementation is achieved by taking a Linux system as a platform and adopting C++ language, APP on the Android system operates In a Java environment In a Dalvik virtual machine, the mode of invoking C++ code implementation by using Java local development interfaces (Java NATIVE INTERFACE, JNI) and the like is needed, the communication of signals cannot be conducted In time conveniently using the SOMEIP protocols, and development efficiency is low and the development is not easy to expand.
Disclosure of Invention
In view of this, the invention provides a SOMEIP communication intermediate layer implementation system, so as to solve the problems that the SOMEIP communication intermediate layer operation environment is different from the APP implementation environment, so that the SOMEIP protocol cannot be used for receiving and transmitting signals in time conveniently, the development efficiency is low, and the expansion is not easy.
In a first aspect, the invention provides a SOMEIP communication middle layer implementation system, which is applied to an Android architecture, and the system comprises a file analysis module, an automobile service module and a vehicle hardware abstraction layer module, wherein the file analysis module is used for receiving a file containing service information of SOMEIP service, service interface information of corresponding service and SOMEIP protocol configuration information, determining a mode of carrying out service information transmission processing between a client and the server based on a preset SOMEIP communication configuration template, and generating SOMEIP signal interface mapping between different automobile service modules corresponding to different service information and the vehicle hardware abstraction layer module and encapsulation signal interface definition corresponding to the client provided by the automobile service module; the automobile service module is used for packaging a corresponding signal interface for calling the client based on the service information transmitted by the client, so that the client can transmit and receive the service information through the signal interface provided by the automobile service module, and the service information is transmitted with the vehicle hardware abstraction layer module through the corresponding SOMEIP signal interface based on the service information; the vehicle hardware abstraction layer module is used for transmitting service information with the automobile service module through a corresponding SOMEIP signal interface based on the service information, and receiving and transmitting the service information with the service end through a SOMEIP protocol stack, and the vehicle hardware abstraction layer module is integrated with a SOMEIP protocol stack for service information communication.
According to the SOMEIP communication middle layer implementation system provided by the invention, the file analysis module analyzes the file containing the service information of SOMEIP service, the service interface information of corresponding service and the SOMEIP protocol configuration information to determine the mode of carrying out service information transmission processing between the client and the server, and generates SOMEIP signal interface mapping between different automobile service modules corresponding to different service information and vehicle hardware abstraction layer modules and packaging signal interface definition corresponding to the automobile service modules provided for the client, so that service information transmission between the client and the server can be automatically realized, if the service information transmission is carried out, the information transmission can be automatically carried out according to the analyzed configuration information, the receiving and transmitting of signals can be carried out in time conveniently by using SOMEIP protocol, the client does not need to know any SOMEIP protocol details, only needs to concentrate on the realization of own service logic, the development efficiency is greatly improved, and the higher expansibility is achieved.
In an optional implementation manner, the service information transmission processing between the client and the server includes: and the client terminal and the server terminal register the process of monitoring the service interface, and/or the client terminal sends the service request information to the server terminal, the corresponding server terminal receives the service request information and processes the service request information, and/or the server terminal processes the service request information, then sends response information to the client terminal, the corresponding client terminal receives the response information and processes the response information, and/or the server terminal sends event notification information to the client terminal, and the corresponding client terminal receives the event notification information and processes the event notification information.
According to the method, the device and the system, the mode of carrying out service information transmission processing between the client and the server is determined by analyzing the file containing service information of SOMEIP services, service interface information of corresponding services and SOMEIP protocol configuration information, so that all service information transmission processing between the client and the server can be automatically realized, vehicle services are more comprehensive and timely, and vehicle driving experience is improved.
In an alternative embodiment, the file containing service information of SOMEIP services, service interface information of corresponding services, and SOMEIP protocol configuration information is in an Excel table format.
The file containing service information of SOMEIP services, service interface information of corresponding services and SOMEIP protocol configuration information is in an Excel table format, so that the corresponding relation between the services and the corresponding interfaces and configuration is clearer when the file is analyzed, the efficiency of file analysis is improved, and the service information is convenient to be added subsequently based on actual requirements.
In an alternative embodiment, the automotive service module establishes cross-process communication with the vehicle hardware abstraction layer module via a Binder mechanism.
According to the embodiment of the invention, the vehicle service module and the vehicle hardware abstraction layer module establish cross-process communication through the Binder mechanism, so that the transmission speed of service information is improved, only authorized clients can access the cross-process communication interface, and the safety of the system and user data is ensured.
In a second aspect, the present invention provides a SOMEIP communications intermediate layer implementation method, which is applied to the SOMEIP communications intermediate layer implementation system of the first aspect or any implementation manner corresponding to the first aspect, where the method includes: receiving a file containing service information of SOMEIP services, service interface information of corresponding services and SOMEIP protocol configuration information, determining a mode of carrying out service information transmission processing between a client and a server based on a preset SOMEIP communication configuration template, generating SOMEIP signal interface mappings between different automobile service modules corresponding to different service information and automobile hardware abstraction layer modules, and providing the automobile service modules for encapsulation signal interface definitions corresponding to the client; based on the service information transmitted by the client, the corresponding signal interface is packaged and called for the client, so that the client receives and transmits the service information through the signal interface provided by the automobile service module, and based on the service information, the service information is transmitted with the automobile hardware abstraction layer module through the corresponding SOMEIP signal interface; based on the service information, the vehicle hardware abstraction layer module transmits the service information with the automobile service module through a corresponding SOMEIP signal interface, and transmits and receives the service information with the service end through a SOMEIP protocol stack, and the vehicle hardware abstraction layer module is integrated with a SOMEIP protocol stack for service information communication.
In an optional implementation manner, the process of sending the request service information to the service end by the client and receiving and processing the request service information by the corresponding service end includes: based on the request service information sent by the client, a corresponding signal interface is packaged and called for the client, so that the client sends the request service information through the signal interface provided by the automobile service module, and the request service information sent by the client is sent to the vehicle hardware abstraction layer module through the corresponding SOMEIP signal interface; and the vehicle hardware abstraction layer module is used for sending the request service information to the service end through the corresponding SOMEIP protocol stack so as to enable the service end to process the request service information.
In a third aspect, the present invention provides SOMEIP a communications intermediate layer implementation apparatus, which is applied to the SOMEIP communications intermediate layer implementation system of the first aspect or any implementation manner corresponding to the first aspect, where the apparatus includes: SOMEIP a communication configuration module, configured to receive a file containing service information of SOMEIP service, service interface information of corresponding service and SOMEIP protocol configuration information, determine a mode of service information transmission processing between a client and a server based on a preset SOMEIP communication configuration template, and generate SOMEIP signal interface mappings between different automobile service modules corresponding to different service information and automobile hardware abstraction layer modules, and package signal interface definitions corresponding to the client provided by the automobile service modules; the first information transmission module is used for packaging a corresponding signal interface for calling the client based on the service information transmitted by the client so that the client can transmit 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 second information transmission module is used for transmitting service information with the automobile service module through a corresponding SOMEIP signal interface based on the service information, and receiving and transmitting the service information with the service end through a SOMEIP protocol stack, and the vehicle hardware abstraction layer module is integrated with a SOMEIP protocol stack for service information communication.
In a fourth aspect, the present invention provides a vehicle, including the SOMEIP communications interface implementation system of the first aspect or any of its corresponding embodiments.
In a fifth aspect, the present invention provides a computer apparatus, comprising: the memory and the processor are in communication connection with each other, the memory stores computer instructions, and the processor executes the computer instructions, so as to execute the SOMEIP communication middle layer implementation method of the second aspect or any implementation mode corresponding to the second aspect.
In a fifth aspect, the present invention provides a computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of implementing the SOMEIP communications interface of the second aspect or any of its corresponding embodiments.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a SOMEIP communications interface implementation system according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating an exemplary architecture of a SOMEIP communications interface implementation system in accordance with an embodiment of the present invention;
FIG. 3 is a specific example diagram of SOMEIP communications intermediate layer implementation system in accordance with an embodiment of the present invention;
FIG. 4 is a diagram of an exemplary SOMEIP signal matrix template interface in accordance with an embodiment of the present invention;
FIG. 5 is a flowchart illustration of a SOMEIP communications intermediate layer implementation system in accordance with an embodiment of the present invention;
FIG. 6 is a flow diagram of a method for implementing SOMEIP communication interlayers in accordance with an embodiment of the present invention;
fig. 7 is a schematic structural view of a vehicle according to an embodiment of the present invention;
FIG. 8 is a block diagram of a SOMEIP communications interface implementation apparatus according to an embodiment of the present invention;
Fig. 9 is a schematic diagram of a hardware structure of a computer device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The existing SOMEIP communication middle layer code implementation is realized by taking a Linux system as a platform and adopting a C++ language, and APP on an Android system operates in a Java environment in a Dalvik virtual machine, and the C++ code implementation is required to be called in a JNI mode or the like, so that the signal can not be conveniently received and transmitted by using a SOMEIP protocol, the development efficiency is low, and the development is not easy to expand, so that the problem to be solved is solved.
Based on the above problems, the embodiment of the invention provides a SOMEIP communication middle layer implementation system, as shown in fig. 1, which includes a file parsing module 1, an automobile service module 2 and a vehicle hardware abstraction layer module 3.
Specifically, the file parsing module 1 is configured to receive a file including service information of SOMEIP services, service interface information of corresponding services, and SOMEIP protocol configuration information, determine a mode of performing service information transmission processing between a client and a server based on a preset SOMEIP communication configuration template, generate SOMEIP signal interface mappings between different automobile service modules 2 and different automobile hardware abstraction layer modules 3 corresponding to different service information, and provide the automobile service modules 2 with corresponding encapsulation signal interface definitions for the client; the automobile service module 2 is used for packaging a corresponding signal interface for calling the client based on the service information transmitted by the client, so that the client can transmit and receive the service information through the signal interface provided by the automobile service module 2, and the service information is transmitted with the vehicle hardware abstraction layer module 3 through the corresponding SOMEIP signal interface based on the service information; the vehicle hardware abstraction layer module 3 is used for transmitting service information with the automobile service module 2 through a corresponding SOMEIP signal interface based on the service information, and receiving and transmitting the service information with the service end through a SOMEIP protocol stack, and the vehicle hardware abstraction layer module 3 is integrated with a SOMEIP protocol stack for service information communication.
In the embodiment of the invention, the client can be an APP running on an Android system, the APP can be an APP on a vehicle-mounted central control screen and is used for providing an interface for a user to select vehicle services, for example, the user can select to open services such as air conditioning and playing music, the server can be vehicle-mounted ECU equipment, and the ECU equipment can execute the services after receiving the request service sent by the server and can also send the vehicle information acquired by a vehicle-mounted sensor to the server.
SOMEIP in the embodiment of the present invention, the communication is a method or data that one controller uses another controller through a service subscription manner, in service-oriented SOMEIP communication, SOMEIP provides three service interfaces, namely event Events, mainly provides an event interface, where the event may be a trigger event or a periodic event; methods of: remote procedure call, mainly used for remote call method; fields: the process data is accessed in order to achieve data acquisition and modification of the application. Different services have different sub-services and different application scenes, so different interfaces are required to be designed based on different services to meet different scene requirements, for example, a client needs a server to directly switch a window to realize remote control of the window, and a Method interface is selected, which is only used as an example.
The embodiment of the invention can design a service information file based on the service requirement of the vehicle, fill corresponding service information in the service file, such as service name, service ID and the like, and correspondingly design three types of service corresponding to each service, such as Events, methods and Fields, corresponding service interface information including a method interface type, a method interface name, a method interface ID, an event interface type, a name, an ID, a field interface type, a name and an ID, and fill SOMEIP protocol configuration information corresponding to each service, such as a protocol (UDP or TCP) IP address and a communication port required by SOMEIPD communication, and the designed service information file can be an xml file, a txt file and the like, which are only used as examples.
The method of determining the manner of the service information transmission processing between the server and the client may be, by way of example only and not limitation, to generate the corresponding relevant code file during the operation of the service data channel between the server and the client by analyzing the service information file by a code generation script such as python script, so that the automobile service module 2 and the vehicle hardware abstraction layer module 3 may operate directly based on the generated relevant code of the service data channel between the server and the client, the file parsing module 1 may generate SOMEIP signal interface mapping between the automobile service module 2 and the vehicle hardware abstraction layer module 3, which correspond to different service information, and package signal interface definition corresponding to the client provided by the automobile service module 2 according to interface types, communication protocol configuration information, etc. corresponding to different service types in the service information file, so that the automobile service module 2 and the vehicle hardware transmission module perform data transmission through corresponding SOMEIP signal interfaces when performing service information transmission, as shown in fig. 2, the automobile service module 2 may perform corresponding signal interface package based on service information transmitted by the client, package SOMEIP signal interface may call an upper client, the client may perform transceiving service information based on SOMEIP signal interfaces provided by the automobile service module 2, where the automobile service module 2 is CARSERVICE module, the vehicle hardware transmission module is VEHICLEHAL module, the VEHICLEHAL module is an executable program written by C++ running on Android, integrates SOMEIP protocol stack, realizes data channel service of a client and a server of SOMEIP, the CARSERVICE module is an Android system level APP application, and the VEHICLEHAL module packages SOMEIP signal interfaces to call the upper-layer common APP application through the binder cross-process communication.
As shown in fig. 2, the vehicle hardware abstraction layer module 3 in the embodiment of the present invention integrates SOMEIP protocol stacks for service information communication, where the vehicle abstraction layer module and the vehicle service module 2 transmit service information based on different SOMEIP signal interfaces corresponding to different services, and may also process transmission and reception of service information with the service end through SOMEIP protocol stacks, where the vehicle hardware abstraction layer module 3 further integrates a client end and a server end, the client end is configured to receive service request information sent by the client end, determine whether the service includes a required event group, if so, send the service request information to the service end through SOMEIP protocol stacks, and when the service end sends a notification data packet to the client end, the service end may send the notification data packet to the client end through corresponding to the server end, as shown in fig. 3, where the vehicle hardware abstraction layer module 3 may integrate multiple client ends, such as client1, client2, clientN may respectively correspond to different client ends, and server1, server2, serverN may respectively correspond to different service ends, as examples only.
According to the SOMEIP communication middle layer implementation system provided by the invention, the file analysis module 1 analyzes the file containing the service information of SOMEIP service, the service interface information of corresponding service and SOMEIP protocol configuration information to determine the mode of carrying out service information transmission processing between the client and the server, and generates SOMEIP signal interface mapping between different automobile service modules 2 corresponding to different service information and the vehicle hardware abstraction layer module 3 and encapsulation signal interface definition corresponding to the client provided by the automobile service modules 2, so that service information transmission between the client and the server can be automatically realized, if the service information transmission is carried out, the information transmission can be automatically carried out according to the analyzed configuration information, the SOMEIP protocol is used for receiving and transmitting signals in time conveniently, the client does not need to know any SOMEIP protocol details, and only needs to concentrate on service logic implementation of the client, thereby greatly improving development efficiency and having stronger expansibility.
Specifically, the file containing service information of SOMEIP services, service interface information of corresponding services and SOMEIP protocol configuration information is in an Excel table format.
In the embodiment of the present invention, the file including service information of SOMEIP services, service interface information of corresponding services, and SOMEIP protocol configuration information may be in an Excel table format, as shown in fig. 4, in a specific embodiment, the Excel table may be a SOMEIP signal matrix defining data such as a method of each service of a signal, a transmitted data type, etc., where a method naming and a data type format in the signal matrix all need to follow a fixed template, and the corresponding text parsing module is a matrix parsing module, where the signal matrix may specifically include information such as a service name, a service ID, a service description, a service type corresponding to a service, for example, an event type or a method type, a name, an ID, a description of a method or an event, and a transport layer protocol of TCP/IP corresponding to a service, etc., which are merely used as examples.
Specifically, the information in the file containing service information of SOMEIP services, service interface information of corresponding services and SOMEIP protocol configuration information is in a preset unified format.
In the embodiment of the invention, service naming, data type, method naming and the like in the file are all required to follow a unified template, a preset unified format is not limited, the preset unified format can be set according to an actual application scene, and the data format is the arrangement format of the data stored in the file or record. May be in the form of numerical values, characters or binary numbers, etc. The method is described by data type and number increment degree, for example, the naming length of the method is 7 digits, and only by way of example, because the service of SOMEIP is defined by a signal matrix, the naming of the service, the data type, the naming of the method and the like in the signal matrix follow a template, the corresponding service interfaces of SOMEIP service in VEHICLEHAL and CARSERVICE can be automatically generated by analyzing a matrix Excel table and a Python script, the development efficiency is greatly improved, and the user can add service information, service interface information and SOMEIP protocol configuration information corresponding to the service or application scene in the file of the unified template based on different services and different application scenes, and then automatically generate the corresponding service interfaces of SOMEIP service in VEHICLEHAL and CARSERVICE through a file analysis module and the Python script.
Specifically, the automobile service module 2 and the vehicle hardware abstraction layer module 3 establish cross-process communication through a Binder mechanism.
In a specific embodiment, as shown in fig. 3, the matrix parsing module generates a code for transmitting service information between the client and the server through the python script based on the matrix Excel file to determine a mode of transmitting service information between the client and the server, and generates SOMEIP signal interface mappings between different automobile service modules 2 and different automobile hardware abstraction layer modules 3 corresponding to different service information and package signal interface definitions corresponding to the client provided by the automobile service modules 2.
The automobile service module 2 operates based on a code of service information transmission between a client and a service end, which is generated by the matrix analysis module, and provides SOMEIP signal interfaces corresponding to service information encapsulation transmitted by the client to the client, so that the client can receive and send service information based on SOMEIP signal interfaces provided by the automobile service module 2, after receiving request service information sent by the client, the automobile service module 2 can receive the request service information based on SOMEIP signal interfaces corresponding to the vehicle hardware abstraction layer module 3 corresponding to the request service information through the data forwarding module and transmit the request service information to the vehicle hardware abstraction layer module 3 through a Binder mechanism, the vehicle hardware abstraction layer module 3 can receive response signals based on the received request service information through corresponding SOMEIP protocol stacks, such as a client, the client can judge whether the service information contains a required event group after receiving the request service information sent by the client, if the client is contained, the client can process data receiving and sending request service messages through SOMEIP Ethernet through the SOMEIP standard protocol stacks, the service module can receive the request service information and perform service execution after receiving the request service information, if the service is effective, the vehicle hardware abstraction layer module 3 can send response signals to the corresponding to the automobile hardware abstraction layer module 4 through the corresponding to the client interface, and can send response signals to the automobile hardware abstraction layer module 2 as response signals.
Specifically, the service information transmission processing between the client and the server includes: and the client terminal and the server terminal register the process of monitoring the service interface, and/or the client terminal sends the service request information to the server terminal, the corresponding server terminal receives the service request information and processes the service request information, and/or the server terminal processes the service request information, then sends response information to the client terminal, the corresponding client terminal receives the response information and processes the response information, and/or the server terminal sends event notification information to the client terminal, and the corresponding client terminal receives the event notification information and processes the event notification information.
In a specific embodiment, as shown in fig. 5, the server side determines whether the notification data packet is a subscribed event group through passing through the SOMEIP protocol stack of the vehicle hardware abstraction layer module 3 and then passing through the service server side of the vehicle hardware abstraction layer module 3, if yes, the notification data packet is forwarded to the automobile service module 2 through a corresponding SOMEIP signal interface, and the data forwarding module in the automobile service module 2 converts the notification data packet into a Java layer to send the notification data packet to the client through an encapsulation interface, which is merely used as an example. The client can monitor the android APP registration interface, so that SOMEIP signal interfaces provided for the client by the automobile service module 2 are defined, SOMEIP signal interfaces for data transmission between the automobile service module 2 and the service interface of the vehicle hardware abstraction layer are defined, and the method is only used as an example. The method for establishing the subscore subscription service and the subscore ack service response between the client and the service end can be that the client judges whether the service contains the required event group after receiving the required request service, if so, a subscore message is sent to the service end, and after the service end receives the request service, if the request service has a response, the subscore ack response can be sent, which is taken as an example only.
In accordance with an embodiment of the present invention, there is provided SOMEIP a communication middle layer implementation method embodiment, it being noted that the steps shown in the flowchart of the figures may be performed 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 may be performed in an order different than what is shown or described herein.
In this embodiment, a SOMEIP implementation method of a communication intermediate layer is provided, which may be used in the SOMEIP implementation system of the communication intermediate layer, and fig. 5 is a flowchart of a SOMEIP implementation method of a communication intermediate layer according to an embodiment of the present invention, as shown in fig. 6, where the flowchart includes the following steps:
In step S601, a file including service information of SOMEIP services, service interface information of corresponding services, and SOMEIP protocol configuration information is received, a mode of performing service information transmission processing between a client and a server is determined based on a preset SOMEIP communication configuration template, SOMEIP signal interface mappings between different automobile service modules corresponding to different service information and different automobile hardware abstraction layer modules are generated, and the automobile service modules provide the client with corresponding package signal interface definitions.
The method of determining the manner of service information transmission processing between the server and the client may be, by way of example only and not limitation, to generate relevant codes of corresponding service data channels between the server and the client by analyzing the service information file by a code generation script such as a python script, so that the automobile service module and the vehicle hardware abstraction layer module may operate directly based on the generated relevant codes of the service data channels between the server and the client, and the file analysis module may generate SOMEIP signal interface mappings between the automobile service module and the vehicle hardware abstraction layer module corresponding to different service information according to interface types, communication protocol configuration information and the like corresponding to different service information in the service information file, and provide the automobile service module with corresponding package signal interface definitions for the client, so that the automobile service module and the vehicle hardware abstraction layer module can transmit data signals through corresponding to SOMEIP interface when transmitting service information.
Step S602, based on the service information transmitted by the client, the corresponding signal interface is packaged and called for the client, so that the client can transmit and receive the service information through the signal interface provided by the automobile service module, and based on the service information, the service information is transmitted with the vehicle hardware abstraction layer module through the corresponding SOMEIP signal interface.
The automobile service module of the embodiment of the invention can be used for packaging the corresponding signal interface based on the service information transmitted by the client, packaging SOMEIP the signal interface for the client on the upper layer to call, and the client can be used for receiving and transmitting the service information based on the SOMEIP signal interface provided by the automobile service module, wherein the automobile service module is a CARSERVICE module.
In step S603, service information is transmitted with the automobile service module through a corresponding SOMEIP signal interface based on the service information, and service information is received and transmitted with the service end through a SOMEIP protocol stack, and the vehicle hardware abstraction layer module is integrated with a SOMEIP protocol stack for service information communication.
The vehicle abstract layer module and the automobile service module of the embodiment of the invention transmit service information based on different SOMEIP signal interfaces corresponding to different services and can also transmit and receive service information processed by a SOMEIP protocol stack with a service end, wherein the vehicle hardware abstract layer module is also integrated with a client end and a server end, the client end is used for receiving request service information sent by a client end and judging whether the service contains a required event group, if so, the request service information can be sent to the service end by the SOMEIP protocol stack, and when the service end sends notification data messages to the client end, the service end can send the notification data messages to the client end by the corresponding server end.
In one embodiment, the process of sending the request service information to the server by the client and receiving and processing the request service information by the corresponding server includes: based on the request service information sent by the client, the corresponding signal interface is packaged and called for the client, so that the client sends the request service information through the signal interface provided by the automobile service module, and the request service information sent by the client is sent to the automobile hardware abstraction layer module through the corresponding SOMEIP signal interface; and the vehicle hardware abstraction layer module is used for sending the request service information to the service end through the corresponding SOMEIP protocol stack so that the service end can process the request service information.
After receiving the service request information sent by the client, the automobile service module of the embodiment of the invention can transmit the service request information to the automobile hardware abstraction layer module through a Binder mechanism based on SOMEIP signal interfaces corresponding to the automobile hardware abstraction layer module corresponding to the service request information, the automobile hardware abstraction layer module receives the service request information through a corresponding SOMEIP protocol stack, such as a client, and judges whether the service information contains a required event group or not after receiving the service request information sent by the client, if so, the service request information is sent through SOMEIP Ethernet after processing data receiving and transmitting through a SOMEIP standard protocol stack to the service end, and service execution is carried out after the service request information is received by the service end.
The embodiment of the present invention further provides a vehicle, as shown in fig. 7, which includes the SOMEIP communication middle layer implementation system described in the above embodiment, and the detailed description is omitted herein.
The embodiment also provides a SOMEIP communication intermediate layer implementation device, which is used for implementing the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
The present embodiment provides a SOMEIP communication middle layer implementation device, which is applied to a SOMEIP communication middle layer implementation system of the foregoing embodiment, as shown in fig. 8, including:
SOMEIP a communication configuration module 801, configured to receive a file containing service information of SOMEIP service, service interface information of corresponding service, and SOMEIP protocol configuration information, determine a mode of performing service information transmission processing between a client and a server based on a preset SOMEIP communication configuration template, and generate SOMEIP signal interface mappings between different automobile service modules corresponding to different service information and automobile hardware abstraction layer modules, and provide the automobile service modules with corresponding encapsulation signal interface definitions for the client; the first information transmission module 802 is configured to encapsulate a corresponding signal interface for a client to call based on service information transmitted by the client, so that the client performs transmission and reception of service information through the signal interface provided by the automobile service module, and performs transmission of service information with the vehicle hardware abstraction layer module through a corresponding SOMEIP signal interface based on the service information; the second information transmission module 803 is configured to transmit service information with the vehicle service module through a corresponding SOMEIP signal interface based on the service information, and transmit and receive the service information with the service end through a SOMEIP protocol stack, where the vehicle hardware abstraction layer module is integrated with a SOMEIP protocol stack for service information communication.
In some optional embodiments, the process of sending the request service information to the server by the client, receiving and processing the request service information by the corresponding server includes: based on the request service information sent by the client, the corresponding signal interface is packaged and called for the client, so that the client sends the request service information through the signal interface provided by the automobile service module, and the request service information sent by the client is sent to the automobile hardware abstraction layer module through the corresponding SOMEIP signal interface; and the vehicle hardware abstraction layer module is used for sending the request service information to the service end through the corresponding SOMEIP protocol stack so that the service end can process the request service information.
Further functional descriptions of the above respective modules and units are the same as those of the above corresponding embodiments, and are not repeated here.
The SOMEIP communications interface implementation in this embodiment is presented in the form of functional units, where the units are ASIC (Application SPECIFIC INTEGRATED Circuit) circuits, processors and memories that execute one or more software or firmware programs, and/or other devices that provide the above-described functionality.
The embodiment of the invention also provides computer equipment, which is provided with the SOMEIP communication middle layer implementation device shown in the figure 8.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a computer device according to an alternative embodiment of the present invention, as shown in fig. 9, the computer device includes: one or more processors 10, memory 20, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are communicatively coupled to each other using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the computer device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In some alternative embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple computer devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 10 is illustrated in fig. 9.
The processor 10 may be a central processor, a network processor, or a combination thereof. The processor 10 may further include a hardware chip, among others. The hardware chip may be an application specific 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.
Wherein the memory 20 stores instructions executable by the at least one processor 10 to cause the at least one processor 10 to perform the methods shown in implementing the above embodiments.
The memory 20 may include a storage program area that may store an operating system, at least one application program required for functions, and a storage data area; the storage data area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, memory 20 may optionally include memory located remotely from processor 10, which may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk, or solid state disk; the memory 20 may also comprise a combination of the above types of memories.
The computer device further comprises input means 30 and output means 40. The processor 10, memory 20, input device 30, and output device 40 may be connected by a bus or other means, for example by a bus connection in fig. 9.
The input device 30 may receive input numeric or character information and generate signal inputs related to user settings and function control of the computer apparatus, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointer stick, one or more mouse buttons, a track ball, a joystick, and the like. The output means 40 may include a display device, auxiliary lighting means (e.g., LEDs), tactile feedback means (e.g., vibration motors), and the like. Such display devices include, but are not limited to, liquid crystal displays, light emitting diodes, displays and plasma displays. In some alternative implementations, the display device may be a touch screen.
The embodiments of the present invention also provide a computer readable storage medium, and the method according to the embodiments of the present invention described above may be implemented in hardware, firmware, or as a computer code which may be recorded on a storage medium, or as original stored in a remote storage medium or a non-transitory machine readable storage medium downloaded through a network and to be stored in a local storage medium, so that the method described herein may be stored on such software process on a storage medium using a general purpose computer, a special purpose processor, or programmable or special purpose hardware. The storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, a solid state disk or the like; further, the storage medium may also comprise a combination of memories of the kind described above. It will be appreciated that a computer, processor, microprocessor controller or programmable hardware includes a storage element that can store or receive software or computer code that, when accessed and executed by the computer, processor or hardware, implements the methods illustrated by the above embodiments.
Although embodiments of the present invention have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope of the invention as defined by the appended claims.

Claims (10)

1. A SOMEIP communication middle layer implementation system is characterized by being applied to an Android architecture, and comprises a file analysis module, an automobile service module and a vehicle hardware abstraction layer module, wherein,
The file analysis module is used for receiving a file containing service information of SOMEIP services, service interface information of corresponding services and SOMEIP protocol configuration information, determining a mode of carrying out service information transmission processing between a client and a service end based on a preset SOMEIP communication configuration template, generating SOMEIP signal interface mappings between different automobile service modules corresponding to different service information and automobile hardware abstraction layer modules, and providing the automobile service modules with encapsulation signal interface definitions corresponding to the client;
The automobile service module is used for packaging a corresponding signal interface for calling the client based on the service information transmitted by the client, so that the client can transmit and receive the service information through the signal interface provided by the automobile service module, and the service information is transmitted with the vehicle hardware abstraction layer module through the corresponding SOMEIP signal interface based on the service information;
the vehicle hardware abstraction layer module is used for transmitting service information with the automobile service module through a corresponding SOMEIP signal interface based on the service information, and receiving and transmitting the service information with the service end through a SOMEIP protocol stack, and the vehicle hardware abstraction layer module is integrated with a SOMEIP protocol stack for service information communication.
2. The system according to claim 1, wherein the service information transmission processing between the client and the server includes: and the client terminal and the server terminal register the process of monitoring the service interface, and/or the client terminal sends the service request information to the server terminal, the corresponding server terminal receives the service request information and processes the service request information, and/or the server terminal processes the service request information, then sends response information to the client terminal, the corresponding client terminal receives the response information and processes the response information, and/or the server terminal sends event notification information to the client terminal, and the corresponding client terminal receives the event notification information and processes the event notification information.
3. The system of claim 1, wherein the file containing service information of SOMEIP services, service interface information of corresponding services, and SOMEIP protocol configuration information is an Excel table format.
4. The system of claim 1, wherein the automotive service module establishes cross-process communication with the vehicle hardware abstraction layer module via a Binder mechanism.
5. A SOMEIP communications interface implementation method applied to a SOMEIP communications interface implementation system according to any one of claims 1to 4, the method comprising:
Receiving a file containing service information of SOMEIP services, service interface information of corresponding services and SOMEIP protocol configuration information, determining a mode of carrying out service information transmission processing between a client and a server based on a preset SOMEIP communication configuration template, generating SOMEIP signal interface mappings between different automobile service modules corresponding to different service information and automobile hardware abstraction layer modules, and providing the automobile service modules for encapsulation signal interface definitions corresponding to the client;
Based on the service information transmitted by the client, the corresponding signal interface is packaged and called for the client, so that the client receives and transmits the service information through the signal interface provided by the automobile service module, and based on the service information, the service information is transmitted with the automobile hardware abstraction layer module through the corresponding SOMEIP signal interface;
Based on the service information, the vehicle hardware abstraction layer module transmits the service information with the automobile service module through a corresponding SOMEIP signal interface, and transmits and receives the service information with the service end through a SOMEIP protocol stack, and the vehicle hardware abstraction layer module is integrated with a SOMEIP protocol stack for service information communication.
6. The method of claim 5, wherein the process of the client sending the request service information to the server, the corresponding server receiving the request service information and processing the request service information comprises:
Based on the request service information sent by the client, the corresponding signal interface is packaged and called for the client so that the client can send the request service information through the signal interface provided by the automobile service module,
The request service information sent by the client is sent to a vehicle hardware abstraction layer module through a corresponding SOMEIP signal interface;
And the vehicle hardware abstraction layer module is used for sending the request service information to the service end through the corresponding SOMEIP protocol stack so as to enable the service end to process the request service information.
7. A SOMEIP communications interface implementation apparatus for use in a SOMEIP communications interface implementation system as claimed in any one of claims 1 to 4, the apparatus comprising:
SOMEIP a communication configuration module, configured to receive a file containing service information of SOMEIP service, service interface information of corresponding service and SOMEIP protocol configuration information, determine a mode of service information transmission processing between a client and a server based on a preset SOMEIP communication configuration template, and generate SOMEIP signal interface mappings between different automobile service modules corresponding to different service information and automobile hardware abstraction layer modules, and package signal interface definitions corresponding to the client provided by the automobile service modules;
The first information transmission module is used for packaging a corresponding signal interface for calling the client based on the service information transmitted by the client so that the client can transmit 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 second information transmission module is used for transmitting service information with the automobile service module through a corresponding SOMEIP signal interface based on the service information, and receiving and transmitting the service information with the service end through a SOMEIP protocol stack, and the vehicle hardware abstraction layer module is integrated with a SOMEIP protocol stack for service information communication.
8. A vehicle comprising the SOMEIP communications interface implementation system of any one of claims 1-4.
9. A computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the SOMEIP communications interface implementation method of any one of claims 5 to 6.
10. A computer-readable storage medium having stored thereon computer instructions for causing a computer to perform the SOMEIP communications middle tier implementation method of any one of claims 5 to 6.
CN202410095941.1A 2024-01-23 2024-01-23 SOMEIP communication intermediate layer implementation system, method and vehicle Pending CN118138626A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410095941.1A CN118138626A (en) 2024-01-23 2024-01-23 SOMEIP communication intermediate layer implementation system, method and vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410095941.1A CN118138626A (en) 2024-01-23 2024-01-23 SOMEIP communication intermediate layer implementation system, method and vehicle

Publications (1)

Publication Number Publication Date
CN118138626A true CN118138626A (en) 2024-06-04

Family

ID=91244937

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410095941.1A Pending CN118138626A (en) 2024-01-23 2024-01-23 SOMEIP communication intermediate layer implementation system, method and vehicle

Country Status (1)

Country Link
CN (1) CN118138626A (en)

Similar Documents

Publication Publication Date Title
US20050154500A1 (en) Method and device for emitting and/or receiving information relating to a vehicle
CN112104754B (en) Network proxy method, system, device, equipment and storage medium
US20070121641A1 (en) Method and system for network services with a mobile vehicle
CN111345008B (en) Mobile edge host service notification method and device
US20170010910A1 (en) Data transfer method, communications network, subscriber and vehicle
CN112532673B (en) Message sending method and device, computer readable storage medium and electronic equipment
CN114355866B (en) Unmanned remote take-over system
CN111726414A (en) Vehicle reported data processing method and vehicle data reporting system
CN114115866A (en) Cross-domain-based vehicle-mounted scene self-defining method, device, equipment and storage medium
CN110691139B (en) Data transmission method, device, equipment and storage medium
US11297146B2 (en) Method for data transmission in a transportation vehicle communication network, transportation vehicle communication network, subscriber and transportation vehicle
CN112769700B (en) Routing method and routing system based on application method number
CN108512889B (en) Application response pushing method based on HTTP and proxy server
CN118138626A (en) SOMEIP communication intermediate layer implementation system, method and vehicle
CN111432020A (en) Internet of vehicles cloud service platform, Internet of vehicles system and vehicle machine control method
CN114745681B (en) Rich media information display method, rich media information display equipment and computer storage medium
CN115801498A (en) Vehicle-mounted Ethernet gateway system and operation method
US11804986B2 (en) Method for the remote management of a device connected to a residential gateway
CN111629014B (en) Request agent implementation method, implementation device, server and storage medium
CN115225706B (en) Data transmission method, device, vehicle and storage medium
US11843685B1 (en) Method and apparatus for embedded in-vehicle device-to-device cloud communications optimization
CN116709265A (en) Vehicle-mounted communication method, device, equipment and storage medium
CN107391342B (en) Database all-in-one machine and monitoring method thereof
CN117615009A (en) Proxy forwarding method, device and equipment for message
US20020169879A1 (en) Method and apparatus for firewall-evading stealth protocol

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination