Vehicle task processing method, device, server, vehicle and storage medium
By obtaining vehicle driving data and task processing capability data, and calculating and allocating the number of task units that the vehicle can handle within the coverage of the RSU server, the problem of vehicle task interruption is solved, and efficient processing of vehicle tasks and fair resource utilization is achieved.
Patent Information
- Application Number
- CN202011140086.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-22
- Publication Date
- 2025-02-21
- Estimated Expiration
- 2040-10-22
AI Technical Summary
In the prior art, when a vehicle unloads a vehicle task to a MEC server of a roadside RSU server for processing and calculation, the data size of the calculation task is inaccurate, resulting in the problem of interruption of the calculation task.
By obtaining the vehicle's driving data and task processing capability data, the total target number of task units that the vehicle can process within the coverage of the RSU server is calculated, and the target proportion of the number of task units processed by the RSU server to the total target number is determined. Send the target proportion and total target number to the vehicle to determine the number of task units that the RSU server needs to process and the number of task units that the vehicle needs to process, thereby ensuring that the task can be processed sufficiently between the vehicle and the RSU server without interruption.
By accurately calculating and allocating the number of task units, it is ensured that vehicle tasks are processed without interruption between the vehicle and the RSU server, improving the processing efficiency of vehicle tasks and fair resource utilization.
Smart Images

