WO2024045043A1 - Computing resource sharing method and apparatus, and terminal device - Google Patents

Computing resource sharing method and apparatus, and terminal device Download PDF

Info

Publication number
WO2024045043A1
WO2024045043A1 PCT/CN2022/116216 CN2022116216W WO2024045043A1 WO 2024045043 A1 WO2024045043 A1 WO 2024045043A1 CN 2022116216 W CN2022116216 W CN 2022116216W WO 2024045043 A1 WO2024045043 A1 WO 2024045043A1
Authority
WO
WIPO (PCT)
Prior art keywords
data transmission
computing
transmission information
terminal device
task
Prior art date
Application number
PCT/CN2022/116216
Other languages
French (fr)
Chinese (zh)
Inventor
许利霞
张维
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2022/116216 priority Critical patent/WO2024045043A1/en
Publication of WO2024045043A1 publication Critical patent/WO2024045043A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L27/00Modulated-carrier systems

Definitions

  • the embodiments of the present application relate to the field of computing resource services, and more specifically, to a computing resource sharing method, apparatus and terminal equipment.
  • PLC power line communication
  • the vehicle's artificial intelligence (artificial intelligence) processor does not need to perform autonomous driving tasks, and other processors in the vehicle are basically idle. At this time , the computing power of each processor in the car is not used properly.
  • Embodiments of the present application provide a computing resource sharing method, device, and terminal equipment. It can share and rationally utilize the computing power of idle processors while the terminal device is charging.
  • a method for sharing computing resources is provided.
  • the method is applied to a first terminal device.
  • the method includes: receiving first data transmission information sent by a charging device, where the charging device is at least used to The first terminal device is charged, the first data transmission information is used to instruct the first terminal device to perform a computing task, the computing task is associated with data of the second terminal device; perform the computing task; send the second Data transmission information, the second data transmission information includes the execution result of the computing task.
  • the first terminal device may be a terminal device such as a mobile phone, a vehicle, or a tablet computer.
  • the first data transmission information may be data carrying a computing task, or the first data transmission information may be a control command used to control the first terminal device to perform the computing task.
  • the above computing tasks may include: batch data cleaning, mini-batch training, and batch inference.
  • batch data cleaning can refer to the computing task of discovering and correcting errors in data files
  • small batch training can refer to the computing task of using sample data to optimize algorithms
  • batch inference can refer to the computing task of inputting the provided data into the trained neural network. In the model, the corresponding calculation results are output.
  • the first terminal device sending the second data transmission information may be implemented in various ways.
  • the first terminal device sends the second data transmission information to the charging device, and the charging device forwards the second data transmission information to the network device.
  • the first terminal device may directly send the second data transmission information to the network device.
  • the first terminal device after connecting to the charging device, can receive the computing task sent by the charging device, use the idle processor in the first terminal device to perform the computing task, and send the computing result to the charging device or the network equipment. In this way, the computing power of the idle processor can be shared and reasonably utilized when the first terminal device is charging.
  • the computing task is generated by a network device according to a request of the second terminal device.
  • the computing task is generated by the network device according to the request of the second terminal device, that is, the computing task is a computing power sharing task.
  • the method before receiving the first data transmission information sent by the charging device, the method further includes: sending third data transmission information to the charging device, so The third data transmission information is used to indicate the computing capability of the first terminal device and/or the time of sharing the computing capability.
  • the first terminal device may report the processor computing power and/or the time of shared computing power to the network device through the charging device, thereby enabling the network device to perform the calculation according to the first The computing capabilities of the terminal device issue computing tasks.
  • the third data transmission information includes: a third data identifier, the third data identifier is shared with the computing capability and/or of the first terminal device Computing power corresponds to time.
  • the third data identifier may be used to indicate the type of the third data, and/or the third data identifier may be used to indicate the content of the third data.
  • the third data identifier may be the [messageId] field added in the third data transmission information, and/or the identification information added in the field [data] in the third data transmission information.
  • the third data identifier can be carried in the third data transmission information, so that the charging device can quickly and accurately obtain the computing power of the first terminal device and/or the time of sharing the computing power.
  • sending the third data transmission information to the charging device includes: in the case of successful authentication with the charging device, sending The third data transmission information.
  • the authentication process between the first terminal device and the charging device may be that the first terminal device and the charging device exchange certificates or keys with each other, and complete the security authentication when the certificates or keys of both parties are consistent.
  • the first terminal device will only send the computing task when the access authentication of the first terminal device and the charging device is successful, ensuring the security of information transmission between the vehicle and the charging device.
  • the method before sending the third data transmission information to the charging device, the method further includes: receiving request information, the request information is used to Requesting the first terminal device to share computing resources; sending response information, where the response information is used to instruct the first terminal device to allow sharing of computing resources of the first terminal device.
  • the first terminal device can directly receive the request information from the network device, or the first terminal device can receive the request information from the charging device.
  • the request information is issued by the network device to the charging device. equipment and forwarded by the charging device to the first terminal device.
  • the first terminal device may directly send the response information to the network device, or the first terminal device may send the response information to the charging device, and the charging device forwards the response information to the network device.
  • the first terminal device receives the request information after it has passed the authentication with the charging device.
  • the first terminal device before the first terminal device sends the third data transmission information to the network device, the first terminal device may be allowed to share the computing resources of the first terminal device with the network device. In this way, the security of information transmission between the terminal device and the network device and/or the charging device can be further ensured.
  • the first data transmission information includes: information used to indicate that the computing task is a computing resource sharing task and/or information used to identify the computing task. data.
  • the data used to identify the computing task may be used to indicate the type of computing task data, and/or be used to indicate the content of the computing task,
  • the information used to indicate that the computing task is a computing resource sharing task and the data used to identify the computing task may be a [messageId] field added to the first data transmission information.
  • the information used to indicate that the computing task is a computing resource sharing task and the data used to identify the computing task may be identification information added in the field [data] in the first data transmission information.
  • the information used to indicate that the computing task is a computing resource sharing task may be a [messageId] field added to the first data transmission information.
  • the data used to identify the computing task may be identification information added in the field [data] in the first data transmission information.
  • the information used to indicate that the computing task is a computing resource sharing task may be identification information added in the field [data] in the first data transmission information.
  • the data used to identify the computing task may be the [messageId] field added in the first data transmission information.
  • the first data transmission information may carry information indicating that the computing task is a computing resource sharing task and/or data identifying the computing task, so that the first terminal device can quickly , accurately identify the first data transmission information.
  • the second data transmission information includes: data used to identify the execution result of the computing task.
  • the data used to identify the computing task execution result may be used to indicate the type of computing task execution result data, and/or to indicate the content of the computing task execution result,
  • the data used to identify the calculation task execution result may be the [messageId] field added in the second data transmission information, and/or the identification information added in the field [data] in the second data transmission information.
  • the data used to identify the execution result of the calculation task can be carried in the second data transmission information, so that the charging device can quickly and accurately identify the second data transmission information.
  • the method before performing the computing task, includes: determining a processing unit that performs the computing task, and the processing unit is related to the computing task. corresponding to the task type.
  • the computing power service module of the first terminal device can schedule the task to the location where the AI processor is located.
  • the computing unit executes.
  • the computing power service module can schedule it to the microprocessor unit (MCU) for execution.
  • the computing tasks can be distributedly scheduled and executed in the first terminal device according to the characteristics of the internal computing unit of the first terminal device, where distributed scheduling and execution can be understood as the first terminal device reasonably scheduling the processor to execute the computing tasks.
  • the first terminal device can determine the processing unit to perform the computing task according to the type of the computing task, so that the computing resources inside the first terminal device can be reasonably utilized to complete the computing task.
  • performing the computing task includes: executing the computing task in a trusted execution environment.
  • the trusted execution environment can be a (trusted execution environment, TEE) or a hardware security module (hardware security module, HSM) environment.
  • TEE trusted execution environment
  • HSM hardware security module
  • the first terminal device executes the computing task in a trusted execution environment, which can ensure the security of the execution of the computing task.
  • a method for sharing computing resources is provided.
  • the method is applied to a charging device.
  • the charging device is at least used to charge a first terminal device.
  • the method includes: receiving first data sent by a network device. Transmitting information, the first data transmission information is used to instruct the first terminal device to perform a computing task, the computing task is associated with data of the second terminal device; sending the first data transmission information to the first terminal device .
  • the charging device can receive the computing task from the network device and send the computing task to the first terminal device for execution.
  • the computing task is generated by the network device according to a request from the second terminal device.
  • the computing task is generated by the network device according to the request of the second terminal device, that is, the computing task is a computing power sharing task.
  • the method before receiving the first data transmission information sent by the network device, the method further includes: receiving a third data transmission sent by the first terminal device.
  • Information the third data transmission information is used to indicate the computing capability of the first terminal device and/or the time to share the computing capability; and the third data transmission information is sent to the network device.
  • the charging device can learn the computing power of the first terminal device and/or the time of sharing the computing power through the third data transmission information, and report the above matters to the network device.
  • the third data transmission information includes: a third data identifier, the third data identifier is shared with the computing power and/or of the first terminal device Computing power corresponds to time.
  • the third data identifier may be used to indicate the type of the third data, and/or the third data identifier may be used to indicate the content of the third data,
  • the third data identifier may be the [messageId] field added in the third data transmission information, and/or the identification information added in the field [data] in the third data transmission information.
  • the third data identifier can be carried in the third data transmission information, so that the charging device can quickly and accurately obtain the computing power of the first terminal device and/or the time of sharing the computing power.
  • receiving the third data transmission information sent by the first terminal device includes: in the case of successful authentication with the first terminal device, receiving The first terminal device sends the third data transmission information; the sending the third data transmission information to the network device includes: in the case of successful authentication with the network device, sending the third data transmission information to the network device. Send the third data transmission information.
  • the charging device needs to authenticate with the first terminal device and the network device respectively.
  • the charging device can receive the third data transmission information from the first terminal device and send the third data transmission information to the network device. 3. Data transmission information. In this way, the security of data transmission between the charging device, the first terminal device and the network device can be ensured.
  • the first data transmission information includes: information used to indicate that the computing task is a computing resource sharing task and/or information used to identify the computing task. data.
  • the data used to identify the computing task may be used to indicate the type of computing task data, and/or be used to indicate the content of the computing task,
  • the information used to indicate that the computing task is a computing resource sharing task and the data used to identify the computing task may be a [messageId] field added to the first data transmission information.
  • the information used to indicate that the computing task is a computing resource sharing task and the data used to identify the computing task may be identification information added in the field [data] in the first data transmission information.
  • the information used to indicate that the computing task is a computing resource sharing task may be a [messageId] field added to the first data transmission information.
  • the data used to identify the computing task may be identification information added in the field [data] in the first data transmission information.
  • the information used to indicate that the computing task is a computing resource sharing task may be identification information added in the field [data] in the first data transmission information.
  • the data used to identify the computing task may be the [messageId] field added in the first data transmission information.
  • the first data transmission information may carry information indicating that the computing task is a computing resource sharing task and/or data used to identify the computing task.
  • the first terminal device can quickly and accurately identify the first data transmission information.
  • the power consumption of the first terminal device for performing the computing task is determined; fourth data transmission information is sent to the network device, and the fourth data The transmission information is used to indicate the power consumption.
  • the charging device can determine the power consumption of the first terminal device when performing computing tasks, and feed back the power consumption to the network device, thereby facilitating billing by the network device.
  • a computing resource sharing method is provided.
  • the method is applied to a network device.
  • the method includes: sending first data transmission information to a charging device, where the first data transmission information is used to instruct the first terminal.
  • the device executes a computing task, where the computing task is associated with data of the second terminal device; and receives second data transmission information, where the second data transmission information includes an execution result of the computing task.
  • the network device sends the computing task to the charging device through the first data transmission information. After the computing task is completed by the first terminal device, the network device can obtain the result of the computing task. In this way, the network device can reasonably allocate computing tasks, so that the first terminal device can reasonably utilize the computing power of the idle processor when charging.
  • the computing task is generated by the network device according to a request of the second terminal device.
  • the computing task is generated by the network device according to the request of the second terminal device, that is, the computing task is a computing power sharing task.
  • the method before sending the first data transmission information to the charging device, the method further includes: receiving third data transmission information sent by the charging device, so The third data transmission information is used to indicate the computing capability of the first terminal device and/or the time for sharing the computing capability; the computing task is determined according to the third data transmission information.
  • the network device can reasonably arrange the computing tasks according to the computing power of the first terminal device and/or the time of sharing the computing power, so as to better utilize the computing power of the idle processor of the first terminal device when charging. .
  • the third data transmission information includes: a third data identifier, the third data identifier is shared with the computing power and/or of the first terminal device Computing power corresponds to time.
  • the third data identifier may be used to indicate the type of the third data, and/or the third data identifier may be used to indicate the content of the third data,
  • the third data identifier may be the [messageId] field added in the third data transmission information, and/or the identification information added in the field [data] in the third data transmission information.
  • the third data identifier can be carried in the third data transmission information, so that the network device can quickly and accurately obtain the computing power of the first terminal device and/or the time of sharing the computing power.
  • receiving the third data transmission information sent by the charging device includes: in the case of successful access authentication with the charging device, receiving the The charging device sends the third data transmission information.
  • authentication is required between the network device and the charging device. Only when the authentication is successful, the network device can receive the third data transmission information from the charging device. In this way, it can ensure that the charging device and the network device Data transmission between .
  • the method before receiving the charging device to send the third data transmission information, the method further includes: sending request information, the request information is used to Requesting the first terminal device to share computing resources; receiving response information, where the response information is used to instruct the first terminal device to allow sharing of computing resources of the first terminal device.
  • the network device may directly send the request information to the first terminal device, or the network device may send the request information to the charging device, and the charging device forwards the request information to the first terminal device.
  • the network device may receive the response information directly from the first terminal device, or the network device may receive the response information from the charging device. In this case, the response information is sent from the first terminal device to the charging device. Sent.
  • the network device before receiving the third data transmission information, the network device needs the first terminal device to allow sharing of the computing resources of the first terminal device. In this way, the security of information transmission between the terminal device and the network device and/or the charging device can be further ensured.
  • the first data transmission information includes: information used to indicate that the computing task is a computing resource sharing task and/or information used to identify the computing task. data.
  • the data used to identify the computing task may be used to indicate the type of computing task data, and/or be used to indicate the content of the computing task,
  • the information used to indicate that the computing task is a computing resource sharing task and the data used to identify the computing task may be a [messageId] field added to the first data transmission information.
  • the information used to indicate that the computing task is a computing resource sharing task and the data used to identify the computing task may be identification information added in the field [data] in the first data transmission information.
  • the information used to indicate that the computing task is a computing resource sharing task may be a [messageId] field added to the first data transmission information.
  • the data used to identify the computing task may be identification information added in the field [data] in the first data transmission information.
  • the information used to indicate that the computing task is a computing resource sharing task may be identification information added in the field [data] in the first data transmission information.
  • the data used to identify the computing task may be the [messageId] field added in the first data transmission information.
  • the first data transmission information may carry information indicating that the computing task is a computing resource sharing task and/or data used to identify the computing task.
  • the first terminal device can quickly and accurately identify the first data transmission information.
  • the second data transmission information includes: data used to identify the execution result of the computing task.
  • the data used to identify the computing task execution result may be used to indicate the type of computing task execution result data, and/or to indicate the content of the computing task execution result,
  • the data used to identify the calculation task execution result may be the [messageId] field added in the second data transmission information, and/or the identification information added in the field [data] in the second data transmission information.
  • the data used to identify the execution result of the computing task can be carried in the second data transmission information, which enables the network device to quickly and accurately identify the second data transmission information.
  • the method further includes: receiving fourth data transmission information sent by the charging device, the fourth data transmission information being used to indicate that the first terminal The power consumption of the device when performing the computing task; determining the payment amount according to the second data transmission information and the fourth data transmission information; recharging the payment to the account of the charging device or the first terminal device amount.
  • the network device can determine the payment amount based on the completion result of the computing task and the power consumption of the first terminal device when performing the computing task, thereby paying the car owner.
  • a fourth aspect provides a method for sharing computing resources.
  • the method is applied to a first terminal device.
  • the method includes: receiving first data transmission information, the first data transmission information being used to indicate the first data transmission information.
  • a terminal device performs a computing task, the computing task is associated with data of a second terminal device; performs the computing task; and sends second data transmission information to the charging device, the second data transmission information including the computing task As a result of execution, the charging device is used to charge at least the first terminal device.
  • a method for sharing computing resources is provided.
  • the method is applied to a charging device.
  • the charging device is at least used to charge a first terminal device.
  • the method includes: receiving a signal sent by the first terminal device.
  • the second data transmission information includes the execution result of the computing task, and the second data transmission information is sent to the network device.
  • a computing resource sharing method is provided.
  • the method is applied to a network device.
  • the method includes: sending first data transmission information to a first terminal device, where the first data transmission information is used to indicate the first terminal device.
  • a terminal device performs a computing task, and the computing task is associated with the data of the second terminal device; and receives second data transmission information sent by the charging device, and the second data transmission information includes the execution result of the computing task.
  • a computing resource sharing device which device includes: a transceiver unit configured to receive first data transmission information sent by a charging device, where the charging device is at least used to charge the first terminal device, so The first data transmission information is used to instruct the first terminal device to perform a computing task, and the computing task is associated with the data of the second terminal device; the processing unit is used to perform the computing task; the transceiver unit is also Used to send second data transmission information, where the second data transmission information includes the execution result of the computing task.
  • the computing task is generated by a network device according to a request from the second terminal device.
  • the transceiver unit is further configured to send third data transmission information to the charging device, where the third data transmission information is used to indicate the first The computing power of the end device and/or the time the computing power is shared.
  • the third data transmission information includes: a third data identifier, the third data identifier is shared with the computing capability and/or of the first terminal device Computing power corresponds to time.
  • the transceiver unit is specifically configured to send the third data transmission information to the charging device when authentication with the charging device is successful.
  • the transceiver unit is also used to receive request information, the request information is used to request the first terminal device to share computing resources; the transceiver unit is also used For sending response information, the response information is used to indicate that the first terminal device allows sharing of computing resources of the first terminal device.
  • the first data transmission information includes: information used to indicate that the computing task is a computing resource sharing task and/or information used to identify the computing task. data.
  • the second data transmission information includes: data used to identify the execution result of the computing task.
  • the processing unit is further configured to determine a processing unit that performs the computing task, and the processing unit corresponds to a task type of the computing task.
  • the processing unit is specifically configured to execute the computing task in a trusted execution environment.
  • a computing resource sharing device includes: a transceiver unit configured to receive first data transmission information sent by a network device, where the first data transmission information is used to instruct a first terminal device to perform a computing task. , the computing task is associated with the data of the second terminal device; the transceiver unit is also used to send the first data transmission information to the first terminal device.
  • the computing task is generated by the network device according to a request of the second terminal device.
  • the transceiver unit is further configured to receive third data transmission information sent by the first terminal device, where the third data transmission information is used to indicate that the The computing power of the first terminal device and/or the time for sharing the computing power; the transceiver unit is also used to send the third data transmission information to the network device.
  • the third data transmission information includes: a third data identifier, the third data identifier is shared with the computing capability and/or of the first terminal device Computing power corresponds to time.
  • the transceiver unit is specifically configured to receive the third terminal device sent by the first terminal device when the authentication with the first terminal device is successful. Data transmission information; if the authentication with the network device is successful, send the third data transmission information to the network device.
  • the first data transmission information includes: information used to indicate that the computing task is a computing resource sharing task and/or information used to identify the computing task. data.
  • the apparatus further includes: a processing unit, configured to determine the power consumption of the first terminal device to perform the computing task; the transceiver unit, further Used to send fourth data transmission information to the network device, where the fourth data transmission information is used to indicate the power consumption.
  • a computing resource sharing device which device includes: a transceiver unit configured to send first data transmission information to the charging device, where the first data transmission information is used to instruct the first terminal device to perform a computing task, The computing task is associated with data of the second terminal device; the transceiver unit is also configured to receive second data transmission information, where the second data transmission information includes the execution result of the computing task.
  • the computing task is generated by the network device according to a request of the second terminal device.
  • the device further includes a processing unit, and the transceiver unit is further configured to receive third data transmission information sent by the charging device, the third data
  • the transmission information is used to indicate the computing capability of the first terminal device and/or the time of sharing the computing capability; the processing unit is configured to determine the computing task according to the third data transmission information.
  • the third data transmission information includes: a third data identifier, the third data identifier is shared with the computing power and/or of the first terminal device Computing power corresponds to time.
  • the transceiver unit is specifically configured to receive the third data transmission sent by the charging device when the access authentication with the charging device is successful. information.
  • the transceiver unit is also used to send request information, the request information is used to request the first terminal device to share computing resources; the transceiver unit is also used to In receiving response information, the response information is used to indicate that the first terminal device allows sharing of computing resources of the first terminal device.
  • the first data transmission information includes: information used to indicate that the computing task is a computing resource sharing task and/or information used to identify the computing task. data.
  • the second data transmission information includes: data used to identify the execution result of the computing task.
  • the transceiver unit is configured to receive fourth data transmission information sent by the charging device, and the fourth data transmission information is used to indicate the first The power consumption of the terminal device when executing the computing task; the processing unit is also used to determine the payment amount according to the second data transmission information and the fourth data transmission information; the processing unit is also used to provide The account of the charging device or the first terminal device is recharged with the payment amount.
  • a computing resource sharing device configured to receive first data transmission information.
  • the first data transmission information is used to instruct the first terminal device to perform a computing task.
  • the computing task is associated with the data of the second terminal device; the processing unit is used to perform the computing task; the transceiver unit is also used to send second data transmission information to the charging device, the second data transmission information includes the According to the execution result of the computing task, the charging device is at least used to charge the first terminal device.
  • a computing resource sharing device includes: a transceiver unit configured to receive second data transmission information sent by the first terminal device, where the second data transmission information includes execution of a computing task. As a result, the transceiver unit is also used to send the second data transmission information to the network device.
  • a computing resource sharing device includes: a transceiver unit configured to send first data transmission information to a first terminal device, where the first data transmission information is used to instruct the first terminal device. Execute a computing task, the computing task is associated with the data of the second terminal device; the transceiver unit is also used to receive the second data transmission information sent by the charging device, the second data transmission information includes the calculation task Results of the.
  • a computing resource sharing device which device includes: at least one processor and a memory, the at least one processor is coupled to the memory, and is used to read and execute instructions in the memory, the Devices are used to perform the methods in each of the above aspects.
  • a fourteenth aspect a computer-readable medium is provided.
  • the computer-readable medium stores program code.
  • the computer program code When the computer program code is run on a computer, it causes the computer to perform the methods in the above aspects.
  • a chip in a fifteenth aspect, includes: at least one processor and a memory.
  • the at least one processor is coupled to the memory and is used to read and execute instructions in the memory.
  • the device is used to Implement the methods in each of the above aspects.
  • a computer program product includes: a computer program, which when the computer program is run, causes the computer to execute the methods in the above aspects.
  • a vehicle in a seventeenth aspect, includes: at least one processor and a memory.
  • the at least one processor is coupled to the memory and is used to read and execute instructions in the memory.
  • the vehicle is used to Implement the methods in each of the above aspects.
  • Figure 1 is a functional schematic diagram of a vehicle provided by an embodiment of the present application.
  • Figure 2 is a schematic diagram of the computing power usage of the intelligent driving domain controller provided by the embodiment of this application;
  • FIG. 3 is a schematic diagram of a vehicle charging through a PLC cable and a charging pile according to the embodiment of the present application;
  • Figure 4 is a system architecture applicable to the computing resource sharing method provided by the embodiment of the present application.
  • Figure 5 is an application scenario diagram of the computing resource sharing method provided by the embodiment of the present application.
  • Figure 6 is another application scenario diagram of the computing resource sharing method provided by the embodiment of the present application.
  • Figure 7 is a computing resource sharing method provided by an embodiment of the present application.
  • Figure 8 is another computing resource sharing method provided by an embodiment of the present application.
  • Figure 9 is yet another computing resource sharing method provided by an embodiment of the present application.
  • Figure 10 is a data transmission method provided by an embodiment of the present application.
  • Figure 11 is a schematic flow chart of the vehicle open computing power service provided by the embodiment of the present application.
  • Figure 12 is a computing resource sharing device provided by an embodiment of the present application.
  • Figure 13 is another computing resource sharing device provided by an embodiment of the present application.
  • FIG. 1 is a functional schematic diagram of a vehicle 100 provided by an embodiment of the present application. It should be understood that FIG. 1 and related descriptions are only examples and do not limit the vehicle in the embodiment of the present application.
  • the vehicle 100 may be configured in a fully or partially autonomous driving mode, or may be manually driven by a user.
  • the vehicle 100 can obtain its surrounding environment information through the sensing system 120, and obtain an autonomous driving strategy based on the analysis of the surrounding environment information to achieve fully autonomous driving, or present the analysis results to the user to achieve partially autonomous driving.
  • Vehicle 100 may include various subsystems, such as perception system 120 , computing platform 130 , and display device 140 .
  • vehicle 100 may include more or fewer subsystems, and each subsystem may include one or more components.
  • each subsystem and component of vehicle 100 may be interconnected through wired or wireless means.
  • Sensing system 120 may include several types of sensors that sense information about the environment surrounding vehicle 100 .
  • the sensing system 120 may include a positioning system, which may be a global positioning system (GPS), Beidou system, or other positioning systems.
  • the sensing system 120 may include one or more of an inertial measurement unit (IMU), lidar, millimeter wave radar, ultrasonic radar, and camera device.
  • IMU inertial measurement unit
  • the computing platform 130 may include processors 131 to 13n (n is a positive integer).
  • a processor is a circuit with signal processing capabilities.
  • the processor may be a circuit with instruction reading and execution capabilities.
  • CPU central processing unit
  • microprocessor graphics processing unit
  • GPU graphics processing unit
  • DSP digital signal processor
  • the processor can realize certain functions through the logical relationship of the hardware circuit. The logical relationship of the hardware circuit is fixed or can be reconstructed.
  • the processor is an application-specific integrated circuit (application-specific integrated circuit). ASIC) or programmable logic device (PLD) implemented hardware circuit, such as FPGA.
  • ASIC application-specific integrated circuit
  • PLD programmable logic device
  • the process of the processor loading the configuration file and realizing the hardware circuit configuration can be understood as the process of the processor loading instructions to realize the functions of some or all of the above units.
  • it can also be a hardware circuit designed for artificial intelligence, which can be understood as an ASIC, such as a neural network processing unit (NPU), tensor processing unit (TPU), deep learning processing Unit (deep learning processing unit, DPU), etc.
  • the computing platform 130 may also include a memory, which is used to store instructions. Some or all of the processors 131 to 13n may call instructions in the memory to implement corresponding functions.
  • Computing platform 130 may control functionality of vehicle 100 based on input received from various subsystems (eg, perception system 120 ). In some embodiments, computing platform 130 is operable to provide control of many aspects of vehicle 100 and its subsystems.
  • An autonomous vehicle traveling on the road can identify objects within its surrounding environment to determine adjustments to its current speed.
  • the objects may be other vehicles, traffic control equipment, or other types of objects.
  • each identified object can be considered independently and based on the object's respective characteristics, such as its current speed, acceleration, distance from the vehicle, etc., can be used to determine the speed to which the autonomous vehicle will adjust.
  • the vehicle 100 or a sensing and computing device associated with the vehicle 100 may perform the processing based on the characteristics of the identified object and the state of the surrounding environment (eg, traffic, rain, ice on the road, etc. etc.) to predict the behavior of the identified object.
  • each recognized object depends on the behavior of each other, so it is also possible to predict the behavior of a single recognized object by considering all recognized objects together.
  • the vehicle 100 is able to adjust its speed based on the predicted behavior of the identified objects.
  • the autonomous vehicle is able to determine what stable state the vehicle will need to adjust to (eg, accelerate, decelerate, or stop) based on the predicted behavior of the object.
  • other factors may also be considered to determine the speed of the vehicle 100, such as the lateral position of the vehicle 100 in the road being traveled, the curvature of the road, the proximity of static and dynamic objects, etc.
  • the computing device may also provide instructions to modify the steering angle of the vehicle 100 so that the autonomous vehicle follows a given trajectory and/or maintains contact with objects in the vicinity of the autonomous vehicle (e.g., , the safe lateral and longitudinal distance between cars in adjacent lanes on the road).
  • objects in the vicinity of the autonomous vehicle e.g., , the safe lateral and longitudinal distance between cars in adjacent lanes on the road.
  • the vehicle 100 (sometimes referred to as a vehicle) in this application is a vehicle in a broad sense, which can be a means of transportation (such as a car, a truck, a motorcycle, a train, an airplane, a ship, etc.), an industrial vehicle (such as a forklift, a trailer, etc.) tractors, etc.), engineering vehicles (such as excavators, bulldozers, cranes, etc.), agricultural equipment (such as lawn mowers, harvesters, etc.), amusement equipment, toy vehicles, etc.
  • This application does not limit the types of vehicles.
  • the computing power of the processors on the domain controllers in vehicles has been significantly improved.
  • the computing power of the central processing units on the in-vehicle gateways, smart cockpit controllers, and smart driving controllers The computing power is also getting stronger and stronger.
  • the strongest AI computing power in the car is mainly used in intelligent driving scenarios.
  • the model required for intelligent driving is completed in the cloud, it is pushed to the intelligent driving domain controller through the network or other tools, and the NPU of the intelligent driving domain controller uses the model to perform inference and complete decision-making.
  • the network in this process can be a cellular network.
  • the reasoning and decision-making process in this process can be carried out in the driving scenario of the vehicle, mainly completing tasks such as sensor data fusion, reasoning and planning and decision-making.
  • computing power sharing the sharing of computing resources of processors may be called computing power sharing, and the computing capabilities of processors may be referred to as computing power.
  • OTA over-the-air technology
  • the intelligent driving domain controller can be directly or indirectly connected to the battery management module (battery management system, BMS) and/or on-board charger (OBC) through gateway 1 to gateway 4.
  • BMS battery management system
  • OBC on-board charger
  • the BMS module can obtain power from the charging pile or OBC, so that the automatic driving controller can implement the automatic driving function within the corresponding power range.
  • a charging pile may also be called a charging device, and any device that can provide charging services and/or network services to vehicles belongs to the so-called charging pile or charging equipment in the embodiment of the present application.
  • FIG. 3 is a schematic diagram of a vehicle charging through a PLC cable and a charging pile according to an embodiment of the present application.
  • charging piles can use PLC cables to charge electric vehicles.
  • Cloud servers can realize functions such as time-sharing leasing, data collection, and revenue statistics through charging piles.
  • PLC cables can not only be used for charging electric vehicles, but also for data transmission.
  • the vehicle's AI processor does not need to perform autonomous driving tasks, and other processors in the vehicle are basically idle, and the computing power of each processor in the vehicle Force was not applied properly.
  • Embodiments of the present application provide a computing resource sharing method, device and terminal equipment, which can share and reasonably utilize the computing power of an idle processor when the terminal equipment is charging.
  • the terminal device described in the embodiments of this application can be a vehicle, a mobile phone, a computer, a tablet, etc.
  • the computing power operator referred to in the embodiment of this application may be a cloud server or a network device, which may interact with charging piles and/or vehicles.
  • Figure 4 is a system architecture applicable to the computing resource sharing method provided by the embodiment of the present application.
  • the system architecture includes: computing operators, charging piles and vehicles.
  • the computing power operator Orchestrator is mainly responsible for the service orchestration of computing power, including: computing power task scheduling module and expense management module.
  • the charging pile includes an intermediate agent module, including: service discovery module, expense management module and data routing module.
  • the service discovery module is mainly responsible for discovering vehicles that can provide shared computing power services
  • the cost management module is mainly responsible for the cost management of vehicle execution tasks
  • the data routing module is mainly responsible for distributing the received computing power tasks to the vehicle for execution and receiving the received computing power.
  • the task execution results are uploaded to the computing power operator.
  • the vehicle is responsible for building a safe and trustworthy computing environment, mapping the computing tasks issued by the cloud to the computing unit in the vehicle for execution, and uploading the computing results to the computing operator through the charging pile.
  • the vehicle mainly includes: collaborative agent module, security and trustworthiness module, operation management module and calculation execution module.
  • Figure 5 is an application scenario diagram of the computing resource sharing method provided by the embodiment of the present application.
  • the computing resource sharing method requires the charging pile to have broadband access capabilities, and the car owner needs to agree to provide computing power sharing services when parking and charging.
  • the connection between the charging pile and the vehicle can use the PLC cable shown in Figure 3.
  • the computing power operator on the cloud server can match the demanders and providers of computing power.
  • the cloud server can send the computing power task to the vehicle connected to the charging pile.
  • the matching process may be that the first vehicle connected to the charging pile has computing power service requirements, and it reports the computing power service requirements to the computing power operator through the charging pile, and the computing power operator discovers that it is also connected to the charging pile.
  • the computing power operator can generate a computing power task and send the computing power task to the second vehicle through the charging pile for execution.
  • the second vehicle can use the safe computing environment in the vehicle to complete the tasks to be performed in scenarios such as resting at night or long-term parking, and uploads the completed tasks to the cloud server through the charging pile.
  • the cloud server can provide the benefits of completing the task to the car owner based on how well the second vehicle completes the task. Among them, the income from completing the task can be provided to the car owner by recharging the charging pile or by remitting the income to the user's designated account.
  • computing power tasks referred to in the embodiments of this application may also be called computing tasks or computing power sharing tasks.
  • the display interface 500 includes user account login information 501, Bluetooth function icon 502, Wi-Fi function icon 503, cellular network signal icon 504, vehicle map application search box 505, switch to a card displaying all applications installed in the vehicle 506, Switch to a card 507 that displays the car music application, a card 508 that displays the vehicle's remaining power and remaining mileage, and a card 509 that displays the vehicle's 360-degree (°) surround function.
  • the vehicle map application search box 505 may include a home control 5051 and a go to work control 5052 set by the user.
  • the function bar 510 includes an icon 511 for switching to display the central control large screen desktop, a vehicle interior circulation icon 512, a driver seat heating function icon 513, a driver area air conditioning temperature display icon 514, a passenger area air conditioning temperature display icon 515, and a passenger seat heating function icon 513.
  • vehicle 518 can be connected to the charging pile 520 through the PLC cable 519.
  • the display on the vehicle display screen can be as shown in (d) in Figure 5 shown.
  • vehicle 518 may be vehicle 100 in FIG. 1 .
  • the vehicle's display screen includes a prompt box 521 , which prompts the user that the vehicle 518 has been connected to the charging pile 520 and asks the user whether to perform security authentication.
  • the computing power operator can issue computing power tasks to vehicle 518 through the cloud server.
  • the user Before or after starting the security authentication, the user needs to enable the vehicle's computing power sharing service permissions.
  • the process of authenticating the vehicle and the charging pile can be that the vehicle and the charging pile exchange certificates or keys with each other, and the security authentication is completed when the certificates or keys of both parties are consistent.
  • the graphical user interface is a computing power sharing service interface.
  • the GUI includes: computing power sharing service opening or closing control 522, description text 523 and save control 524 , before or after the safety certification of the vehicle and charging pile starts, the user can turn on or off the computing power sharing service of the vehicle through control 522.
  • the computing power sharing service is turned on, the user's vehicle will share part of the computing power to process the computing power tasks received from the computing power operator. After the vehicle completes the computing power tasks, the user will receive corresponding benefits.
  • the GUI is a computing power reporting interface, which may include computing power service capabilities 524 , controls 525 , and reporting controls 526 .
  • the computing power service capability 524 can display the available resources and shared resource opening time of the vehicle's CPU, NPU, GPU, and memory. After the security authentication is successful, the user can set the time for sharing computing power through control 525, and report the computing power sharing capability of the vehicle to the computing power operator through reporting control 526.
  • a prompt box 527 may be displayed on the vehicle's display screen to remind the user that the computing power task has been received and that the task will It will occupy XX resources of the vehicle's XX processor and ask the user whether to perform the task.
  • the GUI shown in (h) in Figure 5 will be displayed on the vehicle's display screen.
  • the GUI is the computing task details interface. From this interface, the user can view the task name, the processor resources required to execute the task, and the estimated time to execute the computing task. time and the benefits that the user can get after completing the task. After understanding the details of the computing power task, the user can click control 528 to execute the computing power task.
  • the GUI shown in (i) in Figure 5 can be displayed on the vehicle's display screen.
  • the GUI is a task profit interface.
  • the interface includes a description text 529, through which the user can know the profit situation of completing the computing power task. Among them, the income from completing tasks can be recharged to charging piles or transferred to the account bound by the user.
  • the vehicle can share part of the computing power of the in-vehicle processor to perform the computing tasks issued by the computing power operator in the parking and charging scenario, thereby obtaining corresponding benefits.
  • Figure 6 is another application scenario diagram of the computing resource sharing method provided by the embodiment of the present application.
  • the execution status of the task can be sent to the user's mobile phone, and the user can view the performance of the vehicle's computing task on the mobile phone.
  • the user's mobile phone can display the task name, resource usage of the vehicle processor, execution time of the computing task, vehicle status, vehicle charging details, and task benefits.
  • the user's mobile phone may display a prompt box 601 to prompt the user's computing power operator to transfer the task revenue to the user's account. The user can view the revenue details by clicking on control 602.
  • the GUI is a revenue details interface, which can include: the user's account number, the license plate number of the vehicle task performed, the name of the task performed, the completion status of the task, and income.
  • a description text 603 may be displayed on the display screen of the user's mobile phone, which is used to inform the user that if he has any questions about the income, he can provide feedback to the device operator through the control 604.
  • the user can check the actual situation of the vehicle's execution of the computing task on the mobile phone, and promptly learn the benefits of the task after the task is completed, thus ensuring the user's right to know during the entire execution of the computing task.
  • the application scenario in Figure 6 can also be replaced by a mobile phone sharing the computing power of its own processor while charging, and receiving computing power tasks from the computing power operator. After the mobile phone completes the computing task, the computing results are uploaded to the cloud server. And obtain corresponding benefits from computing power operators.
  • the interactive interface of the mobile phone is similar to (a) and (b) in Figure 6, which will not be described again here.
  • Figure 7 is a computing resource sharing method provided by an embodiment of the present application.
  • the method 700 can be applied to the vehicle 100 of Figure 1 or to the application scenarios described in Figure 5 or Figure 6.
  • the method 700 can include the following steps.
  • the network device sends the first data transmission information to the charging device.
  • the first data transmission information is used to instruct the first terminal device to perform a computing task, and the computing task is associated with the data of the second terminal device.
  • the charging device may also be called a charging pile, which is used to charge at least a first terminal device, which may be a mobile phone, a vehicle, a tablet, or other terminal device.
  • Network equipment can be computing power operators, cloud servers, etc.
  • the association of the computing task with the data of the second terminal device can be understood as: the computing task is generated by the network device according to the request of the second terminal device, that is, the computing task is a computing power sharing task.
  • the above computing tasks may include: batch data cleaning, mini-batch training, and batch inference.
  • batch data cleaning can refer to the computing task of discovering and correcting errors in data files
  • small batch training can refer to the computing task of using sample data to optimize algorithms
  • batch inference can refer to the computing task of inputting the provided data into the trained neural network. In the model, the corresponding calculation results are output.
  • the first data transmission information may be data carrying a computing task, or the first data transmission information may be a control command used to control the first terminal device to perform the computing task.
  • the first data transmission information may include: information indicating that the computing task is a computing resource sharing task and/or data used to identify the computing task.
  • the data used to identify the computing task may be used to indicate the type of computing task data, and/or to indicate the content of the computing task.
  • the above-mentioned information indicating that the computing task is a computing resource sharing task and the data used to identify the computing task may be the [messageId] field added to the first data transmission information.
  • the above information used to indicate that the computing task is a computing resource sharing task and the data used to identify the computing task may be identification information added in the field [data] in the first data transmission information.
  • the above-mentioned information used to indicate that the computing task is a computing resource sharing task may be the [messageId] field added in the first data transmission information; the above-mentioned data used to identify the computing task may be in the first data transmission information Identification information added in field [data].
  • the above-mentioned information used to indicate that the computing task is a computing resource sharing task may be identification information added in the field [data] in the first data transmission information; the above-mentioned data used to identify the computing task may be the first data The [messageId] field added to the transmission information.
  • the first data transmission information may carry information indicating that the computing task is a computing resource sharing task and/or data used to identify the computing task.
  • the network device and the first terminal device can quickly and accurately identify the first data transmission information.
  • the method further includes: the first terminal device sends third data transmission information to the charging device.
  • the charging device may send the third data transmission information to the charging device.
  • the third data transmission information is used to indicate the computing capability of the first terminal device and/or the time of sharing the computing capability.
  • the network device can learn the computing power of the first terminal device and/or the time of sharing the computing power, so that the network device can learn the computing power of the first terminal device and/or the time of sharing the computing power. Time to issue computing tasks.
  • the first terminal device may send the third data transmission information to the charging device if the authentication with the charging device is successful, and/or the charging device may send the third data transmission information to the network device if the authentication with the network device is successful. 3. Data transmission information.
  • the authentication process between the first terminal device and the charging device may be that the first terminal device and the charging device exchange certificates or keys with each other, and the authentication is completed when the certificates or keys of both parties are consistent.
  • the authentication process between the charging device and the network device can also be that the charging device and the network device exchange certificates or keys, and the authentication is completed when the certificates or keys of both parties are consistent.
  • the third data transmission information includes: a third data identifier corresponding to the computing capability of the first terminal device and/or the time of sharing the computing capability.
  • the third data identifier may be used to indicate the type of the third data, and/or the third identification data may be used to indicate the content of the third data.
  • the charging equipment and network equipment can quickly and accurately identify the third data transmission information.
  • the third data identifier may be the [messageId] field added in the third data transmission information, and/or the identification information added in the field [data] in the third data transmission information.
  • the method before the first terminal device sends the third data transmission information to the charging device (before step S701), the method further includes: the first terminal device receives request information sent by the network device, the request information is used to request the third data transmission information.
  • a terminal device shares computing resources; the first terminal device sends response information to the network device, and the response information is used to instruct the first terminal device to allow sharing of the computing resources of the first terminal device.
  • the first terminal device can directly receive the request information from the network device, or the first terminal device can receive the request information from the charging device.
  • the request information is issued by the network device to the charging device. equipment and forwarded by the charging device to the first terminal device.
  • the first terminal device may directly send the response information to the network device, or the first terminal device may send the response information to the charging device, and the charging device forwards the response information to the network device.
  • the first terminal device receives the request information after it has passed the authentication with the charging device.
  • the first terminal device before the first terminal device sends the third data transmission information to the network device, the first terminal device may be allowed to share the computing resources of the first terminal device with the network device. In this way, the security of information transmission between the terminal device and the network device and/or the charging device can be further ensured.
  • the charging device sends the first data transmission information to the first terminal device.
  • the first terminal device performs the computing task.
  • the first terminal device can use an idle processor to perform the computing task indicated by the information.
  • the first terminal device can perform the above computing tasks in a trusted environment, where the trusted execution environment can be a (trusted execution environment, TEE) or a hardware security module (hardware security module, HSM) environment.
  • TEE trusted execution environment
  • HSM hardware security module
  • a trusted execution environment can be an area on the CPU.
  • the function of this area is to provide a safer space for the execution of data and code, and to ensure the confidentiality and integrity of data and code.
  • the first terminal device executes the computing task in a trusted execution environment, which can ensure the security of the execution of the computing task.
  • the method further includes: the first terminal device determines a task type of the computing task; and the first terminal device determines a processing unit for executing the computing task according to the task type.
  • the computing power service module of the first terminal device can schedule the task to the computing unit where the AI processor is located for execution. If the network device delivers a machine learning task, the computing power service module can schedule it to the microprocessor unit (MCU) for execution.
  • the computing tasks can be distributedly scheduled and executed in the first terminal device according to the characteristics of the internal computing unit of the first terminal device, where distributed scheduling and execution can be understood as the first terminal device reasonably scheduling the processor to execute the computing tasks.
  • the first terminal device can determine the processing unit to perform the computing task according to the type of the computing task, so that the computing resources inside the first terminal device can be reasonably utilized to complete the computing task.
  • the first terminal device sends the second data transmission information to the network device.
  • the first terminal device may directly send the second data transmission information to the network device, or may first send the second data transmission information to the charging device, and then the charging device forwards the second data transmission information to the network device.
  • the second data transmission information includes execution results of the computing task.
  • the second data transmission information may include: data used to identify the computing task execution result, the data used to identify the computing task execution result may be used to indicate the type of computing task execution result data, and/or be used to indicate the computing task execution The content of the result.
  • the data used to identify the execution result of the computing task may be the [messageId] field added in the second data transmission information, and/or the identification information added in the field [data] in the second data transmission information.
  • the first terminal device after connecting to the charging device, can receive the computing task sent by the charging device, use the idle processor in the first terminal device to perform the computing task, and send the computing result to the charging device or the network equipment. In this way, the computing power of the idle processor can be shared and reasonably utilized when the first terminal device is charging.
  • the method further includes: the charging device determines the power consumption of the first terminal device when performing the computing task, and sends fourth data transmission information to the network device, the fourth data transmission information is used to indicate The power consumption.
  • the network device may determine the payment amount based on the second data transmission information and the fourth data transmission information. After determining the payment amount, the network device recharges the payment amount to the account of the charging device or the first terminal device.
  • the network device can determine the payment amount based on the completion result of the computing task and the power consumption of the first terminal device when performing the computing task, thereby paying the car owner.
  • Figure 8 is a computing resource sharing method provided by an embodiment of the present application.
  • Method 800 can be applied to the vehicle 100 of Figure 1 or to the application scenarios described in Figure 5 or Figure 6.
  • Method 800 and method 700 can be As a parallel technical solution, method 800 may include the following steps.
  • the first terminal device receives the first data transmission information sent by the network device.
  • the first data transmission information is used to instruct the first terminal device to perform a computing task, and the computing task is associated with the data of the second terminal device.
  • the charging device may also be called a charging pile, which is used to charge at least a first terminal device, which may be a mobile phone, a vehicle, a tablet, or other terminal device.
  • Network equipment can be computing power operators, cloud servers, etc.
  • the association of the computing task with the data of the second terminal device can be understood as: the computing task is generated by the network device according to the request of the second terminal device, that is, the computing task is a computing power sharing task.
  • the above computing tasks may include: batch data cleaning, mini-batch training, and batch inference.
  • batch data cleaning can refer to the computing task of discovering and correcting errors in data files
  • small batch training can refer to the computing task of using sample data to optimize algorithms
  • batch inference can refer to the computing task of inputting the provided data into the trained neural network model. , output the corresponding calculation results.
  • the first data transmission information may be data carrying a computing task, or the first data transmission information may be a control command used to control the first terminal device to perform the computing task.
  • the first data transmission information may include: information used to indicate that the computing task is a computing resource sharing task and/or data used to identify the computing task.
  • the data used to identify the computing task may be used to indicate the type of computing task data, and/or to indicate the content of the computing task.
  • the above-mentioned information indicating that the computing task is a computing resource sharing task and the data used to identify the computing task may be the [messageId] field added to the first data transmission information.
  • the above information used to indicate that the computing task is a computing resource sharing task and the data used to identify the computing task may be identification information added in the field [data] in the first data transmission information.
  • the above-mentioned information used to indicate that the computing task is a computing resource sharing task may be the [messageId] field added in the first data transmission information; the above-mentioned data used to identify the computing task may be in the first data transmission information Identification information added in field [data].
  • the above-mentioned information used to indicate that the computing task is a computing resource sharing task may be identification information added in the field [data] in the first data transmission information; the above-mentioned data used to identify the computing task may be the first data The [messageId] field added to the transmission information.
  • the first data transmission information may carry information indicating that the computing task is a computing resource sharing task and/or data used to identify the computing task.
  • the first terminal device can quickly and accurately identify the first data transmission information.
  • the method further includes: the first terminal device sends third data transmission information to the charging device.
  • the charging device may send the third data transmission information to the charging device.
  • the third data transmission information is used to indicate the computing capability of the first terminal device and/or the time of sharing the computing capability.
  • the network device can learn the computing power of the first terminal device and/or the time of sharing the computing power, so that the network device can learn the computing power of the first terminal device and/or the time of sharing the computing power. Time to issue calculation tasks.
  • the first terminal device may send the third data transmission information to the charging device if the authentication with the charging device is successful, and/or the charging device may send the third data transmission information to the network device if the authentication with the network device is successful. 3. Data transmission information.
  • the authentication process between the first terminal device and the charging device may be that the first terminal device and the charging device exchange certificates or keys with each other, and the authentication is completed when the certificates or keys of both parties are consistent.
  • the authentication process between the charging equipment and the network equipment can also be the exchange of certificates or keys between the charging equipment and the network equipment, and the authentication is completed when the certificates or keys of both parties are consistent.
  • the third data transmission information includes: a third data identifier corresponding to the computing capability of the first terminal device and/or the time of sharing the computing capability.
  • the third data identifier may be used to indicate the type of the third data, and/or the third identification data may be used to indicate the content of the third data.
  • the charging equipment and network equipment can quickly and accurately identify the third data transmission information.
  • the third data identifier may be the [messageId] field added in the third data transmission information, and/or the identification information added in the field [data] in the third data transmission information.
  • the method before the first terminal device sends the third data transmission information to the charging device (before step S801), the method further includes: the first terminal device receives request information sent by the network device, the request information is used to request the third data transmission information.
  • a terminal device shares computing resources; the first terminal device sends response information to the network device, and the response information is used to instruct the first terminal device to allow sharing of the computing resources of the first terminal device.
  • the first terminal device can directly receive the request information from the network device, or the first terminal device can receive the request information from the charging device.
  • the request information is issued by the network device to the charging device. equipment and forwarded by the charging device to the first terminal device.
  • the first terminal device may directly send the response information to the network device, or the first terminal device may send the response information to the charging device, and the charging device forwards the response information to the network device.
  • the first terminal device receives the request information after it has passed the authentication with the charging device.
  • the first terminal device before the first terminal device sends the third data transmission information to the network device, the first terminal device may be allowed to share the computing resources of the first terminal device with the network device. In this way, the security of information transmission between the terminal device and the network device and/or the charging device can be further ensured.
  • the first terminal device performs a computing task.
  • the first terminal device can use an idle processor to perform the computing task indicated by the information.
  • the first terminal device may perform the above computing task in a trusted environment, where the trusted execution environment may be a TEE or HSM environment.
  • the trusted execution environment may be a TEE or HSM environment.
  • the first terminal device executes the computing task in a trusted execution environment, which can ensure the security of the execution of the computing task.
  • the method before step S802, the method further includes: the first terminal device determines a task type of the computing task; and the first terminal device determines a processing unit for executing the computing task according to the task type.
  • the computing power service module of the first terminal device can schedule the task to the computing unit where the AI processor is located for execution. If the network device delivers a machine learning task, the computing power service module can schedule it to the microprocessor MCU for execution.
  • the computing tasks can be distributedly scheduled and executed in the first terminal device according to the characteristics of the internal computing unit of the first terminal device, where distributed scheduling and execution can be understood as the first terminal device reasonably scheduling the processor to execute the computing tasks.
  • the first terminal device can determine the processing unit to perform the computing task according to the type of the computing task, so that the computing resources inside the first terminal device can be reasonably utilized to complete the computing task.
  • the first terminal device sends the second data transmission information to the charging device.
  • the second data transmission information may include: data used to identify the computing task execution result, the data used to identify the computing task execution result may be used to indicate the type of computing task execution result data, and/or be used to indicate the computing task execution The content of the result.
  • the data used to identify the execution result of the computing task may be the [messageId] field added in the second data transmission information, and/or the identification information added in the field [data] in the second data transmission information.
  • the charging device sends second data transmission information to the network device.
  • the first terminal device after the first terminal device is connected to the charging device, it can receive the computing task sent by the charging device, use the idle processor in the first terminal device to perform the computing task, and send the calculation result to the charging device. In this way, the computing power of the idle processor can be shared and reasonably utilized when the first terminal device is charging.
  • the method further includes: the charging device determines the power consumption of the first terminal device when performing the computing task, and sends fourth data transmission information to the network device, the fourth data transmission information is used to indicate The power consumption.
  • the network device may determine the payment amount based on the second data transmission information and the fourth data transmission information. After determining the payment amount, the network device recharges the payment amount to the account of the charging device or the first terminal device.
  • the network device can determine the payment amount based on the completion result of the computing task and the power consumption of the first terminal device when performing the computing task, thereby paying the car owner.
  • Figure 9 is another computing resource sharing method provided by an embodiment of the present application.
  • Method 900 takes the first terminal device as a vehicle as an example to introduce the implementation process of method 700 or method 800 in detail. The following four key points need to be experienced when executing method 900. node.
  • the car owner needs to agree to the vehicle providing computing power services when parking and charging.
  • the way the car owner agrees to provide computing power services can be by checking the provision of computing power service agreement on the vehicle display or by turning on the provision of computing power services in the vehicle's application.
  • Computing power service function Secondly, the cloud service function of the computing operator needs to be able to detect that the vehicle is connected to the charging pile. The vehicle can connect to the charging pile through a PLC cable. Thirdly, after the connection between the vehicle and the charging pile is completed, mutual authentication is required. After the mutual authentication is passed, the vehicle and the charging pile can build a secure transmission environment to avoid illegal manipulation of computing tasks or cloud servers by hackers. Finally, the cloud service function provided by the computing power operator can obtain the computing power service details of the vehicle.
  • the cloud service function of the computing power operator can schedule the currently pending computing power tasks to the vehicle in a secure transmission manner based on the vehicle's computing power service details.
  • the vehicle When the service is running, it is necessary to first construct a trusted computing environment for the vehicle. After receiving the computing task, the vehicle needs to perform it in the trusted computing environment and map the computing task to the computing unit in the vehicle for operation. After the operation is completed, the vehicle can safely upload the calculation results to the computing operator's cloud server through the charging pile.
  • the computing power operator will provide the income from completing the task to the car owner based on the completion of the task.
  • method 900 may include the following steps.
  • the vehicle sends instruction information to the charging pile to inform the owner of the charging pile that he has agreed to provide computing power sharing services.
  • the user can enable the computing power sharing service through the control 522 shown in (e) in Figure 5 .
  • the process of authenticating the vehicle and the charging pile can be that the vehicle and the charging pile exchange certificates or keys with each other, and the security authentication is completed when the certificates or keys of both parties are consistent.
  • the process of authentication between the charging pile and the computing power operator can be that the charging pile and the computing power operator exchange certificates or keys with each other, and complete the security authentication when the certificates or keys of both parties are consistent.
  • the vehicle reports the computing service capability to the charging pile.
  • the vehicle can report the computing power service capabilities to the charging pile in the manner shown in (f) in Figure 5.
  • the content of the report may include but is not limited to: available resources and computing power services of the CPU, NPU, GPU, and memory. The time when the ability can be opened.
  • the vehicle reporting the computing power service capability to the charging pile can also be implemented through the third data transmission information in method 700 or method 800.
  • the charging pile reports the vehicle's computing power service capability to the computing power operator.
  • the content of the report is basically the same as the content reported by the vehicle to the charging pile in step S904.
  • the charging pile reporting the computing power service capability to the computing power operator can also be implemented through the third data transmission information in method 700 or method 800.
  • the computing power operator arranges and schedules the computing power service capabilities of the cluster vehicle and the computing tasks of the demand side to determine the tasks to be executed on the vehicle.
  • the computing power of the computing power operator cluster vehicle can be understood as the computing power operator collecting information about the vehicles that can provide computing power services.
  • the computing power operator delivers the ciphertext data of the computing task to the charging pile.
  • the ciphertext data may include resource descriptions such as batch data cleaning, mini-batch training, and batch inference.
  • data cleaning can refer to the computing task of discovering and correcting identifiable errors in data files
  • small batch training can refer to the computing task of using training samples to optimize algorithms
  • batch inference can refer to the computing task of inputting the provided data into the trained neural network. In the network model, the corresponding calculation results are output.
  • the ciphertext data may be the first data transmission information in method 700 or method 800.
  • the charging pile sends the ciphertext data of the computing task to the vehicle.
  • the ciphertext data may be the first data transmission information in method 700 or method 800.
  • the vehicle decrypts the computing task in the trusted execution environment in the vehicle, maps it to the in-vehicle platform for calculation, and encrypts the calculation results.
  • the trusted execution environment can be a TEE or HSM environment.
  • a trusted execution environment can be an area on the CPU.
  • the function of this area is to provide a safer space for the execution of data and code, and to ensure the confidentiality and integrity of data and code.
  • map computing tasks may be that the vehicle converts computing platform-independent tasks into computing platform-related tasks.
  • the vehicle sends the ciphertext calculation result to the charging pile.
  • the ciphertext is sent in the form of an extensible markup language (XML) or (javascript object notation, JSON) format file.
  • XML extensible markup language
  • JSON Javascript object notation
  • the calculation result of the ciphertext may be the second data transmission information in method 700 or method 800.
  • the charging pile forwards the ciphertext calculation result to the computing power operator.
  • the calculation result of the ciphertext may be the second data transmission information in method 700 or method 800.
  • the computing power operator decrypts the ciphertext calculation results and charges based on the completion of the task.
  • the computing power operator can also obtain the power consumed by the vehicle during the execution of the computing task from the charging pile, and calculate the payment amount based on the power consumption and the completion of the computing task.
  • the computing power operator can obtain the power consumption through the fourth data transmission information in method 700 or method 800.
  • the charging pile after the charging pile receives the income, it can either recharge the income to the charging pile or remit the income to the account designated by the user.
  • the vehicle after the vehicle and the charging pile are authenticated for access, the vehicle can report its own computing power service capabilities and computing power opening time. After obtaining the above information through the charging pile, the computing power operator can provide the vehicle with The computing power task is issued, and the computing power operator can provide corresponding benefits to the vehicle based on the completion of the computing power task. In this way, the computing power of each processor in the car can be reasonably utilized in the parking and charging scenario.
  • Figure 10 is a data transmission method provided by an embodiment of the present application.
  • Method 1000 can be applied to steps S904, S905, S907, S908, S910, S911 and S912 of method 900, and can also be used in method 700 and method 800.
  • the vehicle processor computing power upload steps (S904, S905), calculation task issuance steps (S907, S908), and calculation result upload steps (S910, S911) in the method 900 can be implemented by extending the open charge protocol (open charge Point protocol, OCPP) DateTransfer to complete.
  • open charge protocol open charge Point protocol, OCPP
  • Method 1000 may include the following steps.
  • the computing operator sends a data transfer request message (DataTransferRequest(vendorId,[messageId],[data])) to the charging pile.
  • the message includes calculation task data.
  • the charging pile forwards the data transfer request message (DataTransferRequest(vendorId,[messageId],[data])) message to the vehicle.
  • DataTransferRequest (vendorId,[messageId],[data])
  • the vehicle sends a data transfer response message (DataTransferResponse(status,[data])) message to the charging pile.
  • the message includes calculation task result data.
  • the charging pile forwards the data transfer response message (DataTransferResponse(status,[data])) to the computing power operator.
  • DataTransferResponse (status,[data])
  • the OCPP protocol is extended so that vehicles, charging piles and computing power operators can identify that the currently transmitted data packet is a computing power sharing data packet.
  • the expansion method is to add the field [messageId] in the data transmission request to indicate that the currently transmitted data is computing power sharing data. And add an identifier in the field [data] in the data transmission request and data response messages to distinguish whether the data transmitted in the current message is used for computing power reporting, computing task distribution, or computing task uploading.
  • adding the identifier in the data transmission request message and the data transmission response message can also be implemented in various ways.
  • one or more [messageIds] can be added to the above data transmission request message and data transmission response message to indicate that the currently transmitted data is data reported by computing power, data issued by computing tasks, or uploaded calculation results. data.
  • the data transmission request message and the data transmission response message may not add [messageId], but only add an identifier in the [data] field to distinguish whether the currently transmitted data is used for computing power reporting and computing task delivery. , or upload the calculation results.
  • embodiments of the present application can expand the OCPP protocol to support computing power rental measurement and charging strategies.
  • the specific expansion content can be that the charging pile calculates the power during the rental period of the computing power and sends it to the computing power operator.
  • the computing power operator combines the calculation results of the task and the power to calculate the fee to be paid, and uses the OCPP protocol to recharge the vehicle's charging pile. .
  • the protocols used in the above-mentioned computing power reporting, computing task issuance, and calculation result uploading processes are not limited to the OCPP protocol.
  • the computing power operator can also customize a private protocol to implement the above process.
  • Figure 11 is a schematic flow chart of the vehicle open computing power service provided by the embodiment of the present application.
  • Method 1100 may be a detailed description of the actions performed by the first terminal device or vehicle in method 700, method 800, and method 900.
  • the communication extension protocol message may be the OCPP protocol extension message provided in method 1000.
  • the collaborative agent module in the vehicle discovers the computing service computing power that the vehicle can provide, and reports the computing power services that the vehicle can provide to the computing power operator through the communication extension protocol message through the charging pile.
  • reporting the computing power services that the vehicle can provide may include: reporting the available resources of the vehicle's CPU, NPU, GPU, and memory and the time when the computing power service capabilities can be opened.
  • S1111 collaborate with the Agent module to parse messages of the communication extension protocol and receive computing tasks.
  • the operation management module activates and wakes up the electronic control unit (Electronic Control Unit, ECU) corresponding to the computing unit in the vehicle according to the resources required by the computing task.
  • ECU Electronic Control Unit
  • the operation management module sends the calculation task to the corresponding ECU.
  • the operation management module converts platform-independent tasks into platform-related tasks in a trusted manner, and executes them to obtain calculation results.
  • the computing power service module in the vehicle can schedule the task to the computing unit where the AI processor is located for execution. If the computing power operator issues a machine learning task, the computing power service module can schedule it to the microprocessor unit (MCU) for execution.
  • MCU microprocessor unit
  • computing tasks can be distributed and executed in the vehicle according to the characteristics of the in-vehicle computing unit. Distributed scheduling and execution can be understood as the vehicle reasonably scheduling processors to execute computing tasks.
  • the collaborative Agent module sends the encrypted calculation results to the charging pile through the connection with the charging pile.
  • the operation management module deletes computing task-related resources and hibernates the corresponding ECU.
  • the vehicle can reasonably schedule the corresponding processing unit to execute the computing task according to the type of computing task. In this way, the computing power of the processing unit in the vehicle can be rationally applied and completed with an appropriate execution strategy. Computing tasks.
  • Embodiments of the present application also provide a device for implementing any of the above methods.
  • a device is provided that includes units for implementing each step performed by the first terminal device, charging device, or network device in any of the above methods. (or means).
  • FIG 12 is a schematic diagram of a computing resource sharing device 1200 provided by an embodiment of the present application.
  • the device 1200 may include a transceiver unit 1210, a storage unit 1220, and a processing unit 1230.
  • the transceiver unit 1210 can implement corresponding functions of transmitting and receiving instructions and/or data.
  • the transceiver unit 1210 can also be called a communication interface or a communication unit.
  • the storage unit 1220 is used to implement corresponding storage functions and store corresponding instructions and/or data.
  • the processing unit 1230 is used for data processing.
  • the processing unit 1230 may read the instructions and/or data in the storage unit 1220, so that the device 1200 implements the foregoing method embodiments.
  • the device 1200 is configured to perform the actions performed by the first terminal device in the above computing resource sharing method.
  • the device 1200 includes: a transceiver unit 1210, configured to receive first data transmission information sent by a charging device, the charging device is at least used to charge a first terminal device, and the first data transmission information is used to instruct the first terminal device to perform calculations.
  • the computing task is associated with the data of the second terminal device; the processing unit 1230 is used to perform the computing task; the transceiving unit 1210 is also used to send the second data transmission information, the second data transmission information includes the execution of the computing task result.
  • the computing task is generated by the network device according to a request from the second terminal device.
  • the transceiver unit 1210 is also configured to send third data transmission information to the charging device, where the third data transmission information is used to indicate the computing capability of the first terminal device and/or the time to share the computing capability.
  • the third data transmission information includes: a third data identifier corresponding to the computing capability of the first terminal device and/or the time of sharing the computing capability.
  • the transceiver unit 1210 is specifically configured to send the third data transmission information to the charging device when the authentication with the charging device is successful.
  • the transceiver unit 1210 is also configured to receive request information, which is used to request the first terminal device to share computing resources; the transceiver unit 1210 is also configured to send response information, which is used to indicate The first terminal device allows sharing of computing resources of the first terminal device.
  • the first data transmission information includes: information indicating that the computing task is a computing resource sharing task and/or data used to identify the computing task.
  • the second data transmission information includes: data used to identify the execution result of the computing task.
  • the processing unit 1230 is also used to determine the processing unit 1230 that performs the computing task, and the processing unit 1230 corresponds to the task type of the computing task.
  • the processing unit 1230 is specifically configured to perform computing tasks in a trusted execution environment.
  • the device 1200 includes: a transceiver unit 1210, configured to receive first data transmission information, the first data transmission information being used to instruct the first terminal device to perform a computing task, and the computing task is related to the second terminal device.
  • the data of the device is associated; the processing unit 1230 is used to perform the calculation task; the transceiver unit 1210 is also used to send second data transmission information to the charging device, the second data transmission information includes the execution result of the calculation task, and the charging device uses at least To charge the first terminal device.
  • the device 1200 is configured to perform the actions performed by the charging device in the above computing resource sharing method.
  • the device 1200 includes: a transceiver unit 1210, configured to receive first data transmission information sent by a network device, where the first data transmission information is used to instruct a first terminal device to perform a computing task; a transceiver unit 1210, also configured to transmit data to the first terminal device. The device sends first data transmission information.
  • the computing task is generated by the network device according to a request from the second terminal device.
  • the transceiver unit 1210 is also configured to receive third data transmission information sent by the first terminal device, where the third data transmission information is used to indicate the computing capability and/or shared computing capability of the first terminal device. time; the transceiver unit 1210 is also used to send the third data transmission information to the network device.
  • the third data transmission information includes: a third data identifier corresponding to the computing capability of the first terminal device and/or the time of sharing the computing capability.
  • the transceiver unit 1210 is specifically configured to receive the third data transmission information sent by the first terminal device when the authentication with the first terminal device is successful; and when the authentication with the network device is successful, send the third data transmission information to the network device.
  • the network device sends the third data transmission information.
  • the first data transmission information includes: information indicating that the computing task is a computing resource sharing task and/or data used to identify the computing task.
  • the processing unit 1230 is used to determine the power consumption of the first terminal device when performing computing tasks; the transceiver unit 1210 is also used to send fourth data transmission information to the network device.
  • the fourth data transmission information Used to indicate the power consumption.
  • the apparatus 1200 includes: a transceiver unit 1210, configured to receive second data transmission information sent by the first terminal device, where the second data transmission information includes the execution result of the computing task, the transceiver unit 1210, and Used to send second data transmission information to the network device.
  • a transceiver unit 1210 configured to receive second data transmission information sent by the first terminal device, where the second data transmission information includes the execution result of the computing task
  • the transceiver unit 1210 Used to send second data transmission information to the network device.
  • the device 1200 is configured to perform the actions performed by the network device in the above computing resource sharing method.
  • the device 1200 includes: a transceiver unit 1210, configured to send first data transmission information to the charging device.
  • the first data transmission information is used to instruct the first terminal device to perform a computing task, and the computing task is associated with data of the second terminal device.
  • Transceiver unit 1210 also used to receive second data transmission information, the second data transmission information includes the execution result of the computing task.
  • the computing task is generated by the network device according to a request from the second terminal device.
  • the device 1200 further includes a processing unit 1230 and a transceiver unit 1210, which are further configured to receive third data transmission information sent by the charging device.
  • the third data transmission information is used to indicate the computing capability of the first terminal device. and/or the time of sharing computing power; the processing unit 1230 is configured to determine the computing task according to the third data transmission information.
  • the third data transmission information includes: a third data identifier corresponding to the computing capability of the first terminal device and/or the time of sharing the computing capability.
  • the transceiver unit 1210 is specifically configured to receive the third data transmission information of the charging device when the access authentication with the charging device is successful.
  • the transceiver unit 1210 is also configured to send request information, which is used to request the first terminal device to share computing resources; the transceiver unit 1210 is also configured to receive response information, which is used to indicate The first terminal device allows sharing of computing resources of the first terminal device.
  • the first data transmission information includes: information indicating that the computing task is a computing resource sharing task and/or data used to identify the computing task.
  • the second data transmission information includes: data used to identify the execution result of the computing task.
  • the transceiver unit 1210 is configured to receive fourth data transmission information sent by the charging device, where the fourth data transmission information is used to indicate the power consumption of the first terminal device to perform the computing task; the processing unit 1230 , and is also used to determine the payment amount based on the second data transmission information and the fourth data transmission information; the processing unit 1230 is also used to recharge the payment amount to the account of the charging device or the first terminal device.
  • the apparatus 1200 includes: a transceiver unit 1210, configured to send first data transmission information to the first terminal device, where the first data transmission information is used to instruct the first terminal device to perform a computing task.
  • the task is associated with data of the second terminal device; the transceiver unit 1210 is also configured to receive second data transmission information sent by the charging device, where the second data transmission information includes the execution result of the computing task.
  • each unit in the above device is only a division of logical functions.
  • the units may be fully or partially integrated into a physical entity, or may be physically separated.
  • the unit in the device can be implemented in the form of a processor calling software; for example, the device includes a processor, the processor is connected to a memory, instructions are stored in the memory, and the processor calls the instructions stored in the memory to implement any of the above methods.
  • the processor is, for example, a general-purpose processor, such as a graphics processor or a microprocessor
  • the memory is a memory within the device or a memory outside the device.
  • the units in the device can be implemented in the form of hardware circuits, and some or all of the functions of the units can be implemented through the design of the hardware circuits, which can be understood as one or more processors; for example, in one implementation,
  • the hardware circuit is an ASIC, which realizes the functions of some or all of the above units through the design of the logical relationship of the components in the circuit; for another example, in another implementation, the hardware circuit can be implemented through PLD, taking FPGA as an example. It can include a large number of logic gate circuits, and the connection relationships between the logic gate circuits can be configured through configuration files to realize the functions of some or all of the above units. All units of the above device may be fully realized by the processor calling software, or may be fully realized by hardware circuits, or part of the units may be realized by the processor calling software, and the remaining part may be realized by hardware circuits.
  • the processing unit 1230 may be the processor 131 shown in FIG. 1 .
  • the above-mentioned transceiver unit 1210 may be the communication interface 1330 in FIG. 13
  • the above-mentioned storage unit 1220 may be the memory 1310 in FIG. 13
  • the above-mentioned processing unit 1230 may be the processor 1320 in FIG. 13 .
  • Figure 13 is a schematic diagram of another computing resource sharing device 1300 provided by an embodiment of the present application.
  • the device 1300 may be applied in the vehicle 100 of FIG. 1 .
  • the computing resource sharing device 1300 includes: a memory 1310, a processor 1320, and a communication interface 1330. Among them, the memory 1310, the processor 1320, and the communication interface 1330 are connected through an internal connection path.
  • the memory 1310 is used to store instructions
  • the processor 1320 is used to execute the instructions stored in the memory 1310 to control the input/output interface 1330 to receive/send. information.
  • the memory 1310 can be coupled with the processor 1320 through an interface or integrated with the processor 1320 .
  • the above-mentioned communication interface 1330 uses a transceiver device such as but not limited to a transceiver.
  • the above-mentioned communication interface 1330 may also include an input/output interface.
  • Processor 1320 stores one or more computer programs including instructions. When the instruction is executed by the processor 1320, the computing resource sharing device 1300 is caused to execute the computing resource sharing methods in the above embodiments.
  • each step of the above method can be completed by instructions in the form of hardware integrated logic circuits or software in the processor 1320 .
  • the method disclosed in conjunction with the embodiments of the present application can be directly implemented by a hardware processor for execution, or can be executed by a combination of hardware and software modules in the processor.
  • the software module can be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other mature storage media in this field.
  • the storage medium is located in the memory 1310.
  • the processor 1320 reads the information in the memory 1310 and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
  • the device 1200 or the device 1300 may be located in the vehicle 100 in FIG. 1 .
  • the device 1200 or the device 1300 may be the computing platform 130 in the vehicle in FIG. 1 .
  • Embodiments of the present application also provide a computer-readable medium.
  • the computer-readable medium stores program code.
  • the computer program code When the computer program code is run on a computer, it causes the computer to execute any of the above-mentioned Figures 7 to 11. a way.
  • An embodiment of the present application also provides a computer program product.
  • the computer product includes: a computer program, which when the computer program is run, causes the computer to execute any one of the methods in FIGS. 7 to 11 .
  • An embodiment of the present application also provides a chip, including: at least one processor and a memory.
  • the at least one processor is coupled to the memory and is used to read and execute instructions in the memory to execute the above-mentioned Figures 7 to 7. Either method in Figure 11.
  • An embodiment of the present application also provides a terminal device, including: at least one processor and a memory, the at least one processor being coupled to the memory, and configured to read and execute instructions in the memory to execute the above-mentioned Figure 7 to any method in Figure 11.
  • An embodiment of the present application also provides a terminal device, including any one of the computing resource sharing devices in Figure 12 or Figure 13 .
  • An embodiment of the present application also provides a vehicle, including any computing resource sharing device in Figure 12 or Figure 13 .
  • the disclosed systems, devices and methods can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit.
  • the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product.
  • the computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code. .
  • At least one of a, b, or c can mean: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c can be single or multiple .
  • Prefixes such as “first” and “second” are used in the embodiments of this application only to distinguish different description objects, and have no limiting effect on the position, order, priority, quantity or content of the described objects.
  • the use of ordinal words and other prefixes used to distinguish the described objects does not limit the described objects.
  • Words constitute redundant restrictions.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Power Sources (AREA)

