Communication method of vehicle control service module in vehicle and related device

By setting common interfaces and mapping relationships in the vehicle, the problems of inflexible communication interfaces and inability to port in the system platform in the prior art are solved, and high scalability of vehicle functions and high portability of system platforms are achieved.

CN119996436APending Publication Date: 2025-05-13SAIC MOTOR
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202311510923.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-13
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

In the prior art, the communication interface between the application interaction module and the vehicle control service module in the vehicle is not flexible enough and it is difficult to adapt to the expansion of vehicle functions; the communication interface between the vehicle control service module and the system basic module is deeply bound to the system platform, which limits the portability of the system platform.

Method used

By setting the first general interface and the second general interface, the target request sent by the application interaction module is received, and corresponding request and response data are converted and sent according to the mapping relationship between the preset vehicle function identification and the system function identification, so as to improve the universality and flexibility of the communication interface.

Benefits of technology

It improves the universality and flexibility of the communication interface between the application interaction module and the vehicle control service module, and improves the scalability of vehicle functions; at the same time, the deep binding between the communication interface between the vehicle control service module and the system basic module and the system platform is lifted, and the portability of the system platform is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996436A_ABST
    Figure CN119996436A_ABST
Patent Text Reader

Abstract

The invention discloses a communication method of a vehicle control service module in a vehicle and a related device. The method comprises the following steps: receiving a first target request which is sent by an application interaction module and carries a target vehicle function identifier through a first universal interface; converting the target vehicle function identifier into a target system function identifier according to a mapping relationship between a plurality of preset vehicle function identifiers and a plurality of preset system function identifiers; sending a second target request carrying a target system function identifier corresponding to the first target request to a system basic module; receiving first response data which is returned by the system basic module for the second target request and carries a target system function identifier; converting the target system function identifier into a target vehicle function identifier according to the mapping relation; and sending second response data carrying the target vehicle function identifier and corresponding to the first response data to the application interaction module through the second universal interface. Based on the method, the expansibility of vehicle functions and the transportability of a system platform are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle communication technology, and in particular to a communication method and related devices for a vehicle control service module in a vehicle. Background Art

[0002] At present, the vehicle control service module in the vehicle receives the vehicle function setting instructions sent by the application interaction module, distributes the vehicle function setting instructions downward through the system basic module to realize the control of the vehicle; and receives the setting response data sent by the system basic module, and feeds back the setting response data upward so that the application interaction module can update the display interface.

[0003] However, the communication interface between the application interaction module and the vehicle control service module is deeply bound to the vehicle function, which is not flexible enough and is not conducive to the expansion of vehicle functions. The communication interface between the vehicle control service module and the system basic module is deeply bound to the system platform, which is not flexibly applicable and is not conducive to the transplantation of the system platform. Summary of the invention

[0004] In view of this, an embodiment of the present application provides a communication method and related device for a vehicle control service module in a vehicle, so as to improve the versatility and flexibility of the communication interface between the application interaction module and the vehicle control service module, and enhance the scalability of vehicle functions; and release the deep binding of the communication interface between the vehicle control service module and the system basic module with the system platform, and enhance the portability of the system platform.

[0005] On the one hand, an embodiment of the present application provides a communication method of a vehicle control service module in a vehicle, the method comprising:

[0006] Receiving, through the first universal interface, a first target request carrying a target vehicle function identifier sent by the application interaction module;

[0007] According to a mapping relationship between a plurality of preset vehicle function identifiers and a plurality of preset system function identifiers, converting the target vehicle function identifier into a target system function identifier;

[0008] Sending a second target request corresponding to the first target request and carrying the target system function identifier to the system basic module;

[0009] Receiving first response data carrying the target system function identifier returned by the system basic module in response to the second target request;

[0010] According to the mapping relationship, converting the target system function identifier into the target vehicle function identifier;

[0011] The second response data carrying the target vehicle function identifier corresponding to the first response data is sent to the application interaction module through the second universal interface; the second response data is used to update the display interface of the application interaction module.

[0012] Optionally, the preprocessing step of the mapping relationship includes:

[0013] Acquire the plurality of preset vehicle function identifiers and the plurality of preset system function identifiers;

[0014] Determining a mapping relationship between the plurality of preset vehicle function identifiers and the plurality of preset system function identifiers;

[0015] Initializing the vehicle control service module;

[0016] Reading the mapping relationship;

[0017] The mapping relationship is saved in the vehicle control service module.

[0018] Optionally, the preset vehicle function identifier includes a control domain identifier, a controller identifier and a function identifier of the vehicle.

[0019] Optionally, when the first target request is a first setting request, the first general interface is a general setting interface, the second target request is a second setting request, and the second general interface is a general callback interface; the general setting interface includes a vehicle function identifier, a numerical type, and a setting value, the general callback interface includes a callback status and a callback data encapsulation class, and the callback data encapsulation class includes the vehicle function identifier, the numerical type, and the setting value.

[0020] Optionally, when the first target request is a first acquisition request, the first general interface is a general acquisition interface, the second target request is a second acquisition request, and the second general interface is the general acquisition interface; the general acquisition interface includes a vehicle function identifier and a numerical type.

[0021] Optionally, the method further includes:

[0022] Get the new vehicle function identifier;

[0023] Determine that the newly added vehicle function identifier corresponds to a preset system function identifier;

[0024] According to the newly added vehicle function identifier and the preset system function identifier corresponding to the newly added vehicle function identifier, the mapping relationship saved by the vehicle control service module is updated.

[0025] Optionally, the method further includes:

[0026] Get the new system function identifier;

[0027] Determining that the newly added system function identifier corresponds to a preset vehicle function identifier;

[0028] The vehicle function identifier is preset correspondingly according to the preset vehicle function identifier and the newly added system function identifier, and the mapping relationship saved by the vehicle control service module is updated.

[0029] On the other hand, an embodiment of the present application provides a communication device of a vehicle control service module in a vehicle, the device comprising: a receiving unit, a conversion unit and a sending unit;

[0030] The receiving unit is used to receive a first target request carrying a target vehicle function identifier sent by the application interaction module through the first universal interface;

[0031] The conversion unit is used to convert the target vehicle function identifier into a target system function identifier according to the mapping relationship between the plurality of preset vehicle function identifiers and the plurality of preset system function identifiers;

[0032] The sending unit is used to send a second target request corresponding to the first target request and carrying the target system function identifier to the system basic module;

[0033] The receiving unit is further configured to receive first response data carrying the target system function identifier returned by the system basic module in response to the second target request;

[0034] The conversion unit is further used to convert the target system function identifier into the target vehicle function identifier according to the mapping relationship;

[0035] The sending unit is also used to send second response data carrying the target vehicle function identifier corresponding to the first response data to the application interaction module through a second universal interface; the second response data is used to update the display interface of the application interaction module.

[0036] Optionally, the device further comprises: a pre-processing unit;

[0037] The pre-processing unit is used for:

[0038] Acquire the plurality of preset vehicle function identifiers and the plurality of preset system function identifiers;

[0039] Determining a mapping relationship between the plurality of preset vehicle function identifiers and the plurality of preset system function identifiers;

[0040] Initializing the vehicle control service module;

[0041] Reading the mapping relationship;

[0042] The mapping relationship is saved in the vehicle control service module.

[0043] Optionally, the preset vehicle function identifier includes a control domain identifier, a controller identifier and a function identifier of the vehicle.

[0044] Optionally, when the first target request is a first setting request, the first general interface is a general setting interface, the second target request is a second setting request, and the second general interface is a general callback interface; the general setting interface includes a vehicle function identifier, a numerical type, and a setting value, the general callback interface includes a callback status and a callback data encapsulation class, and the callback data encapsulation class includes the vehicle function identifier, the numerical type, and the setting value.

[0045] Optionally, when the first target request is a first acquisition request, the first general interface is a general acquisition interface, the second target request is a second acquisition request, and the second general interface is the general acquisition interface; the general acquisition interface includes a vehicle function identifier and a numerical type.

[0046] Optionally, the device further includes: a first acquiring unit, a first determining unit and a first updating unit;

[0047] The first acquisition unit is used to acquire a newly added vehicle function identifier;

[0048] The first determining unit is used to determine that the newly added vehicle function identifier corresponds to a preset system function identifier;

[0049] The first updating unit is used to update the mapping relationship saved by the vehicle control service module according to the newly added vehicle function identifier and the preset system function identifier corresponding to the newly added vehicle function identifier.

[0050] Optionally, the device further includes: a second acquiring unit, a second determining unit, and a second updating unit;

[0051] The second acquisition unit is used to acquire a newly added system function identifier;

[0052] The second determining unit is used to determine that the newly added system function identifier corresponds to a preset vehicle function identifier;

[0053] The second updating unit is used to preset the vehicle function identifier corresponding to the preset vehicle function identifier and the newly added system function identifier, and update the mapping relationship saved by the vehicle control service module.

[0054] On the other hand, an embodiment of the present application provides a vehicle, the vehicle comprising a processor and a memory:

[0055] The memory is used to store a computer program and transmit the computer program to the processor;

[0056] The processor is configured to execute the method described in the above aspects according to the instructions in the computer program.

[0057] On the other hand, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program is used to implement the method described in the above aspects.

[0058] Compared with the prior art, this application has at least the following advantages:

[0059] Adopting the technical solution of the embodiment of the present application, the first target request carrying the target vehicle function identifier sent by the application interaction module is received through the first universal interface; according to the mapping relationship between multiple preset vehicle function identifiers and multiple preset system function identifiers, the target vehicle function identifier is converted into the target system function identifier; the second target request carrying the target system function identifier corresponding to the first target request is sent to the system basic module; the first response data carrying the target system function identifier returned by the system basic module for the second target request is received; according to the mapping relationship, the target system function identifier is converted into the target vehicle function identifier; the second response data carrying the target vehicle function identifier corresponding to the first response data is sent to the application interaction module through the second universal interface to update the display interface of the application interaction module. It can be seen that the method sets the first universal interface, the second universal interface, etc. to improve the versatility and flexibility of the communication interface between the application interaction module and the vehicle control service module, and improve the extensibility of the vehicle function; and sets the mapping relationship between multiple preset vehicle function identifiers and multiple preset system function identifiers, releases the deep binding of the communication interface between the vehicle control service module and the system basic module and the system platform, and improves the portability of the system platform. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0061] Figure 1 A schematic diagram of a system framework involved in an application scenario in an embodiment of the present application;

