CN117835183A - Vehicle SOA service communication method and system - Google Patents

Vehicle SOA service communication method and system Download PDF

Info

Publication number
CN117835183A
CN117835183A CN202211185450.3A CN202211185450A CN117835183A CN 117835183 A CN117835183 A CN 117835183A CN 202211185450 A CN202211185450 A CN 202211185450A CN 117835183 A CN117835183 A CN 117835183A
Authority
CN
China
Prior art keywords
field
data
protocol
service
attribute
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
CN202211185450.3A
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.)
Guangzhou Automobile Group Co Ltd
Original Assignee
Guangzhou Automobile Group 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 Guangzhou Automobile Group Co Ltd filed Critical Guangzhou Automobile Group Co Ltd
Priority to CN202211185450.3A priority Critical patent/CN117835183A/en
Priority to PCT/CN2023/115336 priority patent/WO2024066856A1/en
Publication of CN117835183A publication Critical patent/CN117835183A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Abstract

The invention relates to a vehicle SOA service communication method and a system thereof, wherein the method comprises the following steps: when receiving service request data of Bluetooth protocol of external device 1 When the data is stored, the data is converted according to a preset protocol conversion rule 1 Service request data converted into SOME/IP protocol 2 And data 2 Sending to a service provider; wherein the external device generates data when calling the vehicle service 2 Data according to preset protocol conversion rules 2 Converting to obtain service request data of Bluetooth protocol 1 The method comprises the steps of carrying out a first treatment on the surface of the Receiving service response data of SOME/IP protocol returned by service provider 3 Data is converted according to a preset protocol conversion rule 3 Service response data converted into Bluetooth protocol 4 And data 4 To an external device to make it outThe partial equipment converts data according to a preset protocol 4 Converting to obtain service response data of SOME/IP protocol 5 . The invention can solve the technical problem that the traditional vehicle SOME/IP service call is based on Ethernet communication and can not be directly applied to mobile equipment based on Bluetooth communication.

Description

