Equipment resource allocation method and device, intelligent equipment and storage medium

By monitoring the vehicle's driving speed and environmental information and adjusting the resource allocation strategy of on-board equipment, the poor screen projection effect and vehicle safety problems caused by excessive resource consumption of on-board equipment are solved, and resource optimization and normal operation of business functions are achieved.

CN119485757APending Publication Date: 2025-02-18SHENZHEN STREAMING VIDEO TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411452794.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-16
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

After the degree of intelligence of the vehicle is improved, more and more functions are integrated in the on-board central control screen, resulting in excessive consumption of system resources of industry equipment, affecting the screen projection effect. How to effectively optimize the allocation of system resources of on-board equipment and ensure normal business functions Ensure the safety of the vehicle while operating.

Method used

By monitoring the vehicle's driving speed, the resource allocation adjustment strategy for resource consumption events is determined based on the driving speed, and the system resources occupied by resource consumption events are adjusted and allocated based on this strategy. Specific steps include monitoring the driving speed, obtaining driving environment information, determining the scenario or calculating the driving risk coefficient, and adjusting resource allocation according to preset strategies.

Benefits of technology

The allocation of on-board equipment system resources has been effectively optimized to ensure the normal operation of business functions, while ensuring the safety of vehicle driving, improving screen projection effect and vehicle driving safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119485757A_ABST
    Figure CN119485757A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of vehicle-mounted terminals, and provides an equipment resource allocation method and device, intelligent equipment and a storage medium, and the method comprises the steps: monitoring the driving speed of a vehicle; determining a resource allocation adjustment strategy of a resource consumption event according to the driving speed; and based on the resource allocation adjustment strategy, adjusting and allocating the system resources occupied by the resource consumption event. According to the invention, the resource distribution of the vehicle-mounted equipment system can be effectively optimized, and the vehicle driving safety is ensured while the normal operation of the service function is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle-mounted terminal technology, and in particular to a device resource allocation method, apparatus, intelligent device and storage medium. Background Art

[0002] In the commercial vehicle industry, most of the industry equipment such as industry supervision equipment and meter are installed on the vehicle after the enterprise purchases a batch of vehicles from the car factory, and the industry equipment supplier installs the industry equipment on the vehicles delivered by the car factory. In the past, the functions of the on-board central control screen were relatively simple, with only simple entertainment and display functions, so most industry equipment suppliers would choose to use industry equipment with industry supervision requirements and pricing functions to replace the original vehicle's on-board central control screen.

[0003] As the level of vehicle intelligence increases, more and more functions are integrated into the vehicle's central control screen. Therefore, industry equipment suppliers have begun to use screen projection to project the display screen of industry equipment onto the vehicle's central control screen. This solution has solved the screen display problem of industry equipment to a certain extent. However, industry equipment usually already contains complex business functions, such as Advanced Driver Assistance System (ADAS), Driver Monitoring System (DMS), face detection, etc. During vehicle driving, these business functions have consumed most of the system resources. In this case, the effect of projecting the display screen of industry equipment to the vehicle's central control screen will be greatly reduced.

[0004] In view of this, how to effectively optimize the allocation of system resources of on-board equipment to ensure the normal operation of business functions while ensuring vehicle driving safety is an issue that needs to be considered at present. Summary of the invention

[0005] The embodiments of the present application provide a device resource allocation method, apparatus, intelligent device and storage medium, which can effectively optimize the allocation of system resources of vehicle-mounted equipment, ensure the normal operation of business functions and ensure vehicle driving safety.

[0006] In a first aspect, an embodiment of the present application provides a method for allocating device resources, including:

[0007] Monitor the speed of vehicles;

[0008] Determining a resource allocation adjustment strategy for a resource consumption event according to the driving speed;

[0009] Based on the resource allocation adjustment policy, the system resources occupied by the resource consumption event are adjusted and allocated.

[0010] In a possible implementation manner of the first aspect, the step of determining a resource allocation adjustment strategy for a resource consumption event according to the driving speed includes:

