Vehicle computing power sharing method and device, electronic equipment and readable storage medium

By performing vehicle computing power sharing tasks in the docker container and closing the container after completion, the privacy data leakage and driving safety problems caused by vehicle computing power sharing are solved, data isolation and resource control are realized, and security and privacy protection are ensured.

CN119011233APending Publication Date: 2024-11-22CHONGQING CHANGAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411080114.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

The way of sharing vehicle computing power may lead to privacy data leakage or affect driving safety.

Method used

Docker containers are used to achieve safe isolation and resource control. By performing computing power sharing tasks in the container and closing the container after transmission is completed, data leakage and vehicle platform security is protected.

Benefits of technology

It effectively prevents data leakage during the shared computing power process, enhances data privacy and security protection, and ensures the driving safety of the vehicle.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119011233A_ABST
    Figure CN119011233A_ABST
Patent Text Reader

Abstract

The invention provides a vehicle computing power sharing method and device, electronic equipment and a readable storage medium, and relates to the technical field of Internet of Vehicles. The method comprises the following steps: starting a docker container in response to a computing power sharing request, starting a computing power sharing application client in the docker container to obtain a computing power sharing task and related data required for executing the task, and transmitting a result obtained by executing the task in the docker container to a computing power sharing application server, therefore, the computing power sharing application server can transmit the result to the computing power request vehicle. According to the vehicle computing power sharing method, the docker container is adopted to achieve safety isolation and resource control, running applications and transmitted data in the computing power sharing process are all in the docker container, vehicle data can be prevented from being illegally changed, the driving safety of the vehicle is guaranteed, data leakage used in the computing power sharing process can be avoided, and the safety of the vehicle is guaranteed. And data privacy security protection is enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle networking technology, and in particular to a vehicle computing power sharing method, device, electronic device and readable storage medium. Background Art

[0002] As functions such as smart cockpits and assisted driving become more and more popular, the number of applications and the complexity of functions in vehicle-side embedded platforms are also increasing. The scale of data that needs to be processed by the vehicle side is getting larger and larger, and the requirements for vehicle-side computing power are also getting higher and higher.

[0003] At present, in order to solve the computing power demand of the vehicle side, vehicles with idle computing power can be dispatched to assist other vehicles with computing power demand to complete computing power tasks, thus realizing vehicle computing power sharing. However, in some scenarios, this vehicle computing power sharing method may lead to privacy data leakage or affect driving safety. Summary of the invention

[0004] One of the purposes of the present invention is to provide a vehicle computing power sharing method, device, electronic device and storage medium to solve the problem that vehicle computing power sharing may lead to privacy leakage or affect driving safety.

[0005] In order to achieve the above object, the technical solution adopted by the present invention is as follows:

[0006] A vehicle computing power sharing method is applied to a computing power providing vehicle, the method comprising:

[0007] In response to a computing power sharing request from a computing power requesting vehicle, start a Docker container, and start a computing power sharing application client in the Docker container;

[0008] Obtaining a task and related data required to execute the task from a computing power sharing application server through the computing power sharing application client, wherein the task and related data are uploaded to the computing power sharing application server by the computing power requesting vehicle;

[0009] Executing the task in the container based on the relevant data to obtain an execution result;

[0010] The execution result is transmitted to the computing power sharing application server through the computing power sharing application client, and the docker container is closed after the transmission is completed. The computing power sharing application server is used to transmit the execution result to the computing power requesting vehicle.

[0011] Based on the above technical means, Docker containers are used to achieve security isolation and resource control, avoid the leakage of data used in the process of sharing computing power, and strengthen data privacy and security protection.

[0012] Next, start the docker container:

[0013] Obtaining system resource occupancy information of the vehicle provided by the computing power;

[0014] Determine the system resource margin of the computing power providing vehicle according to the system resource occupancy information;

[0015] The resource limitation parameters of the docker container are set according to the system resource margin, and the docker container is started according to the resource limitation parameters, wherein the resource limitation parameters include at least one of a central processing unit CPU parameter, a memory parameter and a process parameter.

[0016] Furthermore, before starting the Docker container, it also includes:

[0017] Acquire a vehicle state of the computing power providing vehicle, wherein the vehicle state includes at least one of a driving speed, a battery state, and a vehicle gear position;