[0062] Figure 2 A flow chart of a communication method of a vehicle control service module in a vehicle provided in an embodiment of the present application;

[0063] Figure 3 A schematic diagram of converting a target vehicle function identifier into a target system function identifier and converting a target system function identifier into a target vehicle function identifier provided in an embodiment of the present application;

[0064] Figure 4 A specific flow chart of a communication method of a vehicle control service module in a vehicle provided in an embodiment of the present application;

[0065] Figure 5 A schematic diagram of the structure of a communication device of a vehicle control service module in a vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION

[0066] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0067] At present, the vehicle control service module in the vehicle receives the vehicle function setting instructions sent by the application interaction module, distributes the vehicle function setting instructions downward through the system basic module to realize the control of the vehicle; and receives the setting response data sent by the system basic module, and feeds back the setting response data upward so that the application interaction module can update the display interface.

[0068] However, after research, it was found that the communication interface between the application interaction module and the vehicle control service module is deeply bound to the vehicle function. The communication interface is not flexible enough, which is not conducive to the expansion of vehicle functions. The communication interface between the vehicle control service module and the system basic module is deeply bound to the system platform. The communication interface cannot be flexibly applied, which is not conducive to the transplantation of the system platform.

[0069] In order to solve this problem, in an embodiment of the present application, a first target request carrying a target vehicle function identifier sent by an application interaction module is received through a first universal interface; the target vehicle function identifier is converted into a target system function identifier according to a mapping relationship between multiple preset vehicle function identifiers and multiple preset system function identifiers; a second target request carrying a target system function identifier corresponding to the first target request is sent to a system basic module; the first response data carrying a target system function identifier returned by the system basic module for the second target request is received; according to the mapping relationship, the target system function identifier is converted into a target vehicle function identifier; the second response data carrying a target vehicle function identifier corresponding to the first response data is sent to the application interaction module through a second universal interface to update the display interface of the application interaction module. It can be seen that the method sets a first universal interface, a second universal interface, etc. to improve the versatility and flexibility of the communication interface between the application interaction module and the vehicle control service module, and improve the extensibility of the vehicle function; and sets a mapping relationship between multiple preset vehicle function identifiers and multiple preset system function identifiers, releases the deep binding of the communication interface between the vehicle control service module and the system basic module and the system platform, and improves the portability of the system platform.

[0070] For example, one of the scenarios of the embodiments of the present application can be seen in Figure 1 , Figure 1 This is a schematic diagram of the system framework involved in an application scenario in an embodiment of the present application. The scenario includes an application interaction module 101, a vehicle control service module 102, a system basic module 103 and a microcontroller unit (MCU) module 104. Among them, the mapping relationship between the multiple preset system function identifiers stored in the system basic module 103 and the multiple preset control signal identifiers stored in the MCU module 104 is used to construct a mapping relationship between multiple preset vehicle function identifiers and multiple preset system function identifiers.

[0071] First, in the above application scenario, the action description of the implementation method provided in the embodiment of the present application is executed by the vehicle control service module 102; however, the embodiment of the present application is not limited in terms of the execution subject, as long as the actions disclosed in the implementation method provided in the embodiment of the present application are executed.

[0072] Secondly, the above scenario is only an example scenario provided by the embodiment of the present application, and the embodiment of the present application is not limited to this scenario.

[0073] The specific implementation of the communication method and related devices of the vehicle control service module in the vehicle in the embodiment of the present application will be described in detail below with reference to the accompanying drawings.

[0074] First, a specific implementation method of the communication method of the vehicle control service module in the vehicle in the embodiment of the present application is described in detail through an embodiment.

[0075] See also Figure 2 , shows a flow chart of a communication method of a vehicle control service module in a vehicle in an embodiment of the present application. In this embodiment, the method may include the following steps:

[0076] S201: Receive a first target request carrying a target vehicle function identifier sent by an application interaction module through a first universal interface.

[0077] At present, the communication interface between the application interaction module and the vehicle control service module in vehicles is deeply bound to the vehicle functions, which is not flexible enough and is not conducive to the expansion of vehicle functions. The communication interface between the vehicle control service module and the system basic module is deeply bound to the system platform, which is not flexibly applicable and is not conducive to the transplantation of the system platform.