Abstract

A computing resource sharing method and apparatus, and a terminal device. The method comprises: receiving first data transmission information sent by a charging device, wherein the charging device is at least used for charging a first terminal device, the first data transmission information is used for instructing the first terminal device to execute a computing task, and the computing task is associated with data of a second terminal device; executing the computing task; and sending second data transmission information, wherein the second data transmission information comprises an execution result of the computing task. By means of the computing resource sharing method, the computing power of an idle processor of a first terminal device can be shared and rationally utilized when the first terminal device is charged.

Description

计算资源共享的方法、装置以及终端设备Computing resource sharing method, device and terminal equipment 技术领域Technical field
本申请实施例涉及计算资源服务领域,并且更具体地,涉及一种计算资源共享的方法、装置以及终端设备。The embodiments of the present application relate to the field of computing resource services, and more specifically, to a computing resource sharing method, apparatus and terminal equipment.
背景技术Background technique
目前,在电动车的充电技术中,充电桩可以使用电力载波通信(power line communication,PLC)线缆对电动车进行充电。云服务器可以通过充电桩实现分时租赁、数据采集和营收统计等功能。其中,PLC线缆不仅可以用于电动车的充电,还可以用于进行数据传输。Currently, in the charging technology of electric vehicles, charging piles can use power line communication (PLC) cables to charge electric vehicles. Cloud servers can realize functions such as time-sharing leasing, data collection, and revenue statistics through charging piles. Among them, PLC cables can not only be used for charging electric vehicles, but also for data transmission.
然而,在停车充电的场景下既存在稳定的电力供应和网络连接,车辆的人工智能(artificial intelligence)处理器又不需要执行自动驾驶任务,车内的其他处理器也基本处于空闲状态,此时,车内各处理器的算力没有被合理的应用。However, in the parking and charging scenario, there is a stable power supply and network connection, the vehicle's artificial intelligence (artificial intelligence) processor does not need to perform autonomous driving tasks, and other processors in the vehicle are basically idle. At this time , the computing power of each processor in the car is not used properly.
发明内容Contents of the invention
本申请实施例提供了一种计算资源共享的方法、装置以及终端设备。能够在终端设备充电时共享并合理利用空闲处理器的计算能力。Embodiments of the present application provide a computing resource sharing method, device, and terminal equipment. It can share and rationally utilize the computing power of idle processors while the terminal device is charging.
第一方面,提供了一种计算资源共享的方法,所述方法应用于第一终端设备中,所述方法包括:接收充电设备发送的第一数据传输信息,所述充电设备至少用于为所述第一终端设备充电,所述第一数据传输信息用于指示所述第一终端设备执行计算任务,所述计算任务与第二终端设备的数据相关联;执行所述计算任务;发送第二数据传输信息,所述第二数据传输信息包括所述计算任务的执行结果。In a first aspect, a method for sharing computing resources is provided. The method is applied to a first terminal device. The method includes: receiving first data transmission information sent by a charging device, where the charging device is at least used to The first terminal device is charged, the first data transmission information is used to instruct the first terminal device to perform a computing task, the computing task is associated with data of the second terminal device; perform the computing task; send the second Data transmission information, the second data transmission information includes the execution result of the computing task.
可选地,第一终端设备可以是手机、车辆或平板电脑等终端设备。Optionally, the first terminal device may be a terminal device such as a mobile phone, a vehicle, or a tablet computer.
可选地,第一数据传输信息可以是承载计算任务的数据,或者第一数据传输信息可以是一种控制命令,用于控制第一终端设备执行计算任务。Alternatively, the first data transmission information may be data carrying a computing task, or the first data transmission information may be a control command used to control the first terminal device to perform the computing task.
示例性地,上述计算任务可以包括:批量数据清洗、小批量训练、批量推理。其中,批量数据清洗可以指计算任务是发现和纠正数据文件中的错误,小批量训练可以指计算任务是使用样本数据优化算法,批量推理可以指计算任务是将提供的数据输入到经过训练神经网络模型中,输出相应的计算结果。For example, the above computing tasks may include: batch data cleaning, mini-batch training, and batch inference. Among them, batch data cleaning can refer to the computing task of discovering and correcting errors in data files, small batch training can refer to the computing task of using sample data to optimize algorithms, and batch inference can refer to the computing task of inputting the provided data into the trained neural network. In the model, the corresponding calculation results are output.
其中,第一终端设备发送第二数据传输信息可以具有多种实现方式。The first terminal device sending the second data transmission information may be implemented in various ways.
可选地,第一终端设备向充电设备发送第二数据传输信息,并由充电设备将第二数据传输信息转发至网络设备。Optionally, the first terminal device sends the second data transmission information to the charging device, and the charging device forwards the second data transmission information to the network device.
可选地,第一终端设备可以直接向网络设备发送第二数据传输信息。Optionally, the first terminal device may directly send the second data transmission information to the network device.
本申请实施例中,第一终端设备在连接充电设备后,能够接收充电设备发送的计算任务,并利用第一终端设备内的空闲处理器执行计算任务,并将计算结果发送给充电设备或 者网络设备。通过这样的方式,能够在第一终端设备充电时共享并合理利用空闲处理器的计算能力。In the embodiment of the present application, after connecting to the charging device, the first terminal device can receive the computing task sent by the charging device, use the idle processor in the first terminal device to perform the computing task, and send the computing result to the charging device or the network equipment. In this way, the computing power of the idle processor can be shared and reasonably utilized when the first terminal device is charging.
结合第一方面,在第一方面的某些实现方式中,所述计算任务是由网络设备根据所述第二终端设备的请求生成的。With reference to the first aspect, in some implementations of the first aspect, the computing task is generated by a network device according to a request of the second terminal device.
本申请实施例中,计算任务是网络设备根据第二终端设备的请求生成的,即该计算任务为算力共享任务。In the embodiment of the present application, the computing task is generated by the network device according to the request of the second terminal device, that is, the computing task is a computing power sharing task.
结合第一方面,在第一方面的某些实现方式中,在所述接收充电设备发送的第一数据传输信息之前,所述方法还包括:向所述充电设备发送第三数据传输信息,所述第三数据传输信息用于指示所述第一终端设备的计算能力和/或共享计算能力的时间。With reference to the first aspect, in some implementations of the first aspect, before receiving the first data transmission information sent by the charging device, the method further includes: sending third data transmission information to the charging device, so The third data transmission information is used to indicate the computing capability of the first terminal device and/or the time of sharing the computing capability.
本申请实施例中,第一终端设备在接收计算任务之前,第一终端设备可以将处理器计算能力和/或共享计算能力的时间通过充电设备上报给网络设备,从而能够使得网络设备根据第一终端设备的计算能力下发计算任务。In this embodiment of the present application, before the first terminal device receives the computing task, the first terminal device may report the processor computing power and/or the time of shared computing power to the network device through the charging device, thereby enabling the network device to perform the calculation according to the first The computing capabilities of the terminal device issue computing tasks.
结合第一方面,在第一方面的某些实现方式中,所述第三数据传输信息包括:第三数据标识,所述第三数据标识与所述第一终端设备的计算能力和/或共享计算能力的时间相对应。With reference to the first aspect, in some implementations of the first aspect, the third data transmission information includes: a third data identifier, the third data identifier is shared with the computing capability and/or of the first terminal device Computing power corresponds to time.
可选地,该第三数据标识可以用于指示第三数据的类型,和/或该第三数据标识可以用于指示第三数据的内容。Optionally, the third data identifier may be used to indicate the type of the third data, and/or the third data identifier may be used to indicate the content of the third data.
可选地,第三数据标识可以是第三数据传输信息中增加的[messageId]字段,和/或在第三数据传输信息中的字段[data]中添加的标识信息。Optionally, the third data identifier may be the [messageId] field added in the third data transmission information, and/or the identification information added in the field [data] in the third data transmission information.
本申请实施例中,能够在第三数据传输信息中携带第三数据标识,从而使得充电设备能够快速、准确的获取第一终端设备计算能力和/或共享计算能力的时间。In the embodiment of the present application, the third data identifier can be carried in the third data transmission information, so that the charging device can quickly and accurately obtain the computing power of the first terminal device and/or the time of sharing the computing power.
结合第一方面,在第一方面的某些实现方式中,所述向所述充电设备发送第三数据传输信息,包括:在与所述充电设备认证成功的情况下,向所述充电设备发送所述第三数据传输信息。With reference to the first aspect, in some implementations of the first aspect, sending the third data transmission information to the charging device includes: in the case of successful authentication with the charging device, sending The third data transmission information.
其中,第一终端设备和充电设备进行认证的过程可以是第一终端设备和充电设备互相交换证书或密钥,在双方证书或密钥一致的情况下完成安全认证。The authentication process between the first terminal device and the charging device may be that the first terminal device and the charging device exchange certificates or keys with each other, and complete the security authentication when the certificates or keys of both parties are consistent.
本申请实施例中,在第一终端设备和充电设备接入认证成功的情况下,第一终端设备才会发送计算任务,保证了车辆和充电设备之间信息传输安全。In the embodiment of this application, the first terminal device will only send the computing task when the access authentication of the first terminal device and the charging device is successful, ensuring the security of information transmission between the vehicle and the charging device.
结合第一方面,在第一方面的某些实现方式中,在所述向所述充电设备发送所述第三数据传输信息之前,所述方法还包括:接收请求信息,所述请求信息用于请求所述第一终端设备共享计算资源;发送响应信息,所述响应信息用于指示所述第一终端设备允许共享所述第一终端设备的计算资源。With reference to the first aspect, in some implementations of the first aspect, before sending the third data transmission information to the charging device, the method further includes: receiving request information, the request information is used to Requesting the first terminal device to share computing resources; sending response information, where the response information is used to instruct the first terminal device to allow sharing of computing resources of the first terminal device.
可选地,第一终端设备可以从网络设备直接接收该请求信息,或者第一终端设备可以从充电设备处接收该请求信息,在此种情况下,该请求信息是由网络设备下发给充电设备并由充电设备转发给第一终端设备的。Optionally, the first terminal device can directly receive the request information from the network device, or the first terminal device can receive the request information from the charging device. In this case, the request information is issued by the network device to the charging device. equipment and forwarded by the charging device to the first terminal device.
可选地,第一终端设备可以直接向网络设备发送该响应信息,或者第一终端设备可以向充电设备发送该响应信息,并由充电设备将该响应信息转发给网络设备。Alternatively, the first terminal device may directly send the response information to the network device, or the first terminal device may send the response information to the charging device, and the charging device forwards the response information to the network device.
可选地,第一终端设备接收请求信息是在其与充电设备的认证通过后进行的。Optionally, the first terminal device receives the request information after it has passed the authentication with the charging device.
本申请实施例中,第一终端设备向网络设备发送第三数据传输信息之前,第一终端设 备可以被允许向网络设备共享第一终端设备的计算资源。通过这样的方式,能够进一步保证终端设备与网络设备和/或充电设备之间的信息传输安全。In this embodiment of the present application, before the first terminal device sends the third data transmission information to the network device, the first terminal device may be allowed to share the computing resources of the first terminal device with the network device. In this way, the security of information transmission between the terminal device and the network device and/or the charging device can be further ensured.
结合第一方面,在第一方面的某些实现方式中,所述第一数据传输信息包括:用于指示所述计算任务为计算资源共享任务的信息和/或用于标识所述计算任务的数据。With reference to the first aspect, in some implementations of the first aspect, the first data transmission information includes: information used to indicate that the computing task is a computing resource sharing task and/or information used to identify the computing task. data.
可选地,该用于标识计算任务的数据可以用于指示计算任务数据的类型,和/或用于指示计算任务的内容,Optionally, the data used to identify the computing task may be used to indicate the type of computing task data, and/or be used to indicate the content of the computing task,
可选地,用于指示计算任务为计算资源共享任务的信息和用于标识计算任务的数据可以是第一数据传输信息中增加的[messageId]字段。Optionally, the information used to indicate that the computing task is a computing resource sharing task and the data used to identify the computing task may be a [messageId] field added to the first data transmission information.
可选地,用于指示计算任务为计算资源共享任务的信息和用于标识计算任务的数据可以是在第一数据传输信息中的字段[data]中添加的标识信息。Optionally, the information used to indicate that the computing task is a computing resource sharing task and the data used to identify the computing task may be identification information added in the field [data] in the first data transmission information.
可选地,用于指示计算任务为计算资源共享任务的信息可以是第一数据传输信息中增加的[messageId]字段。用于标识计算任务的数据可以是在第一数据传输信息中的字段[data]中添加的标识信息。Optionally, the information used to indicate that the computing task is a computing resource sharing task may be a [messageId] field added to the first data transmission information. The data used to identify the computing task may be identification information added in the field [data] in the first data transmission information.
可选地,用于指示计算任务为计算资源共享任务的信息可以是在第一数据传输信息中的字段[data]中添加的标识信息。用于标识计算任务的数据可以是第一数据传输信息中增加的[messageId]字段。Optionally, the information used to indicate that the computing task is a computing resource sharing task may be identification information added in the field [data] in the first data transmission information. The data used to identify the computing task may be the [messageId] field added in the first data transmission information.
本申请实施例中,可以在第一数据传输信息中携带用于指示所述计算任务为计算资源共享任务的信息和/或用于标识所述计算任务的数据,从而使得第一终端设备能够快速、准确地识别出第一数据传输信息。In this embodiment of the present application, the first data transmission information may carry information indicating that the computing task is a computing resource sharing task and/or data identifying the computing task, so that the first terminal device can quickly , accurately identify the first data transmission information.
结合第一方面,在第一方面的某些实现方式中,所述第二数据传输信息包括:用于标识所述计算任务执行结果的数据。With reference to the first aspect, in some implementations of the first aspect, the second data transmission information includes: data used to identify the execution result of the computing task.
可选地,该用于标识计算任务执行结果的数据可以用于指示计算任务执行结果数据的类型,和/或用于指示计算任务执行结果的内容,Optionally, the data used to identify the computing task execution result may be used to indicate the type of computing task execution result data, and/or to indicate the content of the computing task execution result,
可选地,用于标识计算任务执行结果的数据可以是第二数据传输信息中增加的[messageId]字段,和/或在第二数据传输信息中的字段[data]中添加的标识信息。Optionally, the data used to identify the calculation task execution result may be the [messageId] field added in the second data transmission information, and/or the identification information added in the field [data] in the second data transmission information.
本申请实施例中,能够在第二数据传输信息中携带用于标识计算任务执行结果的数据,从而使得充电设备能够快速、准确的识别第二数据传输信息。In the embodiment of the present application, the data used to identify the execution result of the calculation task can be carried in the second data transmission information, so that the charging device can quickly and accurately identify the second data transmission information.
结合第一方面,在第一方面的某些实现方式中,在所述执行所述计算任务之前,所述方法包括:确定执行所述计算任务的处理单元,所述处理单元与所述计算任务的任务类型相对应。With reference to the first aspect, in some implementations of the first aspect, before performing the computing task, the method includes: determining a processing unit that performs the computing task, and the processing unit is related to the computing task. corresponding to the task type.
例如,如果网络设备下发的是需要人工智能(artificial intelligence,AI)算力较高的图片类的训练推理任务,第一终端设备的算力服务模块可将该任务调度到AI处理器所在的计算单元执行。如果网络设备下发的是机器学习类任务,算力服务模块可以将其调度到微处理器(micro processor unit,MCU)执行。或者,可以根据第一终端设备内部计算单元的特点将计算任务在第一终端设备内分布式调度执行,其中,分布式调度执行可以理解为第一终端设备合理调度处理器来执行计算任务。For example, if the network device issues a picture-based training inference task that requires high artificial intelligence (AI) computing power, the computing power service module of the first terminal device can schedule the task to the location where the AI processor is located. The computing unit executes. If the network device delivers a machine learning task, the computing power service module can schedule it to the microprocessor unit (MCU) for execution. Alternatively, the computing tasks can be distributedly scheduled and executed in the first terminal device according to the characteristics of the internal computing unit of the first terminal device, where distributed scheduling and execution can be understood as the first terminal device reasonably scheduling the processor to execute the computing tasks.
本申请实施例中,第一终端设备在能够根据计算任务的类型,确定执行该计算任务的处理单元,从而能够合理利用第一终端设备内部的计算资源来完成计算任务。In the embodiment of the present application, the first terminal device can determine the processing unit to perform the computing task according to the type of the computing task, so that the computing resources inside the first terminal device can be reasonably utilized to complete the computing task.
结合第一方面,在第一方面的某些实现方式中,所述执行所述计算任务包括:在可信 执行环境中执行所述计算任务。In conjunction with the first aspect, in some implementations of the first aspect, performing the computing task includes: executing the computing task in a trusted execution environment.
其中,可信执行环境可以是(trusted execution environment,TEE)或者硬件安全模块(hardware security module,HSM)环境。Among them, the trusted execution environment can be a (trusted execution environment, TEE) or a hardware security module (hardware security module, HSM) environment.
本申请实施例中,第一终端设备在可信的执行环境中执行该计算任务,能够保障计算任务执行的安全性。In the embodiment of the present application, the first terminal device executes the computing task in a trusted execution environment, which can ensure the security of the execution of the computing task.
第二方面,提供了一种计算资源共享的方法,所述方法应用于充电设备中,所述充电设备至少用于为第一终端设备充电,所述方法包括:接收网络设备发送的第一数据传输信息,所述第一数据传输信息用于指示所述第一终端设备执行计算任务,所述计算任务与第二终端设备的数据相关联;向所述第一终端设备发送第一数据传输信息。In a second aspect, a method for sharing computing resources is provided. The method is applied to a charging device. The charging device is at least used to charge a first terminal device. The method includes: receiving first data sent by a network device. Transmitting information, the first data transmission information is used to instruct the first terminal device to perform a computing task, the computing task is associated with data of the second terminal device; sending the first data transmission information to the first terminal device .
本申请实施例中,充电设备能够从网络设备处接收计算任务,并将计算任务发送给第一终端设备处执行。In the embodiment of the present application, the charging device can receive the computing task from the network device and send the computing task to the first terminal device for execution.
结合第二方面,在第二方面的某些实现方式中,所述计算任务是由所述网络设备根据所述第二终端设备的请求生成的。In conjunction with the second aspect, in some implementations of the second aspect, the computing task is generated by the network device according to a request from the second terminal device.
本申请实施例中,计算任务是网络设备根据第二终端设备的请求生成的,即该计算任务为算力共享任务。In the embodiment of the present application, the computing task is generated by the network device according to the request of the second terminal device, that is, the computing task is a computing power sharing task.
结合第二方面,在第二方面的某些实现方式中,在所述接收网络设备发送的第一数据传输信息之前,所述方法还包括:接收所述第一终端设备发送的第三数据传输信息,所述第三数据传输信息用于指示所述第一终端设备的计算能力和/或共享计算能力的时间;向所述网络设备发送所述第三数据传输信息。With reference to the second aspect, in some implementations of the second aspect, before receiving the first data transmission information sent by the network device, the method further includes: receiving a third data transmission sent by the first terminal device. Information, the third data transmission information is used to indicate the computing capability of the first terminal device and/or the time to share the computing capability; and the third data transmission information is sent to the network device.
本申请实施例中,充电设备能够通过第三数据传输信息获知第一终端设备的计算能力和/或共享计算能力的时间,并将上述事项上报给网络设备。In the embodiment of the present application, the charging device can learn the computing power of the first terminal device and/or the time of sharing the computing power through the third data transmission information, and report the above matters to the network device.
结合第二方面,在第二方面的某些实现方式中,所述第三数据传输信息包括:第三数据标识,所述第三数据标识与所述第一终端设备的计算能力和/或共享计算能力的时间相对应。With reference to the second aspect, in some implementations of the second aspect, the third data transmission information includes: a third data identifier, the third data identifier is shared with the computing power and/or of the first terminal device Computing power corresponds to time.
可选地,该第三数据标识可以用于指示第三数据的类型,和/或该第三数据标识可以用于指示第三数据的内容,Optionally, the third data identifier may be used to indicate the type of the third data, and/or the third data identifier may be used to indicate the content of the third data,
可选地,第三数据标识可以是第三数据传输信息中增加的[messageId]字段,和/或在第三数据传输信息中的字段[data]中添加的标识信息。Optionally, the third data identifier may be the [messageId] field added in the third data transmission information, and/or the identification information added in the field [data] in the third data transmission information.
本申请实施例中,能够在第三数据传输信息中携带第三数据标识,使得充电设备能够快速、准确的获取第一终端设备计算能力和/或共享计算能力的时间。In the embodiment of the present application, the third data identifier can be carried in the third data transmission information, so that the charging device can quickly and accurately obtain the computing power of the first terminal device and/or the time of sharing the computing power.
结合第二方面,在第二方面的某些实现方式中,所述接收所述第一终端设备发送的第三数据传输信息,包括:在与所述第一终端设备认证成功的情况下,接收所述第一终端设备发送所述第三数据传输信息;所述向所述网络设备发送所述第三数据传输信息,包括:在与所述网络设备认证成功的情况下,向所述网络设备发送所述第三数据传输信息。With reference to the second aspect, in some implementations of the second aspect, receiving the third data transmission information sent by the first terminal device includes: in the case of successful authentication with the first terminal device, receiving The first terminal device sends the third data transmission information; the sending the third data transmission information to the network device includes: in the case of successful authentication with the network device, sending the third data transmission information to the network device. Send the third data transmission information.
本申请实施例中,充电设备需要分别与第一终端设备和网络设备进行认证,在认证成功的情况下,充电设备才能从第一终端设备处接收第三数据传输信息,并向网络设备发送第三数据传输信息。通过这样的方式,能够保证充电设备与第一终端设备和网络设备之间的数据传输安全。In the embodiment of this application, the charging device needs to authenticate with the first terminal device and the network device respectively. When the authentication is successful, the charging device can receive the third data transmission information from the first terminal device and send the third data transmission information to the network device. 3. Data transmission information. In this way, the security of data transmission between the charging device, the first terminal device and the network device can be ensured.
结合第二方面,在第二方面的某些实现方式中,所述第一数据传输信息包括:用于指 示所述计算任务为计算资源共享任务的信息和/或用于标识所述计算任务的数据。With reference to the second aspect, in some implementations of the second aspect, the first data transmission information includes: information used to indicate that the computing task is a computing resource sharing task and/or information used to identify the computing task. data.
可选地,该用于标识计算任务的数据可以用于指示计算任务数据的类型,和/或用于指示计算任务的内容,Optionally, the data used to identify the computing task may be used to indicate the type of computing task data, and/or be used to indicate the content of the computing task,
可选地,用于指示计算任务为计算资源共享任务的信息和用于标识计算任务的数据可以是第一数据传输信息中增加的[messageId]字段。Optionally, the information used to indicate that the computing task is a computing resource sharing task and the data used to identify the computing task may be a [messageId] field added to the first data transmission information.
可选地,用于指示计算任务为计算资源共享任务的信息和用于标识计算任务的数据可以是在第一数据传输信息中的字段[data]中添加的标识信息。Optionally, the information used to indicate that the computing task is a computing resource sharing task and the data used to identify the computing task may be identification information added in the field [data] in the first data transmission information.
可选地,用于指示计算任务为计算资源共享任务的信息可以是第一数据传输信息中增加的[messageId]字段。用于标识计算任务的数据可以是在第一数据传输信息中的字段[data]中添加的标识信息。Optionally, the information used to indicate that the computing task is a computing resource sharing task may be a [messageId] field added to the first data transmission information. The data used to identify the computing task may be identification information added in the field [data] in the first data transmission information.
可选地,用于指示计算任务为计算资源共享任务的信息可以是在第一数据传输信息中的字段[data]中添加的标识信息。用于标识计算任务的数据可以是第一数据传输信息中增加的[messageId]字段。Optionally, the information used to indicate that the computing task is a computing resource sharing task may be identification information added in the field [data] in the first data transmission information. The data used to identify the computing task may be the [messageId] field added in the first data transmission information.
本申请实施例中,可以在第一数据传输信息中携带用于指示所述计算任务为计算资源共享任务的信息和/或用于标识所述计算任务的数据。使得第一终端设备能够快速、准确地识别出第一数据传输信息。In this embodiment of the present application, the first data transmission information may carry information indicating that the computing task is a computing resource sharing task and/or data used to identify the computing task. The first terminal device can quickly and accurately identify the first data transmission information.
结合第二方面,在第二方面的某些实现方式中,确定所述第一终端设备执行所述计算任务的耗电量;向所述网络设备发送第四数据传输信息,所述第四数据传输信息用于指示所述耗电量。With reference to the second aspect, in some implementations of the second aspect, the power consumption of the first terminal device for performing the computing task is determined; fourth data transmission information is sent to the network device, and the fourth data The transmission information is used to indicate the power consumption.
本申请实施例中,充电设备能够确定第一终端设备执行计算任务的耗电量,并将该耗电量向网络设备反馈,从而方便网络设备进行计费。In the embodiment of the present application, the charging device can determine the power consumption of the first terminal device when performing computing tasks, and feed back the power consumption to the network device, thereby facilitating billing by the network device.
第三方面,提供了一种计算资源共享方法,所述方法应用于网络设备中,所述方法包括:向充电设备发送第一数据传输信息,所述第一数据传输信息用于指示第一终端设备执行计算任务,所述计算任务与第二终端设备的数据相关联;接收第二数据传输信息,所述第二数据传输信息包括所述计算任务的执行结果。In a third aspect, a computing resource sharing method is provided. The method is applied to a network device. The method includes: sending first data transmission information to a charging device, where the first data transmission information is used to instruct the first terminal. The device executes a computing task, where the computing task is associated with data of the second terminal device; and receives second data transmission information, where the second data transmission information includes an execution result of the computing task.
本申请实施例中,网络设备将该计算任务通过第一数据传输信息发送给充电设备,在该计算任务被第一终端设备完成后,网络设备能够得到计算任务的结果。通过这样的方式,网络设备能够合理调配计算任务,从而使得第一终端设备充电时能够合理利用空闲处理器的算力。In the embodiment of the present application, the network device sends the computing task to the charging device through the first data transmission information. After the computing task is completed by the first terminal device, the network device can obtain the result of the computing task. In this way, the network device can reasonably allocate computing tasks, so that the first terminal device can reasonably utilize the computing power of the idle processor when charging.
结合第三方面,在第三方面的某些实现方式中,所述计算任务是由所述网络设备根据所述第二终端设备的请求生成的。With reference to the third aspect, in some implementations of the third aspect, the computing task is generated by the network device according to a request of the second terminal device.
本申请实施例中,计算任务是网络设备根据第二终端设备的请求生成的,即该计算任务为算力共享任务。In the embodiment of the present application, the computing task is generated by the network device according to the request of the second terminal device, that is, the computing task is a computing power sharing task.
结合第三方面,在第三方面的某些实现方式中,在所述向充电设备发送第一数据传输信息之前,所述方法还包括:接收所述充电设备发送的第三数据传输信息,所述第三数据传输信息用于指示所述第一终端设备的计算能力和/或共享计算能力的时间;根据所述第三数据传输信息,确定所述计算任务。With reference to the third aspect, in some implementations of the third aspect, before sending the first data transmission information to the charging device, the method further includes: receiving third data transmission information sent by the charging device, so The third data transmission information is used to indicate the computing capability of the first terminal device and/or the time for sharing the computing capability; the computing task is determined according to the third data transmission information.
本申请实施例中,网络设备能够根据第一终端设备的计算能力和/或共享计算能力的时间;合理安排计算任务,从而更好的利用第一终端设备在充电时的空闲处理器的算力。In the embodiment of the present application, the network device can reasonably arrange the computing tasks according to the computing power of the first terminal device and/or the time of sharing the computing power, so as to better utilize the computing power of the idle processor of the first terminal device when charging. .
结合第三方面,在第三方面的某些实现方式中,所述第三数据传输信息包括:第三数据标识,所述第三数据标识与所述第一终端设备的计算能力和/或共享计算能力的时间相对应。With reference to the third aspect, in some implementations of the third aspect, the third data transmission information includes: a third data identifier, the third data identifier is shared with the computing power and/or of the first terminal device Computing power corresponds to time.
可选地,该第三数据标识可以用于指示第三数据的类型,和/或该第三数据标识可以用于指示第三数据的内容,Optionally, the third data identifier may be used to indicate the type of the third data, and/or the third data identifier may be used to indicate the content of the third data,
可选地,第三数据标识可以是第三数据传输信息中增加的[messageId]字段,和/或在第三数据传输信息中的字段[data]中添加的标识信息。Optionally, the third data identifier may be the [messageId] field added in the third data transmission information, and/or the identification information added in the field [data] in the third data transmission information.
本申请实施例中,能够在第三数据传输信息中携带第三数据标识,使得网络设备能够快速、准确的获取第一终端设备计算能力和/或共享计算能力的时间。In the embodiment of the present application, the third data identifier can be carried in the third data transmission information, so that the network device can quickly and accurately obtain the computing power of the first terminal device and/or the time of sharing the computing power.
结合第三方面,在第三方面的某些实现方式中,所述接收所述充电设备发送的第三数据传输信息,包括:在与所述充电设备接入认证成功的情况下,接收所述充电设备发送所述第三数据传输信息。With reference to the third aspect, in some implementations of the third aspect, receiving the third data transmission information sent by the charging device includes: in the case of successful access authentication with the charging device, receiving the The charging device sends the third data transmission information.
本申请实施例中,网络设备和充电设备之间需要进行认证,在认证成功的情况下,网络设备才能从充电设备处接收第三数据传输信息,通过这样的方式,能够保证充电设备和网络设备之间的数据传输安全。In the embodiment of this application, authentication is required between the network device and the charging device. Only when the authentication is successful, the network device can receive the third data transmission information from the charging device. In this way, it can ensure that the charging device and the network device Data transmission between .
结合第三方面,在第三方面的某些实现方式中,在所述接收所述充电设备发送所述第三数据传输信息之前,所述方法还包括:发送请求信息,所述请求信息用于请求第一终端设备共享计算资源;接收响应信息,所述响应信息用于指示所述第一终端设备允许共享所述第一终端设备的计算资源。With reference to the third aspect, in some implementations of the third aspect, before receiving the charging device to send the third data transmission information, the method further includes: sending request information, the request information is used to Requesting the first terminal device to share computing resources; receiving response information, where the response information is used to instruct the first terminal device to allow sharing of computing resources of the first terminal device.
可选地,网络设备可以直接向第一终端设备发送该请求信息,或者网络设备可以向充电设备发送该请求信息,并由充电设备将该请求信息转发给第一终端设备。Alternatively, the network device may directly send the request information to the first terminal device, or the network device may send the request information to the charging device, and the charging device forwards the request information to the first terminal device.
可选地,网络设备可以直接从第一终端设备处接收该响应信息,或者网络设备可以从充电设备处接收该响应信息,在此种情况下,该响应信息是由第一终端设备向充电设备发送的。Alternatively, the network device may receive the response information directly from the first terminal device, or the network device may receive the response information from the charging device. In this case, the response information is sent from the first terminal device to the charging device. Sent.
本申请实施例中,网络设备在接收第三数据传输信息之前,需要第一终端设备允许共享所述第一终端设备的计算资源。通过这样的方式,能够进一步保证终端设备与网络设备和/或充电设备之间的信息传输安全。In this embodiment of the present application, before receiving the third data transmission information, the network device needs the first terminal device to allow sharing of the computing resources of the first terminal device. In this way, the security of information transmission between the terminal device and the network device and/or the charging device can be further ensured.
结合第三方面,在第三方面的某些实现方式中,所述第一数据传输信息包括:用于指示所述计算任务为计算资源共享任务的信息和/或用于标识所述计算任务的数据。With reference to the third aspect, in some implementations of the third aspect, the first data transmission information includes: information used to indicate that the computing task is a computing resource sharing task and/or information used to identify the computing task. data.
可选地,该用于标识计算任务的数据可以用于指示计算任务数据的类型,和/或用于指示计算任务的内容,Optionally, the data used to identify the computing task may be used to indicate the type of computing task data, and/or be used to indicate the content of the computing task,
可选地,用于指示计算任务为计算资源共享任务的信息和用于标识计算任务的数据可以是第一数据传输信息中增加的[messageId]字段。Optionally, the information used to indicate that the computing task is a computing resource sharing task and the data used to identify the computing task may be a [messageId] field added to the first data transmission information.
可选地,用于指示计算任务为计算资源共享任务的信息和用于标识计算任务的数据可以是在第一数据传输信息中的字段[data]中添加的标识信息。Optionally, the information used to indicate that the computing task is a computing resource sharing task and the data used to identify the computing task may be identification information added in the field [data] in the first data transmission information.
可选地,用于指示计算任务为计算资源共享任务的信息可以是第一数据传输信息中增加的[messageId]字段。用于标识计算任务的数据可以是在第一数据传输信息中的字段[data]中添加的标识信息。Optionally, the information used to indicate that the computing task is a computing resource sharing task may be a [messageId] field added to the first data transmission information. The data used to identify the computing task may be identification information added in the field [data] in the first data transmission information.
可选地,用于指示计算任务为计算资源共享任务的信息可以是在第一数据传输信息中 的字段[data]中添加的标识信息。用于标识计算任务的数据可以是第一数据传输信息中增加的[messageId]字段。Optionally, the information used to indicate that the computing task is a computing resource sharing task may be identification information added in the field [data] in the first data transmission information. The data used to identify the computing task may be the [messageId] field added in the first data transmission information.
本申请实施例中,可以在第一数据传输信息中携带用于指示所述计算任务为计算资源共享任务的信息和/或用于标识所述计算任务的数据。使得第一终端设备能够快速、准确地识别出第一数据传输信息。In this embodiment of the present application, the first data transmission information may carry information indicating that the computing task is a computing resource sharing task and/or data used to identify the computing task. The first terminal device can quickly and accurately identify the first data transmission information.
结合第三方面,在第三方面的某些实现方式中,所述第二数据传输信息包括:用于标识所述计算任务执行结果的数据。In conjunction with the third aspect, in some implementations of the third aspect, the second data transmission information includes: data used to identify the execution result of the computing task.
可选地,该用于标识计算任务执行结果的数据可以用于指示计算任务执行结果数据的类型,和/或用于指示计算任务执行结果的内容,Optionally, the data used to identify the computing task execution result may be used to indicate the type of computing task execution result data, and/or to indicate the content of the computing task execution result,
可选地,用于标识计算任务执行结果的数据可以是第二数据传输信息中增加的[messageId]字段,和/或在第二数据传输信息中的字段[data]中添加的标识信息。Optionally, the data used to identify the calculation task execution result may be the [messageId] field added in the second data transmission information, and/or the identification information added in the field [data] in the second data transmission information.
本申请实施例中,能够在第二数据传输信息中携带用于标识计算任务执行结果的数据,能够使得网络设备快速、准确的识别第二数据传输信息。In the embodiment of the present application, the data used to identify the execution result of the computing task can be carried in the second data transmission information, which enables the network device to quickly and accurately identify the second data transmission information.
结合第三方面,在第三方面的某些实现方式中,所述方法还包括:接收所述充电设备发送的第四数据传输信息,所述第四数据传输信息用于指示所述第一终端设备执行所述计算任务的耗电量;根据所述第二数据传输信息和所述第四数据传输信息,确定付费金额;向所述充电设备或所述第一终端设备的账户充值所述付费金额。With reference to the third aspect, in some implementations of the third aspect, the method further includes: receiving fourth data transmission information sent by the charging device, the fourth data transmission information being used to indicate that the first terminal The power consumption of the device when performing the computing task; determining the payment amount according to the second data transmission information and the fourth data transmission information; recharging the payment to the account of the charging device or the first terminal device amount.
本申请实施例中,网络设备能够根据计算任务的完成结果和第一终端设备执行计算任务时的耗电量,确定付费金额,从而向车主付费。In the embodiment of the present application, the network device can determine the payment amount based on the completion result of the computing task and the power consumption of the first terminal device when performing the computing task, thereby paying the car owner.
第四方面,提供了一种计算资源共享的方法,所述方法应用于第一终端设备中,所述方法包括:接收第一数据传输信息,所述第一数据传输信息用于指示所述第一终端设备执行计算任务,所述计算任务与第二终端设备的数据相关联;执行所述计算任务;向充电设备发送第二数据传输信息,所述第二数据传输信息包括所述计算任务的执行结果,所述充电设备至少用于为所述第一终端设备充电。A fourth aspect provides a method for sharing computing resources. The method is applied to a first terminal device. The method includes: receiving first data transmission information, the first data transmission information being used to indicate the first data transmission information. A terminal device performs a computing task, the computing task is associated with data of a second terminal device; performs the computing task; and sends second data transmission information to the charging device, the second data transmission information including the computing task As a result of execution, the charging device is used to charge at least the first terminal device.
第五方面,提供了一种计算资源共享的方法,所述方法应用于充电设备中,所述充电设备至少用于为第一终端设备充电,所述方法包括:接收所述第一终端设备发送的第二数据传输信息,所述第二数据传输信息包括计算任务的执行结果,向网络设备发送所述第二数据传输信息。In a fifth aspect, a method for sharing computing resources is provided. The method is applied to a charging device. The charging device is at least used to charge a first terminal device. The method includes: receiving a signal sent by the first terminal device. The second data transmission information includes the execution result of the computing task, and the second data transmission information is sent to the network device.
第六方面,提供了一种计算资源共享方法,所述方法应用于网络设备中,所述方法包括:向第一终端设备发送第一数据传输信息,所述第一数据传输信息用于指示第一终端设备执行计算任务,所述计算任务与第二终端设备的数据相关联;接收充电设备发送的第二数据传输信息,所述第二数据传输信息包括所述计算任务的执行结果。In a sixth aspect, a computing resource sharing method is provided. The method is applied to a network device. The method includes: sending first data transmission information to a first terminal device, where the first data transmission information is used to indicate the first terminal device. A terminal device performs a computing task, and the computing task is associated with the data of the second terminal device; and receives second data transmission information sent by the charging device, and the second data transmission information includes the execution result of the computing task.
第七方面,提供了一种计算资源共享装置,该装置包括:收发单元,用于接收充电设备发送的第一数据传输信息,所述充电设备至少用于为所述第一终端设备充电,所述第一数据传输信息用于指示所述第一终端设备执行计算任务,所述计算任务与第二终端设备的数据相关联;处理单元,用于执行所述计算任务;所述收发单元,还用于发送第二数据传输信息,所述第二数据传输信息包括所述计算任务的执行结果。In a seventh aspect, a computing resource sharing device is provided, which device includes: a transceiver unit configured to receive first data transmission information sent by a charging device, where the charging device is at least used to charge the first terminal device, so The first data transmission information is used to instruct the first terminal device to perform a computing task, and the computing task is associated with the data of the second terminal device; the processing unit is used to perform the computing task; the transceiver unit is also Used to send second data transmission information, where the second data transmission information includes the execution result of the computing task.
结合第七方面,在第七方面的某些实现方式中,所述计算任务是由网络设备根据所述第二终端设备的请求生成的。In conjunction with the seventh aspect, in some implementations of the seventh aspect, the computing task is generated by a network device according to a request from the second terminal device.
结合第七方面,在第七方面的某些实现方式中,所述收发单元,还用于向所述充电设备发送第三数据传输信息,所述第三数据传输信息用于指示所述第一终端设备的计算能力和/或共享计算能力的时间。In conjunction with the seventh aspect, in some implementations of the seventh aspect, the transceiver unit is further configured to send third data transmission information to the charging device, where the third data transmission information is used to indicate the first The computing power of the end device and/or the time the computing power is shared.
结合第七方面,在第七方面的某些实现方式中,所述第三数据传输信息包括:第三数据标识,所述第三数据标识与所述第一终端设备的计算能力和/或共享计算能力的时间相对应。In conjunction with the seventh aspect, in some implementations of the seventh aspect, the third data transmission information includes: a third data identifier, the third data identifier is shared with the computing capability and/or of the first terminal device Computing power corresponds to time.
结合第七方面,在第七方面的某些实现方式中,所述收发单元,具体用于在与所述充电设备认证成功的情况下,向所述充电设备发送所述第三数据传输信息。In conjunction with the seventh aspect, in some implementations of the seventh aspect, the transceiver unit is specifically configured to send the third data transmission information to the charging device when authentication with the charging device is successful.
结合第七方面,在第七方面的某些实现方式中,所述收发单元,还用于接收请求信息,所述请求信息用于请求第一终端设备共享计算资源;所述收发单元,还用于发送响应信息,所述响应信息用于指示所述第一终端设备允许共享所述第一终端设备的计算资源。In conjunction with the seventh aspect, in some implementations of the seventh aspect, the transceiver unit is also used to receive request information, the request information is used to request the first terminal device to share computing resources; the transceiver unit is also used For sending response information, the response information is used to indicate that the first terminal device allows sharing of computing resources of the first terminal device.
结合第七方面,在第七方面的某些实现方式中,所述第一数据传输信息包括:用于指示所述计算任务为计算资源共享任务的信息和/或用于标识所述计算任务的数据。In conjunction with the seventh aspect, in some implementations of the seventh aspect, the first data transmission information includes: information used to indicate that the computing task is a computing resource sharing task and/or information used to identify the computing task. data.
结合第七方面,在第七方面的某些实现方式中,所述第二数据传输信息包括:用于标识所述计算任务执行结果的数据。In conjunction with the seventh aspect, in some implementations of the seventh aspect, the second data transmission information includes: data used to identify the execution result of the computing task.
结合第七方面,在第七方面的某些实现方式中,所述处理单元,还用于确定执行所述计算任务的处理单元,所述处理单元与所述计算任务的任务类型相对应。In conjunction with the seventh aspect, in some implementations of the seventh aspect, the processing unit is further configured to determine a processing unit that performs the computing task, and the processing unit corresponds to a task type of the computing task.
结合第七方面,在第七方面的某些实现方式中,所述处理单元,具体用于在可信执行环境中执行所述计算任务。In conjunction with the seventh aspect, in some implementations of the seventh aspect, the processing unit is specifically configured to execute the computing task in a trusted execution environment.
第八方面,提供了一种计算资源共享装置,该装置包括:收发单元,用于接收网络设备发送的第一数据传输信息,所述第一数据传输信息用于指示第一终端设备执行计算任务,所述计算任务与第二终端设备的数据相关联;所述收发单元,还用于向所述第一终端设备发送所述第一数据传输信息。In an eighth aspect, a computing resource sharing device is provided. The device includes: a transceiver unit configured to receive first data transmission information sent by a network device, where the first data transmission information is used to instruct a first terminal device to perform a computing task. , the computing task is associated with the data of the second terminal device; the transceiver unit is also used to send the first data transmission information to the first terminal device.
结合第八方面,在第八方面的某些实现方式中,所述计算任务是由所述网络设备根据所述第二终端设备的请求生成的。In conjunction with the eighth aspect, in some implementations of the eighth aspect, the computing task is generated by the network device according to a request of the second terminal device.
结合第八方面,在第八方面的某些实现方式中,所述收发单元,还用于接收所述第一终端设备发送的第三数据传输信息,所述第三数据传输信息用于指示所述第一终端设备的计算能力和/或共享计算能力的时间;所述收发单元,还用于向所述网络设备发送所述第三数据传输信息。With reference to the eighth aspect, in some implementations of the eighth aspect, the transceiver unit is further configured to receive third data transmission information sent by the first terminal device, where the third data transmission information is used to indicate that the The computing power of the first terminal device and/or the time for sharing the computing power; the transceiver unit is also used to send the third data transmission information to the network device.
结合第八方面,在第八方面的某些实现方式中,所述第三数据传输信息包括:第三数据标识,所述第三数据标识与所述第一终端设备的计算能力和/或共享计算能力的时间相对应。In conjunction with the eighth aspect, in some implementations of the eighth aspect, the third data transmission information includes: a third data identifier, the third data identifier is shared with the computing capability and/or of the first terminal device Computing power corresponds to time.
结合第八方面,在第八方面的某些实现方式中,所述收发单元,具体用于在与所述第一终端设备认证成功的情况下,接收所述第一终端设备发送所述第三数据传输信息;在与所述网络设备认证成功的情况下,向所述网络设备发送所述第三数据传输信息。With reference to the eighth aspect, in some implementations of the eighth aspect, the transceiver unit is specifically configured to receive the third terminal device sent by the first terminal device when the authentication with the first terminal device is successful. Data transmission information; if the authentication with the network device is successful, send the third data transmission information to the network device.
结合第八方面,在第八方面的某些实现方式中,所述第一数据传输信息包括:用于指示所述计算任务为计算资源共享任务的信息和/或用于标识所述计算任务的数据。In conjunction with the eighth aspect, in some implementations of the eighth aspect, the first data transmission information includes: information used to indicate that the computing task is a computing resource sharing task and/or information used to identify the computing task. data.
结合第八方面,在第八方面的某些实现方式中,所述装置还包括:处理单元,用于确定所述第一终端设备执行所述计算任务的耗电量;所述收发单元,还用于向所述网络设备 发送第四数据传输信息,所述第四数据传输信息用于指示所述耗电量。With reference to the eighth aspect, in some implementations of the eighth aspect, the apparatus further includes: a processing unit, configured to determine the power consumption of the first terminal device to perform the computing task; the transceiver unit, further Used to send fourth data transmission information to the network device, where the fourth data transmission information is used to indicate the power consumption.
第九方面,提供了一种计算资源共享装置,该装置包括:收发单元,用于向充电设备发送第一数据传输信息,所述第一数据传输信息用于指示第一终端设备执行计算任务,所述计算任务与第二终端设备的数据相关联;所述收发单元,还用于接收第二数据传输信息,所述第二数据传输信息包括所述计算任务的执行结果。In a ninth aspect, a computing resource sharing device is provided, which device includes: a transceiver unit configured to send first data transmission information to the charging device, where the first data transmission information is used to instruct the first terminal device to perform a computing task, The computing task is associated with data of the second terminal device; the transceiver unit is also configured to receive second data transmission information, where the second data transmission information includes the execution result of the computing task.
结合第九方面,在第九方面的某些实现方式中,所述计算任务是由所述网络设备根据所述第二终端设备的请求生成的。In conjunction with the ninth aspect, in some implementations of the ninth aspect, the computing task is generated by the network device according to a request of the second terminal device.
结合第九方面,在第九方面的某些实现方式中,所述装置还包括处理单元,所述收发单元,还用于接收所述充电设备发送的第三数据传输信息,所述第三数据传输信息用于指示所述第一终端设备的计算能力和/或共享计算能力的时间;所述处理单元,用于根据所述第三数据传输信息,确定所述计算任务。With reference to the ninth aspect, in some implementations of the ninth aspect, the device further includes a processing unit, and the transceiver unit is further configured to receive third data transmission information sent by the charging device, the third data The transmission information is used to indicate the computing capability of the first terminal device and/or the time of sharing the computing capability; the processing unit is configured to determine the computing task according to the third data transmission information.
结合第九方面,在第九方面的某些实现方式中,所述第三数据传输信息包括:第三数据标识,所述第三数据标识与所述第一终端设备的计算能力和/或共享计算能力的时间相对应。In conjunction with the ninth aspect, in some implementations of the ninth aspect, the third data transmission information includes: a third data identifier, the third data identifier is shared with the computing power and/or of the first terminal device Computing power corresponds to time.
结合第九方面,在第九方面的某些实现方式中,所述收发单元,具体用于在与所述充电设备接入认证成功的情况下,接收所述充电设备发送所述第三数据传输信息。With reference to the ninth aspect, in some implementations of the ninth aspect, the transceiver unit is specifically configured to receive the third data transmission sent by the charging device when the access authentication with the charging device is successful. information.
结合第九方面,在第九方面的某些实现方式中,所述收发单元,还用于发送请求信息,所述请求信息用于请求第一终端设备共享计算资源;所述收发单元,还用于接收响应信息,所述响应信息用于指示所述第一终端设备允许共享所述第一终端设备的计算资源。In conjunction with the ninth aspect, in some implementations of the ninth aspect, the transceiver unit is also used to send request information, the request information is used to request the first terminal device to share computing resources; the transceiver unit is also used to In receiving response information, the response information is used to indicate that the first terminal device allows sharing of computing resources of the first terminal device.
结合第九方面,在第九方面的某些实现方式中,所述第一数据传输信息包括:用于指示所述计算任务为计算资源共享任务的信息和/或用于标识所述计算任务的数据。In conjunction with the ninth aspect, in some implementations of the ninth aspect, the first data transmission information includes: information used to indicate that the computing task is a computing resource sharing task and/or information used to identify the computing task. data.
结合第九方面,在第九方面的某些实现方式中,所述第二数据传输信息包括:用于标识所述计算任务执行结果的数据。In conjunction with the ninth aspect, in some implementations of the ninth aspect, the second data transmission information includes: data used to identify the execution result of the computing task.
结合第九方面,在第九方面的某些实现方式中,所述收发单元,用于接收所述充电设备发送的第四数据传输信息,所述第四数据传输信息用于指示所述第一终端设备执行所述计算任务的耗电量;所述处理单元,还用于根据所述第二数据传输信息和所述第四数据传输信息,确定付费金额;所述处理单元还用于,向所述充电设备或所述第一终端设备的账户充值所述付费金额。With reference to the ninth aspect, in some implementations of the ninth aspect, the transceiver unit is configured to receive fourth data transmission information sent by the charging device, and the fourth data transmission information is used to indicate the first The power consumption of the terminal device when executing the computing task; the processing unit is also used to determine the payment amount according to the second data transmission information and the fourth data transmission information; the processing unit is also used to provide The account of the charging device or the first terminal device is recharged with the payment amount.
第十方面,提供了一种计算资源共享装置,该装置包括:收发单元,用于接收第一数据传输信息,所述第一数据传输信息用于指示所述第一终端设备执行计算任务,所述计算任务与第二终端设备的数据相关联;处理单元,用于执行所述计算任务;所述收发单元还用于向充电设备发送第二数据传输信息,所述第二数据传输信息包括所述计算任务的执行结果,所述充电设备至少用于为所述第一终端设备充电。In a tenth aspect, a computing resource sharing device is provided. The device includes: a transceiver unit configured to receive first data transmission information. The first data transmission information is used to instruct the first terminal device to perform a computing task. The computing task is associated with the data of the second terminal device; the processing unit is used to perform the computing task; the transceiver unit is also used to send second data transmission information to the charging device, the second data transmission information includes the According to the execution result of the computing task, the charging device is at least used to charge the first terminal device.
第十一方面,提供了一种计算资源共享装置,该装置包括:收发单元,用于接收所述第一终端设备发送的第二数据传输信息,所述第二数据传输信息包括计算任务的执行结果,所述收发单元,还用于向网络设备发送所述第二数据传输信息。In an eleventh aspect, a computing resource sharing device is provided. The device includes: a transceiver unit configured to receive second data transmission information sent by the first terminal device, where the second data transmission information includes execution of a computing task. As a result, the transceiver unit is also used to send the second data transmission information to the network device.
第十二方面,提供了一种计算资源共享装置,所述装置包括:收发单元,用于向第一终端设备发送第一数据传输信息,所述第一数据传输信息用于指示第一终端设备执行计算任务,所述计算任务与第二终端设备的数据相关联;所述收发单元,还用于接收充电设备 发送的第二数据传输信息,所述第二数据传输信息包括所述计算任务的执行结果。In a twelfth aspect, a computing resource sharing device is provided. The device includes: a transceiver unit configured to send first data transmission information to a first terminal device, where the first data transmission information is used to instruct the first terminal device. Execute a computing task, the computing task is associated with the data of the second terminal device; the transceiver unit is also used to receive the second data transmission information sent by the charging device, the second data transmission information includes the calculation task Results of the.
第十三方面,提供一种计算资源共享装置,该装置包括:至少一个处理器和存储器,所述至少一个处理器与所述存储器耦合,用于读取并执行所述存储器中的指令,该装置用于执行上述各个方面中的方法。In a thirteenth aspect, a computing resource sharing device is provided, which device includes: at least one processor and a memory, the at least one processor is coupled to the memory, and is used to read and execute instructions in the memory, the Devices are used to perform the methods in each of the above aspects.
第十四方面,提供一种计算机可读介质,所述计算机可读介质存储有程序代码,当所述计算机程序代码在计算机上运行时,使得计算机执行上述各个方面中的方法。A fourteenth aspect, a computer-readable medium is provided. The computer-readable medium stores program code. When the computer program code is run on a computer, it causes the computer to perform the methods in the above aspects.
第十五方面,提供一种芯片,该芯片包括:至少一个处理器和存储器,所述至少一个处理器与所述存储器耦合,用于读取并执行所述存储器中的指令,该装置用于执行上述各个方面中的方法。In a fifteenth aspect, a chip is provided. The chip includes: at least one processor and a memory. The at least one processor is coupled to the memory and is used to read and execute instructions in the memory. The device is used to Implement the methods in each of the above aspects.
第十六方面,提供一种计算机程序产品,所述计算机产品包括:计算机程序,当所述计算机程序被运行时,使得计算机执行上述各个方面中的方法。In a sixteenth aspect, a computer program product is provided. The computer product includes: a computer program, which when the computer program is run, causes the computer to execute the methods in the above aspects.
第十七方面,提供一种车辆,该车辆包括:至少一个处理器和存储器,所述至少一个处理器与所述存储器耦合,用于读取并执行所述存储器中的指令,该车辆用于执行上述各个方面中的方法。In a seventeenth aspect, a vehicle is provided. The vehicle includes: at least one processor and a memory. The at least one processor is coupled to the memory and is used to read and execute instructions in the memory. The vehicle is used to Implement the methods in each of the above aspects.
附图说明Description of drawings
图1是本申请实施例提供的车辆功能性示意图;Figure 1 is a functional schematic diagram of a vehicle provided by an embodiment of the present application;
图2是本申请实施例提供的智能驾驶域控制器的算力使用示意图;Figure 2 is a schematic diagram of the computing power usage of the intelligent driving domain controller provided by the embodiment of this application;
图3是本申请实施例提供的车辆通过PLC线缆与充电桩进行充电的示意图;Figure 3 is a schematic diagram of a vehicle charging through a PLC cable and a charging pile according to the embodiment of the present application;
图4是本申请实施例提供的计算资源共享方法所适用的系统架构;Figure 4 is a system architecture applicable to the computing resource sharing method provided by the embodiment of the present application;
图5是本申请实施例提供的计算资源共享方法的应用场景图;Figure 5 is an application scenario diagram of the computing resource sharing method provided by the embodiment of the present application;
图6是本申请实施例提供的计算资源共享方法的另一种应用场景图;Figure 6 is another application scenario diagram of the computing resource sharing method provided by the embodiment of the present application;
图7是本申请实施例提供的一种计算资源共享方法;Figure 7 is a computing resource sharing method provided by an embodiment of the present application;
图8是本申请实施例提供的另一种计算资源共享方法;Figure 8 is another computing resource sharing method provided by an embodiment of the present application;
图9是本申请实施例提供的再一种计算资源共享方法;Figure 9 is yet another computing resource sharing method provided by an embodiment of the present application;
图10是本申请实施例提供的一种数据传输方法;Figure 10 is a data transmission method provided by an embodiment of the present application;
图11是本申请实施例提供的车辆开放算力服务的示意性流程图;Figure 11 is a schematic flow chart of the vehicle open computing power service provided by the embodiment of the present application;
图12是本申请实施例提供的一种计算资源共享装置;Figure 12 is a computing resource sharing device provided by an embodiment of the present application;
图13是本申请实施例提供的另一种计算资源共享装置。Figure 13 is another computing resource sharing device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图,对本申请实施例中的技术方案进行描述。The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.
为了便于理解,下文结合图1,以智能驾驶的场景为例,介绍本申请实施例适用的示例场景。For ease of understanding, the following uses the intelligent driving scenario as an example to introduce example scenarios applicable to the embodiments of the present application in conjunction with Figure 1 .
图1是本申请实施例提供的车辆100的一个功能性示意图。应理解,图1及相关描述仅为一种举例,并不对本申请实施例中的车辆进行限定。FIG. 1 is a functional schematic diagram of a vehicle 100 provided by an embodiment of the present application. It should be understood that FIG. 1 and related descriptions are only examples and do not limit the vehicle in the embodiment of the present application.
在实施过程中,车辆100可以被配置为完全或部分自动驾驶模式,也可以由用户进行人工驾驶。例如:车辆100可以通过感知系统120获取其周围的环境信息,并基于对周边 环境信息的分析得到自动驾驶策略以实现完全自动驾驶,或者将分析结果呈现给用户以实现部分自动驾驶。During implementation, the vehicle 100 may be configured in a fully or partially autonomous driving mode, or may be manually driven by a user. For example, the vehicle 100 can obtain its surrounding environment information through the sensing system 120, and obtain an autonomous driving strategy based on the analysis of the surrounding environment information to achieve fully autonomous driving, or present the analysis results to the user to achieve partially autonomous driving.
车辆100可包括多种子系统,例如感知系统120、计算平台130和显示装置140。可选地,车辆100可包括更多或更少的子系统,并且每个子系统都可包括一个或多个部件。另外,车辆100的每个子系统和部件可以通过有线或者无线的方式实现互连。 Vehicle 100 may include various subsystems, such as perception system 120 , computing platform 130 , and display device 140 . Alternatively, vehicle 100 may include more or fewer subsystems, and each subsystem may include one or more components. In addition, each subsystem and component of vehicle 100 may be interconnected through wired or wireless means.
感知系统120可包括感测关于车辆100周边的环境的信息的若干种传感器。例如,感知系统120可以包括定位系统,该定位系统可以是全球定位系统(global positioning system,GPS),也可以是北斗系统或者其他定位系统。感知系统120可以包括惯性测量单元(inertial measurement unit,IMU)、激光雷达、毫米波雷达、超声雷达以及摄像装置中的一种或者多种。Sensing system 120 may include several types of sensors that sense information about the environment surrounding vehicle 100 . For example, the sensing system 120 may include a positioning system, which may be a global positioning system (GPS), Beidou system, or other positioning systems. The sensing system 120 may include one or more of an inertial measurement unit (IMU), lidar, millimeter wave radar, ultrasonic radar, and camera device.
车辆100的部分或所有功能可以由计算平台130控制。计算平台130可包括处理器131至13n(n为正整数),处理器是一种具有信号的处理能力的电路,在一种实现中,处理器可以是具有指令读取与运行能力的电路,例如中央处理单元(central processing unit,CPU)、微处理器、图形处理器(graphics processing unit,GPU)(可以理解为一种微处理器)、或数字信号处理器(digital signal processor,DSP)等;在另一种实现中,处理器可以通过硬件电路的逻辑关系实现一定功能,该硬件电路的逻辑关系是固定的或可以重构的,例如处理器为专用集成电路(application-specific integrated circuit,ASIC)或可编程逻辑器件(programmable logic device,PLD)实现的硬件电路,例如FPGA。在可重构的硬件电路中,处理器加载配置文档,实现硬件电路配置的过程,可以理解为处理器加载指令,以实现以上部分或全部单元的功能的过程。此外,还可以是针对人工智能设计的硬件电路,其可以理解为一种ASIC,例如神经网络处理单元(neural network processing unit,NPU)、张量处理单元(tensor processing unit,TPU)、深度学习处理单元(deep learning processing unit,DPU)等。此外,计算平台130还可以包括存储器,存储器用于存储指令,处理器131至13n中的部分或全部处理器可以调用存储器中的指令,以实现相应的功能。Some or all functions of vehicle 100 may be controlled by computing platform 130 . The computing platform 130 may include processors 131 to 13n (n is a positive integer). A processor is a circuit with signal processing capabilities. In one implementation, the processor may be a circuit with instruction reading and execution capabilities. For example, central processing unit (CPU), microprocessor, graphics processing unit (GPU) (can be understood as a microprocessor), or digital signal processor (DSP), etc. ; In another implementation, the processor can realize certain functions through the logical relationship of the hardware circuit. The logical relationship of the hardware circuit is fixed or can be reconstructed. For example, the processor is an application-specific integrated circuit (application-specific integrated circuit). ASIC) or programmable logic device (PLD) implemented hardware circuit, such as FPGA. In a reconfigurable hardware circuit, the process of the processor loading the configuration file and realizing the hardware circuit configuration can be understood as the process of the processor loading instructions to realize the functions of some or all of the above units. In addition, it can also be a hardware circuit designed for artificial intelligence, which can be understood as an ASIC, such as a neural network processing unit (NPU), tensor processing unit (TPU), deep learning processing Unit (deep learning processing unit, DPU), etc. In addition, the computing platform 130 may also include a memory, which is used to store instructions. Some or all of the processors 131 to 13n may call instructions in the memory to implement corresponding functions.
计算平台130可基于从各种子系统(例如,感知系统120)接收的输入来控制车辆100的功能。在一些实施例中,计算平台130可操作来对车辆100及其子系统的许多方面提供控制。Computing platform 130 may control functionality of vehicle 100 based on input received from various subsystems (eg, perception system 120 ). In some embodiments, computing platform 130 is operable to provide control of many aspects of vehicle 100 and its subsystems.
可选地,上述组件只是一个示例,实际应用中,上述各个模块中的组件有可能根据实际需要增添或者删除,图1不应理解为对本申请实施例的限制。Optionally, the above components are just examples. In actual applications, the components in each of the above modules may be added or deleted according to actual needs. Figure 1 should not be understood as limiting the embodiments of the present application.
在道路行进的自动驾驶车辆,如上面的车辆100,可以识别其周围环境内的物体以确定对当前速度的调整。所述物体可以是其它车辆、交通控制设备、或者其它类型的物体。在一些示例中,可以独立地考虑每个识别的物体,并且基于物体的各自的特性,诸如它的当前速度、加速度、与车辆的间距等,可以用来确定自动驾驶车辆所要调整的速度。An autonomous vehicle traveling on the road, such as vehicle 100 above, can identify objects within its surrounding environment to determine adjustments to its current speed. The objects may be other vehicles, traffic control equipment, or other types of objects. In some examples, each identified object can be considered independently and based on the object's respective characteristics, such as its current speed, acceleration, distance from the vehicle, etc., can be used to determine the speed to which the autonomous vehicle will adjust.
可选地,车辆100或者与车辆100相关联的感知和计算设备(例如,计算平台130)可以基于所识别的物体的特性和周围环境的状态(例如,交通、雨、道路上的冰、等等)来预测所述识别的物体的行为。可选地,每一个所识别的物体都依赖于彼此的行为,因此还可以将所识别的所有物体全部一起考虑来预测单个识别的物体的行为。车辆100能够基于预测的所述识别的物体的行为来调整它的速度。换句话说,自动驾驶车辆能够基于所预测的物体的行为来确定车辆将需要调整到(例如,加速、减速、或者停止)什么稳定状态。在 这个过程中,也可以考虑其它因素来确定车辆100的速度,诸如,车辆100在行驶的道路中的横向位置、道路的曲率、静态和动态物体的接近度等等。Optionally, the vehicle 100 or a sensing and computing device associated with the vehicle 100 (eg, computing platform 130 ) may perform the processing based on the characteristics of the identified object and the state of the surrounding environment (eg, traffic, rain, ice on the road, etc. etc.) to predict the behavior of the identified object. Alternatively, each recognized object depends on the behavior of each other, so it is also possible to predict the behavior of a single recognized object by considering all recognized objects together. The vehicle 100 is able to adjust its speed based on the predicted behavior of the identified objects. In other words, the autonomous vehicle is able to determine what stable state the vehicle will need to adjust to (eg, accelerate, decelerate, or stop) based on the predicted behavior of the object. In this process, other factors may also be considered to determine the speed of the vehicle 100, such as the lateral position of the vehicle 100 in the road being traveled, the curvature of the road, the proximity of static and dynamic objects, etc.
除了提供调整自动驾驶车辆的速度的指令之外,计算设备还可以提供修改车辆100的转向角的指令,以使得自动驾驶车辆遵循给定的轨迹和/或维持与自动驾驶车辆附近的物体(例如,道路上的相邻车道中的轿车)的安全横向和纵向距离。In addition to providing instructions to adjust the speed of the autonomous vehicle, the computing device may also provide instructions to modify the steering angle of the vehicle 100 so that the autonomous vehicle follows a given trajectory and/or maintains contact with objects in the vicinity of the autonomous vehicle (e.g., , the safe lateral and longitudinal distance between cars in adjacent lanes on the road).
本申请中的车辆100(有时简称为车)为广义概念上的车辆,可以是交通工具(如:汽车,卡车,摩托车,火车,飞机,轮船等),工业车辆(如:叉车,挂车,牵引车等),工程车辆(如:挖掘机,推土机,吊车等),农用设备(如割草机、收割机等),游乐设备,玩具车辆等,本申请对车辆的类型不做限定。The vehicle 100 (sometimes referred to as a vehicle) in this application is a vehicle in a broad sense, which can be a means of transportation (such as a car, a truck, a motorcycle, a train, an airplane, a ship, etc.), an industrial vehicle (such as a forklift, a trailer, etc.) tractors, etc.), engineering vehicles (such as excavators, bulldozers, cranes, etc.), agricultural equipment (such as lawn mowers, harvesters, etc.), amusement equipment, toy vehicles, etc. This application does not limit the types of vehicles.
随着科学技术的发展,车辆中的域控制器上的处理器的算力得到了显著的提高,除此之外,车内网关、智能座舱控制器、智能驾驶控制器上的中央处理单元的算力也越来越强。从算力使用的角度来看,目前,车内最强的AI算力主要应用于智能驾驶场景。智能驾驶所需的模型在云端训练完成后,通过网络或者其他工具推送到智能驾驶域控制器中,并通过智能驾驶域控制器NPU运用模型进行推理完成决策。这个过程中的网络可以是蜂窝网络。这个过程中的推理决策过程可以在车辆的行驶场景下进行,主要完成传感器的数据融合、推理和规划决策等任务。With the development of science and technology, the computing power of the processors on the domain controllers in vehicles has been significantly improved. In addition, the computing power of the central processing units on the in-vehicle gateways, smart cockpit controllers, and smart driving controllers The computing power is also getting stronger and stronger. From the perspective of computing power usage, currently, the strongest AI computing power in the car is mainly used in intelligent driving scenarios. After the model required for intelligent driving is completed in the cloud, it is pushed to the intelligent driving domain controller through the network or other tools, and the NPU of the intelligent driving domain controller uses the model to perform inference and complete decision-making. The network in this process can be a cellular network. The reasoning and decision-making process in this process can be carried out in the driving scenario of the vehicle, mainly completing tasks such as sensor data fusion, reasoning and planning and decision-making.
应理解,在本申请实施例中,处理器的计算资源共享可以称为算力共享,处理器的计算能力可以称为算力。It should be understood that in the embodiments of the present application, the sharing of computing resources of processors may be called computing power sharing, and the computing capabilities of processors may be referred to as computing power.
下面以图2为例介绍智能驾驶域控制器的计算资源使用过程。The following uses Figure 2 as an example to introduce the computing resource usage process of the intelligent driving domain controller.
如图2所示,智能驾驶场景所需要的模型在云端完成训练后,可以通过空中下载技术(over-the-air technology,OTA)推送到智能驾驶域控制器中。智能驾驶域控制器中的NPU能够使用该模型进行推理完成决策,并实现自动驾驶功能。As shown in Figure 2, after the model required for the intelligent driving scenario is trained in the cloud, it can be pushed to the intelligent driving domain controller through over-the-air technology (OTA). The NPU in the intelligent driving domain controller can use this model to perform reasoning, complete decisions, and implement autonomous driving functions.
在车辆内部,智能驾驶域控制器可以通过网关1至网关4直接或间接的与电池管理模块(battery management system,BMS)和/或车载充电机(on board charger,OBC)连接。其中,BMS模块可以从充电桩或者OBC获取电量,以使得自动驾驶控制器能够在相应的电量范围内实现自动驾驶功能。Inside the vehicle, the intelligent driving domain controller can be directly or indirectly connected to the battery management module (battery management system, BMS) and/or on-board charger (OBC) through gateway 1 to gateway 4. Among them, the BMS module can obtain power from the charging pile or OBC, so that the automatic driving controller can implement the automatic driving function within the corresponding power range.
应理解,在本申请实施例中,充电桩也可以称为充电设备,任何能够给车辆提供充电服务和/或网络服务的设备均属于本申请实施例的所称的充电桩或充电设备。It should be understood that in the embodiment of the present application, a charging pile may also be called a charging device, and any device that can provide charging services and/or network services to vehicles belongs to the so-called charging pile or charging equipment in the embodiment of the present application.
图3是本申请实施例提供的车辆通过PLC线缆与充电桩进行充电的示意图。Figure 3 is a schematic diagram of a vehicle charging through a PLC cable and a charging pile according to an embodiment of the present application.
如图3所示,充电桩可以使用PLC线缆对电动车进行充电。云服务器可以通过充电桩实现分时租赁、数据采集和营收统计等功能。其中,PLC线缆不仅可以用于电动车的充电,还可以用于进行数据传输。As shown in Figure 3, charging piles can use PLC cables to charge electric vehicles. Cloud servers can realize functions such as time-sharing leasing, data collection, and revenue statistics through charging piles. Among them, PLC cables can not only be used for charging electric vehicles, but also for data transmission.
然而,在停车充电的场景下既存在稳定的电力供应和网络连接,车辆的AI处理器又不需要执行自动驾驶任务,车内的其他处理器也基本处于空闲状态,车内各处理器的算力没有被合理的应用。However, in the parking and charging scenario, there is a stable power supply and network connection, the vehicle's AI processor does not need to perform autonomous driving tasks, and other processors in the vehicle are basically idle, and the computing power of each processor in the vehicle Force was not applied properly.
本申请实施例提供了一种计算资源共享方法、装置以及终端设备,能够在终端设备充电时共享并合理利用空闲处理器的计算能力。Embodiments of the present application provide a computing resource sharing method, device and terminal equipment, which can share and reasonably utilize the computing power of an idle processor when the terminal equipment is charging.
应理解,本申请实施例所述的终端设备既可以是车辆,还可以是手机、计算机和平板电脑等。It should be understood that the terminal device described in the embodiments of this application can be a vehicle, a mobile phone, a computer, a tablet, etc.
还应理解,本申请实施例所称的算力运营商可以是云端服务器,还可以是网络设备,其可以与充电桩和/或车辆之间进行信息交互。It should also be understood that the computing power operator referred to in the embodiment of this application may be a cloud server or a network device, which may interact with charging piles and/or vehicles.
在介绍本申请实施例提供的计算资源共享方法之前,首先介绍计算资源共享方法所适用的系统架构和应用场景。Before introducing the computing resource sharing method provided by the embodiments of this application, the system architecture and application scenarios applicable to the computing resource sharing method are first introduced.
图4是本申请实施例提供的计算资源共享方法所适用的系统架构。Figure 4 is a system architecture applicable to the computing resource sharing method provided by the embodiment of the present application.
如图4所示,该系统架构包括:算力运营商、充电桩和车辆。其中,算力运营商Orchestrator主要负责算力的服务编排,包括:算力任务调度模块和费用管理模块。充电桩包括中间代理模块,包括:服务发现模块、费用管理模块和数据路由模块。其中,服务发现模块主要负责发现可提供共享算力服务的车辆,费用管理模块主要负责车辆执行任务的费用管理,数据路由模块主要负责将接收到的算力任务下发到车辆执行以及将接收到的任务执行结果上传至算力运营商。车辆负责构建安全可信的计算环境,将云端下发的算力任务映射到车内的计算单元执行,并将计算结果通过充电桩上传给算力运营商。车辆主要包括:协同Agent模块、安全可信模块、运行管理模块和计算执行模块。As shown in Figure 4, the system architecture includes: computing operators, charging piles and vehicles. Among them, the computing power operator Orchestrator is mainly responsible for the service orchestration of computing power, including: computing power task scheduling module and expense management module. The charging pile includes an intermediate agent module, including: service discovery module, expense management module and data routing module. Among them, the service discovery module is mainly responsible for discovering vehicles that can provide shared computing power services, the cost management module is mainly responsible for the cost management of vehicle execution tasks, and the data routing module is mainly responsible for distributing the received computing power tasks to the vehicle for execution and receiving the received computing power. The task execution results are uploaded to the computing power operator. The vehicle is responsible for building a safe and trustworthy computing environment, mapping the computing tasks issued by the cloud to the computing unit in the vehicle for execution, and uploading the computing results to the computing operator through the charging pile. The vehicle mainly includes: collaborative agent module, security and trustworthiness module, operation management module and calculation execution module.
图5为本申请实施例提供的计算资源共享方法的应用场景图。Figure 5 is an application scenario diagram of the computing resource sharing method provided by the embodiment of the present application.
如图5中的(a)所示,计算资源共享方法在实施前需要充电桩具有宽带接入能力,并且需要车主同意在泊车充电时提供算力共享服务。其中,充电桩与车辆的连接可以采用图3所示的PLC线缆。在车辆接入充电桩后,云端服务器上的算力运营商可以撮合算力的需求方和提供方,在撮合完成后云端服务器可以将算力任务发送到与充电桩相连的车辆。其中,撮合的过程可以是,连接到充电桩的第一车辆具有算力服务需求,其将算力服务需求通过充电桩上报给算力运营商,算力运营商发现同样连接到所述充电桩下的第二车辆的处理器算力空闲,算力运营商可以将生成算力任务,并将该算力任务通过充电桩下发至第二车辆执行。第二车辆可以在夜间休息或者长期泊车等场景下,利用车内安全的计算环境完成待执行的任务,并将完成任务的情况经由充电桩上传至云端服务器。云端服务器可以根据第二车辆完成任务的情况将完成任务的收益提供给车主。其中,将任务完成的收益提供给车主可以通过充值充电桩或者将收益汇入到用户指定账户的方式进行。As shown in (a) in Figure 5, before implementation, the computing resource sharing method requires the charging pile to have broadband access capabilities, and the car owner needs to agree to provide computing power sharing services when parking and charging. Among them, the connection between the charging pile and the vehicle can use the PLC cable shown in Figure 3. After the vehicle is connected to the charging pile, the computing power operator on the cloud server can match the demanders and providers of computing power. After the matching is completed, the cloud server can send the computing power task to the vehicle connected to the charging pile. The matching process may be that the first vehicle connected to the charging pile has computing power service requirements, and it reports the computing power service requirements to the computing power operator through the charging pile, and the computing power operator discovers that it is also connected to the charging pile. If the processor computing power of the second vehicle is idle, the computing power operator can generate a computing power task and send the computing power task to the second vehicle through the charging pile for execution. The second vehicle can use the safe computing environment in the vehicle to complete the tasks to be performed in scenarios such as resting at night or long-term parking, and uploads the completed tasks to the cloud server through the charging pile. The cloud server can provide the benefits of completing the task to the car owner based on how well the second vehicle completes the task. Among them, the income from completing the task can be provided to the car owner by recharging the charging pile or by remitting the income to the user's designated account.
应理解,本申请实施例所称的算力任务也可以称为计算任务,还可以称为算力共享任务。It should be understood that the computing power tasks referred to in the embodiments of this application may also be called computing tasks or computing power sharing tasks.
下面结合图5中的(b)至图5中的(i)详细的说明上述流程。The above process will be described in detail below with reference to (b) to (i) in Figure 5 .
如图5中的(b)所示,车辆在正常驾驶的状态下,车辆的中控大屏显示界面500以及功能栏510。该显示界面500上包括用户账号登录信息501、蓝牙功能图标502、Wi-Fi功能图标503、蜂窝网络信号图标504、车载地图应用搜索框505、切换至显示车辆安装的所有应用程序的卡片506、切换至显示车载音乐应用的卡片507、车辆剩余电量以及剩余行驶里程的显示卡片508、车辆360度(°)环影功能的显示卡片509。其中,车载地图应用搜索框505中可以包括用户设置的回家控件5051和去公司控件5052。功能栏510中包括切换至显示中控大屏桌面的图标511、车辆内循环图标512、主驾座椅加热功能图标513,主驾区域空调温度显示图标514、副驾区域空调温度显示图标515、副驾座椅加热功能图标516以及音量设置图标517。As shown in (b) of Figure 5 , when the vehicle is in a normal driving state, the vehicle's central control large-screen display interface 500 and function bar 510 are displayed. The display interface 500 includes user account login information 501, Bluetooth function icon 502, Wi-Fi function icon 503, cellular network signal icon 504, vehicle map application search box 505, switch to a card displaying all applications installed in the vehicle 506, Switch to a card 507 that displays the car music application, a card 508 that displays the vehicle's remaining power and remaining mileage, and a card 509 that displays the vehicle's 360-degree (°) surround function. Among them, the vehicle map application search box 505 may include a home control 5051 and a go to work control 5052 set by the user. The function bar 510 includes an icon 511 for switching to display the central control large screen desktop, a vehicle interior circulation icon 512, a driver seat heating function icon 513, a driver area air conditioning temperature display icon 514, a passenger area air conditioning temperature display icon 515, and a passenger seat heating function icon 513. Seat heating function icon 516 and volume setting icon 517.
如图5中的(c)所示,车辆518可以和充电桩520通过PLC线缆519相连,在车辆518接入充电桩520后,车载显示屏上的显示可以如图5中的(d)所示。其中,车辆518可以是 图1中的车辆100。As shown in (c) in Figure 5, the vehicle 518 can be connected to the charging pile 520 through the PLC cable 519. After the vehicle 518 is connected to the charging pile 520, the display on the vehicle display screen can be as shown in (d) in Figure 5 shown. Wherein, vehicle 518 may be vehicle 100 in FIG. 1 .
如图5中的(d)所示,车辆的显示屏上包括提示框521,该提示框521用于提示用户车辆518已经连接到充电桩520,并询问用户是否进行安全认证。只有在安全认证成功后,算力运营商才能通过云端服务器向车辆518下发算力任务。在进行安全认证开始的之前或之后需要用户开启车辆的算力共享服务权限。其中,车辆和充电桩进行认证的过程可以是车辆和充电桩互相交换证书或密钥,在双方证书或密钥一致的情况下完成安全认证。As shown in (d) of FIG. 5 , the vehicle's display screen includes a prompt box 521 , which prompts the user that the vehicle 518 has been connected to the charging pile 520 and asks the user whether to perform security authentication. Only after the security certification is successful, the computing power operator can issue computing power tasks to vehicle 518 through the cloud server. Before or after starting the security authentication, the user needs to enable the vehicle's computing power sharing service permissions. Among them, the process of authenticating the vehicle and the charging pile can be that the vehicle and the charging pile exchange certificates or keys with each other, and the security authentication is completed when the certificates or keys of both parties are consistent.
如图5中的(e)所示,该图形用户界面(graphical user interface,GUI)为算力共享服务界面,该GUI包括:算力共享服务开启或关闭控件522、描述文本523和保存控件524,在车辆和充电桩的安全认证开始的之前或之后,用户可以通过控件522来开启或关闭车辆的算力共享服务。在算力共享服务开启后,用户的车辆将会共享一部分算力去处理从算力运营商接收的算力任务,在车辆完成算力任务后,用户将会获得相应的收益。As shown in (e) in Figure 5, the graphical user interface (GUI) is a computing power sharing service interface. The GUI includes: computing power sharing service opening or closing control 522, description text 523 and save control 524 , before or after the safety certification of the vehicle and charging pile starts, the user can turn on or off the computing power sharing service of the vehicle through control 522. After the computing power sharing service is turned on, the user's vehicle will share part of the computing power to process the computing power tasks received from the computing power operator. After the vehicle completes the computing power tasks, the user will receive corresponding benefits.
如图5中的(f)所示,该GUI为上报计算能力界面,该界面可以包括算力服务能力524、控件525和上报控件526。其中,算力服务能力524可以显示车辆CPU、NPU、GPU、内存的可利用资源和共享资源开放时间。用户可以在安全认证成功后,可以通过控件525来设置共享算力的时间,并通过上报控件526来向算力运营商上报车辆的算力共享能力。As shown in (f) in Figure 5 , the GUI is a computing power reporting interface, which may include computing power service capabilities 524 , controls 525 , and reporting controls 526 . Among them, the computing power service capability 524 can display the available resources and shared resource opening time of the vehicle's CPU, NPU, GPU, and memory. After the security authentication is successful, the user can set the time for sharing computing power through control 525, and report the computing power sharing capability of the vehicle to the computing power operator through reporting control 526.
如图5中的(g)所示,在算力运营商向车辆下发算力任务后,车辆的显示屏上可以显示提示框527,用于提示用户已经接收到算力任务,该任务将会占用车辆XX处理器的XX资源,询问用户是否执行该任务。当检测到用户点击确定控件后,车辆的显示屏上将会显示如图5中(h)所示的GUI。As shown in (g) in Figure 5, after the computing power operator issues a computing power task to the vehicle, a prompt box 527 may be displayed on the vehicle's display screen to remind the user that the computing power task has been received and that the task will It will occupy XX resources of the vehicle's XX processor and ask the user whether to perform the task. When it is detected that the user clicks on the OK control, the GUI shown in (h) in Figure 5 will be displayed on the vehicle's display screen.
如图5中的(h)所示的GUI,该GUI为算力任务详情界面,从该界面中用户可以查看到任务名称、执行该任务需要占用的处理器资源、预计执行该算力任务的时间以及完成该任务后用户可以得到的收益。在了解了算力任务的详情后,用户可以点击控件528来执行该算力任务。当算力任务执行完毕后,车辆的显示屏上可以显示如图5中的(i)所示的GUI。As shown in (h) in Figure 5, the GUI is the computing task details interface. From this interface, the user can view the task name, the processor resources required to execute the task, and the estimated time to execute the computing task. time and the benefits that the user can get after completing the task. After understanding the details of the computing power task, the user can click control 528 to execute the computing power task. When the computing task is completed, the GUI shown in (i) in Figure 5 can be displayed on the vehicle's display screen.
如图5中的(i)所示的GUI,该GUI为任务收益界面,该界面包括描述文本529,通过该描述文本529用户可以知晓完成算力任务的收益情况。其中,完成任务的收益既可以充值到充电桩或者汇入用户绑定的账户。As shown in (i) in Figure 5, the GUI is a task profit interface. The interface includes a description text 529, through which the user can know the profit situation of completing the computing power task. Among them, the income from completing tasks can be recharged to charging piles or transferred to the account bound by the user.
应理解,上述图5中(b)至(i)的所列项目及内容仅为示例性的说明,本领域技术人员可以根据实际的需求对上述项目及内容进行替换或更改,图5中(b)至(i)的所列项目及内容不应理解为是对本申请实施例的限定。It should be understood that the items and contents listed in (b) to (i) in Figure 5 are only exemplary illustrations, and those skilled in the art can replace or modify the above items and contents according to actual needs. In Figure 5 ( The items and contents listed in b) to (i) should not be understood as limiting the embodiments of the present application.
本申请实施例中,能够使得车辆在停车充电的场景下,共享车内处理器的一部分算力去执行算力运营商下发的计算任务,从而获得相应的收益。In the embodiment of this application, the vehicle can share part of the computing power of the in-vehicle processor to perform the computing tasks issued by the computing power operator in the parking and charging scenario, thereby obtaining corresponding benefits.
图6是本申请实施例提供的计算资源共享方法的另一种应用场景图。Figure 6 is another application scenario diagram of the computing resource sharing method provided by the embodiment of the present application.
当车辆执行算力任务时,可以将任务的执行情况发送至用户的手机,用户可以在手机上查看车辆执行算力任务的情况。When the vehicle performs a computing task, the execution status of the task can be sent to the user's mobile phone, and the user can view the performance of the vehicle's computing task on the mobile phone.
如图6中的(a)所示,用户的手机上可以显示任务名称、车辆处理器的资源占用情况、算力任务已经执行的时间、车辆状态、车辆的充电详情、任务收益。当车辆执行完算力任务后,用户的手机上可以显示提示框601,用于提示用户算力运营商向用户的账户中转入任务收益,用户可以通过点击控件602来查看收益详情。As shown in (a) in Figure 6, the user's mobile phone can display the task name, resource usage of the vehicle processor, execution time of the computing task, vehicle status, vehicle charging details, and task benefits. After the vehicle completes the computing power task, the user's mobile phone may display a prompt box 601 to prompt the user's computing power operator to transfer the task revenue to the user's account. The user can view the revenue details by clicking on control 602.
如图6中的(b)所示,该GUI为收益详情界面,该界面可以包括:用户的账号、执行 车辆任务的车牌号、执行任务的名称、任务的完成情况和收入。同时,用户的手机的显示屏上可以显示描述文本603,用于告知用户如果对收益有疑问,可以通过控件604向设备运营商反馈。As shown in (b) in Figure 6, the GUI is a revenue details interface, which can include: the user's account number, the license plate number of the vehicle task performed, the name of the task performed, the completion status of the task, and income. At the same time, a description text 603 may be displayed on the display screen of the user's mobile phone, which is used to inform the user that if he has any questions about the income, he can provide feedback to the device operator through the control 604.
应理解,上述图6中(a)和(b)的所列项目及内容仅为示例性的说明,本领域技术人员可以根据实际的需求对上述项目及内容进行替换或更改,图6中(a)和(b)的所列项目及内容不应理解为是对本申请实施例的限定。It should be understood that the items and contents listed in (a) and (b) in Figure 6 are only exemplary illustrations, and those skilled in the art can replace or change the above items and contents according to actual needs. In Figure 6 ( The items and contents listed in a) and (b) should not be understood as limiting the embodiments of the present application.
本申请实施例中,用户可以在手机上查看车辆执行算力任务的实际情况,并在任务完成后及时获知任务的收益,保障了用户在整个算力任务执行过程中的知情权。In the embodiment of this application, the user can check the actual situation of the vehicle's execution of the computing task on the mobile phone, and promptly learn the benefits of the task after the task is completed, thus ensuring the user's right to know during the entire execution of the computing task.
此外,图6的应用场景也可以替换成手机在充电时共享自己的处理器的算力,并从算力运营商接收算力任务,在手机完成计算任务后,将计算结果上传至云端服务器,并从算力运营商处获得相应的收益。在此种情况下,手机的交互界面与图6中的(a)和(b)近似,此处不再赘述。In addition, the application scenario in Figure 6 can also be replaced by a mobile phone sharing the computing power of its own processor while charging, and receiving computing power tasks from the computing power operator. After the mobile phone completes the computing task, the computing results are uploaded to the cloud server. And obtain corresponding benefits from computing power operators. In this case, the interactive interface of the mobile phone is similar to (a) and (b) in Figure 6, which will not be described again here.
图7是本申请实施例提供的一种计算资源共享方法,方法700可应用于图1的车辆100中,也可以应用于图5或图6描述的应用场景中,方法700可以包括如下步骤。Figure 7 is a computing resource sharing method provided by an embodiment of the present application. The method 700 can be applied to the vehicle 100 of Figure 1 or to the application scenarios described in Figure 5 or Figure 6. The method 700 can include the following steps.
S701,网络设备向充电设备发送第一数据传输信息。S701. The network device sends the first data transmission information to the charging device.
其中,第一数据传输信息用于指示第一终端设备执行计算任务,该计算任务与第二终端设备的数据相关联。充电设备也可以称为充电桩,其至少用于为第一终端设备充电,第一终端设备可以是手机、车辆或平板电脑等终端设备。网络设备可以是算力运营商、云端服务器等等。Wherein, the first data transmission information is used to instruct the first terminal device to perform a computing task, and the computing task is associated with the data of the second terminal device. The charging device may also be called a charging pile, which is used to charge at least a first terminal device, which may be a mobile phone, a vehicle, a tablet, or other terminal device. Network equipment can be computing power operators, cloud servers, etc.
其中,计算任务与第二终端设备的数据相关联可以理解为:该计算任务是由网络设备根据第二终端设备的请求生成的,即该计算任务为算力共享任务。Wherein, the association of the computing task with the data of the second terminal device can be understood as: the computing task is generated by the network device according to the request of the second terminal device, that is, the computing task is a computing power sharing task.
示例性地,上述计算任务可以包括:批量数据清洗、小批量训练、批量推理。其中,批量数据清洗可以指计算任务是发现和纠正数据文件中的错误,小批量训练可以指计算任务是使用样本数据优化算法,批量推理可以指计算任务是将提供的数据输入到经过训练神经网络模型中,输出相应的计算结果。For example, the above computing tasks may include: batch data cleaning, mini-batch training, and batch inference. Among them, batch data cleaning can refer to the computing task of discovering and correcting errors in data files, small batch training can refer to the computing task of using sample data to optimize algorithms, and batch inference can refer to the computing task of inputting the provided data into the trained neural network. In the model, the corresponding calculation results are output.
第一数据传输信息可以是承载计算任务的数据,或者第一数据传输信息可以是一种控制命令,用于控制第一终端设备执行计算任务。该第一数据传输信息可以包括:用于指示计算任务为计算资源共享任务的信息和/或用于标识计算任务的数据。其中,该用于标识计算任务的数据可以用于指示计算任务数据的类型,和/或用于指示计算任务的内容。The first data transmission information may be data carrying a computing task, or the first data transmission information may be a control command used to control the first terminal device to perform the computing task. The first data transmission information may include: information indicating that the computing task is a computing resource sharing task and/or data used to identify the computing task. The data used to identify the computing task may be used to indicate the type of computing task data, and/or to indicate the content of the computing task.
可选地,上述用于指示计算任务为计算资源共享任务的信息和用于标识计算任务的数据可以是第一数据传输信息中增加的[messageId]字段。Optionally, the above-mentioned information indicating that the computing task is a computing resource sharing task and the data used to identify the computing task may be the [messageId] field added to the first data transmission information.
可选地,上述用于指示计算任务为计算资源共享任务的信息和用于标识计算任务的数据可以是在第一数据传输信息中的字段[data]中添加的标识信息。Optionally, the above information used to indicate that the computing task is a computing resource sharing task and the data used to identify the computing task may be identification information added in the field [data] in the first data transmission information.
可选地,上述用于指示计算任务为计算资源共享任务的信息可以是第一数据传输信息中增加的[messageId]字段;上述用于标识计算任务的数据可以是在第一数据传输信息中的字段[data]中添加的标识信息。Optionally, the above-mentioned information used to indicate that the computing task is a computing resource sharing task may be the [messageId] field added in the first data transmission information; the above-mentioned data used to identify the computing task may be in the first data transmission information Identification information added in field [data].
可选地,上述用于指示计算任务为计算资源共享任务的信息可以是在第一数据传输信息中的字段[data]中添加的标识信息;上述用于标识计算任务的数据可以是第一数据传输信息中增加的[messageId]字段。Optionally, the above-mentioned information used to indicate that the computing task is a computing resource sharing task may be identification information added in the field [data] in the first data transmission information; the above-mentioned data used to identify the computing task may be the first data The [messageId] field added to the transmission information.
本申请实施例中,可以在第一数据传输信息中携带用于指示计算任务为计算资源共享任务的信息和/或用于标识计算任务的数据。从而使得网络设备和第一终端设备能够快速、准确地识别出第一数据传输信息。In this embodiment of the present application, the first data transmission information may carry information indicating that the computing task is a computing resource sharing task and/or data used to identify the computing task. Thus, the network device and the first terminal device can quickly and accurately identify the first data transmission information.
一个实施例中,在步骤S701之前,该方法还包括:第一终端设备向充电设备发送第三数据传输信息,充电设备在接收到第三数据传输信息之后,可以将第三数据传输信息发送给网络设备。其中,该第三数据传输信息用于指示第一终端设备的计算能力和/或共享计算能力的时间。网络设备在接收到第三数据传输信息后,能够获知第一终端设备的计算能力和/或共享计算能力的时间,从而使得网络设备能够根据第一终端设备的计算能力和/或共享计算能力的时间下发计算任务。In one embodiment, before step S701, the method further includes: the first terminal device sends third data transmission information to the charging device. After receiving the third data transmission information, the charging device may send the third data transmission information to the charging device. Internet equipment. Wherein, the third data transmission information is used to indicate the computing capability of the first terminal device and/or the time of sharing the computing capability. After receiving the third data transmission information, the network device can learn the computing power of the first terminal device and/or the time of sharing the computing power, so that the network device can learn the computing power of the first terminal device and/or the time of sharing the computing power. Time to issue computing tasks.
可选地,第一终端设备可以在与充电设备认证成功的情况下,向充电设备发送第三数据传输信息,和/或充电设备可以在与网络设备认证成功的情况下,向网络设备发送第三数据传输信息。Optionally, the first terminal device may send the third data transmission information to the charging device if the authentication with the charging device is successful, and/or the charging device may send the third data transmission information to the network device if the authentication with the network device is successful. 3. Data transmission information.
其中,第一终端设备和充电设备进行认证的过程可以是第一终端设备和充电设备互相交换证书或密钥,在双方证书或密钥一致的情况下完成认证。充电设备与网络设备的认证过程也可以是充电设备和网络设备交换证书或密钥,在双方证书或密钥一致的情况下完成认证。The authentication process between the first terminal device and the charging device may be that the first terminal device and the charging device exchange certificates or keys with each other, and the authentication is completed when the certificates or keys of both parties are consistent. The authentication process between the charging device and the network device can also be that the charging device and the network device exchange certificates or keys, and the authentication is completed when the certificates or keys of both parties are consistent.
一个实施例中,该第三数据传输信息包括:第三数据标识,该第三数据标识与第一终端设备的计算能力和/或共享计算能力的时间相对应。该第三数据标识可以用于指示第三数据的类型,和/或该第三标识数据可以用于指示第三数据的内容。通过该第三数据标识,充电设备和网络设备能够快速、准确的识别出第三数据传输信息。In one embodiment, the third data transmission information includes: a third data identifier corresponding to the computing capability of the first terminal device and/or the time of sharing the computing capability. The third data identifier may be used to indicate the type of the third data, and/or the third identification data may be used to indicate the content of the third data. Through the third data identification, the charging equipment and network equipment can quickly and accurately identify the third data transmission information.
可选地,第三数据标识可以是第三数据传输信息中增加的[messageId]字段,和/或在第三数据传输信息中的字段[data]中添加的标识信息。Optionally, the third data identifier may be the [messageId] field added in the third data transmission information, and/or the identification information added in the field [data] in the third data transmission information.
一个实施例中,在第一终端设备向充电设备发送第三数据传输信息之前(步骤S701之前),该方法还包括:第一终端设备接收网络设备发送的请求信息,该请求信息用于请求第一终端设备共享计算资源;第一终端设备向网络设备发送响应信息,该响应信息用于指示第一终端设备允许共享该第一终端设备的计算资源。In one embodiment, before the first terminal device sends the third data transmission information to the charging device (before step S701), the method further includes: the first terminal device receives request information sent by the network device, the request information is used to request the third data transmission information. A terminal device shares computing resources; the first terminal device sends response information to the network device, and the response information is used to instruct the first terminal device to allow sharing of the computing resources of the first terminal device.
可选地,第一终端设备可以从网络设备直接接收该请求信息,或者第一终端设备可以从充电设备处接收该请求信息,在此种情况下,该请求信息是由网络设备下发给充电设备并由充电设备转发给第一终端设备的。Optionally, the first terminal device can directly receive the request information from the network device, or the first terminal device can receive the request information from the charging device. In this case, the request information is issued by the network device to the charging device. equipment and forwarded by the charging device to the first terminal device.
可选地,第一终端设备可以直接向网络设备发送该响应信息,或者第一终端设备可以向充电设备发送该响应信息,并由充电设备将该响应信息转发给网络设备。Alternatively, the first terminal device may directly send the response information to the network device, or the first terminal device may send the response information to the charging device, and the charging device forwards the response information to the network device.
可选地,第一终端设备接收请求信息是在其与充电设备的认证通过后进行的。Optionally, the first terminal device receives the request information after it has passed the authentication with the charging device.
本申请实施例中,第一终端设备向网络设备发送第三数据传输信息之前,第一终端设备可以被允许向网络设备共享第一终端设备的计算资源。通过这样的方式,能够进一步保证终端设备与网络设备和/或充电设备之间的信息传输安全。In this embodiment of the present application, before the first terminal device sends the third data transmission information to the network device, the first terminal device may be allowed to share the computing resources of the first terminal device with the network device. In this way, the security of information transmission between the terminal device and the network device and/or the charging device can be further ensured.
S702,充电设备向第一终端设备发送第一数据传输信息。S702: The charging device sends the first data transmission information to the first terminal device.
S703,第一终端设备执行计算任务。S703. The first terminal device performs the computing task.
具体地,第一终端设备在接收到第一数据传输信息后,能够利用空闲的处理器执行该信息指示的计算任务。Specifically, after receiving the first data transmission information, the first terminal device can use an idle processor to perform the computing task indicated by the information.
可选地,第一终端设备可以在可信的环境中执行上述计算任务,其中,可信执行环境可以是(trusted execution environment,TEE)或者硬件安全模块(hardware security module,HSM)环境。Optionally, the first terminal device can perform the above computing tasks in a trusted environment, where the trusted execution environment can be a (trusted execution environment, TEE) or a hardware security module (hardware security module, HSM) environment.
应理解,可信的执行环境可以是CPU上的一块区域,这块区域的作用是给数据和代码的执行提供一个更安全的空间,并保证数据和代码的机密性和完整性。It should be understood that a trusted execution environment can be an area on the CPU. The function of this area is to provide a safer space for the execution of data and code, and to ensure the confidentiality and integrity of data and code.
本申请实施例中,第一终端设备在可信的执行环境中执行该计算任务,能够保障计算任务执行的安全性。In the embodiment of the present application, the first terminal device executes the computing task in a trusted execution environment, which can ensure the security of the execution of the computing task.
一个实施例中,在步骤S703之前,该方法还包括:第一终端设备确定计算任务的任务类型;第一终端设备根据任务类型,确定执行计算任务的处理单元。In one embodiment, before step S703, the method further includes: the first terminal device determines a task type of the computing task; and the first terminal device determines a processing unit for executing the computing task according to the task type.
例如,如果网络设备下发的是需要AI算力较高的图片类的训练推理任务,第一终端设备的算力服务模块可将该任务调度到AI处理器所在的计算单元执行。如果网络设备下发的是机器学习类任务,算力服务模块可以将其调度到微处理器(micro processor unit,MCU)执行。或者,可以根据第一终端设备内部计算单元的特点将计算任务在第一终端设备内分布式调度执行,其中,分布式调度执行可以理解为第一终端设备合理调度处理器来执行计算任务。For example, if the network device delivers a picture-based training inference task that requires high AI computing power, the computing power service module of the first terminal device can schedule the task to the computing unit where the AI processor is located for execution. If the network device delivers a machine learning task, the computing power service module can schedule it to the microprocessor unit (MCU) for execution. Alternatively, the computing tasks can be distributedly scheduled and executed in the first terminal device according to the characteristics of the internal computing unit of the first terminal device, where distributed scheduling and execution can be understood as the first terminal device reasonably scheduling the processor to execute the computing tasks.
本申请实施例中,第一终端设备在能够根据计算任务的类型,确定执行该计算任务的处理单元,从而能够合理利用第一终端设备内部的计算资源来完成计算任务。In the embodiment of the present application, the first terminal device can determine the processing unit to perform the computing task according to the type of the computing task, so that the computing resources inside the first terminal device can be reasonably utilized to complete the computing task.
S704,第一终端设备向网络设备发送第二数据传输信息。S704. The first terminal device sends the second data transmission information to the network device.
其中,第一终端设备可以直接向网络设备发送第二数据传输信息,也可以将第二数据传输信息先发送给充电设备,再由充电设备将第二数据传输信息转发至网络设备。该第二数据传输信息包括计算任务的执行结果。The first terminal device may directly send the second data transmission information to the network device, or may first send the second data transmission information to the charging device, and then the charging device forwards the second data transmission information to the network device. The second data transmission information includes execution results of the computing task.
该第二数据传输信息可以包括:用于标识计算任务执行结果的数据,该用于标识计算任务执行结果的数据可以用于指示计算任务执行结果数据的类型,和/或用于指示计算任务执行结果的内容。The second data transmission information may include: data used to identify the computing task execution result, the data used to identify the computing task execution result may be used to indicate the type of computing task execution result data, and/or be used to indicate the computing task execution The content of the result.
可选地,上述用于标识计算任务执行结果的数据可以是第二数据传输信息中增加的[messageId]字段,和/或在第二数据传输信息中的字段[data]中添加的标识信息。Optionally, the data used to identify the execution result of the computing task may be the [messageId] field added in the second data transmission information, and/or the identification information added in the field [data] in the second data transmission information.
本申请实施例中,第一终端设备在连接充电设备后,能够接收充电设备发送的计算任务,并利用第一终端设备内的空闲处理器执行计算任务,并将计算结果发送给充电设备或者网络设备。通过这样的方式,能够在第一终端设备充电时共享并合理利用空闲处理器的计算能力。In the embodiment of the present application, after connecting to the charging device, the first terminal device can receive the computing task sent by the charging device, use the idle processor in the first terminal device to perform the computing task, and send the computing result to the charging device or the network equipment. In this way, the computing power of the idle processor can be shared and reasonably utilized when the first terminal device is charging.
一个实施例中,在步骤S704之后,该方法还包括:充电设备确定第一终端设备执行计算任务的耗电量,并向网络设备发送第四数据传输信息,该第四数据传输信息用于指示该耗电量。网络设备可以根据第二数据传输信息和第四数据传输信息来确定付费金额,在确定付费金额以后,网络设备向充电设备或第一终端设备的账户充值付费金额。In one embodiment, after step S704, the method further includes: the charging device determines the power consumption of the first terminal device when performing the computing task, and sends fourth data transmission information to the network device, the fourth data transmission information is used to indicate The power consumption. The network device may determine the payment amount based on the second data transmission information and the fourth data transmission information. After determining the payment amount, the network device recharges the payment amount to the account of the charging device or the first terminal device.
本申请实施例中,网络设备能够根据计算任务的完成结果和第一终端设备执行计算任务时的耗电量,确定付费金额,从而向车主付费。In the embodiment of the present application, the network device can determine the payment amount based on the completion result of the computing task and the power consumption of the first terminal device when performing the computing task, thereby paying the car owner.
图8是本申请实施例提供的一种计算资源共享方法,方法800可应用于图1的车辆100中,也可以应用于图5或图6描述的应用场景中,方法800和方法700可以是并列的技术方案,方法800可以包括如下步骤。Figure 8 is a computing resource sharing method provided by an embodiment of the present application. Method 800 can be applied to the vehicle 100 of Figure 1 or to the application scenarios described in Figure 5 or Figure 6. Method 800 and method 700 can be As a parallel technical solution, method 800 may include the following steps.
S801,第一终端设备接收网络设备发送的第一数据传输信息。S801. The first terminal device receives the first data transmission information sent by the network device.
其中,第一数据传输信息用于指示第一终端设备执行计算任务,该计算任务与第二终端设备的数据相关联。充电设备也可以称为充电桩,其至少用于为第一终端设备充电,第一终端设备可以是手机、车辆或平板电脑等终端设备。网络设备可以是算力运营商、云端服务器等等。Wherein, the first data transmission information is used to instruct the first terminal device to perform a computing task, and the computing task is associated with the data of the second terminal device. The charging device may also be called a charging pile, which is used to charge at least a first terminal device, which may be a mobile phone, a vehicle, a tablet, or other terminal device. Network equipment can be computing power operators, cloud servers, etc.
其中,计算任务与第二终端设备的数据相关联可以理解为:该计算任务是由网络设备根据第二终端设备的请求生成的,即该计算任务为算力共享任务。Wherein, the association of the computing task with the data of the second terminal device can be understood as: the computing task is generated by the network device according to the request of the second terminal device, that is, the computing task is a computing power sharing task.
示例性地,上述计算任务可以包括:批量数据清洗、小批量训练、批量推理。其中,批量数据清洗可以指计算任务是发现和纠正数据文件的错误,小批量训练可以指计算任务是使用样本数据优化算法,批量推理可以指计算任务是将提供的数据输入到经过训练神经网络模型中,输出相应的计算结果。For example, the above computing tasks may include: batch data cleaning, mini-batch training, and batch inference. Among them, batch data cleaning can refer to the computing task of discovering and correcting errors in data files, small batch training can refer to the computing task of using sample data to optimize algorithms, and batch inference can refer to the computing task of inputting the provided data into the trained neural network model. , output the corresponding calculation results.
第一数据传输信息可以是承载计算任务的数据,或者第一数据传输信息可以是一种控制命令,用于控制第一终端设备执行计算任务。该第一数据传输信息可以包括:用于指示计算任务为计算资源共享任务的信息和/或用于标识计算任务的数据。其中,该用于标识计算任务的数据可以用于指示计算任务数据的类型,和/或用于指示计算任务的内容。The first data transmission information may be data carrying a computing task, or the first data transmission information may be a control command used to control the first terminal device to perform the computing task. The first data transmission information may include: information used to indicate that the computing task is a computing resource sharing task and/or data used to identify the computing task. The data used to identify the computing task may be used to indicate the type of computing task data, and/or to indicate the content of the computing task.
可选地,上述用于指示计算任务为计算资源共享任务的信息和用于标识计算任务的数据可以是第一数据传输信息中增加的[messageId]字段。Optionally, the above-mentioned information indicating that the computing task is a computing resource sharing task and the data used to identify the computing task may be the [messageId] field added to the first data transmission information.
可选地,上述用于指示计算任务为计算资源共享任务的信息和用于标识计算任务的数据可以是在第一数据传输信息中的字段[data]中添加的标识信息。Optionally, the above information used to indicate that the computing task is a computing resource sharing task and the data used to identify the computing task may be identification information added in the field [data] in the first data transmission information.
可选地,上述用于指示计算任务为计算资源共享任务的信息可以是第一数据传输信息中增加的[messageId]字段;上述用于标识计算任务的数据可以是在第一数据传输信息中的字段[data]中添加的标识信息。Optionally, the above-mentioned information used to indicate that the computing task is a computing resource sharing task may be the [messageId] field added in the first data transmission information; the above-mentioned data used to identify the computing task may be in the first data transmission information Identification information added in field [data].
可选地,上述用于指示计算任务为计算资源共享任务的信息可以是在第一数据传输信息中的字段[data]中添加的标识信息;上述用于标识计算任务的数据可以是第一数据传输信息中增加的[messageId]字段。Optionally, the above-mentioned information used to indicate that the computing task is a computing resource sharing task may be identification information added in the field [data] in the first data transmission information; the above-mentioned data used to identify the computing task may be the first data The [messageId] field added to the transmission information.
本申请实施例中,可以在第一数据传输信息中携带用于指示计算任务为计算资源共享任务的信息和/或用于标识计算任务的数据。从而使得第一终端设备能够快速、准确地识别出第一数据传输信息。In this embodiment of the present application, the first data transmission information may carry information indicating that the computing task is a computing resource sharing task and/or data used to identify the computing task. Thus, the first terminal device can quickly and accurately identify the first data transmission information.
一个实施例中,在步骤S801之前,该方法还包括:第一终端设备向充电设备发送第三数据传输信息,充电设备在接收到第三数据传输信息之后,可以将第三数据传输信息发送给网络设备。其中,该第三数据传输信息用于指示第一终端设备的计算能力和/或共享计算能力的时间。网络设备在接收到第三数据传输信息后,能够获知第一终端设备的计算能力和/或共享计算能力的时间,从而使得网络设备能够根据第一终端设备的计算能力和/或共享计算能力的时间下发计算任务。In one embodiment, before step S801, the method further includes: the first terminal device sends third data transmission information to the charging device. After receiving the third data transmission information, the charging device may send the third data transmission information to the charging device. Internet equipment. Wherein, the third data transmission information is used to indicate the computing capability of the first terminal device and/or the time of sharing the computing capability. After receiving the third data transmission information, the network device can learn the computing power of the first terminal device and/or the time of sharing the computing power, so that the network device can learn the computing power of the first terminal device and/or the time of sharing the computing power. Time to issue calculation tasks.
可选地,第一终端设备可以在与充电设备认证成功的情况下,向充电设备发送第三数据传输信息,和/或充电设备可以在与网络设备认证成功的情况下,向网络设备发送第三数据传输信息。Optionally, the first terminal device may send the third data transmission information to the charging device if the authentication with the charging device is successful, and/or the charging device may send the third data transmission information to the network device if the authentication with the network device is successful. 3. Data transmission information.
其中,第一终端设备和充电设备进行认证的过程可以是第一终端设备和充电设备互相交换证书或密钥,在双方证书或密钥一致的情况下完成认证。充电设备与网络设备的认证 过程也可以是充电设备和网络设备交换证书或密钥,在双方证书或密钥一致的情况下完成认证。The authentication process between the first terminal device and the charging device may be that the first terminal device and the charging device exchange certificates or keys with each other, and the authentication is completed when the certificates or keys of both parties are consistent. The authentication process between the charging equipment and the network equipment can also be the exchange of certificates or keys between the charging equipment and the network equipment, and the authentication is completed when the certificates or keys of both parties are consistent.
一个实施例中,该第三数据传输信息包括:第三数据标识,该第三数据标识与第一终端设备的计算能力和/或共享计算能力的时间相对应。该第三数据标识可以用于指示第三数据的类型,和/或该第三标识数据可以用于指示第三数据的内容。通过该第三数据标识,充电设备和网络设备能够快速、准确的识别出第三数据传输信息。In one embodiment, the third data transmission information includes: a third data identifier corresponding to the computing capability of the first terminal device and/or the time of sharing the computing capability. The third data identifier may be used to indicate the type of the third data, and/or the third identification data may be used to indicate the content of the third data. Through the third data identification, the charging equipment and network equipment can quickly and accurately identify the third data transmission information.
可选地,第三数据标识可以是第三数据传输信息中增加的[messageId]字段,和/或在第三数据传输信息中的字段[data]中添加的标识信息。Optionally, the third data identifier may be the [messageId] field added in the third data transmission information, and/or the identification information added in the field [data] in the third data transmission information.
一个实施例中,在第一终端设备向充电设备发送第三数据传输信息之前(步骤S801之前),该方法还包括:第一终端设备接收网络设备发送的请求信息,该请求信息用于请求第一终端设备共享计算资源;第一终端设备向网络设备发送响应信息,该响应信息用于指示第一终端设备允许共享该第一终端设备的计算资源。In one embodiment, before the first terminal device sends the third data transmission information to the charging device (before step S801), the method further includes: the first terminal device receives request information sent by the network device, the request information is used to request the third data transmission information. A terminal device shares computing resources; the first terminal device sends response information to the network device, and the response information is used to instruct the first terminal device to allow sharing of the computing resources of the first terminal device.
可选地,第一终端设备可以从网络设备直接接收该请求信息,或者第一终端设备可以从充电设备处接收该请求信息,在此种情况下,该请求信息是由网络设备下发给充电设备并由充电设备转发给第一终端设备的。Optionally, the first terminal device can directly receive the request information from the network device, or the first terminal device can receive the request information from the charging device. In this case, the request information is issued by the network device to the charging device. equipment and forwarded by the charging device to the first terminal device.
可选地,第一终端设备可以直接向网络设备发送该响应信息,或者第一终端设备可以向充电设备发送该响应信息,并由充电设备将该响应信息转发给网络设备。Alternatively, the first terminal device may directly send the response information to the network device, or the first terminal device may send the response information to the charging device, and the charging device forwards the response information to the network device.
可选地,第一终端设备接收请求信息是在其与充电设备的认证通过后进行的。Optionally, the first terminal device receives the request information after it has passed the authentication with the charging device.
本申请实施例中,第一终端设备向网络设备发送第三数据传输信息之前,第一终端设备可以被允许向网络设备共享第一终端设备的计算资源。通过这样的方式,能够进一步保证终端设备与网络设备和/或充电设备之间的信息传输安全。In this embodiment of the present application, before the first terminal device sends the third data transmission information to the network device, the first terminal device may be allowed to share the computing resources of the first terminal device with the network device. In this way, the security of information transmission between the terminal device and the network device and/or the charging device can be further ensured.
S802,第一终端设备执行计算任务。S802. The first terminal device performs a computing task.
具体地,第一终端设备在接收到第一数据传输信息后,能够利用空闲的处理器执行该信息指示的计算任务。Specifically, after receiving the first data transmission information, the first terminal device can use an idle processor to perform the computing task indicated by the information.
可选地,第一终端设备可以在可信的环境中执行上述计算任务,其中,可信执行环境可以是TEE或者HSM环境。Optionally, the first terminal device may perform the above computing task in a trusted environment, where the trusted execution environment may be a TEE or HSM environment.
本申请实施例中,第一终端设备在可信的执行环境中执行该计算任务,能够保障计算任务执行的安全性。In the embodiment of the present application, the first terminal device executes the computing task in a trusted execution environment, which can ensure the security of the execution of the computing task.
一个实施例中,在步骤S802之前,该方法还包括:第一终端设备确定计算任务的任务类型;第一终端设备根据任务类型,确定执行计算任务的处理单元。In one embodiment, before step S802, the method further includes: the first terminal device determines a task type of the computing task; and the first terminal device determines a processing unit for executing the computing task according to the task type.
例如,如果网络设备下发的是需要AI算力较高的图片类的训练推理任务,第一终端设备的算力服务模块可将该任务调度到AI处理器所在的计算单元执行。如果网络设备下发的是机器学习类任务,算力服务模块可以将其调度到微处理器MCU执行。或者,可以根据第一终端设备内部计算单元的特点将计算任务在第一终端设备内分布式调度执行,其中,分布式调度执行可以理解为第一终端设备合理调度处理器来执行计算任务。For example, if the network device delivers a picture-based training inference task that requires high AI computing power, the computing power service module of the first terminal device can schedule the task to the computing unit where the AI processor is located for execution. If the network device delivers a machine learning task, the computing power service module can schedule it to the microprocessor MCU for execution. Alternatively, the computing tasks can be distributedly scheduled and executed in the first terminal device according to the characteristics of the internal computing unit of the first terminal device, where distributed scheduling and execution can be understood as the first terminal device reasonably scheduling the processor to execute the computing tasks.
本申请实施例中,第一终端设备在能够根据计算任务的类型,确定执行该计算任务的处理单元,从而能够合理利用第一终端设备内部的计算资源来完成计算任务。In the embodiment of the present application, the first terminal device can determine the processing unit to perform the computing task according to the type of the computing task, so that the computing resources inside the first terminal device can be reasonably utilized to complete the computing task.
S803,第一终端设备向充电设备发送第二数据传输信息。S803. The first terminal device sends the second data transmission information to the charging device.
该第二数据传输信息可以包括:用于标识计算任务执行结果的数据,该用于标识计算 任务执行结果的数据可以用于指示计算任务执行结果数据的类型,和/或用于指示计算任务执行结果的内容。The second data transmission information may include: data used to identify the computing task execution result, the data used to identify the computing task execution result may be used to indicate the type of computing task execution result data, and/or be used to indicate the computing task execution The content of the result.
可选地,上述用于标识计算任务执行结果的数据可以是第二数据传输信息中增加的[messageId]字段,和/或在第二数据传输信息中的字段[data]中添加的标识信息。Optionally, the data used to identify the execution result of the computing task may be the [messageId] field added in the second data transmission information, and/or the identification information added in the field [data] in the second data transmission information.
S804,充电设备向网络设备发送第二数据传输信息。S804. The charging device sends second data transmission information to the network device.
本申请实施例中,第一终端设备在连接充电设备后,能够接收充电设备发送的计算任务,并利用第一终端设备内的空闲处理器执行计算任务,并将计算结果发送给充电设备。通过这样的方式,能够在第一终端设备充电时共享并合理利用空闲处理器的计算能力。In the embodiment of the present application, after the first terminal device is connected to the charging device, it can receive the computing task sent by the charging device, use the idle processor in the first terminal device to perform the computing task, and send the calculation result to the charging device. In this way, the computing power of the idle processor can be shared and reasonably utilized when the first terminal device is charging.
一个实施例中,在步骤S804之后,该方法还包括:充电设备确定第一终端设备执行计算任务的耗电量,并向网络设备发送第四数据传输信息,该第四数据传输信息用于指示该耗电量。网络设备可以根据第二数据传输信息和第四数据传输信息来确定付费金额,在确定付费金额以后,网络设备向充电设备或第一终端设备的账户充值付费金额。In one embodiment, after step S804, the method further includes: the charging device determines the power consumption of the first terminal device when performing the computing task, and sends fourth data transmission information to the network device, the fourth data transmission information is used to indicate The power consumption. The network device may determine the payment amount based on the second data transmission information and the fourth data transmission information. After determining the payment amount, the network device recharges the payment amount to the account of the charging device or the first terminal device.
本申请实施例中,网络设备能够根据计算任务的完成结果和第一终端设备执行计算任务时的耗电量,确定付费金额,从而向车主付费。In the embodiment of the present application, the network device can determine the payment amount based on the completion result of the computing task and the power consumption of the first terminal device when performing the computing task, thereby paying the car owner.
图9是本申请实施例提供的再一种计算资源共享方法,方法900以第一终端设备为车辆为例,详细介绍方法700或方法800的实现过程,执行方法900时需要经历以下四个关键节点。Figure 9 is another computing resource sharing method provided by an embodiment of the present application. Method 900 takes the first terminal device as a vehicle as an example to introduce the implementation process of method 700 or method 800 in detail. The following four key points need to be experienced when executing method 900. node.
(1)服务发现(1)Service discovery
首先,需要车主同意车辆在泊车充电时提供算力服务,其中,车主同意提供算力服务的方式可以是车主在车载显示屏上勾选提供算力服务协议或者在车辆的应用程序中开启提供算力服务功能。其次,算力运营商的云服务功能需要能够感知到车辆连接上充电桩,其中,车辆可以通过PLC线缆来连接充电桩。再次,在车辆和充电桩连接完成后,需要进行相互认证,在相互认证通过后,车辆和充电桩之前能够构建安全的传输环境,以避免算力任务或云端服务器被黑客非法操纵。最后,算力运营商提供的云服务功能能够获取车辆的算力服务详情。First of all, the car owner needs to agree to the vehicle providing computing power services when parking and charging. The way the car owner agrees to provide computing power services can be by checking the provision of computing power service agreement on the vehicle display or by turning on the provision of computing power services in the vehicle's application. Computing power service function. Secondly, the cloud service function of the computing operator needs to be able to detect that the vehicle is connected to the charging pile. The vehicle can connect to the charging pile through a PLC cable. Thirdly, after the connection between the vehicle and the charging pile is completed, mutual authentication is required. After the mutual authentication is passed, the vehicle and the charging pile can build a secure transmission environment to avoid illegal manipulation of computing tasks or cloud servers by hackers. Finally, the cloud service function provided by the computing power operator can obtain the computing power service details of the vehicle.
(2)服务编排(2)Service orchestration
算力运营商的云服务功能能够根据车辆的算力服务详情,将当前待处理的算力任务以安全传输的方式调度到车端。The cloud service function of the computing power operator can schedule the currently pending computing power tasks to the vehicle in a secure transmission manner based on the vehicle's computing power service details.
(3)服务运行(3) Service operation
服务运行时,需要首先构造车端的可信计算环境,车端在接收到算力任务后,需要在可信计算环境中进行,并将计算任务映射到车内的计算单元中运行。运行完毕后,车辆能够将计算的结果通过充电桩安全上传到算力运营商的云端服务器中。When the service is running, it is necessary to first construct a trusted computing environment for the vehicle. After receiving the computing task, the vehicle needs to perform it in the trusted computing environment and map the computing task to the computing unit in the vehicle for operation. After the operation is completed, the vehicle can safely upload the calculation results to the computing operator's cloud server through the charging pile.
(4)服务计费(4)Service billing
算力运营商根据任务的完成情况,将完成任务的收益提供给车主。The computing power operator will provide the income from completing the task to the car owner based on the completion of the task.
在进行上述关键节点时,方法900包括可以包括如下步骤。When performing the above key nodes, method 900 may include the following steps.
S901,车辆向充电桩发送指示信息,用于告知充电桩车主已同意提供算力共享服务。例如,用户可以通过图5中的(e)所示的控件522来开启算力共享服务。S901, the vehicle sends instruction information to the charging pile to inform the owner of the charging pile that he has agreed to provide computing power sharing services. For example, the user can enable the computing power sharing service through the control 522 shown in (e) in Figure 5 .
S902,车辆与充电桩之间进行接入或认证。S902, access or authentication between the vehicle and the charging pile.
其中,车辆和充电桩进行认证的过程可以是车辆和充电桩互相交换证书或密钥,在双 方证书或密钥一致的情况下完成安全认证。Among them, the process of authenticating the vehicle and the charging pile can be that the vehicle and the charging pile exchange certificates or keys with each other, and the security authentication is completed when the certificates or keys of both parties are consistent.
S903,充电桩与算力运营商之间进行接入或认证。S903, access or authentication between charging pile and computing power operator.
其中,充电桩和算力运营商进行认证的过程可以是充电桩和算力运营商互相交换证书或密钥,在双方证书或密钥一致的情况下完成安全认证。Among them, the process of authentication between the charging pile and the computing power operator can be that the charging pile and the computing power operator exchange certificates or keys with each other, and complete the security authentication when the certificates or keys of both parties are consistent.
S904,车辆向充电桩报告算力服务能力。S904, the vehicle reports the computing service capability to the charging pile.
具体地,车辆可以通过图5中的(f)所示的方式向充电桩报告算力服务能力,报告的内容可以包括但不限于:CPU、NPU、GPU、内存的可利用资源和算力服务能力可开放的时间。Specifically, the vehicle can report the computing power service capabilities to the charging pile in the manner shown in (f) in Figure 5. The content of the report may include but is not limited to: available resources and computing power services of the CPU, NPU, GPU, and memory. The time when the ability can be opened.
其中,车辆向充电桩报告算力服务能力也可以通过方法700或方法800中第三数据传输信息来实现。Among them, the vehicle reporting the computing power service capability to the charging pile can also be implemented through the third data transmission information in method 700 or method 800.
S905,充电桩向算力运营商报告车辆的算力服务能力。S905, the charging pile reports the vehicle's computing power service capability to the computing power operator.
其中,报告的内容和步骤S904中车辆向充电桩报告的内容基本相同。The content of the report is basically the same as the content reported by the vehicle to the charging pile in step S904.
其中,充电桩向算力运营商报告算力服务能力也可以通过方法700或方法800中第三数据传输信息来实现。Among them, the charging pile reporting the computing power service capability to the computing power operator can also be implemented through the third data transmission information in method 700 or method 800.
S906,算力运营商集群车辆的算力服务能力,以及需求方的计算任务,进行编排调度,以确定在车辆上执行的任务。其中,算力运营商集群车辆的算力可以理解为算力运营商收集能够提供算力服务的车辆的信息。S906, the computing power operator arranges and schedules the computing power service capabilities of the cluster vehicle and the computing tasks of the demand side to determine the tasks to be executed on the vehicle. Among them, the computing power of the computing power operator cluster vehicle can be understood as the computing power operator collecting information about the vehicles that can provide computing power services.
S907,算力运营商向充电桩下发计算任务的密文数据。S907, the computing power operator delivers the ciphertext data of the computing task to the charging pile.
具体地,该密文数据可以包括批量数据清洗、小批量训练、批量推理等资源描述。其中,数据清洗可以指计算任务是发现并纠正数据文件中可识别的错误,小批量训练可以指计算任务是使用训练样本优化算法,批量推理可以指计算任务是将提供的数据输入到经过训练神经网络模型中,输出相应的计算结果。Specifically, the ciphertext data may include resource descriptions such as batch data cleaning, mini-batch training, and batch inference. Among them, data cleaning can refer to the computing task of discovering and correcting identifiable errors in data files, small batch training can refer to the computing task of using training samples to optimize algorithms, and batch inference can refer to the computing task of inputting the provided data into the trained neural network. In the network model, the corresponding calculation results are output.
其中,该密文数据可以是方法700或方法800中的第一数据传输信息。The ciphertext data may be the first data transmission information in method 700 or method 800.
S908,充电桩向车辆发送计算任务的密文数据。S908: The charging pile sends the ciphertext data of the computing task to the vehicle.
其中,该密文数据可以是方法700或方法800中的第一数据传输信息。The ciphertext data may be the first data transmission information in method 700 or method 800.
S909,车辆在车内可信的执行环境中解密计算任务,并将其映射到车内平台进行计算,将计算结果加密。In S909, the vehicle decrypts the computing task in the trusted execution environment in the vehicle, maps it to the in-vehicle platform for calculation, and encrypts the calculation results.
可选地,可信的执行环境可以是TEE或者HSM环境。Optionally, the trusted execution environment can be a TEE or HSM environment.
应理解,可信的执行环境可以是CPU上的一块区域,这块区域的作用是给数据和代码的执行提供一个更安全的空间,并保证数据和代码的机密性和完整性。It should be understood that a trusted execution environment can be an area on the CPU. The function of this area is to provide a safer space for the execution of data and code, and to ensure the confidentiality and integrity of data and code.
还应理解,将计算任务映射的车内平台计算可以是车辆将与计算平台无关的任务,转换为与计算平台相关的任务。It should also be understood that in-vehicle platform calculations that map computing tasks may be that the vehicle converts computing platform-independent tasks into computing platform-related tasks.
S910,车辆将密文计算结果发送给充电桩。S910, the vehicle sends the ciphertext calculation result to the charging pile.
其中,密文以通过可拓展标记语言(extensible markup language,XML)或(javascript object notation,JSON)格式文件的形式发送。Among them, the ciphertext is sent in the form of an extensible markup language (XML) or (javascript object notation, JSON) format file.
其中,该密文的计算结果可以是方法700或方法800中的第二数据传输信息。The calculation result of the ciphertext may be the second data transmission information in method 700 or method 800.
S911,充电桩将密文计算结果转发至算力运营商。S911, the charging pile forwards the ciphertext calculation result to the computing power operator.
其中,该密文的计算结果可以是方法700或方法800中的第二数据传输信息。The calculation result of the ciphertext may be the second data transmission information in method 700 or method 800.
S912,算力运营商对密文计算结果进行解密,根据任务的完成情况计费。S912, the computing power operator decrypts the ciphertext calculation results and charges based on the completion of the task.
可选地,算力运营商还可以从充电桩处获取车辆在执行计算任务过程中消耗的电量,并根据该耗电量和计算任务的完成情况,计算付费金额。Optionally, the computing power operator can also obtain the power consumed by the vehicle during the execution of the computing task from the charging pile, and calculate the payment amount based on the power consumption and the completion of the computing task.
其中,算力运营商获取该耗电量,可以通过方法700或方法800中的第四数据传输信息来实现。Among them, the computing power operator can obtain the power consumption through the fourth data transmission information in method 700 or method 800.
S913,算力运营商向充电桩进行付费。S913, the computing power operator pays the charging pile.
其中,充电桩在得到收益后既可以将收益充值到充电桩,也可以向收益汇入到用户指定的账户。Among them, after the charging pile receives the income, it can either recharge the income to the charging pile or remit the income to the account designated by the user.
本申请实施例中,在车辆与充电桩进行接入认证后,车辆能够上报自己的算力服务能力和算力能力开放时间,算力运营商在通过充电桩获得上述信息后,能够根据向车辆下发算力任务,并且算力运营商能够根据算力任务的完成情况,提供给车辆相应的收益。通过这样的方式,能够在停车充电的场景下,合理的利用车内各处理器的算力。In the embodiment of this application, after the vehicle and the charging pile are authenticated for access, the vehicle can report its own computing power service capabilities and computing power opening time. After obtaining the above information through the charging pile, the computing power operator can provide the vehicle with The computing power task is issued, and the computing power operator can provide corresponding benefits to the vehicle based on the completion of the computing power task. In this way, the computing power of each processor in the car can be reasonably utilized in the parking and charging scenario.
图10是本申请实施例提供的一种数据传输方法,方法1000可以应用于方法900的步骤S904、S905、S907、S908、S910、S911和S912中,还可用于方法700和方法800中。Figure 10 is a data transmission method provided by an embodiment of the present application. Method 1000 can be applied to steps S904, S905, S907, S908, S910, S911 and S912 of method 900, and can also be used in method 700 and method 800.
具体地,方法900中的车辆处理器算力上传步骤(S904、S905)、计算任务下发步骤(S907、S908)和计算结果的上传步骤(S910、S911)可以通过拓展开放充电协议(open charge point protocol,OCPP)的DateTransfer来完成,具体以计算任务下发的过程为例进行介绍方法1000,方法1000可以包括如下步骤。Specifically, the vehicle processor computing power upload steps (S904, S905), calculation task issuance steps (S907, S908), and calculation result upload steps (S910, S911) in the method 900 can be implemented by extending the open charge protocol (open charge Point protocol, OCPP) DateTransfer to complete. Specifically, the process of issuing calculation tasks is used as an example to introduce method 1000. Method 1000 may include the following steps.
S1001,算力运营商向充电桩发送数据传输请求消息(DataTransferRequest(vendorId,[messageId],[data]))。该消息中包括计算任务数据。S1001, the computing operator sends a data transfer request message (DataTransferRequest(vendorId,[messageId],[data])) to the charging pile. The message includes calculation task data.
S1002,充电桩向车辆转发数据传输请求消息(DataTransferRequest(vendorId,[messageId],[data]))消息。S1002. The charging pile forwards the data transfer request message (DataTransferRequest(vendorId,[messageId],[data])) message to the vehicle.
其中,数据传输请求消息的各字段定义如表1所示:Among them, the definitions of each field of the data transfer request message are shown in Table 1:
表1Table 1
Figure PCTCN2022116216-appb-000001
Figure PCTCN2022116216-appb-000001
S1003,车辆向充电桩发送数据传输响应消息(DataTransferResponse(status,[data]))消息。该消息中包括计算任务结果数据。S1003. The vehicle sends a data transfer response message (DataTransferResponse(status,[data])) message to the charging pile. The message includes calculation task result data.
S1004,充电桩向算力运营商转发数据传输响应消息(DataTransferResponse(status,[data]))。S1004. The charging pile forwards the data transfer response message (DataTransferResponse(status,[data])) to the computing power operator.
其中,数据传输响应消息各字段的定义如表2所示:Among them, the definitions of each field of the data transmission response message are shown in Table 2:
表2Table 2
Figure PCTCN2022116216-appb-000002
Figure PCTCN2022116216-appb-000002
Figure PCTCN2022116216-appb-000003
Figure PCTCN2022116216-appb-000003
本申请实施例中,通过拓展OCPP协议来使得车辆、充电桩和算力运营商可识别当前传输的数据包是算力共享数据包。其中,拓展的方法是在数据传输请求中添加字段[messageId]来表示当前传输的数据为算力共享数据。并在数据传输请求和数据响应消息中的字段[data]中添加标识来区分当前消息传输的数据是用于算力上报、计算任务下发或者计算任务上传。In the embodiment of this application, the OCPP protocol is extended so that vehicles, charging piles and computing power operators can identify that the currently transmitted data packet is a computing power sharing data packet. Among them, the expansion method is to add the field [messageId] in the data transmission request to indicate that the currently transmitted data is computing power sharing data. And add an identifier in the field [data] in the data transmission request and data response messages to distinguish whether the data transmitted in the current message is used for computing power reporting, computing task distribution, or computing task uploading.
其中,在数据传输请求消息和数据传输响应消息中添加标识还可以具有多种实现方式。Among them, adding the identifier in the data transmission request message and the data transmission response message can also be implemented in various ways.
一种可能的实现方式中,在上述数据传输请求消息和数据传输响应消息中可以添加一个或多个[messageId]来表示当前传输的数据是算力上报数据、计算任务下发数据或者计算结果上传数据。在此种实现方式中,不需要在[data]字段中添加标识来区分数据的类型。In a possible implementation, one or more [messageIds] can be added to the above data transmission request message and data transmission response message to indicate that the currently transmitted data is data reported by computing power, data issued by computing tasks, or uploaded calculation results. data. In this implementation, there is no need to add an identifier in the [data] field to distinguish the type of data.
一种可能的实现方式中,数据传输请求消息和数据传输响应消息可以不添加[messageId],仅在[data]字段中添加标识来区分当前传输的数据是用于算力上报、计算任务下发,还是计算结果上传。In a possible implementation, the data transmission request message and the data transmission response message may not add [messageId], but only add an identifier in the [data] field to distinguish whether the currently transmitted data is used for computing power reporting and computing task delivery. , or upload the calculation results.
此外,由于当前OCPP协议不包括算力的租用计量以及计费策略的内容,本申请实施例可以通过拓展OCPP协议,使得其支持算力租用的计量以及计费策略。具体的拓展内容可以是充电桩计算算力租借期间的电量并发送给算力运营商,算力运营商结合任务的计算结果和电量计算需要支付的费用,并使用OCPP协议向车辆的充电桩充值。In addition, since the current OCPP protocol does not include the content of computing power rental measurement and charging strategies, embodiments of the present application can expand the OCPP protocol to support computing power rental measurement and charging strategies. The specific expansion content can be that the charging pile calculates the power during the rental period of the computing power and sends it to the computing power operator. The computing power operator combines the calculation results of the task and the power to calculate the fee to be paid, and uses the OCPP protocol to recharge the vehicle's charging pile. .
应理解,上述算力上报、计算任务下发,计算结果上传过程的使用的协议不仅局限于OCPP协议,算力运营商也可以定制私有的协议来实现上述过程。It should be understood that the protocols used in the above-mentioned computing power reporting, computing task issuance, and calculation result uploading processes are not limited to the OCPP protocol. The computing power operator can also customize a private protocol to implement the above process.
图11是本申请实施例提供的车辆开放算力服务的示意性流程图,方法1100可以是方法700、方法800和方法900中第一终端设备或车辆执行的动作的具体说明。Figure 11 is a schematic flow chart of the vehicle open computing power service provided by the embodiment of the present application. Method 1100 may be a detailed description of the actions performed by the first terminal device or vehicle in method 700, method 800, and method 900.
如图11中的(a)所示,在检测到充电桩电缆接入车内的充电单元时可以进行如下步骤。As shown in (a) of Figure 11, when it is detected that the charging pile cable is connected to the charging unit in the car, the following steps can be performed.
S1101,检测到充电桩电缆进入充电单元。S1101, it is detected that the charging pile cable enters the charging unit.
S1102,通过通信拓展协议报文、车内的协同Agent模块和充电桩进行连接。S1102, connect through the communication expansion protocol message, the collaborative Agent module in the car and the charging pile.
其中,通信拓展协议报文可以是方法1000中提供的OCPP协议拓展报文。The communication extension protocol message may be the OCPP protocol extension message provided in method 1000.
S1103,车内的协同Agent模块发现本车可提供的计算服务算力,通过通信拓展协议报文通过充电桩向算力运营商报告本车可以提供的算力服务。S1103. The collaborative agent module in the vehicle discovers the computing service computing power that the vehicle can provide, and reports the computing power services that the vehicle can provide to the computing power operator through the communication extension protocol message through the charging pile.
其中,报告本车可提供的算力服务可以包括:上报本车的CPU、NPU、GPU、内存的可利用资源和算力服务能力可开放的时间。Among them, reporting the computing power services that the vehicle can provide may include: reporting the available resources of the vehicle's CPU, NPU, GPU, and memory and the time when the computing power service capabilities can be opened.
如图11中的(b)所示,在车辆接收到计算任务后可以进行如下步骤。As shown in (b) in Figure 11, the following steps can be performed after the vehicle receives the computing task.
S1111,协同Agent模块解析通信拓展协议的报文,接收计算任务。S1111, collaborate with the Agent module to parse messages of the communication extension protocol and receive computing tasks.
S1112,运行管理模块根据计算任务需要的资源情况,激活唤醒车内计算单元对应的电子控制单元(Electronic Control Unit,ECU)。S1112, the operation management module activates and wakes up the electronic control unit (Electronic Control Unit, ECU) corresponding to the computing unit in the vehicle according to the resources required by the computing task.
S1113,运行管理模块将计算任务发送到对应的ECU上。S1113. The operation management module sends the calculation task to the corresponding ECU.
S1114,运行管理模块通过可信的方式,将平台无关的任务转换成平台相关的任务,并执行得到计算结果。S1114. The operation management module converts platform-independent tasks into platform-related tasks in a trusted manner, and executes them to obtain calculation results.
具体地,如果算力运营商下发的是需要AI算力较高的图片类的训练推理任务,车内的算力服务模块可将该任务调度到AI处理器所在的计算单元执行。如果算力运营商下发的是机器学习类任务,算力服务模块可以将其调度到微处理器(micro processor unit,MCU) 执行。或者,可以根据车内计算单元的特点将计算任务在车内分布式调度执行,其中,分布式调度执行可以理解为车辆合理调度处理器来执行计算任务。Specifically, if the computing power operator issues a picture-based training inference task that requires high AI computing power, the computing power service module in the vehicle can schedule the task to the computing unit where the AI processor is located for execution. If the computing power operator issues a machine learning task, the computing power service module can schedule it to the microprocessor unit (MCU) for execution. Alternatively, computing tasks can be distributed and executed in the vehicle according to the characteristics of the in-vehicle computing unit. Distributed scheduling and execution can be understood as the vehicle reasonably scheduling processors to execute computing tasks.
S1115,协同Agent模块将加密后的计算结果通过和充电桩之间的连接发送给充电桩。S1115. The collaborative Agent module sends the encrypted calculation results to the charging pile through the connection with the charging pile.
S1116,运行管理模块删除计算任务相关资源,休眠相应的ECU。S1116. The operation management module deletes computing task-related resources and hibernates the corresponding ECU.
本申请实施例中,车辆能够根据计算任务的类型,合理调度相应的处理单元来执行计算任务,通过这样的方式,能够使得车内的处理单元计算能力被合理应用,并以合适的执行策略完成算力任务。In the embodiment of the present application, the vehicle can reasonably schedule the corresponding processing unit to execute the computing task according to the type of computing task. In this way, the computing power of the processing unit in the vehicle can be rationally applied and completed with an appropriate execution strategy. Computing tasks.
本申请实施例还提供用于实现以上任一种方法的装置,例如,提供一种装置包括用以实现以上任一种方法中第一终端设备、充电设备或网络设备所执行的各步骤的单元(或手段)。Embodiments of the present application also provide a device for implementing any of the above methods. For example, a device is provided that includes units for implementing each step performed by the first terminal device, charging device, or network device in any of the above methods. (or means).
图12是本申请实施例提供的计算资源共享装置1200示意图。该装置1200可以包括收发单元1210、存储单元1220和处理单元1230。收发单元1210可以实现相应的收发指令和/或数据的功能,收发单元1210还可以称为通信接口或通信单元。存储单元1220用于实现相应的存储功能,存储相应的指令和/或数据。处理单元1230用于进行数据处理。处理单元1230可以读取存储单元1220中的指令和/或数据,以使得装置1200实现前述方法实施例。Figure 12 is a schematic diagram of a computing resource sharing device 1200 provided by an embodiment of the present application. The device 1200 may include a transceiver unit 1210, a storage unit 1220, and a processing unit 1230. The transceiver unit 1210 can implement corresponding functions of transmitting and receiving instructions and/or data. The transceiver unit 1210 can also be called a communication interface or a communication unit. The storage unit 1220 is used to implement corresponding storage functions and store corresponding instructions and/or data. The processing unit 1230 is used for data processing. The processing unit 1230 may read the instructions and/or data in the storage unit 1220, so that the device 1200 implements the foregoing method embodiments.
作为一种设计,装置1200用于执行上述计算资源共享方法中,第一终端设备所执行的动作。As a design, the device 1200 is configured to perform the actions performed by the first terminal device in the above computing resource sharing method.
该装置1200包括:收发单元1210,用于接收充电设备发送的第一数据传输信息,该充电设备至少用于为第一终端设备充电,该第一数据传输信息用于指示第一终端设备执行计算任务,该计算任务与第二终端设备的数据相关联;处理单元1230,用于执行计算任务;收发单元1210,还用于发送第二数据传输信息,该第二数据传输信息包括计算任务的执行结果。The device 1200 includes: a transceiver unit 1210, configured to receive first data transmission information sent by a charging device, the charging device is at least used to charge a first terminal device, and the first data transmission information is used to instruct the first terminal device to perform calculations. task, the computing task is associated with the data of the second terminal device; the processing unit 1230 is used to perform the computing task; the transceiving unit 1210 is also used to send the second data transmission information, the second data transmission information includes the execution of the computing task result.
一种可能的实现方式中,该计算任务是由网络设备根据第二终端设备的请求生成的。In a possible implementation, the computing task is generated by the network device according to a request from the second terminal device.
一种可能的实现方式中,收发单元1210,还用于向充电设备发送第三数据传输信息,该第三数据传输信息用于指示第一终端设备的计算能力和/或共享计算能力的时间。In a possible implementation, the transceiver unit 1210 is also configured to send third data transmission information to the charging device, where the third data transmission information is used to indicate the computing capability of the first terminal device and/or the time to share the computing capability.
一种可能的实现方式中,该第三数据传输信息包括:第三数据标识,该第三数据标识与第一终端设备的计算能力和/或共享计算能力的时间相对应。In a possible implementation, the third data transmission information includes: a third data identifier corresponding to the computing capability of the first terminal device and/or the time of sharing the computing capability.
一种可能的实现方式中,收发单元1210,具体用于在与充电设备认证成功的情况下,向充电设备发送第三数据传输信息。In one possible implementation, the transceiver unit 1210 is specifically configured to send the third data transmission information to the charging device when the authentication with the charging device is successful.
一种可能的实现方式中,收发单元1210,还用于接收请求信息,该请求信息用于请求第一终端设备共享计算资源;收发单元1210,还用于发送响应信息,该响应信息用于指示第一终端设备允许共享第一终端设备的计算资源。In a possible implementation, the transceiver unit 1210 is also configured to receive request information, which is used to request the first terminal device to share computing resources; the transceiver unit 1210 is also configured to send response information, which is used to indicate The first terminal device allows sharing of computing resources of the first terminal device.
一种可能的实现方式中,该第一数据传输信息包括:用于指示计算任务为计算资源共享任务的信息和/或用于标识计算任务的数据。In a possible implementation, the first data transmission information includes: information indicating that the computing task is a computing resource sharing task and/or data used to identify the computing task.
一种可能的实现方式中,该第二数据传输信息包括:用于标识计算任务执行结果的数据。In a possible implementation, the second data transmission information includes: data used to identify the execution result of the computing task.
一种可能的实现方式中,处理单元1230,还用于确定执行计算任务的处理单元1230,该处理单元1230与计算任务的任务类型相对应。In a possible implementation, the processing unit 1230 is also used to determine the processing unit 1230 that performs the computing task, and the processing unit 1230 corresponds to the task type of the computing task.
一种可能的实现方式中,处理单元1230,具体用于在可信执行环境中执行计算任务。In one possible implementation, the processing unit 1230 is specifically configured to perform computing tasks in a trusted execution environment.
一种可能的实现方式中,该装置1200包括:收发单元1210,用于接收第一数据传输信息,该第一数据传输信息用于指示第一终端设备执行计算任务,该计算任务与第二终端设备的数据相关联;处理单元1230,用于执行计算任务;收发单元1210还用于向充电设备发送第二数据传输信息,该第二数据传输信息包括计算任务的执行结果,该充电设备至少用于为第一终端设备充电。In a possible implementation, the device 1200 includes: a transceiver unit 1210, configured to receive first data transmission information, the first data transmission information being used to instruct the first terminal device to perform a computing task, and the computing task is related to the second terminal device. The data of the device is associated; the processing unit 1230 is used to perform the calculation task; the transceiver unit 1210 is also used to send second data transmission information to the charging device, the second data transmission information includes the execution result of the calculation task, and the charging device uses at least To charge the first terminal device.
作为一种设计,装置1200用于执行上述计算资源共享方法中,充电设备所执行的动作。As a design, the device 1200 is configured to perform the actions performed by the charging device in the above computing resource sharing method.
该装置1200包括:收发单元1210,用于接收网络设备发送的第一数据传输信息,该第一数据传输信息用于指示第一终端设备执行计算任务;收发单元1210,还用于向第一终端设备发送第一数据传输信息。The device 1200 includes: a transceiver unit 1210, configured to receive first data transmission information sent by a network device, where the first data transmission information is used to instruct a first terminal device to perform a computing task; a transceiver unit 1210, also configured to transmit data to the first terminal device. The device sends first data transmission information.
一种可能的实现方式中,该计算任务是由网络设备根据第二终端设备的请求生成的。In a possible implementation, the computing task is generated by the network device according to a request from the second terminal device.
一种可能的实现方式中,收发单元1210,还用于接收第一终端设备发送的第三数据传输信息,该第三数据传输信息用于指示第一终端设备的计算能力和/或共享计算能力的时间;收发单元1210,还用于向网络设备发送第三数据传输信息。In a possible implementation, the transceiver unit 1210 is also configured to receive third data transmission information sent by the first terminal device, where the third data transmission information is used to indicate the computing capability and/or shared computing capability of the first terminal device. time; the transceiver unit 1210 is also used to send the third data transmission information to the network device.
一种可能的实现方式中,该第三数据传输信息包括:第三数据标识,该第三数据标识与第一终端设备的计算能力和/或共享计算能力的时间相对应。In a possible implementation, the third data transmission information includes: a third data identifier corresponding to the computing capability of the first terminal device and/or the time of sharing the computing capability.
一种可能的实现方式中,收发单元1210,具体用于在与第一终端设备认证成功的情况下,接收第一终端设备发送第三数据传输信息;在与网络设备认证成功的情况下,向网络设备发送该第三数据传输信息。In a possible implementation, the transceiver unit 1210 is specifically configured to receive the third data transmission information sent by the first terminal device when the authentication with the first terminal device is successful; and when the authentication with the network device is successful, send the third data transmission information to the network device. The network device sends the third data transmission information.
一种可能的实现方式中,该第一数据传输信息包括:用于指示计算任务为计算资源共享任务的信息和/或用于标识计算任务的数据。In a possible implementation, the first data transmission information includes: information indicating that the computing task is a computing resource sharing task and/or data used to identify the computing task.
一种可能的实现方式中,处理单元1230,用于确定第一终端设备执行计算任务的耗电量;收发单元1210,还用于向网络设备发送第四数据传输信息,该第四数据传输信息用于指示该耗电量。In a possible implementation, the processing unit 1230 is used to determine the power consumption of the first terminal device when performing computing tasks; the transceiver unit 1210 is also used to send fourth data transmission information to the network device. The fourth data transmission information Used to indicate the power consumption.
一种可能的实现方式中,该装置1200包括:收发单元1210,用于接收第一终端设备发送的第二数据传输信息,该第二数据传输信息包括计算任务的执行结果,收发单元1210,还用于向网络设备发送第二数据传输信息。In a possible implementation, the apparatus 1200 includes: a transceiver unit 1210, configured to receive second data transmission information sent by the first terminal device, where the second data transmission information includes the execution result of the computing task, the transceiver unit 1210, and Used to send second data transmission information to the network device.
作为一种设计,装置1200用于执行上述计算资源共享方法中,网络设备所执行的动作。As a design, the device 1200 is configured to perform the actions performed by the network device in the above computing resource sharing method.
该装置1200包括:收发单元1210,用于向充电设备发送第一数据传输信息,该第一数据传输信息用于指示第一终端设备执行计算任务,该计算任务与第二终端设备的数据相关联;收发单元1210,还用于接收第二数据传输信息,该第二数据传输信息包括该计算任务的执行结果。The device 1200 includes: a transceiver unit 1210, configured to send first data transmission information to the charging device. The first data transmission information is used to instruct the first terminal device to perform a computing task, and the computing task is associated with data of the second terminal device. ; Transceiver unit 1210, also used to receive second data transmission information, the second data transmission information includes the execution result of the computing task.
一种可能的实现方式中,该计算任务是由网络设备根据第二终端设备的请求生成的。In a possible implementation, the computing task is generated by the network device according to a request from the second terminal device.
一种可能的实现方式中,装置1200还包括处理单元1230,收发单元1210,还用于接收充电设备发送的第三数据传输信息,该第三数据传输信息用于指示第一终端设备的计算能力和/或共享计算能力的时间;处理单元1230,用于根据第三数据传输信息,确定计算任务。In a possible implementation, the device 1200 further includes a processing unit 1230 and a transceiver unit 1210, which are further configured to receive third data transmission information sent by the charging device. The third data transmission information is used to indicate the computing capability of the first terminal device. and/or the time of sharing computing power; the processing unit 1230 is configured to determine the computing task according to the third data transmission information.
一种可能的实现方式中,该第三数据传输信息包括:第三数据标识,该第三数据标识与第一终端设备的计算能力和/或共享计算能力的时间相对应。In a possible implementation, the third data transmission information includes: a third data identifier corresponding to the computing capability of the first terminal device and/or the time of sharing the computing capability.
一种可能的实现方式中,收发单元1210,具体用于在与充电设备接入认证成功的情况下,接收充电设备该第三数据传输信息。In one possible implementation, the transceiver unit 1210 is specifically configured to receive the third data transmission information of the charging device when the access authentication with the charging device is successful.
一种可能的实现方式中,收发单元1210,还用于发送请求信息,该请求信息用于请求第一终端设备共享计算资源;收发单元1210,还用于接收响应信息,该响应信息用于指示第一终端设备允许共享第一终端设备的计算资源。In a possible implementation, the transceiver unit 1210 is also configured to send request information, which is used to request the first terminal device to share computing resources; the transceiver unit 1210 is also configured to receive response information, which is used to indicate The first terminal device allows sharing of computing resources of the first terminal device.
一种可能的实现方式中,该第一数据传输信息包括:用于指示计算任务为计算资源共享任务的信息和/或用于标识计算任务的数据。In a possible implementation, the first data transmission information includes: information indicating that the computing task is a computing resource sharing task and/or data used to identify the computing task.
一种可能的实现方式中,该第二数据传输信息包括:用于标识计算任务执行结果的数据。In a possible implementation, the second data transmission information includes: data used to identify the execution result of the computing task.
一种可能的实现方式中,收发单元1210,用于接收充电设备发送的第四数据传输信息,该第四数据传输信息用于指示第一终端设备执行该计算任务的耗电量;处理单元1230,还用于根据第二数据传输信息和第四数据传输信息,确定付费金额;该处理单元1230还用于向充电设备或第一终端设备的账户充值付费金额。In a possible implementation, the transceiver unit 1210 is configured to receive fourth data transmission information sent by the charging device, where the fourth data transmission information is used to indicate the power consumption of the first terminal device to perform the computing task; the processing unit 1230 , and is also used to determine the payment amount based on the second data transmission information and the fourth data transmission information; the processing unit 1230 is also used to recharge the payment amount to the account of the charging device or the first terminal device.
一种可能的实现方式中,该装置1200包括:收发单元1210,用于向第一终端设备发送第一数据传输信息,该第一数据传输信息用于指示第一终端设备执行计算任务,该计算任务与第二终端设备的数据相关联;收发单元1210,还用于接收充电设备发送的第二数据传输信息,该第二数据传输信息包括该计算任务的执行结果。In a possible implementation, the apparatus 1200 includes: a transceiver unit 1210, configured to send first data transmission information to the first terminal device, where the first data transmission information is used to instruct the first terminal device to perform a computing task. The task is associated with data of the second terminal device; the transceiver unit 1210 is also configured to receive second data transmission information sent by the charging device, where the second data transmission information includes the execution result of the computing task.
应理解,以上装置中各单元的划分仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。此外,装置中的单元可以以处理器调用软件的形式实现;例如装置包括处理器,处理器与存储器连接,存储器中存储有指令,处理器调用存储器中存储的指令,以实现以上任一种方法或实现该装置各单元的功能,其中处理器例如为通用处理器,例如,图形处理器或微处理器,存储器为装置内的存储器或装置外的存储器。或者,装置中的单元可以以硬件电路的形式实现,可以通过对硬件电路的设计实现部分或全部单元的功能,该硬件电路可以理解为一个或多个处理器;例如,在一种实现中,该硬件电路为ASIC,通过对电路内元件逻辑关系的设计,实现以上部分或全部单元的功能;再如,在另一种实现中,该硬件电路为可以通过PLD实现,以FPGA为例,其可以包括大量逻辑门电路,通过配置文件来配置逻辑门电路之间的连接关系,从而实现以上部分或全部单元的功能。以上装置的所有单元可以全部通过处理器调用软件的形式实现,或全部通过硬件电路的形式实现,或部分通过处理器调用软件的形式实现,剩余部分通过硬件电路的形式实现。It should be understood that the division of each unit in the above device is only a division of logical functions. In actual implementation, the units may be fully or partially integrated into a physical entity, or may be physically separated. In addition, the unit in the device can be implemented in the form of a processor calling software; for example, the device includes a processor, the processor is connected to a memory, instructions are stored in the memory, and the processor calls the instructions stored in the memory to implement any of the above methods. Or realize the functions of each unit of the device, where the processor is, for example, a general-purpose processor, such as a graphics processor or a microprocessor, and the memory is a memory within the device or a memory outside the device. Alternatively, the units in the device can be implemented in the form of hardware circuits, and some or all of the functions of the units can be implemented through the design of the hardware circuits, which can be understood as one or more processors; for example, in one implementation, The hardware circuit is an ASIC, which realizes the functions of some or all of the above units through the design of the logical relationship of the components in the circuit; for another example, in another implementation, the hardware circuit can be implemented through PLD, taking FPGA as an example. It can include a large number of logic gate circuits, and the connection relationships between the logic gate circuits can be configured through configuration files to realize the functions of some or all of the above units. All units of the above device may be fully realized by the processor calling software, or may be fully realized by hardware circuits, or part of the units may be realized by the processor calling software, and the remaining part may be realized by hardware circuits.
可选地,若该装置1200位于车辆中,上述处理单元1230可以是图1所示的处理器131。Optionally, if the device 1200 is located in a vehicle, the processing unit 1230 may be the processor 131 shown in FIG. 1 .
可选地,上述收发单元1210可以是图13中的通信接口1330,上述存储单元1220可以是图13中的存储器1310,上述处理单元1230可以是图13中的处理器1320。Optionally, the above-mentioned transceiver unit 1210 may be the communication interface 1330 in FIG. 13 , the above-mentioned storage unit 1220 may be the memory 1310 in FIG. 13 , and the above-mentioned processing unit 1230 may be the processor 1320 in FIG. 13 .
图13是本申请实施例提供的另一种计算资源共享的装置1300示意图。该装置1300可应用于图1的车辆100中。Figure 13 is a schematic diagram of another computing resource sharing device 1300 provided by an embodiment of the present application. The device 1300 may be applied in the vehicle 100 of FIG. 1 .
该计算资源共享的装置1300包括:存储器1310、处理器1320、以及通信接口1330。 其中,存储器1310、处理器1320,通信接口1330通过内部连接通路相连,该存储器1310用于存储指令,该处理器1320用于执行该存储器1310存储的指令,以控制输入/输出接口1330接收/发送信息。可选地,存储器1310既可以和处理器1320通过接口耦合,也可以和处理器1320集成在一起。The computing resource sharing device 1300 includes: a memory 1310, a processor 1320, and a communication interface 1330. Among them, the memory 1310, the processor 1320, and the communication interface 1330 are connected through an internal connection path. The memory 1310 is used to store instructions, and the processor 1320 is used to execute the instructions stored in the memory 1310 to control the input/output interface 1330 to receive/send. information. Optionally, the memory 1310 can be coupled with the processor 1320 through an interface or integrated with the processor 1320 .
需要说明的是,上述通信接口1330使用例如但不限于收发器一类的收发装置。上述通信接口1330还可以包括输入/输出接口(input/output interface)。It should be noted that the above-mentioned communication interface 1330 uses a transceiver device such as but not limited to a transceiver. The above-mentioned communication interface 1330 may also include an input/output interface.
处理器1320存储有一个或多个计算机程序,该一个或多个计算机程序包括指令。当该指令被所述处理器1320运行时,使得该计算资源共享装置1300执行上述各实施例中计算资源共享的方法。Processor 1320 stores one or more computer programs including instructions. When the instruction is executed by the processor 1320, the computing resource sharing device 1300 is caused to execute the computing resource sharing methods in the above embodiments.
在实现过程中,上述方法的各步骤可以通过处理器1320中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器1310,处理器1320读取存储器1310中的信息,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。During the implementation process, each step of the above method can be completed by instructions in the form of hardware integrated logic circuits or software in the processor 1320 . The method disclosed in conjunction with the embodiments of the present application can be directly implemented by a hardware processor for execution, or can be executed by a combination of hardware and software modules in the processor. The software module can be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other mature storage media in this field. The storage medium is located in the memory 1310. The processor 1320 reads the information in the memory 1310 and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
可选地,该装置1200或装置1300可以位于图1中的车辆100中。Alternatively, the device 1200 or the device 1300 may be located in the vehicle 100 in FIG. 1 .
可选地,该装置1200或装置1300可以为图1中车辆中的计算平台130。Alternatively, the device 1200 or the device 1300 may be the computing platform 130 in the vehicle in FIG. 1 .
本申请实施例还提供一种计算机可读介质,所述计算机可读介质存储有程序代码,当所述计算机程序代码在计算机上运行时,使得所述计算机执行上述图7至图11中的任一种方法。Embodiments of the present application also provide a computer-readable medium. The computer-readable medium stores program code. When the computer program code is run on a computer, it causes the computer to execute any of the above-mentioned Figures 7 to 11. a way.
本申请实施例还提供一种计算机程序产品,所述计算机产品包括:计算机程序,当所述计算机程序被运行时,使得计算机执行上述图7至图11中的任一种方法。An embodiment of the present application also provides a computer program product. The computer product includes: a computer program, which when the computer program is run, causes the computer to execute any one of the methods in FIGS. 7 to 11 .
本申请实施例还提供一种芯片,包括:至少一个处理器和存储器,所述至少一个处理器与所述存储器耦合,用于读取并执行所述存储器中的指令,以执行上述图7至图11中的任一种方法。An embodiment of the present application also provides a chip, including: at least one processor and a memory. The at least one processor is coupled to the memory and is used to read and execute instructions in the memory to execute the above-mentioned Figures 7 to 7. Either method in Figure 11.
本申请实施例还提供一种终端设备,包括:至少一个处理器和存储器,所述至少一个处理器与所述存储器耦合,用于读取并执行所述存储器中的指令,以执行上述图7至图11中的任一种方法。An embodiment of the present application also provides a terminal device, including: at least one processor and a memory, the at least one processor being coupled to the memory, and configured to read and execute instructions in the memory to execute the above-mentioned Figure 7 to any method in Figure 11.
本申请实施例还提供一种终端设备,包括图12或图13中任一种计算资源共享装置。An embodiment of the present application also provides a terminal device, including any one of the computing resource sharing devices in Figure 12 or Figure 13 .
本申请实施例还提供一种车辆,包括图12或图13中任一种计算资源共享装置。An embodiment of the present application also provides a vehicle, including any computing resource sharing device in Figure 12 or Figure 13 .
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be described again here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的 划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对已有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code. .
在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。In the description of the embodiments of this application, unless otherwise stated, "/" means or, for example, A/B can mean A or B; "and/or" in this article is just a way to describe the association of related objects. Relationship means that three relationships can exist. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. In this application, "at least one" refers to one or more, and "plurality" refers to two or more. "At least one of the following" or similar expressions thereof refers to any combination of these items, including any combination of a single item (items) or a plurality of items (items). For example, at least one of a, b, or c can mean: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c can be single or multiple .
本申请实施例中采用诸如“第一”、“第二”的前缀词,仅仅为了区分不同的描述对象,对被描述对象的位置、顺序、优先级、数量或内容等没有限定作用。本申请实施例中对序数词等用于区分描述对象的前缀词的使用不对所描述对象构成限制,对所描述对象的陈述参见权利要求或实施例中上下文的描述,不应因为使用这种前缀词而构成多余的限制。Prefixes such as "first" and "second" are used in the embodiments of this application only to distinguish different description objects, and have no limiting effect on the position, order, priority, quantity or content of the described objects. In the embodiments of this application, the use of ordinal words and other prefixes used to distinguish the described objects does not limit the described objects. For the statement of the described objects, please refer to the claims or the context description in the embodiments. The use of such prefixes should not be used. Words constitute redundant restrictions.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application. should be covered by the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims (57)

  1. 一种计算资源共享方法,其特征在于,所述方法应用于第一终端设备中,所述方法包括:A computing resource sharing method, characterized in that the method is applied to a first terminal device, and the method includes:
    接收充电设备发送的第一数据传输信息,所述充电设备至少用于为所述第一终端设备充电,所述第一数据传输信息用于指示所述第一终端设备执行计算任务,所述计算任务与第二终端设备的数据相关联;Receive first data transmission information sent by a charging device, the charging device is at least used to charge the first terminal device, the first data transmission information is used to instruct the first terminal device to perform a computing task, the computing task The task is associated with data from the second terminal device;
    执行所述计算任务;Perform said computing tasks;
    发送第二数据传输信息,所述第二数据传输信息包括所述计算任务的执行结果。Send second data transmission information, where the second data transmission information includes the execution result of the computing task.
  2. 如权利要求1所述的方法,其特征在于,所述计算任务是由网络设备根据所述第二终端设备的请求生成的。The method of claim 1, wherein the computing task is generated by a network device according to a request from the second terminal device.
  3. 如权利要求1或2所述的方法,其特征在于,在所述接收充电设备发送的第一数据传输信息之前,所述方法还包括:The method according to claim 1 or 2, characterized in that, before receiving the first data transmission information sent by the charging device, the method further includes:
    向所述充电设备发送第三数据传输信息,所述第三数据传输信息用于指示所述第一终端设备的计算能力和/或共享计算能力的时间。Send third data transmission information to the charging device, where the third data transmission information is used to indicate the computing capability of the first terminal device and/or the time to share the computing capability.
  4. 如权利要求3所述的方法,其特征在于,所述第三数据传输信息包括:第三数据标识,所述第三数据标识与所述第一终端设备的计算能力和/或共享计算能力的时间相对应。The method of claim 3, wherein the third data transmission information includes: a third data identifier, the third data identifier is related to the computing capability of the first terminal device and/or the shared computing capability. corresponding to the time.
  5. 如权利要求3或4所述的方法,其特征在于,所述向所述充电设备发送第三数据传输信息,包括:The method of claim 3 or 4, wherein sending third data transmission information to the charging device includes:
    在与所述充电设备认证成功的情况下,向所述充电设备发送所述第三数据传输信息。If the authentication with the charging device is successful, the third data transmission information is sent to the charging device.
  6. 如权利要求5所述的方法,其特征在于,在所述向所述充电设备发送所述第三数据传输信息之前,所述方法还包括:The method of claim 5, wherein before sending the third data transmission information to the charging device, the method further includes:
    接收请求信息,所述请求信息用于请求所述第一终端设备共享计算资源;Receive request information, the request information being used to request the first terminal device to share computing resources;
    发送响应信息,所述响应信息用于指示所述第一终端设备允许共享所述第一终端设备的计算资源。Send response information, where the response information is used to indicate that the first terminal device allows sharing of computing resources of the first terminal device.
  7. 如权利要求1至6任一项所述的方法,其特征在于,所述第一数据传输信息包括:用于指示所述计算任务为计算资源共享任务的信息和/或用于标识所述计算任务的数据。The method according to any one of claims 1 to 6, characterized in that the first data transmission information includes: information used to indicate that the computing task is a computing resource sharing task and/or used to identify the computing task. Task data.
  8. 如权利要求1至7任一项所述的方法,其特征在于,所述第二数据传输信息包括:用于标识所述计算任务执行结果的数据。The method according to any one of claims 1 to 7, characterized in that the second data transmission information includes: data used to identify the execution result of the computing task.
  9. 如权利要求1至8任一项所述的方法,其特征在于,在所述执行所述计算任务之前,所述方法包括:The method according to any one of claims 1 to 8, characterized in that, before performing the computing task, the method includes:
    确定执行所述计算任务的处理单元,所述处理单元与所述计算任务的任务类型相对应。A processing unit that executes the computing task is determined, and the processing unit corresponds to a task type of the computing task.
  10. 如权利要求1至9任一项所述的方法,其特征在于,所述执行所述计算任务包括:在可信执行环境中执行所述计算任务。The method according to any one of claims 1 to 9, wherein said executing the computing task includes: executing the computing task in a trusted execution environment.
  11. 一种计算资源共享方法,其特征在于,所述方法应用于充电设备中,所述充电设备至少用于为第一终端设备充电,所述方法包括:A computing resource sharing method, characterized in that the method is applied to a charging device, the charging device is at least used to charge a first terminal device, the method includes:
    接收网络设备发送的第一数据传输信息,所述第一数据传输信息用于指示所述第一终 端设备执行计算任务,所述计算任务与第二终端设备的数据相关联;Receive the first data transmission information sent by the network device, the first data transmission information is used to instruct the first terminal device to perform a computing task, the computing task is associated with the data of the second terminal device;
    向所述第一终端设备发送所述第一数据传输信息。Send the first data transmission information to the first terminal device.
  12. 如权利要求11所述的方法,其特征在于,所述计算任务是由所述网络设备根据所述第二终端设备的请求生成的。The method of claim 11, wherein the computing task is generated by the network device according to a request from the second terminal device.
  13. 如权利要求11或12所述的方法,其特征在于,在所述接收网络设备发送的第一数据传输信息之前,所述方法还包括:The method according to claim 11 or 12, characterized in that before receiving the first data transmission information sent by the network device, the method further includes:
    接收所述第一终端设备发送的第三数据传输信息,所述第三数据传输信息用于指示所述第一终端设备的计算能力和/或共享计算能力的时间;Receive third data transmission information sent by the first terminal device, where the third data transmission information is used to indicate the computing capability of the first terminal device and/or the time to share the computing capability;
    向所述网络设备发送所述第三数据传输信息。Send the third data transmission information to the network device.
  14. 如权利要求13所述的方法,其特征在于,所述第三数据传输信息包括:第三数据标识,所述第三数据标识与所述第一终端设备的计算能力和/或共享计算能力的时间相对应。The method of claim 13, wherein the third data transmission information includes: a third data identifier, the third data identifier is related to the computing capability of the first terminal device and/or the shared computing capability. corresponding to the time.
  15. 如权利要求13或14所述的方法,其特征在于,所述接收所述第一终端设备发送的第三数据传输信息,包括:The method of claim 13 or 14, wherein receiving the third data transmission information sent by the first terminal device includes:
    在与所述第一终端设备认证成功的情况下,接收所述第一终端设备发送的所述第三数据传输信息;If the authentication with the first terminal device is successful, receive the third data transmission information sent by the first terminal device;
    所述向所述网络设备发送所述第三数据传输信息,包括:The sending of the third data transmission information to the network device includes:
    在与所述网络设备认证成功的情况下,向所述网络设备发送所述第三数据传输信息。If the authentication with the network device is successful, the third data transmission information is sent to the network device.
  16. 如权利要求11至15任一项所述的方法,其特征在于,所述第一数据传输信息包括:用于指示所述计算任务为计算资源共享任务的信息和/或用于标识所述计算任务的数据。The method according to any one of claims 11 to 15, wherein the first data transmission information includes: information indicating that the computing task is a computing resource sharing task and/or identifying the computing task. Task data.
  17. 如权利要求11至16任一项所述方法,其特征在于,所述方法还包括:The method according to any one of claims 11 to 16, characterized in that the method further includes:
    确定所述第一终端设备执行所述计算任务的耗电量;Determine the power consumption of the first terminal device when performing the computing task;
    向所述网络设备发送第四数据传输信息,所述第四数据传输信息用于指示所述耗电量。Send fourth data transmission information to the network device, where the fourth data transmission information is used to indicate the power consumption.
  18. 一种计算资源共享方法,其特征在于,所述方法应用于网络设备中,所述方法包括:A computing resource sharing method, characterized in that the method is applied to network equipment, and the method includes:
    向充电设备发送第一数据传输信息,所述第一数据传输信息用于指示第一终端设备执行计算任务,所述计算任务与第二终端设备的数据相关联;Send first data transmission information to the charging device, the first data transmission information being used to instruct the first terminal device to perform a computing task, the computing task being associated with data of the second terminal device;
    接收第二数据传输信息,所述第二数据传输信息包括所述计算任务的执行结果。Receive second data transmission information, where the second data transmission information includes an execution result of the computing task.
  19. 如权利要求18所述的方法,其特征在于,所述计算任务是由所述网络设备根据所述第二终端设备的请求生成的。The method of claim 18, wherein the computing task is generated by the network device according to a request from the second terminal device.
  20. 如权利要求18或19所述的方法,其特征在于,在所述向充电设备发送第一数据传输信息之前,所述方法还包括:The method according to claim 18 or 19, characterized in that before sending the first data transmission information to the charging device, the method further includes:
    接收所述充电设备发送的第三数据传输信息,所述第三数据传输信息用于指示所述第一终端设备的计算能力和/或共享计算能力的时间;Receive third data transmission information sent by the charging device, where the third data transmission information is used to indicate the computing capability of the first terminal device and/or the time to share the computing capability;
    根据所述第三数据传输信息,确定所述计算任务。The computing task is determined according to the third data transmission information.
  21. 如权利要求20所述的方法,其特征在于,所述第三数据传输信息包括:第三数据标识,所述第三数据标识与所述第一终端设备的计算能力和/或共享计算能力的时间相对应。The method of claim 20, wherein the third data transmission information includes: a third data identifier, the third data identifier is related to the computing capability of the first terminal device and/or the shared computing capability. corresponding to the time.
  22. 如权利要求20或21所述的方法,其特征在于,所述接收所述充电设备发送的第三数据传输信息,包括:The method of claim 20 or 21, wherein receiving the third data transmission information sent by the charging device includes:
    在与所述充电设备接入认证成功的情况下,接收所述充电设备发送的所述第三数据传输信息。If the access authentication with the charging device is successful, the third data transmission information sent by the charging device is received.
  23. 如权利要求22所述的方法,其特征在于,在所述接收所述充电设备发送所述第三数据传输信息之前,所述方法还包括:The method of claim 22, wherein before receiving the third data transmission information sent by the charging device, the method further includes:
    发送请求信息,所述请求信息用于请求所述第一终端设备共享计算资源;Send request information, the request information being used to request the first terminal device to share computing resources;
    接收响应信息,所述响应信息用于指示所述第一终端设备允许共享所述第一终端设备的计算资源。Receive response information, where the response information is used to indicate that the first terminal device allows sharing of computing resources of the first terminal device.
  24. 如权利要求18至23任一项所述的方法,其特征在于,所述第一数据传输信息包括:用于指示所述计算任务为计算资源共享任务的信息和/或用于标识所述计算任务的数据。The method according to any one of claims 18 to 23, characterized in that the first data transmission information includes: information used to indicate that the computing task is a computing resource sharing task and/or used to identify the computing task. Task data.
  25. 如权利要求18至24任一项所述的方法,其特征在于,所述第二数据传输信息包括:用于标识所述计算任务执行结果的数据。The method according to any one of claims 18 to 24, wherein the second data transmission information includes: data used to identify the execution result of the computing task.
  26. 如权利要求18至25任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 18 to 25, characterized in that the method further includes:
    接收所述充电设备发送的第四数据传输信息,所述第四数据传输信息用于指示所述第一终端设备执行所述计算任务的耗电量;Receive fourth data transmission information sent by the charging device, where the fourth data transmission information is used to indicate the power consumption of the first terminal device to perform the computing task;
    根据所述第二数据传输信息和所述第四数据传输信息,确定付费金额;Determine the payment amount according to the second data transmission information and the fourth data transmission information;
    向所述充电设备或所述第一终端设备的账户充值所述付费金额。Recharge the payment amount to the account of the charging device or the first terminal device.
  27. 一种计算资源共享装置,其特征在于,所述装置包括:A computing resource sharing device, characterized in that the device includes:
    收发单元,用于接收充电设备发送的第一数据传输信息,所述充电设备至少用于为所述第一终端设备充电,所述第一数据传输信息用于指示所述第一终端设备执行计算任务,所述计算任务与第二终端设备的数据相关联;A transceiver unit, configured to receive first data transmission information sent by a charging device, the charging device being at least used to charge the first terminal device, and the first data transmission information being used to instruct the first terminal device to perform calculations. Task, the computing task is associated with the data of the second terminal device;
    处理单元,用于执行所述计算任务;A processing unit for performing the computing tasks;
    所述收发单元,还用于发送第二数据传输信息,所述第二数据传输信息包括所述计算任务的执行结果。The transceiver unit is also configured to send second data transmission information, where the second data transmission information includes the execution result of the computing task.
  28. 如权利要求27所述的装置,其特征在于,所述计算任务是由网络设备根据所述第二终端设备的请求生成的。The apparatus of claim 27, wherein the computing task is generated by a network device according to a request from the second terminal device.
  29. 如权利要求27或28所述的装置,其特征在于,The device according to claim 27 or 28, characterized in that:
    所述收发单元,还用于向所述充电设备发送第三数据传输信息,所述第三数据传输信息用于指示所述第一终端设备的计算能力和/或共享计算能力的时间。The transceiver unit is also configured to send third data transmission information to the charging device, where the third data transmission information is used to indicate the computing capability of the first terminal device and/or the time to share the computing capability.
  30. 如权利要求29所述的装置,其特征在于,所述第三数据传输信息包括:第三数据标识,所述第三数据标识与所述第一终端设备的计算能力和/或共享计算能力的时间相对应。The apparatus of claim 29, wherein the third data transmission information includes: a third data identifier, the third data identifier is related to the computing capability of the first terminal device and/or the shared computing capability. corresponding to the time.
  31. 如权利要求29或30所述的装置,其特征在于,The device according to claim 29 or 30, characterized in that:
    所述收发单元,具体用于在与所述充电设备认证成功的情况下,向所述充电设备发送所述第三数据传输信息。The transceiver unit is specifically configured to send the third data transmission information to the charging device when the authentication with the charging device is successful.
  32. 如权利要求31所述的装置,其特征在于,The device according to claim 31, characterized in that:
    所述收发单元,还用于接收请求信息,所述请求信息用于请求所述第一终端设备共享 计算资源;The transceiver unit is also used to receive request information, the request information is used to request the first terminal device to share computing resources;
    所述收发单元,还用于发送响应信息,所述响应信息用于指示所述第一终端设备允许共享所述第一终端设备的计算资源。The transceiver unit is further configured to send response information, where the response information is used to indicate that the first terminal device is allowed to share the computing resources of the first terminal device.
  33. 如权利要求27至32任一项所述的装置,其特征在于,所述第一数据传输信息包括:用于指示所述计算任务为计算资源共享任务的信息和/或用于标识所述计算任务的数据。The apparatus according to any one of claims 27 to 32, wherein the first data transmission information includes: information used to indicate that the computing task is a computing resource sharing task and/or used to identify the computing task. Task data.
  34. 如权利要求27至33任一项所述的装置,其特征在于,所述第二数据传输信息包括:用于标识所述计算任务执行结果的数据。The apparatus according to any one of claims 27 to 33, wherein the second data transmission information includes: data used to identify the execution result of the computing task.
  35. 如权利要求27至34任一项所述的装置,其特征在于,The device according to any one of claims 27 to 34, characterized in that:
    所述处理单元,还用于确定执行所述计算任务的处理单元,所述处理单元与所述计算任务的任务类型相对应。The processing unit is also configured to determine a processing unit that executes the computing task, and the processing unit corresponds to the task type of the computing task.
  36. 如权利要求27至35任一项所述的装置,其特征在于,The device according to any one of claims 27 to 35, characterized in that,
    所述处理单元,具体用于在可信执行环境中执行所述计算任务。The processing unit is specifically configured to execute the computing task in a trusted execution environment.
  37. 一种计算资源共享装置,其特征在于,所述装置包括:A computing resource sharing device, characterized in that the device includes:
    收发单元,用于接收网络设备发送的第一数据传输信息,所述第一数据传输信息用于指示第一终端设备执行计算任务,所述计算任务与第二终端设备的数据相关联;A transceiver unit configured to receive first data transmission information sent by the network device, where the first data transmission information is used to instruct the first terminal device to perform a computing task, where the computing task is associated with data of the second terminal device;
    所述收发单元,还用于向所述第一终端设备发送所述第一数据传输信息。The transceiver unit is also configured to send the first data transmission information to the first terminal device.
  38. 如权利要求37所述的装置,其特征在于,所述计算任务是由所述网络设备根据所述第二终端设备的请求生成的。The apparatus of claim 37, wherein the computing task is generated by the network device according to a request from the second terminal device.
  39. 如权利要求37或38所述的装置,其特征在于,The device according to claim 37 or 38, characterized in that,
    所述收发单元,还用于接收所述第一终端设备发送的第三数据传输信息,所述第三数据传输信息用于指示所述第一终端设备的计算能力和/或共享计算能力的时间;The transceiver unit is also configured to receive third data transmission information sent by the first terminal device, where the third data transmission information is used to indicate the computing capability of the first terminal device and/or the time for sharing the computing capability. ;
    所述收发单元,还用于向所述网络设备发送所述第三数据传输信息。The transceiver unit is also configured to send the third data transmission information to the network device.
  40. 如权利要求39所述的装置,其特征在于,所述第三数据传输信息包括:第三数据标识,所述第三数据标识与所述第一终端设备的计算能力和/或共享计算能力的时间相对应。The apparatus of claim 39, wherein the third data transmission information includes: a third data identifier, the third data identifier is related to the computing capability of the first terminal device and/or the shared computing capability. corresponding to the time.
  41. 如权利要求39或40所述的装置,其特征在于,The device according to claim 39 or 40, characterized in that:
    所述收发单元,具体用于在与所述第一终端设备认证成功的情况下,接收所述第一终端设备发送的所述第三数据传输信息;The transceiver unit is specifically configured to receive the third data transmission information sent by the first terminal device when the authentication with the first terminal device is successful;
    在与所述网络设备认证成功的情况下,向所述网络设备发送所述第三数据传输信息。If the authentication with the network device is successful, the third data transmission information is sent to the network device.
  42. 如权利要求37至41任一项所述的装置,其特征在于,所述第一数据传输信息包括:用于指示所述计算任务为计算资源共享任务的信息和/或用于标识所述计算任务的数据。The apparatus according to any one of claims 37 to 41, wherein the first data transmission information includes: information indicating that the computing task is a computing resource sharing task and/or identifying the computing task. Task data.
  43. 如权利要求37至42任一项所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 37 to 42, characterized in that the device further includes:
    处理单元,用于确定所述第一终端设备执行所述计算任务的耗电量;A processing unit configured to determine the power consumption of the first terminal device when performing the computing task;
    所述收发单元,还用于向所述网络设备发送第四数据传输信息,所述第四数据传输信息用于指示所述耗电量。The transceiver unit is also configured to send fourth data transmission information to the network device, where the fourth data transmission information is used to indicate the power consumption.
  44. 一种计算资源共享装置,其特征在于,所述装置包括:A computing resource sharing device, characterized in that the device includes:
    收发单元,用于向充电设备发送第一数据传输信息,所述第一数据传输信息用于指示 第一终端设备执行计算任务,所述计算任务与第二终端设备的数据相关联;A transceiver unit configured to send first data transmission information to the charging device, the first data transmission information being used to instruct the first terminal device to perform a computing task, the computing task being associated with the data of the second terminal device;
    所述收发单元,还用于接收第二数据传输信息,所述第二数据传输信息包括所述计算任务的执行结果。The transceiver unit is also configured to receive second data transmission information, where the second data transmission information includes the execution result of the computing task.
  45. 如权利要求44所述的装置,其特征在于,所述计算任务是由所述网络设备根据所述第二终端设备的请求生成的。The apparatus of claim 44, wherein the computing task is generated by the network device according to a request from the second terminal device.
  46. 如权利要求44或45所述的装置,其特征在于,所述装置还包括处理单元,The device according to claim 44 or 45, characterized in that the device further comprises a processing unit,
    所述收发单元,还用于接收所述充电设备发送的第三数据传输信息,所述第三数据传输信息用于指示所述第一终端设备的计算能力和/或共享计算能力的时间;The transceiver unit is also configured to receive third data transmission information sent by the charging device, where the third data transmission information is used to indicate the computing capability of the first terminal device and/or the time to share the computing capability;
    所述处理单元,用于根据所述第三数据传输信息,确定所述计算任务。The processing unit is configured to determine the computing task according to the third data transmission information.
  47. 如权利要求46所述的装置,其特征在于,所述第三数据传输信息包括:第三数据标识,所述第三数据标识与所述第一终端设备的计算能力和/或共享计算能力的时间相对应。The apparatus of claim 46, wherein the third data transmission information includes: a third data identifier, the third data identifier is related to the computing capability of the first terminal device and/or the shared computing capability. corresponding to the time.
  48. 如权利要求46或47所述的装置,其特征在于,The device according to claim 46 or 47, characterized in that,
    所述收发单元,具体用于在与所述充电设备接入认证成功的情况下,接收所述充电设备发送的所述第三数据传输信息。The transceiver unit is specifically configured to receive the third data transmission information sent by the charging device when the access authentication with the charging device is successful.
  49. 如权利要求48所述的装置,其特征在于,The device of claim 48, wherein:
    所述收发单元,还用于发送请求信息,所述请求信息用于请求所述第一终端设备共享计算资源;The transceiver unit is also used to send request information, where the request information is used to request the first terminal device to share computing resources;
    所述收发单元,还用于接收响应信息,所述响应信息用于指示所述第一终端设备允许共享所述第一终端设备的计算资源。The transceiver unit is further configured to receive response information, where the response information is used to indicate that the first terminal device is allowed to share the computing resources of the first terminal device.
  50. 如权利要求44至49任一项所述的装置,其特征在于,所述第一数据传输信息包括:用于指示所述计算任务为计算资源共享任务的信息和/或用于标识所述计算任务的数据。The apparatus according to any one of claims 44 to 49, wherein the first data transmission information includes: information used to indicate that the computing task is a computing resource sharing task and/or used to identify the computing task. Task data.
  51. 如权利要求44至50任一项所述的装置,其特征在于,所述第二数据传输信息包括:用于标识所述计算任务执行结果的数据。The apparatus according to any one of claims 44 to 50, wherein the second data transmission information includes: data used to identify the execution result of the computing task.
  52. 如权利要求44至51任一项所述的装置,其特征在于,The device according to any one of claims 44 to 51, characterized in that:
    所述收发单元,用于接收所述充电设备发送的第四数据传输信息,所述第四数据传输信息用于指示所述第一终端设备执行所述计算任务的耗电量;The transceiver unit is configured to receive fourth data transmission information sent by the charging device, where the fourth data transmission information is used to instruct the first terminal device to consume power when performing the computing task;
    所述处理单元,还用于根据所述第二数据传输信息和所述第四数据传输信息,确定付费金额;The processing unit is also configured to determine the payment amount based on the second data transmission information and the fourth data transmission information;
    所述处理单元还用于,向所述充电设备或所述第一终端设备的账户充值所述付费金额。The processing unit is further configured to recharge the payment amount to an account of the charging device or the first terminal device.
  53. 一种计算资源共享装置,其特征在于,所述装置包括:至少一个处理器和存储器,所述至少一个处理器与所述存储器耦合,用于读取并执行所述存储器中的指令,以执行如权利要求1至26中任一项所述的方法。A computing resource sharing device, characterized in that the device includes: at least one processor and a memory, the at least one processor is coupled to the memory, and is used to read and execute instructions in the memory to execute A method as claimed in any one of claims 1 to 26.
  54. 一种计算机可读介质,其特征在于,所述计算机可读介质存储有程序代码,当所述计算机程序代码在计算机上运行时,使得所述计算机执行如权利要求1至26中任一项所述的方法。A computer-readable medium, characterized in that the computer-readable medium stores program code. When the computer program code is run on a computer, it causes the computer to execute the method as claimed in any one of claims 1 to 26. method described.
  55. 一种芯片,其特征在于,包括:至少一个处理器和存储器,所述至少一个处理器与所述存储器耦合,用于读取并执行所述存储器中的指令,以执行如权利要求1至26中 任一项所述的方法。A chip, characterized in that it includes: at least one processor and a memory, the at least one processor is coupled to the memory, and is used to read and execute instructions in the memory to execute claims 1 to 26 any one of the methods.
  56. 一种计算机程序产品,其特征在于,所述计算机产品包括:计算机程序,当所述计算机程序被运行时,使得计算机执行如权利要求1至26中任一项所述的方法。A computer program product, characterized in that the computer product includes: a computer program, which when the computer program is run, causes the computer to perform the method according to any one of claims 1 to 26.
  57. 一种终端设备,其特征在于,包括:至少一个处理器和存储器,所述至少一个处理器与所述存储器耦合,用于读取并执行所述存储器中的指令,以执行如权利要求1至26中任一项所述的方法。A terminal device, characterized in that it includes: at least one processor and a memory, the at least one processor is coupled to the memory, and is used to read and execute instructions in the memory to execute the instructions as claimed in claims 1 to 1. The method described in any one of 26.
