Computing power sharing method and device, equipment, storage medium and vehicle
By detecting and verifying the computing tasks and result data when the vehicle shares computing power, the problem of difficult security of the vehicle system configuration file is solved, and the configuration file security guarantee in the environment where the vehicle shares computing power is achieved.
Patent Information
- Application Number
- CN202510103294.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-22
- Publication Date
- 2025-05-02
AI Technical Summary
When vehicles share computing power, how to ensure the security of configuration files on the vehicle system is threatened, and the existing technology is difficult to effectively solve this problem.
When the vehicle shares computing power, it obtains computing tasks and related data, executes computing tasks and detects shared result data, and only sends shared result data after the detection is passed to avoid abnormal data leakage.
By detecting the shared result data, abnormal data sent by the vehicle is avoided, thereby preventing the leakage of information such as the configuration files of the vehicle system and ensuring the security of the configuration files of the vehicle system.
Smart Images

Figure CN119917283A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and specifically to a computing power sharing method, device, equipment, storage medium and vehicle. Background Art
[0002] With the continuous advancement of intelligent driving technology, the demand for computing power in automobiles is also growing. In order to cope with the trend of implementing high-level intelligent driving functions such as Navigate on Autopilot (NOA) in cities and highways, car manufacturers have deployed high-computing intelligent driving platforms, resulting in a large-scale increase in automobile computing power resources.
[0003] However, as the computing power of vehicles continues to grow, problems such as redundant computing power and waste of computing power of parked vehicles will become more serious. In order to avoid the waste of computing power resources, vehicle computing power is usually shared. For example, a technical solution discloses a method for realizing computing power sharing interaction based on a vehicle-mounted terminal, the method comprising: starting the vehicle-mounted terminal, requesting an algorithm version update from the server, and waiting for the server-side task to be issued; receiving task messages, maintaining multiple task messages through message queues, and the dispatching end can issue tasks of the same magnitude based on the device's central processing unit (CPU), memory usage and other information; processing the tasks.
[0004] However, when vehicles share computing power, how to ensure the security of configuration files on the vehicle system is a technical problem that urgently needs to be solved. Summary of the invention
[0005] One of the purposes of the present application is to provide a computing power sharing method, apparatus, device, storage medium and vehicle for ensuring the security of configuration files on a vehicle system.
[0006] In order to achieve the above purpose, the technical solution adopted in this application is as follows:
[0007] According to a first aspect provided by the present application, a computing power sharing method is provided, which is applied to a vehicle, and the method includes: when the vehicle shares computing power, obtaining a computing task and relevant data required for the computing task. Executing the computing task according to the relevant data to obtain an execution result. Detecting the shared result data, and sending the shared result data when the shared result data passes the detection. The shared result data includes the execution result.
[0008] According to the above technical means, when the vehicle shares computing power, the computing task is performed according to the relevant data, the execution result is obtained, and the shared result data including the execution result is detected. Further, when the shared result data passes the detection, the result data is sent. In this way, by detecting the shared result data, abnormal data sent by the vehicle is avoided, thereby avoiding the leakage of information such as the configuration file of the vehicle system, thereby ensuring the security of the configuration file of the vehicle system.
[0009] In one possible manner, the vehicle runs a first application and a second application, and the above “obtaining a computing task and related data required for the computing task” includes: obtaining the computing task and related data through the first application. The above “sending shared result data” includes: sending the shared result data through the second application.
[0010] In one possible manner, the vehicle runs a third application, and the execution result is calculated by the first application. The method further includes: when the third application determines that the first application obtains the execution result, obtaining the execution result through the third application and sending the execution result to the second application. The shared result data is generated through the second application.
[0011] In one possible manner, the computing task and related data are sent by the server, and the method also includes: obtaining the computing power resource information of the vehicle through a second application, and sending the computing power resource information to the server through the second application, so that the server matches the computing task according to the computing power resource information.
[0012] In one possible manner, the method further includes: creating a shared temporary file through the first application, and writing computing power sharing data into the shared temporary file. The computing power sharing data is data obtained by the vehicle when sharing computing power. When the vehicle ends sharing computing power, the shared temporary file is deleted through the first application.
[0013] In one possible manner, the space in which the first application runs is a virtual space.
[0014] In a possible manner, before executing the computing task according to the relevant data and obtaining the execution result, the method further includes: exiting the non-shared application when the non-shared application is running. The non-shared application stores user information.
[0015] According to a second aspect provided by the present application, a computing power sharing device is provided, which is applied to a vehicle, and the device includes: an acquisition unit, a processing unit, and a sending unit. The acquisition unit is used to acquire a computing task and related data required for the computing task when the vehicle shares computing power. The processing unit is used to execute the computing task according to the related data to obtain an execution result. The processing unit is also used to detect the shared result data. The sending unit is used to send the shared result data when the shared result data is detected to be passed; the shared result data includes the execution result.
[0016] In a possible manner, the vehicle runs a first application and a second application, and the acquisition unit is specifically used to: acquire the computing task and related data through the first application. The sending unit is specifically used to: send the shared result data through the second application.
[0017] In one possible manner, the vehicle runs a third application, and the execution result is obtained by calculating the first application. The acquisition unit is further used to obtain the execution result through the third application when the third application determines that the first application obtains the execution result. The sending unit is further used to send the execution result to the second application. The processing unit is further used to generate shared result data through the second application.
[0018] In one possible manner, the computing task and related data are sent by the server, and the acquiring unit is further used to acquire the computing resource information of the vehicle through the second application. The sending unit is further used to send the computing resource information to the server through the second application, so that the server matches the computing task according to the computing resource information.
[0019] In one possible manner, the processing unit is further configured to create a shared temporary file through the first application. The processing unit is further configured to write computing power sharing data into the shared temporary file. The computing power sharing data is data obtained by the vehicle when the computing power is shared. The processing unit is further configured to delete the shared temporary file through the first application when the vehicle ends sharing computing power.
[0020] In one possible manner, the space in which the first application runs is a virtual space.
[0021] In a possible manner, the processing unit is further configured to exit the non-shared application when the non-shared application is running. The non-shared application stores user information.
[0022] According to the third aspect provided by the present application, an electronic device is provided, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to execute instructions to implement the method of the above-mentioned first aspect and any possible implementation manner thereof.
[0023] According to the fourth aspect provided by the present application, a computer-readable storage medium is provided. When the instructions in the computer-readable storage medium are executed by a processor of a processing device, the processing device is enabled to execute the method in the above-mentioned first aspect and any possible implementation method thereof.
[0024] According to the fifth aspect provided by the present application, a computer program product is provided, the computer program product comprising computer instructions, and when the computer instructions are executed on a processing device, the processing device executes the method of the above-mentioned first aspect and any possible implementation manner thereof.
[0025] According to a sixth aspect provided by the present application, a vehicle is provided, the vehicle comprising the electronic device of the third aspect.
[0026] Therefore, the above technical features of the present application have the following beneficial effects:
[0027] 1. When the vehicle shares computing power, the computing task is performed according to the relevant data, the execution result is obtained, and the shared result data including the execution result is tested. Furthermore, when the shared result data passes the test, the result data is sent. In this way, by testing the shared result data, abnormal data sent by the vehicle is avoided, thereby avoiding the leakage of information such as the configuration file of the vehicle system, thereby ensuring the security of the configuration file of the vehicle system.
[0028] 2. Put the data generated during computing power sharing into a temporary file, and delete the temporary file when computing power sharing ends. In this way, data security isolation and resource control are achieved to prevent the leakage of data used in the process of sharing computing power.
[0029] 3. Isolating external data in the virtual space generated by the container can prevent computing power sharing applications from modifying data in the vehicle platform and ensure vehicle driving safety.
[0030] 4. Data upload and data download are done through different channels. Before uploading data through the second application, security measures such as detection of the data to be sent can avoid data security issues caused by a single channel in the computing power sharing mode, thereby ensuring data security. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 A schematic diagram of the structure of a computing power sharing system shown in an exemplary embodiment provided by the present application;
[0032] Figure 2 A schematic diagram of data flow in a computing power sharing system shown in an exemplary embodiment provided by the present application;
[0033] Figure 3One of the flowcharts of a computing power sharing method shown in an exemplary embodiment provided by the present application;
[0034] Figure 4 A second flowchart of a computing power sharing method shown in an exemplary embodiment provided by the present application;
[0035] Figure 5 A flowchart of a computing power sharing method shown in an exemplary embodiment provided by the present application is shown in FIG3;
[0036] Figure 6 A schematic diagram of the underlying software operation of a computing power sharing method shown in an exemplary embodiment provided by the present application;
[0037] Figure 7 A fourth flowchart of a computing power sharing method shown in an exemplary embodiment provided by the present application;
[0038] Figure 8 A schematic diagram of a computing power sharing device shown in an exemplary embodiment provided by the present application;
[0039] Fig. 9 The present invention is a schematic diagram of an electronic device according to an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0040] The following will describe the implementation methods of the present application with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific implementation methods, 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 application. It should be understood that the preferred embodiments are only for illustrating the present application, not for limiting the scope of protection of the present application.
[0041] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0042] With the continuous advancement of intelligent driving technology, the demand for computing power in automobiles is also growing. In order to cope with the trend of implementing advanced intelligent driving functions such as urban / highway navigation and guidance driving, car manufacturers have deployed high-computing intelligent driving platforms, resulting in a large-scale increase in automobile computing power resources.
[0043] However, as the computing power of vehicles continues to grow, problems such as redundant computing power and waste of computing power of parked vehicles will become more serious. In order to avoid the waste of computing power resources, vehicle computing power is usually shared. For example, a technical solution discloses a method for realizing computing power sharing interaction based on a vehicle-mounted terminal, the method comprising: starting the vehicle-mounted terminal, requesting an algorithm version update from the server, and waiting for the server-side task to be issued; receiving task messages, maintaining multiple task messages through message queues, and the dispatching end can issue tasks of the same magnitude based on the device's central processing unit (CPU), memory usage and other information; processing the tasks.
[0044] However, when vehicles share computing power, they exchange data with the target device through a channel, and the vehicle will default the received data or the data to be sent to security data. This will lead to the leakage of data configured on the vehicle system. Therefore, how to ensure the security of the configuration files on the vehicle system is a technical problem that needs to be solved urgently.
[0045] In order to solve the above technical problems, the present application provides a computing power sharing method, which includes: when vehicles share computing power, obtaining computing tasks and related data required for computing tasks; executing computing tasks according to related data to obtain execution results. Detecting shared result data, and sending shared result data when the shared result data passes the detection; the shared result data includes execution results.
[0046] According to the above technical means, when the vehicle shares computing power, the computing task is performed according to the relevant data, the execution result is obtained, and the shared result data including the execution result is detected. Further, when the shared result data passes the detection, the result data is sent. In this way, by detecting the shared result data, abnormal data sent by the vehicle is avoided, thereby avoiding the leakage of information such as the configuration file of the vehicle system, thereby ensuring the security of the configuration file of the vehicle system.
[0047] like Figure 1 As shown, Figure 1 A computing power sharing system 100 is provided in an embodiment of the present application. The computing power sharing system 100 may include a server 101 and a plurality of vehicles ( Figure 1 3 vehicles are shown as an example: vehicle 1, vehicle 2 and vehicle 3. In actual application, there may be more or fewer vehicles.) The server 101 is connected to communicate with the plurality of vehicles.
[0048] The target vehicle is used to obtain the computing task and the related data required for the computing task when the vehicles share computing power; execute the computing task according to the related data to obtain the execution result. The target vehicle is also used to detect the shared result data, and send the shared result data when the shared result data passes the detection. The target vehicle is also used to share the result data including the execution result. The target vehicle is any one of the multiple vehicles in the computing power sharing system 100.
[0049] The target vehicle is also used to obtain computing power sharing resources and send the computing power sharing resources to the server 101.
[0050] In some embodiments, the computing power sharing resources of the target vehicle may include a driving domain controller and / or a cockpit domain controller.
[0051] In addition, when the target vehicle includes a driving domain controller and a cockpit domain controller, since the computing power resources of the cockpit domain controller are relatively less than those of the driving domain controller, and the cockpit domain controller also includes a display screen component that consumes more power, the computing power sharing resource can be the driving domain controller.
[0052] In some embodiments, the driving domain controller may include multiple system on a chip (SOC) or microprocessor unit (MPU). In addition, the driving domain controller may also include a micro control unit (MCU) and a vehicle information unit (VIU).
[0053] In some embodiments, the vehicle is installed with a first application, a second application, and a third application.
[0054] The first application is used to receive data sent by the server 101 and perform computing tasks according to the relevant data.
[0055] For example, the first application receives the computing power sharing model and model operation data sent by the server 101.
[0056] The second application is used to send data to the server 101 .
[0057] For example, the first application is used to collect real-time information of each embedded platform of the vehicle and complete the information interaction between the vehicle and the server 101 when running computing power sharing.
[0058] In some embodiments, the second application is installed in the system of the driving domain controller. The second application communicates with the server 101 via Ethernet or in-vehicle safety communication with a telematics box (TBOX) on the cockpit domain controller.
[0059] The third application is used to manage the running status of applications in the vehicle.
[0060] For example, the third application is responsible for managing the start and stop of the computing power sharing model, as well as the switching management of various resource states of the vehicle system. The third application is also used to maximize the release of computing power resources that can be used for computing power sharing model operations during this time period, such as central processing unit (CPU) and graphics processing unit (GPU) and other computing power resources.
[0061] In some embodiments, a distributed communication service-oriented architecture (SOA) is used to configure the first application, the second application, and the third application. In this way, various vehicle models and changes required at various stages can be quickly adapted, and corresponding iterative development can be quickly completed.
[0062] It should be noted that the first application can be called an application framework management application (application framework manage, APPFM), the second application can be called an information report application (message report, MSG-report), and the third application can be called a shared management state application (Share planned state manage, SPSM). The embodiment of the present application does not specifically limit the names of the first application, the second application, and the third application.
[0063] In some embodiments, Figure 2 FIG. 1 shows a schematic diagram of data flow in the computing power sharing system 100. Figure 2 In the example, the server 101 communicates with the vehicle through the communication module of the vehicle's cockpit domain controller. Figure 2 In the process, the user authorizes computing power sharing through the display screen of the cockpit domain controller. Subsequently, the cockpit domain controller sends the authorization file to the driving domain controller, so that the second application controlled by the driving domain controller stores the authorization file in the memory of the driving domain controller. Figure 2In the figure, it is also shown that the server 101 sends relevant data to the first application through the communication module. The second application uploads the execution result to the server 101 through the communication module. The first application pulls up the shared algorithm model. The third application is connected to the first application and the second application respectively to exchange data. Exemplarily, the server 101 communicates with the communication module through the fourth generation mobile communication technology (the 4th generation mobile communication technology, 4G) or the fifth generation mobile communication technology (the 5th generation mobile communication technology, 5G).
[0064] In addition, Figure 2 In the process, users complete the computing power sharing authorization through the dashboard.
[0065] The server 101 is used to receive the computing power sharing resources from the target vehicle and match the computing tasks according to the computing power sharing resources. Furthermore, the server 101 sends the computing tasks and the related data required for the computing tasks to the target vehicle.
[0066] The server in the embodiment of the present application can be a single server, a cloud server, or a server cluster, and there is no specific limitation on this.
[0067] For ease of understanding, the information prompt method provided by the present application is specifically introduced below with reference to the accompanying drawings.
[0068] Figure 3 According to a flowchart schematic diagram of a computing power sharing method shown in an exemplary embodiment, the computing power sharing method is applied to a vehicle, and the method includes: S201-S204.
[0069] S201. When vehicles share computing power, obtain computing tasks and related data required for the computing tasks.
[0070] In some embodiments, when vehicles share computing power, computing tasks and related data required for the computing tasks are obtained through the first application.
[0071] The relevant data in the embodiments of the present application may be a computing power sharing model and operation data, or may be other data, which is not limited by the embodiments of the present application.
[0072] In some embodiments, when the vehicle responds to the vehicle lock command, it is determined whether the current power is greater than or equal to the preset power. Further, when the current power is greater than or equal to the preset power, it is determined that the vehicle shares computing power.
[0073] It should be noted that the preset power level is pre-set in the vehicle by the operation and maintenance personnel. For example, the preset power level can be 50%, 55%, or 49%. This embodiment of the present application does not specifically limit this.
[0074] In some embodiments, the vehicle needs user authorization to perform computing power sharing. For example, the shared computing power authorization is completed through the cockpit domain controller interface operation. After authorization, the corresponding authorization file needs to be called and persistently stored in the adjustable damping system (ADS). Further, the vehicle sends the authorization file to the server. Subsequently, if the authorization is cancelled, the authorization cancellation operation is completed through the cockpit domain controller interface operation.
[0075] In some embodiments, before obtaining the computing task and related data required for the computing task, the computing power resource information of the vehicle is obtained through the second application, and the computing power resource information is sent to the server through the second application, so that the server can match the computing task according to the computing power resource information.
[0076] For example, the computing power resource information of the vehicle, such as the CPU, GPU, memory, and disk, is obtained through the second application, and the computing power resource information is sent to the server through the second application.
[0077] In some embodiments, before obtaining the computing task and the related data required for the computing task, when the non-shared application is running, the non-shared application is exited; the non-shared application stores the user information.
[0078] In other embodiments, the operation mode of the vehicle is divided into a computing power sharing mode and a non-computing power sharing mode. Further, the applications installed in the vehicle are classified by a third application to obtain applications that the vehicle runs in the computing power sharing mode and applications that the vehicle runs in the non-computing power sharing mode.
[0079] For example, the applications are divided into two groups through the third application: a computing power sharing group and a non-computing power sharing group. Among them, the computing power sharing group includes the first application, the second application and the third application. The identifiers corresponding to the computing power sharing group and the non-computing power sharing group are unique, and the target application can be an application in the computing power sharing group and / or the non-computing power sharing group. In this way, by classifying the applications installed in the vehicle, in the computing power sharing mode, exit the corresponding application of the non-computing power sharing group to avoid being read when the application with the car owner is running, thereby improving the security of computing power sharing.
[0080] In addition, in the case of computing power sharing, information such as the execution status of the computing task is obtained through a third application. For example, information such as the relevant status of pulling the algorithm model, the relevant status of the algorithm model running, and the relevant status of whether the algorithm model has been executed is obtained through the third application.
[0081] S202: Execute a computing task according to relevant data to obtain an execution result.
[0082] In some embodiments, after obtaining the computing task and related data, the first application executes the running task according to the related data to obtain the execution result.
[0083] For example, when the first application obtains the shared algorithm model and the operation data, it pulls up the shared algorithm model, inputs the operation data into the shared algorithm model, and obtains the execution result.
[0084] In some embodiments, the first application runs the shared algorithm model through the security core.
[0085] It should be noted that the security core is the core of the processor configured by the operation and maintenance personnel. It is understandable that an independent running core is configured for the computing power sharing mode to improve the security of computing power sharing.
[0086] S203: Detect shared result data.
[0087] As a possible implementation method, when the execution result is generated, the shared result data is generated according to the execution result. Further, the shared result data is tested.
[0088] In some embodiments, detecting the shared result data includes detecting a data format and / or data content of the shared result data.
[0089] For example: detecting whether the shared result data includes specific keywords and / or data in a specific format. For example, detecting the relevance of the shared result data with the data sent by the server. For another example, detecting whether the shared result data includes the data stored in the target storage area.
[0090] Exemplarily, it is detected whether the shared result data includes the vehicle information and the driver's identity information. Exemplarily, it is detected whether the shared result data includes data in the same format as the target data. The target data format is the format of data generated by the vehicle in the non-computing power sharing mode. Another example is to detect whether the correlation between the shared result data and the data sent by the server is greater than or equal to the correlation threshold.
[0091] It should be noted that the specific keywords, specific formats, and correlation thresholds are pre-set by the operation and maintenance personnel, and are not limited in the embodiments of the present application. The target storage area is pre-set by the operation and maintenance personnel. For example, the target storage area is an area for storing core data (such as the driver's daily driving data, the current vehicle's intelligent driving model parameters, or the driver's personal information, etc.).
[0092] In some embodiments, the third application obtains the execution status of the computing task, and when it is determined that the first application obtains the execution result, obtains the execution result and sends the execution result to the second application.
[0093] Correspondingly, the second application receives the execution result sent by the third application, and generates the shared result data according to the execution result. Further, the second application detects the shared result data.
[0094] S204: When the shared result data is detected to be passed, the shared result data is sent.
[0095] The shared result data includes the execution result.
[0096] As a possible implementation manner, the shared result data is sent when the data format and / or data content of the shared result data are detected to be passed.
[0097] In some embodiments, if it is detected that the shared result data does not include specific keywords and / or data in a specific format, the data detection is passed. Otherwise, it is determined that the shared result data is abnormal, and the sending of the shared result data is cancelled.
[0098] Exemplarily, when it is detected that the shared result data does not include the vehicle identification number (VIN) of the current vehicle and the identity of the driver, the data detection is passed. Another exemplary case is when it is detected that the shared result data does not include data in the same format as the target data, the data detection is passed.
[0099] In some embodiments, if it is detected that the correlation between the shared result data and the data sent by the server is greater than or equal to the correlation threshold, the data detection is passed. Otherwise, it is determined that the shared result data is abnormal and the sending of the shared result data is cancelled.
[0100] In some other embodiments, when the shared result data does not include the data stored in the target storage area, data detection is performed. Otherwise, it is determined that the shared result data is abnormal, and the sending of the shared result data is cancelled.
[0101] In some embodiments, the second application sends the shared result data to the server when the shared result data is detected. In this way, data upload and data download are through different channels. Before uploading data through the second application, security measures such as testing the data to be sent can avoid data security issues caused by a single channel in the computing power sharing mode, thereby ensuring data security.
[0102] In some embodiments, the second application encrypts the shared result data and sends the encrypted data to the server.
[0103] In some embodiments, the sharing result data may also include resource usage values of computing resources such as CPU, GPU, memory, disk, etc. during the computing power sharing process. In this way, the server subsequently matches the sharing task for the vehicle (such as matching a suitable sharing algorithm model) based on the resource usage value, and sends the sharing task to the first application.
[0104] In another case, when the second application fails to detect the shared result data, it deletes the shared result data and related data and generates computing power sharing exception information. Further, the second application sends the computing power sharing exception information to the server.
[0105] The computing power sharing method provided in the embodiment of the present application brings at least the following beneficial effects: when the vehicle shares computing power, the computing task is executed according to the relevant data, the execution result is obtained, and the shared result data including the execution result is detected. Furthermore, when the shared result data passes the detection, the result data is sent. In this way, by detecting the shared result data, abnormal data sent by the vehicle is avoided, thereby avoiding the leakage of information such as the configuration file of the vehicle system, thereby ensuring the security of the configuration file of the vehicle system.
[0106] In one possible design, in order to strengthen data privacy and security protection, the computing power sharing algorithm provided in the embodiment of the present application also includes: S205-S207.
[0107] S205: Create a shared temporary file through the first application.
[0108] In some embodiments, when vehicles share computing power, a shared temporary file is created in a preset storage area through a first application.
[0109] It should be noted that the preset storage area can be a separate safety partition pre-divided in the vehicle by the operation and maintenance personnel.
[0110] S206. Write the computing power sharing data into a shared temporary file.
[0111] Among them, computing power sharing data refers to the data obtained by vehicles when sharing computing power.
[0112] For example, the first application receives the shared algorithm model and operation data sent by the server, and writes the shared algorithm model and operation data into the shared temporary file. Subsequently, the first application writes the execution result into the shared temporary file.
[0113] S207. When the vehicle ends sharing computing power, the shared temporary file is deleted through the first application.
[0114] In some embodiments, when the vehicle ends sharing computing power, the shared temporary file is deleted through the first application.
[0115] In other embodiments, after the second application sends the shared result data, the first application deletes the data corresponding to the shared result data. Furthermore, when the vehicle ends sharing computing power, the first application deletes the shared temporary file.
[0116] It is understandable that the data generated during the computing power sharing is placed in a temporary file, and when the computing power sharing ends, the temporary file is deleted. In this way, data security isolation and resource control are achieved to avoid the leakage of data used in the process of sharing computing power.
[0117] In one possible implementation, the space in which the first application runs is a virtual space.
[0118] Specifically, in the case of shared computing power among vehicles, the third application calls persistent storage by writing files to write the corresponding key-value pair information into files. The key-value pair information is used to instruct the vehicle system to start the default operation mode as computing power sharing mode. Further, the vehicle system restarts, reads the key-value pair information and enters computing power sharing mode. In computing power sharing mode, applications in the computing power sharing group are run.
[0119] Subsequently, the docker client is called to create a virtualized operating space to isolate the vehicle's CPU, GPU, memory, disk and other resources, and the first application is put into the virtual space created by docker to start running. In addition, for the shared algorithm model and operation data pulled from the server, the operation data is input into the shared algorithm model through the first application to obtain the execution result. It can be understood that isolating external data in the container and closing the container after the computing power sharing ends can prevent the computing power sharing application from modifying the data in the vehicle platform and ensure the driving safety of the vehicle.
[0120] Finally, when it is detected that the vehicle exits the shared computing power model, the vehicle's operating mode is configured to a non-computing power sharing mode.
[0121] In order to better understand the computing power sharing method provided in the embodiment of the present application, Figure 4 As shown, a flow chart of a computing power sharing method is shown, including: S301-S306.
[0122] S301. The second application queries whether computing power sharing is authorized.
[0123] In some embodiments, when powered on, the second application queries whether the vehicle is authorized to share computing power.
[0124] In other embodiments, in response to a user's control operation, the second application queries whether the vehicle is authorized to share computing power.
[0125] If yes, then execute S302. If no, then end the computing power sharing operation.
[0126] In some embodiments, if the queried vehicle has not authorized computing power sharing, a computing power sharing authorization request is sent to the user to remind the user whether to share computing power.
[0127] It can be understood that the query of whether computing power sharing is authorized can be to query whether there is an authorization file for computing power sharing stored in the memory. If yes, then it is determined that computing power sharing is authorized. If not, then the operation is stopped.
[0128] S302: Obtain the status of the vehicle.
[0129] S303: Determine whether the vehicle is stationary and lock the vehicle.
[0130] If yes, then execute S304. If no, then execute S302.
[0131] S304: Obtain the power level of the vehicle.
[0132] S305: Determine whether the power level is greater than or equal to the preset power level.
[0133] If yes, then execute S306. If no, then execute S304.
[0134] S306. Enter computing power sharing mode through a third application.
[0135] It should be noted that the embodiment of the present application does not limit the execution order of S303 and S305. The vehicle's power level can be determined first and then the vehicle's operating status can be determined. The vehicle's operating status can be determined first and then the vehicle's power level can be determined. The vehicle's power level and operating status can also be determined at the same time. The embodiment of the present application does not limit this.
[0136] In order to better understand the computing power sharing method provided in the embodiment of the present application, Figure 5 As shown, a flow chart of a computing power sharing method is shown, including: S401-S411.
[0137] S401. Enter computing power sharing mode.
[0138] S402: Exit the non-computing power sharing application through a third application.
[0139] In some embodiments, the non-computing power sharing application is an application in a non-computing power sharing group.
[0140] S403: Start the first application through the third application.
[0141] In some embodiments, the first application is run through the security core and runs in a preset storage area.
[0142] S404: Acquire algorithm model data sent by the server through the first application.
[0143] The algorithm model data in the embodiments of the present application may include a shared algorithm model and operation data.
[0144] S405: Process the algorithm model data through the first application.
[0145] S406: Determine whether the algorithm model data has been processed.
[0146] If yes, then execute S407. If no, then continue to execute S405.
[0147] S407: Get the execution result.
[0148] In some embodiments, when the execution result is obtained, S411 and S409 are executed.
[0149] S408: Determine whether the vehicle is moving, unlocked, or the battery level is less than a preset level.
[0150] If yes, execute S409. If no, execute S411.
[0151] S409: Deleting the file where the algorithm model data is located through the first application.
[0152] S410: Exit computing power sharing mode.
[0153] S411. Send the execution result to the server through the second application.
[0154] In some embodiments, the second application detects the execution result before sending the execution result to the server, and sends the execution result to the server if the execution result passes the detection.
[0155] In some embodiments, when the vehicle is in computing power sharing mode, it is periodically or in real time determined whether the vehicle is moving, unlocked, or the battery level is less than a preset level, and the computing power sharing mode is exited when the vehicle is moving, unlocked, or the battery level is less than a preset level.
[0156] In some embodiments, when exiting the computing power sharing mode, if the execution result of the computing power sharing task is not sent, a notification message of the failure of the computing power sharing task is sent to the server.
[0157] In order to better understand the computing power sharing method provided in the embodiment of the present application, Figure 6As shown, a schematic diagram of the underlying software operation of a computing power sharing method is shown. Figure 6 The hardware, drivers, and operating system are located at the bottom layer. Figure 6 The figure also shows a virtual container server, a first application, a second application, a third application, and application A. The first application runs on a virtual container client (computing power sharing), and application A runs on a virtual container client (computing power sharing). The first application starts a computing power sharing model.
[0158] In order to better understand the computing power sharing method provided in the embodiment of the present application, Figure 7 As shown, a flow chart of another computing power sharing method is shown, including: S501-S509.
[0159] S501: Determine computing power sharing.
[0160] In some embodiments, computing power sharing is determined when the operating status and power level of the vehicle meet preset conditions.
[0161] S502: Call persistent storage to write key-value pair information.
[0162] S503: Determine the default startup operation mode.
[0163] S504: Restart the vehicle's operating system.
[0164] S505: Enter computing power sharing mode.
[0165] S506: The third application creates a virtual container.
[0166] S507: Launch the first application through the third application.
[0167] S508. Obtain an execution result through the first application.
[0168] S509: Send the execution result through the second application.
[0169] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to achieve the above functions, the communication device includes a hardware structure and / or software module corresponding to each function. It should be easily appreciated by those skilled in the art that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
[0170] Figure 8 A computing power sharing device is shown according to an exemplary embodiment and is applied to a vehicle. Figure 8 The computing power sharing device 60 includes: an acquisition unit 601, a processing unit 602 and a sending unit 603.
[0171] The acquisition unit 601 is used to acquire the computing task and the related data required for the computing task when the vehicle shares computing power. The processing unit 602 is used to execute the computing task according to the related data and obtain the execution result. The processing unit 602 is also used to detect the shared result data. The sending unit 603 is used to send the shared result data when the shared result data is detected; the shared result data includes the execution result.
[0172] In a possible manner, the vehicle runs a first application and a second application, and the acquisition unit 601 is specifically used to: acquire the computing task and related data through the first application. The sending unit 603 is specifically used to: send the shared result data through the second application.
[0173] In one possible manner, the vehicle runs a third application, and the execution result is calculated by the first application. The acquisition unit 601 is further used to acquire the execution result through the third application when the third application determines that the first application obtains the execution result. The sending unit 603 is further used to send the execution result to the second application. The processing unit 602 is further used to generate shared result data through the second application.
[0174] In one possible manner, the computing task and related data are sent by the server, and the acquisition unit 601 is further used to acquire the computing power resource information of the vehicle through the second application. The sending unit 603 is further used to send the computing power resource information to the server through the second application, so that the server can obtain the computing task according to the matching of the computing power resource information.
[0175] In one possible manner, the processing unit 602 is further configured to create a shared temporary file through the first application. The processing unit 602 is further configured to write computing power sharing data into the shared temporary file. The computing power sharing data is data obtained by the vehicle when the computing power is shared. The processing unit is further configured to delete the shared temporary file through the first application when the vehicle ends sharing computing power.
[0176] In one possible manner, the space in which the first application runs is a virtual space.
[0177] In a possible manner, the processing unit 602 is further configured to exit the non-shared application when the non-shared application is running. The non-shared application stores user information.
[0178] Fig. 9FIG. 1 is a schematic diagram of an electronic device according to an exemplary embodiment. Fig. 9 As shown, the processing device includes but is not limited to: a processor 701 and a memory 702 .
[0179] The memory 702 is used to store executable instructions of the processor 701. It can be understood that the processor 701 is configured to execute instructions to implement the model training method and SOC estimation method in the above embodiment.
[0180] It should be noted that those skilled in the art can understand that Figure 7 The processing device structure shown in the figure does not constitute a limitation on the processing device, and the processing device may include Figure 7 More or fewer components may be shown, or certain components may be combined, or the components may be arranged differently.
[0181] The processor 701 is the control center of the processing device. It uses various interfaces and lines to connect various parts of the entire processing device. By running or executing software programs and / or modules stored in the memory 702, and calling data stored in the memory 702, it performs various functions of the processing device and processes data, thereby monitoring the processing device as a whole. The processor 701 may include one or more processing units. Optionally, the processor 701 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 701.
[0182] The memory 702 may be used to store software programs and various data. The memory 702 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one functional module (such as a determination unit, a processing unit, etc.), etc. In addition, the memory 702 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0183] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 702 including instructions, and the above instructions can be executed by a processor 701 of a processing device to implement the method in the above embodiment.
[0184] Optionally, the computer-readable storage medium may be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0185] In an exemplary embodiment, the present application also provides a computer program product including one or more instructions, and the one or more instructions can be executed by the processor 701 of the processing device to complete the method in the above embodiment.
[0186] It should be noted that when the instructions in the above-mentioned computer-readable storage medium or one or more instructions in the computer program product are executed by the processor of the processing device, the various processes of the above-mentioned method embodiment are implemented, and the same technical effect as the above-mentioned method can be achieved. To avoid repetition, they will not be repeated here.
[0187] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0188] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0189] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0190] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0191] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the full classification part or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute the full classification part or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, ROM, RAM, disk or CD and other media that can store program code.
[0192] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A computing power sharing method, characterized in that: Applied to a vehicle, the method comprises: In the case where the vehicles share computing power, obtaining computing tasks and related data required for the computing tasks; Execute the computing task according to the relevant data to obtain an execution result; The shared result data is detected, and when the shared result data passes the detection, the shared result data is sent; the shared result data includes the execution result.
2. The method according to claim 1, characterized in that The vehicle runs a first application and a second application, and the obtaining of a computing task and related data required for the computing task includes: Acquire the computing task and the related data through the first application; The sending of the sharing result data comprises: The sharing result data is sent through the second application.
3. The method according to claim 2, characterized in that The vehicle runs a third application, the execution result is calculated by the first application, and the method further includes: When the third application determines that the first application obtains the execution result, obtaining the execution result through the third application, and sending the execution result to the second application; The sharing result data is generated by the second application.
4. The method according to claim 2, characterized in that: The computing task and the related data are sent by a server, and the method further includes: The computing power resource information of the vehicle is obtained through the second application, and the computing power resource information is sent to the server through the second application, so that the server matches the computing power resource information to obtain the computing task.
5. The method according to any one of claims 2 to 4, characterized in that: The method further comprises: Creating a shared temporary file through the first application, and writing computing power sharing data into the shared temporary file; the computing power sharing data is data obtained by the vehicle when sharing computing power; When the vehicle ends sharing computing power, the shared temporary file is deleted through the first application.
6. The method according to any one of claims 2 to 4, characterized in that: The space in which the first application runs is a virtual space.
7. The method according to any one of claims 1 to 4, characterized in that Before executing the computing task according to the relevant data to obtain the execution result, the method further includes: When a non-shared application is running, the non-shared application is exited; the non-shared application stores user information.
8. A computing power sharing device, characterized in that: Applied to a vehicle, the device comprises: an acquisition unit, a processing unit and a sending unit; The acquisition unit is used to acquire a computing task and related data required for the computing task when the vehicles share computing power; The processing unit is used to execute the computing task according to the relevant data to obtain an execution result; The processing unit is further used to detect the shared result data; The sending unit is used to send the shared result data when the shared result data is detected to be passed; the shared result data includes the execution result.
9. The device according to claim 8, characterized in that The vehicle runs a first application and a second application, and the acquisition unit is specifically used to: Acquire the computing task and the related data through the first application; The sending unit is specifically used for: The sharing result data is sent through the second application.
10. An electronic device, characterized in that: including memory and processor; The memory is coupled to the processor; The memory is used to store computer program code, wherein the computer program code includes computer instructions; When the processor executes the computer instructions, the electronic device performs the method as claimed in any one of claims 1 to 7.
11. A computer-readable storage medium, characterized in that: When the computer-executable instructions stored in the computer-readable storage medium are executed by a processor of a processing device, the processing device can perform the method according to any one of claims 1 to 7.
12. A vehicle, characterized in that: The vehicle includes the electronic device as claimed in claim 10.