Vehicle SOA service communication method and system
Technical Field
The invention relates to the technical field of vehicle communication, in particular to a vehicle SOA service communication method and a vehicle SOA service communication system.
Background
The English of SOA is called Service-OrientedARC architecture, chinese is called Service-oriented architecture, and is proposed by Gartner and widely applied to Internet software architecture, so that the SOA is widely applied to intelligent automobiles at present, and Service software of the intelligent automobiles is more and more abundant. The English name of SOME/IP is the full name of the Scalable service-Oriented MiddlewarE over IP, is a middleware specially used for the vehicle industry, is one of protocols for realizing SOA, and the traditional vehicle-mounted SOME/IP service call is based on Ethernet communication and cannot be directly applied to mobile equipment such as mobile phones, intelligent watches and the like based on Bluetooth communication.
Disclosure of Invention
The invention aims to provide a vehicle SOA service communication method and a vehicle SOA service communication system, which are used for solving the technical problem that the traditional vehicle-mounted SOME/IP service call is based on Ethernet communication and cannot be directly applied to mobile equipment based on Bluetooth communication.
To achieve the above object, an embodiment of the present invention provides a vehicle SOA service communication method, including:
when receiving service request data of Bluetooth protocol of external device 1 When the data is stored, the data is converted according to a preset protocol conversion rule 1 Service request data converted into SOME/IP protocol 2 And data the 2 Sending to a service provider; wherein the external device generates the data when calling a vehicle service 2 The data is converted according to a preset protocol conversion rule 2 Converting to obtain service request data of the Bluetooth protocol 1
Receiving service response data of SOME/IP protocol returned by the service provider 3 The data is converted according to a preset protocol conversion rule 3 Service response data converted into Bluetooth protocol 4 And data the 4 Transmitting the data to the external device through a Bluetooth link so that the external device converts the data according to a preset protocol conversion rule 4 Converting to obtain service response data of the SOME/IP protocol 5
The Bluetooth protocol is a low-power Bluetooth ATT protocol; service request data of the Bluetooth protocol 1 The method comprises an operation code Opcode field and an Attribute parameter Attribute Parameters field, wherein the Attribute parameter Attribute Parameters field comprises an Attribute Handle field, an Attribute Type Attribute Type field and an Attribute Value Attribute Value field; service request data of said SOME/IP protocol 2 The Message encoding method comprises a Message encoding Message ID field, a Request encoding Request ID field, a Length field and a Payload field;
Wherein the data is converted according to a preset protocol conversion rule 2 Converting to obtain service request data of the Bluetooth protocol 1 Comprising:
acquiring a preset first operation code, a first attribute handle and a first attribute type corresponding to a service request; filling the first operation code into an operation code Opcode field of a Bluetooth protocol; filling the first attribute Handle into an attribute Handle field of a Bluetooth protocol; filling the first Attribute Type into an Attribute Type field of a Bluetooth protocol; and converting the data 2 The Message code Message ID field, the Request code Request ID field, the Length field, the Payload field, and the Attribute Value Attribute Value field of the Bluetooth protocol; thereby obtaining the service request data of the Bluetooth protocol 1
Wherein the data is converted according to a preset protocol conversion rule 1 Service request data converted into SOME/IP protocol 2 Comprising:
extracting the data 1 The field content of the Attribute Value field of Attribute Value is deserialized to obtain corresponding message codes, request codes, lengths and loads; filling the Message code into a Message code Message ID field of an SOME/IP protocol; filling the request code into a request code Message ID field of the SOME/IP protocol; and fill the length into SOM The Length field of the E/IP protocol; filling the load into a message coding load Payload field of an SOME/IP protocol; thereby obtaining service request data of the SOME/IP protocol 2
Wherein, the service response data of the Bluetooth protocol 4 The method comprises an operation code Opcode field and an Attribute parameter Attribute Parameters field, wherein the Attribute parameter Attribute Parameters field comprises an Attribute Handle field, an Attribute Type Attribute Type field and an Attribute Value Attribute Value field; service response data of said SOME/IP protocol 3 The Message Code Message comprises a Message Code Message ID field, a Request Code Request ID field, a Length field, a Payload field and a Return Code field;
wherein the data is converted according to a preset protocol conversion rule 3 Service response data converted into Bluetooth protocol 4 Comprising:
acquiring a preset second operation code, a second attribute handle and a second attribute type corresponding to the service response; filling the second operation code into an operation code Optode field of a Bluetooth protocol; filling the second attribute Handle into an attribute Handle field of the Bluetooth protocol; filling the second Attribute Type into an Attribute Type field of a Bluetooth protocol; and converting the data 2 The Message Code Message ID field, the response Code Request ID field, the Length field, the Payload field and the Return Code field are filled into the Attribute Value Attribute Value field of the Bluetooth protocol after the field contents of the Message Code Message ID field, the response Code Request ID field, the Length field, the Payload field and the Return Code field are serialized; thereby obtaining service response data of the Bluetooth protocol 4
Wherein the external device converts the data according to a preset protocol conversion rule 4 Converting to obtain service response data of the SOME/IP protocol 5 Comprising:
extracting the data 4 The field content of the Attribute Value field of Attribute Value is deserialized to obtain corresponding message codes, request codes, lengths, loads and return codes; and fills the message code into SOME/IP protocolThe Message code Message ID field of the proposal; filling the request code into a request code Message ID field of the SOME/IP protocol; and fills the Length into the Length field of SOME/IP protocol; filling the load into a message coding load Payload field of an SOME/IP protocol; and populating the Return Code into the Return Code field of the SOME/IP protocol; thereby obtaining service request data of the SOME/IP protocol 5
The embodiment of the invention also provides a vehicle SOA service communication system which comprises a first vehicle service module and a second vehicle service module which are arranged at the vehicle end;
the first vehicle service module is configured to receive service request data of a bluetooth protocol of an external device 1 The data is converted according to a preset protocol conversion rule 1 Service request data converted into SOME/IP protocol 2 And data the 2 Sending to a service provider; wherein the external device generates the data when calling a vehicle service 2 The data is converted according to a preset protocol conversion rule 2 Converting to obtain service request data of the Bluetooth protocol 1
The second vehicle service module is further configured to receive service response data of the SOME/IP protocol returned by the service provider 3 The data is converted according to a preset protocol conversion rule 3 Service response data converted into Bluetooth protocol 4 And data the 4 Transmitting the data to the external device through a Bluetooth link so that the external device converts the data according to a preset protocol conversion rule 4 Converting to obtain service response data of the SOME/IP protocol 5
The Bluetooth protocol is a low-power Bluetooth ATT protocol; service request data of the Bluetooth protocol 1 The method comprises an operation code Opcode field and an Attribute parameter Attribute Parameters field, wherein the Attribute parameter Attribute Parameters field comprises an Attribute Handle field, an Attribute Type Attribute Type field and an Attribute Value Attribute Value field; the number of service requests of the SOME/IP protocolData of data 2 The Message encoding method comprises a Message encoding Message ID field, a Request encoding Request ID field, a Length field and a Payload field;
wherein the first vehicle service module includes:
the first service unit is used for acquiring a preset first operation code, a first attribute handle and a first attribute type corresponding to the service request; filling the first operation code into an operation code Opcode field of a Bluetooth protocol; filling the first attribute Handle into an attribute Handle field of a Bluetooth protocol; filling the first Attribute Type into an Attribute Type field of a Bluetooth protocol; and converting the data 2 The Message code Message ID field, the Request code Request ID field, the Length field, the Payload field, and the Attribute Value Attribute Value field of the Bluetooth protocol; thereby obtaining the service request data of the Bluetooth protocol 1
A second service unit for extracting the data 1 The field content of the Attribute Value field of Attribute Value is deserialized to obtain corresponding message codes, request codes, lengths and loads; filling the Message code into a Message code Message ID field of an SOME/IP protocol; filling the request code into a request code Message ID field of the SOME/IP protocol; and fills the Length into the Length field of SOME/IP protocol; filling the load into a message coding load Payload field of an SOME/IP protocol; thereby obtaining service request data of the SOME/IP protocol 2
Wherein the second vehicle service module includes:
the third service unit is used for acquiring a second preset operation code, a second attribute handle and a second attribute type corresponding to the service response; filling the second operation code into an operation code Optode field of a Bluetooth protocol; filling the second attribute Handle into an attribute Handle field of the Bluetooth protocol; filling the second Attribute Type into an Attribute Type field of a Bluetooth protocol; and converting the data 2 Message encoding Message of (a)The field contents of the ID field, the response Code Request ID field, the Length field, the load Payload field and the Return Code field are serialized and then filled into the Attribute Value Attribute Value field of the Bluetooth protocol; thereby obtaining service response data of the Bluetooth protocol 4
A fourth service unit for extracting the data 4 The field content of the Attribute Value field of Attribute Value is deserialized to obtain corresponding message codes, request codes, lengths, loads and return codes; filling the Message code into a Message code Message ID field of an SOME/IP protocol; filling the request code into a request code Message ID field of the SOME/IP protocol; and fills the Length into the Length field of SOME/IP protocol; filling the load into a message coding load Payload field of an SOME/IP protocol; and populating the Return Code into the Return Code field of the SOME/IP protocol; thereby obtaining service request data of the SOME/IP protocol 5
The external equipment is provided with an application APP, an equipment service agent component and an equipment Bluetooth module;
the device service agent component is used for issuing services;
the application APP is used for calling the service issued by the equipment service proxy component through a service interface of the SOME/IP protocol and sending the service request data of the SOME/IP protocol 2 Sending to the device service agent component;
the device service agent component is further configured to convert the data according to a preset protocol conversion rule 2 Converting to obtain the data 1 And data the 1 Sending the data to the Bluetooth module of the equipment;
the Bluetooth module of the device is used for transmitting the data 1 And the data is sent to the vehicle Bluetooth module through a Bluetooth link.
Wherein, the device Bluetooth module is further used for receiving the data when it receives the data 4 At the time, the data 4 Sending to the device service agent component;
the device service agent component is further configured to convert the data according to a preset protocol conversion rule 4 Conversion to the data 5 And data the 5 And sending the APP to the application APP.
The embodiment of the invention has the following beneficial effects:
the external equipment with Bluetooth communication function such as a mobile phone and a smart watch and a vehicle end are provided with protocol conversion rules for mutually converting the Bluetooth protocol and the SOME/IP protocol, service request data or service response data of the SOME/IP protocol of the external equipment and the vehicle end can be converted into data of the Bluetooth protocol by utilizing the protocol conversion rules, and the data are transmitted through a Bluetooth link between the external equipment and the vehicle end, so that the external equipment with Bluetooth communication function such as the mobile phone and the smart watch can call the vehicle-mounted SOME/IP service through Bluetooth communication, and the technical problem that the traditional vehicle-mounted SOME/IP service call is based on Ethernet communication and cannot be directly applied to mobile equipment based on Bluetooth communication can be solved.
Additional features and advantages of the invention will be set forth in the detailed description which follows.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a vehicle SOA service communication method according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of an ATT PDU format of a bluetooth low energy ATT protocol according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of a standard SOME/IP service interface format according to an embodiment of the present invention.
Fig. 4 is a schematic diagram of fields of service request data of the SOME/IP protocol according to an embodiment of the present invention.
Fig. 5 is a schematic diagram of fields of normal service response data of the SOME/IP protocol according to an embodiment of the present invention.
Fig. 6 is a schematic diagram of fields of the abnormal service response data of the SOME/IP protocol according to an embodiment of the present invention.
Fig. 7 is a schematic diagram of service request data and service response data of a bluetooth protocol according to an embodiment of the invention.
Fig. 8 is a schematic diagram illustrating communication between an external device and a bluetooth module of a vehicle via a bluetooth link according to an embodiment of the invention.
Fig. 9 is a schematic diagram of a vehicle SOA service communication system according to an embodiment of the present invention.
Detailed Description
Various exemplary embodiments, features and aspects of the disclosure will be described in detail below with reference to the drawings. In addition, numerous specific details are set forth in the following examples in order to provide a better illustration of the invention. It will be understood by those skilled in the art that the present invention may be practiced without some of these specific details. In some instances, well known means have not been described in detail in order to not obscure the present invention.
Referring to fig. 1, an embodiment of the present invention proposes a vehicle SOA service communication method, which includes the steps of:
step S1, when receiving service request data of Bluetooth protocol of external device 1 When the data is stored, the data is converted according to a preset protocol conversion rule 1 Service request data converted into SOME/IP protocol 2 And data the 2 Sending to a service provider; wherein the external device generates the data when calling a vehicle service 2 The data is converted according to a preset protocol conversion rule 2 Converting to obtain service request data of the Bluetooth protocol 1
Specifically, the external device is an intelligent device with a bluetooth communication function, such as a mobile phone, an intelligent watch, and the like, the service provider is a sensor or an actuator of a vehicle, and a corresponding SOME/IP service interface is deployed on the external device according to the vehicle service issued by the service provider; for example, the vehicle service is a window control service, and when a user controls a window of the vehicle through an external device, the window control service needs to be called through the external device to realize control such as opening or closing of the window; the vehicle service is, for example, a control door lock service, and when a user controls the vehicle door lock through external equipment, the control door lock service needs to be called through the external equipment to realize control such as unlocking or locking of the door lock; there are a number of vehicle services, which are related to the degree of intelligibility of the vehicle, just to name a few, other vehicle services being similar to the control of window services, door lock services, etc.;
for example, one or more application APP, a device service proxy component and a device bluetooth module are installed on the external device, where the device service proxy component is configured to provide a SOME/IP service interface for the application APP, issue a vehicle service, and when the user operates the application APP of the external device to invoke the vehicle service through the SOME/IP service interface, the application APP generates the data 2 The data is processed 2 Send to the device service agent component, further, the device service agent component sends the data to the device service agent component 2 Service request data converted into Bluetooth protocol 1 The method comprises the steps of sending the data to a vehicle end through a Bluetooth link; in the embodiment, a protocol conversion rule of data is preset, so that data conversion between a Bluetooth protocol and an SOME/IP protocol is standardized, and when data communication between external equipment and a vehicle end is performed, corresponding data is converted into the Bluetooth protocol and then transmitted;
wherein the vehicle end receives the data 1 Thereafter, the data is required to be 1 Analyzing to obtain corresponding service request data of SOME/IP protocol according to analysis result 2 That is, the application APP of the external device calls the service request data generated by the SOME/IP service interface, and then the data is used for generating the service request data 2 Sending to the corresponding service provider;
step S2, receiving service response data of SOME/IP protocol returned by the service provider 3 According to preset protocol conversion rulesThe data is processed 3 Service response data converted into Bluetooth protocol 4 And data the 4 Transmitting the data to the external device through a Bluetooth link so that the external device converts the data according to a preset protocol conversion rule 4 Converting to obtain service response data of the SOME/IP protocol 5
Specifically, the service provider is receiving the data 2 Thereafter, according to the data 2 The data requested to be invoked is fed back/responded, and the data is generated 3 Further, a device bluetooth module that needs to convert it into a bluetooth protocol and then send it to the external device through a bluetooth link; the Bluetooth module of the equipment receives the data 4 Thereafter, the data is 4 Issuing the data to the equipment service agent component which performs data processing on the data 4 Converting to obtain service response data of the SOME/IP protocol 5 Then, the application APP is sent to the application APP, and the application APP finishes the calling of the service;
it should be noted that, in the embodiment of the invention, the protocol conversion rule that the bluetooth protocol and the SOME/IP protocol are mutually converted is deployed at the external device and the vehicle end with bluetooth communication functions such as the mobile phone and the smart watch, and the service request data or the service response data of the SOME/IP protocol of the external device and the vehicle end can be converted into the data of the bluetooth protocol by using the protocol conversion rule, and the data is transmitted through the bluetooth link between the external device and the vehicle end, so that the external device with bluetooth communication functions such as the mobile phone and the smart watch can call the vehicle-mounted SOME/IP service through bluetooth communication, and the technical problem that the traditional vehicle-mounted SOME/IP service call is based on ethernet communication and cannot be directly applied to the mobile device based on bluetooth communication can be solved.
Further, the Bluetooth protocol is a Bluetooth low energy ATT protocol.
Specifically, the ATT PDU format of the bluetooth low energy ATT protocol is shown in fig. 2, and includes an operation code Opcode and an attribute parameter Attribute Parameters, where the verification signature Authentication Signature is optional, which is not limited in this embodiment; the Attribute parameters Attribute Parameters include an Attribute Handle, an Attribute Type and an Attribute Value, wherein the Attribute rights Attribute Permissions do not need to be transmitted in communication; when data transmission is performed, it is necessary to convert the corresponding data into the ATT PDU format shown in fig. 2.
Further, as shown in fig. 3, when a standard SOME/IP service interface format is used for service call, the fields that must be filled include Message ID, request ID and Length, payload in fig. 3, and other fields are basically fixed, and do not need to be filled with application providing information;
wherein the data is converted according to a preset protocol conversion rule 2 Converting to obtain service request data of the Bluetooth protocol 1 Comprising:
acquiring a preset first operation code, a first attribute handle and a first attribute type corresponding to a service request; filling the first operation code into an operation code Opcode field of a Bluetooth protocol; filling the first attribute Handle into an attribute Handle field of a Bluetooth protocol; filling the first Attribute Type into an Attribute Type field of a Bluetooth protocol; and converting the data 2 The Message code Message ID field, the Request code Request ID field, the Length field, the Payload field, and the Attribute Value Attribute Value field of the Bluetooth protocol; thereby obtaining the service request data of the Bluetooth protocol 1
Wherein the data is converted according to a preset protocol conversion rule 1 Service request data converted into SOME/IP protocol 2 Comprising:
extracting the data 1 The field content of the Attribute Value field of Attribute Value is deserialized to obtain corresponding message codes, request codes, lengths and loads; filling the Message code into a Message code Message ID field of an SOME/IP protocol; filling the request code into a request code Message ID field of the SOME/IP protocol; and fills the Length into the Length field of SOME/IP protocol; and will beThe load is filled in a message coding load Payload field of the SOME/IP protocol; thereby obtaining service request data of the SOME/IP protocol 2
Wherein the data is converted according to a preset protocol conversion rule 3 Service response data converted into Bluetooth protocol 4 Comprising:
acquiring a preset second operation code, a second attribute handle and a second attribute type corresponding to the service response; filling the second operation code into an operation code Optode field of a Bluetooth protocol; filling the second attribute Handle into an attribute Handle field of the Bluetooth protocol; filling the second Attribute Type into an Attribute Type field of a Bluetooth protocol; and converting the data 2 The Message Code Message ID field, the response Code Request ID field, the Length field, the Payload field and the Return Code field are filled into the Attribute Value Attribute Value field of the Bluetooth protocol after the field contents of the Message Code Message ID field, the response Code Request ID field, the Length field, the Payload field and the Return Code field are serialized; thereby obtaining service response data of the Bluetooth protocol 4
Wherein the external device converts the data according to a preset protocol conversion rule 4 Converting to obtain service response data of the SOME/IP protocol 5 Comprising:
extracting the data 4 The field content of the Attribute Value field of Attribute Value is deserialized to obtain corresponding message codes, request codes, lengths, loads and return codes; filling the Message code into a Message code Message ID field of an SOME/IP protocol; filling the request code into a request code Message ID field of the SOME/IP protocol; and fills the Length into the Length field of SOME/IP protocol; filling the load into a message coding load Payload field of an SOME/IP protocol; and populating the Return Code into the Return Code field of the SOME/IP protocol; thereby obtaining service request data of the SOME/IP protocol 5
The following describes the SOME/IP message contents with a service interface pad of a Method conforming to the SOME/IP definition of service Request/service Response type, e.g., a certain service pre-assigned message ID (Message ID) contains service ID (Service ID) x1400 and Method ID (Method ID) 0x0001; the request ID (Request ID) for application APP pre-allocation is Client ID (Client ID) 0x0001 and session ID (Session ID) x0001; the Message Type (Message Type) of SOME/IP Request is 0x00, and the Message Type (Message Type) of SOME/IP Response is 0x80; the Payload of the SOME/IP Request contains the content of the Method input parameter InParameter (4 bytes) serialized in byte stream;
the content of the SOME/IP Request is shown in FIG. 4, wherein the Payload of the SOME/IP Response contains the output parameter OutParameter (2 bytes) of the Method, which is serialized according to the byte stream; the content of a normal SOME/IP Response is shown in FIG. 5, and the content of an abnormal SOME/IP Response is shown in FIG. 6.
More specifically, the protocol conversion rule of the present embodiment specifies that the mapping relationship between the SOME/IP service interface and the bluetooth low energy ATT protocol filling part is as follows:
as described above, data of bluetooth ATT protocol 1 Data of SOME/IP protocol including an operation code field OPcode, an Attribute Handle field Handle, an Attribute Type field Attribute Type, an Attribute Value field Attribute Value 2 The method comprises the following steps of including Message ID, length, request ID, payload and other field contents;
referring to FIG. 7, the preset operation code of the Bluetooth ATT protocol is 0x12 corresponding to the Request of SOME/IP Request/Response Method; distributing a preset attribute Handle1 and a custom attribute type AT1 (UUID) to all requests; then there is, the data 2 Conversion to the data 1 When the data is stored, 0x12 is filled in the operation code field, handle1 is filled in the attribute Handle field, AT1 is filled in the attribute type field, and the data is stored in the attribute Handle field 2 The contents of Message ID, length, request ID, payload are serialized in byte stream and then filled into an attribute Value field, which can be denoted as Request attribute Value1, thereby obtaining the data 1 = [ 0x12, handle1, value1 ]; it can be understood that the external device mainly sends the request attribute Value1 to the service provider at the vehicle side when calling the service.
Response corresponding to SOME/IP Request/Response Method, its operation code of Bluetooth ATT protocol prescribes 0x1B; distributing another preset attribute Handle2 and another custom attribute type AT2 (UUID) to all Response; then there is, the data 3 Conversion to the data 4 When the data is stored, 0x12 is filled in the operation code field, handle2 is filled in the attribute Handle field, AT2 is filled in the attribute type field, and the data is stored in the attribute type field 3 The contents of Message ID, length, request ID, returnCode, payload are serialized in byte stream and then filled into an attribute Value field, which can be referred to herein as a response attribute Value2, to obtain the data 4 = [ 0x1b, handle2, value2 ], it may be understood that when the vehicle end responds to the service, the request attribute Value2 is mainly sent to the application APP of the external device.
The data is described as 1 Converting to obtain the data 2 And converting the data 4 Converting to obtain the data 5 The principle of (a) can be obtained by referring to the above description, and the description is omitted here.
Therefore, the communication procedure of the SOME/IP Request/Response between the external device and the vehicle end in this embodiment may be represented as the interactive procedure shown in FIG. 8, and the length of the attribute Value is set to be able to cover the data length of the Request and Response of the SOME/IP Request/Response Method, so that 64 bytes may be preferentially used for facilitating the in-vehicle communication.
Referring to fig. 9, another embodiment of the present invention further provides a vehicle SOA service communication system, including a first vehicle service module and a second vehicle service module disposed at a vehicle end;
The first vehicle service module is configured to receive service request data of a bluetooth protocol of an external device 1 The data is converted according to a preset protocol conversion rule 1 Service request data converted into SOME/IP protocol 2 And data the 2 Sending to a service provider; wherein the external device generates the data when calling a vehicle service 2 The data is converted according to a preset protocol conversion rule 2 Conversion is carried out to obtainService request data of the Bluetooth protocol 1
The second vehicle service module is further configured to receive service response data of the SOME/IP protocol returned by the service provider 3 The data is converted according to a preset protocol conversion rule 3 Service response data converted into Bluetooth protocol 4 And data the 4 Transmitting the data to the external device through a Bluetooth link so that the external device converts the data according to a preset protocol conversion rule 4 Converting to obtain service response data of the SOME/IP protocol 5
Further, the first vehicle service module includes:
the first service unit is used for acquiring a preset first operation code, a first attribute handle and a first attribute type corresponding to the service request; filling the first operation code into an operation code Opcode field of a Bluetooth protocol; filling the first attribute Handle into an attribute Handle field of a Bluetooth protocol; filling the first Attribute Type into an Attribute Type field of a Bluetooth protocol; and converting the data 2 The Message code Message ID field, the Request code Request ID field, the Length field, the Payload field, and the Attribute Value Attribute Value field of the Bluetooth protocol; thereby obtaining the service request data of the Bluetooth protocol 1
A second service unit for extracting the data 1 The field content of the Attribute Value field of Attribute Value is deserialized to obtain corresponding message codes, request codes, lengths and loads; filling the Message code into a Message code Message ID field of an SOME/IP protocol; filling the request code into a request code Message ID field of the SOME/IP protocol; and fills the Length into the Length field of SOME/IP protocol; filling the load into a message coding load Payload field of an SOME/IP protocol; thereby obtaining service request data of the SOME/IP protocol 2
Further, the second vehicle service module includes:
the third service unit is used for acquiring a second preset operation code, a second attribute handle and a second attribute type corresponding to the service response; filling the second operation code into an operation code Optode field of a Bluetooth protocol; filling the second attribute Handle into an attribute Handle field of the Bluetooth protocol; filling the second Attribute Type into an Attribute Type field of a Bluetooth protocol; and converting the data 2 The Message Code Message ID field, the response Code Request ID field, the Length field, the Payload field and the Return Code field are filled into the Attribute Value Attribute Value field of the Bluetooth protocol after the field contents of the Message Code Message ID field, the response Code Request ID field, the Length field, the Payload field and the Return Code field are serialized; thereby obtaining service response data of the Bluetooth protocol 4
A fourth service unit for extracting the data 4 The field content of the Attribute Value field of Attribute Value is deserialized to obtain corresponding message codes, request codes, lengths, loads and return codes; filling the Message code into a Message code Message ID field of an SOME/IP protocol; filling the request code into a request code Message ID field of the SOME/IP protocol; and fills the Length into the Length field of SOME/IP protocol; filling the load into a message coding load Payload field of an SOME/IP protocol; and populating the Return Code into the Return Code field of the SOME/IP protocol; thereby obtaining service request data of the SOME/IP protocol 5
Further, the external equipment is provided with an application APP, an equipment service agent component and an equipment Bluetooth module;
the device service agent component is used for issuing services;
The application APP is used for calling the service issued by the equipment service proxy component through a service interface of the SOME/IP protocol and sending the service request data of the SOME/IP protocol 2 Sending to the device service agent component;
the device service agent component is further configured to convert the data according to a preset protocol conversion rule 2 Proceeding withConverting to obtain the data 1 And data the 1 Sending the data to the Bluetooth module of the equipment;
the Bluetooth module of the device is used for transmitting the data 1 And the data is sent to the vehicle Bluetooth module through a Bluetooth link.
Further, the device bluetooth module is further configured to, when it receives the data 4 At the time, the data 4 Sending to the device service agent component;
the device service agent component is further configured to convert the data according to a preset protocol conversion rule 4 Conversion to the data 5 And data the 5 And sending the APP to the application APP.
It should be noted that, the system of the present embodiment corresponds to the method of the foregoing embodiment, and therefore, a portion of the system of the present embodiment that is not described in detail may be obtained by referring to the method of the foregoing embodiment, which is not described herein.
Also, the system of the above embodiment may be stored in a computer-readable storage medium if implemented in the form of a software functional module and sold or used as a separate product.
Another embodiment of the present invention also proposes a computer-readable storage medium storing a computer program which, when executed by a processor, implements the vehicle SOA service communication method of the above embodiment.
In particular, the computer-readable storage medium may include: any entity or recording medium, a USB flash disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, etc. capable of carrying the computer program instructions.
The foregoing description of embodiments of the invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and substitutions will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the various embodiments described. The terminology used herein was chosen in order to best explain the principles of the embodiments, the practical application, or the technical improvements in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (10)