[0078] Therefore, in the embodiment of the present application, a first universal interface, a second universal interface, etc. are set between the application interaction module and the vehicle control service module to improve the universality and flexibility of the communication interface between the application interaction module and the vehicle control service module, thereby improving the scalability of vehicle functions; and a mapping relationship between multiple preset vehicle function identifiers and multiple preset system function identifiers is set to release the deep binding of the communication interface between the vehicle control service module and the system basic module and the system platform, thereby improving the portability of the system platform. Based on this, the application interaction module sends a first target request to the vehicle control service module through the first universal interface, and the first target request needs to carry the target vehicle function identifier among the multiple preset vehicle function identifiers; then the vehicle control service module receives the first target request carrying the target vehicle function identifier sent by the application interaction module through the first universal interface.

[0079] S202: Converting a target vehicle function identifier into a target system function identifier according to a mapping relationship between a plurality of preset vehicle function identifiers and a plurality of preset system function identifiers.

[0080] In an embodiment of the present application, after executing S201, the vehicle control service module receives the first target request carrying the target vehicle function identifier sent by the application interaction module, considering that when the vehicle control service module communicates with the system basic module, the system basic module can only recognize the preset system function identifier; therefore, the vehicle control service module needs to convert the target vehicle function identifier into a preset system function identifier corresponding to the target vehicle function identifier in the multiple preset vehicle function identifiers, that is, the target system function identifier, according to the mapping relationship between the multiple preset vehicle function identifiers and the multiple preset system function identifiers.

[0081] S203: Sending a second target request carrying a target system function identifier corresponding to the first target request to the system basic module.

[0082] In an embodiment of the present application, after executing S202, the vehicle control service module converts the target vehicle function identifier into the target system function identifier, the vehicle control service module can convert the first target request carrying the target vehicle function identifier into a second target request carrying the target system function identifier, and the first target request corresponds to the second target request; then the vehicle control service module sends the second target request to the system basic module.

[0083] S204: Receive first response data carrying the target system function identifier returned by the system basic module in response to the second target request.

[0084] In an embodiment of the present application, after executing S203, the vehicle control service module sends a second target request carrying the target system function identifier to the system basic module, the system basic module responds to the second target request, obtains first response data carrying the target system function identifier, and returns it to the vehicle control service module; the vehicle control service module receives the first response data carrying the target system function identifier returned by the system basic module.

[0085] S205: Convert the target system function identifier into a target vehicle function identifier according to the mapping relationship.

[0086] In an embodiment of the present application, after executing S203, the vehicle control service module receives the first response data carrying the target system function identifier returned by the system basic module, considering that when the vehicle control service module communicates with the application interaction module, the application interaction module can only recognize the preset vehicle function identifier; therefore, the vehicle control service module needs to convert the target system function identifier into a preset vehicle function identifier corresponding to the target system function identifier in the multiple preset system function identifiers, that is, the target vehicle function identifier, according to the mapping relationship between the multiple preset vehicle function identifiers and the multiple preset system function identifiers.

[0087] As an example, see Figure 3 , Figure 3 A schematic diagram of converting a target vehicle function identifier into a target system function identifier and a target system function identifier into a target vehicle function identifier provided in an embodiment of the present application; wherein, the target vehicle function identifier is VehiclePropertyID, and the target system function identifier is CarPropertyID, then VehiclePropertyID can be converted to CarPropertyID through the mapping relationship between multiple preset vehicle function identifiers and multiple preset system function identifiers, and CarPropertyID can be converted to VehiclePropertyID through the mapping relationship between multiple preset vehicle function identifiers and multiple preset system function identifiers.

[0088] S206: Sending second response data carrying the target vehicle function identifier corresponding to the first response data to the application interaction module through the second universal interface; the second response data is used to update the display interface of the application interaction module.

[0089] In an embodiment of the present application, after executing S205 the vehicle control service module converts the target system function identifier into the target vehicle function identifier, the vehicle control service module can convert the first response data carrying the target system function identifier into second response data carrying the target vehicle function identifier, and the second response data corresponds to the first response data; then the vehicle control service module sends the second response data to the application interaction module through the second universal interface, so that the application interaction module updates the display interface of the application interaction module according to the second response data carrying the target vehicle function identifier.

[0090] Through the various implementation methods provided in this embodiment, a first target request carrying a target vehicle function identifier is received by an application interaction module through a first universal interface; the target vehicle function identifier is converted into a target system function identifier according to a mapping relationship between multiple preset vehicle function identifiers and multiple preset system function identifiers; a second target request carrying a target system function identifier corresponding to the first target request is sent to a system basic module; first response data carrying a target system function identifier is received and returned by the system basic module for the second target request; according to the mapping relationship, the target system function identifier is converted into a target vehicle function identifier; and second response data carrying a target vehicle function identifier corresponding to the first response data is sent to the application interaction module through a second universal interface to update the display interface of the application interaction module.

[0091] It can be seen that the method sets the first general interface, the second general interface, etc. to improve the universality and flexibility of the communication interface between the application interaction module and the vehicle control service module, and improve the scalability of the vehicle functions; and sets a mapping relationship between multiple preset vehicle function identifiers and multiple preset system function identifiers to release the deep binding of the communication interface between the vehicle control service module and the system basic module and the system platform, thereby improving the portability of the system platform.

