Vehicle control method and device, electronic equipment, storage medium and program product

Through the communication connection between the car computer system and the handle, the color value of the ambient light display is obtained and controlled, which solves the problem of the vehicle lacking immersive experience when playing in-car games, and realizes the linkage between the handle and the ambient light, improving the user experience.

CN120285560APending Publication Date: 2025-07-11RUILIAN XINGCHEN (BEIJING) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410007878.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-02
Publication Date
2025-07-11

AI Technical Summary

Technical Problem

When existing vehicles are playing in-car games, they lack the linkage between handles and ambient lights, which cannot provide an immersive experience.

Method used

The vehicle computer system establishes a communication connection with the handle, obtains the target key information of the handle, query the target mapping table to determine the color value of the ambient light display, and controls the work of the vehicle ambient light to realize the linkage between the handle and the ambient light.

Benefits of technology

Provide users with an immersive experience in the vehicle environment, enhancing the interactive and entertainment effects during the game.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120285560A_ABST
    Figure CN120285560A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to a vehicle control method and device, electronic equipment, a storage medium and a program product. The method comprises the following steps: acquiring target key information sent by a handle; querying a target mapping table according to the target key information, wherein the target mapping table comprises a corresponding relationship between the key information and atmosphere lamp display color values; and determining a target atmosphere lamp display color value corresponding to the target key information according to a query result, and controlling an atmosphere lamp in the vehicle to work according to the target atmosphere lamp display color value. By adopting the method, a vehicle environment with immersive experience can be provided for the user in the process of playing the vehicle-mounted game by the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of autonomous driving technology, and in particular, to a vehicle control method, device, electronic device, storage medium, and program product. Background Art

[0002] With the development of intelligent vehicles, vehicles also provide some entertainment functions, such as in-vehicle games, and users can play in-vehicle games through a gamepad.

[0003] However, during the process of users playing in-vehicle games, the current vehicles still lack a vehicle environment that can provide users with an immersive experience. Summary of the Invention

[0004] Embodiments of the present disclosure provide a vehicle control method, device, electronic device, storage medium, and program product, which can provide a vehicle environment with an immersive experience for users during the process of users playing in-vehicle games.

[0005] In a first aspect, an embodiment of the present disclosure provides a vehicle control method, which is applied to a vehicle-mounted system, and a communication connection is established between the vehicle-mounted system and a gamepad. The method includes: obtaining target key information sent by the gamepad; querying a target mapping table according to the target key information, where the target mapping table includes the corresponding relationship between key information and the display color value of the ambient light; determining the target display color value of the ambient light corresponding to the target key information according to the query result, and controlling the ambient light in the vehicle to work according to the target display color value of the ambient light.

[0006] In one embodiment, the method further includes: displaying an ambient light setting interface; receiving field information input by the user based on the ambient light setting interface; determining the corresponding relationship between key information and the display color value of the ambient light according to the field information to obtain a target mapping table.

[0007] In one embodiment, the method further includes: determining a target application currently running in the foreground, and querying a mapping table database according to the application identifier of the target application to obtain a target mapping table; where different applications' corresponding mapping tables are stored in the mapping table database.

[0008] In one embodiment, a gamepad service is deployed in the vehicle-mounted system; obtaining the target key information sent by the gamepad includes: the gamepad service intercepts an input event sent by the vehicle-mounted system to a target interface to obtain the target key information sent by the gamepad; where the input event is generated by the vehicle-mounted system based on the target key information sent by the gamepad.

[0009] In one embodiment, after controlling the ambient light in the vehicle to work according to the target display color value of the ambient light, the method further includes: the gamepad service sends the intercepted input event to the target interface.

[0010] In one embodiment, an application assistant service is further deployed in the in-vehicle system, and the method further includes: after the application assistant service monitors that the target application exits the background, it sends a release request to the handle service; the handle service responds to the release request and deletes the target mapping table sent by the application assistant service to the handle service when monitoring the currently running target application.

[0011] In a second aspect, an embodiment of the present disclosure provides a vehicle control device, which is arranged in an in-vehicle system, and the in-vehicle system is communicatively connected to a handle. The device includes: an acquisition module, configured to acquire target key information sent by the handle; a query module, configured to query a target mapping table according to the target key information, where the target mapping table includes the corresponding relationship between the key information and the ambient light display color value; a control module, configured to determine the target ambient light display color value corresponding to the target key information according to the query result, and control the ambient light in the vehicle to work according to the target ambient light display color value.