[0018] Determining, according to the vehicle state, that the computing power providing vehicle can enter a computing power sharing mode;

[0019] Control the computing power to provide the vehicle with a computing power sharing mode.

[0020] Furthermore, the vehicle computing power sharing method also includes:

[0021] Monitoring the vehicle status of the computing power providing vehicle;

[0022] If it is determined according to the vehicle status that the computing power providing vehicle does not support the computing power sharing mode, the execution of the task is suspended until the computing power providing vehicle enters the computing power sharing mode, and then the execution of the task is continued.

[0023] Furthermore, the vehicle computing power sharing method further includes:

[0024] Monitoring the vehicle status of the computing power providing vehicle;

[0025] According to the vehicle status, the data transmission speed between the computing power sharing application client and the computing power sharing application server is controlled.

[0026] Further, according to the vehicle state, controlling the data transmission speed between the computing power sharing application client and the computing power sharing application server includes:

[0027] Determining that the computing power providing vehicle is in a preset first state according to the vehicle state, and improving the data transmission speed between the computing power sharing application client and the computing power sharing application server;

[0028] Alternatively, it is determined according to the vehicle state that the computing power providing vehicle is in a preset second state, and the data transmission speed between the computing power sharing application client and the computing power sharing application server is reduced.

[0029] Furthermore, the vehicle computing power sharing method also includes:

[0030] The platform health management module of the computing power providing vehicle monitors the running status of the computing power sharing application client. If any abnormality occurs during operation, the computing power sharing application client is restarted.

[0031] Furthermore, the vehicle computing power sharing method further includes:

[0032] Obtaining the computing power required by the computing power-providing vehicle;

[0033] Generate tasks to be processed according to the computing power requirements;

[0034] The tasks to be processed and the relevant data for executing the tasks to be processed are transmitted to the computing power sharing application server through the computing power sharing application client.

[0035] A vehicle computing power sharing device, applied to a computing power providing vehicle, comprises:

[0036] A container startup module, used to respond to a computing power sharing request for a computing power requesting vehicle, start a Docker container, and start a computing power sharing application client in the Docker container;

[0037] A data receiving module, used to obtain a task and related data required to execute the task from a computing power sharing application server through the computing power sharing application client, wherein the task and the related data are uploaded to the computing power sharing application server by the computing power requesting vehicle;

[0038] A task execution module, used to execute the task in the container based on the relevant data to obtain an execution result;

[0039] The data upload module is used to transmit the execution result to the computing power sharing application server through the computing power sharing application client, and close the docker container after the transmission is completed. The computing power sharing application server is used to transmit the execution result to the computing power requesting vehicle.

[0040] An electronic device comprises: a processor, and a memory communicatively connected to the processor;

[0041] The memory stores computer-executable instructions;

[0042] The processor executes the computer-executable instructions stored in the memory to implement the vehicle computing power sharing method as described in any one of the above items.

[0043] A computer-readable storage medium comprises: the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to implement the vehicle computing power sharing method as described in any one of the above when executed by a processor.

[0044] A computer program product includes a computer program, which, when executed by a processor, implements the vehicle computing power sharing method as described in any one of the above.

[0045] Beneficial effects of the present invention:

[0046] (1) The present invention places the vehicle's reception of computing power sharing-related data and execution process into a Docker container, which can achieve data security isolation and resource control, avoid leakage of data used in the computing power sharing process, and strengthen data privacy and security protection; (2) The present invention isolates external data in a container, closes the container after the computing power sharing is completed, and can prevent the computing power sharing application from modifying the data in the vehicle platform, thereby ensuring the driving safety of the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 A schematic diagram of an application scenario of a vehicle computing power sharing method provided by the present invention;

[0048] Figure 2 A schematic flow chart of a vehicle computing power sharing method provided for an exemplary embodiment of the present invention;

[0049] Figure 3 A schematic diagram of a process flow of a container startup method provided for an exemplary embodiment of the present invention;

[0050] Figure 4 A flowchart of a method for terminating computing power sharing provided by an exemplary embodiment of the present invention;

[0051] Figure 5 A schematic flow chart of another vehicle computing power sharing method provided for an exemplary embodiment of the present invention;

[0052] Figure 6 A schematic diagram of a computing power sharing system architecture provided for an exemplary embodiment of the present invention;