PCT/CN2022/116216 2022-08-31 2022-08-31 Computing resource sharing method and apparatus, and terminal device WO2024045043A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/116216 WO2024045043A1 (en) 2022-08-31 2022-08-31 Computing resource sharing method and apparatus, and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/116216 WO2024045043A1 (en) 2022-08-31 2022-08-31 Computing resource sharing method and apparatus, and terminal device

Publications (1)

Publication Number Publication Date
WO2024045043A1 true WO2024045043A1 (en) 2024-03-07

Family

ID=90100004

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/116216 WO2024045043A1 (en) 2022-08-31 2022-08-31 Computing resource sharing method and apparatus, and terminal device

Country Status (1)

Country Link
WO (1) WO2024045043A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111008704A (en) * 2019-11-29 2020-04-14 上海能塔智能科技有限公司 Processing method, device, equipment and storage medium for federal learning of electric vehicle
CN114423065A (en) * 2020-10-28 2022-04-29 华为技术有限公司 Computing service discovery method and communication device
CN114600093A (en) * 2019-06-28 2022-06-07 英特尔公司 Secure and efficient computing sharing for electric vehicles
CN114885308A (en) * 2021-02-05 2022-08-09 维沃移动通信有限公司 Computing power service method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114600093A (en) * 2019-06-28 2022-06-07 英特尔公司 Secure and efficient computing sharing for electric vehicles
CN111008704A (en) * 2019-11-29 2020-04-14 上海能塔智能科技有限公司 Processing method, device, equipment and storage medium for federal learning of electric vehicle
CN114423065A (en) * 2020-10-28 2022-04-29 华为技术有限公司 Computing service discovery method and communication device
CN114885308A (en) * 2021-02-05 2022-08-09 维沃移动通信有限公司 Computing power service method and device