[0012] In one embodiment, the device further includes: a display module, configured to display an ambient light setting interface; a reception module, configured to receive field information input by a user based on the ambient light setting interface; a first determination module, configured to determine the corresponding relationship between the key information and the ambient light display color value according to the field information to obtain a target mapping table.

[0013] In one embodiment, the device further includes: a second determination module, configured to determine the target application currently running in the foreground, and query a mapping table database according to the application identifier of the target application to obtain a target mapping table; wherein, mapping tables corresponding to different applications are stored in the mapping table database.

[0014] In one embodiment, a handle service is deployed in the in-vehicle system; the acquisition module is specifically configured to intercept an input event sent by the in-vehicle system to a target interface by the handle service to obtain the target key information sent by the handle; wherein, the input event is generated by the in-vehicle system based on the target key information sent by the handle.

[0015] In one embodiment, the device further includes: a first sending module, configured to send the intercepted input event to the target interface by the handle service.

[0016] In one embodiment, an application assistant service is further deployed in the in-vehicle system, and the device further includes: a second sending module, configured to send a release request to the handle service by the application assistant service after monitoring that the target application exits the background; a response module, configured to respond to the release request by the handle service and delete the target mapping table sent by the application assistant service to the handle service when monitoring the currently running target application.

[0017] In a third aspect, an embodiment of the present disclosure provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the method described in the first aspect above is implemented.

[0018] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method described in the first aspect above is implemented.

[0019] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program. When the computer program is executed by a processor, the method described in the first aspect above is implemented.

[0020] The vehicle control method, device, electronic device, storage medium, and program product provided by the embodiments of the present disclosure are applied to a vehicle-mounted system. The vehicle-mounted system is communicatively connected to a handle. The vehicle-mounted system obtains target key information sent by the handle, queries a target mapping table according to the target key information. The target mapping table includes the corresponding relationship between key information and ambient light display color values. Then, according to the query result, the target ambient light display color value corresponding to the target key information is determined, and the ambient light in the vehicle is controlled to work according to the target ambient light display color value. In this way, when the user plays a vehicle-mounted game using the handle, the linkage between the handle and the ambient light in the vehicle can be realized, so as to provide an immersive vehicle environment for the user. Description of the Drawings

[0021] Figure 1 It is an application environment diagram of a vehicle control method in an embodiment;

[0022] Figure 2 It is a flowchart of a vehicle control method in an embodiment;

[0023] Figure 3 It is a flowchart of a method for obtaining a target mapping table in an embodiment;

[0024] Figure 4 It is a flowchart of another vehicle control method in an embodiment;

[0025] Figure 5 It is a structural block diagram of a vehicle control device in an embodiment;

[0026] Figure 6 It is an internal structure diagram of an electronic device in an embodiment. Detailed Embodiments

[0027] In order to make the objectives, technical solutions, and advantages of the embodiments of the present disclosure clearer and more understandable, the following further describes the embodiments of the present disclosure in detail in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the embodiments of the present disclosure, and are not used to limit the embodiments of the present disclosure.

[0028] With the development of intelligent vehicles, vehicles also provide some entertainment functions, such as in-vehicle games, and users can play in-vehicle games through a gamepad.

[0029] However, during the process of users playing in-vehicle games, the gamepad can only interact with in-vehicle games that have been adapted to the gamepad, and cannot be linked with the ambient light, thus lacking a vehicle environment that provides an immersive experience for users.

[0030] Based on this, it is necessary to propose effective technical means to solve the above problems. The following introduces the technical solutions involved in the embodiments of the present disclosure in conjunction with the scenarios to which the embodiments of the present disclosure are applied.

[0031] The vehicle control method provided by the embodiments of the present disclosure can be applied to an application environment as Figure 1 shown. Among them, the in-vehicle system 102 communicates with the gamepad 104. The in-vehicle system 102 obtains the target key information sent by the gamepad 104; queries the target mapping table according to the target key information, and the target mapping table includes the corresponding relationship between the key information and the ambient light display color value; determines the target ambient light display color value corresponding to the target key information according to the query result, and controls the ambient light in the vehicle to work according to the target ambient light display color value. Among them, the in-vehicle system 102 can be a vehicle terminal, and the gamepad 104 can be a game controller.