[0053] Figure 7 A flowchart of a computing power sharing method provided for an exemplary embodiment of the present invention;

[0054] Figure 8 A schematic diagram of the structure of a vehicle computing power sharing device provided for an exemplary embodiment of the present invention;

[0055] Fig. 9 A schematic structural diagram of an electronic device provided by an exemplary embodiment of the present invention.

[0056] Through the above drawings, clear embodiments of the present invention have been shown, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present invention in any way, but to illustrate the concept of the present invention for those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0057] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.

[0058] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0059] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same 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 invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0060] The terms "comprises", "includes" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, product or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, product or device. In the absence of further restrictions, it is not excluded that there are other identical or equivalent elements in the process, method, product or device including the elements. For example, if the words first, second, etc. are used to indicate names, they do not indicate any particular order.

[0061] Figure 1 A schematic diagram of an application scenario provided by the present invention. Figure 1As shown, vehicle 102 communicates with server 101 through the network. The data storage system can store the data that server 101 needs to process. The data storage system can be integrated on server 101, or it can be placed on the cloud or other network servers. Among them, server 101 can be a cloud server, which can be implemented with an independent server or a server cluster composed of multiple servers. Vehicle 102 can be a computing power request vehicle or a computing power providing vehicle. The computing power request vehicle can upload a computing power task to server 101 when it has computing power requirements. The computing power task can include data to be calculated and the corresponding algorithm. Server 101 can send the computing power task to the computing power providing vehicle, so that the computing power providing vehicle returns the calculation result to server 101 after completing the calculation of the corresponding data according to the algorithm, and server 101 then sends the calculation result to the computing power request vehicle to realize the sharing of vehicle computing power.

[0062] The application scenarios mentioned above are only some examples. Those skilled in the art can expand the application to specific business scenarios, and the embodiments of this application do not impose specific limitations on this. Figure 1 For application scenarios, refer to Figures 2 to 7 To describe a vehicle computing power sharing method according to an exemplary embodiment of the present invention.

[0063] Figure 2 FIG. 1 is a flow chart of a vehicle computing power sharing method provided by an exemplary embodiment of the present invention. Figure 2 As shown, the method may include:

[0064] Step S201, responding to a computing power sharing request from a computing power requesting vehicle, starting a docker container, and starting a computing power sharing application client in the docker container.

[0065] The vehicle computing power sharing method of this embodiment can be applied to computing power providing vehicles.

[0066] The computing power sharing request may be generated by a computing power sharing application server according to the computing power demand of the computing power requesting vehicle, and the computing power sharing application server may run on the server 101. The computing power sharing application may be an application program for scheduling computing power of different vehicles.

[0067] Specifically, the computing power requesting vehicle can report the computing power demand through the computing power sharing application client, and the computing power sharing application server can generate a corresponding computing power sharing request based on the computing power demand. The computing power sharing request can be used to apply to other vehicles for the use of the vehicle's computing power. After receiving the computing power sharing request, the computing power providing vehicle can start the docker container through the vehicle system and run the computing power sharing application client in the docker container. The docker container is an open source application container engine, which is equivalent to a relatively independent virtual space on the vehicle operating system. Applications running in this container cannot access or modify files outside the container.

[0068] Step S202, obtaining the task and related data required to execute the task from the computing power sharing application server through the computing power sharing application client.

[0069] Among them, the tasks and related data can be uploaded by the computing power requesting vehicle to the computing power sharing application server.

[0070] Specifically, after the computing power providing vehicle runs the computing power sharing application client in the container, a communication connection can be established between the computing power sharing application client and the computing power sharing application server. The computing power sharing application client and the computing power sharing application server can transmit data through the communication connection, so that the computing power sharing application client can obtain computing power tasks and related data required to execute tasks from the computing power sharing application server.

[0071] Step S203: Execute the task in the container based on the relevant data to obtain an execution result.

[0072] Specifically, the tasks obtained by the computing power providing vehicle from the computing power sharing application server may include the data to be calculated and the algorithm required for the calculation. The computing power providing vehicle can complete the data calculation through the algorithm in the started docker container to obtain the calculation result. The computing power sharing application client running in the docker container will not modify the data outside the docker container, nor will it upload the data outside the docker container to the computing power sharing application server and other cloud servers, so as to ensure the isolation of the computing power providing vehicle's data from external data.

