Data center resource allocation method and system based on artificial intelligence

Through the data center resource allocation method based on artificial intelligence in connected cars, the driving status of the vehicle is used to start and stop switching of uplink and downlink data resources, which solves the problems of slow download speed and low upgrade efficiency during the firmware upgrade process, and achieves a better Efficient and secure firmware package downloading.

CN118802800APending Publication Date: 2024-10-18INST OF PHYSICS HENAN ACAD OF SCI +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411018459.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing connected car firmware upgrade technology has problems such as slow download speed and low upgrade efficiency. Especially when downloading firmware packages when not driving, due to weak indoor network signals and possible network congestion, the vehicle needs to upgrade firmware. Takes longer.

Method used

Using a data center resource allocation method based on artificial intelligence, by obtaining the driving status information of the target vehicle, the uplink and downlink data resources are switched on and off, so that the vehicle can complete the download of part or all of the firmware package during the driving process to avoid being in a non-driving state. Download the full version below.

Benefits of technology

It improves the efficiency and safety of vehicle firmware upgrade, ensures reasonable allocation of data resources while driving, avoids the problems of slow download speed and low upgrade efficiency, and ensures the safety of firmware download.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118802800A_ABST
    Figure CN118802800A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to the technical field of artificial intelligence, and discloses a data center resource allocation method and system based on artificial intelligence, and the method carries out the start-stop switching of uplink and downlink data resource allocation according to the driving state of a vehicle in the driving process of a target vehicle. Therefore, the vehicle can safely and quickly complete partial or complete downloading of the firmware package, and the problems of low downloading speed and low upgrading efficiency caused by the fact that the upgrading firmware package of the vehicle is completely downloaded and upgraded in a non-driving state are solved, so that uplink and downlink data resources are reasonably distributed according to the driving state of the vehicle, and the upgrading efficiency is improved. And the firmware upgrading efficiency of the vehicle is greatly improved on the basis of ensuring the firmware downloading security.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a data center resource allocation method and system based on artificial intelligence. Background Art

[0002] With the rapid development of science and technology and the increasing demand of consumers for intelligent vehicles, electric connected vehicles have become an important part of modern transportation. In terms of improving the performance of connected vehicles and enhancing the user's driving experience, firmware upgrades have become one of the key optimization methods. Firmware upgrades can not only fix known defects, but also add new functions to the vehicle to meet the diverse needs of users.

[0003] However, the existing firmware upgrade technology for connected vehicles has certain limitations. Generally speaking, when a vehicle is upgrading its firmware, it is necessary to download the firmware package when the vehicle is not in a driving state. When not in a driving state, the vehicle is usually parked in a relatively closed indoor space environment, such as a garage, basement, etc. Although these environments provide relatively safe parking conditions for vehicles, they also bring about the problem of slow firmware package download speed. Since the network signal in the indoor environment is often weak, coupled with possible network congestion, it takes a long time for the vehicle to download the firmware package when upgrading its firmware, thereby reducing the upgrade efficiency. Therefore, it is necessary to provide a new firmware upgrade method to solve the problems of slow download speed and low upgrade efficiency encountered by connected vehicles during the firmware upgrade process.

[0004] In addition, when the server allocates firmware package data resources, there is unreasonable authority allocation, resulting in low overall upgrade efficiency for all vehicles within the server management scope. Summary of the invention

[0005] The main purpose of the present invention is to provide a data center resource allocation method and system based on artificial intelligence, aiming to solve the technical problem of low efficiency of vehicle firmware upgrade in the prior art.

[0006] To achieve the above objectives, in a first aspect, an embodiment of the present application provides a data center resource allocation method based on artificial intelligence, which is applied to a resource allocation system, wherein the resource allocation system includes a cloud server, and the method includes:

[0007] Obtaining a firmware upgrade request instruction sent by a target vehicle, wherein the target vehicle sends a firmware upgrade request instruction to a cloud server at a preset frequency when the firmware upgrade is not completed;

[0008] Determining a current state of the target vehicle according to the firmware upgrade request instruction, wherein the current state of the target vehicle includes a driving state and a non-driving state;

[0009] When the target vehicle is in a driving state, obtaining driving state information of the target vehicle based on artificial intelligence technology;

[0010] Performing start-stop switching of uplink and downlink data resource allocation according to the driving state change information of the target vehicle so that the target vehicle completes the download of part or all of the firmware packages;

[0011] When all firmware packages are downloaded and the target vehicle is in a non-driving state, the target vehicle is controlled to run the firmware package to perform firmware upgrade.

[0012] In a possible implementation, the driving state change information includes driving speed change information of the vehicle, and the start-stop switching of uplink and downlink data resource allocation according to the driving state change information of the target vehicle so that the target vehicle completes the download of part or all of the firmware packages includes:

[0013] Determine that the driving speed of the target vehicle changes from a high speed state to a low speed state and lasts for a first preset time, and control the uplink and downlink data resources to switch from an enabled allocation state to a paused allocation state;

[0014] It is determined that the driving speed of the target vehicle changes from a low speed state to a high speed state and lasts for a first preset time period, and the uplink and downlink data resources are controlled to switch from a suspended allocation state to an enabled allocation state.