1. A vehicle SOA service communication method, the method comprising:
when receiving service request data of Bluetooth protocol of external device 1 When the data is stored, the data is converted according to a preset protocol conversion rule 1 Service request data converted into SOME/IP protocol 2 And data the 2 Sending to a service provider; wherein the external device generates the data when calling a vehicle service 2 The data is converted according to a preset protocol conversion rule 2 Converting to obtain service request data of the Bluetooth protocol 1
Receiving service response data of SOME/IP protocol returned by the service provider 3 The data is converted according to a preset protocol conversion rule 3 Service response data converted into Bluetooth protocol 4 And data the 4 Transmitting the data to the external device through a Bluetooth link so that the external device converts the data according to a preset protocol conversion rule 4 Converting to obtain service response data of the SOME/IP protocol 5
2. The vehicle SOA service communication method according to claim 1, wherein said bluetooth protocol is bluetooth low energy ATT protocol; service request data of the Bluetooth protocol 1 The method comprises an operation code Opcode field and an Attribute parameter Attribute Parameters field, wherein the Attribute parameter Attribute Parameters field comprises an Attribute Handle field, an Attribute Type Attribute Type field and an Attribute Value Attribute Value field; service request data of said SOME/IP protocol 2 Includes Message code Message ID field, request code Request ID field, length fieldLoad Payload field;
wherein the data is converted according to a preset protocol conversion rule 2 Converting to obtain service request data of the Bluetooth protocol 1 Comprising:
acquiring a preset first operation code, a first attribute handle and a first attribute type corresponding to a service request; filling the first operation code into an operation code Opcode field of a Bluetooth protocol; filling the first attribute Handle into an attribute Handle field of a Bluetooth protocol; filling the first Attribute Type into an Attribute Type field of a Bluetooth protocol; and converting the data 2 The Message code Message ID field, the Request code Request ID field, the Length field, the Payload field, and the Attribute Value Attribute Value field of the Bluetooth protocol; thereby obtaining the service request data of the Bluetooth protocol 1
3. The vehicular SOA service communication method according to claim 2, wherein the data is converted according to a preset protocol conversion rule 1 Service request data converted into SOME/IP protocol 2 Comprising:
extracting the data 1 The field content of the Attribute Value field of Attribute Value is deserialized to obtain corresponding message codes, request codes, lengths and loads; filling the Message code into a Message code Message ID field of an SOME/IP protocol; filling the request code into a request code Message ID field of the SOME/IP protocol; and fills the Length into the Length field of SOME/IP protocol; filling the load into a message coding load Payload field of an SOME/IP protocol; thereby obtaining service request data of the SOME/IP protocol 2
4. A vehicular SOA service communication method according to any one of claims 1 to 3, characterized in that the service response data of the bluetooth protocol 4 Includes an operation code Optode field and an Attribute parameter Attribute PaA parameters field, wherein the Attribute parameter Attribute Parameters field includes an Attribute Handle field, an Attribute Type field, and an Attribute Value field; service response data of said SOME/IP protocol 3 The Message Code Message comprises a Message Code Message ID field, a Request Code Request ID field, a Length field, a Payload field and a Return Code field;
Wherein the data is converted according to a preset protocol conversion rule 3 Service response data converted into Bluetooth protocol 4 Comprising:
acquiring a preset second operation code, a second attribute handle and a second attribute type corresponding to the service response; filling the second operation code into an operation code Optode field of a Bluetooth protocol; filling the second attribute Handle into an attribute Handle field of the Bluetooth protocol; filling the second Attribute Type into an Attribute Type field of a Bluetooth protocol; and converting the data 2 The Message Code Message ID field, the response Code Request ID field, the Length field, the Payload field and the Return Code field are filled into the Attribute Value Attribute Value field of the Bluetooth protocol after the field contents of the Message Code Message ID field, the response Code Request ID field, the Length field, the Payload field and the Return Code field are serialized; thereby obtaining service response data of the Bluetooth protocol 4
5. The vehicular SOA service communication method as claimed in claim 4, wherein the external device converts the data according to a preset protocol conversion rule 4 Converting to obtain service response data of the SOME/IP protocol 5 Comprising:
extracting the data 4 The field content of the Attribute Value field of Attribute Value is deserialized to obtain corresponding message codes, request codes, lengths, loads and return codes; filling the Message code into a Message code Message ID field of an SOME/IP protocol; filling the request code into a request code Message ID field of the SOME/IP protocol; and fills the Length into the Length field of SOME/IP protocol; and fills the load into the message of SOME/IP protocol Code Payload field; and populating the Return Code into the Return Code field of the SOME/IP protocol; thereby obtaining service request data of the SOME/IP protocol 5
6. The vehicle SOA service communication system is characterized by comprising a first vehicle service module and a second vehicle service module which are arranged at a vehicle end;
the first vehicle service module is configured to receive service request data of a bluetooth protocol of an external device 1 The data is converted according to a preset protocol conversion rule 1 Service request data converted into SOME/IP protocol 2 And data the 2 Sending to a service provider; wherein the external device generates the data when calling a vehicle service 2 The data is converted according to a preset protocol conversion rule 2 Converting to obtain service request data of the Bluetooth protocol 1
The second vehicle service module is further configured to receive service response data of the SOME/IP protocol returned by the service provider 3 The data is converted according to a preset protocol conversion rule 3 Service response data converted into Bluetooth protocol 4 And data the 4 Transmitting the data to the external device through a Bluetooth link so that the external device converts the data according to a preset protocol conversion rule 4 Converting to obtain service response data of the SOME/IP protocol 5
7. The vehicular SOA service communication system according to claim 6, wherein said bluetooth protocol is bluetooth low energy ATT protocol; service request data of the Bluetooth protocol 1 The method comprises an operation code Opcode field and an Attribute parameter Attribute Parameters field, wherein the Attribute parameter Attribute Parameters field comprises an Attribute Handle field, an Attribute Type Attribute Type field and an Attribute Value Attribute Value field; service request data of said SOME/IP protocol 2 Includes Message code Message ID field and request code RAn request ID field, a Length field, a Payload field;
wherein the first vehicle service module includes:
the first service unit is used for acquiring a preset first operation code, a first attribute handle and a first attribute type corresponding to the service request; filling the first operation code into an operation code Opcode field of a Bluetooth protocol; filling the first attribute Handle into an attribute Handle field of a Bluetooth protocol; filling the first Attribute Type into an Attribute Type field of a Bluetooth protocol; and converting the data 2 The Message code Message ID field, the Request code Request ID field, the Length field, the Payload field, and the Attribute Value Attribute Value field of the Bluetooth protocol; thereby obtaining the service request data of the Bluetooth protocol 1
A second service unit for extracting the data 1 The field content of the Attribute Value field of Attribute Value is deserialized to obtain corresponding message codes, request codes, lengths and loads; filling the Message code into a Message code Message ID field of an SOME/IP protocol; filling the request code into a request code Message ID field of the SOME/IP protocol; and fills the Length into the Length field of SOME/IP protocol; filling the load into a message coding load Payload field of an SOME/IP protocol; thereby obtaining service request data of the SOME/IP protocol 2
8. The vehicular SOA service communication system according to claim 6, wherein the service response data of the bluetooth protocol 4 The method comprises an operation code Opcode field and an Attribute parameter Attribute Parameters field, wherein the Attribute parameter Attribute Parameters field comprises an Attribute Handle field, an Attribute Type Attribute Type field and an Attribute Value Attribute Value field; service response data of said SOME/IP protocol 3 Includes Message encoding Message ID field, request encoding Request ID field, length field, payload field, and return generationA Code Return Code field;
wherein the second vehicle service module includes:
the third service unit is used for acquiring a second preset operation code, a second attribute handle and a second attribute type corresponding to the service response; filling the second operation code into an operation code Optode field of a Bluetooth protocol; filling the second attribute Handle into an attribute Handle field of the Bluetooth protocol; filling the second Attribute Type into an Attribute Type field of a Bluetooth protocol; and converting the data 2 The Message Code Message ID field, the response Code Request ID field, the Length field, the Payload field and the Return Code field are filled into the Attribute Value Attribute Value field of the Bluetooth protocol after the field contents of the Message Code Message ID field, the response Code Request ID field, the Length field, the Payload field and the Return Code field are serialized; thereby obtaining service response data of the Bluetooth protocol 4
A fourth service unit for extracting the data 4 The field content of the Attribute Value field of Attribute Value is deserialized to obtain corresponding message codes, request codes, lengths, loads and return codes; filling the Message code into a Message code Message ID field of an SOME/IP protocol; filling the request code into a request code Message ID field of the SOME/IP protocol; and fills the Length into the Length field of SOME/IP protocol; filling the load into a message coding load Payload field of an SOME/IP protocol; and populating the Return Code into the Return Code field of the SOME/IP protocol; thereby obtaining service request data of the SOME/IP protocol 5
9. The vehicular SOA service communication system according to claim 6, wherein said external device is provided with an application APP, a device service agent component and a device bluetooth module;
the device service agent component is used for issuing services;
the application APP is used for calling the service issued by the equipment service proxy component through the service interface of the SOME/IP protocol and sending the service request data da of the SOME/IP protocolta 2 Sending to the device service agent component;
the device service agent component is further configured to convert the data according to a preset protocol conversion rule 2 Converting to obtain the data 1 And data the 1 Transmitting the data to the Bluetooth module of the equipment through a Bluetooth link;
the Bluetooth module of the device is used for transmitting the data 1 And the data is sent to the vehicle Bluetooth module through a Bluetooth link.
10. The vehicular SOA service communication system of claim 9, wherein,
the Bluetooth module of the device is also used for receiving the data when the Bluetooth module of the device receives the data 4 At the time, the data 4 Sending to the device service agent component;
the device service agent component is further configured to convert the data according to a preset protocol conversion rule 4 Conversion to the data 5 And data the 5 And sending the APP to the application APP.
CN202211185450.3A 2022-09-27 2022-09-27 Vehicle SOA service communication method and system Pending CN117835183A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211185450.3A CN117835183A (en) 2022-09-27 2022-09-27 Vehicle SOA service communication method and system
PCT/CN2023/115336 WO2024066856A1 (en) 2022-09-27 2023-08-28 Service communication method and system for vehicle soa

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211185450.3A CN117835183A (en) 2022-09-27 2022-09-27 Vehicle SOA service communication method and system