[0073] Step S204: The computing power sharing application client transmits the execution result to the computing power sharing application server, and closes the docker container after the transmission is completed. The computing power sharing application server is used to transmit the execution result to the computing power requesting vehicle.

[0074] Specifically, the computing power providing vehicle can upload the execution result in the docker container to the computing power sharing application server through the computing power sharing application client. After the upload is completed, all data in the docker container can be deleted and the docker container can be closed. After receiving the execution result uploaded by the computing power providing vehicle through the computing power sharing application client, the computing power sharing application server can send the execution result to the computing power requesting vehicle.

[0075] In the above embodiment, the computing power providing vehicle can start a docker container in response to a computing power sharing request, and start a computing power sharing application client in the docker container to obtain a computing power sharing task and the relevant data required to execute the task, and then transmit the result obtained by executing the task in the docker container to the computing power sharing application server, so that the computing power sharing application server can transmit the result to the computing power requesting vehicle. The vehicle computing power sharing method of the present invention uses a docker container to achieve security isolation and resource control. The applications running, the occupied system resources, and all the transmitted data in the process of sharing computing power are in the docker container, which can prevent the computing power sharing application from modifying the data in the vehicle platform, ensure the driving safety of the vehicle, and avoid the leakage of data used in the process of sharing computing power, thereby strengthening data privacy and security protection.

[0076] In one embodiment, Figure 3 As shown, starting the Docker container can include:

[0077] Step S301, obtaining the system resource occupancy information of the computing power providing vehicle.

[0078] The system resource occupancy information may include information such as the CPU occupancy and available bandwidth of the vehicle-mounted system.

[0079] Step S302, determining the system resource margin of the computing power provided to the vehicle based on the system resource occupancy information.

[0080] Specifically, based on a preset algorithm, the resource margin that the vehicle can provide for sharing computing power can be determined according to the system resource occupancy information. For example, when the CPU occupancy rate of the application running on the vehicle system itself is less than a first threshold, a first value of CPU resources can be provided.

[0081] Step S303, setting resource limit parameters of the Docker container according to the system resource margin, and starting the Docker container according to the resource limit parameters.

[0082] The resource limitation parameters include at least one of a central processing unit (CPU) parameter, a memory parameter, and a process parameter.

[0083] Specifically, the computing power provider can limit the available resources of the docker container according to the system resource margin of the vehicle system, and start the docker container according to the set container parameters. For example, the maximum memory that can be used by the docker container or the maximum allowed CPU occupancy rate can be set.

[0084] In the above embodiment, by obtaining the system resource occupancy information of the vehicle, the relevant parameters of the container can be set to limit the container's occupation and consumption of vehicle resources, thereby ensuring that the resources occupied by the shared computing power function are within a preset range and preventing the shared computing power process from occupying too many resources and affecting the safe driving of the car.

[0085] In one embodiment, before starting the docker container, the vehicle computing power sharing method may further include:

[0086] The vehicle status of the computing power providing vehicle is obtained, and according to the vehicle status, it is determined that the computing power providing vehicle can enter the computing power sharing mode, and the computing power providing vehicle is controlled to enter the computing power sharing mode.

[0087] The vehicle status includes at least one of a driving speed, a battery status, and a vehicle gear. In the computing power sharing mode, the computing power providing vehicle can start a docker container to realize the computing power sharing function.

[0088] Specifically, the status of the vehicle system can be monitored through the platform status management module PSM to obtain vehicle status information such as the current driving speed and battery status of the vehicle, and can determine whether the computing power providing vehicle can currently enter the computing power sharing mode according to the vehicle status. If it can enter the computing power sharing mode, the computing power providing vehicle can be controlled to enter the computing power sharing mode and start the docker container. For example, when the current driving speed of the computing power providing vehicle is greater than or equal to 90km / h, the vehicle cannot enter the computing power sharing mode; when the driving speed is less than 90km / h, it can enter the computing power sharing mode.

[0089] In one embodiment, Figure 4 As shown, the vehicle computing power sharing method may also include:

[0090] Step S401, monitoring computing power provides vehicle status of the vehicle.