[0015] In a possible implementation, after determining that the driving speed of the target vehicle changes from a high speed state to a low speed state and lasts for a first preset time, the method further includes:

[0016] Reconfirm the driving status information of the target vehicle, and when the remaining power of the target vehicle is less than or equal to the preset power, control the uplink and downlink data resources to switch from the enabled allocation state to the suspended allocation state; or,

[0017] The driving state information of the target vehicle is reconfirmed, and when the vibration degree of the target vehicle is greater than the vibration degree threshold, the uplink and downlink data resources are controlled to switch from the enabled allocation state to the suspended allocation state.

[0018] In a possible implementation, the driving state change information includes driving vibration change information of the target vehicle, and the start-stop switching of resource allocation according to the driving state change information of the target vehicle so that the target vehicle completes the download of part or all of the firmware packages includes:

[0019] Determine that the driving vibration state of the target vehicle changes from a first vibration state to a second vibration state and lasts for a second preset time, and control the uplink and downlink data resources to switch from an enabled allocation state to a paused allocation state;

[0020] Determine that the driving vibration of the target vehicle changes from the second vibration state to the first vibration state and lasts for a second preset time, and control the uplink and downlink data resources to switch from the suspended allocation state to the enabled allocation state;

[0021] The vibration amount of the target vehicle in the second vibration state is greater than the vibration amount in the first vibration state.

[0022] In a possible implementation, after the start-stop switching of uplink and downlink data resource allocation is performed according to the driving state change information of the target vehicle so that the target vehicle completes the download of part or all of the firmware packages, the method further includes:

[0023] Obtaining the start / stop switching frequency of the uplink / downlink data resource allocation and the download progress of the firmware package;

[0024] When it is determined that the start-stop switching frequency of the uplink and downlink data resource allocation is greater than or equal to the frequency threshold, and the firmware package download progress is greater than or equal to the progress threshold, the uplink and downlink data resource allocation is controlled to enter a paused allocation state and the start-stop switching of the resource allocation is not performed during the driving of the target vehicle.

[0025] In a possible implementation, after the start-stop switching of uplink and downlink data resource allocation is performed according to the driving state change information of the target vehicle so that the target vehicle completes the download of part or all of the firmware packages, the method further includes:

[0026] Obtaining the start / stop switching frequency of the uplink / downlink data resource allocation and the download progress of the firmware package;

[0027] When it is determined that the start / stop switching frequency of the firmware package download is greater than or equal to the frequency threshold, and the firmware package download progress is less than or equal to the progress threshold, obtaining an average download speed of the firmware package;

[0028] When it is determined that the average download speed of the firmware package is less than or equal to the download speed threshold, the uplink and downlink data resource allocation is controlled to enter a suspended allocation state and the start-stop switching of resource allocation is not performed during the driving of the target vehicle.

[0029] In a possible implementation, after determining the current state of the target vehicle according to the firmware upgrade request instruction, the method further includes:

[0030] When the target vehicle is in a non-driving state, obtaining the remaining battery power information of the target vehicle;

[0031] When it is determined that the remaining battery power of the target vehicle is greater than or equal to the power threshold, the uplink and downlink data resource allocation is controlled to enter an open allocation state and a firmware upgrade is performed after the target vehicle download is completed;

[0032] When it is determined that the remaining battery power of the target vehicle is less than the power threshold, a charging reminder message is sent to the user APP at a preset frequency.

[0033] In a possible implementation, the driving state information includes a vehicle driving speed, and the obtaining the driving state information of the target vehicle based on artificial intelligence technology includes:

[0034] Acquire multiple frames of images captured by a camera on a target vehicle, wherein the multiple frames of images include features of the same target road sign;

[0035] Determine the displacement of the target vehicle according to the target road sign feature change information in the multiple frame images;

[0036] The speed of the target vehicle is determined according to the displacement of the target vehicle and the time interval between multiple frame images.

[0037] In a possible implementation, the driving state information includes a vehicle vibration state, and the obtaining of the driving state information of the target vehicle based on artificial intelligence technology includes:

[0038] Acquire vibration data collected by an acceleration sensor on a target vehicle, wherein the vibration data includes vibration frequency, amplitude, and duration;

[0039] The vibration data is input into a pre-trained vibration evaluation model to obtain a real-time vibration degree value, and the real-time vibration degree value is used to characterize the real-time magnitude value of the vibration degree during the driving process of the target vehicle.

[0040] In a second aspect, an embodiment of the present application further provides a resource allocation system, including:

[0041] a memory for storing program code; and

[0042] A processor, wherein the processor is used to call the program code to execute the method as described in the first aspect.