Publications (1)

Publication Number Publication Date
CN117835183A true CN117835183A (en) 2024-04-05

Family

ID=90476064

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211185450.3A Pending CN117835183A (en) 2022-09-27 2022-09-27 Vehicle SOA service communication method and system

Country Status (2)

Country Link
CN (1) CN117835183A (en)
WO (1) WO2024066856A1 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070049714A (en) * 2005-11-09 2007-05-14 삼성전자주식회사 Apparatus and method for service change of mobile communication terminal using multi wireless communication protocol
CN110460621A (en) * 2019-09-10 2019-11-15 上海怿星电子科技有限公司 A kind of industry ethernet based on SOME/IP agreement and CAN bus data transfer device and system
US11838375B2 (en) * 2020-11-12 2023-12-05 Harman International Industries, Incorporated Universal software communication bus
CN113900429B (en) * 2021-12-09 2022-03-18 北京航空航天大学 Gateway system design method for converting CAN bus into vehicle-mounted Ethernet bus

Also Published As

Publication number Publication date
WO2024066856A1 (en) 2024-04-04

Similar Documents

Publication Publication Date Title
CN111600909B (en) Data processing method, device, protocol conversion equipment and storage medium
CN112291124B (en) Vehicle-mounted network ECU communication method based on SOME/IP protocol
US8423608B2 (en) Method and device for communicating according to the standard protocol OPC UA in a client/server system
CN112367233B (en) Vehicle-mounted network ECU communication method and device based on service-oriented architecture
CN107689868B (en) Communication method and device for client application and trusted application and terminal
US10298492B2 (en) System and method for interworking between vehicle controller and external resource
US20030014521A1 (en) Open platform architecture for shared resource access management
CN108243022B (en) Network service message transmission method, device, terminal and server
CA2255128A1 (en) Marshaling and unmarshaling framework for supporting filters in a distributed object system
CN111552568B (en) Cloud service calling method and device
CN111726256B (en) Vehicle instruction issuing processing method and system and vehicle data processing method and system
CN111427570A (en) Intelligent interface processing method and device
CN117835183A (en) Vehicle SOA service communication method and system
KR101554760B1 (en) Network message transformation device and methods thereof
CN109787997B (en) PHP-based TCP (Transmission control protocol) service method and server
CN112929863B (en) Bluetooth information transmission method, and remote control method and device for intelligent door lock
KR100840513B1 (en) Web services system and method
US20230418965A1 (en) System and Method for Improving the Efficiency in Vehicular Data Access While Maintaining Data Security
KR20070013129A (en) Mobile communication terminal having car control function and its method, and car control device by using controller area network
CN116582364B (en) Data access method, system, device, electronic equipment and readable storage medium
CN114116067B (en) Information configuration method and device for internal and external systems, electronic equipment and readable storage medium
CN116279198A (en) Service-based external equipment self-adaptation method and system
CN109067743B (en) Server monitoring method and device
CN114051058B (en) Interface calling method, platform, electronic equipment and computer storage medium
CN111835728B (en) Method and device for hiding privileges to access real network and 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