[0091] Step S402: If it is determined based on the vehicle status that the computing power providing vehicle does not support the computing power sharing mode, the task execution is suspended until the computing power providing vehicle enters the computing power sharing mode, and then the task execution is continued.

[0092] Specifically, after the computing power providing vehicle enters the computing power mode, the vehicle status of the computing power providing vehicle can be monitored in real time. If it is monitored that the vehicle status no longer meets the conditions for entering the computing power sharing mode, the computing power sharing application client in the docker container can save the calculated data in the container and temporarily stop executing the task. After the vehicle status meets the conditions of the computing power sharing mode again, the task can be continued according to the data stored in the container.

[0093] For example, the computing power providing vehicle enters the computing power sharing mode when the driving speed is less than 90km / h. However, before the computing power task is completed, the driving speed of the vehicle increases to more than 90km / h. In this case, the data in the Docker container can be kept and the task execution can be temporarily stopped. The task can be continued in the container after the driving speed drops back below 90km / h.

[0094] In some possible implementations, the data transmission speed between the computing power sharing application client and the computing power sharing application server can also be controlled according to the vehicle status.

[0095] Among them, the data transmission speed can be the speed at which the computing power sharing application client downloads the tasks to be executed and related data from the computing power sharing application server, or it can be the speed at which the computing power sharing application client uploads the execution results to the computing power sharing application server.

[0096] Exemplarily, it is possible to determine that the computing power providing vehicle is in a preset first state based on the vehicle state, and increase the data transmission speed between the computing power sharing application client and the computing power sharing application server. Alternatively, it is possible to determine that the computing power providing vehicle is in a preset second state based on the vehicle state, and reduce the data transmission speed between the computing power sharing application client and the computing power sharing application server. The first state may be a state in which the computing power providing vehicle system resource occupancy is low, and the second state may be a state in which the computing power providing vehicle system resource occupancy is high. For example, when the computing power providing vehicle is not in a driving state, the data transmission speed between the docker container and the computing power sharing application server can be appropriately increased; when the computing power providing vehicle is in a high-speed driving state, the data transmission speed between the docker container and the computing power sharing application server can be appropriately reduced.

[0097] In the above embodiment, by monitoring the vehicle status of the computing power providing vehicle, it is possible to control whether the computing power providing vehicle maintains the computing power sharing mode, and it is also possible to control the data transmission speed between the computing power providing vehicle and the cloud server, thereby ensuring that the vehicle resources are fully utilized on the basis of ensuring safety.

[0098] In one embodiment, the vehicle computing power sharing method may further include:

[0099] The platform health management module of the computing power providing vehicle monitors the operation status of the computing power sharing application client. If there is any abnormality in the operation, restart the computing power sharing application client.

[0100] Among them, the platform health management module PHM can monitor the status of applications running in the vehicle system and applications running in the docker container, and determine whether the application is running normally through the application report status point.

[0101] Specifically, the platform health management module PHM can be used to monitor the applications in the vehicle system and running in the docker container in real time. If an application is found to be running abnormally, PHM can restart the abnormal application. If the restart is unsuccessful, the platform status management module PSM can be notified to immediately exit the computing power sharing mode.

[0102] In one embodiment, Figure 5 As shown, the vehicle computing power sharing method may also include:

[0103] Step S501, obtaining computing power to provide computing power requirements of the vehicle.

[0104] Step S502, generating tasks to be processed according to computing power requirements.

[0105] Step S503: The tasks to be processed and the data related to the execution of the tasks to be processed are transmitted to the computing power sharing application server through the computing power sharing application client.

[0106] Specifically, in addition to providing computing power to other vehicles, the computing power providing vehicle can also be the party that requests computing power sharing from other vehicles. The computing power providing vehicle can obtain the computing power requirements of its own on-board system, such as data computing tasks and the algorithms used for calculations, and can upload the data computing tasks and algorithms to the computing power sharing application server through the computing power sharing application client, so that the computing power sharing application server can send computing power sharing requests to other vehicles to perform tasks.

[0107] Figure 6 A schematic diagram of a computing power sharing system architecture provided by an exemplary embodiment of the present invention. Figure 6 As shown, the system may include a PSM module and a PHM module. The PSM module is a platform status management module, which can be used to receive computing power sharing requests, monitor the vehicle computer status, and switch computing power sharing modes. The PHM module is a platform health management module, which can be used to monitor the running status of applications in the vehicle computer and running in the docker container, and determine whether the application is running normally through the application report status point.

[0108] Figure 7 A flowchart of a computing power sharing method provided by an exemplary embodiment of the present invention. Figure 6The computing power sharing system shown in the figure realizes the computing power sharing between different vehicles. The sharing process can be referred to Figure 7 Flowchart shown.

[0109] like Figure 7 As shown in the figure, when PSM receives a request from an external application to enter the computing power sharing mode, PSM will first determine the status of the vehicle, such as the vehicle's parking status, vehicle battery status, vehicle gear position, etc., and determine whether to enter the computing power sharing mode based on the vehicle status. After entering the shared computing power mode, the docker container will be started first, and then the shared computing power application client will be started in the docker container. The client will establish a connection with the shared computing power server running on the cloud, and send a request to upload or download data to the server. The data and algorithms uploaded to or downloaded from the server will be stored in the docker container, because the client of the shared computing power application running in the docker container will not modify the data outside the docker container, nor will it upload the data outside the docker container to the cloud, which can ensure security isolation. At the same time, the resource limitation function of the docker container can limit the resource consumption of the shared computing power function, ensure that the occupied resources are within the range, and ensure the driving safety of the car.

[0110] In addition, PSM will monitor the vehicle status in real time, adjust the download speed from the shared computing power application server to the client according to the vehicle status, and ensure that the vehicle platform resources are fully utilized on the basis of ensuring safety. After the client obtains the data and processing algorithm that need to be calculated, it will use the algorithm to calculate the data and upload the calculation results to the server running in the cloud. The data uploaded to the server and the calculated data calculation method will be deleted from the docker container to make room for calculating other data. When all data are calculated, the client disconnects from the server and deletes all downloaded data and calculation results. The client will notify PSM to exit the shared computing power mode. PSM closes the client application and closes the docker container, thus completing the computing power sharing function. During the operation of the computing power sharing mode, in order to ensure the normal operation of the vehicle, PSM will monitor the status of the vehicle in real time. If it is found that the status of the vehicle does not support the computing power sharing mode at this time, PSM will immediately notify the client to save the data and exit. The data will be temporarily stored in the docker container until the vehicle status allows the shared computing power function. PSM will re-start the client application and continue to run the computing power function. In order to ensure the normal operation of PSM and other applications, PHM will monitor the application during the entire program operation stage. If any abnormality is found in the application operation, PHM will restart the application to achieve double protection.

[0111] Figure 8 The schematic diagram of the structure of a vehicle computing power sharing device provided by an exemplary embodiment of the present invention is as follows. Figure 8As shown, the vehicle computing power sharing device 800 may include:

[0112] The container startup module 801 is used to respond to the computing power sharing request for the computing power requesting vehicle, start the Docker container, and start the computing power sharing application client in the Docker container.

[0113] The data receiving module 802 is used to obtain tasks and related data required to execute the tasks from the computing power sharing application server through the computing power sharing application client. The tasks and related data are uploaded to the computing power sharing application server by the computing power requesting vehicle.

[0114] The task execution module 803 is used to execute the task in the container based on the relevant data to obtain an execution result.

[0115] The data upload module 804 is used to transmit the execution result to the computing power sharing application server through the computing power sharing application client, and close the docker container after the transmission is completed. The computing power sharing application server is used to transmit the execution result to the computing power requesting vehicle.

[0116] In one embodiment, the container startup module 801 may include:

[0117] The resource acquisition unit is used to obtain the system resource occupancy information of the computing power providing vehicle.

[0118] A margin determination unit is used to determine the system resource margin of the computing power providing vehicle based on the system resource occupancy information.

[0119] A parameter setting unit is used to set resource limitation parameters of a docker container according to a system resource margin, and start the docker container according to the resource limitation parameters, wherein the resource limitation parameters include at least one of a CPU parameter, a memory parameter, and a process parameter.

[0120] In one embodiment, the vehicle computing power sharing device 800 may further include:

[0121] The status management module is used to obtain the vehicle status of the vehicle providing the computing power, wherein the vehicle status includes at least one of the driving speed, the battery status, and the vehicle gear position.

[0122] The mode determination module is used to determine, based on the vehicle status, whether the computing power providing vehicle can enter a computing power sharing mode.