[0011] When the driving speed is less than or equal to a first preset speed threshold, or the driving speed is greater than a second preset speed threshold, obtaining current driving environment information of the vehicle;

[0012] A resource allocation adjustment strategy for a resource consumption event is determined according to the driving speed and the driving environment information.

[0013] In a possible implementation manner of the first aspect, the step of determining a resource allocation adjustment strategy for a resource consumption event according to the driving speed and the driving environment information includes:

[0014] Determining a current scene of the vehicle according to the driving speed and the driving environment information;

[0015] According to the preset scenario resource comparison table, a resource allocation adjustment strategy corresponding to the scenario is determined.

[0016] In a possible implementation manner of the first aspect, when the driving speed is greater than a second preset speed threshold, the step of determining a resource allocation adjustment strategy for a resource consumption event according to the driving speed and the driving environment information includes:

[0017] Calculating a driving risk coefficient according to the driving speed and the driving environment information;

[0018] Based on a preset risk resource comparison table, a resource allocation adjustment strategy corresponding to the driving risk coefficient is determined.

[0019] In a possible implementation manner of the first aspect, the driving environment information includes weather information, and the method further includes:

[0020] If it is determined according to the weather information that the current weather is complex weather, the first preset speed threshold and the second preset speed threshold are lowered.

[0021] In a possible implementation manner of the first aspect, the step of determining a resource allocation adjustment strategy for a resource consumption event according to the driving speed includes:

[0022] When the driving speed is greater than a first preset speed threshold and less than or equal to a second preset speed threshold, obtaining the driver's state information and the current driving environment information of the vehicle;

[0023] A resource allocation adjustment strategy for a resource consumption event is determined according to the driver's state information and the driving environment information.

[0024] In a possible implementation manner of the first aspect, the method is applied to a first vehicle-mounted device, where the first vehicle-mounted device is communicatively connected with a second vehicle-mounted device on the vehicle; the method further includes:

[0025] When the target instruction sent by the second vehicle-mounted device is detected, the process of the specified resource consumption event in the first vehicle-mounted device is suspended, and the specified resource consumption event includes a timed trigger event.

[0026] In a second aspect, an embodiment of the present application provides a device resource allocation apparatus, including:

[0027] A speed monitoring unit, used to monitor the driving speed of the vehicle;

[0028] a strategy determination unit, configured to determine a resource allocation adjustment strategy for a resource consumption event according to the driving speed;

[0029] The resource allocation unit is used to adjust and allocate the system resources occupied by the resource consumption event based on the resource allocation adjustment policy.

[0030] In a third aspect, an embodiment of the present application provides an intelligent device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein when the processor executes the computer program, the device resource allocation method as described in the first aspect above is implemented.

[0031] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the device resource allocation method as described in the first aspect above is implemented.

[0032] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a smart device, the smart device executes the device resource allocation method as described in the first aspect above.

[0033] In the embodiment of the present application, the vehicle's driving speed is monitored, and the resource allocation adjustment strategy of the resource consumption event is determined according to the driving speed, and then the system resources occupied by the resource consumption event are adjusted and allocated based on the resource allocation adjustment strategy. The present application determines the resource allocation adjustment strategy according to the driving speed, and adjusts the system resources occupied by each business function based on the scheme, which can effectively optimize the allocation of system resources, ensure the normal operation of business functions, and ensure the safety of vehicle driving. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0035] Figure 1 is a schematic diagram of a device resource allocation system using the device resource allocation method provided in an embodiment of the present application;

[0036] Figure 2 is a flow chart for implementing the device resource allocation method provided in an embodiment of the present application;

[0037] Figure 3 This is a specific implementation flow chart of step S202 in the device resource allocation method provided in an embodiment of the present application;

[0038] Figure 4 is another specific implementation flow chart of step S202 in the device resource allocation method provided in an embodiment of the present application;

[0039] Figure 5 is a structural block diagram of a device resource allocation apparatus provided in an embodiment of the present application;

