Target data result generation method based on whole vehicle mode
By introducing a target data result generation method in vehicle mode management, the configuration strategy switching problem caused by sub-service coupling is solved, and more flexible functional mode switching and data processing is achieved.
Patent Information
- Application Number
- CN202510216073.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-26
- Publication Date
- 2025-06-13
AI Technical Summary
In traditional vehicle mode management, the high degree of service coupling between sub-services leads to invalid or abnormal functional service settings and lacks a flexible configuration strategy switching mechanism.
It provides a method for generating target data results based on vehicle mode. It loads the target configuration policy from the configuration library through preset operations, calls multiple target subservices asynchronously, executes in parallel to generate target data results, and writes the results aggregated into the cache area.
It realizes switching function modes according to different configuration policies, avoiding sub-service coupling, and improving the flexibility of configuration policy switching.
Smart Images

Figure CN120144205A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the technical field of vehicle mode management, and in particular, to a method for generating target data results based on a vehicle mode. Background Art
[0002] Vehicle mode management divides a vehicle into different functional modes according to different states of the vehicle throughout its life cycle and different scenarios of vehicle use by users.
[0003] Currently, traditional vehicle modes are independently controlled through a single process. A functional service needs to integrate N sub-services, and these sub-services are interdependent, with a high degree of business coupling. During execution, it is necessary to first detect the state of a certain sub-service and then set another sub-service. If there is a slight mistake, it will cause the entire functional service setting to fail or be abnormal.
[0004] Therefore, there is an urgent need for a method for generating target data results based on a vehicle mode, which can meet the switching according to different configuration strategies in the vehicle mode, that is, according to different functional modes, and there is no coupling state between each sub-service, thereby improving the flexibility of configuration strategy switching. Summary of the Invention
[0005] To solve the above technical problems or at least partially solve the above technical problems, embodiments of the present disclosure provide a method for generating target data results based on a vehicle mode.
[0006] A first aspect of embodiments of the present disclosure provides a method for generating target data results based on a vehicle mode, the method including:
[0007] In response to a preset operation, load a target configuration strategy from a preset configuration library; wherein, the preset operation is used to indicate loading the target configuration strategy from the preset configuration library; the preset configuration library is used to store at least one configuration strategy; the target configuration strategy is used to represent the current operating mode of the vehicle;
[0008] According to the target configuration strategy, asynchronously call a plurality of target sub-services; wherein, the plurality of target sub-services are included in the target configuration strategy;
[0009] Execute the plurality of target sub-services in parallel to generate target data results corresponding to each of the target sub-services;
[0010] Aggregate a plurality of the target data results to obtain an aggregation result, and write the aggregation result into a preset buffer area.
[0011] In one example, the according to the target configuration strategy, asynchronously calling a plurality of target sub-services includes:
[0012] Based on the target configuration policy, asynchronously call multiple target interfaces through the preset general interface; wherein, the target interfaces are used to call the target sub-services.
[0013] Call the target sub-services associated with the target interfaces based on the target interfaces; wherein, the number of the target sub-services is the same as the number of the target interfaces.
[0014] In one example, after calling the target sub-services associated with the target interfaces based on the target interfaces, the method further includes:
[0015] Generate a return value associated with the target sub-service and return the return value to the preset general interface; wherein, the return value is used to represent the call result of the target sub-service.
[0016] In one example, the aggregating the multiple target data results to obtain an aggregation result includes:
[0017] Perform serialization processing on the target data results according to corresponding rules to obtain corresponding serialized data structures; wherein, the number of the corresponding serialized data structures is multiple;
[0018] Aggregate the multiple corresponding serialized data structures to obtain the aggregation result.
[0019] In one example, before asynchronously calling multiple target sub-services according to the target configuration policy, the method further includes:
[0020] If it is detected that the startup process built in the vehicle is started, obtain the type of the startup process;
[0021] Load the target configuration policy from the preset configuration library according to the type of the startup process; wherein, the startup process is used to represent that the vehicle enters the startup state.
[0022] In one example, the loading the target configuration policy from the preset configuration library according to the type of the startup process includes:
[0023] If the type of the startup process is a first startup, and the target configuration policy is the default configuration policy, then load the default configuration policy from the preset configuration library;
[0024] If the type of the startup process is an abnormal startup, and the target configuration policy is the historical configuration policy, then load the historical configuration policy from the preset configuration library.
[0025] The second aspect of the embodiments of the present disclosure provides a target data result generation device based on the vehicle mode, and the device includes:
[0026] A first loading module, configured to load a target configuration policy from a preset configuration library in response to a preset operation; wherein, the preset operation is used to indicate loading the target configuration policy from the preset configuration library; the preset configuration library is used to store at least one configuration policy; the target configuration policy is used to characterize the current operation mode of the vehicle;
[0027] An invocation module, configured to asynchronously invoke a plurality of target sub-services according to the target configuration policy; wherein, the plurality of target sub-services are included in the target configuration policy;
[0028] A generation module, configured to execute the plurality of target sub-services in parallel to generate a target data result corresponding to each target sub-service;
[0029] A processing module, configured to perform aggregation processing on the plurality of target data results to obtain an aggregation result, and write the aggregation result into a preset buffer.
[0030] In one example, the invocation module includes:
[0031] A first invocation sub-module, configured to asynchronously invoke a plurality of target interfaces based on the preset general interface according to the target configuration policy; wherein, the target interfaces are used to invoke the target sub-services;
[0032] A second invocation sub-module, configured to invoke a target sub-service associated with the target interface based on the target interface; wherein, the number of the target sub-services is the same as the number of the target interfaces.
[0033] In one example, after invoking the target sub-service associated with the target interface based on the target interface, the device further includes:
[0034] A return sub-module, configured to generate a return value associated with the target sub-service and return the return value to the preset general interface; wherein, the return value is used to characterize the invocation result of the target sub-service.
[0035] In one example, the processing module includes:
[0036] A first processing sub-module, configured to perform serialization processing on the target data result according to corresponding rules to obtain corresponding serialized data structures; wherein, the number of the corresponding serialized data structures is multiple;
[0037] A second processing sub-module, configured to perform aggregation processing on the multiple corresponding serialized data structures to obtain the aggregation result.
[0038] In one example, before the device asynchronously invokes a plurality of target sub-services based on a preset general interface according to the target configuration policy, the device further includes:
[0039] An acquisition module, configured to acquire the type of the startup process if it is detected that the startup process built in the vehicle is started;
[0040] A second loading module, configured to load the target configuration policy from the preset configuration library according to the type of the startup process; wherein, the startup process is used to represent that the vehicle enters a startup state.
[0041] In one example, the second loading module includes:
[0042] A first loading sub-module, configured to load the default configuration policy from the preset configuration library if the type of the startup process is a first startup and the target configuration policy is a default configuration policy;
[0043] A second loading sub-module, configured to load the historical configuration policy from the preset configuration library if the type of the startup process is an abnormal startup and the target configuration policy is a historical configuration policy.
[0044] A third aspect of the embodiments of the present disclosure provides an electronic device, which includes: a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the method in the first aspect above.
[0045] A fourth aspect of the embodiments of the present disclosure provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the method in the first aspect above can be implemented.
[0046] An embodiment of the present disclosure provides a method for generating a target data result based on a vehicle mode. The method includes: in response to a preset operation, loading a target configuration policy from a preset configuration library, where the preset operation is used to indicate loading the target configuration policy from the preset configuration library, the preset configuration library is used to store at least one configuration policy, and the target configuration policy is used to characterize the current operating mode of the vehicle; according to the target configuration policy, asynchronously invoking a plurality of target sub-services, where the plurality of target sub-services are included in the target configuration policy; executing the plurality of target sub-services in parallel to generate a target data result corresponding to each of the target sub-services; aggregating the plurality of target data results to obtain an aggregation result, and writing the aggregation result into a preset buffer area. By adopting the technical solution, it is possible to meet the switching between different configuration policies, that is, functional modes, and there is no coupling state between each sub-service, thereby improving the flexibility of configuration policy switching. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present disclosure and used together with the specification to explain the principles of the present disclosure.
[0048] To more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0049] Figure 1 is a flowchart of a method for generating a target data result based on a vehicle mode provided by an embodiment of the present disclosure;
[0050] Figure 2 is a flowchart of a method for generating a target data result based on a vehicle mode provided by an embodiment of the present disclosure;
[0051] Figure 3 is a schematic diagram of the process of generating a target data result based on a vehicle mode provided by an embodiment of the present disclosure;
[0052] Figure 4 is a schematic diagram of the structure of a device for generating a target data result based on a vehicle mode provided by an embodiment of the present disclosure;
[0053] Figure 5 is a schematic diagram of the structure of an electronic device in an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0054] To better understand the above objects, features, and advantages of the present disclosure, the solutions of the present disclosure will be further described below. It should be noted that, without conflict, the embodiments of the present disclosure and the features in the embodiments may be combined with each other.
[0055] In the following description, many specific details are set forth to facilitate a thorough understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only a part of the embodiments of the present disclosure, rather than all the embodiments.
[0056] Figure 1 It is a schematic flowchart of a method for generating target data results based on the vehicle mode provided by an embodiment of the present disclosure. This method can be executed by an electronic device. The electronic device can be exemplarily understood as devices such as mobile phones, tablet computers, laptop computers, desktop computers, smart TVs, automotive ECUs (electronic control units), etc. As Figure 1 shown, the method provided in this embodiment includes the following steps:
[0057] S101. In response to a preset operation, load a target configuration policy from a preset configuration library; wherein, the preset operation is used to indicate loading the target configuration policy from the preset configuration library; the preset configuration library is used to store at least one configuration policy; the target configuration policy is used to characterize the current operating mode of the vehicle.
[0058] In one example, the execution subject is a background program built into the vehicle. This embodiment is implemented based on the interaction between the background program built into the vehicle and the vehicle's central control screen. The user can perform a preset operation on the vehicle's central control screen. The preset configuration library includes at least one configuration policy. The above configuration policies can be vehicle-wide policies, super-saving policies, rescue policies, exhibition hall policies, etc. The target configuration policy can be one of the above configuration policies. After determining the target configuration policy, the current operating mode of the vehicle is the target configuration policy.
[0059] S102. Asynchronously call multiple target sub-services according to the target configuration policy; wherein, the target configuration policy includes multiple target sub-services.
[0060] In one example, specifically, the target configuration policy includes multiple target sub-services. Multiple target sub-services can be called simultaneously through a preset general interface, rather than calling multiple target sub-services sequentially. Specifically, the target sub-services can be air conditioning sub-services, seat sub-services, window sub-services, etc.
[0061] S103. Execute multiple target sub-services in parallel to generate target data results corresponding to each target sub-service; wherein, the number of target data results is the same as the number of target sub-services.
[0062] In one example, the target data result corresponding to a target sub-service is the data result generated by a specific sub-service. For example, when the target sub-service is the air conditioner sub-service, the corresponding target data result is the temperature of the air conditioner. When the target sub-service is the seat sub-service, the corresponding target data results are the angle and direction of the seat.
[0063] S104. Aggregate multiple target data results to obtain an aggregation result, and write the aggregation result into a preset buffer.
[0064] In one example, multiple target data results are processed to obtain an aggregation result, and then this aggregation result is written into a preset buffer. The aggregation result in this embodiment can be obtained by concatenating multiple target data results, or by combining multiple target data results according to different data structures. For example, if the target data result A is [0, 1, 3] and the target data result B is [a, 3333, b], the aggregation result can be [0, 1, 3], [a, 3333, b]. Specifically, the data frequently accessed by users is stored in advance in a storage area that can be accessed quickly, that is, the preset buffer. When business data is accessed, the system will quickly read the data from the preset buffer instead of from the relatively slow disk file, thereby greatly improving the speed of data reading and writing.
[0065] In addition, the caching technology is not just simply allocating a block of memory. To achieve more efficient data reading and writing, a data structure combined with business characteristics needs to be designed to manage data reading and writing. This can ensure that the cached data is the latest and most frequently accessed, and can also avoid a large number of data conflicts and improve the concurrent reading and writing ability of the cache. At the same time, the ability of the cached data to be persistently written to disk also needs to be considered, so that the data can be restored to the state before power-off after a power-off and restart. The advantage of such a setting is that there is no need to write each target data result once, which improves the efficiency of writing to the preset buffer.
[0066] An embodiment of the present disclosure provides a method for generating a target data result based on a vehicle mode. The method includes: in response to a preset operation, loading a target configuration policy from a preset configuration library; according to the target configuration policy, asynchronously calling a plurality of target sub-services; wherein, the target configuration policy includes a plurality of target sub-services; parallelly executing the plurality of target sub-services to generate a target data result corresponding to each target sub-service; aggregating the plurality of target data results to obtain an aggregation result, and writing the aggregation result into a preset buffer. By adopting the technical solution, it can meet the switching between different configuration policies, that is, between functional modes, and there is no coupling state between each sub-service, thereby improving the flexibility of configuration policy switching.
[0067] Figure 2 It is a schematic flowchart of a method for generating a target data result based on a vehicle mode provided by an embodiment of the present disclosure. The embodiment of the present disclosure is optimized on the basis of the above embodiment, and the embodiment of the present disclosure can be combined with each optional solution in the above one or more embodiments.
[0068] As Figure 2 shown, the method for generating a target data result based on a vehicle mode may include the following steps:
[0069] S201. In response to a preset operation, load a target configuration policy from a preset configuration library; wherein, the preset operation is used to indicate loading a target configuration policy from a preset configuration library; the preset configuration library is used to store at least one configuration policy; the target configuration policy is used to represent the current operating mode of the vehicle.
[0070] In one example, this step can refer to the content of step S101.
[0071] S202. According to the target configuration policy, asynchronously call a plurality of target interfaces based on a preset general interface; wherein, the target interface is used to call a target sub-service.
[0072] In one example, the preset general interface calls a plurality of target sub-services through a common interface. The preset general interface corresponds to a plurality of target interfaces. For example, the preset general interface corresponds to target interface A, target interface B, and target interface C. The target interfaces A, B, and C can be asynchronously called through the preset general interface. Target interface A corresponds to target sub-service A, target interface B corresponds to target sub-service B, and target interface C corresponds to target sub-service C.
[0073] S203. Generate a return value associated with the target sub-service, and return the return value to the preset general interface; wherein, the return value is used to represent the call result of the target sub-service.
[0074] In one example, the return value can be 1 or 0. Among them, a return value of 1 indicates that the call result of the target sub-service is successful, and a return value of 0 indicates that the call result of the target sub-service is failed. Specifically, each target sub-service is associated with a corresponding return value. For example, if the target sub-service A first returns the return value 1 to a preset general interface, it indicates that the call result of the target sub-service A is successful. If the target sub-service B returns the return value 0 to the preset general interface, it indicates that the call result of the target sub-service B is failed.
[0075] S204. Invoke the target sub-service associated with the target interface based on the target interface; wherein, the number of target sub-services is the same as the number of target interfaces.
[0076] In one example, the target configuration policy includes multiple target sub-services. The target interface A corresponds to the target sub-service A, the target interface B corresponds to the target sub-service B, and the target interface C corresponds to the target sub-service C.
[0077] In one example, before asynchronously invoking multiple target sub-services according to the target configuration policy, the method further includes:
[0078] If it is detected that the startup process built in the vehicle starts, obtain the type of the startup process;
[0079] Load the target configuration policy from a preset configuration library according to the type of the startup process; wherein, the startup process is used to represent that the vehicle enters the startup state.
[0080] In one example, the type of the startup process can be a first startup or an abnormal startup. The first startup is the first startup of the vehicle after the factory settings. The abnormal startup is that the vehicle shuts down after a sudden failure and then starts normally. The startup process is used to represent that the vehicle enters the startup state. Different types of startup processes correspond to different target configuration policies.
[0081] In one example, loading the target configuration policy from a preset configuration library according to the type of the startup process includes:
[0082] If the type of the startup process is a first startup and the target configuration policy is the default configuration policy, then load the default configuration policy from the preset configuration library;
[0083] If the type of the startup process is an abnormal startup and the target configuration policy is the historical configuration policy, then load the historical configuration policy from the preset configuration library.
[0084] In one example, the default configuration policy is the configuration policy set before the vehicle leaves the factory, for example, it can be the vehicle-wide policy. If the type of the startup process is a first startup, since the user has not made any settings yet, the default configuration policy is loaded from the preset configuration library.
[0085] In one example, the historical configuration policy can be the configuration policy set by the user last time. If the type of the startup process is an abnormal startup, it is restored to the historical configuration policy.
[0086] S205. Execute multiple target sub-services in parallel to generate target data results corresponding to each target sub-service; wherein, the number of target data results is the same as the number of target sub-services.
[0087] In one example, the content of this step can refer to the content of step S103.
[0088] S206. Serialize the target data results according to the corresponding rules to obtain corresponding serialized data structures; wherein, the number of corresponding serialized data structures is multiple.
[0089] In one example, different target data results correspond to different rules. For example, target data result A is serialized according to rule A to obtain serialized data structure A. For example, the serialized data structures after serializing the air conditioner temperature and the angle and direction of the seat are different.
[0090] S207. Aggregate multiple corresponding serialized data structures to obtain an aggregation result, and write the aggregation result into a preset buffer.
[0091] In one example, multiple corresponding serialized data structures are merged to obtain an aggregation result, and the aggregation result is written into a preset buffer.
[0092] For a clearer illustration, reference can be made to Figure 3 the process schematic diagram showing the generation of target data results based on the vehicle mode.
[0093] An embodiment of the present disclosure provides a method for generating a target data result in a vehicle mode. The method includes: based on a target configuration policy, asynchronously invoking a plurality of target interfaces through a preset general interface to generate a return value associated with a target sub-service, and returning the return value to the preset general interface; wherein the return value is used to represent the invocation result of the target sub-service. Invoking a target sub-service associated with the target interface based on the target interface invocation, and concurrently executing a plurality of target sub-services to generate a target data result corresponding to each target sub-service; wherein the number of target data results is the same as the number of target sub-services, serializing the target data results according to corresponding rules to obtain corresponding serialized data structures, aggregating the plurality of corresponding serialized data structures to obtain an aggregation result, and writing the aggregation result into a preset buffer. By adopting the technical solution, the flexibility of the vehicle mode can be improved, and the dynamic pluggable requirements according to different target configuration policies can be met. At the same time, since the subsystems do not depend on each other, even if one of the sub-services fails or is abnormal, the function of the entire system will not be affected.
[0094] Figure 4 FIG. 4 is a schematic structural diagram of a device for generating a target data result in a vehicle mode according to an embodiment of the present disclosure. The device for generating a target data result in a vehicle mode can be understood as the above-mentioned electronic device or a partial functional module in the above-mentioned electronic device. As Figure 4 shown, the device 40 for generating a target data result includes:
[0095] A first loading module 401, configured to load a target configuration policy from a preset configuration library in response to a preset operation; wherein the preset operation is used to indicate loading the target configuration policy from the preset configuration library; the preset configuration library is used to store at least one configuration policy; the target configuration policy is used to represent the current operating mode of the vehicle;
[0096] An invocation module 402, configured to asynchronously invoke a plurality of target sub-services according to the target configuration policy; wherein the target configuration policy includes a plurality of target sub-services;
[0097] A generating module 403, configured to concurrently execute a plurality of target sub-services to generate a target data result corresponding to each target sub-service;
[0098] A processing module 404, configured to aggregate a plurality of target data results to obtain an aggregation result, and write the aggregation result into a preset buffer.
[0099] In one example, the invocation module 402 includes:
[0100] The first call sub-module is used to asynchronously call multiple target interfaces based on a preset general interface according to a target configuration policy; wherein, the target interfaces are used to call target sub-services.
[0101] The second call sub-module is used to call a target sub-service associated with the target interface based on the target interface; wherein, the number of target sub-services is the same as the number of target interfaces.
[0102] In one example, after calling the target sub-service associated with the target interface based on the target interface, the apparatus 40 further includes:
[0103] The return sub-module is used to generate a return value associated with the target sub-service and return the return value to a preset general interface; wherein, the return value is used to represent the call result of the target sub-service.
[0104] In one example, the processing module 404 includes:
[0105] The first processing sub-module is used to serialize the target data result according to corresponding rules to obtain corresponding serialized data structures; wherein, the number of corresponding serialized data structures is multiple.
[0106] The second processing sub-module is used to aggregate the multiple corresponding serialized data structures to obtain an aggregation result.
[0107] In one example, before asynchronously calling multiple target sub-services according to the target configuration policy, the apparatus 40 further includes:
[0108] The acquisition module 405 is used to obtain the type of the startup process if it detects that the startup process built in the vehicle is started.
[0109] The second loading module 406 is used to load the target configuration policy from a preset configuration library according to the type of the startup process; wherein, the startup process is used to represent that the vehicle enters the startup state.
[0110] In one example, the second loading module 406 includes:
[0111] The first loading sub-module is used to load the default configuration policy from the preset configuration library if the type of the startup process is the first startup and the target configuration policy is the default configuration policy.
[0112] The second loading sub-module is used to load the historical configuration policy from the preset configuration library if the type of the startup process is an abnormal startup and the target configuration policy is the historical configuration policy.
[0113] The apparatus provided in this embodiment can execute the method of any of the above embodiments, and its execution manner and beneficial effects are similar, which will not be elaborated here.
[0114] An embodiment of the present disclosure also provides an electronic device, which includes: a memory in which a computer program is stored; a processor configured to execute the computer program, and when the computer program is executed by the processor, the method of any of the above embodiments can be implemented.
[0115] Exemplarily, Figure 5 is a schematic structural diagram of an electronic device in an embodiment of the present disclosure. Specifically, refer to Figure 5 below, which shows a schematic structural diagram of the electronic device 1000 suitable for implementing the embodiment of the present disclosure. The electronic device 1000 in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablet Computers), PMPs (Portable Multimedia Players), in-vehicle terminals (such as in-vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The electronic device shown is only an example and should not impose any limitations on the functions and usage scope of the embodiments of the present disclosure.
[0116] As Figure 5 shown, the electronic device 1000 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 1001, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1002 or the program loaded from the storage device 1008 into the random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the electronic device 1000 are also stored. The processing device 1001, the ROM 1002, and the RAM 1003 are connected to each other through a bus 1004. The input / output (I / O) interface 1005 is also connected to the bus 1004.
[0117] Generally, the following devices may be connected to the I / O interface 1005: an input device 1006 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 1007 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1008 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the electronic device 1000 to communicate with other devices wirelessly or wiredly to exchange data. Although Figure 5 the electronic device 1000 with various devices is shown, it should be understood that it is not required to implement or have all the shown devices. Instead, more or fewer devices may be implemented or had.
[0118] In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program including program code for performing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 1009, or installed from the storage device 1008, or installed from the ROM 1002. When the computer program is executed by the processing device 1001, the above-described functions defined in the methods of the embodiments of the present disclosure are performed.
[0119] It should be noted that the computer-readable medium in the present disclosure can be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. And in the present disclosure, the computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0120] In some embodiments, the client and the server can communicate using any currently known or future-developed network protocol such as HTTP (HyperText Transfer Protocol), and can be interconnected with digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include local area networks ("LANs"), wide area networks ("WANs"), the Internet (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or future-developed network.
[0121] The above computer-readable medium can be included in the above electronic device; or it can exist separately without being assembled into the electronic device.
[0122] The above computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device is caused to: in response to a preset operation, load a target configuration policy from a preset configuration library; asynchronously invoke a plurality of target sub-services according to the target configuration policy; execute the plurality of target sub-services in parallel to generate target data results corresponding to each target sub-service; aggregate the plurality of target data results to obtain an aggregation result, and write the aggregation result into a preset buffer.
[0123] Computer program code for performing the operations of the present disclosure can be written in one or more programming languages or combinations thereof. The programming languages include, but are not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., by using an Internet service provider to connect through the Internet).
[0124] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a portion of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur in a different order than that noted in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending on the functionality involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or by a combination of dedicated hardware and computer instructions.
[0125] The units described in the embodiments of the present disclosure can be implemented in software or in hardware. In some cases, the name of the unit does not constitute a limitation on the unit itself.
[0126] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. By way of example, and without limitation, exemplary types of hardware logic components that may be used include: field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems on a chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0127] In the context of the present disclosure, a machine-readable medium may be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0128] The embodiments of the present disclosure also provide a computer-readable storage medium storing a computer program, which can implement the methods of any of the above embodiments when executed by a processor. The execution manners and beneficial effects are similar and will not be elaborated herein.
[0129] It should be noted that, in this document, relational terms such as "first" and "second" are only used 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 "comprising", "including" or any other variant thereof is intended to cover a non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the phrase "comprising a..." does not exclude the existence of additional identical elements in the process, method, article or device comprising the element.
[0130] The above are only specific embodiments of the present disclosure to enable those skilled in the art to understand or implement the present disclosure. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to these embodiments herein, but will be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for generating target data results based on a vehicle model, characterized in that: The method comprises: In response to a preset operation, a target configuration strategy is loaded from a preset configuration library; wherein the preset operation is used to instruct to load the target configuration strategy from the preset configuration library; the preset configuration library is used to store at least one configuration strategy; the target configuration strategy is used to characterize the current operating mode of the vehicle; According to the target configuration strategy, asynchronously calling multiple target sub-services; wherein the target configuration strategy includes the multiple target sub-services; Execute the multiple target sub-services in parallel to generate a target data result corresponding to each of the target sub-services; Aggregate the plurality of target data results to obtain an aggregate result, and write the aggregate result into a preset cache area.
2. The method according to claim 1, characterized in that: The asynchronously calling multiple target sub-services according to the target configuration strategy includes: According to the target configuration strategy, asynchronously calling multiple target interfaces based on the preset universal interface; wherein the target interface is used to call the target sub-service; A target sub-service associated with the target interface is called based on the target interface; wherein the number of the target sub-services is the same as the number of the target interfaces.
3. The method according to claim 2, characterized in that After calling the target sub-service associated with the target interface based on the target interface, the method further includes: Generate a return value associated with the target sub-service, and return the return value to the preset universal interface; wherein the return value is used to represent the call result of the target sub-service.
4. The method according to claim 1, characterized in that: The aggregating the plurality of target data results to obtain an aggregated result includes: Serializing the target data result according to the corresponding rules to obtain a corresponding serialized data structure; wherein the number of the corresponding serialized data structures is multiple; Aggregate the plurality of corresponding serialized data structures to obtain the aggregation result.
5. The method according to claim 1, characterized in that Before asynchronously calling multiple target sub-services according to the target configuration policy, the method further includes: If it is detected that the vehicle's built-in startup process is started, the type of the startup process is obtained; According to the type of the startup process, the target configuration strategy is loaded from the preset configuration library; wherein the startup process is used to indicate that the vehicle enters a startup state.
6. The method according to claim 5, characterized in that The step of loading the target configuration policy from the preset configuration library according to the type of the startup process includes: If the type of the startup process is initial startup, the target configuration policy is a default configuration policy, and the default configuration policy is loaded from the preset configuration library; If the type of the startup process is abnormal startup, and the target configuration policy is a historical configuration policy, the historical configuration policy is loaded from the preset configuration library.
7. A target data result generating device based on the whole vehicle mode, characterized in that: The device comprises: A first loading module, configured to load a target configuration strategy from a preset configuration library in response to a preset operation; wherein the preset operation is used to instruct to load the target configuration strategy from the preset configuration library; the preset configuration library is used to store at least one configuration strategy; the target configuration strategy is used to characterize a current operating mode of the vehicle; A calling module, used for asynchronously calling a plurality of target sub-services according to the target configuration strategy; wherein the target configuration strategy includes the plurality of target sub-services; A generating module, configured to execute the plurality of target sub-services in parallel and generate a target data result corresponding to each of the target sub-services; The processing module is used to aggregate the multiple target data results to obtain an aggregated result, and write the aggregated result into a preset cache area.
8. The device according to claim 7, characterized in that The calling module comprises: A first calling submodule is used to asynchronously call multiple target interfaces based on the preset universal interface according to the target configuration strategy; wherein the target interface is used to call the target subservice; The second calling submodule is used to call the target subservice associated with the target interface based on the target interface; wherein the number of the target subservices is the same as the number of the target interfaces.
9. An electronic device, characterized in that: include: A processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the method according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.