CN113254219B - Cooperative processing method, cooperative processing device, electronic device, and storage medium - Google Patents

Cooperative processing method, cooperative processing device, electronic device, and storage medium Download PDF

Info

Publication number
CN113254219B
CN113254219B CN202110716277.4A CN202110716277A CN113254219B CN 113254219 B CN113254219 B CN 113254219B CN 202110716277 A CN202110716277 A CN 202110716277A CN 113254219 B CN113254219 B CN 113254219B
Authority
CN
China
Prior art keywords
vehicle
evaluation result
equipment
calculation
task
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110716277.4A
Other languages
Chinese (zh)
Other versions
CN113254219A (en
Inventor
冯刚
陈继鑫
张晔
邹榕榕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guoqi Intelligent Control Beijing Technology Co Ltd
Original Assignee
Guoqi Intelligent Control Beijing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guoqi Intelligent Control Beijing Technology Co Ltd filed Critical Guoqi Intelligent Control Beijing Technology Co Ltd
Priority to CN202110716277.4A priority Critical patent/CN113254219B/en
Publication of CN113254219A publication Critical patent/CN113254219A/en
Application granted granted Critical
Publication of CN113254219B publication Critical patent/CN113254219B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5077Logical partitioning of resources; Management or configuration of virtualized resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • H04W4/44Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for communication between vehicles and infrastructures, e.g. vehicle-to-cloud [V2C] or vehicle-to-home [V2H]

Abstract

The application provides a cooperative processing method, a cooperative processing device, an electronic device and a storage medium, wherein when the method is applied to a vehicle, the method comprises the following steps: storing the calculation task to a first container, and acquiring resources required by the calculation task; broadcasting corresponding demand information according to resources required by the calculation task; receiving an evaluation result sent by other equipment, and selecting target equipment from the other equipment according to the evaluation result; sending a cooperation request to the target equipment, wherein the cooperation request comprises a service downloading address of the first container, so that the target equipment acquires a mirror image container of the first container from the service downloading address, and executes a calculation task based on the mirror image container to acquire a calculation result; and receiving a calculation result returned by the target equipment. The cooperative processing method can be used for adopting the method of calculating by other equipment when the processing capacity of the vehicle is insufficient, so that the resource utilization rate of the other equipment is improved, and the problem of insufficient processing capacity of the vehicle is solved.

Description

Cooperative processing method, cooperative processing device, electronic device, and storage medium
Technical Field
The present application relates to the field of communications, and in particular, to a cooperative processing method, a cooperative processing apparatus, an electronic device, and a storage medium.
Background
At present, with the development of communication technology, a vehicle can realize communication and data interaction with other vehicles or roadside devices in a road through an on-board device by means of an on-board wireless communication technology.
In the prior art, when a vehicle performs data interaction with roadside equipment or other vehicles, the roadside equipment or other vehicles transmit data (for example, road information acquired by a laser sensor, a millimeter wave radar, and the like in the roadside equipment or the vehicle) acquired by the vehicle to the vehicle more so that the vehicle can realize the path planning of the vehicle according to the data.
However, with the coverage and computation capability of the road side devices being rapidly increased, the resource utilization rate of a large number of road side devices is reduced, resulting in resource waste.
Disclosure of Invention
The application provides a cooperative processing method, a cooperative processing device, an electronic device and a storage medium, which are used for solving the problems that in the prior art, under the condition that the coverage and the computing capacity of road side equipment are rapidly improved, the resource utilization rate of a large amount of road side equipment is reduced, and resources are wasted.
In a first aspect, the present application provides a cooperative processing method applied to a vehicle, the method including:
storing a computing task to a first container, and acquiring resources required by the computing task;
broadcasting corresponding demand information according to the resources required by the computing task;
receiving an evaluation result sent by other equipment, and selecting target equipment from the other equipment according to the evaluation result, wherein the evaluation result is sent after the other equipment determines that the other equipment has the resources required by the demand information;
sending a cooperation request to the target device, wherein the cooperation request comprises a service download address of the first container, so that the target device obtains a mirror image container of the first container from the service download address, and executes the calculation task based on the mirror image container to obtain a calculation result;
and receiving a calculation result returned by the target equipment.
In one possible implementation, the evaluation result includes the currently available resources of the other device; the selecting the target device from the other devices according to the evaluation result includes:
counting the current available resources of the other equipment according to the evaluation result;
and selecting the device with the most available resources from the other devices as the target device.
In one possible implementation, the evaluation result includes at least two of: current available resources, a communicable time period with the vehicle, an operational cost required to perform the computing task, and a communication coverage; the selecting the target device from the other devices according to the evaluation result includes:
according to various parameters in the evaluation results of the other equipment, the priority of the other equipment is obtained through weighted summation calculation; wherein the running cost is a ratio of resources required for executing the computing task to the current available resources;
and selecting the device with the highest priority from the other devices as the target device.
In a possible implementation manner, the evaluation result is continuously sent by the other device, and the evaluation result includes the position information of the other device at the time of sending the evaluation result; before the selecting the target device from the other devices according to the evaluation result, the method further includes:
obtaining the distance between the other equipment and the vehicle according to the position information in the evaluation result continuously sent by the other equipment;
screening the other equipment according to a preset strategy, wherein the strategy comprises that if the other equipment is first equipment, the other equipment is reserved, and otherwise, the other equipment is filtered; wherein the duration of the first device being located within the predetermined distance of the vehicle's vicinity satisfies a preset threshold.
In one possible implementation, the collaboration request further includes a time period required to perform the computing task.
In a possible implementation manner, the calculation result includes a calculation result of a sub-calculation task corresponding to the calculation task; the acquiring of the resources required by the computing task includes:
splitting the computing task to obtain a plurality of sub-computing tasks, and respectively obtaining resources required by the plurality of sub-computing tasks;
the broadcasting corresponding demand information according to the resources required by the computing task comprises:
broadcasting requirement information corresponding to the plurality of sub-computing tasks, wherein each requirement information comprises resources required by the corresponding sub-computing task;
after receiving the calculation result returned by the target device, the method further includes:
and analyzing to obtain the calculation result of the calculation task according to the calculation result of the sub-calculation task returned by the target equipment.
In a possible implementation manner, the broadcasting the corresponding requirement information according to the resource required by the computing task includes:
broadcasting demand information, wherein the demand information comprises resources required by the computing task; alternatively, the first and second electrodes may be,
according to the resources required by the computing task and preset redundant resources, the resources required by the cooperative processing are obtained through summation calculation; broadcasting demand information, wherein the demand information comprises resources required by the cooperative processing.
In a second aspect, the present application provides a cooperative processing method applied to a roadside device or a vehicle, the method including:
receiving demand information broadcast by other vehicles, wherein the demand information comprises resources required by computing tasks of the other vehicles;
detecting whether the vehicle has the resource required by the demand information according to the demand information broadcast by other vehicles;
if yes, sending an evaluation result to other vehicles;
if a cooperative request sent by the other vehicle is received, acquiring a mirror image container of a first container according to a service download address in the cooperative request, executing the calculation task based on the mirror image container, and acquiring a calculation result, wherein the first container is used for storing the calculation task;
transmitting the calculation result to the other vehicle.
In one possible implementation, the evaluation result includes the currently available resources of the roadside device or vehicle.
In one possible implementation, the evaluation result includes a communicable time period with the other vehicle;
before the sending of the evaluation result to other vehicles, the method further comprises:
determining a communicable time length with the other vehicle according to the position information of the roadside device, the path information of the other vehicle and the communication coverage of the roadside device; alternatively, the first and second electrodes may be,
determining a communicable time period with the other vehicle in accordance with the path information of the vehicle, the path information of the other vehicle, and the communication coverage of the vehicle.
In one possible implementation, the evaluation result includes an operation cost required for executing the calculation task;
before the sending of the evaluation result to other vehicles, the method further comprises:
and calculating the ratio of the resources required for executing the calculation task to the current available resources of the road side equipment or the vehicle, and obtaining the operation cost required for executing the calculation task.
In one possible implementation, the evaluation result includes at least two of: current available resources, a communicable time period with the vehicle, an operational cost required to perform the computing task, and a communication coverage; wherein the running cost is a ratio of resources required to execute the computing task to the currently available resources.
In one possible implementation, the sending the evaluation result to the other vehicle includes:
continuously transmitting an evaluation result including the position information of the roadside apparatus or the current position information of the vehicle to the other vehicle.
In a third aspect, the present application provides a cooperative processing apparatus applied to a vehicle, the apparatus including:
the first acquisition unit is used for storing the calculation task to a first container and acquiring the resources required by the calculation task.
And the broadcasting unit is used for broadcasting the corresponding demand information according to the resources required by the computing task.
And the first receiving unit is used for receiving an evaluation result sent by other equipment and selecting target equipment from the other equipment according to the evaluation result, wherein the evaluation result is sent after the other equipment determines that the other equipment has the resources required by the demand information.
A first sending unit, configured to send a cooperation request to the target device, where the cooperation request includes a service download address of the first container, so that the target device obtains a mirror image container of the first container from the service download address, and executes the calculation task based on the mirror image container, to obtain a calculation result.
And the second receiving unit is used for receiving the calculation result returned by the target equipment.
In one possible implementation, the evaluation result includes the currently available resources of the other device; the first receiving unit is specifically configured to:
counting the current available resources of the other equipment according to the evaluation result;
and selecting the device with the most available resources from the other devices as the target device.
In one possible implementation, the evaluation result includes at least two of: current available resources, a communicable time period with the vehicle, an operational cost required to perform the computing task, and a communication coverage; the first receiving unit is specifically configured to:
according to various parameters in the evaluation results of the other equipment, the priority of the other equipment is obtained through weighted summation calculation; wherein the running cost is a ratio of resources required for executing the computing task to the current available resources;
and selecting the device with the highest priority from the other devices as the target device.
In a possible implementation manner, the evaluation result is continuously sent by the other device, and the evaluation result includes the position information of the other device at the time of sending the evaluation result; before the selecting the target device from the other devices according to the evaluation result, the method further includes:
and a second obtaining unit, configured to obtain, before the first receiving unit selects a target device from the other devices according to the evaluation result, a distance between the other device and the vehicle according to location information in the evaluation result that is continuously sent by the other device.
The screening unit is used for screening the other equipment according to a preset strategy, wherein the strategy comprises that if the other equipment is first equipment, the other equipment is reserved, and otherwise, the other equipment is filtered; wherein the duration of the first device being located within the predetermined distance of the vehicle's vicinity satisfies a preset threshold.
In one possible implementation, the collaboration request further includes a time period required to perform the computing task.
In a possible implementation manner, the calculation result includes a calculation result of a sub-calculation task corresponding to the calculation task; the first obtaining unit is further specifically configured to split the computation task, obtain a plurality of sub-computation tasks, and obtain resources required by the plurality of sub-computation tasks, respectively.
The broadcasting unit is further specifically configured to broadcast demand information corresponding to the plurality of sub-computation tasks, where each demand information includes resources required by the corresponding sub-computation task.
The device, still include:
and the integration unit is used for analyzing and obtaining the calculation result of the calculation task according to the calculation result of the sub-calculation task returned by the target equipment after the second receiving unit receives the calculation result returned by the target equipment.
In a possible implementation manner, the broadcast unit is specifically configured to:
broadcasting demand information, wherein the demand information comprises resources required by the computing task; alternatively, the first and second electrodes may be,
according to the resources required by the computing task and preset redundant resources, the resources required by the cooperative processing are obtained through summation calculation; broadcasting demand information, wherein the demand information comprises resources required by the cooperative processing.
In a fourth aspect, the present application provides a cooperative processing apparatus, applied to a roadside device or a vehicle, the apparatus including:
and the third receiving unit is used for receiving demand information broadcasted by other vehicles, and the demand information comprises resources required by the computing tasks of the other vehicles.
And the detection unit is used for detecting whether the self has the resource required by the demand information according to the demand information broadcast by other vehicles.
And a second transmitting unit for transmitting the evaluation result to the other vehicle if the evaluation result is available.
And the computing unit is used for acquiring a mirror image container of a first container according to a service download address in the cooperative request and executing the computing task based on the mirror image container to obtain a computing result if the cooperative request sent by the other vehicle is received, wherein the first container is used for storing the computing task.
A third transmitting unit configured to transmit the calculation result to the other vehicle.
In one possible implementation, the evaluation result includes the currently available resources of the roadside device or vehicle.
In one possible implementation, the evaluation result includes a communicable time period with the other vehicle;
the device further comprises:
a first determination unit configured to determine a communicable time period with another vehicle according to the position information of the roadside apparatus, the route information of the another vehicle, and the communication coverage of the roadside apparatus before the second transmission unit transmits the evaluation result to the another vehicle; alternatively, the first and second electrodes may be,
determining a communicable time period with the other vehicle in accordance with the path information of the vehicle, the path information of the other vehicle, and the communication coverage of the vehicle.
In one possible implementation, the evaluation result includes an operation cost required for executing the calculation task;
the device further comprises:
and the second determining unit is used for calculating the ratio of the resources required for executing the calculation task to the current available resources of the road side equipment or the vehicle before the second sending unit sends the evaluation result to other vehicles, and obtaining the running cost required for executing the calculation task.
In one possible implementation, the evaluation result includes at least two of: current available resources, a communicable time period with the vehicle, an operational cost required to perform the computing task, and a communication coverage; wherein the running cost is a ratio of resources required to execute the computing task to the currently available resources.
In a possible implementation manner, the third sending unit is specifically configured to include:
continuously transmitting an evaluation result including the position information of the roadside apparatus or the current position information of the vehicle to the other vehicle.
In a fifth aspect, the present application provides an electronic device, comprising: a memory, a processor;
a memory; a memory for storing the processor-executable instructions;
wherein the processor is configured to perform the method according to any one of the first aspect according to the executable instructions.
In a sixth aspect, the present application provides an electronic device, comprising: a memory, a processor;
a memory; a memory for storing the processor-executable instructions;
wherein the processor is configured to perform the method according to any one of the second aspect according to the executable instructions.
In a seventh aspect, the present application provides a computer-readable storage medium having stored thereon computer-executable instructions for implementing the method according to any one of the first aspect when executed by a processor.
In an eighth aspect, the present application provides a computer-readable storage medium having stored thereon computer-executable instructions for implementing the method according to any one of the second aspect when executed by a processor.
In a ninth aspect, the present application provides a computer program product comprising a computer program that, when executed by a processor, implements the method of any of the first aspects.
In a tenth aspect, the application relates to a computer program product comprising a computer program that, when executed by a processor, performs the method of any one of the second aspects.
The application provides a cooperative processing method, a cooperative processing device, an electronic device and a storage medium, wherein when the method is applied to a vehicle, the method comprises the following steps: storing the calculation task to a first container, and acquiring resources required by the calculation task; broadcasting corresponding demand information according to resources required by the calculation task; receiving an evaluation result sent by other equipment, and selecting target equipment from the other equipment according to the evaluation result; sending a cooperation request to the target equipment, wherein the cooperation request comprises a service downloading address of the first container, so that the target equipment acquires a mirror image container of the first container from the service downloading address, and executes a calculation task based on the mirror image container to acquire a calculation result; and receiving a calculation result returned by the target equipment. The cooperative processing method can be used for adopting the method of calculating by other equipment when the processing capacity of the vehicle is insufficient, so that the resource utilization rate of the other equipment is improved, and the problem of insufficient processing capacity of the vehicle is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic view of an application scenario of vehicle communication provided in the present application;
fig. 2 is a schematic flowchart of a cooperative processing method according to an embodiment of the present application;
fig. 3 is a schematic view of an application scenario of collaborative computing according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a second cooperative processing method according to an embodiment of the present application;
fig. 5 is a schematic flowchart of a third cooperative processing method provided in the embodiment of the present application;
fig. 6 is a schematic diagram of a second application scenario provided in the embodiment of the present application;
fig. 7 is a schematic flowchart of a fourth cooperative processing method according to an embodiment of the present application;
fig. 8 is an interaction diagram of a cooperative processing method provided in an embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 10 is a schematic structural diagram of a second cooperative processing apparatus according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a third cooperative processing apparatus according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of a fourth cooperative processing apparatus according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
Currently, with the continuous development of communication technology, the car networking technology is also gradually receiving attention from people. Currently, in order to realize safe driving of a vehicle and automatic driving of the vehicle, in the prior art, the driving state information (for example, acceleration, deceleration, etc.) of the vehicle and the path information of the vehicle driving are further determined by using data collected and transmitted by other vehicles or roadside devices in the road.
Fig. 1 is a schematic view of an application scenario of vehicle communication provided in the present application. As shown in fig. 1, roadside devices on both sides of a road and a vehicle traveling in the road are included in the drawing. The roadside apparatuses in the related art are more used for transmitting dynamic environment information (for example, running vehicles, pedestrians, traffic lights, and the like) within the coverage area of surrounding roadside apparatuses, static environment information (for example, positions of the remaining roadside apparatuses in a road, traffic signs of the road, road surface width of the road, height information, and the like) by using sensing units such as sensor apparatuses in the roadside apparatuses, and transmitting the acquired information to vehicles on the road at the request of the vehicles in the road. In addition, vehicles on the road can communicate with each other, and similarly, in the process of communication between the vehicles, the collected environmental information, the route planning information and the position information of the vehicles are often transmitted to other vehicles, so that the information around the current vehicle can be fully considered when the vehicles carry out route planning or driving state judgment.
However, as the coverage and the calculation capability of the roadside device are continuously improved, when the roadside device with high calculation capability is applied to the application scene of the vehicle communication, most of the calculation resources in the roadside device cannot be applied, so that the resource utilization rate of the roadside device is reduced, and the waste of the calculation resources is caused.
The present application provides a cooperative processing method, a cooperative processing apparatus, an electronic device, and a storage medium, which are intended to solve the above technical problems in the prior art.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 2 is a schematic flow chart of a cooperative processing method provided in an embodiment of the present application, and as shown in fig. 2, the method includes the following steps:
s101, storing the calculation task to a first container, and acquiring resources required by the calculation task.
Illustratively, the cooperative processing method provided in the present embodiment is applied to a vehicle. The vehicle is provided with various calculation tasks in advance, such as a path planning task, a vehicle driving state determining task, an obstacle avoiding task, a sensor fusion task, a steering task and the like. And, the tasks are all stored in the first container corresponding to each task in advance. In addition, each computation corresponds to a respective resource, where the resource includes a processor resource, a memory resource, a running environment such as running environment definition information (e.g., an operating system) of the first container, and a computing resource such as a computer program corresponding to the computing task.
For example, the calculation task may be input by the user through a function button on the vehicle, for example, when the user inputs a destination and selects a route plan, a route planning task in the vehicle is triggered; the calculation task may also be to start an obstacle avoidance task when a sensor on the vehicle monitors that there is an obstacle in front of the vehicle or receives obstacle information sent by other devices in an automatic driving state of the vehicle.
And acquiring resources required by the computing task according to the computing task.
And S102, broadcasting corresponding demand information according to the resources required by the calculation task.
Illustratively, after acquiring the required resources, the vehicle broadcasts the required resources to other devices, wherein the other devices comprise the rest vehicles in the road, and roadside devices on two sides of the road.
S103, receiving the evaluation result sent by other equipment, and selecting the target equipment from the other equipment according to the evaluation result, wherein the evaluation result is sent after the other equipment determines the resource required by the requirement information.
For example, after receiving the demand information broadcasted by the vehicle, the other device may determine whether the other device currently has the requirement in the received demand information, and if the requirement is met, return the evaluation result to the vehicle. When the vehicle receives the evaluation results of other devices, the target device is screened out.
Optionally, the broadcasted demand information is information that is subjected to security encryption, and only other devices including the key corresponding to the encryption mode can decrypt the information, so as to determine whether the condition of the demand information is met.
Optionally, if the vehicle does not receive the evaluation result sent by the other device within a certain time, the current demand information is continuously broadcast.
Optionally, if the vehicle does not receive the evaluation result sent by the other device within a certain time, the vehicle may execute the calculation task by itself through adjustment of its resource task. For example, whether to suspend the currently running computing task is determined by analyzing the computing tasks already running in the computing task itself to execute the computing task.
Optionally, the target device may be screened according to the time for returning the evaluation result by the other device, and the other device with the shortest time for returning the evaluation result is preferentially selected as the target device.
S104, sending a cooperation request to the target device, wherein the cooperation request comprises a service downloading address of the first container, so that the target device obtains a mirror image container of the first container from the service downloading address, and executes a calculation task based on the mirror image container to obtain a calculation result.
Illustratively, after confirming the target device, the vehicle sends a cooperation request to the target device, and the cooperation request includes a service download address of the first container corresponding to the computing task. And then after the target device receives the cooperative computing request, the mirror image container of the first container can be obtained according to the download address in the cooperative request. And running the computing task in the mirror container in the target device, thereby obtaining a computing result of the computing task.
Fig. 3 is a schematic view of an application scenario of collaborative computing according to an embodiment of the present application. Fig. 3 illustrates a plurality of vehicles, roadside devices, and a container warehouse, where the container warehouse is used to store first containers corresponding to computing tasks. After the vehicle A selects the roadside device A as the target device, the mirror image container of the first container corresponding to the calculation task required by the vehicle A is downloaded from the container warehouse according to the download address in the cooperative calculation request sent by the vehicle A.
Optionally, the collaboration request further includes a time period required to perform the computing task. When the target device receives the time required by the computation task in the cooperative request, the target device can perform scheduling allocation of its own resources according to the time required by the computation task. For example, the time length information may be sent to other devices of the target device that send task requests according to the time length required by the computing task, so that the other devices can confirm whether to wait for the target device to compute the computing task.
Optionally, the cooperative computing request may also include an input data address of the current computing task, so that the target device may obtain a computing result according to input data specified by the vehicle.
Optionally, when the vehicle does not send the input data corresponding to the calculation task to the target device, the vehicle may perform the collaborative calculation by acquiring data corresponding to the data type through the target device according to the input data type pre-specified in the first container.
And S105, receiving a calculation result returned by the target device.
Illustratively, after the target acquires the calculation result, the calculation result is returned to the vehicle.
In a possible case, the vehicle fuses the calculation results obtained by the other calculation tasks in the vehicle according to the received calculation results, and the calculation speed or the calculation precision of the vehicle task is improved.
In this embodiment, the computing task is stored in the first container, and the container technology is combined, so that the computing task can be run in a plurality of different devices. And the problem that when the computing resources of the vehicle are insufficient, the device can be subjected to super computing power calculation by means of cooperative calculation between the vehicle and the target device is solved. In addition, in the cooperative computing process, the computing capacities of other vehicles around the vehicle and the road side equipment are fully considered, and the use efficiency of the road side equipment computing resources is improved.
On the basis of the above-described embodiment shown in fig. 2, when the vehicle determines the target device in accordance with the evaluation result (i.e., when step S103 in fig. 2 is executed), it may be implemented in the following manner.
In a first mode, when the evaluation result comprises the current available resources of other equipment; then when determining the target device, the current available resources of the other devices may be counted according to the available resources in the other devices in the evaluation result, and the device with the most current available resources may be selected from the other devices as the target device.
The second method, the evaluation result includes: a communicable time period with the vehicle; then, in determining the target device, the device having the longest communicable time period may be selected as the target device, based on the communicable time periods of the other devices and the vehicle in the evaluation result. Furthermore, the selected target equipment can also receive the cooperative processing requests of other vehicles at the same time, so that the equipment utilization rate is improved.
The third way, the evaluation result includes: the running cost required by executing the computing task is the ratio of the resources required by executing the computing task to the current available resources; when the target device is determined, the device with the lowest operation cost can be selected as the target device according to the operation cost of the other devices in the evaluation result for executing the current task. For example, if the running costs of the evaluation results received by the vehicle are 90%, 50%, and 20%, respectively, then the other devices with the running costs of 20% are selected as the target devices. For other devices with the running cost of 50% or 90%, because the cost of the resources required by the computing task occupying the devices is high, when the devices execute other computing tasks with less required resources, the devices can execute the other computing tasks while executing the computing tasks with less required resources, and further the devices can realize cooperative processing with more vehicles.
The fourth way, the evaluation result includes: a communication coverage area; then, when determining the target device, the device closest to the communication range coverage center of the other device may be selected as the target device according to the communication coverage range of the other device in the evaluation result.
The fifth mode comprises the evaluation results; including at least two of: current available resources, communicable time duration with the vehicle, operational costs required to perform computational tasks, and communication coverage; selecting the target device from other devices according to the evaluation result, comprising: according to various parameters in the evaluation results of other equipment, the priorities of the other equipment are obtained through weighted summation calculation; and selecting the device with the highest priority from other devices as the target device.
Specifically, when the vehicle selects the target device, at least two evaluation result indexes in the first to fourth modes may be selected, that is, at least two indexes are selected from the current available resource, the communicable time length with the vehicle, the operation cost required for executing the calculation task, and the communication coverage range index. And according to each parameter in the evaluation result, for example, a respective score table can be set for each index, and the score table includes the value range of each index and the score corresponding to each value range, so as to determine the score of each index in the evaluation result. Thereafter, a weighting coefficient may be set for each index, and for example, when four indices are selected, the weighting coefficient of the currently available resource may be set to 0.3, the weighting coefficient of the communicable time period with the vehicle may be set to 0.2, the weighting coefficient of the running cost required for performing the calculation task may be set to 0.4, and the weighting coefficient of the communication coverage may be set to 0.1. And obtaining the priority sequence of other equipment through weighted summation calculation, and selecting the equipment with the highest priority as target equipment.
In this embodiment, multiple ways of selecting target devices are provided, and when selecting a target device, one index may be considered singly to accelerate the speed of the cooperative processing between devices. And multiple indexes can be considered simultaneously, so that the cooperative processing between the devices is more stable, and the phenomenon of interruption of the cooperative processing is reduced.
Fig. 4 is a schematic flowchart of a second cooperative processing method according to an embodiment of the present application. As shown in fig. 4, the method comprises the steps of:
s201, storing the calculation task to a first container, and acquiring resources required by the calculation task.
For example, the principle of this step may refer to step S101 in the embodiment shown in fig. 2, and is not described here again.
S202, broadcasting corresponding demand information according to resources required by the calculation task.
In one possible scenario, demand information is broadcast, the demand information including resources required for the computing task; alternatively, the first and second electrodes may be,
according to the resources required by the calculation tasks and preset redundant resources, the resources required by the cooperative processing are obtained through summation calculation; and broadcasting requirement information, wherein the requirement information comprises resources required by the cooperative processing.
For example, when the demand information corresponding to the computing task is broadcast, the demand information may directly include the resource corresponding to the current computing task. Or, when the demand information is broadcast, the resource required by the cooperative processing included in the demand information may be the sum of the resource corresponding to the computation task and the preset redundant resource. For example, when the memory resource corresponding to the computing task is 10MB and the preset redundant resource is 2MB, the memory resource in the resource required for the processing of xuerong in the demand information sent at this time is 12 MB.
S203, receiving the evaluation result sent by the other equipment, and obtaining the distance between the other equipment and the vehicle according to the position information in the evaluation result continuously sent by the other equipment, wherein the evaluation result comprises the position information of the other equipment when the evaluation result is sent.
Illustratively, the evaluation result continuously sent by the other device also includes the position information of the other device, and then the distance between the vehicle and the other device is determined according to the position information of the other device and the position information of the vehicle.
S204, screening other devices according to a preset strategy, wherein the strategy comprises that if the other devices are first devices, the other devices are reserved, and otherwise, the other devices are filtered; wherein the duration of the first device located within the predetermined distance of the vehicle vicinity satisfies a preset threshold.
Illustratively, according to the continuous distance between the vehicle and other devices acquired in the above step, when the continuous distance between the vehicle and other devices is within a preset distance of the vehicle and the duration within the preset distance meets a preset threshold, the other devices are confirmed to be reserved, and the other devices which do not meet the above condition are screened out.
S205, selecting the target equipment from other equipment according to the evaluation result, wherein the evaluation result is sent after the other equipment determines the resource required by the self demand information.
S206, sending a cooperation request to the target device, wherein the cooperation request comprises the service downloading address of the first container, so that the target device obtains the mirror image container of the first container from the service downloading address, and executes a calculation task based on the mirror image container to obtain a calculation result.
And S207, receiving a calculation result returned by the target device.
For example, the principle of steps S205 to S207 can refer to steps S103 to S105 in the embodiment shown in fig. 2, and the details are not repeated here.
In the implementation of the application, the evaluation result is continuously transmitted by the other device, and the evaluation result includes the position information of the other device when the evaluation result is transmitted. Before confirming the target device, the other devices may be screened according to the transmitted location information in the evaluation result. The method screens out the vehicles which are within the preset distance near the vehicles and keep the preset time length to meet the preset threshold value, so that the situation that when other equipment only sends an evaluation result once, other equipment does not run according to the planned route in the running process is avoided, the calculated communicable time length and the obtained coverable range are inaccurate, further, the determined target equipment is inaccurate, the cooperative processing between the vehicles and other equipment is possibly interrupted, and the calculation result of a calculation task cannot be obtained. In addition, the broadcast demand information may include resources required by the computation task, and may also include a sum of the required resources and preset redundant resources, thereby ensuring that the broadcast resource information can sufficiently meet the resource consumption of the computation task.
Fig. 5 is a schematic flowchart of a third cooperative processing method according to an embodiment of the present application. As shown in fig. 5, the method comprises the steps of:
s301, storing the calculation task to a first container, splitting the calculation task to obtain a plurality of sub-calculation tasks, and respectively obtaining resources required by the plurality of sub-calculation tasks.
For example, when performing the cooperative processing, a single computation task may be split, and then multiple sub-tasks corresponding to the current computation task are obtained, and resources required by the current sub-tasks are obtained respectively.
S302, broadcasting requirement information corresponding to the plurality of sub-computing tasks, wherein each requirement information comprises resources required by the corresponding sub-computing task.
For example, when the resources required by each subtask are confirmed, the resources required by each subtask may be broadcast to other devices around the vehicle as the requirement information corresponding to each subtask.
And S303, receiving the evaluation result sent by other equipment, and selecting the target equipment from the other equipment according to the evaluation result, wherein the evaluation result is sent after the other equipment determines the resource required by the requirement information.
S304, sending a cooperation request to the target device, wherein the cooperation request comprises the service download address of the first container, so that the target device acquires the mirror image container of the first container from the service download address, and executes a calculation task based on the mirror image container to obtain a calculation result.
For example, the principle of steps S303 to S304 can refer to steps S103 to S104 in the embodiment shown in fig. 2, and the details are not repeated here.
S305, receiving a calculation result returned by the target device.
And S306, analyzing and obtaining the calculation result of the calculation task according to the calculation result of the sub-calculation task returned by the target equipment.
For example, in the above process, one or more devices may be included, each target device executes at least one sub-calculation task, and after the vehicle receives the calculation result returned by the target device, the calculation of the sub-task returned by each target device is recorded and analyzed, so as to obtain the calculation result corresponding to the calculation task. Fig. 6 is a schematic diagram of a second application scenario provided in the embodiment of the present application. In the figure, the vehicle 2 selects the roadside apparatus 1, the roadside apparatus 2, and the vehicle 1 as target apparatuses, respectively. The roadside device 1 is configured to execute the sub-computation task 1 and the sub-computation task 2, and return the corresponding sub-computation result 1 and the corresponding sub-computation result 2. And the road side equipment 2 is used for executing the sub-calculation task 3 and the sub-calculation task 4 and returning the corresponding sub-calculation result 3 and the corresponding sub-calculation result 4. The vehicle 1 is used for executing the sub-calculation tasks 5 and returning the corresponding sub-calculation results 5. Further, the vehicle 2 obtains the calculation result of the calculation task according to the sub-calculation results returned by the respective target devices.
In this embodiment, when performing the cooperative processing, the computation task may be split, and then the cooperative processing may be implemented by the computation tasks of the multiple target devices, so that the speed of the cooperative processing is increased.
Fig. 7 is a schematic flowchart of a fourth cooperative processing method provided in the embodiment of the present application, and the method is applied to a roadside device or a vehicle, and includes the following steps:
s401, receiving requirement information broadcasted by other vehicles, wherein the requirement information comprises resources required by computing tasks of other vehicles.
S402, detecting whether the vehicle has the resource required by the demand information according to the demand information broadcast by other vehicles.
And S403, if the evaluation result is obtained, transmitting the evaluation result to other vehicles.
Illustratively, the method provided by the embodiment is applied to road side equipment or a vehicle. After receiving the demand information broadcasted by other vehicles, the vehicles on the road or the roadside devices on two sides of the road judge whether the vehicles meet the resource requirements according to the resources required in the demand information broadcasted by other vehicles. If so, the evaluation results may be sent to other vehicles. Moreover, the calculation task processed by this embodiment may be a single calculation task, or may be one or more sub-calculation tasks after the single calculation task is split.
Optionally, the evaluation result includes currently available resources of the road side device or the vehicle. That is, after receiving the demand information broadcast by another vehicle, the roadside device or the vehicle reads its current available resource information (e.g., memory resources, processor resources, etc.), and sends it as an evaluation result to the roadside device or the vehicle.
Optionally, the evaluation result includes a communicable time length with another vehicle, and at this time, the communicable time length with the other vehicle is determined according to the position information of the roadside device, the path information of the other vehicle, and the communication coverage of the roadside device; or, the communicable time period with the other vehicle is determined in accordance with the route information of the vehicle, the route information of the other vehicle, and the communication coverage of the vehicle.
Specifically, the evaluation result may include a communicable time period with another vehicle. When the embodiment is executed by the roadside device, after the roadside device meets the requirement information broadcasted by other vehicles, the roadside device determines the communication time length of the roadside device and other vehicles according to the position information of the roadside device, the path information broadcasted by other vehicles and the communication coverage of the roadside device, and returns the communication time length as an evaluation result to other vehicles. When the embodiment is executed by the vehicle, after the vehicle meets the requirement information broadcasted by other vehicles, the vehicle can determine the communicable time length between the vehicle and other vehicles according to the own path information, the path information broadcasted by other vehicles and the communication coverage range of the vehicle, and return the communicable time length to other vehicles as an evaluation result.
Optionally, the evaluation result may include an operation cost required for executing the calculation task, and a ratio of the resource required for executing the calculation task to the current available resource of the roadside device or the vehicle is calculated to obtain the operation cost required for executing the calculation task. Specifically, after the roadside device or other vehicles meet the requirement information broadcast by other vehicles, the ratio of the resources required by the calculation task to the available resources of the vehicle is calculated according to the acquired current available resources of the vehicle, and then the running cost of the vehicle is obtained and returned to other vehicles as an evaluation result.
Optionally, the evaluation result includes at least two of: current available resources, communicable time duration with the vehicle, operational costs required to perform computational tasks, and communication coverage; wherein the running cost is a ratio of resources required to execute the computing task to currently available resources.
Optionally, the roadside device or the vehicle may continuously send the evaluation result to the other vehicle, and the evaluation result includes the location information of the roadside device or the current location information of the vehicle, so that the other vehicle may select the target device according to the location information that is continuously reported. In one possible case, when the time for the roadside apparatus or the vehicle to continuously transmit the evaluation result satisfies a certain preset time, if the cooperation request information transmitted by the other vehicle has not been received, the transmission of the evaluation result is stopped.
S404, if a cooperation request sent by other vehicles is received, acquiring a mirror image container of a first container according to the service downloading address in the cooperation request, executing a calculation task based on the mirror image container, and acquiring a calculation result, wherein the first container is used for storing the calculation task.
And S405, transmitting the calculation result to other vehicles.
For example, if the vehicle or the roadside device receives the cooperation request sent by the other device, it indicates that the vehicle or the roadside device is selected as the target device by the other device. Then, at this time, the vehicle or the roadside device may obtain the mirror image container of the first container corresponding to the calculation task according to the service download address in the cooperation request, and execute the calculation task in the mirror image choriocarcinoma, thereby obtaining the calculation result corresponding to the calculation task.
Specifically, each of the roadside devices or the vehicles includes a control scheduling center and a running center, where the control scheduling center is configured to download the image container of the first container corresponding to the computation task according to the service download address in the cooperation request, and then send the downloaded image container to the running center, so that the running center runs the image container, and further obtains the computation result corresponding to the computation task. And after the operation center acquires the calculation result, the operation center can send the calculation result to other vehicles through the control scheduling center.
The cooperative processing method in the present embodiment is applied to a vehicle or roadside apparatus. After the vehicle or the roadside device receives the demand information of the other vehicle, if the resource information in the demand information is satisfied, the evaluation result may be sent to the other vehicle, so that the other vehicle may determine the target vehicle according to the evaluation result. Specifically, the evaluation result may include the communicable time period, so that the other vehicle may compare the communicable time period with the time period required for performing the calculation task, thereby ensuring that the cooperative processing is not interrupted due to the insufficient communicable time period. Alternatively, the available resources may be included in the evaluation result so that other vehicles may secure the resources that the vehicle or roadside devices can cooperatively process. Alternatively, the available resources may be included in the evaluation result so that other vehicles may secure the resources that the vehicle or roadside devices can cooperatively process. Or, the evaluation result may include the communication coverage of the vehicle or the roadside device, and then the other vehicle may select the vehicle or the roadside device with better communication quality (i.e., closer to the center of the communication coverage) according to the communication coverage. Or the evaluation result may include the operation cost of the vehicle or the roadside device, and then the other vehicle may select the vehicle or the roadside device with lower operation cost according to the received operation cost, so that the vehicle or the roadside device with higher operation cost may serve more other vehicles. Or at least two items can be selected from the indexes in the evaluation result, so that the target equipment selected by other vehicles is more accurate.
Fig. 8 is an interaction diagram of a cooperative processing method provided in an embodiment of the present application, and as shown in fig. 8, the processing method includes the following steps:
s501, storing the calculation task to a first container, and acquiring resources required by the calculation task.
And S502, broadcasting corresponding demand information according to resources required by the calculation task.
And S503, receiving demand information broadcasted by other vehicles, wherein the demand information comprises resources required by the calculation tasks of the other vehicles.
S504, whether the vehicle has the resource required by the demand information is detected according to the demand information broadcast by other vehicles.
And S505, if the evaluation result is obtained, transmitting the evaluation result to other vehicles.
S506, receiving the evaluation result sent by the other equipment, and selecting the target equipment from the other equipment according to the evaluation result, wherein the evaluation result is sent after the other equipment determines the resource required by the requirement information.
And S507, sending a cooperation request to the target device, wherein the cooperation request comprises a service download address of the first container, so that the target device acquires a mirror image container of the first container from the service download address, and executes a calculation task based on the mirror image container to obtain a calculation result.
And S508, if a cooperation request sent by other vehicles is received, acquiring a mirror image container of a first container according to the service download address in the cooperation request, executing a calculation task based on the mirror image container, and acquiring a calculation result, wherein the first container is used for storing the calculation task.
And S509, transmitting the calculation result to other vehicles.
And S510, receiving a calculation result returned by the target device.
For an exemplary purpose, the specific principle of the present embodiment may refer to the above embodiments, which are not described herein again.
Fig. 9 is a schematic structural diagram of a cooperative processing apparatus according to an embodiment of the present application, and as shown in fig. 9, the apparatus includes:
the first obtaining unit 61 is configured to store the computing task in the first container, and obtain resources required by the computing task.
And a broadcasting unit 62, configured to broadcast corresponding requirement information according to the resource required by the computing task.
And the first receiving unit 63 is configured to receive an evaluation result sent by another device, and select a target device from the other devices according to the evaluation result, where the evaluation result is sent after the other device determines that the resource has the requirement of the demand information.
The first sending unit 64 is configured to send a cooperation request to the target device, where the cooperation request includes a service download address of the first container, so that the target device obtains a mirror image container of the first container from the service download address, and performs a calculation task based on the mirror image container to obtain a calculation result.
And a second receiving unit 65, configured to receive a calculation result returned by the target device.
The apparatus provided in this embodiment is used to implement the technical solution provided by the above method, and the implementation principle and the technical effect are similar and will not be described again.
Fig. 10 is a schematic structural diagram of a second co-processing apparatus according to an embodiment of the present application, where on the basis of the apparatus in fig. 9, an evaluation result includes currently available resources of other devices; the first receiving unit 63 is specifically configured to:
according to the evaluation result, counting the current available resources of other equipment;
and selecting the device with the most available resources from other devices as the target device.
In one possible implementation, the evaluation result includes at least two of: current available resources, communicable time duration with the vehicle, operational costs required to perform computational tasks, and communication coverage; the first receiving unit 63 is specifically configured to:
according to various parameters in the evaluation results of other equipment, the priorities of the other equipment are obtained through weighted summation calculation; the running cost is the ratio of the resources required for executing the calculation task to the current available resources;
and selecting the device with the highest priority from other devices as the target device.
In one possible implementation manner, the evaluation result is continuously transmitted by the other device, and the evaluation result comprises the position information of the other device when the evaluation result is transmitted; before selecting the target device from other devices according to the evaluation result, the method further comprises the following steps:
and a second obtaining unit 66 configured to obtain the distance between the other device and the vehicle according to the position information in the evaluation result continuously transmitted by the other device before the first receiving unit 63 selects the target device from the other devices according to the evaluation result.
A screening unit 67, configured to screen other devices according to a predetermined policy, where the policy includes that if the other devices are first devices, the other devices are retained, and otherwise, the other devices are filtered; wherein the duration of the first device located within the predetermined distance of the vehicle vicinity satisfies a preset threshold.
In one possible implementation, the collaboration request further includes a length of time required to perform the computing task.
In one possible implementation, the calculation result includes a calculation result of a sub-calculation task corresponding to the calculation task; the first obtaining unit 61 is further specifically configured to split the computation task, obtain a plurality of sub-computation tasks, and obtain resources required by the plurality of sub-computation tasks, respectively.
The broadcasting unit 62 is further specifically configured to broadcast requirement information corresponding to a plurality of sub-computing tasks, where each requirement information includes resources required by the corresponding sub-computing task.
The device, still include:
and the integrating unit 68 is configured to, after the second receiving unit 65 receives the calculation result returned by the target device, analyze the calculation result of the calculation task according to the calculation result of the sub-calculation task returned by the target device.
In a possible implementation, the broadcasting unit 62 is further specifically configured to:
broadcasting demand information, wherein the demand information comprises resources required by the computing task; alternatively, the first and second electrodes may be,
according to the resources required by the calculation tasks and preset redundant resources, the resources required by the cooperative processing are obtained through summation calculation; and broadcasting requirement information, wherein the requirement information comprises resources required by the cooperative processing.
The apparatus provided in this embodiment is used to implement the technical solution provided by the above method, and the implementation principle and the technical effect are similar and will not be described again.
Fig. 11 is a schematic structural diagram of a third cooperative processing apparatus according to an embodiment of the present application. As shown in fig. 11, the apparatus includes:
a third receiving unit 71, configured to receive demand information broadcasted by other vehicles, where the demand information includes resources required for computing tasks of the other vehicles.
The detecting unit 72 is configured to detect whether the vehicle has the resource required by the demand information according to the demand information broadcast by the other vehicle.
And a second transmitting unit 73 for transmitting the evaluation result to another vehicle if the evaluation result is available.
And the calculating unit 74 is configured to, if a coordination request sent by another vehicle is received, obtain a mirror image container of a first container according to the service download address in the coordination request, execute a calculation task based on the mirror image container, and obtain a calculation result, where the first container is used for storing the calculation task.
And a third transmitting unit 75 for transmitting the calculation result to other vehicles.
The apparatus provided in this embodiment is used to implement the technical solution provided by the above method, and the implementation principle and the technical effect are similar and will not be described again.
Fig. 12 is a schematic structural diagram of a fourth cooperative processing apparatus provided in the embodiment of the present application, where on the basis of the structure of the apparatus shown in fig. 11, an evaluation result includes currently available resources of road side devices or vehicles.
In one possible implementation, the evaluation result includes a communicable time period with the other vehicle;
the device still includes:
a first determination unit 76 for determining a communicable time period with the other vehicle in accordance with the position information of the roadside apparatus, the route information of the other vehicle, and the communication coverage of the roadside apparatus before the second transmission unit 73 transmits the evaluation result to the other vehicle; alternatively, the first and second electrodes may be,
and determining the communicable time length with other vehicles according to the path information of the vehicle, the path information of other vehicles and the communication coverage range of the vehicle.
In one possible implementation, the evaluation result includes an operating cost required to perform the computing task.
The device still includes:
a second determining unit 77, configured to calculate a ratio of the resource required for performing the calculation task to the currently available resource of the roadside device or the vehicle before the second transmitting unit 73 transmits the evaluation result to the other vehicle, and obtain an operation cost required for performing the calculation task.
In one possible implementation, the evaluation result includes at least two of: current available resources, communicable time duration with the vehicle, operational costs required to perform computational tasks, and communication coverage; wherein the running cost is a ratio of resources required to execute the computing task to currently available resources.
In a possible implementation manner, the third sending unit 75 is specifically configured to include:
and continuously transmitting the evaluation result to other vehicles, wherein the evaluation result comprises the position information of the road side equipment or the current position information of the vehicle.
The apparatus provided in this embodiment is used to implement the technical solution provided by the above method, and the implementation principle and the technical effect are similar and will not be described again.
The application provides an electronic device, including: a memory, a processor;
a memory; a memory for storing processor-executable instructions;
wherein the processor is configured to execute the method according to any one of fig. 2-6 according to the executable instructions.
The application provides an electronic device, including: a memory, a processor;
a memory; a memory for storing processor-executable instructions;
wherein the processor is configured to execute the method of fig. 7 according to the executable instructions.
Fig. 13 is a schematic structural diagram of an electronic device provided in an embodiment of the present application, and as shown in fig. 13, the electronic device includes:
a processor (processor) 291, the electronic device further including a memory (memory) 292; a Communication Interface 293 and bus 294 may also be included. The processor 291, the memory 292, and the communication interface 293 may communicate with each other via the bus 294. Communication interface 293 may be used for the transmission of information. Processor 291 may call logic instructions in memory 294 to perform the methods of the embodiments described above.
Further, the logic instructions in the memory 292 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product.
The memory 292 is a computer-readable storage medium for storing software programs, computer-executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present application. The processor 291 executes the functional application and data processing by executing the software program, instructions and modules stored in the memory 292, so as to implement the method in the above method embodiments.
The memory 292 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, the memory 292 may include a high speed random access memory and may also include a non-volatile memory.
The present application provides a computer-readable storage medium having stored thereon computer-executable instructions for implementing the method of any of fig. 2-6 when executed by a processor.
The present application provides a computer-readable storage medium having stored thereon computer-executable instructions for implementing the method of fig. 7 when executed by a processor.
A computer program product comprising a computer program which, when executed by a processor, implements the method of any of figures 2-6.
A computer program product comprising a computer program which, when executed by a processor, carries out the method of claim 7.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (30)

1. A cooperative processing method, characterized by being applied to a vehicle, the method comprising:
storing a computing task to a first container, and acquiring resources required by the computing task;
broadcasting corresponding demand information according to the resources required by the computing task;
receiving an evaluation result sent by other equipment, and selecting target equipment from the other equipment according to the evaluation result, wherein the evaluation result is sent after the other equipment determines that the other equipment has the resources required by the demand information;
sending a cooperation request to the target device, wherein the cooperation request comprises a service download address of the first container, so that the target device obtains a mirror image container of the first container from the service download address, and executes the calculation task based on the mirror image container to obtain a calculation result;
and receiving a calculation result returned by the target equipment.
2. The method of claim 1, wherein the evaluation result comprises current available resources of the other device; the selecting the target device from the other devices according to the evaluation result includes:
counting the current available resources of the other equipment according to the evaluation result;
and selecting the device with the most available resources from the other devices as the target device.
3. The method of claim 1, wherein the evaluation result comprises at least two of: current available resources, a communicable time period with the vehicle, an operational cost required to perform the computing task, and a communication coverage; the selecting the target device from the other devices according to the evaluation result includes:
according to various parameters in the evaluation results of the other equipment, the priority of the other equipment is obtained through weighted summation calculation; wherein the running cost is a ratio of resources required for executing the computing task to the current available resources;
and selecting the device with the highest priority from the other devices as the target device.
4. The method according to claim 1, wherein the evaluation result is continuously transmitted by the other device, and the evaluation result comprises the position information of the other device at the time of transmission of the evaluation result; before the selecting the target device from the other devices according to the evaluation result, the method further includes:
obtaining the distance between the other equipment and the vehicle according to the position information in the evaluation result continuously sent by the other equipment;
screening the other equipment according to a preset strategy, wherein the strategy comprises that if the other equipment is first equipment, the other equipment is reserved, and otherwise, the other equipment is filtered; wherein the duration of the first device being located within the predetermined distance of the vehicle's vicinity satisfies a preset threshold.
5. The method of claim 1, wherein the collaboration request further includes a length of time required to perform the computing task.
6. The method of claim 1, wherein the computation results comprise computation results of sub-computation tasks corresponding to the computation tasks; the acquiring of the resources required by the computing task includes:
splitting the computing task to obtain a plurality of sub-computing tasks, and respectively obtaining resources required by the plurality of sub-computing tasks;
the broadcasting corresponding demand information according to the resources required by the computing task comprises:
broadcasting requirement information corresponding to the plurality of sub-computing tasks, wherein each requirement information comprises resources required by the corresponding sub-computing task;
after receiving the calculation result returned by the target device, the method further includes:
and analyzing to obtain the calculation result of the calculation task according to the calculation result of the sub-calculation task returned by the target equipment.
7. The method of claim 1, wherein broadcasting the corresponding demand information according to the resources required by the computing task comprises:
broadcasting demand information, wherein the demand information comprises resources required by the computing task; alternatively, the first and second electrodes may be,
according to the resources required by the computing task and preset redundant resources, the resources required by the cooperative processing are obtained through summation calculation; broadcasting demand information, wherein the demand information comprises resources required by the cooperative processing.
8. A cooperative processing method, characterized by being applied to a roadside apparatus or a vehicle, the method comprising:
receiving demand information broadcast by other vehicles, wherein the demand information comprises resources required by computing tasks of the other vehicles;
detecting whether the vehicle has the resource required by the demand information according to the demand information broadcast by other vehicles;
if yes, sending an evaluation result to other vehicles;
if a cooperative request sent by the other vehicle is received, acquiring a mirror image container of a first container according to a service download address in the cooperative request, executing the calculation task based on the mirror image container, and acquiring a calculation result, wherein the first container is used for storing the calculation task;
transmitting the calculation result to the other vehicle.
9. The method of claim 8, wherein the evaluation result includes currently available resources of the roadside device or vehicle.
10. The method according to claim 8, wherein the evaluation result includes a communicable time period with the other vehicle;
before the sending of the evaluation result to other vehicles, the method further comprises:
determining a communicable time length with the other vehicle according to the position information of the roadside device, the path information of the other vehicle and the communication coverage of the roadside device; alternatively, the first and second electrodes may be,
determining a communicable time period with the other vehicle in accordance with the path information of the vehicle, the path information of the other vehicle, and the communication coverage of the vehicle.
11. The method of claim 8, wherein the evaluation result comprises an operating cost required to perform the computational task;
before the sending of the evaluation result to other vehicles, the method further comprises:
and calculating the ratio of the resources required for executing the calculation task to the current available resources of the road side equipment or the vehicle, and obtaining the operation cost required for executing the calculation task.
12. The method of claim 8, wherein the evaluation result comprises at least two of: current available resources, a communicable time period with the vehicle, an operational cost required to perform the computing task, and a communication coverage; wherein the running cost is a ratio of resources required to execute the computing task to the currently available resources.
13. The method of claim 8, wherein the sending the assessment results to other vehicles comprises:
continuously transmitting an evaluation result including the position information of the roadside apparatus or the current position information of the vehicle to the other vehicle.
14. A cooperative processing apparatus, characterized by being applied to a vehicle, the apparatus comprising:
the system comprises a first acquisition unit, a second acquisition unit and a processing unit, wherein the first acquisition unit is used for storing a calculation task to a first container and acquiring resources required by the calculation task;
the broadcasting unit is used for broadcasting corresponding demand information according to the resources required by the computing task;
the first receiving unit is used for receiving an evaluation result sent by other equipment and selecting target equipment from the other equipment according to the evaluation result, wherein the evaluation result is sent after the other equipment determines that the other equipment has the resources required by the demand information;
a first sending unit, configured to send a cooperation request to the target device, where the cooperation request includes a service download address of the first container, so that the target device obtains a mirror image container of the first container from the service download address, and executes the calculation task based on the mirror image container to obtain a calculation result;
and the second receiving unit is used for receiving the calculation result returned by the target equipment.
15. The apparatus of claim 14, wherein the evaluation result comprises currently available resources of the other device; the first receiving unit is specifically configured to:
counting the current available resources of the other equipment according to the evaluation result;
and selecting the device with the most available resources from the other devices as the target device.
16. The apparatus of claim 14, wherein the evaluation result comprises at least two of: current available resources, a communicable time period with the vehicle, an operational cost required to perform the computing task, and a communication coverage; the first receiving unit is specifically configured to:
according to various parameters in the evaluation results of the other equipment, the priority of the other equipment is obtained through weighted summation calculation; wherein the running cost is a ratio of resources required for executing the computing task to the current available resources;
and selecting the device with the highest priority from the other devices as the target device.
17. The apparatus according to claim 14, wherein the evaluation result is continuously transmitted by the other device, and the evaluation result includes location information of the other device at the time of transmission of the evaluation result; before the selecting the target device from the other devices according to the evaluation result, the method further includes:
a second obtaining unit, configured to obtain, before the first receiving unit selects a target device from the other devices according to the evaluation result, a distance between the other device and the vehicle according to location information in the evaluation result that is continuously sent by the other device;
the screening unit is used for screening the other equipment according to a preset strategy, wherein the strategy comprises that if the other equipment is first equipment, the other equipment is reserved, and otherwise, the other equipment is filtered; wherein the duration of the first device being located within the predetermined distance of the vehicle's vicinity satisfies a preset threshold.
18. The apparatus of claim 14, wherein the collaboration request further comprises a length of time required to perform the computing task.
19. The apparatus according to claim 14, wherein the computation result comprises a computation result of a sub-computation task corresponding to the computation task; the first acquisition unit includes:
the first acquisition module is used for splitting the computing task to obtain a plurality of sub-computing tasks and respectively acquiring resources required by the plurality of sub-computing tasks;
the broadcasting unit includes:
the broadcast module is used for broadcasting the demand information corresponding to the plurality of sub-computing tasks, and each demand information comprises resources required by the corresponding sub-computing task;
the device, still include:
and the integration unit is used for analyzing and obtaining the calculation result of the calculation task according to the calculation result of the sub-calculation task returned by the target equipment after the second receiving unit receives the calculation result returned by the target equipment.
20. The apparatus according to claim 14, wherein the broadcasting unit is specifically configured to:
broadcasting demand information, wherein the demand information comprises resources required by the computing task; alternatively, the first and second electrodes may be,
according to the resources required by the computing task and preset redundant resources, the resources required by the cooperative processing are obtained through summation calculation; broadcasting demand information, wherein the demand information comprises resources required by the cooperative processing.
21. A cooperative processing apparatus, characterized by being applied to a roadside device or a vehicle, the apparatus comprising:
a third receiving unit, configured to receive demand information broadcast by another vehicle, where the demand information includes resources required for a computing task of the another vehicle;
the detection unit is used for detecting whether the detection unit has the resource required by the demand information according to the demand information broadcast by other vehicles;
a second transmitting unit, configured to transmit the evaluation result to another vehicle if the evaluation result is available;
the computing unit is used for acquiring a mirror image container of a first container according to a service downloading address in the cooperative request and executing the computing task based on the mirror image container to obtain a computing result if the cooperative request sent by the other vehicle is received, wherein the first container is used for storing the computing task;
a third transmitting unit configured to transmit the calculation result to the other vehicle.
22. The apparatus of claim 21, wherein the evaluation result comprises currently available resources of the roadside device or vehicle.
23. The apparatus according to claim 21, wherein the evaluation result includes a communicable time period with the other vehicle;
the device further comprises:
a first determination unit configured to determine a communicable time period with another vehicle according to the position information of the roadside apparatus, the route information of the another vehicle, and the communication coverage of the roadside apparatus before the second transmission unit transmits the evaluation result to the another vehicle; alternatively, the first and second electrodes may be,
determining a communicable time period with the other vehicle in accordance with the path information of the vehicle, the path information of the other vehicle, and the communication coverage of the vehicle.
24. The apparatus of claim 21, wherein the evaluation result comprises an operating cost required to perform the computing task;
the device further comprises:
and the second determining unit is used for calculating the ratio of the resources required for executing the calculation task to the current available resources of the road side equipment or the vehicle before the second sending unit sends the evaluation result to other vehicles, and obtaining the running cost required for executing the calculation task.
25. The apparatus of claim 21, wherein the evaluation result comprises at least two of: current available resources, a communicable time period with the vehicle, an operational cost required to perform the computing task, and a communication coverage; wherein the running cost is a ratio of resources required to execute the computing task to the currently available resources.
26. The apparatus of claim 21, wherein the third sending unit is specifically configured to include:
continuously transmitting an evaluation result including the position information of the roadside apparatus or the current position information of the vehicle to the other vehicle.
27. An electronic device, comprising: a memory, a processor;
a memory; a memory for storing the processor-executable instructions;
wherein the processor is configured to perform the method according to the executable instructions of any one of claims 1-7.
28. An electronic device, comprising: a memory, a processor;
a memory; a memory for storing the processor-executable instructions;
wherein the processor is configured to perform the method according to the executable instructions of any one of claims 8-13.
29. A computer-readable storage medium having computer-executable instructions stored thereon, which when executed by a processor, perform the method of any one of claims 1-7.
30. A computer-readable storage medium having computer-executable instructions stored thereon, which when executed by a processor, perform the method of any one of claims 8-13.
CN202110716277.4A 2021-06-28 2021-06-28 Cooperative processing method, cooperative processing device, electronic device, and storage medium Active CN113254219B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110716277.4A CN113254219B (en) 2021-06-28 2021-06-28 Cooperative processing method, cooperative processing device, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110716277.4A CN113254219B (en) 2021-06-28 2021-06-28 Cooperative processing method, cooperative processing device, electronic device, and storage medium

Publications (2)

Publication Number Publication Date
CN113254219A CN113254219A (en) 2021-08-13
CN113254219B true CN113254219B (en) 2021-10-15

Family

ID=77189832

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110716277.4A Active CN113254219B (en) 2021-06-28 2021-06-28 Cooperative processing method, cooperative processing device, electronic device, and storage medium

Country Status (1)

Country Link
CN (1) CN113254219B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114475630B (en) * 2022-01-19 2024-02-13 上汽通用五菱汽车股份有限公司 Vehicle control collaborative decision-making method and device, vehicle and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109815003A (en) * 2017-11-21 2019-05-28 中国移动通信有限公司研究院 Cooperated computing method, system, smart machine and medium between smart machine
CN111885155A (en) * 2020-07-22 2020-11-03 大连理工大学 Vehicle-mounted task collaborative migration method for vehicle networking resource fusion
CN111970318A (en) * 2020-05-18 2020-11-20 北京邮电大学 Vehicle and roadside unit cooperative task unloading method and device based on mobile edge calculation
CN112068548A (en) * 2020-08-07 2020-12-11 北京航空航天大学 Special scene-oriented unmanned vehicle path planning method in 5G environment
CN112512018A (en) * 2020-07-24 2021-03-16 北京航空航天大学 Method for dynamically unloading tasks among cooperative vehicles based on mobile edge calculation

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11928967B2 (en) * 2019-06-04 2024-03-12 Toyota Motor Engineering & Manufacturing North America, Inc. System and method of using a vehicle as a backup roadside unit (RSU)
CN110460635A (en) * 2019-07-04 2019-11-15 华南理工大学 One kind is towards unpiloted edge discharging method and device
CN112614366A (en) * 2020-12-11 2021-04-06 国汽(北京)智能网联汽车研究院有限公司 Automobile collaborative decision method and device, electronic equipment and computer storage medium
CN112714178B (en) * 2020-12-25 2023-05-12 北京信息科技大学 Task unloading method and device based on vehicle-mounted edge calculation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109815003A (en) * 2017-11-21 2019-05-28 中国移动通信有限公司研究院 Cooperated computing method, system, smart machine and medium between smart machine
CN111970318A (en) * 2020-05-18 2020-11-20 北京邮电大学 Vehicle and roadside unit cooperative task unloading method and device based on mobile edge calculation
CN111885155A (en) * 2020-07-22 2020-11-03 大连理工大学 Vehicle-mounted task collaborative migration method for vehicle networking resource fusion
CN112512018A (en) * 2020-07-24 2021-03-16 北京航空航天大学 Method for dynamically unloading tasks among cooperative vehicles based on mobile edge calculation
CN112068548A (en) * 2020-08-07 2020-12-11 北京航空航天大学 Special scene-oriented unmanned vehicle path planning method in 5G environment

Also Published As

Publication number Publication date
CN113254219A (en) 2021-08-13

Similar Documents

Publication Publication Date Title
Raza et al. A survey on vehicular edge computing: architecture, applications, technical issues, and future directions
CN109769207B (en) System and method for sharing computing power in dynamic networking of mobile equipment
CN110430079B (en) Vehicle-road cooperation system
EP3316553B1 (en) Method and apparatus for managing vehicle groups in internet of vehicles
EP3594811B1 (en) Managing computational tasks in vehicle context
CN112925657A (en) Vehicle road cloud cooperative processing system and method
CN109003467B (en) Method, device and system for preventing vehicle collision
He et al. Cooperative connected autonomous vehicles (CAV): research, applications and challenges
CN109213155B (en) Scheduling method and device for mutual avoidance of multiple robots and server
CN112249034B (en) Automobile brain system and vehicle driving control method
KR20200027446A (en) Method for predicting a quality of service for a communication between at least two moving communication partners, apparatus for performing steps of the method, vehicle, backend server and computer program
WO2020111133A1 (en) Traffic assistance system, server and method, in-vehicle device and operation method thereof, computer program, recording medium, computer, and semiconductor integrated circuit
CN109714422A (en) Computing resource sharing method, system and readable storage medium storing program for executing based on automatic Pilot
CN113965568A (en) Edge computing system for urban road C-V2X network
Zhou et al. Edge-facilitated augmented vision in vehicle-to-everything networks
CN112927543A (en) Vehicle-road cooperative automatic driving method and system and vehicle
CN111866941B (en) Network resource scheduling method and related equipment
CN111397626A (en) Path planning method, path planning device and electronic equipment
CN113254219B (en) Cooperative processing method, cooperative processing device, electronic device, and storage medium
CN112950041A (en) Shared vehicle scheduling method, device, storage medium and computer program product
Zhu et al. Chameleon: Latency and resolution aware task offloading for visual-based assisted driving
CN111615049A (en) Early warning method and device based on vehicle position information, storage medium and terminal
CN110784848B (en) Electric drive vehicle control method and device based on Internet of vehicles and cloud server
Katsaros et al. Evolution of vehicular communications within the context of 5g systems
CN111586636B (en) Automatic driving vehicle rapid communication method, equipment and storage medium based on mixed traffic flow state

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant