CN117097794A - Method and device for sharing computing power resources, electronic equipment and storage medium - Google Patents

Method and device for sharing computing power resources, electronic equipment and storage medium Download PDF

Info

Publication number
CN117097794A
CN117097794A CN202210817144.0A CN202210817144A CN117097794A CN 117097794 A CN117097794 A CN 117097794A CN 202210817144 A CN202210817144 A CN 202210817144A CN 117097794 A CN117097794 A CN 117097794A
Authority
CN
China
Prior art keywords
vehicle
sharing
shared access
computing power
target terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210817144.0A
Other languages
Chinese (zh)
Inventor
丁彬
傅强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Co Wheels Technology Co Ltd
Original Assignee
Beijing Co Wheels Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Co Wheels Technology Co Ltd filed Critical Beijing Co Wheels Technology Co Ltd
Priority to CN202210817144.0A priority Critical patent/CN117097794A/en
Publication of CN117097794A publication Critical patent/CN117097794A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • H04W12/068Authentication using credential vaults, e.g. password manager applications or one time password [OTP] applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The disclosure provides a method, a device, an electronic device and a storage medium for sharing computing resources, wherein the method applied to sharing access equipment comprises the following steps: under the condition of establishing wireless connection with a vehicle, receiving a calculation force sharing request sent by the vehicle based on the wireless connection, wherein the calculation force sharing request comprises an internet protocol address IP of a target terminal device; based on the IP of the target terminal equipment, sending the calculation force sharing request to the target terminal equipment; receiving a calculation force sharing response returned by the target terminal equipment, wherein the calculation force sharing response corresponds to the calculation force sharing request; the force sharing response is sent to the vehicle over the wireless connection. Therefore, the transmission and sharing of the calculation power resources between the vehicle and the terminal equipment are realized, the utilization rate of the calculation power resources of the vehicle is improved, the situation that the terminal equipment cannot meet the data processing is avoided, and the user experience is improved.

Description

Method and device for sharing computing power resources, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of vehicles, and in particular relates to a method and a device for sharing computing power resources, electronic equipment and a storage medium.
Background
With the development of science and technology, more and more end products enter the home. However, some end products have limited computational resources, thereby limiting the user experience. The vehicle has higher intelligence, so the vehicle has stronger calculation power and more sufficient calculation power resources. Thus, how to share the computational resources of the vehicle to the terminal device is of paramount importance.
Disclosure of Invention
An embodiment of an aspect of the present disclosure provides a method for sharing computing power resources, which is applied to a shared access device, where the method includes:
under the condition of establishing wireless connection with a vehicle, receiving a calculation force sharing request sent by the vehicle based on the wireless connection, wherein the calculation force sharing request comprises an internet protocol address IP of a target terminal device;
based on the IP of the target terminal equipment, sending the calculation force sharing request to the target terminal equipment;
receiving a calculation force sharing response returned by the target terminal equipment, wherein the calculation force sharing response corresponds to the calculation force sharing request;
the force sharing response is sent to the vehicle over the wireless connection.
Optionally, if the computing power sharing response includes data to be processed that needs to be processed by the vehicle, after the computing power sharing response is sent to the vehicle through the wireless connection, the method further includes:
Receiving a processing result sent by the vehicle, wherein the processing result is obtained by processing the data to be processed by the vehicle;
and returning the processing result to the target terminal equipment.
Optionally, before the receiving the computing power sharing request sent by the vehicle, the method further includes:
controlling bluetooth initiation in the shared access device if it is determined that the vehicle is in a parked state;
responding to the acquired Bluetooth information of the vehicle, and matching the identification of the vehicle contained in the Bluetooth information with the identification in a preset white list;
and responding to the preset white list and comprising the identification of the vehicle, and sending a wireless network connection instruction to the vehicle, wherein the wireless network connection instruction comprises a wireless network name and a password.
Optionally, before the receiving the computing power sharing request sent by the vehicle, the method further includes:
controlling bluetooth initiation in the shared access device if it is determined that the vehicle is in a parked state;
responding to a Bluetooth connection request sent by the vehicle, and matching the identification of the vehicle contained in the Bluetooth request with the identification in a preset white list, wherein the Bluetooth connection request contains the identification of the vehicle;
And responding to the preset white list and comprising the identification of the vehicle, and sending a wireless network connection instruction to the vehicle, wherein the wireless network connection instruction comprises a wireless network name and a password.
Optionally, the determining that the vehicle is in a parked state includes:
under the condition that the distance between the vehicle and the first sensor is monitored to be unchanged within a preset duration, determining that the vehicle is in a parking state, wherein the first sensor is connected with the shared access equipment; and/or the number of the groups of groups,
and under the condition that the same vehicle image data is detected to be acquired by a second sensor in a continuous period, determining that the vehicle is in a parking state, wherein the second sensor is connected with the shared access device.
Optionally, the shared access device is arranged in a stereo garage; or the shared access device is arranged in the public charging pile.
Another embodiment of the present disclosure provides a method for sharing computing power resources, which is applied to a vehicle, and the method includes:
under the condition that wireless connection is established with a sharing access device, sending an account sharing request to the sharing access device based on the wireless connection, wherein the account sharing request comprises the IP of a target terminal device, so that the sharing access device sends the account sharing request to the target terminal device based on the IP of the target terminal device;
And receiving a computing force sharing response acquired from the target terminal equipment side and sent by the sharing access equipment based on the wireless connection, wherein the computing force sharing response corresponds to the computing force sharing request.
Optionally, if the computing power sharing response includes data to be processed, after the receiving, based on the wireless connection, the computing power sharing response acquired by the sharing access device from the target terminal device side, the computing power sharing method further includes:
processing the data to be processed to generate a processing result;
and sending the processing result to the shared access equipment so that the shared access equipment returns the processing result to the target terminal equipment.
Optionally, before the sending, based on the wireless connection, a computing power sharing request to the shared access device, the method further includes:
responding to the acquired Bluetooth information of the shared access equipment, and matching the identification of the shared access equipment contained in the Bluetooth information with the identification contained in a preset white list;
transmitting a wireless network connection request to the shared access equipment under the condition that the preset white list contains the identification of the shared access equipment;
And receiving a wireless network connection instruction sent by the shared access equipment to establish wireless connection with the shared access equipment, wherein the wireless network connection instruction comprises a wireless network name and a password.
Another embodiment of the present disclosure proposes a method for sharing computing power resources, applied to a terminal device, where the method includes:
receiving a calculation force sharing request sent by sharing access equipment, wherein the calculation force sharing request comprises a vehicle IP (Internet protocol), and the calculation force sharing request is generated by a vehicle;
responding to the calculation force sharing request, and generating calculation force sharing response according to attribute information of the current data to be processed;
and sending the calculated force sharing response to the shared access device so that the shared access device sends the calculated force sharing response to the vehicle.
Optionally, the generating the computing power sharing response according to the attribute information of the data to be processed includes:
determining the type of the current data to be processed;
and if the type of the data to be processed is a preset type, generating a calculation force sharing response, wherein the calculation force sharing response comprises the data to be processed.
Optionally, generating a computing power sharing response according to attribute information of the data to be processed currently:
Determining a target computing power resource amount required by the current data to be processed;
and if the target computing power resource quantity is larger than the currently available computing power resource quantity in the terminal equipment, generating a computing power sharing response, wherein the computing power sharing response comprises data to be processed.
Another embodiment of the present disclosure proposes a sharing device of computing power resources, configured on a shared access device side, where the device includes:
the first receiving module is used for receiving a calculation power sharing request sent by a vehicle based on wireless connection under the condition that the wireless connection is established with the vehicle, wherein the calculation power sharing request comprises an internet protocol address IP of target terminal equipment;
the first sending module is used for sending the calculation force sharing request to the target terminal equipment based on the IP of the target terminal equipment;
the second receiving module is used for receiving a calculation force sharing response returned by the target terminal equipment, wherein the calculation force sharing response corresponds to the calculation force sharing request;
and the second sending module is used for sending the power sharing response to the vehicle through the wireless connection.
Optionally, if the computing power sharing response includes data to be processed that needs to be processed by the vehicle, the second sending module is further configured to:
Receiving a processing result sent by the vehicle, wherein the processing result is obtained by processing the data to be processed by the vehicle;
and returning the processing result to the target terminal equipment.
Optionally, the first sending module includes:
the first control unit is used for controlling Bluetooth starting in the shared access equipment under the condition that the vehicle is determined to be in a parking state;
the first matching unit is used for responding to the acquired Bluetooth information of the vehicle and matching the identification of the vehicle contained in the Bluetooth information with the identification in a preset white list;
the first sending unit is used for responding to the preset white list and comprising the identification of the vehicle and sending a wireless network connection instruction to the vehicle, wherein the wireless network connection instruction comprises a wireless network name and a password.
Optionally, the first sending module includes:
the second control unit is used for controlling Bluetooth start in the shared access equipment under the condition that the vehicle is determined to be in a parking state;
the second matching unit is used for responding to a Bluetooth connection request sent by the vehicle, and matching the identification of the vehicle contained in the Bluetooth connection request with the identification in a preset white list, wherein the Bluetooth connection request contains the identification of the vehicle;
And the second sending unit is used for responding to the preset white list and comprising the identification of the vehicle and sending a wireless network connection instruction to the vehicle, wherein the wireless network connection instruction comprises a wireless network name and a password.
Optionally, the first determining unit is specifically configured to:
under the condition that the distance between the vehicle and the first sensor is monitored to be unchanged within a preset duration, determining that the vehicle is in a parking state, wherein the first sensor is connected with the shared access equipment; and/or the number of the groups of groups,
and under the condition that the same vehicle image data is detected to be acquired by a second sensor in a continuous period, determining that the vehicle is in a parking state, wherein the second sensor is connected with the shared access device.
Optionally, the shared access device is arranged in a stereo garage; or the shared access device is arranged in the public charging pile.
Another embodiment of the present disclosure provides a device for sharing computing power resources, configured on a vehicle side, where the device includes:
a sending module, configured to send a power-calculating sharing request to a shared access device based on a wireless connection when the wireless connection is established with the shared access device, where the power-calculating sharing request includes an IP of a target terminal device, so that the shared access device sends the power-calculating sharing request to the target terminal device based on the IP of the target terminal device;
And the receiving module is used for receiving the computing power sharing response acquired from the target terminal equipment side and sent by the sharing access equipment based on the wireless connection, wherein the computing power sharing response corresponds to the computing power sharing request.
Optionally, if the computing power sharing response includes data to be processed, the sending module is further configured to:
processing the data to be processed to generate a processing result;
and sending the processing result to the shared access equipment so that the shared access equipment returns the processing result to the target terminal equipment.
Optionally, the receiving module is further configured to:
responding to the acquired Bluetooth information of the shared access equipment, and matching the identification of the shared access equipment contained in the Bluetooth information with the identification contained in a preset white list;
transmitting a wireless network connection request to the shared access equipment under the condition that the preset white list contains the identification of the shared access equipment;
and receiving a wireless network connection instruction sent by the shared access equipment to establish wireless connection with the shared access equipment, wherein the wireless network connection instruction comprises a wireless network name and a password.
Another embodiment of the present disclosure proposes a device for sharing computing power resources, configured on a terminal device side, where the device includes:
the receiving module is used for receiving a calculation force sharing request sent by the sharing access equipment, wherein the calculation force sharing request comprises a vehicle IP, and the calculation force sharing request is generated by a vehicle;
the generation module is used for responding to the calculation force sharing request and generating calculation force sharing response according to the attribute information of the data to be processed currently;
and the sending module is used for sending the calculated force sharing response to the shared access equipment so that the shared access equipment sends the calculated force sharing response to the vehicle.
Optionally, the generating module is specifically configured to:
determining the type of the current data to be processed;
and if the type of the data to be processed is a preset type, generating a calculation force sharing response, wherein the calculation force sharing response comprises the data to be processed.
Optionally, the generating module is specifically configured to:
determining a target computing power resource amount required by the current data to be processed;
and if the target computing power resource quantity is larger than the currently available computing power resource quantity in the terminal equipment, generating a computing power sharing response, wherein the computing power sharing response comprises data to be processed.
Another embodiment of the present disclosure provides an electronic device including a processor and a memory;
wherein the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for implementing the method as described in the embodiment of the above aspect.
Another aspect of the present disclosure proposes a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements a method as described in the embodiments of the above aspect.
Another aspect of the present disclosure proposes a computer program product comprising a computer program which, when executed by a processor, performs the steps of the method of the above aspect.
According to the method, the device, the electronic equipment and the storage medium for sharing the computing power resources, the sharing access equipment can receive the computing power sharing request sent by the vehicle based on wireless connection under the condition that wireless connection is established with the vehicle, wherein the computing power sharing request comprises the IP of the target terminal equipment, then the computing power sharing request can be sent to the target terminal equipment based on the IP of the target terminal equipment, then the computing power sharing response returned by the target terminal equipment can be received, the computing power sharing response and the computing power sharing response are not corresponding to each other, and the computing power sharing response is sent to the vehicle through wireless connection. Therefore, after the wireless connection is established between the sharing access device and the vehicle, the computing power sharing request sent by the vehicle can be received based on the wireless connection, the request can be sent to the target terminal device, and the computing power sharing response returned by the target terminal device can be returned to the vehicle, so that the transmission and sharing of computing power resources between the vehicle and the terminal device are realized, the utilization rate of the computing power resources of the vehicle is improved, the situation that the terminal device cannot meet the requirement of data processing is avoided, and the user experience is improved.
Additional aspects and advantages of the disclosure will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the disclosure.
Drawings
The foregoing and/or additional aspects and advantages of the present disclosure will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
fig. 1 is a flow chart of a method for sharing computing power resources according to an embodiment of the disclosure;
FIG. 2 is a flow chart of another method for sharing computing resources according to an embodiment of the disclosure;
FIG. 3 is a flow chart of another method for sharing computing resources according to an embodiment of the disclosure;
FIG. 4 is a flow chart of a method for sharing computing resources according to an embodiment of the disclosure;
FIG. 5 is a flow chart of another method for sharing computing resources according to an embodiment of the disclosure;
FIG. 5A is a schematic diagram of a sharing process of computing resources provided by an embodiment of the present disclosure;
FIG. 5B is a schematic diagram of another process for sharing computing resources provided by embodiments of the present disclosure;
FIG. 5C is a schematic diagram of a signal link provided by an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a computing resource sharing device according to an embodiment of the present disclosure;
Fig. 7 is a schematic structural diagram of a computing resource sharing device according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a computing resource sharing device according to an embodiment of the present disclosure;
fig. 9 is a block diagram of an electronic device for sharing of computing resources provided by an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are exemplary and intended for the purpose of explaining the present disclosure and are not to be construed as limiting the present disclosure.
The method, apparatus, electronic device, and storage medium for sharing computing resources according to embodiments of the present disclosure are described below with reference to the accompanying drawings.
The method for sharing the computing power resources provided by the embodiment of the disclosure may be performed by the device for sharing the computing power resources provided by the embodiment of the disclosure, where the device may be configured in an electronic device.
Fig. 1 is a flowchart of a method for sharing computing power resources according to an embodiment of the disclosure, where the method may be performed by a shared access device.
As shown in fig. 1, the method for sharing the computing power resource may include the following steps:
step 101, receiving a calculation force sharing request sent by a vehicle based on wireless connection under the condition that wireless connection is established with the vehicle, wherein the calculation force sharing request comprises an internet protocol address IP of a target terminal device.
The computing power sharing request can be a request for representing that the vehicle machine can share computing power resources, for example, the computing power resources can be shared to the target terminal equipment, so that the problem that the target terminal equipment possibly has insufficient computing power resources is solved; which may be any form of request, and this disclosure is not limited in this regard.
It may be appreciated that the execution body of the embodiment of the present disclosure may be a shared access device, which may be used as a bridge for communication between a vehicle and a terminal device, for example, may establish a wireless connection with the vehicle, and receive a computing power sharing request sent by the vehicle, and the present disclosure is not limited thereto.
Optionally, the shared access device may be disposed in a stereo garage; or the shared access device may be disposed in a common charging stake, which is not limited by the present disclosure.
It will be appreciated that there may be one or more vehicles at a stereo garage or public charging post due to the shared access device being located in a public location, such as a stereo garage, or public charging post, etc. Thus, the sharing access device can establish wireless connection with a vehicle and receive a calculation force sharing request sent by the vehicle; or may establish a wireless connection with a plurality of vehicles respectively, may receive a calculation force sharing request sent by each vehicle respectively, and the disclosure is not limited thereto.
Step 102, based on the IP of the target terminal device, sending the calculation force sharing request to the target terminal device.
For example, the IP of the target terminal device is: the shared access device may send the computing power sharing request to the target terminal device corresponding to "XXXX" so that the target terminal device may learn that the vehicle may currently perform computing power resource sharing, and so on.
Or if the sharing access device receives a plurality of computing force sharing requests, the sharing access device may analyze each computing force sharing request to determine the IP of the target terminal device included in each computing force sharing request, and then may send each computing force sharing request to the corresponding target terminal device according to the IP of each target terminal device.
And step 103, receiving a calculation force sharing response returned by the target terminal equipment, wherein the calculation force sharing response corresponds to the calculation force sharing request.
The computing force sharing response may be a response generated by the target terminal device based on the computing force sharing request, that is, the computing force sharing response and the computing force sharing request are generally corresponding relations. In addition, the calculation force sharing response may be various, for example, the calculation force sharing may be "confirmation", or the calculation force sharing may be "no calculation force sharing required", etc., which is not limited in the present disclosure.
Step 104, the force sharing response is sent to the vehicle over a wireless connection.
It can be understood that after the sharing access device sends the calculation force sharing request to the target terminal device, the sharing access device can receive the calculation force sharing response returned by the target terminal device, and then can send the calculation force sharing response to the vehicle based on wireless connection with the vehicle, so that the calculation force resource sharing and transmission between the vehicle and the terminal device can be realized through the sharing access device, the utilization rate of the calculation force resource of the vehicle is improved, the occurrence of insufficient calculation force resource at the terminal device side is avoided, and the user experience is improved.
According to the embodiment of the disclosure, the sharing access device may receive, based on wireless connection, a calculation force sharing request sent by the vehicle when wireless connection is established with the vehicle, where the calculation force sharing request includes an IP of a target terminal device, then may send the calculation force sharing request to the target terminal device based on the IP of the target terminal device, then may receive a calculation force sharing response returned by the target terminal device, where the calculation force sharing response corresponds to the calculation force sharing request, and send the calculation force sharing response to the vehicle through wireless connection. Therefore, after the wireless connection is established between the sharing access device and the vehicle, the computing power sharing request sent by the vehicle can be received based on the wireless connection, the request can be sent to the target terminal device, and the computing power sharing response returned by the target terminal device can be returned to the vehicle, so that the transmission and sharing of computing power resources between the vehicle and the terminal device are realized, the utilization rate of the computing power resources of the vehicle is improved, the situation that the terminal device cannot meet the requirement of data processing is avoided, and the user experience is improved.
Fig. 2 is a flow chart of another method for sharing computing power resources according to an embodiment of the disclosure, where the method may be performed by a shared access device.
As shown in fig. 2, the method for sharing the computing power resource includes:
in step 201, in case it is determined that the vehicle is in a parked state, bluetooth initiation in the shared access device is controlled.
Optionally, bluetooth in the shared access device may be normally turned off to reduce energy consumption, and may be controlled to be started to perform bluetooth communication when it is determined that a vehicle is currently parked.
Optionally, under the condition that the distance between the vehicle and the first sensor is monitored to be unchanged within the preset time, the vehicle is determined to be in a parking state, wherein the first sensor is connected with the shared access device.
The preset duration may be a duration set in advance, for example, may be 1 minute, 3 minutes, 6 minutes, and the like, which is not limited in this disclosure.
The first sensor may be any sensor that may be used for ranging, and may be connected to the shared access device. After the first sensor acquires the vehicle information, the acquired vehicle information can be transmitted to the shared access equipment, the shared access equipment can determine the distance between the shared access equipment and the vehicle according to the data acquired by the first sensor, and when the distance between the shared access equipment and the vehicle is kept unchanged, the vehicle can be considered to be parked, namely the vehicle is in a parked state.
Alternatively, it may be determined that the vehicle is in a parked state if it is monitored that the vehicle image data collected by the second sensor is the same for a continuous period of time, where the second sensor is connected to the shared access device.
The second sensor may be any sensor that may be used to collect images, and may be connected to the shared access device and transmit the collected vehicle image data to the shared access device. The shared access device may analyze the vehicle image acquired by the second sensor, and if it is determined that the vehicle image data are the same in the continuous period, it may be considered that the vehicle has not moved and is already parked in the parking space.
It may be understood that the first sensor and the second sensor may be connected to the shared access device, and the positions or types of the first sensor and the second sensor are not limited in this disclosure.
Step 202, in response to obtaining the bluetooth information of the vehicle, matching the identification of the vehicle contained in the bluetooth information with the identification in the preset white list.
The bluetooth information may include information such as an identification of the vehicle. It will be appreciated that the pattern or presentation of the identification of the vehicle may be set in advance, such as vehicle a, vehicle 1, etc., and the present disclosure is not limited thereto.
In addition, the preset white list can contain a large number of identifiers of verified and legal vehicles.
Optionally, after bluetooth is started, the shared access device may search for surrounding bluetooth information, and if bluetooth information of the vehicle is obtained, the bluetooth information is analyzed to determine the identifier of the vehicle contained therein. And then, the identification of the vehicle can be matched with the identification in the preset white list based on the preset white list so as to verify the identification of the vehicle.
Step 203, in response to the preset white list including the identification of the vehicle, a wireless network connection instruction is sent to the vehicle, wherein the wireless network connection instruction includes a wireless network name and a password.
Wherein the shared access device may provide a wireless network such that vehicles or any other type of electronic device within range of the wireless network may connect to the wireless network.
It can be understood that if the identifier of the vehicle is in the preset white list, it can indicate that the identifier of the vehicle is a legal identifier, that is, the vehicle is a legal vehicle, and when the vehicle communicates with the vehicle, the vehicle is safer and more reliable, and at this time, a wireless network connection request can be sent to the vehicle.
Or under the condition that the preset white list does not contain the identification of the vehicle, the vehicle can be indicated to be not a legal charging pile, so that data transmission is not carried out with the vehicle, and the transmitted data is prevented from being lost or leaked.
For example, if the vehicle is identified as: the vehicle a may indicate that the identifier of the vehicle is a legal identifier in a preset white list, and the vehicle is a legal vehicle, so that data transmission between the shared access device and the vehicle is safe and reliable, and thus a wireless network connection instruction may be sent to the vehicle to establish a wireless connection with the vehicle, and the disclosure is not limited thereto.
Optionally, the shared access device may also control bluetooth in the shared access device to start first when it is determined that the vehicle is in a parking state, and match an identifier of the vehicle included in the bluetooth connection request with an identifier in a preset white list in response to receiving a bluetooth connection request sent by the vehicle, where the bluetooth connection request includes an identifier of the vehicle; and responding to the preset white list containing the identification of the vehicle, and sending a wireless network connection instruction to the vehicle, wherein the wireless network connection instruction contains a wireless network name and a password.
The wireless network connection request may be a bluetooth type request, or may also be an infrared type request, or may also be another type request, or the like, which is not limited in this disclosure.
In addition, the bluetooth connection request may include information such as an identification of the vehicle. It will be appreciated that the pattern or presentation of the identification of the vehicle may be set in advance, such as vehicle a, vehicle 1, etc., and the present disclosure is not limited thereto.
For example, after the bluetooth of the shared access device is turned on, if bluetooth in the vehicle searches, bluetooth information of the shared access device may be obtained, and then a bluetooth connection request may be sent to the shared access device. After receiving the bluetooth connection request sent by the vehicle, the shared access device can analyze the bluetooth connection request to determine the identifier of the vehicle contained in the bluetooth connection request, and then can traverse a preset white list based on the identifier of the vehicle to match the identifier of the vehicle with the identifier in the preset white list. When the preset white list includes the identification of the vehicle, a wireless network connection instruction or the like may be sent to the vehicle, which is not limited in the present disclosure.
Step 204, under the condition of establishing wireless connection with the vehicle, receiving a calculation force sharing request sent by the vehicle based on the wireless connection, wherein the calculation force sharing request comprises the IP of the target terminal equipment.
Step 205, based on the IP of the target terminal device, sending the computing power sharing request to the target terminal device.
And 206, receiving a computing force sharing response returned by the target terminal equipment.
It should be noted that, the specific content and implementation manner of the steps 204 to 206 may refer to the descriptions of other embodiments of the disclosure, and are not repeated herein.
Step 207, if the calculation force sharing response includes the data to be processed that needs to be processed by the vehicle, receiving a processing result sent by the vehicle, where the processing result is a result obtained by processing the data to be processed by the vehicle.
And step 208, returning the processing result to the target terminal equipment.
The data to be processed may be a calculation operation currently required to be performed, or a data processing operation currently to be performed, etc. For example, the data to be processed may be: when viewing using home Virtual Reality (VR) glasses, the present gesture and position information of the user, etc., are not limited in this disclosure.
It can be understood that after the shared access device sends the computing resource response containing the data to be processed to the vehicle, the processing result of the vehicle after processing the data to be processed can be received, and then the processing result can be sent to the corresponding target terminal device under the condition that the processing result sent by the vehicle is received, so that the sharing of the computing resource between the vehicle and the terminal device is realized, the utilization rate of the computing resource of the vehicle is improved, the occurrence of the situation of insufficient computing resource at the side of the terminal device is avoided, and the user experience is improved.
According to the method and the device for sharing the wireless network, bluetooth in the shared access device can be controlled to start under the condition that the vehicle is in a parking state, the identification of the vehicle is matched with the identification in the preset white list under the condition that Bluetooth information of the vehicle is acquired, a wireless network connection instruction can be sent to the vehicle under the condition that the identification of the vehicle is contained in the preset white list, a calculation force sharing request sent by the vehicle is received based on wireless connection under the condition that wireless connection is established with the vehicle, then the calculation force sharing request can be sent to the target terminal device based on IP of the target terminal device, then calculation force sharing response returned by the target terminal device can be received, if the calculation force sharing response contains data to be processed by the vehicle, then a processing result sent by the vehicle can be received, and the processing result is returned to the target terminal device. . Therefore, the shared access device can verify the legitimacy of the vehicle, after the verification is passed, the shared access device can establish wireless connection with the vehicle, then can receive the calculation sharing request sent by the vehicle based on the wireless connection, send the request to the target terminal device, and then can return the calculation sharing response returned by the target terminal device to the vehicle so as to enable the vehicle to process the calculation sharing response, thereby realizing the transmission and sharing of calculation resources between the vehicle and the terminal device, improving the utilization rate of the calculation resources of the vehicle, avoiding the situation that the terminal device cannot meet the data processing, and improving the user experience.
Fig. 3 is a flow chart of another method for sharing computing power resources, which may be performed by a vehicle, according to an embodiment of the present disclosure.
As shown in fig. 3, the method for sharing the computing power resource includes:
step 301, in the case of establishing a wireless connection with a shared access device, sending a computing power sharing request to the shared access device based on the wireless connection.
The computing force sharing request comprises the IP of the target terminal equipment, so that the sharing access equipment sends the computing force sharing request to the target terminal equipment based on the IP of the target terminal equipment.
The vehicle can establish wireless connection with the shared access device when parked in the three-dimensional parking garage provided with the shared access device or in the vicinity of the public charging pile provided with the shared access device. And then, based on the wireless connection, sending a calculation force sharing request to the sharing access device, so that the sharing access device sends the calculation force sharing request to the corresponding target terminal device based on the IP contained in the request to inform the target terminal device that the vehicle can share calculation force resources currently.
Step 302, receiving a computing force sharing response acquired from a target terminal device side and sent by a sharing access device based on wireless connection, wherein the computing force sharing response corresponds to the computing force sharing request.
The computing force sharing response may be a response generated by the target terminal device based on the computing force sharing request, that is, the computing force sharing response and the computing force sharing request are generally corresponding relations. In addition, the calculation force sharing response may be various, for example, the calculation force sharing may be "confirmation", or the calculation force sharing may be "no calculation force sharing required", etc., which is not limited in the present disclosure.
It will be appreciated that after the vehicle sends the power sharing request to the shared access device, the shared access device may send the power sharing request to the corresponding target terminal device, so that the target terminal device may generate a power sharing response corresponding to the power sharing request. The vehicle may then send the calculated force sharing response acquired from the target terminal device side to the vehicle. Therefore, after the vehicle receives the calculation power sharing response sent by the sharing access device, the vehicle can determine whether the target terminal device needs to perform calculation power sharing or not by analyzing the calculation power sharing response.
For example, if the received computing power sharing response is "do not need to share computing power", it may indicate that the target terminal device does not need to share computing power resources of the vehicle at present. Or, by analyzing the received computing power sharing response, the data to be processed contained in the response may be obtained, and at this time, it may be determined that the target terminal device needs to share the computing power resource of the vehicle, and so on. The present disclosure is not limited in this regard.
Optionally, in the case that the calculation force sharing response includes data to be processed, the vehicle may process the data to be processed to generate a processing result, and then may send the processing result to the sharing access device, so that the sharing access device returns the processing result to the target terminal device.
For example, after the vehicle analyzes the received computing power sharing response, it is determined that the data to be processed included in the received computing power sharing response is: when viewing by using home VR glasses, the user's current gesture and position information. Then the vehicle processes the data to be processed, and the generated processing result may be: and according to the current gesture and position information of the user, the picture to be displayed in the VR glasses. The vehicle may then send the processing result to the shared access device to cause the shared access device to return the processing result to the target terminal device.
It should be noted that the above examples are only illustrative, and are not intended to limit the data to be processed, the processing results, and the like in the embodiments of the present disclosure.
According to the method and the device for calculating the power sharing, a vehicle can firstly send a power sharing request to a sharing access device based on wireless connection under the condition that wireless connection is established with the sharing access device, wherein the power sharing request comprises the IP of a target terminal device, so that the sharing access device sends the power sharing request to the target terminal device based on the IP of the target terminal device, and then can receive a power sharing response acquired from the target terminal device side and sent by the sharing access device based on wireless connection, and the power sharing response corresponds to the power sharing request. Therefore, the vehicle can realize the transmission and sharing of the computing power resource between the vehicle and the terminal equipment through the shared access equipment, so that the situation of insufficient computing power resource of the terminal equipment is avoided, the utilization rate of the computing power resource of the vehicle is improved, and the user experience is improved.
Fig. 4 is a flow chart of another method for sharing computing power resources, which may be performed by a vehicle, according to an embodiment of the present disclosure.
As shown in fig. 4, the method for sharing the computing power resource includes:
in step 401, in response to obtaining bluetooth information of the shared access device, the identifier of the shared access device included in the bluetooth information is matched with the identifier included in the preset whitelist.
The bluetooth information may include an identifier of the shared access device, and a style or a presentation form of the identifier may be set in advance, for example, may be: device 1, shared access device XX, etc., which is not limiting to this disclosure.
The bluetooth in the vehicle may be in an on state to search for surrounding bluetooth information, and if the bluetooth information is obtained, by analyzing the bluetooth information, it is determined that the bluetooth information includes an identifier of the shared access device, then the identifier of the shared access device may be matched with an identifier included in a preset white list to verify the validity of the shared access device.
Step 402, sending a wireless network connection request to the shared access device under the condition that the preset white list contains the identification of the shared access device.
The preset white list may include a large number of validated and legal shared access device identifiers.
In addition, the wireless network connection request may be a bluetooth type request, or may be an infrared type request, or may be another type request, or the like, which is not limited in this disclosure. It can be understood that if the identifier of the shared access device is in the preset white list, it can indicate that the identifier of the shared access device is a legal identifier, that is, the shared access device is a legal device, and the vehicle is safer and more reliable when communicating with the shared access device, and at this time, the vehicle can send a wireless network connection request to the shared access device.
Or, in the case that the preset white list does not include the identifier of the shared access device, it may indicate that the shared access device is not a legal device, so that the vehicle may not perform data transmission with the shared access device, so as to avoid loss or leakage of the transmitted data.
For example, if the identity of the shared access device is: the device 1 may indicate that the identifier of the shared access device is a legal identifier in a preset white list, and the shared access device is a legal device, so that data transmission between the vehicle and the shared access device is safe and reliable, and thus a wireless network connection request may be sent to the shared access device to establish a wireless connection with the shared access device, and the disclosure is not limited thereto.
Step 403, receiving a wireless network connection instruction sent by the shared access device, so as to establish wireless connection with the shared access device, where the wireless network connection instruction includes a wireless network name and a password.
It can be understood that after the vehicle receives the wireless network connection instruction sent by the shared access device, the vehicle can determine the wireless network name and the password contained in the wireless network connection instruction by analyzing the wireless network connection instruction, and then the vehicle can be connected to the wireless network based on the wireless network name and the password, so that wireless connection is established between the vehicle and the shared access device.
Step 404, in the case of establishing a wireless connection with the shared access device, sending a computing power sharing request to the shared access device based on the wireless connection.
The computing force sharing request comprises the IP of the target terminal equipment, so that the sharing access equipment sends the computing force sharing request to the target terminal equipment based on the IP of the target terminal equipment.
Step 405, receiving a computing power sharing response acquired by the sharing access device from the target terminal device side based on the wireless connection, where the computing power sharing response corresponds to the computing power sharing request.
And step 406, processing the data to be processed to generate a processing result when the data to be processed is contained in the power sharing response.
Step 407, sending the processing result to the shared access device, so that the shared access device returns the processing result to the target terminal device.
It should be noted that, the specific content and implementation manner of the steps 404 to 407 may refer to the descriptions of other embodiments of the disclosure, and are not repeated herein.
According to the method, a vehicle can be used for matching the identification of the shared access equipment contained in the Bluetooth information with the identification contained in a preset white list in response to acquiring the Bluetooth information of the shared access equipment, a wireless network connection request can be sent to the shared access equipment under the condition that the identification of the shared access equipment is contained in the preset white list, a wireless network connection instruction sent by the shared access equipment can be received to establish wireless connection with the shared access equipment, the wireless network connection instruction contains a wireless network name and a password, under the condition that the wireless connection is established with the shared access equipment, the calculation force sharing request is sent to the shared access equipment based on the wireless connection, the calculation force sharing request contains the IP of the target terminal equipment, so that the shared access equipment can send the calculation force sharing request to the target terminal equipment based on the IP of the target terminal equipment, then a calculation force sharing response acquired by the shared access equipment from the target terminal equipment can be received based on the wireless connection, the calculation force sharing response corresponds to the calculation force sharing request, the data to be processed under the condition that the calculation force sharing response contains the data to be processed can be processed, and a processing result is sent to the shared access equipment to the target access equipment, and a processing result is returned to the target access equipment. Therefore, the vehicle can verify the validity of the shared access equipment, after the verification is passed, the vehicle can establish wireless network connection with the shared access equipment, then can transmit an account sharing request through the shared access equipment based on the wireless network connection, receive an account sharing response returned by the shared access equipment, process data to be processed contained in the response, and transmit a processing result to the shared access equipment, so that the shared access equipment transmits the processing result to the target terminal equipment, and therefore, the account resources of the vehicle can be shared to the terminal equipment through the shared access equipment, thereby not only improving the utilization rate of the account resources of the vehicle, but also avoiding the situation that the terminal equipment cannot meet the data processing, and improving the user experience.
Fig. 5 is a flowchart of another method for sharing computing power resources according to an embodiment of the disclosure, where the method may be performed by a terminal device.
As shown in fig. 5, the method for sharing the computing power resource includes:
in step 501, a computing power sharing request sent by a sharing access device is received, where the computing power sharing request includes a vehicle IP, and the computing power sharing request is generated by the vehicle.
After receiving the calculation force sharing request sent by the sharing access device, the terminal device analyzes the calculation force sharing request to determine the vehicle IP contained in the calculation force sharing request, and can know that the current calculation force resources of the vehicle are sufficient, and the calculation force resources can be shared currently.
Step 502, in response to the computing force sharing request, generating a computing force sharing response according to the attribute information of the current data to be processed.
The calculation force sharing response may be various, for example, the calculation force sharing may be "confirmation", or the calculation force sharing may be "no calculation force sharing", which is not limited in the disclosure.
In addition, the attribute information may be various, for example, a data type of the data to be processed, an amount of computational power resources of the data to be processed, and the like, which is not limited in the present disclosure.
Optionally, the terminal device may determine the type of the current data to be processed first, and then may generate the computing force sharing response when the type of the data to be processed is a preset type, where the computing force sharing response includes the data to be processed.
The preset type can be a data type which is preset in advance and can be processed only by means of the computing power resource of the vehicle machine; which may be one kind, or may be plural kinds, etc., and the present disclosure is not limited thereto.
For example, if the preset type is a "high latency" type, the user may watch the movie using the VR device, and the frame display data may be: a high latency type; the sound data may be: low latency types. If the terminal device determines that the data to be processed is currently "picture display", then a computing power sharing response containing the data to be processed can be generated at this time. Alternatively, if the terminal device determines that the data to be processed currently is "sound data", which is not the preset type of data, a calculation force sharing response may be generated that does not include the data to be processed, for example, may be "no calculation force sharing is required", or the like.
It should be noted that the foregoing examples are only illustrative, and are not intended to be limiting of the preset types, the types of data currently to be processed, the calculation force sharing responses, and the like in the embodiments of the present disclosure.
Optionally, the terminal device may determine the target computing power resource amount required by the data to be processed at present, and then generate a computing power sharing response when the target computing power resource amount is greater than the currently available computing power resource amount in the terminal device, where the computing power sharing response includes the data to be processed.
When the terminal device monitors the current data to be processed, the terminal device can firstly determine the currently used computing power resource quantity, then remove the used computing power resource quantity from the total computing power resource quantity, and the remaining computing power resource quantity is the currently available computing power resource quantity.
In addition, after determining the target computing power resource amount required by the current data to be processed, the terminal device may compare the target computing power resource amount with the current available computing power resource amount, and then may generate a corresponding computing power sharing response according to the comparison result.
For example, if the amount of the computing power resources to be processed corresponds to the target computing power resource amount of 2 gigas, the current available computing power resource amount of the terminal device is 1.6 gigas, and the target computing power resource amount is greater than the current available computing power resource amount, it may be indicated that the terminal device does not have enough computing power resource amount currently to process the current data to be processed, and at this time, a computing power sharing response including the data to be processed may be generated, so that the vehicle may process the data, thereby sharing the computing power resources of the vehicle.
Or if the target computing power resource amount required by the data to be processed is 1.9 giga, the current available computing power resource amount of the terminal equipment is 3 giga, which is smaller than the current available computing power resource amount, the terminal equipment can indicate that the terminal equipment currently has enough computing power resource amount to process the data to be processed, at the moment, the terminal equipment can process the data by itself without sharing the computing power resource of the vehicle, and at the moment, the generated computing power resource does not contain the data to be processed.
It should be noted that the foregoing examples are only illustrative, and are not intended to be limiting of the preset types, the types of data currently to be processed, the calculation force sharing responses, and the like in the embodiments of the present disclosure.
Step 503, sending the computing power sharing response to the shared access device, so that the shared access device sends the computing power sharing response to the vehicle.
The vehicle IP is contained in the calculation force sharing request received by the terminal equipment, so that the generated calculation force sharing response can also contain the vehicle IP, and the sharing access equipment can send the received calculation force sharing response of the terminal equipment to the corresponding vehicle based on the vehicle IP, thereby ensuring the reliability and the safety of data transmission and avoiding data leakage.
It may be appreciated that after the terminal device generates the power sharing response, the power sharing response may be sent to the shared access device, and then the shared access device may send the power sharing response to the vehicle after receiving the power sharing response, and the vehicle may determine whether power sharing is required by parsing the power sharing response. For example, the computing power sharing response includes data to be processed, the vehicle can process the data to be processed, and then the generated processing result can be sent to the sharing access device, so that the sharing access device can send the processing result received by the sharing access device to the terminal device, and after receiving the processing result, the terminal device can display or run the processing result, so that the computing power resource of the vehicle is shared in the household terminal device.
It should be noted that, the method for sharing the computing power resource provided by the present disclosure may be applicable to any type of vehicle, and may also be applicable to any scenario including a vehicle.
It will be appreciated that the shared access device may be located in any location of the stereo garage that does not interfere with or shield the signal. For example, as shown in fig. 5A, the shared access device may be disposed on top of a stereo garage, which may establish a wireless connection with a vehicle in the stereo garage. The sharing access device may send the calculation force sharing request sent by the vehicle to the cell router, and the cell router sends the calculation force sharing request to the internet, and then sends the calculation force sharing request to the home router, and the home router broadcasts the calculation force sharing request to the terminal device.
Alternatively, the shared access device may be located in any location that can cover a common charging stake, which may be one or more. For example, in the schematic diagram shown in fig. 5B, the shared access device may be connected to a campus router through an optical fiber, the campus router may communicate with the internet, the internet may communicate with a home router, and the home router may communicate with a terminal device.
The sharing of the computational resources provided by the present disclosure is briefly described below with the signal links shown in fig. 5C.
As can be seen from fig. 5C, a computing center may be present in the vehicle, which may process the received data to be processed, after which the processing result may be sent to a switch (switch) through a peripheral interface of the computing center. The peripheral interface may be any high-speed bus interface, for example, eth, pcie, nvlink, and these bus interfaces may be used as input and output data interfaces, so that communication with the bus interface may implement power sharing. The exchanger can convert the received processing result sent by the computing center into Ethernet data, and the Ethernet data is transmitted to the next stage through the Ethernet bus of the next stage. The next stage of the switch is a wireless network (wifi) module, which may be used to communicate with the wireless network module of the shared access device. The next level of wireless network module is a bluetooth communication module (bluetooth low energy, BLE) which can be used to communicate with the bluetooth communication module of the shared access device.
In addition, a Bluetooth communication module can be arranged in the shared access equipment, and Bluetooth can be controlled to be started under the condition that the vehicle is driven in is determined; the wireless network module of the shared access equipment is used for carrying out data transmission with the wireless network module in the vehicle, and the sharing of the computing power resources is started. The shared access device can then be connected to the router via an optical fiber, and then access the home router of the user via the internet.
In addition, after receiving the processing result, the home router can broadcast the signal so that the home terminal equipment can acquire the processing result, thereby realizing the sharing of the computing power resources of the vehicle to the home. When the household terminal equipment has a calculation force requirement, the household terminal equipment can send a calculation force sharing response to be transmitted to the vehicle through the channel.
For example, the shared access device may control bluetooth and wireless network to start after determining that a vehicle enters the stereo garage, and then may verify the validity of the vehicle by bluetooth, and after the vehicle passes the verification, may start its own wireless network, and send a wireless network name and password to the vehicle through bluetooth communication, and the vehicle may connect to the wireless network based on the wireless network name and password. The sharing access device can transmit the data received through the wireless network to the home router in the home of the user through the Internet, and the home router broadcasts the received processing result, namely, the computing power is released to the device with the computing power requirement, so that the computing power of the vehicle is shared into the home.
Optionally, corresponding APP can be preset in the terminal device and the vehicle to establish a tunnel between the terminal device and the vehicle in the network, thereby ensuring the security and reliability of data transmission.
It should be noted that the above examples are only illustrative, and should not be taken as limiting the process of computing resource sharing in the embodiments of the present disclosure.
According to the embodiment of the disclosure, the terminal device may first receive a calculation force sharing request sent by the sharing access device, where the calculation force sharing request includes a vehicle IP, the calculation force sharing request is generated by the vehicle, and then, in response to the calculation force sharing request, a calculation force sharing response may be generated according to attribute information of current data to be processed, and the calculation force sharing response is sent to the sharing access device, so that the sharing access device sends the calculation force sharing response to the vehicle. Therefore, after receiving the calculation force sharing request, the terminal equipment can generate calculation force sharing response according to the data to be processed currently, and return the calculation force sharing response to the vehicle through the sharing access equipment, so that the vehicle can share calculation force resources of the vehicle to the terminal equipment when knowing that the terminal equipment has calculation force requirements, transmission and sharing of the calculation force resources between the vehicle and the terminal equipment are realized, the utilization rate of the calculation force resources of the vehicle is improved, the situation that the terminal equipment cannot meet data processing is avoided, and user experience is improved.
In order to implement the above embodiments, the embodiments of the present disclosure further provide a schematic structural diagram of a device for sharing computing resources. Fig. 6 is a schematic structural diagram of a device for sharing computing power resources according to an embodiment of the disclosure.
As shown in fig. 6, the apparatus 600 for sharing computing power resources is configured on a shared access device side, and includes: the first receiving module 610, the first transmitting module 620, the second receiving module 630, and the second transmitting module 640.
The first receiving module 610 is configured to receive, based on a wireless connection, a computing power sharing request sent by a vehicle when the wireless connection is established with the vehicle, where the computing power sharing request includes an internet protocol address IP of a target terminal device.
A first sending module 620, configured to send the computing power sharing request to the target terminal device based on the IP of the target terminal device.
And a second receiving module 630, configured to receive a computing force sharing response returned by the target terminal device, where the computing force sharing response corresponds to the computing force sharing request.
A second transmitting module 640 for transmitting the force sharing response to the vehicle over the wireless connection.
Optionally, if the computing power sharing response includes data to be processed that needs to be processed by the vehicle, the second sending module 640 is further configured to:
receiving a processing result sent by the vehicle, wherein the processing result is obtained by processing the data to be processed by the vehicle;
and returning the processing result to the target terminal equipment.
The first control unit is used for controlling Bluetooth starting in the shared access equipment under the condition that the vehicle is determined to be in a parking state;
the first matching unit is used for responding to the acquired Bluetooth information of the vehicle and matching the identification of the vehicle contained in the Bluetooth information with the identification in a preset white list;
the first sending unit is used for responding to the preset white list and comprising the identification of the vehicle and sending a wireless network connection instruction to the vehicle, wherein the wireless network connection instruction comprises a wireless network name and a password.
Optionally, the first sending module 620 includes:
the second control unit is used for controlling Bluetooth start in the shared access equipment under the condition that the vehicle is determined to be in a parking state;
The second matching unit is used for responding to a Bluetooth connection request sent by the vehicle, and matching the identification of the vehicle contained in the Bluetooth connection request with the identification in a preset white list, wherein the Bluetooth connection request contains the identification of the vehicle;
and the second sending unit is used for responding to the preset white list and comprising the identification of the vehicle and sending a wireless network connection instruction to the vehicle, wherein the wireless network connection instruction comprises a wireless network name and a password.
Optionally, the first determining unit is specifically configured to:
under the condition that the distance between the vehicle and the first sensor is monitored to be unchanged within a preset duration, determining that the vehicle is in a parking state, wherein the first sensor is connected with the shared access equipment; and/or the number of the groups of groups,
and under the condition that the same vehicle image data is detected to be acquired by a second sensor in a continuous period, determining that the vehicle is in a parking state, wherein the second sensor is connected with the shared access device.
Optionally, the shared access device is arranged in a stereo garage; or the shared access device is arranged in the public charging pile.
It should be noted that the explanation of the embodiment of the method for sharing the computing power resource is also applicable to the device for sharing the computing power resource in this embodiment, and thus will not be repeated here.
According to the device for sharing the computing power resources, the sharing access device can receive the computing power sharing request sent by the vehicle based on wireless connection under the condition that wireless connection is established with the vehicle, wherein the computing power sharing request comprises the IP of the target terminal device, the computing power sharing request can be sent to the target terminal device based on the IP of the target terminal device, the computing power sharing response returned by the target terminal device can be received, the computing power sharing response corresponds to the computing power sharing request, and the computing power sharing response is sent to the vehicle through wireless connection. Therefore, after the wireless connection is established between the sharing access device and the vehicle, the computing power sharing request sent by the vehicle can be received based on the wireless connection, the request can be sent to the target terminal device, and the computing power sharing response returned by the target terminal device can be returned to the vehicle, so that the transmission and sharing of computing power resources between the vehicle and the terminal device are realized, the utilization rate of the computing power resources of the vehicle is improved, the situation that the terminal device cannot meet the requirement of data processing is avoided, and the user experience is improved.
Fig. 7 is a schematic structural diagram of a device for sharing computing power resources according to an embodiment of the disclosure.
As shown in fig. 7, the apparatus 700 for sharing the computing power resource is disposed on the vehicle side, and includes: a transmitting module 710 and a receiving module 720.
The sending module 710 is configured to send a power-calculating sharing request to a shared access device based on a wireless connection when the wireless connection is established with the shared access device, where the power-calculating sharing request includes an IP of a target terminal device, so that the shared access device sends the power-calculating sharing request to the target terminal device based on the IP of the target terminal device.
And a receiving module 720, configured to receive, based on the wireless connection, a computing force sharing response sent by the sharing access device and acquired from the target terminal device side, where the computing force sharing response corresponds to the computing force sharing request.
Optionally, if the computing power sharing response includes data to be processed, the sending module 710 is further configured to:
processing the data to be processed to generate a processing result;
and sending the processing result to the shared access equipment so that the shared access equipment returns the processing result to the target terminal equipment.
Optionally, the receiving module 720 is further configured to:
responding to the acquired Bluetooth information of the shared access equipment, and matching the identification of the shared access equipment contained in the Bluetooth information with the identification contained in a preset white list;
transmitting a wireless network connection request to the shared access equipment under the condition that the preset white list contains the identification of the shared access equipment;
and receiving a wireless network connection instruction sent by the shared access equipment to establish wireless connection with the shared access equipment, wherein the wireless network connection instruction comprises a wireless network name and a password.
It should be noted that the explanation of the embodiment of the method for sharing the computing power resource is also applicable to the device for sharing the computing power resource in this embodiment, and thus will not be repeated here.
According to the device for sharing the computing power resources, the vehicle can firstly send the computing power sharing request to the sharing access equipment based on wireless connection under the condition that wireless connection is established with the sharing access equipment, wherein the computing power sharing request comprises the IP of the target terminal equipment, so that the sharing access equipment sends the computing power sharing request to the target terminal equipment based on the IP of the target terminal equipment, and then can receive the computing power sharing response obtained from the target terminal equipment side and sent by the sharing access equipment based on wireless connection, and the computing power sharing response corresponds to the computing power sharing request. Therefore, the vehicle can realize the transmission and sharing of the computing power resource between the vehicle and the terminal equipment through the shared access equipment, so that the situation of insufficient computing power resource of the terminal equipment is avoided, the utilization rate of the computing power resource of the vehicle is improved, and the user experience is improved.
Fig. 8 is a schematic structural diagram of a device for sharing computing power resources according to an embodiment of the disclosure.
As shown in fig. 8, the apparatus 800 for sharing the computing power resource is configured on the terminal device side, and includes: a receiving module 810, a generating module 820 and a transmitting module 830.
The receiving module 810 is configured to receive a computing force sharing request sent by the sharing access device, where the computing force sharing request includes a vehicle IP, and the computing force sharing request is generated by the vehicle.
And the generating module 820 is used for responding to the computing force sharing request and generating a computing force sharing response according to the attribute information of the data to be processed currently.
And a sending module 830, configured to send the computing power sharing response to the shared access device, so that the shared access device sends the computing power sharing response to the vehicle.
Optionally, the generating module 820 is specifically configured to:
determining the type of the current data to be processed;
and if the type of the data to be processed is a preset type, generating a calculation force sharing response, wherein the calculation force sharing response comprises the data to be processed.
Optionally, the generating module 820 is specifically configured to:
determining a target computing power resource amount required by the current data to be processed;
And if the target computing power resource quantity is larger than the currently available computing power resource quantity in the terminal equipment, generating a computing power sharing response, wherein the computing power sharing response comprises data to be processed.
It should be noted that the explanation of the embodiment of the method for sharing the computing power resource is also applicable to the device for sharing the computing power resource in this embodiment, and thus will not be repeated here.
According to the device for sharing the computing power resources, the terminal equipment can firstly receive the computing power sharing request sent by the sharing access equipment, wherein the computing power sharing request comprises the vehicle IP, the computing power sharing request is generated by the vehicle, then the computing power sharing response can be generated according to the attribute information of the current data to be processed in response to the computing power sharing request, and the computing power sharing response is sent to the sharing access equipment, so that the sharing access equipment sends the computing power sharing response to the vehicle. Therefore, after receiving the calculation force sharing request, the terminal equipment can generate calculation force sharing response according to the data to be processed currently, and return the calculation force sharing response to the vehicle through the sharing access equipment, so that the vehicle can share calculation force resources of the vehicle to the terminal equipment when knowing that the terminal equipment has calculation force requirements, transmission and sharing of the calculation force resources between the vehicle and the terminal equipment are realized, the utilization rate of the calculation force resources of the vehicle is improved, the situation that the terminal equipment cannot meet data processing is avoided, and user experience is improved.
To achieve the above embodiments, the present disclosure also proposes a computer program product which, when executed by an instruction processor in the computer program product, performs a method of sharing computing power resources as proposed by the foregoing embodiments of the present disclosure.
Fig. 9 illustrates a block diagram of an exemplary electronic device suitable for use in implementing embodiments of the present disclosure. The electronic device 12 shown in fig. 9 is merely an example and should not be construed as limiting the functionality and scope of use of the disclosed embodiments.
As shown in fig. 9, the electronic device 12 is in the form of a general purpose computing device. Components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include industry Standard architecture (Industry Standard Architecture; hereinafter ISA) bus, micro channel architecture (Micro Channel Architecture; hereinafter MAC) bus, enhanced ISA bus, video electronics standards Association (Video Electronics Standards Association; hereinafter VESA) local bus, and peripheral component interconnect (Peripheral Component Interconnection; hereinafter PCI) bus.
Electronic device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by electronic device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (Random Access Memory; hereinafter: RAM) 30 and/or cache memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 9, commonly referred to as a "hard disk drive").
Although not shown in fig. 9, a magnetic disk drive for reading from and writing to a removable nonvolatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable nonvolatile optical disk (e.g., a compact disk read only memory (Compact Disc Read Only Memory; hereinafter CD-ROM), digital versatile read only optical disk (Digital Video Disc Read Only Memory; hereinafter DVD-ROM), or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of the various embodiments of the disclosure.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods in the embodiments described in this disclosure.
The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the electronic device 12, and/or any devices (e.g., network card, modem, etc.) that enable the electronic device 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Also, the electronic device 12 may communicate with one or more networks, such as a local area network (Local Area Network; hereinafter: LAN), a wide area network (Wide Area Network; hereinafter: WAN) and/or a public network, such as the Internet, via the network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 over the bus 18. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 12, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications, such as implementing the sharing method of the computing power resources mentioned in the foregoing embodiment, by running programs stored in the system memory 28.
It should be noted that, the implementation process and the technical principle of the electronic device in this embodiment refer to the foregoing explanation of the method for sharing the computing power resource in the embodiment of the disclosure, and are not repeated herein.
In order to implement the above-described embodiments, the embodiments of the present disclosure also propose a non-transitory computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the method of sharing computing resources as described in the above-described embodiments.
To achieve the above embodiments, the disclosed embodiments also propose a computer program product comprising a computer program which, when executed by a processor, performs the steps of the method for sharing computing power resources according to the above embodiments.
In the description of this specification, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present disclosure, the meaning of "a plurality" is at least two, such as two, three, etc., unless explicitly specified otherwise.
Although embodiments of the present disclosure have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the present disclosure, and that variations, modifications, alternatives, and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the present disclosure.

Claims (17)

1. A method for sharing computing power resources, applied to a shared access device, the method comprising:
under the condition of establishing wireless connection with a vehicle, receiving a calculation force sharing request sent by the vehicle based on the wireless connection, wherein the calculation force sharing request comprises an internet protocol address IP of a target terminal device;
based on the IP of the target terminal equipment, sending the calculation force sharing request to the target terminal equipment;
receiving a calculation force sharing response returned by the target terminal equipment, wherein the calculation force sharing response corresponds to the calculation force sharing request;
the force sharing response is sent to the vehicle over the wireless connection.
2. The method of claim 1, further comprising, after said sending said force sharing response to said vehicle over said wireless connection, if said force sharing response includes data to be processed that needs to be processed by said vehicle:
Receiving a processing result sent by the vehicle, wherein the processing result is obtained by processing the data to be processed by the vehicle;
and returning the processing result to the target terminal equipment.
3. The method of claim 1, further comprising, prior to said receiving a computing force sharing request sent by the vehicle:
controlling bluetooth initiation in the shared access device if it is determined that the vehicle is in a parked state;
responding to the acquired Bluetooth information of the vehicle, and matching the identification of the vehicle contained in the Bluetooth information with the identification in a preset white list;
and responding to the preset white list and comprising the identification of the vehicle, and sending a wireless network connection instruction to the vehicle, wherein the wireless network connection instruction comprises a wireless network name and a password.
4. The method of claim 1, further comprising, prior to said receiving a computing force sharing request sent by the vehicle:
controlling bluetooth initiation in the shared access device if it is determined that the vehicle is in a parked state;
responding to a Bluetooth connection request sent by the vehicle, and matching the identification of the vehicle contained in the Bluetooth connection request with the identification in a preset white list, wherein the Bluetooth connection request contains the identification of the vehicle;
And responding to the preset white list and comprising the identification of the vehicle, and sending a wireless network connection instruction to the vehicle, wherein the wireless network connection instruction comprises a wireless network name and a password.
5. The method of claim 3 or 4, wherein the determining that the vehicle is in a parked state comprises:
under the condition that the distance between the vehicle and the first sensor is monitored to be unchanged within a preset duration, determining that the vehicle is in a parking state, wherein the first sensor is connected with the shared access equipment; and/or the number of the groups of groups,
and under the condition that the same vehicle image data is detected to be acquired by a second sensor in a continuous period, determining that the vehicle is in a parking state, wherein the second sensor is connected with the shared access device.
6. The method of any of claims 1-4, wherein the shared access device is provided in a stereo garage; or the shared access device is arranged in the public charging pile.
7. A method of sharing computing resources, applied to a vehicle, comprising:
under the condition that wireless connection is established with a sharing access device, sending an account sharing request to the sharing access device based on the wireless connection, wherein the account sharing request comprises the IP of a target terminal device, so that the sharing access device sends the account sharing request to the target terminal device based on the IP of the target terminal device;
And receiving a computing force sharing response acquired from the target terminal equipment side and sent by the sharing access equipment based on the wireless connection, wherein the computing force sharing response corresponds to the computing force sharing request.
8. The method of claim 7, wherein if the computing power sharing response includes data to be processed, after the receiving, based on the wireless connection, the computing power sharing response acquired by the shared access device from the target terminal device side, the method further comprises:
processing the data to be processed to generate a processing result;
and sending the processing result to the shared access equipment so that the shared access equipment returns the processing result to the target terminal equipment.
9. The method of claim 7, further comprising, prior to the sending a computing power sharing request to the shared access device based on the wireless connection:
responding to the acquired Bluetooth information of the shared access equipment, and matching the identification of the shared access equipment contained in the Bluetooth information with the identification contained in a preset white list;
transmitting a wireless network connection request to the shared access equipment under the condition that the preset white list contains the identification of the shared access equipment;
And receiving a wireless network connection instruction sent by the shared access equipment to establish wireless connection with the shared access equipment, wherein the wireless network connection instruction comprises a wireless network name and a password.
10. A method for sharing computing power resources, applied to a terminal device, the method comprising:
receiving a calculation force sharing request sent by sharing access equipment, wherein the calculation force sharing request comprises a vehicle IP (Internet protocol), and the calculation force sharing request is generated by a vehicle;
responding to the calculation force sharing request, and generating calculation force sharing response according to attribute information of the current data to be processed;
and sending the calculated force sharing response to the shared access device so that the shared access device sends the calculated force sharing response to the vehicle.
11. The method of claim 10, wherein generating a computing force sharing response based on attribute information of the current data to be processed comprises:
determining the type of the current data to be processed;
and if the type of the data to be processed is a preset type, generating a calculation force sharing response, wherein the calculation force sharing response comprises the data to be processed.
12. The method of claim 10, wherein the computing power sharing response is generated according to attribute information of the current data to be processed:
determining a target computing power resource amount required by the current data to be processed;
and if the target computing power resource quantity is larger than the currently available computing power resource quantity in the terminal equipment, generating a computing power sharing response, wherein the computing power sharing response comprises data to be processed.
13. A sharing apparatus of a computing power resource, configured on a shared access device side, the apparatus comprising:
the first receiving module is used for receiving a calculation power sharing request sent by a vehicle based on wireless connection under the condition that the wireless connection is established with the vehicle, wherein the calculation power sharing request comprises an internet protocol address IP of target terminal equipment;
the first sending module is used for sending the calculation force sharing request to the target terminal equipment based on the IP of the target terminal equipment;
the second receiving module is used for receiving a calculation force sharing response returned by the target terminal equipment, wherein the calculation force sharing response corresponds to the calculation force sharing request;
and the second sending module is used for sending the power sharing response to the vehicle through the wireless connection.
14. A sharing apparatus of a computing power resource, characterized by being disposed on a vehicle side, the apparatus comprising:
a sending module, configured to send a power-calculating sharing request to a shared access device based on a wireless connection when the wireless connection is established with the shared access device, where the power-calculating sharing request includes an IP of a target terminal device, so that the shared access device sends the power-calculating sharing request to the target terminal device based on the IP of the target terminal device;
and the receiving module is used for receiving the computing power sharing response acquired from the target terminal equipment side and sent by the sharing access equipment based on the wireless connection, wherein the computing power sharing response corresponds to the computing power sharing request.
15. A sharing apparatus of a computing power resource, configured on a terminal device side, the apparatus comprising:
the receiving module is used for receiving a calculation force sharing request sent by the sharing access equipment, wherein the calculation force sharing request comprises a vehicle IP, and the calculation force sharing request is generated by a vehicle;
the generation module is used for responding to the calculation force sharing request and generating calculation force sharing response according to the attribute information of the data to be processed currently;
And the sending module is used for sending the calculated force sharing response to the shared access equipment so that the shared access equipment sends the calculated force sharing response to the vehicle.
16. An electronic device comprising a processor and a memory;
wherein the processor runs a program corresponding to executable program code stored in the memory by reading the executable program code for implementing the method of sharing computing power resources according to any of claims 1-12.
17. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements a method of sharing computing power resources as claimed in any of claims 1-12.
CN202210817144.0A 2022-07-12 2022-07-12 Method and device for sharing computing power resources, electronic equipment and storage medium Pending CN117097794A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210817144.0A CN117097794A (en) 2022-07-12 2022-07-12 Method and device for sharing computing power resources, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210817144.0A CN117097794A (en) 2022-07-12 2022-07-12 Method and device for sharing computing power resources, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117097794A true CN117097794A (en) 2023-11-21

Family

ID=88781827

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210817144.0A Pending CN117097794A (en) 2022-07-12 2022-07-12 Method and device for sharing computing power resources, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117097794A (en)

Similar Documents

Publication Publication Date Title
CN107733839B (en) Data transmission method and system
CN111314452B (en) Shell access method, device, equipment and storage medium of cloud mobile phone
WO2019192343A1 (en) Vehicle diagnosis method, related device and system
US10212236B2 (en) Information transmitting method and apparatus in robot operating system
CN110519764B (en) Security verification method, system, computer device and medium of communication device
CN115002168A (en) Safety detection method for vehicle remote control and vehicle-mounted system
CN110855680B (en) Internet of things equipment docking method and device
CN113726526A (en) Method, device and system for acquiring and verifying face data
CN111737022A (en) Interface calling method, system, equipment and medium based on micro-service
CN112448956B (en) Authority processing method and device of short message verification code and computer equipment
EP3429158A1 (en) Secure communication method and apparatus for vehicle, vehicle multimedia system, and vehicle
CN113765712B (en) Server management method, device, electronic equipment and readable storage medium
CN111241523A (en) Authentication processing method, device, equipment and storage medium
CN106339623A (en) Login method and login device
CN117097794A (en) Method and device for sharing computing power resources, electronic equipment and storage medium
CN110808996B (en) Network authentication method and device, electronic equipment and storage medium
CN110826233B (en) Multi-user traffic simulation platform system
CN105873061A (en) Method and device for carrying out data sharing between software in terminal equipment
CN117440339A (en) Method and device for sharing computing power resources, electronic equipment and storage medium
CN115604862A (en) Video streaming transmission method and system
CN109450887B (en) Data transmission method, device and system
CN114666363A (en) Information transmission method and device, electronic equipment, storage medium and product
CN114389868A (en) Method, system and device for distributing cloud resources and storage medium
JP2015528260A (en) Method and device for providing communication connections for multiple candidate applications within a mobile device
CN113660460A (en) Camera data distribution method and system, computer storage medium and electronic equipment

Legal Events

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