[0043] Different from the prior art, the data center resource allocation method based on artificial intelligence provided by the embodiment of the present application first obtains the firmware upgrade request instruction sent by the target vehicle, then judges the current state of the target vehicle according to the firmware upgrade request instruction, and when it is judged that the target vehicle is in a driving state, obtains the driving state information of the target vehicle based on artificial intelligence technology; then, according to the driving state change information of the target vehicle, the start-stop switching of the uplink and downlink data resource allocation is performed so that the target vehicle completes the download of part or all of the firmware package; finally, when the firmware package is fully downloaded and the target vehicle is in a non-driving state, the target vehicle is controlled to run the firmware package for firmware upgrade. That is, during the driving process of the target vehicle, the start-stop switching of the uplink and downlink data resource allocation is performed according to the driving state of the vehicle (which can be understood as the start-stop switching of the firmware package download), so that the vehicle can safely and quickly complete the download of part or all of the firmware package, avoiding the problem of slow download speed and low upgrade efficiency caused by the vehicle's upgraded firmware package being completely downloaded and upgraded in a non-driving state. In this way, the reasonable allocation of uplink and downlink data resources is performed according to the driving state of the vehicle, and the firmware upgrade efficiency of the vehicle is greatly improved on the basis of ensuring the security of firmware download. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, 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 invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.

[0045] Figure 1 This is a schematic diagram of a data center resource allocation process in some embodiments of the present application;

[0046] Figure 2 A flowchart of a data center resource allocation method in some embodiments of the present application;

[0047] Figure 3 Schematic diagram of the implementation process of some embodiments of step S400 of the present application;

[0048] Figure 4 Schematic diagram of the implementation process of other embodiments of step S400 of the present application

[0049] Figure 5 This is a schematic diagram of the hardware structure of the resource allocation system in some embodiments of the present application;

[0050] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0052] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0053] In addition, the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, "and / or" in the full text includes three solutions. Taking A and / or B as an example, it includes technical solution A, technical solution B, and technical solution that satisfies both A and B. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in this field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0054] With the rapid development of science and technology and the increasing demand of consumers for intelligent vehicles, electric connected vehicles have become an important part of modern transportation. In terms of improving the performance of connected vehicles and enhancing the user's driving experience, firmware upgrades have become one of the key optimization methods. Firmware upgrades can not only fix known defects, but also add new functions to the vehicle to meet the diverse needs of users.

[0055] However, the existing firmware upgrade technology for connected vehicles has certain limitations. Generally speaking, when a vehicle is upgrading its firmware, it is necessary to download the firmware package when the vehicle is not in a driving state. When not in a driving state, the vehicle is usually parked in a relatively closed indoor space environment, such as a garage, basement, etc. Although these environments provide relatively safe parking conditions for vehicles, they also bring about the problem of slow firmware package download speed. Since the network signal in the indoor environment is often weak, coupled with possible network congestion, it takes a long time for the vehicle to download the firmware package when upgrading its firmware, thereby reducing the upgrade efficiency. Therefore, it is necessary to provide a new firmware upgrade method to solve the problems of slow download speed and low upgrade efficiency encountered by connected vehicles during the firmware upgrade process.

[0056] In addition, when the server allocates firmware package data resources, there is unreasonable authority allocation, resulting in low overall upgrade efficiency for all vehicles within the server management scope.

[0057] In response to the above problems, the present application proposes an artificial intelligence-based data center resource allocation method, which is applied to a resource allocation system. The resource allocation system includes a cloud server, that is, the cloud server allocates uplink and downlink data resources to all vehicles within its management scope, so that all vehicles can quickly and efficiently complete firmware downloads and upgrades.

[0058] It can be understood that when the cloud server allocates data resources to all vehicles at the same time, that is, when all vehicles start downloading firmware packages at the same time, it will have a certain impact on the download efficiency and security of the vehicle firmware packages. For example, when the vehicle is in a poor network state, it will accelerate the memory consumption of the cloud server, resulting in a significant impact on the data download of other vehicles, thereby affecting the overall download efficiency; when the vehicle is in a state of high vibration, the hardware is prone to unstable contact, resulting in a significant impact on the security of data download, thereby affecting the security of the data. Based on this, the artificial intelligence-based data center resource allocation method of the present application performs start-stop switching of uplink and downlink data resource allocation according to the driving state of the vehicle during the driving process of the target vehicle. When the driving state of the vehicle is good, the cloud server starts to allocate uplink and downlink data resources to the vehicle so that the vehicle can download the firmware package. When the driving state of the vehicle is not good, the cloud server suspends the allocation of uplink and downlink data resources to the vehicle so that the vehicle suspends the firmware package download. In this way, the cloud server data center allocates data resources to target vehicles under "favorable conditions" and does not allocate data resources to target vehicles under "unfavorable conditions", so that the vehicle can safely and quickly complete the partial or full download of the firmware package, avoiding the problem of slow download speed and low upgrade efficiency caused by downloading and upgrading the vehicle's upgrade firmware package completely when it is not driving. In addition, the reasonable allocation of uplink and downlink data resources according to the vehicle's driving status greatly improves the vehicle's firmware upgrade efficiency while ensuring the security of firmware downloads.

[0059] like Figure 1-4 As shown, the following will mainly describe the specific steps of the data center resource allocation method based on artificial intelligence. It should be noted that although the logical order is shown in the flowchart, in some cases, the steps shown or described can be performed in a different order from here. Figure 1 This embodiment takes the cloud server executing the method as an example to illustrate, and the method includes steps S100 to S500:

[0060] S100, obtaining a firmware upgrade request instruction sent by a target vehicle, wherein the target vehicle sends a firmware upgrade request instruction to a cloud server at a preset frequency when the firmware upgrade is not completed;

[0061] Specifically, when there is a software update on the server, the update information is pushed to the vehicle terminal, and the vehicle terminal displays the update information and makes an upgrade request at the same time. For example, the vehicle sends a firmware upgrade request instruction to the cloud server at a preset frequency, for example, once every 1 minute, before completing the firmware upgrade.

[0062] S200, determining a current state of the target vehicle according to the firmware upgrade request instruction, where the current state of the target vehicle includes a driving state and a non-driving state;

[0063] When the cloud server receives firmware update request instructions sent by a large number of vehicles, how to distribute the software package data is crucial to the overall efficiency and safety of the vehicle firmware upgrade. If the firmware package data is only distributed when the vehicle is not driving, the overall efficiency of the vehicle firmware upgrade will be very low; further, if the software package data is distributed when the vehicle is in driving state but the vehicle network status is not good, it will not only affect the data download of the target vehicle, but also affect the data download of other vehicles. This is not conducive to the overall efficiency of the vehicle software upgrade.

[0064] Therefore, in order to reasonably distribute and manage the software package data, it is necessary to determine the current state of the vehicle and the state change, such as whether the vehicle is in a driving state or a non-driving state.

[0065] S300, when the target vehicle is in a driving state, obtaining driving state information of the target vehicle based on artificial intelligence technology;

[0066] In one embodiment, the driving state information includes the vehicle driving speed, and the step S300: obtaining the driving state information of the target vehicle based on artificial intelligence technology includes:

[0067] S310, acquiring multiple frames of images captured by a camera on a target vehicle, wherein the multiple frames of images include features of the same target road sign;

[0068] S320, determining the displacement of the target vehicle according to the target road sign feature change information in the multiple frames of images;

[0069] S330: Determine the travel speed of the target vehicle according to the displacement of the target vehicle and the time interval between multiple frames of images.

[0070] Specifically, first, use the camera on the target vehicle to continuously acquire multiple frames of images, which contain the same target landmark features, such as road markings, road signs, trees, building edges, etc. These landmark features can be used as reference points to track the movement of the vehicle; then perform preprocessing operations such as grayscale, denoising, and edge detection on each frame of the image to improve the accuracy and efficiency of subsequent processing; then use feature detection algorithms (such as SIFT, SURF, ORB, etc.) to detect key points (i.e., feature points) in each frame of the image, which are usually the most obvious parts of the image; then use feature matching algorithms (such as FLANN, BFMatcher, etc.) between two or more consecutive frames of images to find matching feature point pairs. These matching point pairs represent the positions of the same physical object (i.e., target road sign features) in different images; for each pair of matching feature points, the pixel distance and direction between them are calculated. The pixel distance and direction represent the displacement vector of the feature point from the first frame to the second frame. If there are multiple matching point pairs, an overall displacement vector can be calculated by averaging or weighted averaging. The displacement vector approximately represents the moving direction and distance of the target vehicle relative to the target road sign feature; then, according to the focal length of the camera, the image resolution, and the actual distance between the vehicle and the road sign, the pixel displacement can be converted into an actual distance (such as meters or centimeters); finally, the speed calculation value of the target vehicle is calculated based on the time interval between multiple frames of images and the actual distance. Since the time interval between multiple frames of images is very short, the speed calculation value can be used as the real-time driving speed of the vehicle.

[0071] In another embodiment, the driving state information includes a vehicle vibration state, and the step S300: obtaining the driving state information of the target vehicle based on artificial intelligence technology includes:

[0072] S340, obtaining vibration data collected by an acceleration sensor on the target vehicle, wherein the vibration data includes vibration frequency, amplitude, and duration;

[0073] S350: Input the vibration data into a pre-trained vibration evaluation model to obtain a real-time vibration level value, where the real-time vibration level value is used to characterize the real-time magnitude value of the vibration level of the target vehicle during driving.

[0074] Specifically, first, the vibration data generated by the vehicle during driving collected by the acceleration sensor on the target vehicle is obtained. These data usually include key indicators such as vibration frequency, amplitude and duration. The acceleration sensor can usually measure the acceleration changes of the vehicle in different directions (such as front and back, left and right, up and down), so as to capture the vibration information; then remove the invalid or erroneous data introduced by factors such as sensor noise and electromagnetic interference; finally, input the vibration data into the pre-trained vibration evaluation model to obtain the real-time vibration degree value. When training the vibration evaluation model, a large number of samples containing vibration data and corresponding vibration degree labels can be first collected from historical data, and then the appropriate model structure and parameters are selected according to the characteristics of the problem and the characteristics of the data, and then the training data is used to train the model, and the model parameters are adjusted by cross-validation and other methods to optimize the performance of the model; finally, the trained model is evaluated using independent test data to ensure that the model has good generalization ability and accuracy, so as to train the vibration evaluation model.

[0075] S400, performing start-stop switching of uplink and downlink data resource allocation according to the driving state change information of the target vehicle so that the target vehicle completes the download of part or all of the firmware packages;

[0076] It can be understood that when the network status of the target vehicle is not good or the vibration level is large during driving, if the cloud server data center allocates download permissions to the target vehicle to download the software package, it will lead to problems such as low download efficiency or unsafe downloading, and will also affect the download efficiency of other vehicles in good status; therefore, when the target vehicle is in a good status (good network status or low vibration level), it is suitable to allocate download resources to the target vehicle; when the target vehicle is in a poor status (poor network status or high vibration level), it is not suitable to allocate download resources to the target vehicle, but it is suitable to allocate download resources to other vehicles in good status. In this way, the current status of different target vehicles is comprehensively considered to allocate data resources to improve the download efficiency and download security of the software package.