[0092] In an embodiment of the present application, in order to convert the target vehicle function identifier into the target system function identifier according to the mapping relationship between multiple preset vehicle function identifiers and multiple preset system function identifiers when executing S201, first, it is necessary to obtain multiple preset vehicle function identifiers and multiple preset system function identifiers, and determine the mapping relationship between multiple preset vehicle function identifiers and multiple preset system function identifiers; then, initialize the vehicle control service module to read the mapping relationship between multiple preset vehicle function identifiers and multiple preset system function identifiers, and save the mapping relationship in the vehicle control service module. Therefore, in an optional implementation of the embodiment of the present application, the preprocessing step of the mapping relationship includes the following S1-S5:

[0093] S1: Acquire multiple preset vehicle function identifiers and multiple preset system function identifiers.

[0094] Among them, in an optional implementation of the embodiment of the present application, the preset vehicle function identifier needs to identify the function of the controller in the control domain of the vehicle. Therefore, the preset vehicle function identifier needs to include the vehicle's control domain identifier, controller identifier and function identifier.

[0095] As an example, the preset vehicle function identifier (VehiclePropertyID) is represented by a hexadecimal number, consisting of 4 bytes. Each byte is assigned a value in combination with the vehicle's overall electrical architecture. Byte 1 (Byte1) represents the control domain, and each control domain is sorted backward from 01, such as 01 corresponds to the entertainment control domain, 02 corresponds to the intelligent driving control domain, and so on; Byte 2 (Byte2) represents the controller, and within each control domain, each controller is sorted backward from 01, such as within the entertainment control domain, 01 corresponds to the air-conditioning controller, 02 corresponds to the front entertainment controller, and so on; Byte 3 and Byte 4 (Byte3Byte4) represent functions, and within each control domain, each function of each controller is sorted backward from 01, such as for the air-conditioning controller in the entertainment control domain, 0001 corresponds to the on / off function, and so on; based on this, the air-conditioning on / off function identifier of the air-conditioning controller in the entertainment control domain in the preset vehicle function identifier is 0x01010001.

[0096] Specifically, the preset vehicle function identifier (VehiclePropertyID) is shown in Table 1 below:

[0097] Table 1 VehiclePropertyID

[0098]

[0099] S2: Determine a mapping relationship between a plurality of preset vehicle function identifiers and a plurality of preset system function identifiers.

[0100] Based on the above Table 1, the mapping relationship between multiple preset vehicle function identifiers (VehiclePropertyID) and multiple preset system function identifiers (CarPropertyID) is shown in the following Table 2:

[0101] Table 2 Mapping relationship between multiple VehiclePropertyIDs and multiple CarPropertyIDs

[0102] VehiclePropertyID CarPropertyID DataType Alias 0x02010001 356***315 INT32 Alias1 0x02010002 356***316 FLOAT Alias2 0x02010003 356***317 FLOAT Alias3 0x02010004 356***318 INT32 Alias4 0x02010005 356***319 INT32 Alias5 0x02010006 356***320 INT32 Alias6 0x02010007 356***321 INT32 Alias7 … … … …

[0103] S3: Initialize the vehicle control service module.

[0104] S4: Read the mapping relationship.

[0105] S5: Save the mapping relationship in the vehicle control service module.

[0106] In an embodiment of the present application, in an optional implementation of an embodiment of the present application, the application interaction module can send a vehicle function setting instruction to the vehicle control service module, that is, the application interaction module can send a first setting request to the vehicle control service module through a universal setting interface, wherein the universal setting interface needs to include a vehicle function identifier, a numerical type, and a setting value; and receive the response data of the system basic module to the first setting request sent by the vehicle control service module through a universal callback interface, wherein the universal callback interface includes a callback state and a callback data encapsulation class composed of a vehicle function identifier, a numerical type, and a setting value. Based on this, the first target request is a first setting request, the first universal interface is a universal setting interface, the second target request is a second setting request, and the second universal interface is a universal callback interface.

[0107] As an example, the generic settings interface is represented as follows:

[0108] <e>void setProperty(Class <e>clazz,int propertyId,E value)

[0109] Among them, propertyId is the vehicle function identifier, clazz is the numeric type, and value is the set value.

[0110] The representation of the generic callback interface is as follows:

[0111] void onResponse(int errorCode,VehiclePropertyBean bean)

[0112] Among them, errorCode is the callback status, bean is the callback data encapsulation class, which consists of propertyId, clazz and value.

[0113] In an embodiment of the present application, in an optional implementation of the embodiment of the present application, the application interaction module can also send a function status acquisition instruction to the vehicle control service module, that is, the application interaction module can send a first acquisition request to the vehicle control service module through a universal acquisition interface, wherein the universal acquisition interface needs to include a vehicle function identifier and a numerical type; and receive the response data of the system basic module to the first acquisition request sent by the vehicle control service module through the universal acquisition interface. Based on this, when the first target request is the first acquisition request, the first universal interface is the universal acquisition interface, the second target request is the second acquisition request, and the second universal interface is the universal acquisition interface; the universal acquisition interface includes a vehicle function identifier and a numerical type.