[0040] Figure 6 It is a schematic diagram of a smart device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0041] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0042] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0043] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0044] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0045] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0046] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0047] The device resource allocation method provided in the embodiment of the present application may require various types of intelligent devices to perform resource allocation, which may specifically include vehicle-mounted devices, etc. The embodiment of the present application does not impose any restrictions on the specific types of vehicle-mounted devices.

[0048] A device resource allocation method provided in an embodiment of the present application is applied to a device resource allocation system having at least one vehicle-mounted device.

[0049] Figure 1 A schematic diagram of a device resource allocation system provided by an embodiment of the present application is shown. Figure 1 As shown, the device resource allocation system at least includes a vehicle-mounted device 10. The vehicle-mounted device 10 and the vehicle-mounted device 11 can be connected to each other by wired or wireless communication. The specific types of the vehicle-mounted device 10 and the vehicle-mounted device 11 are not limited in this embodiment.

[0050] Among them, the vehicle-mounted device 10 may be built-in with a processing control module 101, a screen projection module 102 and a safety monitoring module 103. Among them, the above-mentioned processing control module 101 can be used to execute the device resource allocation method provided in the embodiment of the present application, by monitoring the driving speed of the vehicle, and determining the resource allocation adjustment strategy of the resource consumption event according to the driving speed, and based on the resource allocation adjustment strategy, adjust and allocate the system resources occupied by the screen projection module 102 and the safety monitoring module 103. The safety monitoring module 103 may specifically include an ADAS submodule, a DMS submodule and a face detection submodule. The ADAS submodule is used for intelligent driving assistance of the vehicle; the DMS submodule is used for behavioral status monitoring of the vehicle driver; and the face detection submodule is used for face detection and recognition. The screen projection module 102 is used to project part of the information in the vehicle-mounted device 10 to the vehicle-mounted device 11 for display.

[0051] The vehicle-mounted device 11 is used to receive the data stream sent by the projection module 102 of the vehicle-mounted device 10 for decoding and display. The vehicle-mounted device 11 includes a display screen, which can be a display screen integrated with the vehicle-mounted device 11 or a display screen external to the vehicle-mounted device 11.

[0052] In this embodiment, the vehicle-mounted device 10 may be an industrial device installed on a vehicle, and the vehicle-mounted device 11 may be a vehicle-mounted central control screen on the vehicle.

[0053] Figure 2 The implementation process of the device resource allocation method provided in the embodiment of the present application is shown. The method is applied to the vehicle-mounted device. The method flow includes steps S201 to S203. The specific implementation principle of each step is as follows:

[0054] Step S201: monitor the driving speed of the vehicle.

[0055] The driving speed monitored in this embodiment is the average speed of the vehicle during a period of continuous driving.

[0056] In this embodiment, a GPS module can be used to accurately measure the vehicle's speed. The GPS receiver receives signals from multiple satellites and determines the vehicle's position, speed, and time by calculating the time difference and phase difference of these signals. Using a GPS module to monitor the vehicle's speed can not only provide real-time speed information, but also record the vehicle's driving trajectory.

[0057] Vehicle sensors can also be used to parse vehicle speed data from the vehicle CAN bus data in real time. Most modern cars are equipped with a speedometer sensor (commonly called a VSS or vehicle speed sensor). This sensor is usually installed on the transmission or differential and measures the speed of the wheel to deduce the vehicle's speed. The sensor converts this information into an electrical signal and sends it to the vehicle's electronic control unit ECU or speedometer, which is then displayed to the driver.

[0058] In this embodiment, the driving speed of the vehicle is monitored during driving, and the driving speed is used as a reference factor for resource allocation of a service function system of the vehicle-mounted device.

[0059] Step S202: Determine a resource allocation adjustment strategy for a resource consumption event according to the driving speed.

[0060] Resource consumption events are processes corresponding to business functions in vehicle-mounted devices. In this embodiment, resource consumption events specifically include safety monitoring events such as ADAS, DMS, and face detection, and also include screen projection events where a vehicle-mounted device projects a screen to another vehicle-mounted device. The resource allocation adjustment strategy is used to adjust the allocation of system resources occupied by each resource consumption event. The resource allocation adjustment strategy includes system resources corresponding to each resource consumption event.