[0077] In one embodiment, the driving state change information includes driving speed change information of the vehicle, and the step S400: starting and stopping the uplink and downlink data resource allocation according to the driving state change information of the target vehicle so that the target vehicle completes the download of part or all of the firmware package, includes:

[0078] S410, determining that the driving speed of the target vehicle changes from a high speed state to a low speed state and lasts for a first preset time, and controlling the uplink and downlink data resources to switch from an enabled allocation state to a suspended allocation state;

[0079] S420, determining that the driving speed of the target vehicle changes from a low speed state to a high speed state and lasts for a first preset time period, and controlling the uplink and downlink data resources to switch from a paused allocation state to an enabled allocation state.

[0080] Specifically, when the driving speed of the target vehicle changes from a high-speed state to a low-speed state and lasts for a first preset time, it means that the vehicle is driving on a congested section or a section with poor road conditions. The probability that this section is in a crowded state or a closed space is higher, and the probability of an unstable network state is also higher, or the battery power is insufficient. At this time, the uplink and downlink data resources are controlled to switch from the open allocation state to the suspended allocation state, that is, the cloud server data center suspends the allocation of software package download resources to the target vehicle. In this way, the security of firmware package downloading can be improved. At this time, the target vehicle may need more energy to cope with complex road conditions. Suspending downloading can save power and ensure that the target vehicle has enough power to cope with various road conditions.

[0081] When the target vehicle's driving speed changes from a low speed state to a high speed state and lasts for a first preset time, it means that the vehicle has driven to a section of road with good road conditions. The probability that this section is in a crowded or closed space state is low, and the probability that the network state is also good is high. Therefore, at this time, the uplink and downlink data resources are controlled to switch from a suspended allocation state to an open allocation state, that is, the cloud server data center starts allocating software package download resources to the target vehicle. In this way, network resources can be fully utilized when the vehicle is in driving state, the download speed can be increased, and the user waiting time can be reduced.

[0082] To improve the accuracy and rationality of data center resource allocation, in another embodiment, after the step S410: determining that the driving speed of the target vehicle changes from a high speed state to a low speed state and lasts for a first preset time, further includes:

[0083] Reconfirm the driving status information of the target vehicle, and when the remaining power of the target vehicle is less than or equal to the preset power, control the uplink and downlink data resources to switch from the enabled allocation state to the suspended allocation state; or,

[0084] The driving state information of the target vehicle is reconfirmed, and when the vibration degree of the target vehicle is greater than the vibration degree threshold, the uplink and downlink data resources are controlled to switch from the enabled allocation state to the suspended allocation state.

[0085] Specifically, when the target vehicle's driving speed changes from a high speed state to a low speed state and continues for a first preset time, the remaining power of the vehicle is further determined. When the low speed state is caused by insufficient battery power, continuing to download the firmware package at this time will have an adverse effect on the normal driving of the vehicle. Therefore, in this case, the firmware package download is controlled to switch from the open state to the pause state, that is, the uplink and downlink data resources are controlled to switch from the open allocation state to the pause allocation state. Alternatively, when the target vehicle's driving speed changes from a high speed state to a low speed state and continues for a first preset time, the vibration degree of the vehicle is further determined. When the low speed state is caused by the unevenness of the road section causing the user to slow down, continuing to download the firmware package at this time will have an adverse effect on the safety of the download (increase in errors). Therefore, in this case, the firmware package download is controlled to switch from the open state to the pause state, that is, the uplink and downlink data resources are controlled to switch from the open allocation state to the pause allocation state.

[0086] In this way, after determining that the target vehicle's driving speed changes from a high speed state to a low speed state and lasts for a first preset time, the vehicle's driving state information is reconfirmed (from an aspect different from the driving speed), which can improve the accuracy of data center resource allocation.

[0087] In another embodiment, the driving state change information includes driving vibration change information of the target vehicle, and the step S400: performing start-stop switching of resource allocation according to the driving state change information of the target vehicle so that the target vehicle completes the download of part or all of the firmware packages, includes:

[0088] S430, determining that the driving vibration state of the target vehicle changes from the first vibration state to the second vibration state and lasts for a second preset time, and controlling the uplink and downlink data resources to switch from the enabled allocation state to the paused allocation state;

[0089] S440, determining that the driving vibration of the target vehicle changes from the second vibration state to the first vibration state and lasts for a second preset time, and controlling the uplink and downlink data resources to switch from a suspended allocation state to an enabled allocation state;

[0090] The vibration amount of the target vehicle in the second vibration state is greater than the vibration amount in the first vibration state.