Similar Documents

Publication Publication Date Title
US10761527B2 (en) Integration platform for autonomous vehicles
EP4146493A1 (en) Transport battery recharging via virtual power plant
US20200226226A1 (en) Autonomous Vehicle Service Simulation
US11872891B2 (en) Modification of transport functionality based on carbon footprint
WO2012160627A1 (en) Vehicle information providing apparatus
CN113992713B (en) Vehicle cloud communication method and device, electronic equipment and storage medium
JP2024513679A (en) Method and related device for retrieving files based on wireless OTA technology
US20230412395A1 (en) Systems and Methods for Vehicle Message Signing
WO2024045043A1 (en) Computing resource sharing method and apparatus, and terminal device
US20230241999A1 (en) Transport recharge level determination
US20220277597A1 (en) Enhanced usability and functionality of vehicle onboard hardware and software
Wu et al. Vpi: Vehicle programming interface for vehicle computing
US20230382406A1 (en) Vehicle action determination based on occupant characteristics
CN110115016A (en) Information of vehicles processing system, information of vehicles processing routine and mobile communication terminal
CN113939856A (en) Communication system comprising a communication adapter and a coordinator device, and communication adapter, coordinator device and method for performing communication
US20230322110A1 (en) Multiple vehicles to provide energy to a location
US12019415B2 (en) Grouping electric transports for an electric grid
US20230382393A1 (en) Property loss prevention
US20230393833A1 (en) Real-time modifications for vehicles
US20230419234A1 (en) Ev battery degradation in a fleet
US20240073057A1 (en) Vehicle dcm routing management
US20240109449A1 (en) Determining vehicle charging locations
US20230316433A1 (en) Future energy transfer
US20230278446A1 (en) Allowing energy use during peak times
US20230266730A1 (en) Grouping electric transports for an electric grid

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22956872

Country of ref document: EP

Kind code of ref document: A1