[0114] As an example, the generic acquisition interface is represented as follows:

[0115] <e>E getProperty(Class <e>clazz,int propertyId)

[0116] Among them, propertyId is the vehicle function identifier, and clazz is a numeric type.

[0117] In summary, see Figure 4 , Figure 4 A specific flow chart of a communication method for a vehicle control service module in a vehicle provided in an embodiment of the present application; wherein, for the vehicle control service module, the vehicle control service module is initialized (init), the mapping relationship between multiple preset vehicle function identifiers and multiple preset system function identifiers is read (readIDs), and the mapping relationship is saved in the vehicle control service module (saveIDs). When the application interaction module sends a first setting request carrying a target vehicle function identifier (VehiclePropertyID) to the vehicle control service module through a universal setting interface to implement setting of a vehicle function (setVehicleProperty), after receiving the first setting request, the vehicle control service module converts the VehiclePropertyID into a target system function identifier (CarPropertyID) according to the mapping relationship between multiple preset vehicle function identifiers and multiple preset system function identifiers, i.e., VehiclePropertyIDToCarPropertyID; the vehicle control service module converts the first setting request carrying the VehiclePropertyID into a second setting request carrying the CarProperty, and sends the second setting request to the system base module to set the system function (setCarProperty). After the second setting request is made by the system basic module, a request response is made for the second setting request, and the first response data carrying CarProperty is obtained and returned to the vehicle control service module (onResponse); after the vehicle control service module receives the first response data carrying CarProperty returned by the system basic module, the vehicle control service module converts CarPropertyID into VehicleP ropertyID according to the mapping relationship between multiple preset vehicle function identifiers and multiple preset system function identifiers, that is, CarPropertyIDToVehiclePropertyID, and the vehicle control service module converts the first response data carrying CarPropertyID into the second response data carrying VehiclePropertyID, and sends the second response data to the application interaction module (onResponse). The vehicle control service module sends the second response data to the application interaction module through the general callback interface, so that the application interaction module updates the display interface of the application interaction module according to the second response data carrying VehiclePropertyID, that is, refreshUI.

[0118] When the application interaction module sends a first acquisition request carrying the target vehicle function identifier (VehiclePropertyID) to the vehicle control service module through the general acquisition interface to obtain the vehicle function status (getVehicleProperty), after receiving the first acquisition request, the vehicle control service module converts the VehiclePropertyID into CarPropertyID according to the mapping relationship between multiple preset vehicle function identifiers and multiple preset system function identifiers, that is, VehiclePropertyIDToCarPropertyID; the vehicle control service module converts the first acquisition request carrying VehiclePropertyID into a second acquisition request carrying CarProperty, and sends the second acquisition request to the system basic module to obtain the system function status (getCarProperty). After the system basic module obtains the second request, it responds to the second setting request, obtains the first response data carrying CarProperty, and returns it to the vehicle control service module (return); after the vehicle control service module receives the first response data carrying CarProperty returned by the system basic module, it converts CarPropertyID to VehiclePropertyID according to the mapping relationship between multiple preset vehicle function identifiers and multiple preset system function identifiers, that is, CarPropertyIDToVehiclePropertyID, and the vehicle control service module converts the first response data carrying CarPropertyID to the second response data carrying VehiclePropertyID, and sends the second response data to the application interaction module (return). The vehicle control service module sends the second response data to the application interaction module through the general callback interface, so that the application interaction module updates the display interface of the application interaction module according to the second response data carrying VehiclePropertyID, that is, refreshUI.

[0119] In addition, in the embodiment of the present application, in order to make it unnecessary to modify the communication code of the vehicle control service module in the vehicle when adding new vehicle functions in the future, thereby reducing the development workload, on the basis of the versatility and flexibility of the communication interface between the application interaction module and the vehicle control service module, the newly added vehicle function identifier can be directly obtained as the newly added vehicle function identifier, and the newly added vehicle function identifier corresponding to the preset system function identifier can be determined. By adding the newly added vehicle function identifier and the newly added vehicle function identifier corresponding to the preset system function identifier, the mapping relationship saved by the vehicle control service module can be updated, and the newly added vehicle function can be realized, thereby further improving the scalability of the vehicle function. Therefore, in an optional implementation of the embodiment of the present application, the method also includes the following S6-S8:

[0120] S6: Obtain a newly added vehicle function identifier.

[0121] S7: Determine the preset system function identifier corresponding to the newly added vehicle function identifier.

[0122] S8: According to the newly added vehicle function identifier and the preset system function identifier corresponding to the newly added vehicle function identifier, the mapping relationship saved by the vehicle control service module is updated.