[0032] In one embodiment, as Figure 2 shown, a vehicle control method is provided. Taking the in-vehicle system in Figure 1 as an example for description, the method includes the following steps:

[0033] Step 201, obtain the target key information sent by the gamepad.

[0034] Among them, the gamepad can be a game controller, and the gamepad is connected to the in-vehicle system through Bluetooth or USB (Universal Serial Bus). The target key information includes the target key identifier and the target key action, etc.

[0035] In the in-vehicle system, a device node file is created for the handle. This device node file is used for the interaction between the handle and the in-vehicle system. The handle driver will write the input events of the handle operations into the device node file. When the in-vehicle system senses the content update in the device node file, it will parse the content therein and generate the input event types recognizable by the system. Among them, the input events include key identifiers and key actions, etc., and the input event types such as key events, joystick events, etc.

[0036] Optionally, the in-vehicle system obtains the target key information sent by the handle from the device node file.

[0037] Step 202, query the target mapping table according to the target key information. The target mapping table includes the corresponding relationship between key information and ambient light display color values.

[0038] Among them, there are two ways to obtain the target mapping table. One is to display the ambient light setting interface and obtain the target mapping table based on this displayed ambient light setting interface. The other is that the in-vehicle system pre-stores multiple mapping tables, and different mapping tables correspond to different applications, that is, they correspond to different APPs (Application, application programs). The target mapping table is obtained by querying according to the target application running in the foreground currently.

[0039] The key information in the target mapping table includes key identifiers, key actions, etc., and the ambient light display color values in the target mapping table include RGB (Red Green Blue) color values.

[0040] Optionally, after obtaining the target mapping table, query the target mapping table according to the target key identifier in the target key information to obtain the target ambient light display color value.

[0041] Step 203, determine the target ambient light display color value corresponding to the target key information according to the query result, and control the ambient light in the vehicle to work according to the target ambient light display color value.

[0042] Among them, the query result is the target ambient light display color value obtained by querying the target mapping table.

[0043] Optionally, after obtaining the target ambient light display color value, set this color value to the ambient light by means of interface call, so that the RBG corresponding to the color displayed by the ambient light is the target ambient light display color value. For example, the shooting operation in Peacekeeper Elite makes the ambient light turn red.

[0044] In the above vehicle control method, a communication connection is established between the in-vehicle system and the handle. The in-vehicle system obtains the target key information sent by the handle, queries the target mapping table according to the target key information. The target mapping table includes the corresponding relationship between the key information and the ambient light display color value. Then, according to the query result, the target ambient light display color value corresponding to the target key information is determined, and the ambient light in the vehicle is controlled according to the target ambient light display color value. In this way, when the user plays an in-vehicle game with the handle, the linkage between the handle and the ambient light in the vehicle can be realized, so as to provide an immersive vehicle environment for the user.

[0045] In one embodiment, as Figure 3 shown, a method for obtaining a target mapping table is provided. The method further includes:

[0046] Step 301, display an ambient light setting interface.

[0047] Optionally, the in-vehicle system deploys an application assistant service, which can provide an ambient light setting interface for setting the ambient light display color value corresponding to different key information on the ambient light setting interface.

[0048] Step 302, receive the field information input by the user based on the ambient light setting interface.

[0049] Among them, the field information includes the ambient light display color value and the key information.

[0050] Optionally, the ambient light setting interface includes a corresponding relationship list of handle key options and ambient light display color value options. The user can input the ambient light display color value corresponding to different key information based on the ambient light display color value options. Therefore, the application assistant service can receive the field information input by the user based on the ambient light setting interface.

[0051] Step 303, determine the corresponding relationship between the key information and the ambient light display color value according to the field information to obtain the target mapping table.

[0052] After obtaining the target mapping table, bind the target mapping table with the user information and store it in the mapping table database.

[0053] The embodiments of the present disclosure provide a function for users to set the desired linkage effect between the handle and the ambient light according to their own needs.

[0054] In one embodiment, the method further includes: determining the target application currently running in the foreground, querying the mapping table database according to the application identifier of the target application to obtain the target mapping table; wherein, the mapping table database stores mapping tables corresponding to different applications.

[0055] Among them, the target application can be a target in-vehicle game or other target APPs.

[0056] Optionally, the application assistant service can monitor the target application running in the foreground in real time, query the mapping table database according to the application identifier of the target application and the user information logged in to the target application, obtain the target mapping table, and set the target mapping table to the handle service by means of interface call.