[0061] Generally, during normal driving of a vehicle, safety monitoring events and screen projection events operate normally. This embodiment adjusts and allocates resources occupied by resource-consuming events such as safety monitoring events and screen projection events based on the vehicle's driving speed, effectively balancing the system resource allocation for safety monitoring and screen projection, and ensuring the safe driving of the vehicle while ensuring the projection effect as much as possible.

[0062] In some embodiments, the driving speed of the vehicle is divided into three levels: low speed, medium speed and high speed. When the driving speed is less than or equal to a first preset speed threshold, the vehicle is driving at a low speed; when the driving speed is greater than the first preset speed threshold and less than or equal to a second preset speed threshold, the vehicle is driving at a medium speed; when the driving speed is greater than the second preset speed threshold, the vehicle is driving at a high speed. Exemplarily, the first preset speed threshold is 30 km / h, and the second preset speed threshold is 50 km / h.

[0063] As a possible implementation of this application, Figure 3 A specific implementation process of determining a resource allocation adjustment strategy for a resource consumption event according to the driving speed in the device resource allocation method provided in an embodiment of the present application is shown, and is described in detail as follows:

[0064] A1: When the driving speed is less than or equal to a first preset speed threshold, or the driving speed is greater than a second preset speed threshold, the current driving environment information of the vehicle is obtained. The driving environment information may be obtained through a vehicle-mounted camera, a vehicle-mounted sensor, etc.

[0065] A2: Determine a resource allocation adjustment strategy for a resource consumption event according to the driving speed and the driving environment information.

[0066] In this embodiment, when the vehicle is traveling at a low speed or a high speed, the resource allocation adjustment strategy for the resource consumption time is determined in combination with the driving speed and the current driving environment information.

[0067] The driving environment information includes at least one of weather information, driving section type and obstacle information. Among them, weather information includes weather type, temperature, humidity, visibility, etc., and weather types include sunny days, rainy days, snowy days, strong winds, etc. Driving section types include expressway sections and non-expressway sections. In some implementations, the driving section types of non-expressway sections are specifically divided according to road grade functions, including national roads, provincial roads, county roads and township roads; the driving section types of non-expressway sections are divided according to special sections, including bridges, tunnels, mountain roads, wetland roads, intersections, etc.

[0068] When a vehicle is driving on a complex road or in complex weather conditions, the driving difficulty of the vehicle increases, and the vehicle is highly dependent on safety monitoring functions such as ADAS and DMS. In this case, combining the driving speed and driving environment information to determine the resource allocation adjustment strategy can further improve the accuracy and effectiveness of resource allocation.

[0069] As a possible implementation of the present application, the scene the vehicle is currently in is determined according to the driving speed and the driving environment information. The resource allocation adjustment strategy corresponding to the scene is determined according to a preset scene resource comparison table.

[0070] The preset scenario resource comparison table is a comparison table that maps pre-built scenarios to resource allocation adjustment strategies. The resource allocation adjustment strategies in the preset scenario resource comparison table include system resources that should be allocated to resource consumption events in each scenario.

[0071] In this implementation, when the driving speed is less than or equal to the first preset speed threshold or the driving speed is greater than the second preset speed threshold, that is, when the vehicle is driving at a low speed or a high speed, the vehicle's current scene is determined based on the driving speed and driving environment information, and then the resource allocation adjustment strategy corresponding to the current scene is determined according to the preset scene resource comparison table, so as to accurately and quickly determine the allocation of resources of various business function systems of the on-board equipment.

[0072] Exemplarily, when the driving speed is less than or equal to the first preset speed threshold, based on the driving speed and driving environment information, it is determined that the vehicle is in a congested or waiting for a traffic light scenario. At this time, priority is given to ensuring high-quality display of the projection screen. In the resource allocation adjustment strategy corresponding to this scenario, the system resources for the projection screen event are increased, and the system resources for safety monitoring events such as ADAS and DMS are reduced. When the driving speed is greater than the second preset speed threshold, based on the driving speed and driving environment information, it is determined that the vehicle is driving at high speed on a highway section. At this time, priority is given to ensuring safety monitoring functions such as ADAS and DMS. In the resource allocation adjustment strategy corresponding to this scenario, the system resources for safety monitoring events are increased, and the system resources for projection screen events are reduced.