[0123] In addition, in the embodiment of the present application, in order to make it unnecessary to modify the communication code of the vehicle control service module in the vehicle when a new system platform is added later, thereby reducing the development workload, on the basis of releasing the deep binding between the communication interface between the vehicle control service module and the system basic module and the system platform, the newly added system function identifier can be directly obtained as the newly added system function identifier, and the newly added system function identifier is determined to be the preset vehicle function identifier. By adding the new system function identifier and the newly added system function identifier and the preset vehicle function identifier corresponding to the new system function identifier, the mapping relationship saved by the vehicle control service module is updated, and the new system platform can be added, thereby further improving the portability of the system platform. Therefore, in an optional implementation of the embodiment of the present application, the method also includes the following S9-S11:

[0124] S9: Obtain the new system function identifier.

[0125] S10: Determine the preset vehicle function identifier corresponding to the newly added system function identifier;

[0126] S11: Preset the vehicle function identifier according to the preset vehicle function identifier and the newly added system function identifier, and update the mapping relationship saved by the vehicle control service module.

[0127] Next, another embodiment is used to explain in detail the specific implementation method of the communication-related device of the vehicle control service module in the vehicle in the embodiment of the present application.

[0128] See also Figure 5 , shows a schematic diagram of the structure of a communication device of a vehicle control service module in a vehicle in an embodiment of the present application. In this embodiment, the device may specifically include: a receiving unit 501, a conversion unit 502 and a sending unit 503;

[0129] The receiving unit 501 is used to receive a first target request carrying a target vehicle function identifier sent by an application interaction module through a first universal interface;

[0130] The conversion unit 502 is used to convert the target vehicle function identifier into a target system function identifier according to the mapping relationship between the plurality of preset vehicle function identifiers and the plurality of preset system function identifiers;

[0131] The sending unit 503 is used to send a second target request corresponding to the first target request and carrying the target system function identifier to the system basic module;

[0132] The receiving unit 501 is further configured to receive first response data carrying the target system function identifier returned by the system basic module in response to the second target request;

[0133] The conversion unit 502 is further used to convert the target system function identifier into the target vehicle function identifier according to the mapping relationship;

[0134] The sending unit 503 is also used to send second response data carrying the target vehicle function identifier corresponding to the first response data to the application interaction module through a second universal interface; the second response data is used to update the display interface of the application interaction module.

[0135] In an optional implementation of the embodiment of the present application, the device further includes: a pre-processing unit;

[0136] The pre-processing unit is used for:

[0137] Acquire the plurality of preset vehicle function identifiers and the plurality of preset system function identifiers;

[0138] Determining a mapping relationship between the plurality of preset vehicle function identifiers and the plurality of preset system function identifiers;

[0139] Initializing the vehicle control service module;

[0140] Reading the mapping relationship;

[0141] The mapping relationship is saved in the vehicle control service module.

[0142] In an optional implementation of the embodiment of the present application, the preset vehicle function identifier includes a control domain identifier, a controller identifier and a function identifier of the vehicle.

[0143] In an optional implementation of the embodiment of the present application, when the first target request is a first setting request, the first general interface is a general setting interface, the second target request is a second setting request, and the second general interface is a general callback interface; the general setting interface includes a vehicle function identifier, a numerical type and a setting value, the general callback interface includes a callback status and a callback data encapsulation class, and the callback data encapsulation class includes the vehicle function identifier, the numerical type and the setting value.

[0144] In an optional implementation of the embodiment of the present application, when the first target request is a first acquisition request, the first general interface is a general acquisition interface, the second target request is a second acquisition request, and the second general interface is the general acquisition interface; the general acquisition interface includes a vehicle function identifier and a numerical type.

[0145] In an optional implementation of the embodiment of the present application, the device further includes: a first acquisition unit, a first determination unit, and a first update unit;

[0146] The first acquisition unit is used to acquire a newly added vehicle function identifier;

[0147] The first determining unit is used to determine that the newly added vehicle function identifier corresponds to a preset system function identifier;

[0148] The first updating unit is used to update the mapping relationship saved by the vehicle control service module according to the newly added vehicle function identifier and the preset system function identifier corresponding to the newly added vehicle function identifier.

[0149] In an optional implementation of the embodiment of the present application, the device further includes: a second acquisition unit, a second determination unit, and a second update unit;

[0150] The second acquisition unit is used to acquire a newly added system function identifier;

[0151] The second determining unit is used to determine that the newly added system function identifier corresponds to a preset vehicle function identifier;

[0152] The second updating unit is used to preset the vehicle function identifier corresponding to the preset vehicle function identifier and the newly added system function identifier, and update the mapping relationship saved by the vehicle control service module.