[0057] In one embodiment, a handle service is deployed in the in-vehicle system; obtaining target key information sent by the handle, including: the handle service intercepts the input event sent by the in-vehicle system to the target interface to obtain the target key information sent by the handle; wherein, the input event is generated by the in-vehicle system based on the target key information sent by the handle.

[0058] Optionally, the in-vehicle system adds the generated input event to the globally unique input event dispatch queue, and finally dispatches it to the target interface. For example, when operating the handle button A, this button will finally be sent to the game interface in the form of KeyEvent (this structure contains information such as the unique identification code of the button and the button action), and the game interface triggers specific functions according to the unique identification of the button.

[0059] The handle intercepts the input event before it is added to the input event dispatch queue, and obtains the target key information from the intercepted input event.

[0060] In one embodiment, after controlling the ambient light in the vehicle according to the target ambient light display color value, the method further includes: the handle service sends the intercepted input event to the target interface.

[0061] Optionally, after the handle obtains the target key information, it sends a color adjustment request carrying the target ambient light display color value to the ambient light module in the vehicle, and the ambient light module responds to the color adjustment request to make the ambient light display the color corresponding to the target ambient light display color value.

[0062] After sending the color adjustment request, the handle service adds the intercepted input event to the input event dispatch queue again without changing its dispatch path, so that the input event will still be sent to the target interface finally, and the target interface makes corresponding function responses according to the specific key information in the input event.

[0063] In one embodiment, an application assistant service is also deployed in the in-vehicle system, and the method further includes: after the application assistant service monitors that the target application exits the background, it sends a release request to the handle service; the handle service responds to the release request and deletes the target mapping table sent by the application assistant service when monitoring the currently running target application.

[0064] Among them, the application assistant service can be a game assistant service.

[0065] Optionally, when the game assistant service monitors that the target in-vehicle game exits the background, it will send a release request to the handle service. After receiving the release request, the handle service will delete the target mapping table, no longer intercept input events, and the handle will no longer be linked to the ambient light.

[0066] In one embodiment, as Figure 4 shown, another vehicle control method is provided, which is the most detailed implementation method of the embodiments of the present disclosure, including the following steps:

[0067] Step 401, the application assistant service monitors the target application running in the foreground currently, queries the mapping table database according to the application identifier of the target application to obtain the target mapping table, and sends the target mapping table to the handle service.

[0068] Step 402, the handle service intercepts the input event sent by the in-vehicle system to the target interface to obtain the target key information sent by the handle.

[0069] Step 403, the handle service queries the target mapping table according to the target key information to obtain the target ambient light display color value, and sends a color adjustment request carrying the target ambient light display color value to the ambient light module, so that the ambient light displays the color corresponding to the target ambient light display color value.

[0070] Step 404, the handle service sends the input event to the target interface.

[0071] Step 405, when the application assistant service monitors that the target application exits the background, it sends a release request to the handle service, and the handle service responds to the release request and deletes the target mapping table.

[0072] It should be understood that although Figures 2-4 the steps in the flowchart are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, Figures 2-4 at least a part of the steps in

[0073] In one embodiment, as Figure 5As shown, a vehicle control device is provided. The vehicle control device 500 includes: an acquisition module 501, a query module 502, and a control module 503. The acquisition module 501, the query module 502, and the control module 503 are all arranged in the in-vehicle system, and the in-vehicle system is communicatively connected to the handle. Among them:

[0074] The acquisition module 501 is configured to acquire the target key information sent by the handle.

[0075] The query module 502 is configured to query the target mapping table according to the target key information. The target mapping table includes the correspondence between the key information and the ambient light display color value.

[0076] The control module 503 is configured to determine the target ambient light display color value corresponding to the target key information according to the query result, and control the operation of the ambient light in the vehicle according to the target ambient light display color value.

[0077] In one embodiment, the device further includes: a display module, configured to display an ambient light setting interface; a receiving module, configured to receive the field information input by the user based on the ambient light setting interface; a first determination module, configured to determine the correspondence between the key information and the ambient light display color value according to the field information, so as to obtain the target mapping table.

[0078] In one embodiment, the device further includes: a second determination module, configured to determine the target application currently running in the foreground, query the mapping table database according to the application identifier of the target application, and obtain the target mapping table; wherein, different applications' corresponding mapping tables are stored in the mapping table database.