[0073] As a possible implementation of the present application, when the driving speed is greater than a second preset speed threshold, a driving risk coefficient is calculated according to the driving speed and the driving environment information. Based on a preset risk resource comparison table, a resource allocation adjustment strategy corresponding to the driving risk coefficient is determined. The preset analysis resource comparison table includes a correspondence between risk coefficients and resource allocation adjustment strategies, and the resource allocation adjustment strategies in the comparison table include system resources that should be allocated to each resource consumption event determined according to the risk coefficient.

[0074] When the driving speed is greater than the second preset speed threshold, the vehicle is in high-speed driving. To ensure the safety of vehicle driving, this embodiment calculates the driving risk coefficient based on the driving speed and driving environment information, and determines the system resources to be allocated for each resource consumption event based on the driving risk coefficient. By calculating the driving risk coefficient, the accuracy of determining the system resources for each resource consumption event is further improved, which can effectively ensure the safety of vehicle driving while ensuring the screen projection effect. In this embodiment, in the preset analysis resource comparison table, the larger the driving risk coefficient, the higher the proportion of system resources for safety monitoring events, and the smaller the proportion of system resources for screen projection events. Conversely, the smaller the driving risk coefficient, the smaller the proportion of system resources for safety monitoring events, and the larger the proportion of system resources for screen projection events.

[0075] In a possible implementation, there is more than one type of driving environment information, and the driving risk coefficient L is calculated according to the following calculation formula (1):

[0076]

[0077] ε i0 represents the initial risk coefficient of the vehicle at driving speed i, ε i0 >0,Δη j represents the risk value corresponding to the jth driving environment information, M is the number of driving environment information, 0<j≤M, Func is any monotonically increasing function that realizes the mapping from [0,+∞) to [0,1). For example, Func can be any of the following functions:

[0078]

[0079] The initial risk coefficients corresponding to different vehicles may be different. Specifically, the initial risk coefficient corresponding to the driving speed i can be determined according to the vehicle type and model.

[0080] It is worth noting that the above-mentioned increase or decrease in system resources refers to the increase or decrease relative to the time before the allocation is adjusted.

[0081] As a possible implementation of the present application, the device resource allocation method provided by the present application further includes, if it is determined according to the weather information that the current weather is complex weather such as heavy rain, heavy snow, hail, etc., then reducing the first preset speed threshold and the second preset speed threshold. For example, reducing the first preset speed threshold from 30km / h to 20km / h, and reducing the second preset speed threshold from 50km / h to 30km / h.

[0082] In a possible implementation, when the driving speed is greater than a first preset speed threshold and less than or equal to a second preset speed threshold, the preset adjustment strategy is determined as the resource allocation adjustment strategy for the resource consumption event. That is, when the vehicle is driving at a medium speed, the preset adjustment strategy is determined as the resource allocation adjustment strategy for this round of resource consumption events.

[0083] As a possible implementation of this application, Figure 4 Another specific implementation process of determining the resource allocation adjustment strategy for the resource consumption event according to the driving speed in the device resource allocation method provided in the embodiment of the present application is shown, and is described in detail as follows:

[0084] B1: When the driving speed is greater than a first preset speed threshold and less than or equal to a second preset speed threshold, the driver's state information and the current driving environment information of the vehicle are obtained.

[0085] B2: Determine a resource allocation adjustment strategy for a resource consumption event based on the driver's status information and the driving environment information.

[0086] In this embodiment, in the resource allocation adjustment strategy for resource consumption events, the system resources corresponding to each resource consumption event are related to the driver's state information and the driving environment information.