[0153] Through various implementation methods provided in this embodiment, a first target request carrying a target vehicle function identifier sent by an application interaction module is received through a first universal interface; the target vehicle function identifier is converted into a target system function identifier according to a mapping relationship between multiple preset vehicle function identifiers and multiple preset system function identifiers; a second target request carrying a target system function identifier corresponding to the first target request is sent to a system basic module; first response data carrying a target system function identifier returned by the system basic module for the second target request is received; according to the mapping relationship, the target system function identifier is converted into a target vehicle function identifier; and second response data carrying a target vehicle function identifier corresponding to the first response data is sent to the application interaction module through a second universal interface to update the display interface of the application interaction module. It can be seen that the first universal interface, the second universal interface, etc. are set to improve the versatility and flexibility of the communication interface between the application interaction module and the vehicle control service module, and to improve the extensibility of the vehicle function; and a mapping relationship between multiple preset vehicle function identifiers and multiple preset system function identifiers is set to release the deep binding of the communication interface between the vehicle control service module and the system basic module and the system platform, and to improve the portability of the system platform.

[0154] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0155] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0156] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0157] The above is only a preferred embodiment of the present application and does not constitute any formal limitation to the present application. Although the present application has been disclosed as above with a preferred embodiment, it is not intended to limit the present application. Any technician familiar with the art can make many possible changes and modifications to the technical solution of the present application using the methods and technical contents disclosed above without departing from the scope of the technical solution of the present application, or modify it into an equivalent embodiment of equivalent changes. Therefore, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application still fall within the scope of protection of the technical solution of the present application.< / e> < / e> < / e> < / e>

Claims

1. A communication method for a vehicle control service module in a vehicle, characterized in that: include: Receiving, through the first universal interface, a first target request carrying a target vehicle function identifier sent by the application interaction module; Converting the target vehicle function identifier into a target system function identifier according to a mapping relationship between a plurality of preset vehicle function identifiers and a plurality of preset system function identifiers; Sending a second target request corresponding to the first target request and carrying the target system function identifier to the system basic module; Receiving first response data carrying the target system function identifier returned by the system basic module in response to the second target request; According to the mapping relationship, converting the target system function identifier into the target vehicle function identifier; Sending second response data carrying the target vehicle function identifier corresponding to the first response data to the application interaction module through a second universal interface; The second response data is used to update the display interface of the application interaction module.

2. The method according to claim 1, characterized in that The preprocessing step of the mapping relationship includes: Acquire the plurality of preset vehicle function identifiers and the plurality of preset system function identifiers; Determining a mapping relationship between the plurality of preset vehicle function identifiers and the plurality of preset system function identifiers; Initializing the vehicle control service module; Reading the mapping relationship; The mapping relationship is saved in the vehicle control service module.

3. The method according to claim 1, characterized in that The preset vehicle function identifier includes a control domain identifier, a controller identifier and a function identifier of the vehicle.

4. The method according to claim 1, characterized in that: When the first target request is a first setting request, the first general interface is a general setting interface, the second target request is a second setting request, and the second general interface is a general callback interface; the general setting interface includes a vehicle function identifier, a numerical type, and a setting value, the general callback interface includes a callback status and a callback data encapsulation class, and the callback data encapsulation class includes the vehicle function identifier, the numerical type, and the setting value.

5. The method according to claim 1, characterized in that When the first target request is a first acquisition request, the first general interface is a general acquisition interface, and the second target request is a second acquisition request, and the second general interface is the general acquisition interface; the general acquisition interface includes a vehicle function identifier and a numerical type.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Get the new vehicle function identifier; Determine that the newly added vehicle function identifier corresponds to a preset system function identifier; According to the newly added vehicle function identifier and the preset system function identifier corresponding to the newly added vehicle function identifier, the mapping relationship saved by the vehicle control service module is updated.

7. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Get the new system function identifier; Determining that the newly added system function identifier corresponds to a preset vehicle function identifier; The vehicle function identifier is preset correspondingly according to the preset vehicle function identifier and the newly added system function identifier, and the mapping relationship saved by the vehicle control service module is updated.

8. A communication device for a vehicle control service module in a vehicle, characterized in that: include: A receiving unit, a converting unit and a sending unit; The receiving unit is used to receive a first target request carrying a target vehicle function identifier sent by the application interaction module through the first universal interface; The conversion unit is used to convert the target vehicle function identifier into a target system function identifier according to the mapping relationship between the plurality of preset vehicle function identifiers and the plurality of preset system function identifiers; The sending unit is used to send a second target request corresponding to the first target request and carrying the target system function identifier to the system basic module; The receiving unit is further configured to receive first response data carrying the target system function identifier returned by the system basic module in response to the second target request; The conversion unit is further used to convert the target system function identifier into the target vehicle function identifier according to the mapping relationship; The sending unit is also used to send second response data carrying the target vehicle function identifier corresponding to the first response data to the application interaction module through a second universal interface; the second response data is used to update the display interface of the application interaction module.

9. A vehicle, characterized in that: The vehicle comprises a processor and a memory: The memory is used to store a computer program and transmit the computer program to the processor; The processor is configured to execute the method according to any one of claims 1 to 7 according to the instructions in the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and the computer program is used to implement the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Data request method and device, storage medium and electronic equipment

    CN112491943A

  • Service acquisition method, server and computer readable storage medium

    CN113472781A

  • Driving simulator interface processing method, remote control platform and system

    CN113570936A

  • Service processing method and system thereof

    CN114049122A

  • Business query method and device

    CN114218253A