[0123] The mode control module is used to control the computing power providing vehicle to enter a computing power sharing mode.

[0124] In one embodiment, the vehicle computing power sharing device 800 may further include:

[0125] The vehicle monitoring module is used to monitor the vehicle status of the vehicle provided by the computing power.

[0126] The task control module is used to suspend the execution of the task when it is determined according to the vehicle state that the computing power providing vehicle does not support the computing power sharing mode to continue, and continue to execute the task after the computing power providing vehicle enters the computing power sharing mode.

[0127] In one embodiment, the task control module is also used to control the data transmission speed between the computing power sharing application client and the computing power sharing application server according to the vehicle status.

[0128] In one embodiment, the task control module is also used to determine that the computing power providing vehicle is in a preset first state based on the vehicle status, thereby increasing the data transmission speed between the computing power sharing application client and the computing power sharing application server; or, it is also used to determine that the computing power providing vehicle is in a preset second state based on the vehicle status, thereby reducing the data transmission speed between the computing power sharing application client and the computing power sharing application server.

[0129] In one embodiment, the vehicle computing power sharing device 800 may further include:

[0130] The health monitoring module is used to monitor the operating status of the computing power sharing application client through the platform health management module of the computing power providing vehicle, and restart the computing power sharing application client if any abnormality occurs during operation.

[0131] In one embodiment, the vehicle computing power sharing device 800 may further include:

[0132] The demand acquisition module is used to obtain the computing power demand of the computing power providing vehicle.

[0133] The task generation module is used to generate tasks to be processed according to the computing power requirements.

[0134] The task uploading module is used to transmit the pending tasks and the relevant data of executing the pending tasks to the computing power sharing application server through the computing power sharing application client.

[0135] The vehicle computing power sharing device provided in this embodiment is used to execute the technical solution in any of the aforementioned method embodiments. Its implementation principle and technical effects are similar and will not be repeated here.

[0136] It should be understood that the above device embodiments are only illustrative, and the device of the present invention can also be implemented in other ways. For example, the division of units / modules in the above embodiments is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units, modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed.

[0137] In addition, unless otherwise specified, each functional unit / module in each embodiment of the present invention may be integrated into one unit / module, or each unit / module may exist physically separately, or two or more units / modules may be integrated together. The above-mentioned integrated unit / module may be implemented in the form of hardware or in the form of a software program module.

[0138] Fig. 9 FIG. 1 is a schematic diagram of a structure of an electronic device provided by an exemplary embodiment of the present invention. Fig. 9 As shown, the electronic device 90 includes:

[0139] Processor 91, memory 92, and communication interface 93;

[0140] The memory 92 is used to store executable instructions of the processor 91; the executable instructions may be computer-executable instructions;

[0141] The processor 91 is configured to execute the technical solution in any of the aforementioned method embodiments by executing the executable instructions.

[0142] Optionally, the memory 92 may be independent or integrated with the processor 91 .

[0143] Optionally, when the memory 92 is a device independent of the processor 91, the electronic device 90 may further include:

[0144] The bus 94 , the memory 92 and the communication interface 93 are connected to the processor 91 via the bus 94 and communicate with each other. The communication interface 93 is used to communicate with other devices.

[0145] Optionally, the communication interface 93 may be implemented by a transceiver. The communication interface is used to implement communication between the database access device and other devices (such as a client, a read-write library, and a read-only library). The memory may include a random access memory (RAM) and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage.

[0146] The bus 94 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0147] The above-mentioned processor can be a general-purpose processor, including a central processing unit CPU, a network processor (NP), etc.; it can also be a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0148] The electronic device is used to execute the technical solution in any of the aforementioned method embodiments, and its implementation principle and technical effect are similar and will not be repeated here.

[0149] An embodiment of the present invention further provides a readable storage medium, which may be a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the technical solution provided by any of the aforementioned method embodiments is implemented.

[0150] An embodiment of the present invention further provides a computer program product, including a computer program, which is used to implement the technical solution provided by any of the aforementioned method embodiments when executed by a processor.

[0151] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0152] In the above embodiments, the description of each embodiment has its own emphasis. For the part not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0153] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed by the present invention. The description and examples are to be considered exemplary only, and the true scope and spirit of the present invention is indicated by the following claims.