[0079] In one embodiment, a handle service is deployed in the in-vehicle system; the acquisition module 501 is specifically configured to intercept the input event sent by the in-vehicle system to the target interface by the handle service, so as to acquire the target key information sent by the handle; wherein, the input event is generated by the in-vehicle system based on the target key information sent by the handle.

[0080] In one embodiment, the device further includes: a first sending module, configured to send the intercepted input event to the target interface by the handle service.

[0081] In one embodiment, an application assistant service is further deployed in the in-vehicle system, and the device further includes: a second sending module, configured to send a release request to the handle service after the application assistant service monitors that the target application exits the background; a response module, configured to respond to the release request by the handle service and delete the target mapping table sent by the application assistant service to the handle service when monitoring the currently running target application.

[0082] For the specific limitations of the vehicle control device, reference can be made to the limitations on the vehicle control method in the foregoing text, which will not be elaborated here. Each module in the above vehicle control device can be implemented in whole or in part by software, hardware, and their combination. Each of the above modules can be embedded in the processor of the electronic device in hardware form or independent of it, or stored in the memory of the electronic device in software form, so that the processor can call and execute the operations corresponding to each of the above modules.

[0083] In one embodiment, an electronic device is provided. The electronic device can be a vehicle terminal, and its internal structure diagram can be as Figure 6 shown. The electronic device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface, the display unit, and the input device are connected to the system bus through the input / output interface. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the electronic device is used for exchanging information between the processor and external devices. The communication interface of the electronic device is used for communicating with external terminals in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (Near Field Communication), or other technologies. The computer program, when executed by the processor, implements a vehicle control method. The display unit of the electronic device is used to form a visually visible picture, which can be a display screen, a projection device, or a virtual reality imaging device.

[0084] Those skilled in the art can understand that Figure 6 the structure shown in

[0085] is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the electronic device to which the solution of this application is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine some components, or have a different component layout.

[0086] Obtain the target key information sent by the handle; query the target mapping table according to the target key information, and the target mapping table includes the correspondence between the key information and the ambient light display color value; determine the target ambient light display color value corresponding to the target key information according to the query result, and control the ambient light in the vehicle to work according to the target ambient light display color value

[0087] In one embodiment, when the processor executes the computer program, the following steps are further implemented: presenting an ambient light setting interface; receiving field information input by the user based on the ambient light setting interface; determining the correspondence between key information and ambient light display color values according to the field information to obtain a target mapping table.

[0088] In one embodiment, when the processor executes the computer program, the following steps are further implemented: determining a target application currently running in the foreground, querying a mapping table database according to the application identifier of the target application to obtain a target mapping table; wherein, the mapping table database stores mapping tables corresponding to different applications.

[0089] In one embodiment, when the processor executes the computer program, the following steps are further implemented: intercepting an input event sent by the in-vehicle system to a target interface to obtain target key information sent by a handle; wherein, the input event is generated by the in-vehicle system based on the target key information sent by the handle.

[0090] In one embodiment, when the processor executes the computer program, the following steps are further implemented: sending the intercepted input event to the target interface.

[0091] In one embodiment, when the processor executes the computer program, the following steps are further implemented: after the application assistant service monitors that the target application exits the background, sending a release request to the handle service; the handle service responds to the release request and deletes the target mapping table sent by the application assistant service when monitoring the currently running target application.

[0092] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

[0093] Obtaining target key information sent by a handle; querying a target mapping table according to the target key information, where the target mapping table includes the correspondence between key information and ambient light display color values; determining a target ambient light display color value corresponding to the target key information according to the query result, and controlling the ambient light in the vehicle to work according to the target ambient light display color value

[0094] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented: presenting an ambient light setting interface; receiving field information input by the user based on the ambient light setting interface; determining the correspondence between key information and ambient light display color values according to the field information to obtain a target mapping table.

[0095] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented: determining a target application currently running in the foreground, querying a mapping table database according to the application identifier of the target application to obtain a target mapping table; wherein, the mapping table database stores mapping tables corresponding to different applications.

[0096] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented: intercepting an input event sent by the in-vehicle system to a target interface to obtain target key information sent by a handle; wherein, the input event is generated by the in-vehicle system based on the target key information sent by the handle.

[0097] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented: sending the intercepted input event to the target interface.