[0087] Considering that the vehicle is generally in a relatively stable state when traveling at medium speed and the driver is prone to drowsiness, by combining the driver's state information with the driving environment information to determine the resource allocation adjustment strategy for resource consumption events, it is possible to ensure the safety of vehicle driving while ensuring the normal operation of other business functions, and effectively optimize the system resource allocation of each business function.

[0088] Step S203: Based on the resource allocation adjustment strategy, the system resources occupied by the resource consumption event are adjusted and allocated.

[0089] In this implementation, based on the system resources corresponding to each resource consumption event in the resource allocation adjustment strategy, the system resources occupied by the resource consumption event are adjusted and then allocated.

[0090] Take an application scenario as an example. When the vehicle-mounted device detects that the vehicle is driving at a low speed, the calculation of ADAS, DMS, face detection and other functions is turned off to release the system resources occupied by this part of the safety monitoring event, and the released system resources are reallocated to the screen projection event to increase the frame rate and bit rate of the screen projection. When the vehicle-mounted device detects that the vehicle is driving at a high speed, according to the resource allocation adjustment strategy corresponding to high-speed driving, the system resources corresponding to the safety monitoring event are increased, the system resources corresponding to the screen projection event are reduced, and the frame rate of the video analysis of the safety monitoring event is increased, such as 30 frames per second, and the frame rate and bit rate of the screen projection are reduced. When the vehicle-mounted device detects that the vehicle is driving at a medium speed, it is necessary to perform video analysis on ADAS and DMS, but because the driving speed is not high, the frame rate of video analysis processing of safety monitoring events such as ADAS and DMS can be reduced by a preset ratio, such as a processing speed of 10 frames per second; at this time, the occupation of system resources of the screen projection event is also in a medium state, the screen projection effect is good, and the screen projection frame rate and bit rate are reduced by a preset ratio.

[0091] Exemplarily, the resource allocation adjustment strategy is shown in the following table:

[0092]

[0093]

[0094] In this embodiment, the system resources of each resource consumption event in the vehicle-mounted equipment are dynamically adjusted based on the resource allocation adjustment strategy to ensure the effective operation of safety monitoring events such as ADAS and DMS in high-speed and complex driving environments, ensure driving safety, and improve the safety of the journey. When the vehicle is driving at a low speed, the system resources of the screen projection event are effectively increased while ensuring driving safety, making rational use of system resources, and enhancing the user experience.

[0095] As a possible implementation of the present application, the device resource allocation method is applied to a first vehicle-mounted device, and the first vehicle-mounted device is in communication connection with a second vehicle-mounted device on a vehicle. When the first vehicle-mounted device detects a target instruction sent by the second vehicle-mounted device, the process of a specified resource consumption event in the first vehicle-mounted device is suspended, and the specified resource consumption event includes a timed trigger event.

[0096] In this embodiment, the second vehicle-mounted device monitors touch events such as clicks and screen touches. When a touch event is detected, a target instruction is generated and sent to the first vehicle-mounted device. When the first vehicle-mounted device detects the target instruction, the process of the timed trigger event in the first vehicle-mounted device is suspended. The timed trigger event includes timed triggered face recognition, data upload, etc.

[0097] As can be seen from the above, in the embodiment of the present application, by monitoring the driving speed of the vehicle, the resource allocation adjustment strategy of the resource consumption event is determined according to the driving speed, and then based on the resource allocation adjustment strategy, the system resources occupied by the resource consumption event are adjusted and allocated. The present application determines the resource allocation adjustment strategy according to the driving speed, and adjusts the system resources occupied by each business function based on the scheme, which can effectively optimize the allocation of system resources of the vehicle-mounted equipment, ensure the normal operation of the business functions, and ensure the safety of vehicle driving.

[0098] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0099] Corresponding to the device resource allocation method described in the above embodiment, Figure 5 A structural block diagram of a device resource allocation apparatus provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0100] Reference Figure 5 The device resource allocation apparatus comprises: a speed monitoring unit 51, a strategy determination unit 52, and a resource allocation unit 53, wherein:

[0101] A speed monitoring unit 51, used to monitor the driving speed of the vehicle;

