Contextual model configuration method and device, storage medium, electronic equipment and vehicle
By obtaining and adjusting configuration items through the scenario mode process, the development and testing complexity problems caused by the change of scenario mode entry status are solved, the consistency and efficient configuration of scenario mode data are achieved, and the development and testing efficiency is improved.
Patent Information
- Application Number
- CN202410275219.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-11
- Publication Date
- 2025-09-12
AI Technical Summary
In the prior art, changes to the mode entry state of the scenario mode require code writing and modification at multiple business parties, which increases the complexity of development and testing and causes inconsistent changes among multiple parties.
Obtain the initial configuration items through the scenario mode process, query the device parameters of each screen in the current vehicle information, adjust the configuration items according to the device parameters, and assemble them into the mode mapping relationship to generate scenario mode configuration items. Respond to the acquisition request of the business party process and send the configuration items to it to configure the mode entry state.
It effectively avoids data inconsistencies between scenario model processes and other business processes, improves development and testing efficiency, and reduces workload and change complexity.
Smart Images

Figure CN120621044A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle control technology, and in particular to a scenario mode configuration method, a storage medium, an electronic device, and a vehicle. Background Art
[0002] As vehicle functionality continues to improve, various scenario modes are being introduced to enhance the user experience and cater to different usage scenarios. For example, nap mode provides a series of linked and combined in-car services for users experiencing fatigue or drowsiness, meeting their needs for a quick and brief rest in the car.
[0003] During the vehicle development phase, the state of the scenario mode entry needs to be modified, such as blocking the mode entry or making it available. Currently, changing the state of the scenario mode entry requires corresponding code changes in multiple business areas, including the central control vehicle settings, central control quick panel, passenger quick panel, rear seat quick panel, and voice.
[0004] However, the mode entry of the scenario mode needs to be changed multiple times in different development stages. Therefore, this state change adjustment method will greatly increase the workload of the business party, easily lead to increased complexity in development and testing, and cause problems such as inconsistent changes among multiple parties. Summary of the Invention
[0005] In view of this, the present application provides a scenario mode configuration method, storage medium, electronic device and vehicle, the main purpose of which is to improve the technical problems that the current existing technology easily leads to increased development and testing complexity and inconsistent changes among multiple parties.
[0006] In a first aspect, the present application provides a scenario mode configuration method, which can be applied to scenario mode process execution, including:
[0007] Get the initial configuration items of the scenario mode;
[0008] Querying the device parameters corresponding to each screen in the current vehicle information, wherein the device parameters include parameters used to characterize whether each screen supports each scenario mode;
[0009] Adjusting the initial configuration items according to the device parameters, and assembling the adjusted configuration items into the mode mapping relationship of the initial configuration items to obtain scenario mode configuration items, wherein the scenario mode configuration items include entry state configuration information of different scenario modes corresponding to each screen of different vehicle information;
[0010] In response to the acquisition request of the scenario mode configuration item sent by the business party process, the scenario mode configuration item is sent to the business party process, and the business party process is used to configure the mode entry state of different scenario modes for the business party according to the scenario mode configuration item.
[0011] In a second aspect, the present application provides a configuration method for a scenario mode, which can be applied to the execution of a business process, including:
[0012] Send a request to obtain the scenario mode configuration item to the scenario mode process;
[0013] receiving the scenario mode configuration item sent by the scenario mode process, wherein the scenario mode configuration item includes entry state configuration information of different scenario modes corresponding to each screen of different vehicle information;
[0014] Obtaining, from the scenario mode configuration item, entry state configuration information of the target scenario mode corresponding to the target screen where the business party in the current vehicle information is located;
[0015] According to the entry state configuration information of the target scenario mode, the mode entry state of the target scenario mode for the business party is configured.
[0016] In a third aspect, the present application provides a configuration device for a scenario mode, which can be applied to a scenario mode process, including:
[0017] An acquisition module configured to acquire initial configuration items of a scenario mode;
[0018] A query module configured to query device parameters corresponding to each screen in the current vehicle information, wherein the device parameters include parameters for indicating whether each screen supports each scenario mode;
[0019] an acquisition module configured to adjust the initial configuration items according to the device parameters and assemble the adjusted configuration items into the mode mapping relationship of the initial configuration items to obtain scenario mode configuration items, wherein the scenario mode configuration items include entry state configuration information of different scenario modes corresponding to each screen of different vehicle information;
[0020] The sending module is configured to send the scenario mode configuration item to the business party process in response to a request for obtaining the scenario mode configuration item sent by the business party process, and the business party process is used to configure the mode entry state of different scenario modes for the business party according to the scenario mode configuration item.
[0021] In a fourth aspect, the present application provides a configuration device for a scenario mode, which can be applied to a business process, including:
[0022] A sending module is configured to send a request for obtaining a scenario mode configuration item to the scenario mode process;
[0023] a receiving module configured to receive the scenario mode configuration items sent by the scenario mode process, wherein the scenario mode configuration items include entry state configuration information of different scenario modes corresponding to different screens of different vehicle information;
[0024] an acquisition module configured to acquire, from the scenario mode configuration item, entry state configuration information of a target scenario mode corresponding to a target screen where the business party in the current vehicle information is located;
[0025] The configuration module is configured to configure the mode entry state of the target scenario mode for the business party according to the entry state configuration information of the target scenario mode.
[0026] In a fifth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect or the method described in the second aspect.
[0027] In a sixth aspect, the present application provides an electronic device comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein when the processor executes the computer program, the method described in the first aspect or the method described in the second aspect is implemented.
[0028] In a seventh aspect, the present application provides a vehicle, comprising: the electronic device according to the sixth aspect;
[0029] The scenario mode process executes the method described in the first aspect; the business side process executes the method described in the second aspect.
[0030] By means of the above technical solution, the present application provides a scenario mode configuration method, storage medium, electronic device, and vehicle, wherein the scenario mode process first obtains the initial configuration items of the scenario mode; then queries the device parameters corresponding to each screen in the current vehicle information, the device parameters including parameters used to characterize whether each screen supports each scenario mode; then adjusts the initial configuration items according to the device parameters, and assembles the adjusted configuration items into the mode mapping relationship of the initial configuration items to obtain scenario mode configuration items, the scenario mode configuration items including the entry state configuration information of different scenario modes corresponding to each screen of different vehicle information; in response to a request to obtain the scenario mode configuration items sent by the business party process, the scenario mode configuration items are sent to the business party process, and the business party process is used to configure the mode entry state of different scenario modes for the business party according to the scenario mode configuration items. By applying the technical solution of this embodiment, the scenario mode process can timely update the scenario mode configuration items by querying the device parameters, and then send the scenario mode configuration items to the business party process, effectively avoiding the situation where the scenario mode data of the scenario mode process and other business party processes are inconsistent, thereby improving development and testing efficiency.
[0031] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0033] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0034] Figure 1 A schematic diagram showing a flow chart of a method for configuring a scenario mode provided in an embodiment of the present application is shown;
[0035] Figure 2 A schematic diagram showing configuration items of a scenario mode configuration method provided in an embodiment of the present application is shown;
[0036] Figure 3 A schematic diagram showing vehicle configuration items of a scenario mode configuration method provided in an embodiment of the present application is shown;
[0037] Figure 4A schematic diagram showing a flow chart of another scenario mode configuration method provided in an embodiment of the present application is shown;
[0038] Figure 5 A schematic diagram of a process flow of an application example provided by an embodiment of the present application is shown;
[0039] Figure 6 A schematic diagram showing the structure of a configuration device for a scenario mode provided in an embodiment of the present application is shown;
[0040] Figure 7 A schematic structural diagram of another scenario mode configuration device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0041] In order to more clearly understand the above-mentioned objectives, features and advantages of the present application, the scheme of the present application will be further described below. It should be noted that, in the absence of conflict, the embodiments of the present application and the features therein can be combined with each other.
[0042] In order to improve the existing technology, the workload of the business side will be increased, which may easily lead to increased complexity in development and testing, and there will be technical problems such as inconsistent changes by multiple parties. This embodiment provides a configuration method for scenario mode, which can be applied to scenario mode execution, such as Figure 1 As shown, the method includes:
[0043] Step 101: The scenario mode process obtains initial configuration items of the scenario mode.
[0044] Exemplarily, the scenario mode process can use the data carrier in the application XML format to provide scenario mode configuration capabilities for other business parties, use the configuration item management solution XModeConfig to store initial configuration items, define the "Context" class to provide the global environment of the application and the method of accessing Android system resources, define the configuration item data xmode_config_data to store each scenario mode data, and the configuration item management solution can provide configuration capabilities for different car models, different platforms, and different screens. It can dynamically configure the available status of each mode in the scenario mode to cope with changing shielding / anti-shielding requirements, converge the workload of each business party to one place, and realize dynamic configuration of the available status of each mode in the scenario mode. Regardless of different car models, different platforms, or different screens, only one parameter configuration in XmodeConfig is required to change the effect of the mode available status, quickly adapt to changes in requirements, and thus improve development and testing efficiency.
[0045] Among them, the scenario modes may include but are not limited to nap mode NAP_MODE, camping mode CAMP_MODE, driving reminder mode DRIVING_TIPS_MODE, car washing mode CAR_WASH_MODE, do not disturb mode NOT_DISTURB_MODE, timed trigger MOVE_OFF_ON_TIME, bed mode BED_MODE, leaving the car without powering off mode ACC_MODE, activation guide ACTIVATE_GUIDE, etc.
[0046] Specifically, the nap mode refers to a series of linked and combined in-car services provided to users in situations such as fatigue and sleepiness, to meet the needs of users for a short and quick rest in the car; the camping mode can be used for car services in outdoor and camping scenarios to meet the needs of users for long-term sleep, overnight stays, and entertainment in the car; the big bed mode can quickly adjust the seats in the car to big bed mode in camping mode, so that users can use it to lay out a mattress and rest while camping.
[0047] Optionally, the initial configuration items may include the initial entry state configurations for each scenario mode corresponding to each screen in different vehicle information. In some embodiments, the initial configuration item data may be declared in the scenario mode process, and other business parties may access the scenario mode process through a cross-process approach to obtain the initial configuration item data. The data structure of the initial configuration item may adopt an associative container (map), array, collection, etc., to facilitate rapid acquisition of corresponding configuration item information based on different vehicle models, screens, and modes, thereby achieving unified management of scenario mode configuration items for multiple vehicle models.
[0048] Step 102: query the device parameters corresponding to each screen in the current vehicle information, wherein the device parameters include parameters for indicating whether each screen supports each scenario mode.
[0049] In some embodiments, since the status of each scenario mode entry of the scenario mode needs to be changed multiple times (blocking the entry, restoring the available status of the entry) at different development stages, the scenario mode process can obtain the status of each scenario mode entry in a timely manner by querying the device parameters in the current vehicle information, and update the data in a timely manner, thereby realizing the dynamic configuration of the available status of each scenario mode in the scenario mode, and responding to the changing blocking / anti-blocking requirements in a timely manner. For example, the X03 model has not yet completed the seat adaptation stage, and the time-triggered entry is temporarily blocked. When the subsequent adaptation is completed and the new version is released, the time-triggered entry is unblocked, and the scenario mode process needs to query the device parameters in the current vehicle information to obtain the status of each scenario mode entry in each current screen. Among them, the device parameters may include vehicle model, screen, scenario mode entry status, etc.
[0050] Step 103: The scenario mode process adjusts the initial configuration items according to the device parameters, and assembles the adjusted configuration items into the mode mapping relationship of the initial configuration items to obtain scenario mode configuration items, which include entry state configuration information of different scenario modes corresponding to each screen of different vehicle information.
[0051] For example, the scenario mode process can adjust the initial configuration items based on the initial configuration items in combination with device parameters, perform differentiated processing on the optional configurations of different models, perform logical operations on the initial configuration items according to the support of different models, and assemble the adjusted configuration items into the pattern mapping relationship of the initial configuration items to obtain the scenario mode configuration items corresponding to each model. This differentiated processing method can meet the configuration requirements of multiple models and provide more flexible and scalable configuration management capabilities.
[0052] Step 104: The scenario mode process sends the scenario mode configuration item to the business party process in response to the scenario mode configuration item acquisition request sent by the business party process. The business party process is used to configure the mode entry state of different scenario modes for the business party according to the scenario mode configuration item.
[0053] The scenario mode process is the primary execution entity for the scenario mode program, and the business side process is the primary execution entity for the business side program. In this embodiment, the scenario mode process can provide a cross-process communication interface for other business parties, providing access to scenario mode configuration item data. This allows for flexible sharing and utilization of scenario mode configuration item data, improving the overall performance and usability of the system. This convenient method for acquiring and updating configuration item data fully utilizes the content of the configuration item, providing an efficient, reliable, and flexible configuration item management mechanism.
[0054] Compared with the current existing technology, the scenario mode process in this embodiment first obtains the initial configuration items of the scenario mode; queries the device parameters corresponding to each screen in the current vehicle information, and the device parameters include parameters used to characterize whether each screen supports each scenario mode; then adjusts the initial configuration items according to the device parameters, and assembles the adjusted configuration items into the mode mapping relationship of the initial configuration items to obtain the scenario mode configuration items, and the scenario mode configuration items include the entry state configuration information of different scenario modes corresponding to each screen of different vehicle information; in response to the acquisition request of the scenario mode configuration items sent by the business party process, the scenario mode configuration items are sent to the business party process, and the business party process is used to configure the mode entry state of different scenario modes for the business party according to the scenario mode configuration items. By applying the technical solution of this embodiment, the scenario mode process can timely update the scenario mode configuration items by querying the device parameters, and then send the scenario mode configuration items to the business party process, effectively avoiding the situation where the scenario mode data of the scenario mode process and other business party processes are inconsistent, thereby improving development and testing efficiency.
[0055] Optionally, adjusting the initial configuration items according to the device parameters may specifically include: obtaining the adjusted configuration items through logical operations based on the initial entry state configuration of each scenario mode and the calculation results of whether each screen supports each scenario mode.
[0056] In this embodiment, in order to keep up with the development progress and avoid data mismatches from multiple parties, the scenario mode process needs to adjust the initial configuration items in a timely manner according to the device parameters. Logical operations can be used to calibrate the available status of each scenario mode, and the adjusted scenario mode configuration items can be obtained based on the calculation results.
[0057] Optionally, the mode mapping relationship includes a mapping relationship between different vehicles, screens, and initial entry state configurations of scenario modes.
[0058] For example, the initial configuration items are stored in the form of Figure 2As shown, Map can be used <VEHICLE_MODEL,Map<Screen,Map<Mode,Boolean> >>modeEnableMap stores the mode mapping relationship of the initial configuration items, realizes unified configuration item management, and enables centralized management and maintenance of the available status of each mode entry. Among them, modeEnableMap stores the initial entry state configuration map of each vehicle model VEHICLE_MODEL and the corresponding scene mode on each screen. <Screen,Map<Mode,Boolean> >Map <Screen,Map<Mode,Boolean> >Stores the initial entry state configuration map for each screen and each scenario mode<Mode,Boolean> This mapping relationship facilitates quick access to corresponding configuration item information based on different vehicle models, screens, and modes, enabling unified management of scenario-based configuration items across multiple models. For example, in vehicle model X01, the screens may include the main driver's screen (MAIN), the passenger screen (VICE), and the second-row screen (REAR). The main driver's screen (MAIN) may include the initial entry state for nap mode, which may be enabled ("NAP_MODE": true).
[0059] Optionally, based on the initial entry state configuration of each scenario mode and the calculation results of whether each screen supports each scenario mode, an adjusted configuration item is obtained through logical operation, which may specifically include: by querying the mode mapping relationship, performing a logical AND operation on the initial entry state configuration and calculation results of each scenario mode corresponding to each screen in the current vehicle information; updating the initial configuration item based on the result of the logical AND operation to obtain an adjusted configuration item; replacing the corresponding initial configuration items in the mode mapping relationship with the adjusted configuration item to obtain a scenario mode configuration item.
[0060] For example, the initial configuration item modeEnableMap can be queried to obtain the initial entry state configuration of each scene mode and the calculation result of whether each screen supports each scene mode, and the adjusted configuration item is obtained by using logical AND operation, and then the adjusted configuration item is replaced with the initial configuration item corresponding to each in the mode mapping relationship modeEnableMap to obtain the scene mode configuration item (Map <Screen,Map<Mode,Boolean> >modeEnableResultMap), used to store multi-platform configuration items, the storage format is as follows Figure 3As shown in the figure, the storage format of multi-platform configuration items can be used to expand scenario mode configuration items to adapt to different screen and platform requirements, provide flexible configuration item selection according to the needs of different models, better adapt to changes in market demand, and achieve differentiated processing. This cross-platform support and scalability enables the scenario mode to run flexibly on a variety of different models and platforms, improving the flexibility of the system. The configuration item data config_data defined in the scenario mode process can be directly obtained, and cross-process communication with other business parties is achieved through XmodeConfig. This convenient way to obtain and update configuration item data can fully utilize the content of the configuration item and provide an efficient, reliable and flexible configuration item management mechanism.
[0061] Optionally, the initial configuration item is updated based on the result of the logical AND operation to obtain an adjusted configuration item, which may specifically include: if at least one of the initial entry state configuration and the calculation result of the target scenario mode corresponding to the target screen is an unsupported result, then it is determined that the target screen in the current vehicle information does not support the target scenario mode; if the initial entry state configuration and the calculation result of the target scenario mode corresponding to the target screen are both supported results, then it is determined that the target screen in the current vehicle information supports the target scenario mode.
[0062] For example, in the initial configuration item, the initial entry state isSupportBedMode for the large bed mode corresponding to the main screen of a 7-seater vehicle is in an available state. The calculation result obtained after using the device parameters is: the current vehicle model is a 7-seater vehicle, and the initial entry state isisSupportBedModeOption for the large bed mode corresponding to the main screen is in an unavailable state. The calculation is then performed using the following logical AND operation formula:
[0063] isSupportBedModeResult=isSupportBedMode&isisSupportBedModeOption
[0064] Using the calculation formula, it can be calculated that the initial entry state isSupportBedModeResult of the double bed mode corresponding to the main screen of the 7-seater car in the scenario mode configuration item modeEnableResultMap is unavailable, so the result is used to replace the corresponding entry state in the initial configuration item, and the adjusted scenario mode configuration item is obtained. The adjusted scenario mode configuration item is used as the basis for configuration item control of other business parties.
[0065] Optionally, before step 104, the process may also include: updating the vehicle information, and / or screen information, and / or the entry status configuration information corresponding to different scenario modes in the scenario mode configuration item; and sending the updated scenario mode configuration item to the business party process.
[0066] Specifically, the vehicle information and / or screen information and / or the entry status configuration information of different scenario modes in the scenario mode configuration items can be updated by querying device parameters or according to actual development needs. The scenario mode configuration items can be expanded through the multi-platform configuration item storage format to adapt to the needs of different vehicles and improve the flexibility of scenario mode configuration.
[0067] Optionally, the acquisition request carries vehicle model configuration fields and screen parameters; sending scenario mode configuration items to the business party process may specifically include: sending configuration items indicating whether each scenario mode corresponding to the vehicle model configuration fields and screen parameters is available as scenario mode configuration items to the business party process.
[0068] Exemplarily, the scenario mode process may send the scenario mode configuration item data that matches the vehicle type configuration field and screen parameters in the acquisition request to the business party based on the acquisition request sent by the business party for application by the business party.
[0069] In order to illustrate the processing of the business side process, further, this embodiment also provides a configuration method of the scenario mode that can be applied to the execution of the business side process, such as Figure 4 As shown, the method includes:
[0070] Step 201: The business side process sends a request for obtaining scenario mode configuration items to the scenario mode process.
[0071] In this embodiment, the business party may include the central control vehicle settings, central control quick panel, co-pilot quick panel, rear quick panel and voice, etc. It should be noted that the business party in this embodiment may also be called the entry party, caller, etc., and this embodiment does not make specific limitations.
[0072] In some embodiments, the business party process can initialize and establish a connection with the scenario mode process, and send a request to the scenario mode process to obtain the scenario mode configuration items when the connection is normal, so as to obtain the latest scenario mode configuration items, which is convenient for judging the status of each mode entry of the scenario mode at different development stages, responding to the changing scenario mode entry shielding / anti-shielding requirements, and converging the workload of each business party to one place, thereby improving development and testing efficiency.
[0073] Step 202: The business side process receives the scenario mode configuration items sent by the scenario mode process.
[0074] Specifically, when the connection between the business process and the scenario mode process is stable, the business process can receive scenario mode configuration items sent by the scenario mode process. The scenario mode configuration items include entry state configuration information for different scenario modes corresponding to different screens with different vehicle information, providing configuration capabilities for different vehicle models, different versions, and different screens. The entry state configuration information can be used to dynamically configure the available states of each mode in the scenario mode.
[0075] Step 203: The business party process obtains, from the scenario mode configuration item, the entry state configuration information of the target scenario mode corresponding to the target screen where the business party is located in the current vehicle information.
[0076] In some embodiments, the business party can use the current vehicle information to obtain the entry state configuration information for the target scenario mode corresponding to the target screen, and further determine whether each mode state is available. As a possible implementation, the business party's current vehicle information can be determined using the vehicle model configuration word, which may include but is not limited to the vehicle model and version. The business party's target screen can be obtained through the Context class containing the target scenario mode.
[0077] Step 204: The business party process configures the mode entry state of the target scenario mode of the business party according to the entry state configuration information of the target scenario mode.
[0078] In this way, the business party process can configure the mode entry states for different scenario modes of the business party according to the entry state configuration information of different scenario modes.
[0079] In some embodiments, after the business party process obtains the available status of the target scenario mode, it can make full use of the content of the configuration items based on the entry status configuration information of the target scenario mode to perform specific configuration for its own business. Since other business parties can also proceed in this way (i.e., execute the process shown in steps 201 to 204), unified configuration management of these different business parties can be achieved through the scenario mode configuration items in the scenario mode process, thereby effectively avoiding the situation where scenario mode data of these business parties are inconsistent.
[0080] Compared with the current existing technology, when it is necessary to change the status of the mode entry of the scenario mode of different business parties, this embodiment can uniformly manage the configuration of these different business parties through the scenario mode configuration items in the scenario mode process, so as to avoid inconsistent changes of these business parties. The business party process of each business party can request the scenario mode configuration item from the scenario mode process, and then determine whether these scenario modes are available based on the entry status configuration information of each scenario mode corresponding to the target screen where the business party is located in the scenario mode configuration item. There is no need to write code changes for these business parties separately, which can greatly reduce the workload and improve development and testing efficiency.
[0081] Further, as a refinement and extension of the above embodiment, in order to fully illustrate the specific implementation process of the method of this embodiment, optionally, step 203 may include: obtaining the entry state configuration information of the target scenario mode corresponding to the target vehicle model and target screen of the current vehicle from the scenario mode configuration item.
[0082] Exemplarily, a preset interface can be applied to determine whether the target scenario mode is available. The preset interface can be expressed as: boolean isEnable(Context context, Mode mode). The class context and target scenario mode corresponding to the target vehicle model and target screen of the current vehicle can be input. After calculation through the preset interface, the available status of the target scenario mode can be returned (true is available, false is not available). For example: input the class context and nap mode to the isEnable interface, and through the internal calculation of the isEnable interface, true is returned, then it can be determined that the nap mode is in an available state.
[0083] Among them, the target vehicle models may include but are not limited to X01, X02, X03, X04, W01, W02, W03, W04, X01B, etc. The target vehicle models may have different vehicle versions (platforms), and the vehicle versions may include but are not limited to standard version, upgraded version, luxury version, etc.; the target screens may include but are not limited to the main driver screen MAIN, the co-driver screen VICE, the second row screen REAR, etc.
[0084] Optionally, before step 201 , the method of this embodiment may further include: in response to an instruction to determine whether the target scenario mode is available, determining whether a scenario mode configuration item exists.
[0085] In some embodiments, when the business party needs to determine whether the target scenario mode is available, it can first check whether the scenario mode configuration item data is completely stored in the business party's local storage space. For example, it can determine whether the scenario mode configuration item data modeEnableResultMap is empty.
[0086] Further optionally, step 201 may include: if the scenario mode configuration item does not exist, sending a retrieval request to the scenario mode process.
[0087] Specifically, when it is determined that the scenario mode configuration item data is not completely stored in the business party's local storage space, a retrieval request can be sent to the scenario mode process to re-acquire the scenario mode configuration item data; when it is determined that the scenario mode configuration item data is completely stored in the business party's local storage space, the entry status configuration information of the target scenario mode can be further obtained.
[0088] Optionally, the method of this embodiment may include: sending an acquisition request to the scenario mode process by calling a preset communication interface for inter-process communication.
[0089] Exemplarily, the business party process can send a retrieval request to the scenario mode process by calling the preset communication interface for cross-process communication (XmodeConfig.isEnable(context, Mode.XX)), specifically inputting the class name context and the target scenario mode (such as nap mode). The preset communication interface returns the scenario mode configuration scheme XmodeConfig where the corresponding class and target scenario mode are located. The business party process can obtain the scenario mode configuration item data modeEnableResultMap from XmodeConfig, and then combine it with its own business for specific application to achieve convenient acquisition and update of configuration item data, so that the scenario mode configuration item data can be flexibly shared and utilized, simplifying the business party's code writing and maintenance work, and improving the overall performance and availability of the system. Each business party only needs to focus on updating the configuration parameters in XmodeConfig, without having to individually modify the code to achieve mode shielding or anti-shielding, which can greatly reduce the workload and complexity of the business party's changes, and improve development efficiency and code stability.
[0090] In specific application scenarios, such as Figure 5 As shown, the business side process can initialize and establish a connection with the scenario mode process. The business side process sends a connection request to the scenario mode process, and the scenario mode process returns the corresponding connection result. The business side process verifies and determines whether the connection is normal. If the connection is normal, it sends a request to obtain the scenario mode configuration item to the scenario mode process to obtain the latest scenario mode configuration item data modeEnableResultMap. If the connection is interrupted during the period, the connection can be initiated again. The business side process can query the target scenario mode from the scenario mode configuration item data modeEnableResultMap. If the scenario mode configuration item data is not empty, it obtains whether the corresponding target scenario mode in the current car model and the current screen is available, and then performs subsequent applications according to the entry status.
[0091] As a possible implementation method, the business party process can call the preset interface of cross-process communication to send the updated scenario mode configuration item data to the business party processes on other screens in the same vehicle for synchronization, thereby ensuring the consistency of the business party scenario mode data on different screens and reducing the workload of other business parties.
[0092] The method of this embodiment can achieve the following effects:
[0093] 1. Unified management of scenario mode configuration items for multiple models: By using the Map structure to store scenario mode configuration information, combined with the differentiated processing of vehicle configurations for multiple models, unified management of scenario mode configuration items for multiple models is achieved. The original configuration item storage format is Map <VEHICLE_MODEL,Map<Screen,Map<Mode,Boolean> >>, and the storage format of multi-platform configuration items is Map <Screen,Map<Mode,Boolean> >, by secondary processing the optional configurations of different models, the configuration item information corresponding to each model is obtained. This can effectively manage the configuration items of different models and improve the flexibility and scalability of the configuration items.
[0094] 2. Cross-process access and update of configuration item data: Config item data (config_data) is defined in the scenario mode process and cross-process communication is implemented through XmodeConfig, allowing other business parties to easily access and obtain the scenario mode configuration item data. Other business parties can obtain and update configuration item data through the interface provided by XmodeConfig, improving the sharing and utilization efficiency of configuration item data.
[0095] 3. Provides a simplified interface and calling method: Context mode provides XmodeConfig capabilities. By providing the interface boolean isEnable(Context context, Mode mode), you can directly obtain the availability status of each mode entry. Callers can directly obtain the status of each mode through XmodeConfig.isEnable(context,Mode.XX) without having to worry about specific configuration item data and processing logic. This simplifies code writing and maintenance for callers and improves operational convenience and readability.
[0096] In summary, the method of this embodiment achieves unified management of multi-model scenario mode configuration items through technical means such as unified management of multi-model scenario mode configuration items, cross-process access and update of configuration item data, and provision of simplified interfaces and calling methods, and brings an efficient, flexible and convenient configuration item management mechanism.
[0097] Further, as Figure 1The specific implementation of the method shown in this embodiment provides a configuration device for a scenario mode, which can be applied to a scenario mode process, such as Figure 6 As shown, the device includes: an acquisition module 31, a query module 32, and a sending module 33.
[0098] An acquisition module 31 is configured to acquire initial configuration items of a scenario mode;
[0099] A query module 32 is configured to query the device parameters corresponding to each screen in the current vehicle information, wherein the device parameters include parameters for indicating whether each screen supports each scenario mode;
[0100] An acquisition module 31 is configured to adjust the initial configuration items according to the device parameters and assemble the adjusted configuration items into the mode mapping relationship of the initial configuration items to obtain scenario mode configuration items, wherein the scenario mode configuration items include entry state configuration information of different scenario modes corresponding to each screen of different vehicle information;
[0101] The sending module 33 is configured to send the scenario mode configuration item to the business party process in response to the acquisition request of the scenario mode configuration item sent by the business party process. The business party process is used to configure the mode entry state of different scenario modes for the business party according to the scenario mode configuration item.
[0102] In some examples, the initial configuration items include the initial entry state configurations of each scenario mode corresponding to each screen in different vehicle information; the acquisition module 31 is specifically configured to obtain the adjusted configuration items through logical operations based on the initial entry state configurations of each scenario mode and the calculation results of whether each screen supports each scenario mode.
[0103] In some examples, the mode mapping relationship includes a mapping relationship between the initial entry state configurations of different vehicles, screens, and scenario modes; the acquisition module 31 is specifically configured to query the mode mapping relationship, perform a logical AND operation on the initial entry state configuration and calculation results of each scenario mode corresponding to each screen in the current vehicle information; replace the corresponding initial configuration items in the mode mapping relationship with the adjusted configuration items to obtain the scenario mode configuration items.
[0104] In some examples, the acquisition module 31 is specifically configured to determine that the target screen in the current vehicle information does not support the target scenario mode if at least one of the initial entry state configuration and the calculation result of the target scenario mode corresponding to the target screen is an unsupported result; if the initial entry state configuration and the calculation result of the target scenario mode corresponding to the target screen are both supported results, then determine that the target screen in the current vehicle information supports the target scenario mode.
[0105] In some examples, the sending module 33 is further configured to update the vehicle information, and / or screen information, and / or the entry status configuration information corresponding to different scenario modes in the scenario mode configuration item; and send the scenario mode configuration item to the business party process, including: sending the updated scenario mode configuration item to the business party process.
[0106] In some examples, the acquisition request carries vehicle configuration fields and screen parameters; the sending module 33 is specifically configured to send the configuration items of whether each scenario mode corresponding to the vehicle configuration fields and screen parameters is available as scenario mode configuration items to the business party process.
[0107] It should be noted that for other corresponding descriptions of the functional units involved in the configuration device of a scenario mode provided in this embodiment, please refer to Figure 1 The corresponding description in will not be repeated here.
[0108] Further, as Figure 4 The specific implementation of the method shown in this embodiment provides a configuration device for a scenario mode, which can be applied to a business process, such as Figure 7 As shown, the device includes: a sending module 41, a receiving module 42, an acquisition module 43, and a configuration module 44.
[0109] The sending module 41 is configured to send a request for obtaining a scenario mode configuration item to the scenario mode process;
[0110] The receiving module 42 is configured to receive the scenario mode configuration items sent by the scenario mode process, wherein the scenario mode configuration items include entry state configuration information of different scenario modes corresponding to each screen of different vehicle information;
[0111] The acquisition module 43 is configured to acquire, from the scenario configuration items, the entry state configuration information of the target scenario corresponding to the target screen where the business party is located in the current vehicle information;
[0112] The configuration module 44 is configured to configure the mode entry state of the target scenario mode for the business party according to the entry state configuration information of the target scenario mode.
[0113] In some examples, the acquisition module 43 is specifically configured to acquire, from the scenario mode configuration items, entry state configuration information of the target scenario mode corresponding to the target vehicle model and target screen of the current vehicle.
[0114] In some examples, the sending module 41 is further configured to determine whether a scenario mode configuration item exists in response to an instruction to determine whether the target scenario mode is available; and send an acquisition request for the scenario mode configuration item to the scenario mode process, including: if the scenario mode configuration item does not exist, sending an acquisition request to the scenario mode process.
[0115] In some examples, the sending module 41 is specifically configured to send an acquisition request to the scenario mode process by calling a preset communication interface for cross-process communication.
[0116] It should be noted that for other corresponding descriptions of the functional units involved in the configuration device of a scenario mode provided in this embodiment, please refer to Figure 4 The corresponding description in will not be repeated here.
[0117] Based on the above Figure 1 or Figure 4 The method shown in FIG. 1 is a method for performing the above-mentioned steps. Accordingly, this embodiment further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the computer program can realize the above-mentioned steps. Figure 1 or Figure 4 The method shown.
[0118] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.), and includes a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods of various implementation scenarios of the present application.
[0119] Based on the above Figure 1 or Figure 4 The method shown, and Figure 6 or Figure 7 In order to achieve the above-mentioned purpose, the embodiment of the present application further provides an electronic device that can be configured on the vehicle (such as a new energy vehicle) side, the device including a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figure 1 or Figure 2 The method shown.
[0120] Optionally, the physical device may further include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a Wi-Fi module, and the like. The user interface may include a display, an input unit such as a keyboard, and the like. The optional user interface may also include a USB interface, a card reader interface, and the like. The network interface may optionally include a standard wired interface, a wireless interface (such as a Wi-Fi interface), and the like.
[0121] Furthermore, this embodiment also provides a vehicle, which may include Figure 6 and Figure 7 The device shown may include the above-mentioned electronic device.
[0122] Those skilled in the art will understand that the above-mentioned physical device structure provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or a combination of certain components, or different component arrangements.
[0123] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the physical device, supporting the execution of information processing programs and other software and / or programs. The network communication module is used to enable communication between components within the storage medium, as well as with other hardware and software within the physical information processing device.
[0124] Through the above description of the implementation method, those skilled in the art can clearly understand that this application can be implemented by means of software plus the necessary general hardware platform, or by means of hardware. By applying the solution of this embodiment, the scenario mode process can timely update the scenario mode configuration items by querying the device parameters, and then send the scenario mode configuration items to the business side process, effectively avoiding the situation where the scenario mode process and other business side processes have inconsistent scenario mode data, thereby improving development and testing efficiency.
[0125] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprises" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article or device. In the absence of further limitations, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device that includes the element.
[0126] The above are merely specific embodiments of the present application, which are intended to enable those skilled in the art to understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to these embodiments herein, but rather is intended to conform to the widest scope consistent with the principles and novel features of the present application.
Claims
1. A method for configuring a scenario mode, characterized in that: include: Get the initial configuration items of the scenario mode; Querying the device parameters corresponding to each screen in the current vehicle information, wherein the device parameters include parameters used to characterize whether each screen supports each scenario mode; Adjusting the initial configuration items according to the device parameters, and assembling the adjusted configuration items into the mode mapping relationship of the initial configuration items to obtain scenario mode configuration items, wherein the scenario mode configuration items include entry state configuration information of different scenario modes corresponding to each screen of different vehicle information; In response to the acquisition request of the scenario mode configuration item sent by the business party process, the scenario mode configuration item is sent to the business party process, and the business party process is used to configure the mode entry state of different scenario modes for the business party according to the scenario mode configuration item.
2. The method according to claim 1, characterized in that The initial configuration items include initial entry state configurations of various scenario modes corresponding to various screens in different vehicle information; The adjusting the initial configuration item according to the device parameter includes: Based on the initial entry state configuration of each scenario mode and the calculation result of whether each screen supports each scenario mode, the adjusted configuration item is obtained through logical operation.
3. The method according to claim 2, characterized in that The mode mapping relationship includes the mapping relationship between different vehicles, screens, and initial entry state configurations of the scenario mode; The adjusted configuration items are obtained through logical operations based on the initial entry state configuration of each scenario mode and the calculation result of whether each screen supports each scenario mode, including: By querying the mode mapping relationship, performing a logical AND operation on the initial entry state configuration of each scenario mode corresponding to each screen in the current vehicle information and the calculation result; Updating the initial configuration item according to the result of the logical AND operation to obtain an adjusted configuration item; The step of assembling the adjusted configuration items into the mode mapping relationship of the initial configuration items to obtain the scenario mode configuration items includes: The adjusted configuration items replace the corresponding initial configuration items in the mode mapping relationship to obtain the scenario mode configuration items.
4. The method according to claim 3, characterized in that The updating of the initial configuration item according to the result of the logical AND operation to obtain the adjusted configuration item includes: If at least one of the initial entry state configuration of the target scenario mode corresponding to the target screen and the calculation result is an unsupported result, determining that the target screen in the current vehicle information does not support the target scenario mode; If both the initial entry state configuration and the calculation result of the target scenario mode corresponding to the target screen are support results, it is determined that the target screen in the current vehicle information supports the target scenario mode.
5. The method according to claim 1, wherein Before sending the scenario mode configuration item to the business party process in response to the request for obtaining the scenario mode configuration item sent by the business party process, the method further includes: Updating the vehicle information, and / or screen information, and / or corresponding entry state configuration information of different scenario modes in the scenario mode configuration item; The sending the scenario mode configuration item to the business party process includes: Send the updated scenario mode configuration item to the business party process.
6. The method according to claim 1, characterized in that The acquisition request carries vehicle model configuration fields and screen parameters; The sending the scenario mode configuration item to the business party process includes: The configuration items of whether each scenario mode corresponding to the vehicle type configuration field and screen parameters is available are sent to the business party process as the scenario mode configuration items.
7. A method for configuring a scenario mode, characterized in that: include: Send a request to obtain the scenario mode configuration item to the scenario mode process; receiving the scenario mode configuration item sent by the scenario mode process, wherein the scenario mode configuration item includes entry state configuration information of different scenario modes corresponding to each screen of different vehicle information; Obtaining, from the scenario mode configuration item, entry state configuration information of the target scenario mode corresponding to the target screen where the business party in the current vehicle information is located; According to the entry state configuration information of the target scenario mode, the mode entry state of the target scenario mode for the business party is configured.
8. The method according to claim 7, characterized in that The step of obtaining, from the scenario mode configuration item, the entry state configuration information of the target scenario mode corresponding to the screen where the business party is located in the current vehicle information includes: From the scenario mode configuration items, entry state configuration information of a target scenario mode corresponding to a target vehicle model of the current vehicle and the target screen is obtained.
9. The method according to claim 7, characterized in that Before sending the request for obtaining the scenario mode configuration item to the scenario mode process, the method further includes: In response to an instruction to determine whether the target scenario mode is available, determining whether a scenario mode configuration item exists; The sending of a request to obtain the scenario mode configuration item to the scenario mode process includes: If the scenario mode configuration item does not exist, the acquisition request is sent to the scenario mode process.
10. A configuration device for scene mode, characterized in that: include: An acquisition module configured to acquire initial configuration items of a scenario mode; A query module configured to query device parameters corresponding to each screen in the current vehicle information, wherein the device parameters include parameters for indicating whether each screen supports each scenario mode; an acquisition module configured to adjust the initial configuration items according to the device parameters and assemble the adjusted configuration items into the mode mapping relationship of the initial configuration items to obtain scenario mode configuration items, wherein the scenario mode configuration items include entry state configuration information of different scenario modes corresponding to each screen of different vehicle information; The sending module is configured to send the scenario mode configuration item to the business party process in response to a request for obtaining the scenario mode configuration item sent by the business party process, and the business party process is used to configure the mode entry state of different scenario modes for the business party according to the scenario mode configuration item.
11. A configuration device for scene mode, characterized in that: include: A sending module is configured to send a request for obtaining a scenario mode configuration item to the scenario mode process; a receiving module configured to receive the scenario mode configuration items sent by the scenario mode process, wherein the scenario mode configuration items include entry state configuration information of different scenario modes corresponding to different screens of different vehicle information; an acquisition module configured to acquire, from the scenario mode configuration item, entry state configuration information of a target scenario mode corresponding to a target screen where the business party in the current vehicle information is located; The configuration module is configured to configure the mode entry state of the target scenario mode for the business party according to the entry state configuration information of the target scenario mode.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
13. An electronic device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 9 is implemented.
14. A vehicle, characterized in that: include: The apparatus according to any one of claims 10 to 11, or the electronic device according to claim 13.