[0091] Specifically, when the target vehicle's driving vibration state changes from the first vibration state to the second vibration state and lasts for the second preset time, it means that the stability of the vehicle's controller hardware connection is getting worse, and the probability of terminal loosening is high. At this time, in order to prevent security issues such as firmware download errors, the uplink and downlink data resources are controlled to switch from the open allocation state to the paused allocation state to improve the security of firmware package downloading. When the target vehicle's driving vibration changes from the second vibration state to the first vibration state and lasts for the second preset time, it means that the stability of the vehicle's controller hardware connection is getting better, and the probability of terminal loosening is low. Therefore, at this time, the uplink and downlink data resources are controlled to switch from the paused allocation state to the open allocation state to download and transmit the firmware upgrade package, which can make full use of the vehicle's driving time to download the firmware package, thereby reducing user waiting time.

[0092] It can be understood that the high-speed driving state or low-level vibration state of the vehicle is a "favorable" time for downloading the firmware package, and the vehicle can make full use of the "favorable" time in the driving state to quickly and safely download the firmware package, so as to improve the efficiency of the firmware upgrade. However, if the start-stop switching frequency of the uplink and downlink data resource allocation is too fast, it will affect the performance and even the service life of the vehicle controller. Therefore, in one embodiment, the step S400: after the start-stop switching of the uplink and downlink data resource allocation is performed according to the driving state change information of the target vehicle so that the target vehicle completes the download of part or all of the firmware package, it also includes:

[0093] Obtaining the start / stop switching frequency of the uplink / downlink data resource allocation and the download progress of the firmware package;

[0094] When it is determined that the start-stop switching frequency of the uplink and downlink data resource allocation is greater than or equal to the frequency threshold, and the firmware package download progress is greater than or equal to the progress threshold, the uplink and downlink data resource allocation is controlled to enter a paused allocation state and the start-stop switching of the resource allocation is not performed during the driving of the target vehicle.

[0095] Specifically, first obtain the start-stop switching frequency of uplink and downlink data resource allocation and the download progress of the firmware package. The start-stop switching frequency of uplink and downlink data resource allocation refers to the switching frequency of starting and pausing the download authority allocation of the cloud server data center, for example, it switches 15 times in 2 minutes. The download progress of the firmware package refers to the ratio of the package size of the firmware package that has been downloaded to the total package size, for example, 80% has been downloaded.

[0096] In one embodiment, when the start-stop switching frequency of uplink and downlink data resource allocation is greater than or equal to the frequency threshold, it means that the start-stop of the firmware package download is too frequent, which will have a certain impact on the controller; and when the firmware package download progress is greater than or equal to the progress threshold, it means that most of the firmware package has been downloaded, and the remaining download amount is small, and it can be left in a non-driving state for downloading, such as parking or charging. The remaining firmware package download will not be seriously affected by the user's waiting time for the firmware upgrade due to the small remaining download amount. In order to prevent the frequent start-stop of the firmware package download from having an adverse effect on the controller performance, the uplink and downlink data resource allocation is controlled to enter a suspended allocation state at this time, and the start-stop switching of the resource allocation will no longer be performed during the driving of the target vehicle.

[0097] In another embodiment, when the start-stop switching frequency of uplink and downlink data resource allocation is greater than or equal to the frequency threshold, it means that the start-stop of the firmware package download is too frequent, which will have a certain impact on the controller; and when the firmware package download progress is less than the progress threshold, it means that most of the firmware package has not been downloaded. If it is judged that the average download speed is small at this time, even if the download permission is allocated for firmware package download, the download speed will not be very fast. At this time, in order to prevent the frequent start-stop of the firmware package download from having an adverse effect on the controller performance, the uplink and downlink data resource allocation is controlled to enter a suspended allocation state and the start-stop switching of resource allocation is no longer performed during the driving of the target vehicle.

[0098] In this way, when the start-stop switching frequency of uplink and downlink data resource allocation is too large, the resource allocation management strategy is optimized by comprehensively considering the download progress and download speed to ensure the stable performance of the vehicle controller.

[0099] It should be noted that the vehicle may be able to download the entire firmware upgrade package while in driving state, or it may not be able to download it completely (only partially). When the vehicle is unable to download the entire firmware package while in driving state, download resources / permissions can continue to be allocated in a non-driving state to download the firmware package until the download is completed.

[0100] S500: When all firmware packages are downloaded and the target vehicle is in a non-driving state, control the target vehicle to run the firmware package to perform a firmware upgrade.

[0101] Specifically, when all firmware packages are downloaded and the target vehicle is in a non-driving state, the target vehicle is controlled to run the firmware package to perform a firmware upgrade.

[0102] In other embodiments, after determining the current state of the target vehicle according to the firmware upgrade request instruction, the method further includes:

[0103] When the target vehicle is in a non-driving state, obtaining the remaining battery power information of the target vehicle;

[0104] When it is determined that the remaining battery power of the target vehicle is greater than or equal to the power threshold, the uplink and downlink data resource allocation is controlled to enter an open allocation state and a firmware upgrade is performed after the target vehicle download is completed;

[0105] When it is determined that the remaining battery power of the target vehicle is less than the power threshold, a charging reminder message is sent to the user APP at a preset frequency.