[0102] a strategy determination unit 52, configured to determine a resource allocation adjustment strategy for a resource consumption event according to the driving speed;

[0103] The resource allocation unit 53 is used to adjust and allocate the system resources occupied by the resource consumption event based on the resource allocation adjustment policy.

[0104] As a possible implementation of the present application, the above-mentioned strategy determination unit 52 includes:

[0105] A first information acquisition module, configured to acquire current driving environment information of the vehicle when the driving speed is less than or equal to a first preset speed threshold, or when the driving speed is greater than a second preset speed threshold;

[0106] The first solution determination module is used to determine a resource allocation adjustment strategy for a resource consumption event according to the driving speed and the driving environment information.

[0107] As a possible implementation of the present application, the first solution determination module includes:

[0108] A scene determination submodule, used to determine the scene in which the vehicle is currently located according to the driving speed and the driving environment information;

[0109] The first solution determination submodule is used to determine the resource allocation adjustment strategy corresponding to the scenario according to a preset scenario resource comparison table.

[0110] As a possible implementation manner of the present application, when the driving speed is greater than the second preset speed threshold, the first solution determination module includes:

[0111] A risk calculation submodule, used to calculate a driving risk coefficient according to the driving speed and the driving environment information;

[0112] The second solution determination submodule is used to determine the resource allocation adjustment strategy corresponding to the driving risk coefficient based on a preset risk resource comparison table.

[0113] In a possible implementation manner of the first aspect, the driving environment information includes weather information, and the device further includes:

[0114] The threshold adjustment module is used to reduce the first preset speed threshold and the second preset speed threshold if it is determined according to the weather information that the current weather is complex weather.

[0115] As a possible implementation manner of the present application, the strategy determination unit 52 further includes:

[0116] A second information acquisition module, configured to acquire the driver's state information and the current driving environment information of the vehicle when the driving speed is greater than the first preset speed threshold and less than or equal to the second preset speed threshold;

[0117] The second solution determination module is used to determine the resource allocation adjustment strategy of the resource consumption event according to the driver's state information and the driving environment information.

[0118] As a possible implementation manner of the present application, the above-mentioned device is applied to a first vehicle-mounted device, and the first vehicle-mounted device is communicatively connected with a second vehicle-mounted device on the vehicle; the above-mentioned device also includes:

[0119] The process suspension unit is used to suspend the process of the specified resource consumption event in the first vehicle-mounted device when detecting the target instruction sent by the second vehicle-mounted device, and the specified resource consumption event includes a timed trigger event.

[0120] As can be seen from the above, in the embodiment of the present application, by monitoring the driving speed of the vehicle, the resource allocation adjustment strategy of the resource consumption event is determined according to the driving speed, and then based on the resource allocation adjustment strategy, the system resources occupied by the resource consumption event are adjusted and allocated. The present application determines the resource allocation adjustment strategy according to the driving speed, and adjusts the system resources occupied by each business function based on the scheme, which can effectively optimize the allocation of system resources of the vehicle-mounted equipment, ensure the normal operation of the business functions, and ensure the safety of vehicle driving.

[0121] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0122] The present application also provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, Figures 2 to 4 Any step of a device resource allocation method represented.

[0123] The embodiment of the present application also provides an intelligent device, including a memory, a processor, and a computer program stored in the memory and running on the processor, wherein when the processor executes the computer program, the following is achieved: Figures 2 to 4 Any step of a device resource allocation method represented.

[0124] The embodiment of the present application also provides a computer program product, when the computer program product is run on a smart device, the smart device executes the following Figures 2 to 4 Any step of a device resource allocation method represented.

[0125] Figure 6 Schematic diagram of a smart device provided by an embodiment of the present application. Figure 6 As shown, the smart device 6 of this embodiment includes: a processor 60, a memory 61, and a computer program 62 stored in the memory 61 and executable on the processor 60. When the processor 60 executes the computer program 62, the steps in the above-mentioned device resource allocation method embodiments are implemented, for example Figure 2 Alternatively, when the processor 60 executes the computer program 62, the functions of each module / unit in the above-mentioned device embodiments are realized, for example Figure 5The functions of units 51 to 53 are shown.