[0098] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented: after the application assistant service monitors that the target application exits the background, sending a release request to the handle service; the handle service responds to the release request and deletes the target mapping table sent by the application assistant service when monitoring the currently running target application.

[0099] In one embodiment, a computer program product is provided, including a computer program, which when executed by a processor, implements the following steps:

[0100] Obtaining target key information sent by a handle; querying a target mapping table according to the target key information, where the target mapping table includes the corresponding relationship between key information and ambient light display color values; determining a target ambient light display color value corresponding to the target key information according to the query result, and controlling the ambient light in the vehicle to work according to the target ambient light display color value

[0101] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented: presenting an ambient light setting interface; receiving field information input by a user based on the ambient light setting interface; determining the corresponding relationship between key information and ambient light display color values according to the field information to obtain a target mapping table.

[0102] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented: determining a target application currently running in the foreground, and querying a mapping table database according to the application identifier of the target application to obtain a target mapping table; wherein, mapping tables corresponding to different applications are stored in the mapping table database.

[0103] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented: intercepting an input event sent by the in-vehicle system to a target interface to obtain target key information sent by a handle; wherein, the input event is generated by the in-vehicle system based on the target key information sent by the handle.

[0104] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented: sending the intercepted input event to the target interface.

[0105] In one of the embodiments, when the computer program is executed by a processor, the following steps are further implemented: after the application assistant service monitors that the target application exits the background, it sends a release request to the handle service; the handle service responds to the release request and deletes the target mapping table sent by the application assistant service to the handle service when it monitors the currently running target application.

[0106] Those of ordinary skill in the art can understand that all or part of the processes of implementing the methods in the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, storage, database, or other medium used in the embodiments provided by the present disclosure can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.

[0107] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.

[0108] The above-described embodiments merely represent several implementation manners of the embodiments of the present disclosure. Their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of the embodiments of the present disclosure, several modifications and improvements can be made, and these all belong to the protection scope of the embodiments of the present disclosure. Therefore, the protection scope of the patent of the embodiments of the present disclosure should be subject to the appended claims.

Claims

1. A vehicle control method, characterized in that, Applied to a vehicle infotainment system, the vehicle infotainment system is communicatively connected to a handle, and the method includes: Obtain target key information sent by the handle; Query a target mapping table according to the target key information, where the target mapping table includes the correspondence between key information and ambient light display color values; Determine the target ambient light display color value corresponding to the target key information according to the query result, and control the ambient light in the vehicle to work according to the target ambient light display color value.

2. The method according to claim 1, characterized in that, The method further includes: Display an ambient light setting interface; Receive field information input by the user based on the ambient light setting interface; Determine the correspondence between key information and ambient light display color values according to the field information to obtain the target mapping table.

3. The method according to claim 1, characterized in that The method further includes: Determine the target application currently running in the foreground, and query the mapping table database according to the application identifier of the target application to obtain the target mapping table; Among them, the mapping table database stores mapping tables corresponding to different applications.

4. The method according to any one of claims 1-3, characterized in that, The vehicle infotainment system deploys a handle service; the obtaining of the target key information sent by the handle includes: The handle service intercepts the input event sent by the vehicle infotainment system to the target interface to obtain the target key information sent by the handle; Among them, the input event is generated by the vehicle infotainment system based on the target key information sent by the handle.

5. The method according to claim 4, characterized in that After controlling the ambient light in the vehicle to work according to the target ambient light display color value, the method further includes: The handle service sends the intercepted input event to the target interface.

6. The method according to claim 4, characterized in that, The vehicle infotainment system also deploys an application assistant service, and the method further includes: The application assistant service sends a release request to the handle service after monitoring that the target application exits the background; The handle service responds to the release request and deletes the target mapping table sent by the application assistant service to the handle service when monitoring the currently running target application.

7. A vehicle control device, characterized in that, Set in the vehicle infotainment system, the vehicle infotainment system is communicatively connected to a handle, and the device includes: An obtaining module, configured to obtain target key information sent by the handle; A query module, configured to query a target mapping table according to the target key information, where the target mapping table includes the correspondence between key information and ambient light display color values; A control module, configured to determine the target ambient light display color value corresponding to the target key information according to the query result, and control the ambient light in the vehicle to work according to the target ambient light display color value.

8. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A storage medium, on which a computer program is stored, characterized in that, When the computer program is executed by the processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, the steps of the method according to any one of claims 1 to 6 are implemented.