[0106] Specifically, when the target vehicle requests a firmware upgrade and is in a non-driving state, the vehicle's remaining battery power information is obtained. When the vehicle's remaining battery power is greater than or equal to the power threshold, it means that the current battery power can meet the basic requirements of the firmware upgrade. At this time, the uplink and downlink data resource allocation is controlled to enter the open allocation state and the firmware upgrade is performed after the firmware package is downloaded. When the vehicle's remaining battery power is less than the power threshold, it means that the current battery power cannot meet the basic requirements of the firmware upgrade. At this time, the system sends a charging reminder message to the user APP at a preset frequency to remind the user to charge to meet the power requirements of the firmware upgrade.

[0107] Based on this, the artificial intelligence-based data center resource allocation method of the present application starts and stops the allocation of uplink and downlink data resources according to the driving status of the target vehicle during its driving process, so that the vehicle can safely and quickly complete the partial or full download of the firmware package, avoiding the problem of slow download speed and low upgrade efficiency caused by downloading and upgrading the vehicle's upgrade firmware package completely in a non-driving state. The uplink and downlink data resources are reasonably allocated according to the driving status of the vehicle, which greatly improves the vehicle's firmware upgrade efficiency while ensuring the security of firmware download.

[0108] The present application also provides a resource allocation system. Figure 5 , Figure 5 A schematic diagram of the hardware structure of a resource allocation system provided for some embodiments of the present application; comprising a memory 110 and a processor 120, wherein the memory 110 is used to store program code, and the processor 120 is used to call the program code to execute the method described above.

[0109] Among them, the processor 120 is used to provide computing and control capabilities to control the resource allocation system to perform corresponding tasks, for example, to control the resource allocation system to execute the artificial intelligence-based data center resource allocation method in any of the above-mentioned method embodiments, the method comprising: obtaining a firmware upgrade request instruction sent by the target vehicle, the target vehicle sending a firmware upgrade request instruction to the cloud server at a preset frequency when the firmware upgrade has not been completed; judging the current state of the target vehicle according to the firmware upgrade request instruction, the current state of the target vehicle including a driving state and a non-driving state; when the target vehicle is in a driving state, obtaining the driving state information of the target vehicle based on artificial intelligence technology; starting and stopping the uplink and downlink data resource allocation according to the driving state change information of the target vehicle so that the target vehicle completes the download of part or all of the firmware packages; when all firmware packages are downloaded and the target vehicle is in a non-driving state, controlling the target vehicle to run the firmware package for firmware upgrade.

[0110] The processor 120 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), a hardware chip or any combination thereof; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above-mentioned PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.

[0111] The memory 110, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions / modules corresponding to the data center resource allocation method based on artificial intelligence in the embodiments of the present application. The processor 120 can implement the data center resource allocation method based on artificial intelligence in any of the above method embodiments by running the non-transitory software programs, instructions and modules stored in the memory 110.

[0112] Specifically, the memory 110 may include a volatile memory (VM), such as a random access memory (RAM); the memory 110 may also include a non-volatile memory (NVM), such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD) or other non-transitory solid-state storage device; the memory 110 may also include a combination of the above types of memory.

[0113] To sum up, the resource allocation system of the present application adopts the technical solution of any one of the above-mentioned embodiments of the data center resource allocation method based on artificial intelligence. Therefore, it has at least the beneficial effects brought by the technical solution of the above-mentioned embodiments, which will not be repeated here one by one.

[0114] The embodiment of the present application also provides a computer-readable storage medium, such as a memory including a program code, and the program code can be executed by a processor to complete the data center resource allocation method based on artificial intelligence in the above embodiment. For example, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CDROM), a magnetic tape, a floppy disk, and an optical data storage device.

[0115] The embodiment of the present application also provides a computer program product, which includes one or more program codes, and the program codes are stored in a computer-readable storage medium. The processor of the resource allocation system reads the program code from the computer-readable storage medium, and the processor executes the program code to complete the steps of the data center resource allocation method based on artificial intelligence provided in the above embodiment.

[0116] A person skilled in the art will appreciate that all or part of the steps for implementing the above embodiments may be accomplished by hardware or by hardware associated with a program code, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0117] It should be noted that the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0118] Through the description of the above implementation methods, ordinary technicians in this field can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, it can also be implemented by hardware. Ordinary technicians in this field can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0119] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the inventive concept of the present invention, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present invention.

Claims

1. A data center resource allocation method based on artificial intelligence, applied to a resource allocation system, wherein the resource allocation system includes a cloud server, It is characterized in that The method comprises: Obtaining a firmware upgrade request instruction sent by a target vehicle, wherein the target vehicle sends a firmware upgrade request instruction to a cloud server at a preset frequency when the firmware upgrade is not completed; Determining a current state of the target vehicle according to the firmware upgrade request instruction, wherein the current state of the target vehicle includes a driving state and a non-driving state; When the target vehicle is in a driving state, obtaining driving state information of the target vehicle based on artificial intelligence technology; Performing start-stop switching of uplink and downlink data resource allocation according to the driving state change information of the target vehicle so that the target vehicle completes the download of part or all of the firmware packages; When all firmware packages are downloaded and the target vehicle is in a non-driving state, the target vehicle is controlled to run the firmware package for firmware upgrade.