[0126] Exemplarily, the computer program 62 may be divided into one or more modules / units, which are stored in the memory 61 and executed by the processor 60 to complete the present application. The one or more modules / units may be a series of computer-readable instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 62 in the smart device 6.

[0127] The smart device 6 may be a vehicle-mounted device. The smart device 6 may include, but is not limited to, a processor 60 and a memory 61. Those skilled in the art will appreciate that Figure 6 It is only an example of the smart device 6 and does not constitute a limitation of the smart device 6. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the smart device 6 may also include input and output devices, network access devices, buses, etc.

[0128] The processor 60 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0129] The memory 61 may be an internal storage unit of the smart device 6, such as a hard disk or memory of the smart device 6. The memory 61 may also be an external storage device of the smart device 6, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the smart device 6. Further, the memory 61 may also include both an internal storage unit and an external storage device of the smart device 6. The memory 61 is used to store the computer program and other programs and data required by the smart device. The memory 61 may also be used to temporarily store data that has been output or is to be output.

[0130] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0131] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0132] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the device / terminal device, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0133] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0134] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for allocating device resources, characterized in that: include: Monitor the speed of vehicles; Determining a resource allocation adjustment strategy for a resource consumption event according to the driving speed; Based on the resource allocation adjustment policy, the system resources occupied by the resource consumption event are adjusted and allocated.

2. The method according to claim 1, characterized in that The step of determining a resource allocation adjustment strategy for a resource consumption event according to the driving speed includes: When the driving speed is less than or equal to a first preset speed threshold, or the driving speed is greater than a second preset speed threshold, obtaining current driving environment information of the vehicle; A resource allocation adjustment strategy for a resource consumption event is determined according to the driving speed and the driving environment information.

3. The method according to claim 2, characterized in that The step of determining a resource allocation adjustment strategy for a resource consumption event according to the driving speed and the driving environment information comprises: Determining a current scene of the vehicle according to the driving speed and the driving environment information; According to the preset scenario resource comparison table, a resource allocation adjustment strategy corresponding to the scenario is determined.

4. The method according to claim 2, characterized in that: When the driving speed is greater than a second preset speed threshold, the step of determining a resource allocation adjustment strategy for a resource consumption event according to the driving speed and the driving environment information includes: Calculating a driving risk coefficient according to the driving speed and the driving environment information; Based on a preset risk resource comparison table, a resource allocation adjustment strategy corresponding to the driving risk coefficient is determined.

5. The method according to claim 2, characterized in that: The driving environment information includes weather information, and the method further includes: If it is determined according to the weather information that the current weather is complex weather, the first preset speed threshold and the second preset speed threshold are lowered.

6. The method according to claim 1, characterized in that The step of determining a resource allocation adjustment strategy for a resource consumption event according to the driving speed includes: When the driving speed is greater than a first preset speed threshold and less than or equal to a second preset speed threshold, obtaining the driver's state information and the current driving environment information of the vehicle; A resource allocation adjustment strategy for a resource consumption event is determined according to the driver's state information and the driving environment information.

7. The method according to any one of claims 1 to 5, characterized in that: Applied to a first vehicle-mounted device, the first vehicle-mounted device is communicatively connected with a second vehicle-mounted device on the vehicle; the method further comprises: When the target instruction sent by the second vehicle-mounted device is detected, the process of the specified resource consumption event in the first vehicle-mounted device is suspended, and the specified resource consumption event includes a timed trigger event.

8. A device resource allocation apparatus, characterized in that: include: A speed monitoring unit, used to monitor the driving speed of the vehicle; a strategy determination unit, configured to determine a resource allocation adjustment strategy for a resource consumption event according to the driving speed; The resource allocation unit is used to adjust and allocate the system resources occupied by the resource consumption event based on the resource allocation adjustment policy.

9. An intelligent device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the device resource allocation method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the device resource allocation method according to any one of claims 1 to 7 is implemented.