A method, device, equipment and storage medium for realizing vehicle functions
By obtaining and converting the original function identification information into the target function identification information in the Car Service system, it is possible to realize the customized vehicle functions without adding customized services, solving the problems of system resource constraints and lags, and improving efficiency. System flexibility and resource utilization efficiency.
Patent Information
- Application Number
- CN202210578721.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-25
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-05-25
AI Technical Summary
When custom functions are added to the native Car Service system, too many system resources are occupied, causing system lags and resource constraints.
By obtaining the original function identification information in the call request initiated by the application, if it is custom function identification information, it is converted into the target function identification information based on the preset mapping relationship, and is passed to the vehicle controller, instructing the vehicle controller to notify The corresponding equipment realizes the target vehicle functions, thereby realizing customized functions without adding customized services.
Without adding customized services, the vehicle service system is used to implement customized vehicle functions, which solves the problems of lag and resource shortage caused by the large number of new customized services in the system, and improves the system's flexibility and resource utilization efficiency.
Smart Images

Figure CN114896087B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle-mounted intelligent gateways, and in particular to a method, device, equipment and storage medium for realizing vehicle functions. Background Art
[0002] With the development of automotive electronics, more and more central control devices are beginning to adopt intelligent operating systems such as Android, and various automotive parts suppliers can expand personalized settings on the intelligent operating systems.
[0003] Taking the Android system as an example, at present, the native Car Service (vehicle service system) defines some vehicle attribute protocols. Applications (APP) can obtain such attributes by binding to Car Service, such as the vehicle's appearance size, the amount of fuel in fuel vehicles, and the battery capacity. Car Service interacts with the underlying microcontroller (MCU) or electronic control unit (ECU) through the vehicle body protocol identification code (identification, ID), obtains real data from actual sensors and other components, and reports it to the APP. Among them, Car Service includes the application interface end, the middle layer, and the vehicle hardware layer.
[0004] However, the vehicle attribute values in the native Car Service are universal and fixed. For example, if you add a car fragrance control switch, you need to add a service of your own to control the interaction with the underlying layer. If there are many customized functions, it may lead to too many customized services being added to the system, occupying system resources and causing the system to become stuck. Summary of the invention
[0005] The present invention provides a method, device and storage medium for realizing vehicle functions, so as to solve the problem that too many system resources of Car Service are occupied due to customized functions.
[0006] In a first aspect, an embodiment of the present invention provides a method for implementing a vehicle function, including:
[0007] In response to a call request initiated by an application, obtaining original function identification information in the call request, wherein the original function identification information is used to indicate a target vehicle function applied for by the call request;
[0008] In the case where it is determined that the original function identification information is the custom function identification information, converting the original function identification information into the target function identification information based on a preset mapping relationship, wherein the preset mapping relationship is set according to a protocol supported by the vehicle controller;
[0009] The target function identification information is transmitted to the vehicle controller to instruct the vehicle controller to notify a corresponding first device in the vehicle to implement the target vehicle function according to the target function identification information.
[0010] In a second aspect, an embodiment of the present invention provides a device for implementing a vehicle function, including:
[0011] An original function identification information acquisition module, used to respond to a call request initiated by an application program and acquire the original function identification information in the call request, wherein the original function identification information is used to indicate the target vehicle function applied for by the call request;
[0012] a target function identification information conversion module, configured to convert the original function identification information into target function identification information based on a preset mapping relationship when determining that the original function identification information is custom function identification information, wherein the preset mapping relationship is set according to a protocol supported by the vehicle controller;
[0013] The target function identification information transmission module is used to transmit the target function identification information to the vehicle controller to instruct the vehicle controller to notify the corresponding first device in the vehicle to implement the target vehicle function according to the target function identification information.
[0014] In a third aspect, an embodiment of the present invention provides an electronic device, the electronic device comprising:
[0015] at least one processor;
[0016] and a memory communicatively coupled to the at least one processor;
[0017] Among them, the memory stores a computer program that can be executed by at least one processor, and the computer program is executed by at least one processor so that the at least one processor can execute the method for implementing the vehicle function of the first aspect mentioned above.
[0018] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a processor to implement the method for implementing the vehicle function of the first aspect mentioned above when executed.
[0019] The implementation scheme of the vehicle function provided by the embodiment of the present invention, in response to the application initiating a call request, obtains the original function identification information in the call request, wherein the original function identification information is used to indicate the target vehicle function applied for by the call request, and in the case where it is determined that the original function identification information is a custom function identification information, the original function identification information is converted into the target function identification information based on a preset mapping relationship, wherein the preset mapping relationship is set according to the preset protocol supported by the vehicle controller, and the target function identification information is transmitted to the vehicle controller to instruct the vehicle controller to notify the corresponding first device in the vehicle to implement the target vehicle function according to the target function identification information. By adopting the above technical scheme, the vehicle service system responds to the application initiating a call request, first obtains the original function identification information, if the original function identification information is a custom function identification information, then the original function identification information is replaced with the target function identification information, based on the target function identification information, instructs the vehicle controller to control the corresponding device to implement the corresponding function, thereby realizing the use of the vehicle service system to implement the custom vehicle function without adding custom services, solving the problem of adding a large number of custom services in the system, resulting in system freezes and resource shortages.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 is a flow chart of a method for realizing a vehicle function provided according to a first embodiment of the present invention;
[0023] Figure 2 is a flow chart of a method for realizing a vehicle function provided according to a second embodiment of the present invention;
[0024] Figure 3 This is a Car Service architecture diagram provided according to Embodiment 2 of the present invention;
[0025] Figure 4 is a flow chart of a method for implementing a vehicle function provided according to a third embodiment of the present invention;
[0026] Figure 5is a schematic diagram of the structure of a device for realizing a vehicle function provided according to a fourth embodiment of the present invention;
[0027] Figure 6 It is a schematic diagram of the structure of an electronic device provided according to Embodiment 5 of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In the description of the present invention, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are an "or" relationship. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] Embodiment 1
[0031] Figure 1 A flowchart of a method for implementing a vehicle function is provided for the first embodiment of the present invention. This embodiment is applicable to the case of implementing a customized vehicle function. The method is applied to a vehicle service system and can be specifically executed by a vehicle function implementation device. The vehicle function implementation device can be implemented in the form of hardware and / or software. The vehicle function implementation device can be configured in the vehicle service system in an electronic device. The electronic device can be composed of two or more physical entities or one physical entity.
[0032] like Figure 1As shown, a method for realizing a vehicle function provided by the first embodiment of the present invention specifically includes the following steps:
[0033] S101. In response to a call request initiated by an application, original function identification information in the call request is obtained.
[0034] Among them, the original function identification information is used to indicate the target vehicle function of the call request application.
[0035] In this embodiment, the user can call the Car Service of the target vehicle by clicking on the application program, and initiate an application for the specified function corresponding to the original function identification information of the target vehicle, such as initiating an application for controlling the air conditioning aromatherapy function in the vehicle by clicking on the application program on the central control screen inside the vehicle. The application initiated by the user through the application program includes the original function identification information, which can be expressed as a function identification code, such as: 0xEEFF0001.
[0036] S102: When it is determined that the original function identification information is customized function identification information, convert the original function identification information into target function identification information based on a preset mapping relationship.
[0037] The preset mapping relationship is set according to a preset protocol supported by the vehicle controller.
[0038] In this embodiment, the original function identification information may be native function identification information, such as the function identification information defined in the native vehicle service system in the intelligent operating system of the vehicle, which corresponds to the native function protocol table of the vehicle controller, and specifically may be a vehicle body protocol identification code; the original function identification information may also be custom function identification information, such as the function identification information corresponding to the custom vehicle function added by the vehicle manufacturer or parts supplier adopting the technical solution of the embodiment of the present invention due to the need to add custom vehicle functions, which may be supplemented after an off-site upgrade before the vehicle leaves the factory or after the vehicle leaves the factory. Custom vehicle functions may include, for example, functions related to controlling the vehicle body or internal components of the vehicle, such as opening windows or displaying the temperature inside the vehicle. The vehicle controller may include: a microcontroller (Motor Control Unit, MCU) and an electronic control unit (Electronic Control Unit, ECU) integrated in the vehicle.
[0039] Exemplarily, if the original function identification information is custom function identification information, the original function identification information can be converted into target function identification information that can be recognized by the vehicle controller of the target vehicle according to a preset mapping relationship, so as to realize the control of the designated function corresponding to the original function identification information of the target vehicle. The preset mapping relationship is set according to a preset protocol supported by the vehicle controller, that is, to ensure that the converted target function identification information can be successfully recognized by the vehicle controller, and the preset protocol can specifically be a protocol for information exchange between the framework layer and the vehicle controller.
[0040] S103: transmit the target function identification information to the vehicle controller to instruct the vehicle controller to notify the corresponding first device in the vehicle to implement the target vehicle function according to the target function identification information.
[0041] In this embodiment, after receiving the target function identification information, the vehicle controller built into the target vehicle can parse the target function identification information based on the preset protocol, obtain the relevant information of the target vehicle function requested, and then control the relevant equipment to realize the target vehicle function corresponding to the target function identification, wherein the first equipment is the relevant equipment. For example, if the target vehicle function is to open the window, the first equipment can be a window controller, which notifies the window controller to control the window to open; for another example, if the target vehicle function is to display the temperature inside the vehicle, the first equipment can be an in-vehicle display component, such as a central control screen or a dashboard, which notifies the in-vehicle display component to display the temperature inside the vehicle.
[0042] The method for realizing a vehicle function provided by an embodiment of the present invention is to obtain the original function identification information in the call request in response to an application program initiating a call request, wherein the original function identification information is used to indicate the target vehicle function applied for by the call request, and when it is determined that the original function identification information is a custom function identification information, the original function identification information is converted into the target function identification information based on a preset mapping relationship, wherein the preset mapping relationship is set according to a preset protocol supported by the vehicle controller, and the target function identification information is transmitted to the vehicle controller to instruct the vehicle controller to notify the corresponding first device in the vehicle to realize the target vehicle function according to the target function identification information. The technical solution of the embodiment of the present invention first obtains the original function identification information, and if the original function identification information is a custom function identification information, the original function identification information is replaced with the target function identification information, and based on the target function identification information, the vehicle controller is instructed to control the corresponding device to realize the corresponding function, thereby realizing the realization of the custom vehicle function by using the vehicle service system without adding custom services, and solving the problem of adding a large number of custom services to the system, resulting in system freezes and resource shortages.
[0043] Embodiment 2
[0044] Figure 2 This is a flow chart of a method for realizing a vehicle function provided in the second embodiment of the present invention. The technical solution of the embodiment of the present invention is further optimized on the basis of the above-mentioned optional technical solutions, and a specific method for realizing the vehicle function is given.
[0045] Optionally, when it is determined that the original function identification information is the custom function identification information, the original function identification information is converted into the target function identification information based on the preset mapping relationship, including: when it is determined that the original function identification information is the custom function identification information, whether the original function identification information supports conversion; if it supports, the original function identification information is converted into the target function identification information based on the preset mapping relationship. The advantage of such a setting is that it saves system resources and avoids the occurrence of system freezes.
[0046] Furthermore, after determining whether the original function identification information supports conversion, it also includes: if not supported, performing corresponding logical processing according to the original function identification information to notify the corresponding second device in the vehicle to implement the target vehicle function. The advantage of this setting is that the native vehicle service system can only control functions that have an interactive protocol with the vehicle controller. By adopting this solution, custom functions that do not need to go through the vehicle controller can be added to the vehicle service system, enriching the implementation method of vehicle functions and making the expansion of vehicle functions more flexible.
[0047] like Figure 2 As shown, a method for realizing a vehicle function provided by Embodiment 2 of the present invention specifically includes the following steps:
[0048] S201. In response to a call request initiated by an application, original function identification information in the call request is obtained.
[0049] For example, after receiving a request initiated by an application to turn on the air conditioner fragrance, the original function identification information 0xEEFF0001 of the application can be obtained.
[0050] S202. When it is determined that the original function identification information is the customized function identification information, determine whether the original function identification information supports conversion. If so, execute S203; otherwise, execute S204.
[0051] Specifically, when it is determined that the original function identification information is custom function identification information, it can be determined according to a preset method whether the original function identification information can be converted. For example, it can be determined according to the rules of the relevant communication protocol and through the code at the specified position in the original function identification information whether the original function identification information can be converted.
[0052] Optionally, determining whether the original function identification information supports conversion includes: determining whether a value at a second preset position in the original function identification information satisfies a second preset condition; if so, determining that the original function identification information supports conversion.
[0053] Specifically, the second preset position can be understood as a position set according to a preset protocol supported by the vehicle controller, such as a certain byte in the original function identification information. The second preset condition can be understood as a condition set according to a preset protocol supported by the vehicle controller, such as a byte being a specified character.
[0054] Exemplarily, determine whether the 3rd and 4th bytes in the original function identification information 0xEEFF0001 are FF. If they are FF, determine that the original function identification information meets the preset protocol settings supported by the vehicle controller and can be converted. Among them, whether the 3rd and 4th bytes are FF is the second preset condition.
[0055] S203 . Convert the original function identification information into target function identification information based on a preset mapping relationship, and execute S205 .
[0056] Specifically, if the original function identification information is custom function identification information and supports conversion, it is converted into target function identification information according to the mapping relationship. For example, the original function identification information 0xEEFF0001 (turn on the air conditioning and aromatherapy) is converted into the target function identification information 0x21601035, where the mapping relationship is: 21 represents the protocol related to the car air conditioning, 60 represents the integer type, and 1035 represents turning on the aromatherapy.
[0057] Optionally, the vehicle controller is configured with a function protocol table, which includes native function identification information and supplementary function identification information that meets the preset protocol, and the supplementary function identification information is associated with a first logic processing code, which is used for the vehicle controller to perform corresponding logic processing to achieve the corresponding supplementary vehicle function, and the target function identification information is the supplementary function identification information. Among them, the native function identification information can be understood as the function identification information supported by default in the vehicle's intelligent operating system, and the supplementary function identification information can be understood as the function identification information corresponding to the custom identification information that supports conversion in the embodiment of the present invention, that is, after converting the custom identification information that supports conversion, the corresponding supplementary function identification information can be obtained.
[0058] Specifically, if the target vehicle needs to expand the supplementary functions that need to be implemented by the vehicle controller based on the native operating system, it is necessary to follow the preset protocol settings supported by the vehicle controller, and add the function identification information that can be recognized by the vehicle controller corresponding to the supplementary function to the function protocol table configured by the vehicle controller of the target vehicle. The supplementary identification information is the above-mentioned supplementary function identification information. By sending the supplementary function identification information to the vehicle controller, the vehicle controller can call the relevant first logic processing code to realize the control of the corresponding supplementary vehicle function.
[0059] Before obtaining the original function identification information in the call request, the method may further include: obtaining a preset mapping relationship, wherein the preset mapping relationship includes a corresponding relationship between a value at a target position in the custom function identification information supporting conversion and a value at a target position in the supplementary function identification information. The method may also include: obtaining a preset mapping relationship, wherein the preset mapping relationship is represented by a mapping table, and the mapping table includes a corresponding relationship between the custom function identification information supporting conversion and the supplementary function identification information.
[0060] Specifically, the mapping relationship is generally determined before the call request is obtained. The mapping relationship can be established by the function identifier corresponding to the new function of the target vehicle, that is, the custom function identification information that supports conversion, and the supplementary function identification information in the function protocol table configured by the vehicle controller, and the correspondence between the two. The correspondence can be the correspondence between the function identification information, or the correspondence between the values of the target positions of the function identification information.
[0061] Exemplarily, the correspondence between the custom function identification information 0xEEFF0001 (turn on the air conditioning and fragrance function) that supports conversion and the supplementary function identification information 0x21601035 can be: 21 represents the protocol related to the car air conditioning, 60 represents the integer type, and 1035 represents turning on the fragrance.
[0062] S204: Perform corresponding logic processing according to the original function identification information to notify the corresponding second device in the vehicle to implement the target vehicle function.
[0063] Among them, the second device is generally different from the first device. The second device is generally a device that the native vehicle service system cannot control by interacting with the vehicle controller, such as Tbox.
[0064] Specifically, if the original function identification information is custom function identification information, but conversion is not supported, corresponding logic processing is performed on the original function identification information. Optionally, a second logic processing code for performing corresponding logic processing can be pre-added in the vehicle service system, and the second logic processing code is executed. For example: the original function identification information allows Tbox to upload the vehicle driving status log. Since the original function identification information does not support conversion, that is, the MCU or ECU does not support this function, the corresponding logic processing is performed by executing the second logic processing code corresponding to the original function identification information to notify Tbox to upload the vehicle driving status log.
[0065] S205. Transmit the target function identification information to the vehicle controller to instruct the vehicle controller to notify the corresponding first device in the vehicle to implement the target vehicle function according to the target function identification information.
[0066] Exemplarily, the target function identification information 0x21601035 is transmitted to the vehicle controller, and the vehicle controller notifies the air-conditioning device to realize the function of turning on the air-conditioning aromatherapy.
[0067] For example, Figure 3 A Car Service architecture diagram provided in this embodiment, such as Figure 3 As shown, in order to implement the method described in this embodiment, that is, to realize the interaction between the upper-layer APP application and the underlying MCU or ECU without breaking the original Car Service native architecture, the function identification information judgment layer, the function identification information conversion layer and the function identification information logic processing layer can be expanded in the native framework layer of the Car Service. Among them, the function of the function identification information judgment layer can be understood as judging whether the original function identification information is custom function identification information, and judging whether the original function identification information supports conversion. The function of the function identification information conversion layer can be understood as converting the original function identification information that is judged by the function identification information judgment layer as supporting conversion into the target function identification information based on the preset mapping relationship. The function of the function identification information logic processing layer can be understood as performing corresponding logic processing on the original function identification information that is judged by the function identification information judgment layer as not supporting conversion, so as to notify the corresponding device in the vehicle to realize the target vehicle function, such as Tbox.
[0068] The method for realizing vehicle functions provided by an embodiment of the present invention first obtains original function identification information. If the original function identification information is customized function identification information, its second preset position is judged. If the judgment result is that the original function identification information can be converted, it is converted into target function identification information and transmitted to the MCU or ECU to control the corresponding device to realize the corresponding function. If it cannot be converted, the original function identification information is logically processed to notify the corresponding device to realize the corresponding function. Without breaking the original Car Service native architecture, this method expands the supplementary vehicle functions realized by the interaction between the upper-layer APP application and the underlying MCU or ECU beyond the native vehicle functions. It can also realize the customized vehicle functions that do not need to go through the MCU and ECU by using the vehicle service system without adding customized services, thereby solving the problem of adding a large number of customized services to the system, resulting in system freezes and resource shortages.
[0069] Based on the above embodiment, after obtaining the original function identification information in the call request, it may also include: judging whether the value of the first preset position in the original function identification information meets the first preset condition; if so, determining that the original function identification information is custom function identification information.
[0070] Specifically, the first preset position can be understood as a position set according to a preset protocol supported by the vehicle controller, such as a certain byte in the original function identification information. The first preset condition can be understood as a condition set according to a preset protocol supported by the vehicle controller, such as a byte being a specified character.
[0071] Exemplarily, it is determined whether the first and second bytes in the original function identification information 0xEEFF0001 are EE. If they are EE, it is determined that the original function identification information meets the first preset condition, and it is determined that the original function identification information is custom function identification information, wherein whether the first and second bytes are EE is the first preset condition.
[0072] Optionally, if the value of the first preset position in the original function identification information does not meet the first preset condition, it can be determined that the original function identification information is not the custom function identification information, that is, the original function identification information is the above-mentioned native function identification information. Then the original function identification information is directly transmitted to the vehicle controller of the target vehicle, and the vehicle controller can notify the corresponding device in the vehicle to implement the corresponding function according to the original function identification information.
[0073] Based on the above embodiment, the method may further include:
[0074] Obtain first update information from the server, and update the preset mapping relationship and / or function protocol table according to the first update information; obtain second update information from the server, and update the second logic processing code corresponding to the custom function identification information that does not support conversion according to the second update information; obtain third update information from the server, and add new custom function identification information that does not support conversion according to the third update information, and add the second logic processing code corresponding to the new custom function identification information.
[0075] Specifically, the server can be used to update the preset mapping relationship, function protocol table, and logic processing code corresponding to custom function identification information that does not support conversion, and to add new custom function identification information that does not support conversion and logic processing code corresponding to the new custom function identification information, thereby further improving the flexibility and convenience of setting customized vehicle functions and reducing the cost of expanding new customized vehicle functions. The server can communicate with the target vehicle via the Internet or a wired connection and update the above content. Exemplarily, when the preset mapping relationship needs to be modified, the first update information may include the corresponding modification information; when a new supplementary vehicle function is added, the first update information may include the first logic processing code corresponding to the new supplementary vehicle function. If the preset mapping relationship needs to be modified, the first update information may also include the corresponding modification information. When it is necessary to modify a custom function that has been configured in the vehicle without passing through the vehicle controller, the second update information may include the custom function identification information corresponding to the function, and the corresponding modified second logic processing code or differential update package and other information. For example, the function is to notify Tbox to upload the vehicle driving status log of the last hour, which can be changed to notify Tbox to upload the vehicle driving status log of the last 2 hours. When it is necessary to add a new custom function that has not been configured in the vehicle without passing through the vehicle controller, the third update information may include the custom function identification information set for the new function and the corresponding second logic processing code.
[0076] Embodiment 3
[0077] Figure 4 This is a flow chart of a method for implementing a vehicle function provided in Embodiment 3 of the present invention. The technical solution of the embodiment of the present invention is further optimized on the basis of the above-mentioned optional technical solutions, such as Figure 4 As shown, a method for realizing a vehicle function provided by Embodiment 3 of the present invention specifically includes the following steps:
[0078] S301: In response to a call request initiated by an application, original function identification information in the call request is obtained.
[0079] S302, determine whether the value of the first preset position in the original function identification information meets the first preset condition, if so, determine that the original function identification information is custom function identification information, and execute S303, if not, execute S304.
[0080] S303: Determine whether the original function identification information supports conversion. If so, execute S305; otherwise, execute S306.
[0081] S304: delivering the original function identification information to the vehicle controller to instruct the vehicle controller to notify the corresponding first device in the vehicle to implement the target vehicle function according to the original function identification information.
[0082] Specifically, if the original function identification information is not customized function identification information, the original function identification information can be directly transmitted to the vehicle controller, and the original function identification information can be parsed and identified based on a preset protocol to obtain the relevant information of the original vehicle function requested. The relevant equipment can then be controlled to implement the target vehicle function corresponding to the original function identification.
[0083] S305 . Convert the original function identification information into target function identification information based on a preset mapping relationship, and execute S307 .
[0084] S306. Perform corresponding logic processing according to the original function identification information to notify the corresponding second device in the vehicle to implement the target vehicle function.
[0085] S307: transmit the target function identification information to the vehicle controller to instruct the vehicle controller to notify the corresponding first device in the vehicle to implement the target vehicle function according to the target function identification information.
[0086] The method for realizing vehicle functions provided by the embodiment of the present invention first obtains the original function identification information, and then judges the first preset position of the original function identification information. If the original function identification information is the customized function identification information, then judges the second preset position thereof. If the judgment result is that the original function identification information can be converted, then convert it into the target function identification information and transmit it to the MCU or ECU to control the corresponding device to realize the corresponding function. If it cannot be converted, then the original function identification information is logically processed to notify the corresponding device to realize the corresponding function. Without breaking the original Car Service native architecture, this method ensures good compatibility with the native vehicle functions supported by the intelligent operating system, and expands the supplementary vehicle functions realized by the interaction between the upper-layer APP application and the underlying MCU or ECU beyond the native vehicle functions. It can also realize the customized vehicle functions that do not need to go through the MCU and ECU by using the vehicle service system without adding customized services, thereby solving the problem of adding a large number of customized services in the system, resulting in system jams and resource shortages, enriching vehicle functions while ensuring low costs, and facilitating the unified management and flexible expansion of customized functions of car manufacturers.
[0087] Embodiment 4
[0088] Figure 5 This is a schematic diagram of a structure of a device for realizing a vehicle function provided by Embodiment 3 of the present invention. Figure 5 As shown, the device includes: an original function identification information acquisition module 401, a target function identification information conversion module 402 and a target function identification information transmission module 403, wherein:
[0089] An original function identification information acquisition module, used to respond to a call request initiated by an application program and acquire the original function identification information in the call request, wherein the original function identification information is used to indicate the target vehicle function applied for by the call request;
[0090] a target function identification information conversion module, configured to convert the original function identification information into target function identification information based on a preset mapping relationship when determining that the original function identification information is custom function identification information, wherein the preset mapping relationship is set according to a preset protocol supported by the vehicle controller;
[0091] The target function identification information transmission module is used to transmit the target function identification information to the vehicle controller to instruct the vehicle controller to notify the corresponding first device in the vehicle to implement the target vehicle function according to the target function identification information.
[0092] The device for realizing vehicle functions provided by an embodiment of the present invention first obtains original function identification information. If the original function identification information is customized function identification information, the original function identification information is replaced with target function identification information. Based on the target function identification information, the vehicle controller is instructed to control the corresponding equipment to realize the corresponding function, thereby realizing customized vehicle functions by using the vehicle service system without adding customized services, thereby solving the problem of adding a large number of customized services to the system, causing system freezes and resource constraints.
[0093] Optionally, the device further comprises:
[0094] A first preset condition judgment unit, configured to judge whether a value at a first preset position in the original function identification information satisfies a first preset condition after obtaining the original function identification information in the call request;
[0095] The custom function identification information determining unit is used to determine that the original function identification information is the custom function identification information if the judgment result of the first preset condition judging unit is satisfied.
[0096] Optionally, the target function identification information conversion module 302 includes:
[0097] a conversion judgment unit, configured to judge whether the original function identification information supports conversion when it is determined that the original function identification information is the customized function identification information;
[0098] The conversion unit is configured to convert the original function identification information into target function identification information based on a preset mapping relationship if the judgment result of the conversion judgment unit is support.
[0099] Optionally, the target function identification information conversion module 302 further includes:
[0100] A logic processing unit is used to perform corresponding logic processing according to the original function identification information if the judgment result of the conversion judgment unit is not supported, so as to notify the corresponding second device in the vehicle to implement the target vehicle function.
[0101] Further, the determining whether the original function identification information supports conversion includes: determining whether a value of a second preset position in the original function identification information satisfies a second preset condition; if so, determining that the original function identification information supports conversion.
[0102] Optionally, the vehicle controller is configured with a function protocol table, the function protocol table includes native function identification information and supplementary function identification information satisfying the preset protocol, the supplementary function identification information is associated with a first logic processing code, the first logic processing code is used for the vehicle controller to perform corresponding logic processing to implement a corresponding supplementary vehicle function, and the target function identification information is the supplementary function identification information;
[0103] Optionally, the device further comprises:
[0104] A mapping relationship acquisition unit is used to obtain the preset mapping relationship before obtaining the original function identification information in the call request, wherein the preset mapping relationship includes the correspondence between the value of the target position in the custom function identification information that supports conversion and the value of the target position in the supplementary function identification information; or, to obtain the preset mapping relationship, wherein the preset mapping relationship is represented by a mapping table, and the mapping table includes the correspondence between the custom function identification information that supports conversion and the supplementary function identification information.
[0105] Optionally, the device further comprises:
[0106] A first updating unit, configured to obtain first updating information from a server, and update the preset mapping relationship and / or the functional protocol table according to the first updating information;
[0107] A second updating unit, configured to obtain second update information from the server, and update the second logic processing code corresponding to the custom function identification information that does not support conversion according to the second update information;
[0108] The third updating unit is used to obtain third update information from the server, and add custom function identification information that does not support conversion according to the third update information, and add a second logic processing code corresponding to the new custom function identification information.
[0109] The device for realizing the vehicle function provided in the embodiment of the present invention can execute the method for realizing the vehicle function provided in any embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method.
[0110] Embodiment 5
[0111] Figure 6A schematic diagram of an electronic device 50 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0112] like Figure 5 As shown, the electronic device 50 includes at least one processor 51, and a memory connected to the at least one processor 51 in communication, such as a read-only memory (ROM) 52, a random access memory (RAM) 53, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 51 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 52 or the computer program loaded from the storage unit 58 to the random access memory (RAM) 53. In the RAM 53, various programs and data required for the operation of the electronic device 50 can also be stored. The processor 51, the ROM 52, and the RAM 53 are connected to each other via a bus 54. An input / output (I / O) interface 55 is also connected to the bus 54.
[0113] A number of components in the electronic device 50 are connected to the I / O interface 55, including: an input unit 56, such as a keyboard, a mouse, etc.; an output unit 57, such as various types of displays, speakers, etc.; a storage unit 58, such as a disk, an optical disk, etc.; and a communication unit 59, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 59 allows the electronic device 50 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0114] The processor 51 may be a variety of general and / or dedicated processing components with processing and computing capabilities. Some examples of the processor 51 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 51 executes the various methods and processes described above, such as a method for implementing vehicle functions.
[0115] In some embodiments, the method for implementing the vehicle function may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 58. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 50 via the ROM 52 and / or the communication unit 59. When the computer program is loaded into the RAM 53 and executed by the processor 51, one or more steps of the method for implementing the vehicle function described above may be performed. Alternatively, in other embodiments, the processor 51 may be configured to execute the method for implementing the vehicle function in any other appropriate manner (e.g., by means of firmware).
[0116] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0117] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0118] The computer device provided above can be used to execute the method for implementing the vehicle function provided in any of the above embodiments, and has corresponding functions and beneficial effects.
[0119] Embodiment 6
[0120] In the context of the present invention, a computer-readable storage medium may be a tangible medium, wherein the computer-executable instructions, when executed by a computer processor, are used to perform a method for implementing a vehicle function, the method comprising:
[0121] In response to a call request initiated by an application, obtaining original function identification information in the call request, wherein the original function identification information is used to indicate a target vehicle function applied for by the call request;
[0122] In the case where it is determined that the original function identification information is the custom function identification information, converting the original function identification information into the target function identification information based on a preset mapping relationship, wherein the preset mapping relationship is set according to a preset protocol supported by the vehicle controller;
[0123] The target function identification information is transmitted to the vehicle controller to instruct the vehicle controller to notify a corresponding first device in the vehicle to implement the target vehicle function according to the target function identification information.
[0124] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by an instruction execution system, device or equipment or used with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0125] The computer device provided above can be used to execute the method for implementing the vehicle function provided in any of the above embodiments, and has corresponding functions and beneficial effects.
[0126] It is worth noting that in the embodiment of the above-mentioned vehicle function implementation device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be implemented; in addition, the specific names of the various functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0127] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for realizing a vehicle function, characterized in that: Applied to vehicle service systems, including: In response to a call request initiated by an application, original function identification information in the call request is obtained, wherein the original function identification information is used to indicate a target vehicle function applied for by the call request, the original function includes a native function and a custom function, the native function is a function defined in a native vehicle service system in an intelligent operating system of the vehicle, and the native function identification information corresponds to a native function protocol table of a vehicle controller; In the case where it is determined that the original function identification information is the custom function identification information, converting the original function identification information into the target function identification information based on a preset mapping relationship, wherein the preset mapping relationship is set according to a preset protocol supported by the vehicle controller; The target function identification information is transmitted to the vehicle controller to instruct the vehicle controller to notify a corresponding first device in the vehicle to implement the target vehicle function according to the target function identification information.
2. The method according to claim 1, characterized in that: After obtaining the original function identification information in the calling request, the method further includes: Determining whether the value of the first preset position in the original function identification information meets a first preset condition; If so, it is determined that the original function identification information is customized function identification information.
3. The method according to claim 1, characterized in that: In the case where it is determined that the original function identification information is the customized function identification information, converting the original function identification information into the target function identification information based on a preset mapping relationship includes: In the case where it is determined that the original function identification information is the customized function identification information, determining whether the original function identification information supports conversion; If supported, the original function identification information is converted into target function identification information based on a preset mapping relationship.
4. The method according to claim 3, characterized in that After determining whether the original function identification information supports conversion, the method further includes: If not supported, corresponding logic processing is performed according to the original function identification information to notify the corresponding second device in the vehicle to implement the target vehicle function.
5. The method according to claim 3, characterized in that: The determining whether the original function identification information supports conversion includes: Determining whether the value of the second preset position in the original function identification information meets a second preset condition; If so, it is determined that the original function identification information supports conversion.
6. The method according to claim 3, characterized in that The vehicle controller is configured with a function protocol table, the function protocol table includes native function identification information and supplementary function identification information satisfying the preset protocol, the supplementary function identification information is associated with a first logic processing code, the first logic processing code is used for the vehicle controller to perform corresponding logic processing to implement a corresponding supplementary vehicle function, and the target function identification information is the supplementary function identification information; Before obtaining the original function identification information in the call request, the method further includes: Acquire the preset mapping relationship, wherein the preset mapping relationship includes a correspondence between a value of a target position in the custom function identification information supporting conversion and a value of the target position in the supplementary function identification information; or, The preset mapping relationship is obtained, wherein the preset mapping relationship is represented by a mapping table, and the mapping table contains a correspondence between the custom function identification information supporting conversion and the supplementary function identification information.
7. The method according to claim 6, characterized in that Also includes at least one of the following: Obtaining first update information from the server, and updating the preset mapping relationship and / or the function protocol table according to the first update information; Acquire second update information from the server, and update the second logic processing code corresponding to the custom function identification information that does not support conversion according to the second update information; The third update information is obtained from the server, and new custom function identification information that does not support conversion is added according to the third update information, and a second logic processing code corresponding to the new custom function identification information is added.
8. A device for realizing vehicle functions, characterized in that: include: an original function identification information acquisition module, for obtaining original function identification information in a call request initiated by an application program, wherein the original function identification information is used to indicate a target vehicle function applied for by the call request, and the original function includes a native function and a custom function, and the native function is a function defined in a native vehicle service system in a vehicle intelligent operating system, and the native function identification information corresponds to a native function protocol table of a vehicle controller; a target function identification information conversion module, configured to convert the original function identification information into target function identification information based on a preset mapping relationship when determining that the original function identification information is custom function identification information, wherein the preset mapping relationship is set according to a preset protocol supported by the vehicle controller; The target function identification information transmission module is used to transmit the target function identification information to the vehicle controller to instruct the vehicle controller to notify the corresponding first device in the vehicle to implement the target vehicle function according to the target function identification information.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for realizing the vehicle function according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for implementing the vehicle function according to any one of claims 1 to 7 when executed.
Citation Information
Patent Citations
Vehicle-mounted voice interaction method, server, vehicle and storage medium
CN111002996A
Contextual model customizing method, device, electronic equipment and storage medium
CN113401134A