Figure CN114390470B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of vehicle networking, and specifically, to a vehicle task processing method, device, server, vehicle and storage medium. Background Art
[0002] With the booming development of Internet of Vehicles (IoV) technology, the emergence of computationally intensive in-vehicle applications has brought great challenges to the computing power of vehicles and the latency performance of the system. Mobile Edge Computing (MEC), as an emerging network technology, can sink computing power to the mobile edge, creating a telecom-grade service environment with high performance, low latency and high bandwidth. Introducing MEC technology into the IoV can effectively reduce the heavy computing needs of vehicles by offloading computationally intensive tasks to MEC servers, and has great potential to improve IoV application services.
[0003] At present, vehicles offload vehicle tasks to the MEC server of the roadside RSU server for processing and calculation. The amount of data required to offload the vehicle tasks to the RSU server is inaccurate, which often causes interruptions to the computing tasks. Summary of the invention
[0004] The present application provides a vehicle task processing method, device, electronic device and processor-readable storage medium, which can improve resource utilization fairness and enhance user perception. The technical solution includes:
[0005] In a first aspect, an embodiment of the present application provides a vehicle task processing method, which is applied to a roadside unit RSU server and is used to assist in processing a vehicle task of a vehicle. The method includes:
[0006] Obtain vehicle driving data and task processing capability data;
[0007] Calculate the target total number of task units that can be processed by the RSU server and the vehicle within the coverage area of the RSU server based on the vehicle driving data, task processing capacity data and the preset data volume of each task unit;
[0008] According to the vehicle driving data and task processing capacity data, determine the target ratio of the number of task units processed by the RSU server to the target total number when the vehicle is driving within the coverage of the RSU server and the target total number of task units is processed in the shortest time;
[0009] The target ratio and the target total number are sent to the vehicle so that the vehicle determines the first target number of task units corresponding to the vehicle tasks that the RSU server needs to process and the second target number of task units corresponding to the vehicle tasks that the vehicle needs to process based on the target ratio and the target total number, and sends the vehicle tasks corresponding to the first target number of task units to the RSU server for processing, and the vehicle processes the vehicle tasks corresponding to the second target number of task units.
[0010] In a second aspect, an embodiment of the present application provides a vehicle task processing method, which is applied to a vehicle, and the method includes:
[0011] In response to the vehicle entering the coverage of the RSU server, the vehicle driving data and the task processing capacity data are sent to the RSU server, so that the RSU server determines, based on the vehicle driving data, the task processing capacity data and the preset data volume of each task unit, the target proportion of the number of task units processed by the RSU server to the target total number when the vehicle is driving within the coverage of the RSU server and the target total number of task units is processed in the shortest time, the target total number being the total number of task units that the RSU server and the vehicle can process when the vehicle is driving within the coverage of the RSU server;
[0012] Receive the target ratio and total target quantity sent by the RSU server;
[0013] Determine, according to the target ratio and the target total number, a first target number of task units corresponding to the vehicle tasks that the RSU server needs to process and a second target number of task units corresponding to the vehicle tasks that the vehicle needs to process;
[0014] The vehicle tasks corresponding to the first target number of task units are sent to the RSU server, and the vehicle tasks corresponding to the second target number of task units are processed.
[0015] In a third aspect, an embodiment of the present application provides a vehicle task processing device, which is applied to a roadside unit RSU server, and the vehicle task processing device includes:
[0016] A data acquisition unit, used to acquire vehicle driving data and task processing capability data;
[0017] A first calculation unit is used to calculate the target total number of task units that can be processed by the RSU server and the vehicle within the coverage range of the vehicle according to the vehicle driving data, the task processing capacity data and the preset data volume of each task unit;
[0018] The second calculation unit is used to determine, based on the vehicle driving data and the task processing capacity data, a target ratio of the number of task units processed by the RSU server to the target total number when the vehicle is driving within the coverage of the RSU server and the target total number of task units is processed in the shortest time;
[0019] A ratio sending unit is used to send the target ratio and the target total number to the vehicle, so that the vehicle determines the first target number of task units corresponding to the vehicle tasks that the RSU server needs to process and the second target number of task units corresponding to the vehicle tasks that the vehicle needs to process based on the target ratio and the target total number, and sends the vehicle tasks corresponding to the first target number of task units to the RSU server for processing, and the vehicle processes the vehicle tasks corresponding to the second target number of task units.
[0020] In a fourth aspect, an embodiment of the present application provides a vehicle task processing device, which is applied to a vehicle, and the vehicle task processing device includes:
[0021] a data sending unit, configured to send vehicle driving data and task processing capability data to the RSU server in response to the vehicle entering the coverage of the RSU server, so that the RSU server determines, based on the vehicle driving data, the task processing capability data and the preset data volume of each task unit, a target ratio of the number of task units processed by the RSU server to the target total number when the vehicle is driving within the coverage of the RSU server and when the target total number of task units is processed in the shortest time, the target total number being the total number of task units that can be processed by the RSU server and the vehicle when the vehicle is driving within the coverage of the RSU server;
[0022] A ratio receiving unit, used for receiving a target ratio and a target total quantity sent by an RSU server;
[0023] A quantity determination unit, used to determine a first target quantity of task units corresponding to vehicle tasks to be processed by the RSU server and a second target quantity of task units corresponding to vehicle tasks to be processed by the vehicle according to the target ratio and the target total quantity;
[0024] The task sending processing unit is used to send the vehicle tasks corresponding to the first target number of task units to the RSU server, and process the vehicle tasks corresponding to the second target number of task units.
[0025] In a fifth aspect, an embodiment of the present application provides an RSU server, which includes: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by one or more processors, and the one or more programs are configured to: execute the vehicle task processing method according to the first aspect as described above.
[0026] In a sixth aspect, an embodiment of the present application provides a vehicle comprising: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to: execute a vehicle task processing method according to the second aspect as described above.
[0027] In a seventh aspect, an embodiment of the present application provides a processor-readable storage medium on which a computer program is stored, and the computer program is used to enable the processor to execute the method of the first aspect or the second aspect as described above.
[0028] The embodiments of the present application provide a vehicle task processing method, device, electronic device and processor-readable storage medium. The method determines the target total number of task units that can be processed by the RSU server and the vehicle within the coverage of the RSU server, and the target ratio of the number of task units processed by the RSU server to the target total number, based on the acquired vehicle driving data, the acquired task processing capability data and the preset data volume of each task unit. This ensures that the vehicle tasks corresponding to the first target number of task units can be processed by the RSU server, and the vehicle tasks corresponding to the second target number of task units can all be processed by the vehicle. The data volume of the first target number of task units and the vehicle tasks corresponding to the second target number of task units can all be processed while the vehicle is driving on the RSU server. The data volume of vehicle tasks that can be processed by different RSU servers varies according to the specific situation, taking into account the situation of the vehicle and the situation of the task processing capability, ensuring that the vehicle and the RSU server fully process the vehicle tasks in the shortest time, and improving the processing efficiency of vehicle tasks. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in describing the embodiments of the present application are briefly introduced below.
[0030] Figure 1 A schematic diagram of an application environment of a vehicle task processing method provided in an embodiment of the present application;
[0031] Figure 2 A schematic diagram of a process flow of a vehicle task processing method provided in an embodiment of the present application;
[0032] Figure 3 A vehicle task processing method provided in an embodiment of the present application also includes a flow chart;
[0033] Figure 4 for Figure 2 Detailed flow chart of step S202;
[0034] Figure 5 for Figure 4 Detailed flow chart of step S401;
[0035] Figure 6 for Figure 4 Detailed flow chart of step S403;
[0036] Figure 7 A flowchart of another vehicle task processing method provided in an embodiment of the present application;
[0037] Figure 8 A schematic diagram of the structure of a vehicle task processing device provided in an embodiment of the present application;
[0038] Fig. 9 A schematic diagram of the structure of another vehicle task processing device provided in an embodiment of the present application;
[0039] Fig.10 A schematic diagram of the structure of an RSU service provided in an embodiment of the present application;
[0040] Fig.11 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION
[0041] In the embodiments of the present invention, the term "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent three situations: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0042] In the embodiments of the present application, the term "plurality" refers to two or more than two, and other quantifiers are similar.
[0043] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be interpreted as limiting the present invention.
[0044] Those skilled in the art will appreciate that, unless expressly stated otherwise, the singular forms "a", "an", "" and "the" used herein may also include the plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of 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 groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other elements, or there may be intermediate elements. In addition, "connected" or "coupled" as used herein may include wireless connections or wireless couplings. The term "and / or" as used herein includes all or any unit and all combinations of one or more associated listed items.
[0045] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0046] The vehicle task processing method, device, electronic device and computer-readable storage medium provided in this application are intended to solve the above technical problems in the prior art.
[0047] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0048] See also Figure 1 , the vehicle task processing method provided in the present application can be applied to the application environment diagram of the embodiment of the present application. Among them, there are multiple RSU (Road Side Unit) servers 110 arranged in sequence beside the road, and one or more vehicles 120 are traveling on the road. The vehicle 120 traveling on the road can communicate with the RSU server 110 beside the road, and the vehicle 120 sends the vehicle task that needs to be calculated to the RSU server 110 beside the road, so that the RSU server 110 assists the vehicle in calculating the vehicle task.
[0049] Among them, the distance between each RSU server 110 and the road is equal and known, and the signal coverage range between different RSU servers can be the same or different. If the vehicle 120 is within the signal coverage range of an RSU server 110, the vehicle 120 can communicate with the RSU server 110. For the same RSU server 110, the signal coverage of the RSU server 110 is determined and known. The coverage ranges between different RSU servers 110 do not overlap. Different RSU servers 110 can communicate with each other to share data.
[0050] The RSU server 110 includes an RSU device and a MEC (Mobile Edge Computing) server. The RSU device is connected to the MEC server for communication, and the RSU device is also connected to the vehicle 120 for communication. The vehicle 120 can transmit data to the MEC server through the RSU device.
[0051] In the present application, the kth RSU server is the kth RSU server that the vehicle enters after generating a vehicle task. k is a positive integer. For example, after the vehicle generates a vehicle task, the first RSU server that newly enters is the first RSU server.
[0052] The application of vehicles will generate vehicle tasks, and the vehicle needs to process and calculate the vehicle tasks. As the amount of data in the vehicle tasks increases, it brings great challenges to the vehicle's computing power. In the current solution, the vehicle will send part of the vehicle task to the RSU server so that the RSU server can assist in calculating the vehicle's vehicle tasks. When the vehicle sends the data to the RSU server, the signal coverage range of the RSU server, the speed change, etc. are not taken into account, resulting in the inappropriate amount of data for the vehicle tasks sent by the vehicle to the RSU server, which may cause the interruption of the task calculation.
[0053] Based on the above problems, the embodiments of the present application provide a vehicle task processing method, device, electronic device and computer-readable storage medium, wherein the RSU server obtains vehicle driving data and task processing capability data; the RSU server calculates the target total number of task units that the RSU server and the vehicle can process within the coverage of the RSU server based on the vehicle driving data, task processing capability data and the preset data volume of each task unit; the RSU server determines the target proportion of the number of task units processed by the RSU server to the target total number when the vehicle is driving within the coverage of the RSU server and when the target total number of task units is processed in the shortest time based on the vehicle driving data and task processing capability data; the RSU server sends the target proportion to the vehicle so that the vehicle determines the target proportion and the target total number based on the target proportion and the target total number. The RSU server needs to process a first target number of task units corresponding to the vehicle tasks that the vehicle needs to process, and the vehicle tasks corresponding to the first target number of task units are sent to the RSU server for processing, and the vehicle processes the vehicle tasks corresponding to the second target number of task units, fully considering the vehicle situation and the task processing capability. The data volume of the vehicle tasks that the RSU server needs to process calculated by the RSU server is the maximum data volume that the RSU server can process, and the data volume of the vehicle tasks that the vehicle needs to process is also the maximum data volume that the vehicle can process, and the time is shortest, so that each RSU server can process the received vehicle tasks without causing task interruption, and the vehicle tasks can be processed quickly, thereby improving the processing efficiency of vehicle tasks.
[0054] See also Figure 2 In an embodiment of the present application, a vehicle task processing method is provided. The vehicle task processing method can be applied to the aforementioned RSU server. The method includes:
[0055] S201: Acquire vehicle driving data and task processing capability data.
[0056] There are multiple RSU servers arranged in sequence along the road. During driving, the vehicle will pass through the coverage of different RSU servers in sequence. Every time the vehicle enters the signal coverage of a new RSU server, it will send the vehicle driving data and task processing capability data to the RSU server, and the corresponding RSU server will receive the vehicle driving data and task processing capability data. That is, if the vehicle enters the signal coverage of the RSU server, the RSU server will obtain the vehicle driving data and task processing capability data sent by the vehicle. After the vehicle enters the signal coverage of the RSU server, the RSU server will also obtain other data of the vehicle driving data from the local area, as well as other information of the task processing capability data from the local area.
[0057] The specific data information of the vehicle driving data is not limited. The vehicle driving data includes but is not limited to the average speed of the vehicle, the distance traveled by the vehicle within the coverage area of the RSU server, and the vehicle road condition environment data.
[0058] The specific data information of the task processing capability data is also not limited. The task processing capability data includes but is not limited to the task processing speed of the vehicle, the task processing speed of the RSU server, and the average data transmission rate between the vehicle and the RSU server.
[0059] Among them, the vehicle average speed, the vehicle task processing speed, the vehicle road environment data and other vehicle-related data can be obtained from the vehicle; the distance traveled by the vehicle within the coverage of the RSU server, the task processing speed of the RSU server, the average rate of data transmission between the vehicle and the RSU server, etc. can be obtained locally from the RSU server. The local data of the RSU server can be predetermined.
[0060] The average vehicle speed is the speed at which the vehicle travels within the signal coverage of the RSU server. The average vehicle speed sent by the vehicle can be the average vehicle speed within a preset time period before the vehicle sends the vehicle information, or it can be a percentage of the vehicle's current speed, etc. Specifically, the average vehicle speed can be the average speed of the vehicle 10 seconds before the vehicle sends the vehicle information, or it can be 80% of the vehicle's current speed, etc. The average vehicle speed can also be generated by the vehicle according to a preset algorithm. The specific generation scheme of the average vehicle speed is not limited in this application. The task processing speed of the vehicle, that is, the computing power of the vehicle, is the speed at which the vehicle processes the vehicle task calculations. The task processing speed of the vehicle is known, and the task processing speed of the vehicle is related to the computing performance of the vehicle.
[0061] The distance traveled by the vehicle within the coverage of the RSU server, the amount of data in each task unit, the task processing speed of the RSU server, and the average rate of data transmission between the vehicle and the RSU server are known data or can be pre-calculated based on the known data.
[0062] Among them, the distance L that the vehicle travels within the coverage of the RSU server is predetermined. The vertical distance D between each RSU server and the road is constant and known, and the signal coverage radius R of the RSU server is determined and known. Then, the distance L that the vehicle travels within the coverage of the RSU server can be calculated based on the distance D between the RSU server and the road and the signal coverage radius R of the RSU server. The distance L calculation formula (2-0) can be as follows:
[0063]
[0064] The data volume of each task unit is preset. The task processing speed of the RSU server is the computing power allocated by the RSU server to the vehicle, which is a determined value. Since there is more than one vehicle on the road, the RSU server will allocate computing power to each vehicle that communicates with it and needs to calculate vehicle tasks.
[0065] The average data transmission rate between the vehicle and the RSU server can be pre-calculated based on known data.
[0066]
[0067] The roadside includes multiple RSU servers. Formula (2-1) is explained using the kth RSU server after starting to process vehicle tasks. k is the real-time transmission rate of the vehicle uploading data to the kth RSU server, B is the system bandwidth, and P t Send data power to the vehicle, Path loss, h k is the small-scale fading channel response, and N0 is the noise. The system bandwidth B is fixed, and P t It can be sent by the vehicle to the RSU server, such as the vehicle information including the vehicle data sending power.
[0068]
[0069] In formula (2-2), r k is the straight-line distance from the vehicle to the RSU server, D is the vertical distance from the kth RSU server to the road, L k is the distance traveled by the vehicle within the coverage area of the kth server, v k is the average speed of the vehicle traveling within the coverage area of the kth RSU server, and t is the time the vehicle travels within the coverage area of the kth RSU server.
[0070] The average data transmission rate between the vehicle and the RSU server is The calculation formula can be formula (2-3):
[0071]
[0072] In formula (2-3), is the time that the vehicle travels within the coverage area of the kth RSU server, R k is the real-time transmission rate of the vehicle uploading data to the kth RSU server, B is the system bandwidth, and P t Send data power to the vehicle, Path loss, h kis the small-scale fading channel response, and N0 is the noise. The distance L that the vehicle travels within the coverage area of the kth RSU server can be k and the average speed v of vehicles traveling within the coverage area of the kth RSU server k calculate The calculation formula can be formula (2-4):
[0073]
[0074] The data required to calculate the average data transmission rate between the vehicle and the kth RSU server are all known or can be calculated based on the known data, so the average data transmission rate between the vehicle and the RSU server can be pre-calculated based on the known data.
[0075] S202: Calculate the target total number of task units that the vehicle can process within the coverage of the RSU server, the RSU server and the vehicle based on the vehicle driving data, the task processing capability data and the preset data volume of each task unit.
[0076] In the RSU server, the vehicle task has been defaulted to correspond to the first number of task units, that is, the RSU server calculates the number of task units that the vehicle task can include. In the vehicle, the vehicle task may not be divided into the first number of task units, but the RSU server calculates in task units. The size of the first number is not limited, and the size of the first number is related to the data size c of the vehicle task and the preset data size f of each task unit. The first number is is the ceiling operator, such as If x is 1.3, then the value of a is 2.
[0077] The total target quantity can be calculated based on the vehicle driving data task processing capability data and the preset data volume of each task unit.
[0078] S203: Determine, based on the vehicle driving data and the task processing capability data, the target ratio of the number of task units processed by the RSU server to the target total number when the vehicle is driving within the coverage of the RSU server and the target total number of task units is processed in the shortest time.
[0079] Specifically, based on the task processing speed of the vehicle, the task processing speed of the RSU server and the average data transmission rate between the vehicle and the RSU server, the target proportion of the number of task units processed by the RSU server to the target total number is determined when the vehicle is traveling within the coverage of the RSU server and the target total number of task units is processed in the shortest time.
[0080] When determining the target ratio, it is necessary to set constraints and then gradually change the size of the target ratio so that when the vehicle is driving within the coverage area of the RSU server, the processing time of the target total number of task units is minimized.
[0081] If the constraints need to be met:
[0082] 1. When the data volume of the vehicle tasks corresponding to the target ratio that need to be processed by the vehicle is processed by the vehicle, the processing time of the vehicle is less than the driving time of the vehicle within the signal coverage of the RSU server;
[0083] 2. When the data volume of vehicle tasks corresponding to the target ratio that needs to be processed by the RSU server is processed by the RSU server, the processing time of the RSU server is less than the driving time of the vehicle within the signal coverage range of the RSU server;
[0084] 3. The target ratio is greater than or equal to zero and less than or equal to 1.
[0085] In this application, a vehicle is traveling within the coverage area of the kth RSU server to illustrate how to determine the target ratio.
[0086] If the vehicle is traveling within the coverage area of the kth RSU server, the target ratio corresponding to the RSU server is λ k , the total number of targets is n k , then the time delay required for vehicle tasks to be processed on the vehicle The calculation formula can be formula (2-5):
[0087]
[0088] In formula (2-5), λ k is the target ratio of the number of task units processed by the RSU server to the target total number, ε is the task inherent parameter, the size of ε can be set as needed, ε can be 1, greater than 1 or less than 1. f0 is the task processing speed of the determined vehicle. I is the preset data volume of each task unit, n k is the total target quantity.
[0089] The time delay required for the vehicle to transmit the vehicle task that needs to be processed and calculated by the kth RSU server to the kth RSU server The calculation formula can be formula (2-6):
[0090]
[0091] In formula (2-6), λ kis the target ratio of the number of task units processed by the RSU server to the target total number, I is the preset data volume of each task unit, and n k is the total target quantity, is the average data transmission rate between the vehicle and the RSU server.
[0092] The processing delay of the kth RSU server for the vehicle task it needs to process and calculate The calculation formula can be formula (2-7):
[0093]
[0094] In formula (2-7), λ k is the target ratio of the number of task units processed by the RSU server to the target total number, ε is the task inherent parameter, I is the preset data volume of each task unit, and n k is the total number of targets, f k is the task processing speed of the determined RSU server, that is, the server processing speed of the kth RSU server.
[0095] The delay required for the vehicle to offload the kth RSU server to the RSU server for processing calculation is The calculation formula can be formula (2-8):
[0096]
[0097] In formula (2-9), The time delay required for the vehicle to transmit the vehicle task that needs to be processed and calculated by the k-th RSU server to the k-th RSU server, is the processing delay of the kth RSU server for the vehicle task it needs to process and calculate; k is the target ratio of the number of task units processed by the RSU server to the target total number, I is the preset data volume of each task unit, ε is the task inherent parameter, and n k is the total number of targets, f k is the task processing speed of the determined RSU server, is the average data transmission rate between the vehicle and the RSU server.
[0098] Then the vehicle needs to process n calculations at the kth RSU server k The time delay t required for the target task k The calculation formula can be formula (2-9):
[0099]
[0100] In formula (2-9), is the time delay required for the vehicle task to be calculated and processed on the vehicle when the vehicle is traveling within the coverage area of the kth RSU server. The delay required for the vehicle to offload the kth RSU server to the RSU server for processing and calculation.
[0101] Then, when determining the target ratio λ k In order to ensure that the vehicle is within the coverage of the RSU server and the target total number of task units are processed with a delay of t k For the sake of convenience, the above problem is defined as planning problem 1 (denoted as P1). Then P1 can be solved by solving the following formula (2-10) to calculate the value that makes t k Minimum λ k In addition, the parameters of formula (2-10) need to satisfy the three constraints (ST) of formula (2-10a), formula (2-10b) and formula (2-10c), as follows:
[0102]
[0103]
[0104]
[0105] 0≤λ k ≤1 Formula (2-10c)
[0106] Among them, in formula (2-10), t k is the number of calculations that the vehicle needs to process at the kth RSU server. k The delay required for the target task, λ k The target ratio of the number of task units processed by the RSU server to the target total number; Formula (2-10a) limits the delay of task unit processing calculation in the vehicle The vehicle's driving time within the coverage area of the RSU server cannot exceed Formula (2-10b) limits the latency of offloading to the RSU server coverage area for processing calculations. The vehicle's driving time on the RSU server cannot exceed Ensure that the task is not interrupted during the processing of the calculation. In formula (2-10c), λ k The target ratio of the number of task units processed by the RSU server to the target total number.
[0107] Solving P1 based on formula (2-10), we can calculate the value that makes t k Minimum λ kEach time a vehicle enters the signal coverage area of an RSU server, it can calculate the total number of task units that the RSU server and the vehicle can process according to the target total number n of task units that the RSU server and the vehicle can process during the driving time of the RSU server. k , determine the target ratio λ within the signal coverage range of the RSU server k The optimal value of .
[0108] S204: Send the target ratio and the target total number to the vehicle, so that the vehicle determines the first target number of task units corresponding to the vehicle tasks that the RSU server needs to process and the second target number of task units corresponding to the vehicle tasks that the vehicle needs to process based on the target ratio and the target total number, and sends the vehicle tasks corresponding to the first target number of task units to the RSU server for processing, and the vehicle processes the vehicle tasks corresponding to the second target number of task units.
[0109] After the target ratio and the target total quantity are determined, the vehicle receives the target ratio and the target total quantity and determines the first target quantity of task units corresponding to the vehicle tasks that the RSU server needs to process and the second target quantity of task units corresponding to the vehicle tasks that the vehicle needs to process.
[0110] Among them, the first target number The calculation formula can be formula (2-11):
[0111]
[0112] In formula (2-11), λ k The target ratio of the number of task units processed by the RSU server to the target total number, n k is the total target quantity.
[0113] The second target number The calculation formula can be formula (2-12):
[0114]
[0115] In formula (2-12), λ k The target ratio of the number of task units processed by the RSU server to the target total number, n k is the total target quantity.
[0116] The vehicle task corresponding to the first target number of task units is the vehicle task with the data volume of the first target number of task units. The vehicle task corresponding to the second target number of task units is the vehicle task with the data volume of each task unit of the second target number. Specifically, if the first target number is 2 and the data volume of each task unit is 10kb, then the vehicle task corresponding to the first target number of task units is a 20kb vehicle task.
[0117] The vehicle tasks corresponding to the first target number of task units are sent to the RSU server for processing, and the vehicle processes the vehicle tasks corresponding to the second target number of task units, so that all vehicle tasks that need to be processed and calculated in the RSU server can be calculated, and the data volume of the vehicle tasks to be processed and calculated reaches the maximum.
[0118] The vehicle task processing method provided by the embodiment of the present application determines the target total number of task units that can be processed by the RSU server and the vehicle within the coverage range of the RSU server, as well as the target ratio of the number of task units processed by the RSU server to the target total number, based on the acquired vehicle driving data, the acquired task processing capacity data and the preset data volume of each task unit, so that the vehicle tasks corresponding to the first target number of task units can be processed by the RSU server, and the vehicle tasks corresponding to the second target number of task units can all be processed by the vehicle, and the data volume of the first target number of task units and the vehicle tasks corresponding to the second target number of task units can all be processed while the vehicle is driving on the RSU server. The data volume of vehicle tasks that can be processed by different RSU servers varies according to the specific situation, taking into account the situation of the vehicle and the situation of the task processing capacity, ensuring that the vehicle and the RSU server fully process the vehicle tasks in the shortest time, and improving the processing efficiency of vehicle tasks.
[0119] See also Figure 3 The embodiment of the present application also provides a possible implementation method. Before calculating the target total number of task units that the vehicle can process within the coverage range of the RSU server and the RSU server and the vehicle, the vehicle task processing method further includes:
[0120] S301: Receive task information corresponding to a vehicle task sent by a vehicle, where the task information includes a task data volume.
[0121] When the vehicle sends the task information corresponding to the vehicle task, it can be sent synchronously with the driving data and the task processing capability data, or asynchronously. The task data volume is the amount of data included in the vehicle task. The vehicle does not send the vehicle task to the RSU server, but only sends the task data volume corresponding to the vehicle task to the RSU server. For example, the unit of the task data volume can be MB (MByte). After the vehicle generates a vehicle task, it enters the coverage area of the first new RSU server, and the vehicle sends the task information to the RSU server.
[0122] S302: Determine a first number of task units corresponding to the vehicle task according to the task data volume and a preset data volume of each task unit.
[0123] Determining the first number of task units corresponding to the vehicle task does not actually divide the vehicle task, but only calculates the number of task units that the vehicle task may include. The vehicle task corresponds to the first number of task units.
[0124] Determine the first number of task units corresponding to the vehicle task, determine the target total number of task units that the RSU server and the vehicle can handle within the coverage of the RSU server in units of task units, and the target ratio of the number of task units processed by the RSU server to the target total number, so as to make the result calculation more accurate and improve the processing efficiency of the vehicle task.
[0125] See also Figure 4 The embodiment of the present application also provides a possible implementation method, which calculates the target total number of task units that can be processed by the RSU server and the vehicle within the coverage range of the RSU server according to the vehicle driving data, the task processing capability data and the preset data volume of each task unit, including:
[0126] S401: Calculate a second number of task units that the vehicle can process within the coverage of the RSU server according to the average speed of the vehicle, the task processing speed of the vehicle, the distance traveled by the vehicle within the coverage of the RSU server, and the data volume of each task unit.
[0127] The second quantity may be determined according to the average speed of the vehicle, the task processing speed of the vehicle, the distance traveled by the vehicle within the coverage of the RSU server, and the data volume of each task unit.
[0128] See also Figure 5 , calculating the second number of task units that the vehicle can process within the coverage of the RSU server according to the average speed of the vehicle, the task processing speed of the vehicle, the distance traveled by the vehicle within the coverage of the RSU server, and the data volume of each task unit, may include:
[0129] S501: Calculate the first time the vehicle travels within the coverage area of the RSU server according to the average speed of the vehicle and the distance the vehicle travels within the coverage area of the RSU server.
[0130] In this embodiment, an explanation is given by assuming that a vehicle is traveling on the kth RSU server.
[0131] The time the vehicle travels within the coverage area of the kth RSU server The calculation formula can be formula (5-1):
[0132]
[0133] In formula (5-1), L kis the distance traveled by the vehicle within the coverage area of the kth RSU server, v k is the average speed of vehicles traveling within the coverage area of the kth RSU server.
[0134] The time the vehicle travels within the coverage area of the kth RSU server That is, the first time that the vehicle travels within the coverage of the RSU server is calculated.
[0135] S502: Calculate the data volume of the vehicle task processed by the vehicle in the first time according to the task processing speed of the vehicle.
[0136] The amount of data on vehicle tasks that the vehicle processes in the first place The calculation formula can be formula (5-2):
[0137]
[0138] In formula (5-2), is the first time that the vehicle travels within the coverage of the kth RSU server, and f0 is the determined task processing speed of the vehicle.
[0139] Among them, the vehicle's task processing speed f0 multiplied by the first time That is, the amount of data on the vehicle task that the vehicle processes in the first time
[0140] S503: Calculate a second number of task units that the vehicle can process within the coverage of the RSU server according to the data volume of the vehicle task processed by the vehicle in the first time, the data volume of each task unit, and preset task-specific parameters.
[0141] Among them, if the second quantity is The amount of data on vehicle tasks that the vehicle processes in the first time The calculation formula can also be expressed as formula (5-3):
[0142]
[0143] In formula (5-3), ε is the task-inherent parameter, and I is the preset data volume for each task unit.
[0144] According to formulas (5-1), (5-2) and (5-3), the second number of task units that the vehicle can process within the coverage area of the RSU server can be calculated: Second quantity The calculation formula can be expressed as formula (5-4):
[0145]
[0146] In formula (5-4), L k is the distance traveled by the vehicle within the coverage area of the kth RSU server, f0 is the determined task processing speed of the vehicle, ε is the task inherent parameter, I is the preset data volume of each task unit, and v k is the average speed of vehicles traveling within the coverage area of the kth RSU server, is the floor operator, such as If x is 1.3, then the value of a is 1.
[0147] S402: Calculate the third number of task units that the RSU server can process within the coverage of the RSU server based on the average speed of the vehicle, the task processing speed of the RSU server, the distance traveled by the vehicle within the coverage of the RSU server, the data volume of each task unit, and the average transmission rate between the vehicle and the RSU server.
[0148] When calculating the third quantity, the first time is first calculated based on the average speed of the vehicle and the distance traveled by the vehicle within the coverage of the RSU server, and then the third number of task units that the RSU server can process within the coverage of the RSU server is calculated based on the first time, the task processing speed of the RSU server, the data volume of each task unit, and the average transmission rate of the vehicle and the RSU server. When calculating the third quantity, in this application, the vehicle is described as traveling within the coverage of the kth RSU server.
[0149] Assume that the number of task units that the RSU server needs to process is If The transmission time required for the vehicle task corresponding to the task unit to be transmitted to the RSU server is Then calculate The calculation formula can be formula (4-1):
[0150]
[0151] In formula (4-1), I is the preset data volume of each task unit, is the average data transmission rate between the vehicle and the RSU server.
[0152] The RSU server receives the third number After the vehicle task corresponding to the task unit is completed, the calculation will be processed and the result of the calculation will be fed back to the vehicle. The amount of data of the calculation result is usually very small. In this application, only the time required for the RSU server to process the calculation is considered. The calculation formula can be formula (4-2):
[0153]
[0154] In formula (4-2), The third number that the RSU server needs to process The amount of data per task unit, f k is the task processing speed of the determined RSU server of the kth RSU server, ε is the task inherent parameter, I is the preset data volume of each task unit, The number of task units that the RSU server needs to process.
[0155] In order to ensure that the vehicle tasks processed by the RSU server will not be interrupted, and The sum needs to be less than or equal to the time the vehicle travels within the coverage area of the kth RSU server The calculation formula can be expressed as:
[0156]
[0157] In formula (4-3), For vehicles The transmission time required for the vehicle task corresponding to each task unit to be transmitted to the RSU server, The RSU server handles the time required to calculate the vehicle task.
[0158] Substituting formula (2-4) into the above formula (4-3), we can get The formula is formula (4-4)
[0159]
[0160] In formula (4-4), This is the calculated third quantity, L k is the distance traveled by the vehicle within the coverage area of the kth RSU server, is the average data transmission rate between the vehicle and the RSU server, f k is the task processing speed of the determined RSU server of the kth RSU server, ε is the task inherent parameter, I is the preset data volume of each task unit, and v k is the average speed of vehicles traveling within the coverage area of the kth RSU server.
[0161] S403: Determine the target total number of task units that the RSU server and the vehicle can process according to the second number and the third number.
[0162] See also Figure 6, determining the target total number of task units that the RSU server and the vehicle can process according to the second number and the third number may include:
[0163] S601: Determine a fourth number of task units that the RSU server and the vehicle can process according to the second number, the third number and a preset task adjustment parameter.
[0164] According to formulas (5-4) and (4-4), the maximum number of task units that the RSU server and the vehicle can process when the vehicle is traveling within the coverage area of the RSU server can be obtained: The calculation formula can be formula (6-1):
[0165]
[0166] In formula (6-1), is the second number of task units that the vehicle can process within the coverage of the RSU server, For the third number, L k is the distance traveled by the vehicle within the coverage area of the kth RSU server, f0 is the determined task processing speed of the vehicle, ε is the task inherent parameter, I is the preset data volume of each task unit, and v k is the average speed of vehicles traveling within the coverage area of the kth RSU server, is the average data transmission rate between the vehicle and the RSU server, f k is the task processing speed of the determined RSU server of the kth RSU server, v k is the average speed of vehicles traveling within the coverage area of the kth RSU server.
[0167] Considering the change of the average speed of the vehicle and the average rate of data transmission between the vehicle and the RSU server, a task adjustment parameter θ can also be set to determine the fourth number of task units that the RSU server and the vehicle can process The calculation formula can be formula (6-2).
[0168]
[0169] In formula (6-2), 0≤θ≤1, The maximum number of task units that the RSU server and vehicle can process.
[0170] S602: If the difference between the first number and the fifth number of pre-acquired completed task units is greater than the fourth number, determine that the target total number of task units that the RSU server and the vehicle can process is the fourth number.
[0171] The fifth number of completed task units obtained in advance is the number of task units that have been processed and calculated by the server and the vehicle before the RSU server. The fifth number can be sent by the vehicle to the RSU server. For example, each time the vehicle enters the coverage of an RSU server, the vehicle and the RSU server will complete a certain amount of vehicle tasks corresponding to a certain amount of task units. When the vehicle enters the coverage of the kth server, the fifth number is the sum of the task units completed by the k-1 servers and the task units completed by the vehicle. In this application, N is used. f Indicates the fifth quantity. It is understood that after the vehicle receives the target ratio and the target total quantity, the fifth quantity of completed task units acquired in advance will be updated, so that after the vehicle enters the coverage of the next RSU server, the fifth quantity of completed task units will be sent to the new RSU server. It is understood that when the RSU server is the first RSU server, the fifth quantity of completed task units is 0.
[0172] The first number is the number of task units corresponding to the vehicle task, and the difference between the first number and the fifth number is the number of uncompleted task units.
[0173] If the number of unfinished task units is greater than the fourth number, the target total number is the fourth number.
[0174] S603: If the difference between the first number and the fifth number of pre-acquired completed task units is less than the fourth number, determine the target total number of task units that the RSU server and the vehicle can process as the difference between the first number and the fifth number of pre-acquired completed task units.
[0175] If the number of unfinished task units is less than the fourth number, the target total number is the number of unfinished task units, that is, the difference between the first number and the fifth number of pre-acquired completed task units.
[0176] The technical solution of the present application fully considers the problems that may arise during the calculation process, thereby improving the efficiency and accuracy of determining vehicle task processing.
[0177] See also Figure 7 In an embodiment of the present application, a vehicle task processing method is provided. The vehicle task processing method can be applied to the aforementioned vehicle. The method includes:
[0178] S701: In response to a vehicle entering the coverage of the RSU server, the vehicle driving data and task processing capability data are sent to the RSU server, so that the RSU server determines, based on the vehicle driving data, the task processing capability data and the preset data volume of each task unit, a target ratio of the number of task units processed by the RSU server to the target total number when the vehicle is driving within the coverage of the RSU server and when the target total number of task units is processed in the shortest time, the target total number being the total number of task units that the RSU server and the vehicle can process when the vehicle is driving within the coverage of the RSU server.
[0179] After a vehicle produces a vehicle task, each time it enters the coverage area of an RSU server, it will send vehicle driving data and task processing capacity data to the RSU server. The vehicle driving data sent by the vehicle includes the average speed of the vehicle, and the task processing capacity data sent by the vehicle includes the task processing speed of the vehicle. Among them, the specific process of determining the target ratio of the number of task units processed by the RSU server to the target total number can refer to the description of the previous embodiment, and this embodiment will not be described in detail.
[0180] S702: Receive the target ratio and target total quantity sent by the RSU server.
[0181] After the RSU server determines the target ratio and the target total quantity, it sends the target ratio and the target total quantity to the vehicle, so that the vehicle receives the target ratio and the target total quantity sent by the RSU server.
[0182] S703: Determine, according to the target ratio and the target total quantity, a first target quantity of task units corresponding to the vehicle tasks that the RSU server needs to process and a second target quantity of task units corresponding to the vehicle tasks that the vehicle needs to process.
[0183] After the target ratio and the target total quantity are determined, the vehicle receives the target ratio and the target total quantity and determines the first target quantity of task units corresponding to the vehicle tasks that the RSU server needs to process and the second target quantity of task units corresponding to the vehicle tasks that the vehicle needs to process.
[0184] Among them, the first target number It can be the aforementioned formula (2-11):
[0185]
[0186] The second target number It can be the aforementioned formula (2-12):
[0187]
[0188] It is understood that after the vehicle receives the target ratio and the target total number, the fifth number of completed task units acquired in advance will be updated, so that after the vehicle enters the coverage of the next RSU server, the fifth number of completed task units will be sent to the new RSU server. It is understood that when the RSU server is the first RSU server, the fifth number of completed task units is 0.
[0189] S704: Send the vehicle tasks corresponding to the first target number of task units to the RSU server, and process the vehicle tasks corresponding to the second target number of task units.
[0190] The vehicle tasks corresponding to the first target number of task units are sent to the RSU server for processing, and the vehicle processes the vehicle tasks corresponding to the second target number of task units, so that all the vehicle tasks that need to be calculated in the RSU server can be calculated.
[0191] The vehicle task processing method provided by the embodiment of the present application sends vehicle driving data and task processing capability data to the RSU server in response to the vehicle entering the coverage of the RSU server, so that the RSU server determines that when the vehicle is driving within the coverage of the RSU server and when the target total number of task units is processed in the shortest time, the number of task units processed by the RSU server accounts for the target proportion of the target total number, and the determined target proportion ensures that the vehicle tasks corresponding to the first target number of task units can be fully processed by the RSU server, and the vehicle tasks corresponding to the second target number of task units can be fully processed by the vehicle, and the data volume of the first target number of task units and the vehicle tasks corresponding to the second target number of task units can be fully processed during the driving process of the vehicle on the RSU server. The data volume of vehicle tasks that can be processed by different RSU servers varies according to the specific situation, taking into account the situation of the vehicle, ensuring that the vehicle and the RSU server fully process the vehicle tasks in the shortest time, and improving the processing efficiency of vehicle tasks.
[0192] See also Figure 8 The embodiment of the present application provides a vehicle task processing device 800, which can be applied to the aforementioned RSU server. The vehicle task processing device 800 may include:
[0193] The data acquisition unit 801 is used to acquire vehicle driving data and task processing capability data;
[0194] The first calculation unit 802 is used to calculate the target total number of task units that can be processed by the RSU server and the vehicle within the coverage range of the vehicle according to the vehicle driving data, the task processing capacity data and the preset data volume of each task unit;
[0195] The second calculation unit 803 is used to determine, based on the vehicle driving data and the task processing capacity data, a target ratio of the number of task units processed by the RSU server to the target total number when the vehicle is driving within the coverage of the RSU server and the target total number of task units is processed in the shortest time;
[0196] The ratio sending unit 804 is used to send the target ratio and the target total number to the vehicle, so that the vehicle determines the first target number of task units corresponding to the vehicle tasks that the RSU server needs to process and the second target number of task units corresponding to the vehicle tasks that the vehicle needs to process based on the target ratio and the target total number, and sends the vehicle tasks corresponding to the first target number of task units to the RSU server for processing, and the vehicle processes the vehicle tasks corresponding to the second target number of task units.
[0197] In one embodiment, the vehicle task processing device 800 further includes:
[0198] A task information receiving unit, used to receive task information corresponding to a vehicle task sent by a vehicle, wherein the task information includes a task data volume;
[0199] The corresponding division unit is used to determine the first number of task units corresponding to the vehicle task according to the task data volume and the preset data volume of each task unit.
[0200] In one embodiment, the first computing unit 802 includes:
[0201] A second quantity determination unit is used to calculate a second quantity of task units that the vehicle can process within the coverage of the RSU server according to the average speed of the vehicle, the task processing speed of the vehicle, the distance traveled by the vehicle within the coverage of the RSU server, and the data volume of each task unit;
[0202] a third quantity determination unit, configured to calculate a third quantity of task units that can be processed by the RSU server within the coverage range of the RSU server according to the average speed of the vehicle, the task processing speed of the RSU server, the distance traveled by the vehicle within the coverage range of the RSU server, the data volume of each task unit, and the average transmission rate between the vehicle and the RSU server;
[0203] The target quantity determination unit is used to determine the target total quantity of task units that can be processed by the RSU server and the vehicle according to the second quantity and the third quantity.
[0204] In one embodiment, the second quantity determining unit includes:
[0205] The time subunit is used to calculate the first time that the vehicle travels within the coverage area of the RSU server according to the average speed of the vehicle and the distance traveled by the vehicle within the coverage area of the RSU server;
[0206] A vehicle processing subunit, used for calculating the data volume of the vehicle task processed by the vehicle in the first time according to the task processing speed of the vehicle;
[0207] The second quantity subunit is used to calculate the second quantity of task units that the vehicle can process within the coverage of the RSU server according to the data volume of the vehicle tasks processed by the vehicle in the first time, the data volume of each task unit and the preset task inherent parameters.
[0208] In one embodiment, the third quantity determination unit is specifically used to calculate the third quantity of task units that the RSU server can process within the coverage range of the RSU server of the vehicle based on the first time, the task processing speed of the RSU server, the data volume of each task unit, and the average transmission rate between the vehicle and the RSU server.
[0209] In one embodiment, the target quantity determination unit is specifically used to: determine the fourth quantity of task units that the RSU server and the vehicle can handle based on the second quantity, the third quantity and the preset task adjustment parameters; if the difference between the first quantity and the fifth quantity of completed task units obtained in advance is greater than the fourth quantity, determine the target total quantity of task units that the RSU server and the vehicle can handle as the fourth quantity; if the difference between the first quantity and the fifth quantity of completed task units obtained in advance is less than the fourth quantity, determine the target total quantity of task units that the RSU server and the vehicle can handle as the difference between the first quantity and the fifth quantity of completed task units obtained in advance.
[0210] In one embodiment, the second calculation unit 803 is specifically used to determine the target proportion of the number of task units processed by the RSU server to the target total number when the vehicle is traveling within the coverage of the RSU server and the target total number of task units is processed in the shortest time based on the task processing speed of the vehicle, the task processing speed of the RSU server, and the average data transmission rate between the vehicle and the RSU server.
[0211] See also Fig. 9 The embodiment of the present application provides a vehicle task processing device 900, which can be applied to the aforementioned vehicle. The vehicle task processing device 900 may include:
[0212] The data sending unit 901 is used to send the vehicle driving data and task processing capacity data to the RSU server in response to the vehicle entering the coverage of the RSU server, so that the RSU server determines the target ratio of the number of task units processed by the RSU server to the target total number when the vehicle is driving within the coverage of the RSU server and the target total number of task units is processed in the shortest time according to the vehicle driving data, the task processing capacity data and the preset data volume of each task unit. The target total number is the total number of task units that the RSU server and the vehicle can process when the vehicle is driving within the coverage of the RSU server;
[0213] A ratio receiving unit 902 is used to receive a target ratio and a target total quantity sent by the RSU server;
[0214] A quantity determination unit 903 is used to determine a first target quantity of task units corresponding to vehicle tasks that the RSU server needs to process and a second target quantity of task units corresponding to vehicle tasks that the vehicle needs to process according to the target ratio and the target total quantity;
[0215] The task sending processing unit 904 is used to send the vehicle tasks corresponding to the first target number of task units to the RSU server, and process the vehicle tasks corresponding to the second target number of task units.
[0216] It should be noted that the division of units in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0217] 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 processor-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.
[0218] It should be noted here that the above-mentioned device provided in the embodiment of the present invention can implement all the method steps implemented in the above-mentioned method embodiment, and can achieve the same technical effect. The parts and beneficial effects that are the same as the method embodiment in this embodiment will not be described in detail here.
[0219] See also Fig.10 In an optional embodiment, an RSU server is provided, and the RSU server 1000 includes: a processor 1001 and a memory 1003. The processor 1001 and the memory 1003 are connected, such as through a bus 1002. Optionally, the RSU server 1000 may also include a transceiver 1004. It should be noted that in actual applications, the transceiver 1004 is not limited to one, and the structure of the RSU server 1000 does not constitute a limitation on the embodiments of the present application.
[0220] Processor 1001 may be a CPU (Central Processing Unit), a general purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 1001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0221] The bus 1002 may include a path to transmit information between the above components. The bus 1002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 1002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0222] The memory 1003 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.
[0223] The memory 1003 is used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 1001. The processor 1001 is used to execute the application code stored in the memory 1003 to implement the contents shown in the above method embodiment.
[0224] The RSU server includes but is not limited to: a terminal and a server.
[0225] An RSU server is provided in an embodiment of the present application, and the RSU server includes: a memory and a processor; at least one program, which is stored in the memory and is used to implement the corresponding content in the aforementioned method embodiment when executed by the processor. Compared with the prior art, it can achieve: according to the acquired vehicle driving data, the acquired task processing capacity data and the preset data volume of each task unit, the target total number of task units that the vehicle can process within the coverage of the RSU server, and the target ratio of the number of task units processed by the RSU server to the target total number are determined, so that the vehicle tasks corresponding to the first target number of task units can be processed by the RSU server, and the vehicle tasks corresponding to the second target number of task units can all be processed by the vehicle, the data volume of the first target number of task units and the vehicle tasks corresponding to the second target number of task units can all be processed during the driving of the vehicle on the RSU server, and the data volume of the vehicle tasks that different RSU servers can process varies according to the specific situation, taking into account the situation of the vehicle and the situation of the task processing capacity, ensuring that the vehicle and the RSU server fully process the vehicle tasks in the shortest time, and improving the processing efficiency of the vehicle tasks.
[0226] See also Fig.11In an optional embodiment, a vehicle is provided, wherein the vehicle 1100 includes: a processor 1101 and a memory 1103. The processor 1101 and the memory 1103 are connected, such as through a bus 1102. Optionally, the vehicle 1100 may also include a transceiver 1104. It should be noted that in actual applications, the transceiver 1104 is not limited to one, and the structure of the vehicle 1100 does not constitute a limitation on the embodiments of the present application.
[0227] Processor 1101 may be a CPU (Central Processing Unit), a general purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 1101 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0228] The bus 1102 may include a path to transmit information between the above components. The bus 1102 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 1102 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0229] The memory 1103 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.
[0230] The memory 1103 is used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 1101. The processor 1101 is used to execute the application code stored in the memory 1103 to implement the contents shown in the above method embodiment.
[0231] Among them, vehicles include but are not limited to: terminals and servers.
[0232] A vehicle is provided in an embodiment of the present application, the vehicle comprising: a memory and a processor; at least one program, stored in the memory, for implementing the corresponding content in the aforementioned method embodiment when executed by the processor, and compared with the prior art, it can be achieved that: in response to the vehicle entering the coverage of the RSU server, the vehicle driving data and the task processing capacity data are sent to the RSU server, so that the RSU server determines that when the vehicle is driving within the coverage of the RSU server and the target total number of task units are processed in the shortest time, the number of task units processed by the RSU server accounts for the target proportion of the target total number, and the target proportion is determined, so that the vehicle tasks corresponding to the first target number of task units can be fully processed by the RSU server, and the vehicle tasks corresponding to the second target number of task units can be fully processed by the vehicle, the data volume of the first target number of task units and the vehicle tasks corresponding to the second target number of task units can be fully processed during the vehicle driving on the RSU server, and the data volume of the vehicle tasks that can be processed by different RSU servers varies according to the specific situation, taking into account the situation of the vehicle, ensuring that the vehicle and the RSU server fully process the vehicle tasks in the shortest time, and improving the processing efficiency of the vehicle tasks.
[0233] An embodiment of the present application provides a processor-readable storage medium, on which a computer program is stored. When the processor-readable storage medium is run on a computer, the computer can execute the corresponding content in the aforementioned method embodiment.
[0234] The processor-readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO)), optical storage (such as CDs, DVDs, BDs, HVDs, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid-state drives (SSDs)), etc.
[0235] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0236] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer executable instructions. These computer executable instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0237] These processor executable instructions may also be stored in a processor readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the processor readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0238] These processor-executable instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0239] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A vehicle task processing method, applied to a roadside unit RSU server, for assisting in processing vehicle tasks of a vehicle, characterized in that: The method comprises: Obtain vehicle driving data and task processing capability data; Calculate the target total number of task units that can be processed by the RSU server and the vehicle within the coverage range of the RSU server according to the vehicle driving data, the task processing capacity data and the preset data volume of each task unit; Determine, based on the vehicle driving data and the task processing capacity data, a target ratio of the number of task units processed by the RSU server to the target total number when the vehicle is driving within the coverage area of the RSU server and the target total number of task units is processed in the shortest time; The target ratio and the target total number are sent to the vehicle, so that the vehicle determines the first target number of task units corresponding to the vehicle tasks that the RSU server needs to process and the second target number of task units corresponding to the vehicle tasks that the vehicle needs to process based on the target ratio and the target total number, and sends the vehicle tasks corresponding to the first target number of task units to the RSU server for processing, and the vehicle processes the vehicle tasks corresponding to the second target number of task units.
2. The vehicle task processing method according to claim 1, characterized in that: Before calculating the target total number of task units that the vehicle can process within the coverage range of the RSU server and the vehicle, the method further includes: Receiving task information corresponding to a vehicle task sent by a vehicle, wherein the task information includes a task data volume; A first quantity of task units corresponding to the vehicle task is determined according to the task data quantity and a preset data quantity of each task unit.
3. The vehicle task processing method according to claim 1, characterized in that: The vehicle driving data includes: the average speed of the vehicle and the distance traveled by the vehicle within the coverage area of the RSU server; the task processing capability data includes: the task processing speed of the vehicle, the task processing speed of the RSU server and the average data transmission rate between the vehicle and the RSU server.
4. The vehicle task processing method according to claim 3, characterized in that: The calculating, according to the vehicle driving data, the task processing capability data and the preset data volume of each task unit, a target total number of task units that can be processed by the RSU server and the vehicle within the coverage range of the RSU server includes: Calculate the second number of the task units that the vehicle can process within the coverage of the RSU server according to the average speed of the vehicle, the task processing speed of the vehicle, the distance traveled by the vehicle within the coverage of the RSU server, and the data volume of each task unit; Calculate the third number of the task units that the RSU server can process within the coverage of the RSU server according to the average speed of the vehicle, the task processing speed of the RSU server, the distance traveled by the vehicle within the coverage of the RSU server, the data volume of each task unit, and the average transmission rate between the vehicle and the RSU server; A target total number of task units that can be processed by the RSU server and the vehicle is determined according to the second number and the third number.
5. The vehicle task processing method according to claim 4, characterized in that: The vehicle task corresponds to a first number of task units, and determining a target total number of task units that can be processed by the RSU server and the vehicle according to the second number and the third number includes: Determining a fourth number of task units that can be processed by the RSU server and the vehicle according to the second number, the third number and a preset task adjustment parameter; If the difference between the first number and the fifth number of completed task units obtained in advance is greater than the fourth number, determining the target total number of task units that can be processed by the RSU server and the vehicle to be the fourth number; If the difference between the first number and the fifth number of pre-acquired completed task units is less than the fourth number, the target total number of task units that the RSU server and the vehicle can process is determined to be the difference between the first number and the fifth number of pre-acquired completed task units.
6. The vehicle task processing method according to claim 4, characterized in that: The calculating, according to the average speed of the vehicle, the task processing speed of the vehicle, the distance traveled by the vehicle within the coverage of the RSU server, and the data volume of each task unit, a second number of the task units that the vehicle can process within the coverage of the RSU server includes: Calculate the first time that the vehicle travels within the coverage area of the RSU server according to the average speed of the vehicle and the distance traveled by the vehicle within the coverage area of the RSU server; Calculating the data volume of the vehicle tasks processed by the vehicle within the first time according to the task processing speed of the vehicle; Based on the data volume of the vehicle task processed by the vehicle within the first time, the data volume of each task unit and preset task-inherent parameters, the second number of the task units that the vehicle can process within the coverage of the RSU server is calculated.
7. The vehicle task processing method according to claim 6, characterized in that: The calculating, according to the average speed of the vehicle, the task processing speed of the RSU server, the distance traveled by the vehicle within the coverage of the RSU server, the data volume of each task unit, and the average transmission rate between the vehicle and the RSU server, the third number of the task units that the RSU server can process within the coverage of the RSU server includes: According to the first time, the task processing speed of the RSU server, the data volume of each task unit, and the average transmission rate between the vehicle and the RSU server, the third number of the task units that the RSU server can process within the coverage range of the RSU server is calculated.
8. The vehicle task processing method according to claim 3, characterized in that: The determining, based on the vehicle driving data and the task processing capability data, a target ratio of the number of task units processed by the RSU server to the target total number when the vehicle is driving within the coverage area of the RSU server and a target total number of task units is processed in the shortest time, includes: According to the task processing speed of the vehicle, the task processing speed of the RSU server and the average data transmission rate between the vehicle and the RSU server, determine the target proportion of the number of task units processed by the RSU server to the target total number when the vehicle is traveling within the coverage area of the RSU server and the target total number of task units is processed in the shortest time.
9. A vehicle task processing method, applied to a vehicle, characterized in that: The method comprises: In response to the vehicle entering the coverage of the RSU server, the vehicle driving data and the task processing capacity data are sent to the RSU server, so that the RSU server determines, based on the vehicle driving data, the task processing capacity data and the preset data volume of each task unit, the target proportion of the number of task units processed by the RSU server to the target total number when the vehicle is driving within the coverage of the RSU server and when the target total number of task units is processed in the shortest time, the target total number being the total number of task units that can be processed by the RSU server and the vehicle when the vehicle is driving within the coverage of the RSU server; Receiving the target ratio and the target total quantity sent by the RSU server; Determine, according to the target ratio and the target total number, a first target number of task units sent to the RSU server and a second target number of task units that the vehicle needs to process; The vehicle tasks corresponding to the first target number of task units are sent to the RSU server, and the vehicle tasks corresponding to the second target number of task units are processed.
10. A vehicle task processing device, characterized in that: Applied to the roadside unit RSU server, the vehicle task processing device includes: A data acquisition unit, used to acquire vehicle driving data and task processing capability data; A first calculation unit is used to calculate the target total number of task units that can be processed by the RSU server and the vehicle within the coverage range of the RSU server according to the vehicle driving data, the task processing capacity data and the preset data volume of each task unit; A second calculation unit is used to determine, based on the vehicle driving data and the task processing capacity data, a target ratio of the number of task units processed by the RSU server to the target total number when the vehicle is driving within the coverage area of the RSU server and the target total number of task units is processed in the shortest time; A ratio sending unit is used to send the target ratio and the target total number to the vehicle, so that the vehicle determines the first target number of task units corresponding to the vehicle tasks that the RSU server needs to process and the second target number of task units corresponding to the vehicle tasks that the vehicle needs to process based on the target ratio and the target total number, and sends the vehicle tasks corresponding to the first target number of task units to the RSU server for processing, and the vehicle processes the vehicle tasks corresponding to the second target number of task units.
11. A vehicle task processing device, characterized in that: Applied to vehicles, the vehicle task processing device includes: a data sending unit, configured to send vehicle driving data and task processing capability data to the RSU server in response to the vehicle entering the coverage of the RSU server, so that the RSU server determines, based on the vehicle driving data, the task processing capability data and the preset data volume of each task unit, a target proportion of the number of task units processed by the RSU server to the target total number when the vehicle is driving within the coverage of the RSU server and when the target total number of task units is processed in the shortest time, wherein the target total number is the total number of task units that can be processed by the RSU server and the vehicle when the vehicle is driving within the coverage of the RSU server; A ratio receiving unit, configured to receive a target ratio and a target total quantity sent by the RSU server; a quantity determination unit, configured to determine a first target quantity of task units to be sent to the RSU server and a second target quantity of task units to be processed by the vehicle according to the target ratio and the target total quantity; The task sending processing unit is used to send the vehicle tasks corresponding to the first target number of task units to the RSU server, and process the vehicle tasks corresponding to the second target number of task units.
12. An RSU server, characterized in that: It includes: one or more processors; Memory; One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to: execute the vehicle task processing method according to any one of claims 1 to 8.
13. A vehicle, characterized in that: It includes: one or more processors; Memory; One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to: execute the vehicle task processing method according to claim 9.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the vehicle task processing method according to any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Motorcade-based vehicle task unloading decision and overall resource allocation method
CN111464976A
Traffic control method, and apparatus
US20180365994A1