[0154] The above embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Any equivalent substitution or change made by a person skilled in the art based on the present invention is within the protection scope of the present invention.

Claims

1. A vehicle computing power sharing method, characterized in that: Applied to a computing power providing vehicle, the vehicle computing power sharing method includes: In response to a computing power sharing request from a computing power requesting vehicle, start a Docker container, and start a computing power sharing application client in the Docker container; Obtaining a task and related data required to execute the task from a computing power sharing application server through the computing power sharing application client, wherein the task and related data are uploaded to the computing power sharing application server by the computing power requesting vehicle; Executing the task in the container based on the relevant data to obtain an execution result; The execution result is transmitted to the computing power sharing application server through the computing power sharing application client, and the docker container is closed after the transmission is completed. The computing power sharing application server is used to transmit the execution result to the computing power requesting vehicle.

2. The vehicle computing power sharing method according to claim 1, characterized in that: The starting of the Docker container includes: Obtaining system resource occupancy information of the vehicle provided by the computing power; Determine the system resource margin of the computing power providing vehicle according to the system resource occupancy information; The resource limitation parameters of the docker container are set according to the system resource margin, and the docker container is started according to the resource limitation parameters, wherein the resource limitation parameters include at least one of a central processing unit CPU parameter, a memory parameter and a process parameter.

3. The vehicle computing power sharing method according to claim 1 or 2, characterized in that: Before starting the docker container, it also includes: Acquire a vehicle state of the computing power providing vehicle, wherein the vehicle state includes at least one of a driving speed, a battery state, and a vehicle gear position; Determining, according to the vehicle state, that the computing power providing vehicle can enter a computing power sharing mode; Control the computing power to provide the vehicle with a computing power sharing mode.

4. The vehicle computing power sharing method according to claim 3, characterized in that: Also includes: Monitoring the vehicle status of the computing power providing vehicle; If it is determined according to the vehicle status that the computing power providing vehicle does not support the computing power sharing mode, the execution of the task is suspended until the computing power providing vehicle enters the computing power sharing mode, and then the execution of the task is continued.

5. The vehicle computing power sharing method according to claim 3, characterized in that: Also includes: Monitoring the vehicle status of the computing power providing vehicle; According to the vehicle status, the data transmission speed between the computing power sharing application client and the computing power sharing application server is controlled.

6. The vehicle computing power sharing method according to claim 5, characterized in that: The controlling the data transmission speed between the computing power sharing application client and the computing power sharing application server according to the vehicle state includes: determining that the computing power providing vehicle is in a preset first state according to the vehicle state, and increasing the data transmission speed between the computing power sharing application client and the computing power sharing application server; Alternatively, it is determined according to the vehicle state that the computing power providing vehicle is in a preset second state, and the data transmission speed between the computing power sharing application client and the computing power sharing application server is reduced.

7. The vehicle computing power sharing method according to claim 1 or 2, characterized in that: Also includes: The platform health management module of the computing power providing vehicle monitors the running status of the computing power sharing application client. If any abnormality occurs during operation, the computing power sharing application client is restarted.

8. The vehicle computing power sharing method according to claim 1 or 2, characterized in that: Also includes: Obtaining the computing power required by the computing power-providing vehicle; Generate tasks to be processed according to the computing power requirements; The tasks to be processed and the relevant data for executing the tasks to be processed are transmitted to the computing power sharing application server through the computing power sharing application client.

9. A vehicle computing power sharing device, characterized in that: Applied to a computing power providing vehicle, the vehicle computing power sharing device comprises: A container startup module, used to respond to a computing power sharing request for a computing power requesting vehicle, start a Docker container, and start a computing power sharing application client in the Docker container; A data receiving module, used to obtain a task and related data required to execute the task from a computing power sharing application server through the computing power sharing application client, wherein the task and the related data are uploaded to the computing power sharing application server by the computing power requesting vehicle; A task execution module, used to execute the task in the container based on the relevant data to obtain an execution result; The data upload module is used to transmit the execution result to the computing power sharing application server through the computing power sharing application client, and close the docker container after the transmission is completed. The computing power sharing application server is used to transmit the execution result to the computing power requesting vehicle.

10. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 8 when executed by a processor.

12. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 8 when being executed by a processor.