Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The cloud space configuration method and device and the electronic equipment can be applied to a data sharing system. The data sharing system provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings.
Fig. 1 is a system architecture diagram of a data sharing system according to an embodiment of the present application. As shown in fig. 1, the data sharing system includes a cloud server, a first electronic device, and a second electronic device. The cloud server establishes a connection relationship with the first electronic device and the second electronic device respectively, and the connection relationship between the first electronic device and the second electronic device can be established or not according to specific requirements.
Specifically, the first electronic device sends a cloud space configuration request to the cloud server under the condition that the first input is received, and the cloud server responds to the cloud space configuration request, configures a target cloud space and establishes an association relationship between the target cloud space and the first electronic device; after the cloud server configures the target cloud space, sending indication information of the target cloud space to the first electronic device; under the condition that the second electronic device needs to access the target cloud space, the cloud space connection request can be sent to the cloud server through the first electronic device, or the cloud space connection request can be actively sent to the cloud server by the second electronic device according to the acquired indication information of the target cloud space, and the cloud server establishes the association relationship between the target cloud space and the second electronic device based on the connection request. In this way, the first electronic device and the second electronic device can perform data interaction through the target cloud space.
Based on the data sharing system, the cloud space configuration method and device and the electronic device provided by the embodiment of the application can realize data sharing between the two electronic devices through the cloud space under the condition that the same social application program is not installed between the two electronic devices.
The cloud space configuration method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Please refer to fig. 2, which is a flowchart illustrating a cloud space configuration method according to an embodiment of the present application, and is applied to a cloud server in the data sharing system. As shown in fig. 2, the cloud space configuration method includes the following steps:
step 201, receiving a cloud space configuration request sent by a first electronic device;
step 202, responding to the cloud space configuration request, configuring a target cloud space, and establishing an association relationship between the target cloud space and the first electronic device, wherein the target cloud space is used for data transmission with the electronic device with which the association relationship is established;
step 203, sending cloud space indication information to the first electronic device, where the cloud space indication information is used for indicating the target cloud space;
step 204, receiving a cloud space connection request sent by the first electronic device or the second electronic device, wherein the cloud space connection request is associated with the second electronic device and the cloud space indication information;
step 205, in response to the cloud space connection request, establishing an association relationship between the target cloud space and the second electronic device, so that the first electronic device and the second electronic device perform data mutual transmission through the target cloud space.
Based on the method, the cloud server configures the target cloud space according to the cloud space configuration request sent by the first electronic device, establishes the association relationship between the target cloud space and the first electronic device, and sends the indication information of the target cloud space to the first electronic device; and under the condition that the cloud server receives a cloud space connection request associated with the second electronic device and the cloud space indication information, the cloud server responds to the connection request and establishes an association relationship between the second electronic device and a target cloud space, so that data transmission between the first electronic device and the second electronic device is realized through the target cloud space. Therefore, by the cloud space configuration method, under the condition that the same social application program is not installed between the two electronic devices, data sharing can be achieved between the two electronic devices through the commonly connected cloud space, and application scenes of the data sharing are wider.
In step 201, the first electronic device may send a cloud space configuration request to the cloud server, and at this time, the cloud server receives the cloud space configuration request.
In this embodiment of the application, the cloud space configuration request may be any request for requesting the cloud server to configure the target cloud space, and the cloud space configuration request may be automatically sent to the cloud server by the first electronic device, for example, the cloud space configuration request may be sent to the cloud server by the first electronic device at regular time.
Alternatively, the cloud space configuration request may be a request sent by the first electronic device in response to a first input received from a user of the first electronic device.
The first input may be any input for instructing the first electronic device to initiate a cloud space configuration request, and may include at least one of a voice input, an air gesture input, a touch input, and the like, where the touch input may include an input such as a click, a slide, or a long press, and the touch input may also be a touch operation.
Illustratively, as shown in fig. 3, the first input may include an input indicating that "cloud sharing" is turned on at the click control 31 and an input indicating "connection creation" at the click control 32, and then, after receiving the click on the control 32, the first electronic device sends a cloud space configuration request to the cloud server.
In addition, the cloud space configuration request may carry information associated with the first electronic device, where the information associated with the first electronic device may include location information of the first electronic device, time when the first electronic device initiates the request, identity information of the first electronic device, and the like, so that the cloud server may allocate a corresponding cloud space as the target cloud space according to the location information of the first electronic device, the time when the first electronic device initiates the request, the identity information, and the like.
Of course, when the cloud space configuration request is a request sent by the first electronic device in response to the first input, the cloud space configuration request may also be an input carrying the first input, and the input content of the first input may include information associated with the configured target cloud space, specifically, the first input may include verification information, and the verification information may be used to verify the received connection request when the cloud server receives the connection request.
It should be noted that the verification information may be any information that can be used to verify the received connection request, and may be an electronic device type or the like. Furthermore, the verification information may include at least one of an effective duration and a maximum number of connected devices of the target cloud space, so that verification may be implemented through at least one of the effective duration and the maximum number of connected devices, and verification may be more flexible.
For example, as shown in fig. 4, the first input may be an input in a popup 41 popped up after clicking "create connection", and the input includes an operation of setting information such as a cloud data saving time period 42 (i.e., an effective time period) and maximum sharing person number information 43 (i.e., a maximum number of connected devices), and an operation of clicking a confirmation button.
In step 202, after the cloud server receives the cloud space configuration request, the cloud server configures a target cloud space in response to the cloud space configuration request, and establishes an association relationship between the target cloud space and the first electronic device, so that the target cloud space can perform data transmission with the first electronic device.
The establishing of the association relationship between the target cloud space and the first electronic device may be adding the identity information of the first electronic device to a white list associated with the target cloud space, or establishing a corresponding relationship between the identity information of the first electronic device and the identity identification information of the target cloud space.
In addition, the data may include files, audio, pictures or video, etc., and is not limited herein.
In step 203, after the cloud server configures the target cloud space, the cloud server sends cloud space indication information indicating the target cloud space to the first electronic device, so that the first electronic device has a cloud sharing function, that is, the first electronic device may transmit data to the cloud space indicated by the cloud space indication information (that is, the target cloud space).
The cloud space indication information of the target cloud space may optionally indicate information of the target cloud space. For example, the cloud space indication information of the target cloud space may be a cloud space address 51 as shown in fig. 5; alternatively, the cloud space indication information of the target cloud space may also include an identifier of the target cloud space, and the like.
In step 204, after the cloud server transmits the cloud space indication information, the first electronic device receives the cloud space indication information transmitted by the cloud server. And under the condition that the second electronic device needs to establish an association relation with the target cloud space, the first electronic device or the second electronic device may send a cloud space connection request to the cloud server.
It should be noted that the cloud space connection request is associated with the second electronic device and the target cloud space, and the cloud space connection request is used to indicate that an association relationship between the second electronic device and the target cloud space is established. Specifically, the cloud space connection request may be a request carrying identity information of the second electronic device and the target cloud space indication information.
In one embodiment, the cloud space connection request may be a request sent by the first electronic device to the cloud server.
Specifically, the first electronic device may obtain identity information of the second electronic device (may be manually notified by a user, or may be sent through a short message or an instant message, and the like), and send the cloud space connection request carrying the identity information of the second electronic device and the cloud space indication information to the cloud server.
Or, after the first electronic device receives the cloud space indication information sent by the cloud server, the following steps may be further performed: starting a wireless communication function associated with the cloud space indication information; receiving a communication connection request sent by the second electronic device through the wireless communication function, wherein the communication connection request is a request sent by the second electronic device after the cloud space indication information is confirmed; and responding to the communication connection request, and sending a cloud space connection request to the cloud server, wherein the cloud space connection request is associated with the second electronic equipment and the cloud space indication information.
The WIreless communication function may include at least one of a hotspot function, a bluetooth function, an infrared function, a WIreless Fidelity (WIFI) function, and the like.
Exemplarily, after the electronic device b (i.e., the second electronic device) turns on the cloud sharing switch shown in fig. 2, the electronic device b has a "shake-and-shake search hotspot" function, and if the electronic device b receives an operation of shaking the electronic device b by a user thereof, the electronic device b automatically searches for a nearby hotspot and searches for at least one hotspot, as shown in fig. 6, a display interface of the electronic device b displays search content 61 including hotspot information of the at least one hotspot. Assuming that the hotspot 2 is hotspot information of the electronic device a (i.e., the first electronic device) configured with the cloud space address 51, and the hotspot 2 is associated with the cloud space address 51, when the electronic device b receives an operation of selecting the hotspot 2 by a user thereof, the electronic device b may display a popup message 71 as shown in fig. 7, and if the electronic device b receives an operation of clicking a "confirm" control by the user thereof again, the electronic device b initiates a hotspot connection request (i.e., a communication connection request) to the electronic device a;
monitoring whether a hotspot connection request of other electronic equipment is received or not when the electronic equipment a receives the hotspot connection request, wherein the electronic equipment a can directly establish hotspot connection with the electronic equipment b when the hotspot connection request is received; alternatively, as shown in fig. 8, the electronic device a displays a pop-up message 81 to notify its user, and if the user of the electronic device a verifies the identity information of the electronic device b and selects the "confirm" button, the electronic device a establishes a hot-spot connection with the electronic device b. Then, the electronic device a sends a cloud space connection request containing the identity information of the electronic device b and the cloud space indication information to the cloud server.
In another embodiment, the cloud space connection request may be a request sent by the second electronic device to the cloud server, that is, the second electronic device acquires the cloud space indication information received by the first electronic device, and after acquiring the cloud space indication information, the second electronic device sends the cloud space connection request to the cloud server.
The second electronic device obtains the cloud space indication information of the first electronic device, and may be that the first electronic device sends the cloud space indication information of the target cloud space to the second electronic device.
Specifically, after receiving the cloud space indication information sent by the cloud server, the first electronic device may further perform: sending the cloud space indication information to a second electronic device to enable the second electronic device to send a cloud space connection request associated with the cloud space indication information to the cloud server in response to a received second input, wherein the second input is an input indicating the cloud space indication information by a user of the second electronic device.
The second input may be any input for instructing the second electronic device to send the cloud space connection request to the cloud server, and the second input indicates the cloud space indication information received by the second electronic device, and may be at least one of a voice input, an air gesture input, a touch input, and the like.
For example, in a case that the electronic device a and the electronic device b are in a communication friend relationship, as shown in fig. 9, after the electronic device a receives an operation of a user of the electronic device a to press a cloud space address 51 (i.e., cloud space indication information), the copy link control 91 is displayed, and after the operation of clicking the copy link control 91 is received, the copy link control 91 is sent to the electronic device b or a group including the electronic device b.
The electronic device b receives and displays the cloud space address 51 of the user, and if the electronic device b receives an operation that the user clicks the displayed cloud space address 51, at this time, the electronic device b pops up a popup message 101 as shown in fig. 10 to prompt whether to join cloud space sharing, that is, to establish an association relationship with the cloud space address 51 (for example, in the case where the transmitted data is a shot photo/video, it may be a prompt to perform photo/video sharing), and if the electronic device receives an operation that the user clicks a "confirm" control, the electronic device b sends a connection request (that is, a cloud space connection request) carrying the identity information and the cloud space address 51 to the cloud server.
Of course, the second electronic device may obtain the cloud space indication information of the first electronic device by inputting the second electronic device by a user of the second electronic device.
Illustratively, the user of the first electronic device informs the user of the second electronic device of the cloud space indication information by speaking, and the second electronic device inputs the cloud space indication information in the second electronic device after being informed of the cloud space indication information.
In step 205, after the cloud server receives the cloud space connection request, the cloud server establishes an association relationship between the target cloud space and the second electronic device in response to the cloud space connection request, so that in the case that the second electronic device establishes an association relationship with the target cloud space, the first electronic device and the second electronic device may perform data transmission with each other through the target cloud space without installing the same application program for transmitting data between the first electronic device and the second electronic device.
The establishing of the association relationship between the target cloud space and the second electronic device may be in the same manner as the establishing of the association relationship between the first electronic device and the target cloud space, and is not described herein again.
In addition, the cloud server responds to the cloud space connection request, establishes an association relationship between the target cloud space and the second electronic device, and may be that the cloud server directly associates the target cloud space with the second electronic device when receiving the cloud space connection request; or, the cloud server may verify the cloud space connection request, and establish an association relationship between the target cloud space and the second electronic device when the verification passes.
Specifically, the cloud space configuration request is: the first electronic equipment responds to a request sent by a first input of a user of the first electronic equipment, and the input content of the first input comprises verification information; the target cloud space is a cloud space configured with the verification information;
the establishing an association relationship between the target cloud space and the second electronic device in response to the cloud space connection request may include:
responding to the cloud space connection request, and verifying the cloud space connection request through the verification information of the target cloud space;
and under the condition that the cloud space connection request passes the verification, establishing an association relation between the target cloud space and the second electronic equipment.
Based on this, the cloud space connection request can be verified through verification information input by the user of the first electronic device, so that the security of data transmission can be ensured.
As can be seen from the foregoing, the verification information may include at least one of a valid duration of the target cloud space and a maximum number of connected devices.
The valid duration and the maximum number of connected devices may be set to corresponding values according to a specific scenario, which is not limited herein.
Illustratively, the valid duration in the verification information may be set to 2 days, and the maximum number of connected devices may be set to 20 persons. After the cloud server receives the cloud space connection request, firstly, checking whether a target cloud space corresponding to the cloud space indication information is within the effective duration and whether the number of connected persons in the target cloud space is more than or equal to 20 persons, and if the target cloud space does not meet at least one of the effective duration and the number of connected devices is 20, refusing to establish an association relationship between the target cloud space and the second electronic device; and if the target cloud space is within the effective duration and the number of the connected devices is less than 20, the cloud server establishes an association relationship between the target cloud space and the second electronic device, that is, the second electronic device may be added to a white list of the target cloud space.
In addition, if the target cloud space exceeds the effective duration, the data in the target cloud space and the association relationship between the target cloud space and each electronic device are automatically cleared.
Specifically, the check information may include the valid duration;
the method can further comprise the following steps:
and under the condition that the time length of the target cloud space after configuration reaches the effective time length, clearing the incidence relation between the target cloud space and each electronic device, and clearing the data in the target cloud space.
Based on this, under the condition that the time length of the target cloud space after configuration reaches all the effective time lengths, the incidence relation between the target cloud space and each electronic device is eliminated, all data in the target cloud space is eliminated, the storage resources are released in time, and resource waste caused by data information explosion can be avoided.
It should be noted that after the association relationship between the target cloud space and each electronic device is cleared and the data in the target cloud space is cleared, the cloud sharing switch of each electronic device may be selectively turned off, or the cloud sharing switch of the electronic device may be selectively turned on, and a new cloud space is reselected for connection.
In addition, after the association relationship between the target cloud space and the second electronic device is established, the first electronic device and the second electronic device perform data mutual transmission through the target cloud space, where the data are uploaded to the target cloud space by the first electronic device, and the second electronic device may obtain any data from the target cloud space.
Specifically, after the establishing of the association relationship between the target cloud space and the second electronic device, the method may further include:
under the condition that target data uploaded by the first electronic equipment are received, storing the target data in the target cloud space;
receiving a data request sent by the second electronic device, wherein the data request is used for requesting the target data;
transmitting the target data to the second electronic device in response to the data request.
Therefore, the first electronic device uploads the target data to the target cloud space, and the second electronic device can request to acquire the target data, so that data interaction between the first electronic device and the second electronic device can be achieved.
The receiving of the target data uploaded by the first electronic device and the storing of the target data in the target cloud space may be that, when the first electronic device establishes an association relationship with the target cloud space, the first electronic device directly uploads the target data to the target cloud space when generating the target data.
For example, as shown in fig. 11, in a case that the cloud identifier 111 is displayed in the shooting interface of the first electronic device, indicating that the electronic device is not disconnected from the shared connection, the first electronic device uploads the picture shot by the first electronic device to the target cloud space directly. Of course, in the case that the cloud identifier 112 is displayed in the shooting interface of the first electronic device, it indicates that the electronic device is disconnected from the shared connection, and the first electronic device does not upload the picture to the target cloud space when shooting the picture.
Or, the first electronic device may upload the target data, or the target data may be cached in the first electronic device in advance, and the first electronic device may select the target data according to an instruction of the user and upload the target data to the target cloud space.
In addition, the data request may be that the second electronic device is configured to request to acquire all data stored in the target cloud space; alternatively, the data request may be a request for acquiring all data stored in the target cloud space, and is not limited herein.
In an embodiment, before receiving the data request sent by the second electronic device, the method may further include:
receiving a data preview request sent by the second electronic device in response to a third input, wherein the third input is an input of a data preview control displayed by the second electronic device and indicated by a user, and the data preview control is associated with the target cloud space;
in response to the data preview request, sending the data stored in the target cloud space to the second electronic device so that the second electronic device displays the data stored in the target cloud space in a data preview interface of the second electronic device;
and the data request is used for requesting target data displayed in the data preview interface.
Based on this, before the second electronic device sends the data request to the cloud server, the data preview request may be sent to the cloud server, the data stored in the target cloud space is displayed in the preview interface of the second electronic device, and the data request may be sent based on the target data displayed in the preview interface.
The data preview control can be a preview entry which is set on the electronic device in advance and is associated with the target cloud space. For example, as shown in FIG. 12, the cloud album 122 may be a data preview control. When the cloud photo album is clicked, a popup window 121 pops up to prompt the input of a cloud space address to be accessed, and a data preview request can be sent to the cloud server after the input is successful.
In addition, the data preview request may include identity information of the second electronic device, and may also include address information of the target cloud space, after the cloud server passes the verification of the identity information of the second electronic device, the cloud server may issue data stored in the target cloud space to the second electronic device through the high-bandwidth 5G network and the edge cloud computing technology, and the second electronic device displays the data stored in the target cloud space in a preview interface thereof, where a display result may be as shown in fig. 13.
The data request may be a request for target data displayed on the preview interface, and the user may select a data transmission data request to be downloaded for data displayed on the preview interface. For example, as shown in fig. 13, the mark 131 may indicate data selected by the user to be downloaded.
In addition, the cloud server transmits the target data to the second electronic device according to the data request of the second electronic device, and the second electronic device may download the target data, but if the target data is downloaded through the data network, data traffic is consumed.
Specifically, the transmitting the target data to the second electronic device may include:
and transmitting the target data to the second electronic equipment under the condition that the second electronic equipment is determined to be in a preset data communication mode.
Therefore, under the condition that the second electronic equipment is in the preset data communication mode, the target data are transmitted to the second electronic equipment, and data traffic consumed by downloading the target data can be effectively saved.
The preset data communication mode can be a wireless network, under the condition that the wireless network does not exist, the connection between the second electronic device and the cloud server can be disconnected at any time, namely, the 'cloud sharing' switch is turned off, then, under the condition that the second electronic device is connected to the wireless network, the cloud sharing switch of the second electronic device is turned on to establish connection with the cloud end, at the moment, the cloud server can send the target data to the second electronic device, and the second electronic device downloads the target data.
It should be noted that the cloud space configuration method provided in the embodiment of the present application may also be applied to the first electronic device of the data sharing system. In the embodiment of the present application, a first electronic device is taken as an execution subject, and a cloud space configuration method provided in the embodiment of the present application is described.
Please refer to fig. 14, which is a flowchart illustrating a cloud space configuration method according to another embodiment of the present application, and is applied to a first electronic device in the data sharing system. As shown in fig. 14, the cloud space configuration method includes the following steps:
1401, sending a cloud space configuration request to a cloud server;
step 1402, receiving cloud space indication information sent by a cloud server, wherein the cloud space indication information is used for indicating a target cloud space, the target cloud space is a storage space configured by the cloud server in response to the cloud space configuration request, and the target cloud space is used for data transmission of the electronic device establishing an association relationship with the target cloud space;
and under the condition that the target cloud space and the second electronic equipment establish an association relationship, the first electronic equipment and the second electronic equipment perform data mutual transmission through the target cloud space.
Based on the method, the cloud server configures the target cloud space according to the cloud space configuration request sent by the first electronic device, establishes the association relationship between the target cloud space and the first electronic device, and sends the indication information of the target cloud space to the first electronic device; and under the condition that the cloud server receives a cloud space connection request associated with the second electronic device and the cloud space indication information, the cloud server responds to the connection request and establishes an association relationship between the second electronic device and a target cloud space, so that data transmission between the first electronic device and the second electronic device is realized through the target cloud space. Therefore, by the cloud space configuration method, under the condition that the same social application program is not installed between the two electronic devices, data sharing can be achieved between the two electronic devices through the commonly connected cloud space, and application scenes of the data sharing are wider.
Optionally, after the first electronic device receives the cloud space indication information sent by the cloud server, the method may further include:
starting a wireless communication function associated with the cloud space indication information;
receiving a communication connection request sent by the second electronic device through the wireless communication function, wherein the communication connection request is a request sent by the second electronic device after the cloud space indication information is confirmed;
and responding to the communication connection request, and sending a cloud space connection request to the cloud server, wherein the cloud space connection request is associated with the second electronic equipment and the cloud space indication information.
Based on this, by associating the wireless communication function with the cloud space indication information, in a case where the second electronic device transmits the communication connection request to the first electronic device through the wireless communication function, the first electronic device may transmit the cloud space connection request to associate the second electronic device with the target cloud space to the cloud server. Therefore, the two-way confirmation is added at the two ends of the first electronic device and the second electronic device, and the safety of shared data is guaranteed.
Optionally, after the first electronic device receives the cloud space indication information sent by the cloud server, the method may further include:
sending the cloud space indication information to a second electronic device to enable the second electronic device to send a cloud space connection request associated with the cloud space indication information to the cloud server in response to a received second input, wherein the second input is an input indicating the cloud space indication information by a user of the second electronic device.
Based on this, can send cloud space instruction information to second electronic equipment through first electronic equipment for second electronic equipment can initiatively send cloud space connection request to cloud server under the condition that receives its user's input of instructing cloud space instruction information, so, second electronic equipment can directly obtain cloud space instruction information, removes two-way check-up from, when guaranteeing data security, makes the request process of joining more convenient.
Optionally, after receiving the cloud space indication information sent by the cloud server, the method may further include:
displaying a cloud sharing option associated with the cloud space indication information in a shooting preview interface;
and when the cloud sharing option is in a selected state and a shooting input of a user of the first electronic device is received, shooting an image, and transmitting the shot image to the target cloud space, so that the second electronic device downloads the shot image from the target cloud space.
Based on this, under the condition that the cloud sharing option associated with the cloud space indication information is selected, that is, the first electronic device and the target cloud space are in an associated state, the shot image shot by the first electronic device in real time can be directly uploaded to the target cloud space. Therefore, a more convenient mode can be provided for the user to upload data to the target cloud space.
It should be noted that, when the cloud sharing option is in an unselected state and a received shooting input is received, the shot picture may not be uploaded to the target cloud space, and the shot image may be selectively uploaded to the target cloud space at a later stage according to specific requirements.
For example, as shown in fig. 11, on the premise that the cloud sharing switch is turned on (i.e., the cloud sharing option is in a selected state), the camera photographing page is turned on, a sharing icon appears at the top, and the selected sharing icon 111 indicates that the currently photographed photo is stored in the local album, and requests the cloud server to upload the photo to the cloud space; and when the cloud server is not selected, the cloud server is only stored locally, and the cloud server is not requested.
Optionally, the sending the cloud space configuration request to the cloud server may include:
in the case of receiving a first input of a user of the first electronic device, sending a cloud space configuration request to a cloud server in response to the first input, wherein input content of the first input comprises verification information.
Based on this, the cloud server can verify the cloud space connection request in the process of establishing the association relationship between the target cloud space and the second electronic device through the first input verification information of the user of the first electronic device, so that the security of data transmission is improved.
Optionally, the verification information includes at least one of a valid duration of the target cloud space and a maximum number of connected devices.
Based on this, the verification can be realized through at least one of the effective duration and the maximum connection number, so that the verification is more flexible.
It should be noted that, in the cloud space configuration method provided in the embodiment of the present application, the execution subject may be a cloud server, or a control module in the cloud server for executing the cloud space configuration method. In the embodiment of the present application, a cloud space configuration method performed by a cloud space configuration device is taken as an example, and the cloud space configuration device provided in the embodiment of the present application is described.
Referring to fig. 15, which is a schematic structural diagram of a cloud space configuration apparatus provided in an embodiment of the present application, and is applied to the cloud space configuration apparatus, as shown in fig. 15, the apparatus 1500 includes:
a first receiving module 1501, configured to receive a cloud space configuration request sent by a first information transceiver;
a configuration module 1502, configured to configure, in response to the cloud space configuration request, a target cloud space, and establish an association relationship between the target cloud space and the first information transceiver, where the target cloud space is used for data transmission with the information transceiver that establishes the association relationship therewith;
a sending module 1503, configured to send cloud space indication information to the first information transceiver, where the cloud space indication information is used to indicate the target cloud space;
a second receiving module 1504, configured to receive a cloud space connection request sent by the first information transceiver or the second information transceiver, where the cloud space connection request is associated with the second information transceiver and the cloud space indication information;
the association module 1505 is configured to, in response to the cloud space connection request, establish an association relationship between the target cloud space and the second information transceiver, so that the first information transceiver and the second information transceiver perform data transmission with each other through the target cloud space.
Based on this, the cloud space configuration device configures the target cloud space according to the cloud space configuration request sent by the first information transceiver device, establishes an association relationship between the target cloud space and the first information transceiver device, and sends indication information of the target cloud space to the first information transceiver device; and under the condition that the cloud space configuration device receives a cloud space connection request associated with the second information transceiver and the cloud space indication information, the cloud space configuration device responds to the connection request and establishes an association relationship between the second information transceiver and a target cloud space, so that mutual data transmission between the first information transceiver and the second information transceiver is realized through the target cloud space. Therefore, by the cloud space configuration method, under the condition that the same social application program is not installed between the two information receiving and transmitting devices, data sharing can be achieved between the two information receiving and transmitting devices through the commonly connected cloud space, and the application scene of data sharing is wider.
Optionally, the cloud space configuration request is: the first information transceiver responds to a request sent by a first input of a user of the first information transceiver, and the input content of the first input comprises verification information; the target cloud space is a cloud space configured with the verification information;
the association module 1505, includes:
the verification unit is used for responding to the cloud space connection request and verifying the cloud space connection request through the verification information of the target cloud space;
and the association unit is used for establishing the association relationship between the target cloud space and the second information transceiver under the condition that the verification of the cloud space connection request is passed.
Based on this, the cloud space connection request can be verified by the cloud space configuration device in the process of establishing the association relationship between the target cloud space and the second information transceiver through the first input verification information of the user of the first information transceiver, so that the security of data transmission is improved.
Optionally, the verification information includes at least one of a valid duration of the target cloud space and a maximum number of connected devices.
Based on this, the verification can be realized through at least one of the effective duration and the maximum number of the connected devices, so that the verification mode is flexible.
Optionally, the verification information includes an effective duration of the target cloud space;
the apparatus 1500, further comprising:
a clearing module, configured to clear an association relationship between the target cloud space and each information transceiver device and clear data in the target cloud space when a timing duration reaches the valid duration, where the timing duration is: a time period from a time of configuring the target cloud space to a system time of the cloud space configuration apparatus.
Based on this, when the timing duration reaches the effective duration, the association relationship between the target cloud space and each information transceiver is cleared, and all data in the target cloud space are cleared, so that leakage of data in the target cloud space and leakage of data of the information transceiver associated with the target cloud space can be avoided, and resource waste caused by data information explosion can also be avoided.
Optionally, the apparatus 1500 further includes:
the storage module is used for storing the target data in the target cloud space under the condition of receiving the target data uploaded by the first information transceiver;
a first receiving module, configured to receive a data request sent by the second information transceiver, where the data request is used to request the target data;
a transmission module, configured to transmit the target data to the second information transceiver device in response to the data request.
Therefore, the first information transceiver uploads the target data to the target cloud space, and the second information transceiver can request to acquire the target data, so that data interaction between the first information transceiver and the second information transceiver can be realized.
Optionally, the apparatus 1500 further includes:
a second receiving module, configured to receive a data preview request sent by the second information transceiver in response to a third input, where the third input is an input indicating, by a user, a data preview control displayed by the second information transceiver, and the data preview control is associated with the target cloud space;
the preview module is used for responding to the data preview request, sending the data stored in the target cloud space to the second information receiving and sending device so that the second information receiving and sending device can display the data stored in the target cloud space in a data preview interface of the second information receiving and sending device;
and the data request is used for requesting target data displayed in the data preview interface.
Based on this, before the second information transceiver sends the data request to the cloud space configuration device, the data preview request may be sent to the cloud space configuration device, the data stored in the target cloud space is displayed in the preview interface of the second information transceiver, and the data request may be sent based on the target data displayed in the preview interface.
Optionally, the transmission module is specifically configured to:
and transmitting the target data to the second information transceiver device when the second information transceiver device is determined to be in a preset data communication mode.
Therefore, under the condition that the second information transceiver is in the preset data communication mode, the target data is transmitted to the two information transceivers, and the data traffic consumed by downloading the target data can be effectively saved.
Referring to fig. 16, which is a schematic structural diagram of a cloud space configuration device according to an embodiment of the present application, applied to a first information transceiver device, as shown in fig. 16, the device 1600 includes:
a sending module 1601, configured to send a cloud space configuration request to a cloud space configuration apparatus;
a receiving module 1602, configured to receive cloud space indication information sent by the cloud space configuration apparatus, where the cloud space indication information is used to indicate a target cloud space, where the target cloud space is a storage space configured by the cloud space configuration apparatus in response to the cloud space configuration request, and the target cloud space is used for data transmission of an information transceiver apparatus that establishes an association relationship with the target cloud space;
and under the condition that the target cloud space and a second information transceiver establish an association relationship, the information transceiver and the second information transceiver perform data mutual transmission through the target cloud space.
Based on this, the cloud space configuration device configures the target cloud space according to the cloud space configuration request sent by the first information transceiver device, establishes an association relationship between the target cloud space and the first information transceiver device, and sends indication information of the target cloud space to the first information transceiver device; and under the condition that the cloud space configuration device receives a cloud space connection request associated with the second information transceiver and the cloud space indication information, the cloud space configuration device responds to the connection request and establishes an association relationship between the second information transceiver and a target cloud space, so that mutual data transmission between the first information transceiver and the second information transceiver is realized through the target cloud space. Therefore, by the cloud space configuration method, under the condition that the same social application program is not installed between the two information receiving and transmitting devices, data sharing can be achieved between the two information receiving and transmitting devices through the commonly connected cloud space, and the application scene of data sharing is wider.
Optionally, the apparatus 1600 further includes:
the starting module is used for starting a wireless communication function related to the cloud space indication information;
a communication connection request receiving module, configured to receive a communication connection request sent by the second information transceiver through the wireless communication function, where the communication connection request is a request sent by the second information transceiver after the cloud space indication information is confirmed;
a cloud space connection request sending module, configured to send a cloud space connection request to the cloud space configuration device in response to the communication connection request, where the cloud space connection request is associated with the second information transceiver and the cloud space indication information.
Based on this, by associating the wireless communication function with the cloud space indication information, in the case where the second information sending and receiving apparatus sends the communication connection request to the first information sending and receiving apparatus through the wireless communication function, the first information sending and receiving apparatus can send the cloud space connection request to the cloud space configuration apparatus, which associates the second information sending and receiving apparatus with the target cloud space. Therefore, the two-way confirmation is added at the two ends of the first information transmitting and receiving device and the second information transmitting and receiving device, and the safety of shared data is guaranteed.
Optionally, the apparatus 1600 further includes:
a cloud space indication information sending module, configured to send the cloud space indication information to a second information transceiver device, so that the second information transceiver device sends, to the cloud space configuration device, a cloud space connection request associated with the cloud space indication information in response to a received second input, where the second input indicates an input of the cloud space indication information for a user of the second information transceiver device.
Based on this, can send cloud space instruction information to second information transceiver through first information transceiver for under the condition that second information transceiver received its user instruction cloud space instruction information's input, can initiatively send cloud space connection request to cloud space configuration device, so, second information transceiver can directly acquire cloud space instruction information, remove two-way check-up from, when guaranteeing data security, make the request process of joining more convenient.
Optionally, the apparatus 1600 further includes:
the display module is used for displaying a cloud sharing option associated with the cloud space indication information in a shooting preview interface;
and the shot image uploading module is used for shooting an image and transmitting the shot image to the target cloud space under the condition that the cloud sharing option is in a selected state and the shooting input of the user of the first information transceiver is received, so that the second information transceiver downloads the shot image from the target cloud space.
Based on this, when the cloud sharing option associated with the cloud space indication information is selected, that is, the first information transceiver and the target cloud space are in an associated state, the captured image captured by the first information transceiver in real time can be directly uploaded to the target cloud space. Therefore, a more convenient mode can be provided for the user to upload data to the target cloud space.
Optionally, the cloud space connection request sending module is specifically configured to:
and under the condition that a first input of the user of the first information transceiver is received, responding to the first input, and sending a cloud space configuration request to a cloud space configuration device, wherein the input content of the first input comprises verification information.
Based on this, the cloud space connection request can be verified through the verification information, and the safety of data transmission can be guaranteed.
Optionally, the verification information includes at least one of an effective duration of the target cloud space and a maximum number of connected devices.
Based on this, the verification can be realized through at least one of the effective duration and the maximum number of the connected devices, so that the verification mode is flexible.
The cloud space configuration device and the information transceiver in the embodiment of the present application may be devices, or may be components, integrated circuits, or chips in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The cloud space configuration device and the information transceiver in the embodiment of the present application may be devices having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The cloud space configuration device provided in the embodiment of the present application can implement each process implemented by the method embodiments in fig. 1 to 13, and the information transceiver can implement each process implemented by the method embodiment in fig. 14, and for avoiding repetition, details are not described here again.
Optionally, as shown in fig. 17, an electronic device 1700 is further provided in an embodiment of the present application, and includes a processor 1701, a memory 1702, and a program or an instruction stored in the memory 1702 and executable on the processor 1701, where the program or the instruction is executed by the processor 1701 to implement the foregoing cloud space configuration method or the foregoing processes in the embodiment of the information transceiving method, and may achieve the same technical effect, and no further description is provided here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 18 is a schematic hardware structure diagram of an electronic device implementing an embodiment of the present application.
The electronic device 1800 includes, but is not limited to: radio frequency unit 1801, network module 1802, audio output unit 1803, input unit 1804, sensors 1805, display unit 1806, user input unit 1807, interface unit 1808, memory 1809, and processor 180. The electronic device 1800 may be the cloud server or the first electronic device in the method embodiments of fig. 1 to 14.
Those skilled in the art will appreciate that the electronic device 1800 may also include a power supply (e.g., a battery) for powering the various components, and that the power supply may be logically connected to the processor 1810 via a power management system to perform functions such as managing charging, discharging, and power consumption. The electronic device structure shown in fig. 18 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description thereof is omitted.
Wherein the electronic device 1800 is a cloud server;
a processor 1810 configured to:
receiving a cloud space configuration request sent by first electronic equipment;
responding to the cloud space configuration request, configuring a target cloud space, and establishing an association relationship between the target cloud space and the first electronic device, wherein the target cloud space is used for data transmission with the electronic device establishing the association relationship;
sending cloud space indication information to the first electronic device, wherein the cloud space indication information is used for indicating the target cloud space;
receiving a cloud space connection request sent by the first electronic device or the second electronic device, wherein the cloud space connection request is associated with the second electronic device and the cloud space indication information;
and responding to the cloud space connection request, and establishing an incidence relation between the target cloud space and the second electronic equipment so as to enable the first electronic equipment and the second electronic equipment to carry out data mutual transmission through the target cloud space.
Based on the method, the cloud server configures the target cloud space according to the cloud space configuration request sent by the first electronic device, establishes the association relationship between the target cloud space and the first electronic device, and sends the indication information of the target cloud space to the first electronic device; and under the condition that the cloud server receives a cloud space connection request associated with the second electronic device and the cloud space indication information, the cloud server responds to the connection request and establishes an association relationship between the second electronic device and a target cloud space, so that data transmission between the first electronic device and the second electronic device is realized through the target cloud space. Therefore, by the cloud space configuration method, under the condition that the same social application program is not installed between the two electronic devices, data sharing can be achieved between the two electronic devices through the commonly connected cloud space, and application scenes of the data sharing are wider.
Optionally, the cloud space configuration request is: the first electronic equipment responds to a request sent by a first input of a user of the first electronic equipment, and the input content of the first input comprises verification information; the target cloud space is a cloud space configured with the verification information;
processor 1810, further configured to:
responding to the cloud space connection request, and verifying the cloud space connection request through the verification information of the target cloud space;
and under the condition that the cloud space connection request passes the verification, establishing an association relation between the target cloud space and the second electronic equipment.
Based on this, the cloud server can verify the cloud space connection request in the process of establishing the association relationship between the target cloud space and the second electronic device through the first input verification information of the user of the first electronic device, so that the security of data transmission is improved.
Optionally, the verification information includes at least one of a valid duration of the target cloud space and a maximum number of connected devices.
Based on this, the verification can be realized through at least one of the effective duration and the maximum number of the connected devices, so that the verification mode is flexible.
Optionally, the verification information includes the valid duration;
processor 1810, further configured to:
and under the condition that the timing duration reaches the effective duration, clearing the association relation between the target cloud space and each electronic device, and clearing data in the target cloud space, wherein the timing duration is as follows: a time duration from a time of configuring the target cloud space to a system time of the cloud server.
Based on this, under the condition that the timing duration reaches the effective duration, the association relationship between the target cloud space and each electronic device is cleared, all data in the target cloud space are cleared, leakage of data in the target cloud space and leakage of data of the electronic devices associated with the target cloud space can be avoided, and resource waste caused by data information explosion can be avoided.
Optionally, the processor 1810 is further configured to:
under the condition that target data uploaded by the first electronic equipment are received, storing the target data in the target cloud space;
receiving a data request sent by the second electronic device, wherein the data request is used for requesting the target data;
transmitting the target data to the second electronic device in response to the data request.
Therefore, the first electronic device uploads the target data to the target cloud space, and the second electronic device can request to acquire the target data, so that data interaction between the first electronic device and the second electronic device can be achieved.
Optionally, the processor 1810 is further configured to:
receiving a data preview request sent by the second electronic device in response to a third input, wherein the third input is an input of a data preview control displayed by the second electronic device and indicated by a user, and the data preview control is associated with the target cloud space;
in response to the data preview request, sending the data stored in the target cloud space to the second electronic device so that the second electronic device displays the data stored in the target cloud space in a data preview interface of the second electronic device;
and the data request is used for requesting target data displayed in the data preview interface.
Based on this, before the second electronic device sends the data request to the cloud server, the data preview request may be sent to the cloud server, the data stored in the target cloud space is displayed in the preview interface of the second electronic device, and the data request may be sent based on the target data displayed in the preview interface.
Optionally, the processor 1810 is further configured to:
and transmitting the target data to the second electronic equipment under the condition that the second electronic equipment is determined to be in a preset data communication mode.
Therefore, under the condition that the second electronic equipment is in the preset data communication mode, the target data are transmitted to the second electronic equipment, and data traffic consumed by downloading the target data can be effectively saved.
Alternatively, the electronic device 1800 is a first electronic device;
a video unit 1801, configured to:
sending a cloud space configuration request to a cloud server;
receiving cloud space indication information sent by the cloud server, wherein the cloud space indication information is used for indicating a target cloud space, the target cloud space is a storage space configured by the cloud server in response to the cloud space configuration request, and the target cloud space is used for data transmission of electronic equipment establishing an association relationship with the target cloud space;
and under the condition that the target cloud space and second electronic equipment establish an association relationship, the first electronic equipment and the second electronic equipment perform data mutual transmission through the target cloud space.
Based on the method, the cloud server configures the target cloud space according to the cloud space configuration request sent by the first electronic device, establishes the association relationship between the target cloud space and the first electronic device, and sends the indication information of the target cloud space to the first electronic device; and under the condition that the cloud server receives a cloud space connection request associated with the second electronic device and the cloud space indication information, the cloud server responds to the connection request and establishes an association relationship between the second electronic device and a target cloud space, so that data transmission between the first electronic device and the second electronic device is realized through the target cloud space. Therefore, by the cloud space configuration method, under the condition that the same social application program is not installed between the two electronic devices, data sharing can be achieved between the two electronic devices through the commonly connected cloud space, and application scenes of the data sharing are wider.
Optionally, the processor 1810 is configured to:
starting a wireless communication function associated with the cloud space indication information;
a radio frequency unit 1810 configured to:
receiving a communication connection request sent by the second electronic device through the wireless communication function, wherein the communication connection request is a request sent by the second electronic device after the cloud space indication information is confirmed;
and responding to the communication connection request, and sending a cloud space connection request to the cloud server, wherein the cloud space connection request is associated with the second electronic equipment and the cloud space indication information.
Based on this, by associating the wireless communication function with the cloud space indication information, in a case where the second electronic device transmits the communication connection request to the first electronic device through the wireless communication function, the first electronic device may transmit the cloud space connection request to associate the second electronic device with the target cloud space to the cloud server. Therefore, the two-way confirmation is added at the two ends of the first electronic device and the second electronic device, and the safety of shared data is guaranteed.
Optionally, the radio frequency unit 1801 is further configured to:
sending the cloud space indication information to a second electronic device to enable the second electronic device to send a cloud space connection request associated with the cloud space indication information to the cloud server in response to a received second input, wherein the second input is an input indicating the cloud space indication information by a user of the second electronic device.
Based on this, can send cloud space instruction information to second electronic equipment through first electronic equipment for second electronic equipment can initiatively send cloud space connection request to cloud server under the condition that receives its user's input of instructing cloud space instruction information, so, second electronic equipment can directly obtain cloud space instruction information, removes two-way check-up from, when guaranteeing data security, makes the request process of joining more convenient.
Optionally, the display unit 1806 is configured to:
displaying a cloud sharing option associated with the cloud space indication information in a shooting preview interface;
a processor 1810 configured to:
and when the cloud sharing option is in a selected state and a shooting input of a user of the first electronic device is received, shooting an image, and transmitting the shot image to the target cloud space, so that the second electronic device downloads the shot image from the target cloud space.
Based on this, under the condition that the cloud sharing option associated with the cloud space indication information is selected, that is, the first electronic device and the target cloud space are in an associated state, the shot image shot by the first electronic device in real time can be directly uploaded to the target cloud space. Therefore, a more convenient mode can be provided for the user to upload data to the target cloud space.
Optionally, the radio frequency unit 1801 is further configured to:
in the case of receiving a first input of a user of the first electronic device, sending a cloud space configuration request to a cloud server in response to the first input, wherein input content of the first input comprises verification information.
Based on the cloud space connection request verification method, the cloud space connection request can be verified through verification information, and the safety of data transmission can be guaranteed
Optionally, the verification information includes at least one of a valid duration of the target cloud space and a maximum number of connected devices.
Based on this, the verification can be realized through at least one of the effective duration and the maximum number of the connected devices, so that the verification mode is flexible.
It should be understood that in the embodiment of the present application, the input Unit 1804 may include a Graphics Processing Unit (GPU) 18041 and a microphone 18042, and the Graphics Processing Unit 18041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1806 may include a display panel 18061, and the display panel 18061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1807 includes a touch panel 18071 and other input devices 18072. A touch panel 18071, also referred to as a touch screen. The touch panel 18071 may include two parts of a touch detection device and a touch controller. Other input devices 18072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1809 may be used to store software programs as well as various data, including but not limited to application programs and an operating system. Processor 1810 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 1810.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the process of the embodiment of the cloud space configuration method is implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the embodiment of the cloud space configuration method, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.