2. The data center resource allocation method based on artificial intelligence according to claim 1, It is characterized in that The driving state change information includes driving speed change information of the vehicle, and the start-stop switching of uplink and downlink data resource allocation according to the driving state change information of the target vehicle so that the target vehicle completes the download of part or all of the firmware packages includes: Determine that the driving speed of the target vehicle changes from a high speed state to a low speed state and lasts for a first preset time, and control the uplink and downlink data resources to switch from an enabled allocation state to a paused allocation state; It is determined that the driving speed of the target vehicle changes from a low speed state to a high speed state and lasts for a first preset time period, and the uplink and downlink data resources are controlled to switch from a suspended allocation state to an enabled allocation state.

3. The data center resource allocation method based on artificial intelligence as claimed in claim 2, It is characterized in that After determining that the driving speed of the target vehicle changes from a high speed state to a low speed state and lasts for a first preset time, the method further includes: Reconfirm the driving status information of the target vehicle, and when the remaining power of the target vehicle is less than or equal to the preset power, control the uplink and downlink data resources to switch from the enabled allocation state to the suspended allocation state; or, The driving state information of the target vehicle is reconfirmed, and when the vibration degree of the target vehicle is greater than the vibration degree threshold, the uplink and downlink data resources are controlled to switch from the enabled allocation state to the suspended allocation state.

4. The data center resource allocation method based on artificial intelligence according to claim 1, It is characterized in that The driving state change information includes driving vibration change information of the target vehicle, and the start-stop switching of resource allocation according to the driving state change information of the target vehicle so that the target vehicle completes the download of part or all of the firmware packages, including: Determine that the driving vibration state of the target vehicle changes from a first vibration state to a second vibration state and lasts for a second preset time, and control the uplink and downlink data resources to switch from an enabled allocation state to a paused allocation state; Determine that the driving vibration of the target vehicle changes from the second vibration state to the first vibration state and lasts for a second preset time, and control the uplink and downlink data resources to switch from the suspended allocation state to the enabled allocation state; The vibration amount of the target vehicle in the second vibration state is greater than the vibration amount in the first vibration state.

5. The data center resource allocation method based on artificial intelligence according to any one of claims 1 to 4, It is characterized in that After the start-stop switching of uplink and downlink data resource allocation is performed according to the driving state change information of the target vehicle so that the target vehicle completes the download of part or all of the firmware packages, the method further includes: Obtaining the start / stop switching frequency of the uplink / downlink data resource allocation and the download progress of the firmware package; When it is determined that the start-stop switching frequency of the uplink and downlink data resource allocation is greater than or equal to the frequency threshold, and the firmware package download progress is greater than or equal to the progress threshold, the uplink and downlink data resource allocation is controlled to enter a paused allocation state and the start-stop switching of the resource allocation is not performed during the driving of the target vehicle.

6. The data center resource allocation method based on artificial intelligence according to any one of claims 1 to 4, It is characterized in that After the start-stop switching of uplink and downlink data resource allocation is performed according to the driving state change information of the target vehicle so that the target vehicle completes the download of part or all of the firmware packages, the method further includes: Obtaining the start / stop switching frequency of the uplink / downlink data resource allocation and the download progress of the firmware package; When it is determined that the start / stop switching frequency of the firmware package download is greater than or equal to the frequency threshold, and the firmware package download progress is less than or equal to the progress threshold, obtaining an average download speed of the firmware package; When it is determined that the average download speed of the firmware package is less than or equal to the download speed threshold, the uplink and downlink data resource allocation is controlled to enter a suspended allocation state and the start-stop switching of resource allocation is not performed during the driving of the target vehicle.

7. The data center resource allocation method based on artificial intelligence according to claim 1, It is characterized in that After determining the current state of the target vehicle according to the firmware upgrade request instruction, the method further includes: When the target vehicle is in a non-driving state, obtaining the remaining battery power information of the target vehicle; When it is determined that the remaining battery power of the target vehicle is greater than or equal to the power threshold, the uplink and downlink data resource allocation is controlled to enter an open allocation state and a firmware upgrade is performed after the target vehicle download is completed; When it is determined that the remaining battery power of the target vehicle is less than the power threshold, a charging reminder message is sent to the user APP at a preset frequency.

8. The data center resource allocation method based on artificial intelligence according to claim 1, It is characterized in that The driving state information includes the driving speed of the vehicle, and the obtaining of the driving state information of the target vehicle based on artificial intelligence technology includes: Acquire multiple frames of images captured by a camera on a target vehicle, wherein the multiple frames of images include features of the same target road sign; Determine the displacement of the target vehicle according to the target road sign feature change information in the multiple frame images; The speed of the target vehicle is determined according to the displacement of the target vehicle and the time interval between multiple frame images.

9. The data center resource allocation method based on artificial intelligence according to claim 1, It is characterized in that The driving state information includes a vehicle vibration state, and the obtaining of the driving state information of the target vehicle based on artificial intelligence technology includes: Acquire vibration data collected by an acceleration sensor on a target vehicle, wherein the vibration data includes vibration frequency, amplitude, and duration; The vibration data is input into a pre-trained vibration evaluation model to obtain a real-time vibration degree value, and the real-time vibration degree value is used to characterize the real-time magnitude value of the vibration degree during the driving process of the target vehicle.

10. A resource allocation system, It is characterized in that include: A memory, the memory being used to store program codes; as well as, A processor, wherein the processor is used to call the program code to execute the method according to any one of claims 1 to 9.