CN114640974B - Data migration method, device and storage medium - Google Patents
Data migration method, device and storage medium Download PDFInfo
- Publication number
- CN114640974B CN114640974B CN202210528399.5A CN202210528399A CN114640974B CN 114640974 B CN114640974 B CN 114640974B CN 202210528399 A CN202210528399 A CN 202210528399A CN 114640974 B CN114640974 B CN 114640974B
- Authority
- CN
- China
- Prior art keywords
- data migration
- electronic device
- mobile phone
- data
- electronic
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/70—Services for machine-to-machine communication [M2M] or machine type communication [MTC]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
- H04M1/72412—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/005—Discovery of network devices, e.g. terminals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/64—Details of telephonic subscriber devices file transfer between terminals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
- H04W48/10—Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Databases & Information Systems (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application provides a data migration method, data migration equipment and a storage medium. When the method searches for the surrounding second electronic equipment through the automatic discovery connection function, only the equipment discovery broadcast is sent, and the data migration request is not sent.
Description
Technical Field
The present application relates to the field of communications, and in particular, to a data migration method, device, and storage medium.
Background
With the continuous update iteration of the electronic equipment, the speed of replacing the electronic equipment by a user is faster and faster. In order to make users have a better experience of changing machines, various ways of migrating data in old electronic devices to new electronic devices are also developed.
However, in the current data migration method, the new electronic device cannot send a data migration request to a specific old electronic device, but send a data migration request to all electronic devices searched around, that is, it cannot implement a peer-to-peer data migration request, which causes that a user may be easily and illegally filled with junk data by other electronic devices searched around in the process of migrating data in the old electronic device to the new electronic device.
In addition, in the current manner that the data migration request cannot be sent point-to-point, when the new electronic device sends the bluetooth broadcast to search the accessory electronic device, the peripheral electronic devices all receive the broadcast and pop up a data migration request window, so that the peripheral electronic devices are affected, and the user experience is poor.
Disclosure of Invention
In order to solve the above technical problem, the present application provides a data migration method, device and storage medium, which aim to enable an electronic device to quickly discover another designated electronic device, thereby implementing secure peer-to-peer connection, simplifying a data migration procedure, and ensuring security of data migration.
In a first aspect, the present application provides a data migration method, which is applied to a first electronic device, where the first electronic device is installed with a data migration application providing a data migration function. The method comprises the following steps: when the data migration function is detected to be started, displaying a device type selection list of second electronic equipment providing backup data; when the selection operation of any equipment type in the equipment type selection list is detected, displaying a second electronic equipment search page according to the selected equipment type; calling a device discovery interface provided by a Bluetooth service, and sending a device discovery broadcast, wherein the device discovery broadcast comprises device information of the first electronic device; receiving response information made according to the device discovery broadcast, the response information including device information of the second electronic device that received the device discovery broadcast; displaying a second electronic equipment selection list on a second electronic equipment search page according to the equipment information; when the selection operation of any second electronic equipment in the second electronic equipment selection list is detected, sending a data migration request to the selected second electronic equipment, wherein the data migration request carries hotspot information of the first electronic equipment; and after connection with the selected second electronic equipment is established according to the hotspot information, receiving backup data sent by the selected second electronic equipment. Therefore, when the surrounding second electronic devices are searched through the automatic discovery connection function, only the device discovery broadcast is sent, and the data migration request is not sent.
According to a first aspect, displaying a second electronic device search page according to a selected device type includes: when the selected equipment type is a first equipment type, displaying a second electronic equipment search page, wherein the first equipment type is the same as that of the first electronic equipment; when the selected equipment type is a second equipment type, displaying a first prompt window, wherein the first prompt window is used for prompting that a data migration application is installed in second electronic equipment providing backup data and is provided with a page jump inlet jumping to a search page of the second electronic equipment, and the second equipment type is different from the equipment type of the first electronic equipment; and displaying the search page of the second electronic equipment when the selected operation of the page jump inlet is detected. Therefore, data migration among electronic devices of different device types is achieved, and therefore the method and the device are suitable for various use scenes and improve market competitiveness of products.
According to the first aspect or any one implementation manner of the first aspect, the first prompt window is further provided with a first download inlet, and the first download inlet provides an obtaining manner for obtaining an installation package of the data migration application. Therefore, the first downloading inlet used for providing the obtaining mode of obtaining the installation package of the data migration application is arranged, so that when the second electronic equipment does not install the data migration application, the first downloading inlet of the first electronic equipment can be directly operated, and the installation package of the data migration application can be quickly and accurately obtained to the second electronic equipment.
According to the first aspect, or any implementation manner of the first aspect above, before invoking a device discovery interface provided by a bluetooth service and sending a device discovery broadcast, the method further includes: detecting whether a Near Field Communication (NFC) function is supported or not; when the NFC function is supported, displaying a second prompt window, wherein the second prompt window is used for prompting that a data migration application is opened in second electronic equipment providing backup data, and the first electronic equipment and the second electronic equipment are in back-to-back collision; when touch operation with second electronic equipment for opening the data migration application is detected, sending a data migration request to the second electronic equipment for opening the data migration application, wherein the data migration request carries hotspot information of the first electronic equipment; after connection is established with second electronic equipment for opening the data migration application according to the hotspot information, receiving backup data sent by the second electronic equipment for opening the data migration application; and when the NFC function is not supported, executing the steps of calling a device discovery interface provided by the Bluetooth service and sending a device discovery broadcast. Therefore, when the first electronic device and the second electronic device both support the NFC function, the user is directly prompted to realize point-to-point connection of the first electronic device and the second electronic device by a back-to-back touch-touch mode, and convenience and rapidness are achieved.
According to the first aspect, or any one implementation manner of the first aspect, the second electronic device search page further includes a second download entry, and the second download entry provides an obtaining manner for obtaining the installation package of the data migration application. Therefore, the second downloading inlet used for providing the acquisition mode for acquiring the installation package of the data migration application is arranged in the search page of the second electronic device, so that the second downloading inlet can be directly operated when the second electronic device does not install the data migration application, and the installation package of the data migration application can be quickly and accurately acquired to the second electronic device. Meanwhile, a download portal (a first download portal or a second download portal) for providing an acquisition mode for acquiring the installation package of the data migration application is set on different pages, so that the installation package of the data migration application can be sent to the second electronic device at different stages.
According to the first aspect, or any implementation manner of the first aspect, a non-auto discovery connection entry is further provided in the second electronic device search page, where the non-auto discovery connection entry provides a manner of establishing a connection with the second electronic device of the data migration application. Therefore, when the second electronic device cannot be searched through the automatic discovery connection function, connection with the second electronic device can be established in other connection modes by triggering the non-automatic discovery connection inlet, and therefore the backup data of the second electronic device can be always sent to the first electronic device.
In a second aspect, the present application provides a data migration method applied to a second electronic device. The method comprises the following steps: when a data migration request sent by first electronic equipment is received, displaying a data migration request window, wherein the data migration request window is provided with a first entrance and a second entrance, the first entrance is used for rejecting the data migration request, and the second entrance is used for agreeing the data migration request; when the selected operation of the second entrance is detected, a data migration application providing a data migration function is invoked; establishing connection with the first electronic equipment according to the hotspot information of the first electronic equipment carried in the data migration request; and after the connection with the first electronic equipment is established, sending backup data to the first electronic equipment. Because only the second electronic device selected by the first electronic device receives the data migration request, the point-to-point connection between the first electronic device and the second electronic device is realized, the data migration request window cannot be popped up for the second electronic device which does not receive the data migration request, so that the normal use of other surrounding second electronic devices cannot be influenced, the illegal filling of junk data into the first electronic device by other surrounding second electronic devices cannot occur, and the safety of data migration is ensured.
According to a second aspect, prior to displaying the data migration request window, the method further comprises: detecting whether a data migration application is installed; when the data migration application is detected, executing a step of displaying a data migration request window; and when the data migration application is not detected, displaying a third prompt window, wherein the third prompt window is used for prompting that the data migration application is installed on the second electronic equipment. Therefore, before the data migration request window is displayed, whether the second electronic device is provided with the data migration application or not is determined, and therefore the data migration application can be invoked through the second entrance in the data migration request window under the condition that the second electronic device does not start the data migration application.
According to a second aspect, or any implementation manner of the first aspect above, the device type of the second electronic device is a first device type, and the first device type is the same as the device type of the first electronic device. For the first electronic device and the second electronic device with the same device type, the system integrated function services are the same, so that even if the second electronic device is not in an operation interface of the data migration application currently, the data migration application can be invoked when a data migration request is received, and point-to-point automatic connection is realized.
According to a second aspect or any one implementation manner of the first aspect, the device type of the second electronic device is a second device type, and the second device type is different from the device type of the first electronic device; before receiving the data migration request sent by the first electronic device, the method further includes: detecting whether a data migration function is started or not; displaying a waiting search page when the data migration function is detected to be started; displaying a data migration request window when receiving a data migration request sent by first electronic equipment under a waiting search page; when the selection operation of the second entrance is detected, connection with the first electronic equipment is established according to the hotspot information of the first electronic equipment carried in the data migration request; and after the connection with the first electronic equipment is established, sending backup data to the first electronic equipment. For a first electronic device and a second electronic device with different device types, a situation that function services integrated by systems of the first electronic device and the second electronic device are different may exist, and therefore when the device type of the first electronic device is different from the device type of the second electronic device, whether the second electronic device starts a data migration function is detected, and if the second electronic device is in an operation interface of a data migration application, even if the device types of the first electronic device and the second electronic device are different, the first electronic device and the second electronic device can achieve peer-to-peer connection.
In a third aspect, the present application provides an electronic device. The electronic device includes: a memory and a processor, the memory and the processor coupled; the memory stores program instructions that, when executed by the processor, cause the electronic device to perform the instructions of the first aspect or any possible implementation of the first aspect, or the instructions of the second aspect or any possible implementation of the second aspect.
Illustratively, an electronic device may be considered as a first electronic device in relation to the first aspect or any possible implementation manner of the first aspect when the electronic device executes instructions of the method in the first aspect or any possible implementation manner of the first aspect.
Illustratively, an electronic device may be considered as a second electronic device in relation to the second aspect or any possible implementation of the second aspect, when the electronic device executes instructions of a method in the second aspect or any possible implementation of the second aspect.
For example, in practical applications, the first electronic device may serve as the second electronic device to provide backup data, and the second electronic device may also serve as the first electronic device to receive the backup data.
In a fourth aspect, the present application provides a computer readable medium for storing a computer program comprising instructions for carrying out the method of the first aspect or any possible implementation of the first aspect, or for carrying out the method of the second aspect or any possible implementation of the second aspect.
In a fifth aspect, the present application provides a computer program comprising instructions for carrying out the method of the first aspect or any possible implementation of the first aspect, or instructions for carrying out the method of the second aspect or any possible implementation of the second aspect.
In a sixth aspect, the present application provides a chip comprising a processing circuit, a transceiver pin. Wherein the transceiver pin and the processing circuit are in communication with each other via an internal connection path, and the processing circuit performs the method of the first aspect or any one of the possible implementations of the first aspect, or performs the method of the second aspect or any one of the possible implementations of the second aspect, to control the receiving pin to receive signals, and to control the transmitting pin to transmit signals.
In a seventh aspect, the present application provides a data migration system, including the first electronic device and the second electronic device referred to above.
Drawings
FIG. 1 is a schematic diagram illustrating a scenario for automatically discovering surrounding electronic devices;
FIG. 2 is a schematic diagram illustrating page changes of a mobile phone for receiving data during data migration;
FIG. 3 is one of the exemplary page change diagrams for the handset transmitting data to the handset of FIG. 2;
figure 4 is a second schematic diagram illustrating a page change of the handset for transmitting data to the handset of figure 2;
FIG. 5 is a schematic diagram illustrating page changes of a handset for receiving data during another data migration;
FIG. 6 is a schematic diagram illustrating a page change of a handset transmitting data to the handset of FIG. 5;
FIG. 7 is a schematic diagram illustrating a page change of a handset receiving the handset transmit data of FIG. 6;
FIG. 8 is one of exemplary illustrative scenarios for yet another automatic discovery of surrounding electronic devices;
FIG. 9 is a second exemplary illustration of a further exemplary scenario for automatically discovering surrounding electronic devices;
FIG. 10 is a third exemplary illustration of a further exemplary scenario for automatically discovering surrounding electronic devices;
fig. 11 is a schematic diagram illustrating a hardware configuration of an electronic device;
FIG. 12 is a block diagram illustrating two electronic devices performing data migration;
fig. 13 is a schematic diagram illustrating an interaction flow between a data receiving end and a data sending end in a data migration method;
FIG. 14 is one of schematic diagrams illustrating a page operation of a data receiving end in the data migration method described with respect to FIG. 13;
FIG. 15 is a second schematic view illustrating the operation of the page at the data receiving end in the data migration method described with respect to FIG. 13;
FIG. 16 is a third schematic view illustrating the page operation of the data receiving end in the data migration method described with respect to FIG. 13;
fig. 17 is one of schematic diagrams illustrating a page operation of a data sender in the data migration method described with respect to fig. 13;
fig. 18 is a second schematic view illustrating the operation of a page at the data transmitting end in the data migration method described with respect to fig. 13;
FIG. 19 is a fourth schematic view illustrating the operation of the page at the data receiving end in the data migration method described with respect to FIG. 13;
fig. 20 is a third schematic view illustrating a page operation of a data sending end in the data migration method described with reference to fig. 13;
fig. 21 is an exemplary interaction timing diagram between the data transmitting end and the data receiving end illustrated with respect to the page diagrams of fig. 14 to 18;
fig. 22 is a schematic diagram illustrating an interaction flow between a data receiving end and a data sending end in still another data migration method.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described 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, of the embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone.
The terms "first" and "second," and the like, in the description and in the claims of the embodiments of the present application are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first target object and the second target object, etc. are specific sequences for distinguishing different target objects, rather than describing target objects.
In the embodiments of the present application, the words "exemplary" or "such as" are used herein to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the embodiments of the present application, the meaning of "a plurality" means two or more unless otherwise specified. For example, a plurality of processing units refers to two or more processing units; a plurality of systems refers to two or more systems.
In order to better understand the technical solutions provided in the embodiments of the present application, before describing the technical solutions in the embodiments of the present application, an application scenario in the embodiments of the present application is first described with reference to the drawings. For convenience of description, in the embodiment of the present application, an electronic device that needs to perform data migration is a mobile phone a (new mobile phone), and an electronic device that provides backup data to the mobile phone a is a mobile phone B (old mobile phone), for example.
The following describes a process of establishing a connection between the mobile phone a and the mobile phone B to implement data migration with reference to fig. 1 to 6.
Referring to fig. 1, for example, when the mobile phone a needs to obtain backup data from the mobile phone B, a data migration request is sent out in a broadcast manner. At this time, the mobile phone B, the mobile phone C, the mobile phone D, and the mobile phone E, which are located in the same space as the mobile phone a (for example, an area with the mobile phone a as a center and a radius of 5 meters), all receive the data migration broadcast sent by the mobile phone a.
For example, in some implementations, the process of sending the data migration request to the outside in the form of broadcast by the handset a may be as shown in fig. 2.
For example, after the user clicks the data migration application installed in the mobile phone a and providing the data migration function, the mobile phone a may invoke the data migration application in response to the operation behavior of the user, and enter the data migration page 10a shown in fig. 2.
Referring to fig. 2, for example, the data migration page 10a may include one or more controls, such as a control 10a-1 for exiting the data migration page 10a, a control 10a-2 for determining that the mobile phone a is a new device for receiving data, a control 10a-3 for determining that the mobile phone a is an old device for sending data, and the like, which are not listed here, and the application is not limited thereto.
Continuing to refer to fig. 2, illustratively, after the user clicks the control 10a-2, the mobile phone a jumps from the data migration page 10a to the connection waiting page 10b in response to the user's operation behavior.
Continuing with fig. 2, the pending connection page 10B may illustratively include one or more controls, such as a control 10B-1 for exiting the pending connection page 10B, a verification code display control 10B-2 for displaying a verification code to be entered on handset B, as shown in fig. 2, the verification code currently displayed by handset a to be entered on handset B is "2094".
It should be understood that the above description is only an example for better understanding of the technical solution of the present embodiment, and is not to be taken as the only limitation of the present embodiment.
Because of the application scenario shown in fig. 1, the mobile phone B, the mobile phone C, the mobile phone D, and the mobile phone E all receive the data migration broadcast sent by the mobile phone a, for convenience of explaining the change of the page when the mobile phone B, the mobile phone C, the mobile phone D, and the mobile phone E receive the data migration request broadcast sent by the mobile phone a, the mobile phone B is taken as an example, and the description is given with reference to fig. 3.
Referring to fig. 3, for example, when the mobile phone B is in the home page 20a, if the data migration broadcast transmitted by the mobile phone a is received, a window 20a-1 pops up on the home page 20.
Continuing with fig. 3, window 20a-1 may illustratively include one or more controls, such as controls 20a-11 for denying connection with cell phone a, controls 20a-12 for agreeing to connect with cell phone a, etc., which are not intended to be limiting.
Continuing with FIG. 3, after the user clicks on control 20a-12, cell phone B pops up window 20a-2 on home page 20a, for example, in response to the user's action.
Continuing with fig. 3, for example, window 20a-2 may include one or more controls, such as controls 20a-21 for entering a validation code displayed in control 10b-2 of handset a, controls 20a-22 for closing window 20a-2, controls 20a-23 for confirming connection with handset a after entering a validation code in controls 20a-21, and so on, which are not listed here, but are not limited in this application.
For example, in some implementations, after the user clicks the controls 20a-21, the cell phone B pops up a keyboard for inputting the verification code in response to the user's operation. After the user clicks the corresponding number in the keyboard and inputs the verification code displayed in the control 10B-2 in the mobile phone a through the controls 20a-21, if the user clicks the controls 20a-23, the mobile phone B responds to the operation behavior of the user, and pops up a window 20a-3 shown in fig. 4 to prompt that the user is currently connected.
With reference to fig. 4, after the mobile phone B is successfully connected to the mobile phone a, the "connection with the mobile phone a being established" information in the window 20a-3 is updated to the "connection with the mobile phone a being successful", and at this time, the data migration application in the mobile phone B is started, so that the backup data that needs to be migrated to the mobile phone a in the mobile phone B can be sent to the mobile phone a.
It should be understood that the above description is only an example for better understanding of the technical solution of the present embodiment, and is not to be taken as the only limitation of the present embodiment.
As can be seen from the descriptions of fig. 2 to fig. 4, although the connection between the mobile phone a and the mobile phone B can be established based on the auto discovery connection function, in the process of discovering the mobile phone B by the mobile phone a, data migration broadcasts are sent to all the mobile phones that can be searched in the surroundings, such as the mobile phone C, the mobile phone D, and the mobile phone E, which may cause the mobile phone C, the mobile phone D, and the mobile phone E to pop up the window 20a-1 shown in fig. 3. If the mobile phone C, the mobile phone D and the mobile phone E are in a game interface, a video viewing interface or a chat interface, the use of the users of the mobile phone C, the mobile phone D and the mobile phone E is interrupted, and the user experience is poor.
In addition, although the data migration modes corresponding to fig. 2 to fig. 4 are set such that the mobile phone B inputs the mobile phone a to provide the verification code to perform the connection, thereby ensuring the security of the data migration process, the number of steps required for the user to participate is too many, which is cumbersome.
In order to solve the defects existing in the data migration manners corresponding to fig. 2 to fig. 4, in another implementation manner, a process of sending a data migration request to the outside in a broadcast manner by the handset a may be as shown in fig. 5.
For example, when the user clicks the data migration application providing the data migration function installed in the mobile phone a, the mobile phone a invokes the data migration application in response to the operation of the user, and enters the data migration page 30a shown in fig. 5.
Referring to fig. 5, for example, the data migration page 30a may include one or more controls, such as a control 30a-1 for exiting the data migration page 30a, a control 30a-2 for determining that the mobile phone a is a new device for receiving data, a control 30a-3 for determining that the mobile phone a is an old device for sending data, and the like, which are not listed here, and the present application is not limited thereto.
Continuing with FIG. 5, after the user clicks on control 30a-2, cell phone A illustratively jumps from the data migration page 30a to the page where the accessory device is found 30b in response to the user's operational behavior.
Illustratively, while cell phone a is on page 30B where it discovers accessory devices, cell phone a will discover all available devices in the vicinity, such as cell phone B, cell phone C, cell phone D, and cell phone E.
Continuing to refer to fig. 5, for example, if the mobile phone a finds 4 devices, namely, the mobile phone B, the mobile phone C, the mobile phone D, and the mobile phone E, the mobile phone a sends a connection request to the mobile phone B, the mobile phone C, the mobile phone D, and the mobile phone E, that is, the mobile phone B, the mobile phone C, the mobile phone D, and the mobile phone E all receive the connection request sent by the mobile phone a.
It should be understood that the above description is only an example for better understanding of the technical solution of the present embodiment, and is not to be taken as the only limitation of the present embodiment.
Because of the application scenario shown in fig. 1, the mobile phone B, the mobile phone C, the mobile phone D, and the mobile phone E all receive the data migration broadcast (data connection request) sent by the mobile phone a, for convenience of explaining the change of the page when the mobile phone B, the mobile phone C, the mobile phone D, and the mobile phone E receive the data migration request broadcast sent by the mobile phone a, the mobile phone C is taken as an example, and the description is given with reference to fig. 6.
Referring to fig. 6, for example, when the mobile phone C is on the home page 40a, if a data connection request sent by the mobile phone a is received, a window 40a-1 pops up on the home page 40 a.
Continuing with fig. 6, for example, window 40a-1 may include one or more controls, such as controls 40a-11 for denying connection with cell phone a, controls 40a-12 for agreeing to connect with cell phone a, etc., which are not intended to be limiting.
Continuing with FIG. 6, for example, after the user has clicked the control 40a-12, the cell phone C pops up a window 40a-2 on the home page 40a in response to the user's action, prompting the user that the user is currently waiting for cell phone A to approve.
In addition, it should be noted that after the user clicks the control 40a-12, the page 30b of the mobile phone a pops up the window 30b-1 shown in fig. 7.
Referring to fig. 7, the window 30b-1 may include one or more controls, such as controls 30a-11 for denying connection with the cell phone C, controls 30a-12 for agreeing to connect with the cell phone C, etc., which are not illustrated herein, but are not limited thereto.
Continuing with fig. 7, for example, after the user clicks the controls 30a-12, the mobile phone a switches from the page 30b to the page 30C in response to the user's operation, so as to prompt the user that the mobile phone a is establishing a connection with the mobile phone C.
Illustratively, when the user clicks on the controls 30a-12, the main page 40a of cell phone C pops up a window 20a-3 as shown in FIG. 4, indicating that the user is currently connected.
Correspondingly, after the mobile phone C is successfully connected with the mobile phone a, the information of "establishing connection with the mobile phone a" in the window 20a-3 is updated to the information of "successfully connecting with the mobile phone a", and at this time, the data migration application in the mobile phone C is started, so that the backup data that needs to be migrated to the mobile phone a in the mobile phone C can be sent to the mobile phone a.
Continuing with fig. 7, exemplarily, after the mobile phone a establishes a connection with the mobile phone C, the information of "establishing a connection with the mobile phone C" in the page 30C is updated to the information of "successfully connecting with the mobile phone C", and at this time, the mobile phone a may receive the backup data sent by the mobile phone C.
It should be understood that the above description is only an example for better understanding of the technical solution of the present embodiment, and is not intended to limit the present embodiment.
As can be seen from the descriptions of fig. 5 to fig. 7, although the connection between the mobile phone a and the mobile phone B can be established based on the auto discovery connection function, the process of discovering the mobile phone B by the mobile phone a also sends a connection request to all the mobile phones that can be searched in the surroundings, such as the mobile phone C, the mobile phone D, and the mobile phone E, which causes the mobile phone C, the mobile phone D, and the mobile phone E to pop up the window 40a-1 shown in fig. 6. If the mobile phone C, the mobile phone D and the mobile phone E are in a game interface, a video viewing interface or a chat interface, the use of the users of the mobile phone C, the mobile phone D and the mobile phone E is interrupted, and the user experience is poor.
In addition, although the data migration method corresponding to fig. 5 to 7 does not require the user to manually input the verification code, the mobile phone receiving the connection request sends the connection request to the mobile phone a, and establishes the connection between the mobile phone a and the mobile phone a after the mobile phone a agrees, so as to avoid the situation that the user inputs the verification code by mistake. However, in this way, handset a may receive a connection request from a handset other than handset B, as from handset C. If the user does not see clearly, the user wrongly checks the agreement, and the data of the mobile phone C is illegally filled into the mobile phone A.
Therefore, in order to solve the technical problems of the two data migration modes, the data migration method provided by the embodiment of the application is provided, so that the mobile phone a can quickly find the mobile phone B, thereby realizing safe point-to-point connection, simplifying the data migration process and ensuring the safety of data migration.
Referring to fig. 8, for example, a mobile phone a that needs to perform data migration still sends a broadcast to the surrounding environment, but in the technical solution provided in the present application, the mobile phone a sends only a broadcast to the surrounding environment based on the auto discovery function, and the broadcast may carry device information of the mobile phone a, but does not carry hotspot information, that is, is not a data migration request. Therefore, after receiving the device discovery broadcast sent by the mobile phone a, other electronic devices in the surrounding environment, such as the mobile phone B, the mobile phone C, the mobile phone D, and the mobile phone E, will not prompt the mobile phone a to request to establish a connection for data migration in a page pop window, but respond to the device discovery broadcast in a background, and send their own device information to the mobile phone a, that is, as shown in fig. 9, the mobile phone B, the mobile phone C, the mobile phone D, and the mobile phone E will respectively respond to the device discovery broadcast sent by the mobile phone a, and send response information to the device discovery broadcast to the mobile phone a. By the mode, the mobile phone A can know which electronic equipment capable of being connected exists in the surrounding environment, the current operation of the electronic equipment in the surrounding environment can be prevented from being interrupted, and the user experience is effectively improved.
For example, after receiving response information of other electronic devices in the surrounding environment, such as the mobile phone B, the mobile phone C, the mobile phone D, and the mobile phone E, for device discovery broadcast, the mobile phone a may generate a device list for the user to select according to the device information carried in the response information, so that the user can select a specific electronic device, such as the mobile phone B, as a data sending end for providing backup data.
Referring to fig. 10, for example, if the user selects the mobile phone B, the mobile phone a may send a data migration request to the mobile phone a separately, and the sent data migration request carries hotspot information of the mobile phone a, so that the mobile phone B may directly establish a connection with the mobile phone a according to the hotspot information of the mobile phone a in the data migration request after receiving the data migration request of the mobile phone a. By the method, the safe point-to-point connection of the mobile phone A and the mobile phone B is realized, and the operation is simple, so that the safety of the data migration process is ensured, and the user experience is improved.
It should be noted that, in both the application scenarios illustrated in fig. 1 and the application scenarios illustrated in fig. 8 to 10, the premise for implementing the data migration schemes corresponding to the two application scenarios is that the bluetooth function is enabled in the data transmitting mobile phone and the data receiving mobile phone.
In addition, to better describe the data migration method provided in the embodiment of the present application corresponding to the application scenarios in fig. 8 to fig. 10, taking an electronic device as a mobile phone as an example, and respectively combining fig. 11 and fig. 12 to describe the hardware structure of the mobile phone and the interaction of each functional module for implementing the data migration method provided in the embodiment of the present application when data migration is performed on two mobile phones.
Referring to fig. 11, fig. 11 is a schematic structural diagram of a mobile phone according to an embodiment of the present application. Although the hardware structure of the electronic device is described in fig. 11 by taking a mobile phone as an example, it is obvious to those skilled in the art that the structure of the mobile phone in fig. 11 is also applicable to other electronic devices, such as a tablet, a PC, and the like.
Referring to fig. 11, the cellular phone 100 may include: the mobile terminal includes a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identity Module (SIM) card interface 195, and the like.
Illustratively, in particular to the data migration scheme provided by the present application, the device discovery broadcast for discovering other electronic devices in the surrounding environment needs to be implemented by a Bluetooth (BT) function supported by the wireless communication module 160, and the response information of the other electronic devices in the surrounding environment for the device discovery broadcast also needs to be implemented by the BT function supported by the wireless communication module 160.
For example, in the data migration scheme provided in the present application, after receiving response information of other electronic devices in the surrounding environment for a device discovery broadcast through the BT function supported by the wireless communication module 160, the cellular phone 100 displays a list available for selection by the user in the display screen 194 after being processed by the processor 110.
For example, specifically, in the data migration scheme provided in the present application, after a user selects a certain electronic device in the list, the mobile phone 100, in response to an operation behavior of the user, sends the hotspot information started through the mobile communication module 150 to the selected electronic device through the BT function supported by the wireless communication module 160, so as to implement peer-to-peer connection with the selected electronic device.
In addition, it should be noted that, in practical applications, the audio module 170 may include, for example, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, and the like.
Illustratively, the sensor module 180 may include, for example, a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
In addition, in practical applications, the keys 190 may include, for example, a power key (power on key), a home key (home key), a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The cellular phone 100 may receive a key input, and generate a key signal input related to user setting and function control of the cellular phone 100.
In addition, it should be noted that, in practical applications, the processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processor (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), among others.
It is to be appreciated that in particular implementations, the various processing units may be stand-alone devices or may be integrated into one or more processors.
Further, in some implementations, the controller can be a neural hub and a command center of the cell phone 100. The controller can generate an operation control signal according to the instruction operation code and the time sequence signal to finish the control of instruction fetching and instruction execution.
In addition, memory in the processor 110 is used primarily for storing instructions and data. In some implementations, the memory in the processor 110 is a cache memory.
Furthermore, it will be appreciated that in a practical application scenario, executable program code, including instructions, that trigger the handset 100 to implement various functional applications and data processing is stored in the internal memory 121.
The hardware architecture of the handset 100 is described herein with the understanding that the handset 100 shown in fig. 11 is merely an example, and in particular implementations the handset 100 may have more or fewer components than shown, may combine two or more components, or may have a different configuration of components. The various components shown in fig. 11 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
Based on the above hardware structure, when any two mobile phones implement the data migration scheme provided in the embodiment of the present application, the interaction of the functional modules involved in implementing the data migration scheme is as shown in fig. 12.
Before explaining the interaction of the functional modules involved in implementing the data migration scheme when any two mobile phones implement the data migration scheme provided in the embodiment of the present application with reference to fig. 12, it should be noted that, in practical applications, any one electronic device, such as a mobile phone, may be used as both a data sending end and a data receiving end, so that not only a receiving module for receiving data but also a sending module for sending data are required for the data receiving end, and not only the sending module for sending data but also a receiving module for receiving data are required for the data sending end.
In addition, it should be noted that both the data sent to the outside and the received data need to be implemented by the backup and recovery service module, and therefore both the data sending end and the data receiving end need to include the backup and recovery service module.
Referring to fig. 12, for example, the data receiving end 200 may include one or more functional modules, such as a receiving module 201, a sending module 202, and a backup recovery service module 203; data sender 300 may include one or more functional modules, such as a receiving module 301, a sending module 302, and a backup-restore-service module 303.
With continued reference to fig. 12, as an example, the receiving module 201 may include one or more functional modules, such as a hotspot information interaction module 2011, a hotspot management module 2012, a cloning session management module 2013, an NStackX server module 2014, and a cloning data import module 2015; the sending module 202 may include one or more functional modules, such as a hotspot information interaction module 2021, a hotspot connection module 2022, a clone session management module 2023, an NStackX client module 2024, and a clone data export module 2025.
With continued reference to fig. 12, for example, the sending module 301 may include one or more functional modules, such as a hotspot information interaction module 3011, a hotspot connection module 3012, a clone session management module 3013, an NStackX client module 3014, and a clone data export module 3015; the receiving module 302 may include one or more functional modules, such as a hotspot information interaction module 3021, a hotspot management module 3022, a clone session management module 3023, an NStackX server module 3024, and a clone data import module 3015.
It should be noted that, when the data receiving end 200 acquires backup data from the data transmitting end 300, the hotspot information interaction module 2011 needs to send hotspot information to the hotspot information interaction module 3011. In addition, when the data receiving end 200 discovers the data sending end 300, the device discovery broadcast may also be sent through the hotspot information interaction module 2011. The data receiving segment 300 may receive the device discovery broadcast transmitted by the data transmitting end 200 through the hot spot information interacting module 3011, and transmit response information for the device discovery broadcast to the data receiving end through the hot spot information interacting module 3011.
In addition, in some implementation manners, the interaction of the hotspot information may be implemented by sending a broadcast through a device, and may also be implemented by scanning a two-dimensional code, which is not limited in this embodiment.
For example, after the data receiving end 200 and the data sending end 300 complete the hot spot information interaction through the hot spot information interaction module 2011 and the hot spot information interaction module 3011, the hot spot connection may be implemented through the hot spot management module 2012 and the hot spot management module 3012, so as to establish the hot spot connection between the data receiving end 200 and the data sending end 300.
For example, after the data receiving end 200 and the data sending end 300 establish the hotspot connection, the session service signaling sock message is transmitted through the clone session management module 2013 and the clone session management module 3013.
Accordingly, after receiving the session service signaling sock message transmitted by the other party, the data receiving end 200 and the data sending end 300 transmit the clone data through the NStackX server module 2014 and the NStackX client module 3014 by using the minimality protocol.
With continued reference to fig. 12, the clone data transmitted by the NStackX server module 2014 and the NStackX client module 3014 via the minimalist protocol is specifically exported from the data sender 300 by the clone data export module 3015 via the backup recovery service module 303.
Accordingly, after receiving the clone data transmitted by the NStackX client module 3014 through the trivial protocol, the NStackX server module 2014 transmits the clone data to the backup and recovery service module 203 through the clone data importing module 2015, and the backup and recovery service module 203 restores and stores the received clone data in the data receiving end 200.
In addition, for example, taking the operating systems of the data receiving end 200 and the data sending end 300 as an Android system, no matter the interaction between the clone data importing module 2015, the clone data exporting module 2025 and the backup restoration service module 203, or the interaction between the clone data exporting module 3015, the clone data importing module 3025 and the backup restoration service module 303, data communication between different processes may be implemented through an Android Interface Definition Language (AIDL) Interface.
It should be understood that the above is only a description of the interaction between the modules involved when the data receiving end 200 receives data from the data sending end 300, and regarding the interaction between the functional modules involved when the data receiving end 200 sends data to the data sending end 300, specifically, the interaction between each functional module in the sending module 202 and each functional module in the receiving module 302, a specific interaction manner is similar to the interaction between each functional module in the receiving module 201 and the sending module 301, and is not described herein again.
When any two mobile phones implement the data migration scheme provided in the embodiment of the present application, interaction between the functional modules involved in implementing the data migration scheme is introduced, and details of implementation of the technical scheme provided in the embodiment of the present application are described below. It should be understood that the following are implementation details provided only for ease of understanding and are not necessary to practice the present solution.
It should be noted that, in the present application, names of pages and names of controls and function modules are also only examples for better understanding the technical solution of the present embodiment, and are not limited to the present embodiment.
For example, referring to fig. 13, regarding the first electronic device as a data receiving end and the second electronic device as a data transmitting end, the specific implementation steps of the embodiment of the present application may include steps S101 to S107 executed by the first electronic device, and steps S201 to S205 executed by the second electronic device. For convenience of description, the present embodiment takes the data migration operation starting from the first electronic device as an example.
Step S101, when the data migration function is detected to be started, displaying a device type selection list of the second electronic device providing the backup data.
For example, in some implementations, detecting that the data migration function is turned on may refer to opening a data migration application installed on the first electronic device and selecting a native device as a new device, that is, a data sink to receive data.
For convenience of description, the following description is made with reference to fig. 14, taking the first electronic device as a mobile phone a, and the second electronic devices include, but are not limited to, a mobile phone B and a mobile phone C. Referring to fig. 14, for example, after the user clicks the data migration application installed in the mobile phone a, the mobile phone a invokes the data migration application in response to the operation of the user, and enters a data migration page 50a shown in fig. 14.
Referring to fig. 14, for example, the data migration page 50a may include one or more controls, such as a control 50a-1 for exiting the data migration page 50a, a control 50a-2 for determining that the mobile phone a is a new device for receiving data, a control 50a-3 for determining that the mobile phone a is an old device for sending data, and the like, which are not listed here, and the present application is not limited thereto.
With continued reference to fig. 14, after the user clicks the control 50a-2, that is, after the data migration function is turned on, the mobile phone a responds to the operation behavior of the user, and jumps from the data migration page 50a to the page 50b for selecting the old device type, that is, displays a device type selection list of the second electronic device that provides the backup data.
Continuing with FIG. 14, page 50b may illustratively include one or more controls, such as a control 50b-1 for exiting page 50b, a control 50b-2 corresponding to a first device type that is the same as the device type of cell phone A, a control 50b-3 corresponding to another android device type, and a control 50b-4 corresponding to an apple device type.
It should be noted that the other android devices in this embodiment are specifically devices generated by other manufacturers, that is, devices that are not the same manufacturer as the mobile phone a, and for example, when the mobile phone a is a glory mobile phone produced by a glory manufacturer, the other android devices may be mobile phones produced by manufacturers such as hua shi, millet, and the like.
It should be understood that the above description is only an example for better understanding of the technical solution of the present embodiment, and is not to be taken as the only limitation of the present embodiment.
And step S102, when the selection operation of any equipment type in the equipment type selection list is detected, displaying a second electronic equipment search page according to the selected equipment type.
Still taking the device type selection list (including the first device type, other android device types, and apple device type) shown in page 50B in fig. 14 as an example, the data migration application installed in the mobile phone a in this embodiment provides three device types, and for the first device type, since it is the same as the device type of the mobile phone a, i.e., the manufacturer is the same, and the device types may also be the same, the system used by the mobile phone a and the second electronic device providing backup data, e.g., the mobile phone B, is the same.
For example, taking the case that both systems of the mobile phone a and the mobile phone B of the first device type integrate the Nearby service, the mobile phone B may still pop up a window of the data migration request sent by the mobile phone a when the mobile phone B does not have the data migration application installed or the installed data migration application is not started.
The Nearby service means that after the function is started, the device periodically turns on a microphone, WIFI and bluetooth to collect information. Thus, the two devices with the Nearby service can mutually collect the broadcast transmitted by the other device.
Still taking the device type selection list (including the first device type, other android device types, and apple device type) shown in the page 50b in fig. 14 as an example, when the user clicks the control 50b-2, that is, selects the first device type displayed in the device type selection list, the mobile phone a displays a second electronic device search page, that is, jumps from the page 50b shown in fig. 14 to the page 50c, or switches the current display interface from the page 50b to the page 50c, in response to the operation behavior of the user.
It should be understood that the above description is only an example for better understanding of the technical solution of the present embodiment, and is not to be taken as the only limitation of the present embodiment.
In addition, other android device types and apple device types may be considered as a second device type, i.e., a device type different from that of the mobile phone a. When the mobile phone providing the backup data is of the second device type, because the systems used by the mobile phone may be different, it cannot be ensured whether the system of the mobile phone of the second device type integrates the Nearby service, or whether the protocols and the standards followed by the integrated Nearby service are the same, for example, the android and the ios may be different. Therefore, when the selected device type is the second device type, a first prompt window may pop up on a page where a device type selection list of the second electronic device providing the backup data is displayed.
Illustratively, the first prompt window is used for prompting the installation of the data migration application in the second electronic device providing the backup data, and a page jump entry for jumping to the search page of the second electronic device may be set in the first prompt window.
Correspondingly, when the user's selected operation on the page jump inlet is detected, the second electronic equipment search page is displayed.
In addition, it should be further noted that, in order to facilitate fast and accurate acquisition of the data migration application suitable for being installed in the mobile phone B, the first prompt window may further be provided with a first download entry. The first download port provides an obtaining mode for obtaining the installation package of the data migration application.
For example, in some implementation manners, the manner of obtaining the installation package of the data migration application may be, for example, directly displaying a downloaded two-dimensional code of the installation package, so that the second electronic device may directly download the installation package for installation after scanning the two-dimensional code.
For example, in other implementation manners, the manner of obtaining the installation package of the data migration application may be, for example, providing an entry for sending the installation package by bluetooth, so that after the user clicks the entry for sending the installation package by bluetooth, the first electronic device sends the locally pre-stored installation package suitable for the second electronic device system to the second electronic device by bluetooth, and the second electronic device may perform installation after receiving the installation package.
For a better understanding of the form of the first prompt window corresponding to the two second device types (the other android device type and the apple device type), the following description is made in conjunction with fig. 15 and 16.
Continuing to refer to fig. 14, for example, when the user clicks the control 50b-3, the cell phone a, in response to the user's operation, pops up a prompt window 50b-5 (referred to as the first prompt window) on the page 50b as shown in fig. 15.
Referring to fig. 15, for example, the prompt window 50b-5 includes a two-dimensional code for obtaining an installation package of the data migration application, and also records installation guidance information "the old device scans a code with a browser to download" the data migration application ", and clicks" next "after the installation is completed. ".
Continuing with FIG. 15, exemplary prompt window 50b-5 also includes controls 50b-51 corresponding to the first download portal (Bluetooth send installation package), controls 50b-52 for closing prompt window 50b-5, and controls 50b-53 for entering page 50c shown in FIG. 14.
It should be understood that the above description is only an example for better understanding of the technical solution of the present embodiment, and is not intended to limit the present embodiment.
Continuing with fig. 14, for example, when the user clicks the control 50b-4, the cell phone a responds to the user's operation behavior to pop up a prompt window 50b-6 (the first prompt window mentioned above) shown in fig. 16 on the page 50 b.
Referring to fig. 16, for example, the prompt window 50b-6 includes the two-dimensional code for acquiring the installation package of the data migration application, and also records the installation guidance information "old device use Iphone/iPad camera shooting mode, identifies the two-dimensional code to download" data migration application ", and clicks" next "after installation is completed. ".
Continuing with FIG. 16, exemplary prompt window 50b-5 also includes a control 50b-61 corresponding to the first download entry (App Store download), a control 50b-62 for closing prompt window 50b-6, and a control 50b-63 for entering page 50c shown in FIG. 14.
It should be understood that the above description is only an example for better understanding of the technical solution of the present embodiment, and is not intended to limit the present embodiment.
In addition, the second electronic device referred to above searches for a page, i.e., page 50c in fig. 14. In some implementations a second download portal and a non-auto discovery connection portal may be provided. The second download entrance provides an acquisition mode for acquiring the installation package of the data migration application, and the non-automatic discovery connection entrance provides other modes for establishing connection with the second electronic device of the data migration application.
For example, in some implementations, the obtaining manner provided by the second download portal for obtaining the installation package of the data migration application may be the same as the obtaining manner provided by the first download portal, for example.
For example, in other implementation manners, the non-auto discovery connection refers to a manner of discovering the surrounding electronic devices without device discovery broadcast, and for example, a two-dimensional code picture generated according to hotspot information (a hotspot name and a hotspot password) of the first electronic device may be displayed on a display interface of the first electronic device, so that a hotspot connection between the first electronic device and the second electronic device may be established using a scan entry provided by a data migration application of the second electronic device, or hotspot information (a hotspot name and a hotspot password) of the first electronic device may be displayed on the display interface of the first electronic device, so that a user manually inputs the hotspot name and the hotspot password on a hotspot connection establishment interface provided by a data migration application of the second electronic device to establish the hotspot connection with the first electronic device.
For a better understanding of the second electronic device search page, it is described in detail below in connection with fig. 14. Continuing with FIG. 14, page 50c may illustratively include one or more controls, such as a control 50c-1 for exiting page 50c, an acquisition entry 50c-2 for providing an installation package for the data migration application, and an entry 50c-3 for selecting another connection.
For example, in some implementations, when the user clicks on the get entry 50c-2, the cell phone a may pop up a window on the page 50c, as shown by the prompt window 50-5, in response to the user's action.
It should be understood that the above description is only an example for better understanding of the technical solution of the present embodiment, and is not intended to limit the present embodiment.
Step S103, calling a device discovery interface provided by the Bluetooth service, and sending a device discovery broadcast.
Specifically, regarding the operation of invoking the device discovery interface provided by the bluetooth service and sending the device discovery broadcast, specifically, after the data migration application located in the application layer detects the device type of the second electronic device selected by the user and jumps to the page for displaying the search of the second electronic device, such as the page 50c in fig. 14, the system service in the application framework layer is invoked, and the system service executes to create the bluetooth service instance.
Accordingly, after the system service completes the operation of creating the bluetooth service instance, the created bluetooth service instance is handed to the system service manager for management.
Correspondingly, after receiving the bluetooth service instance created by the system service, the system service manager calls the bluetooth driver located in the kernel layer to trigger the bluetooth driver to call the device discovery interface provided by the hardware of the bluetooth module, and the bluetooth module sends the device discovery broadcast to the outside, so that the second electronic device integrated with the Nearby service in the system can receive the device discovery broadcast if the bluetooth function is started in the area with the first electronic device as the center of the circle and 5 meters as the radius in the surrounding environment.
In addition, it should be noted that, in order to facilitate the second electronic device that receives the device discovery broadcast to know which first electronic device the device discovery broadcast is sent by, the device discovery broadcast may carry device information of the first electronic device, such as a specific device name, a specific model, a specific identification number, and the like.
In step S201, the system Nearby scans for device discovery broadcasts.
As can be seen from the above description, the Nearby service is also integrated in the system of the second electronic device of the same type as the first electronic device, and such second electronic device automatically turns on a microphone, bluetooth, WIFI, and the like to collect surrounding information. Therefore, after a first electronic device, such as a mobile phone a, sends a device discovery broadcast to the outside by calling a device discovery interface provided by a bluetooth service, peripheral second electronic devices, such as a mobile phone B and a mobile phone C, which start a Nearby function, automatically collect the device discovery broadcast sent by the mobile phone a.
In addition, it should be noted that, since only information interaction is performed through the Nearby service, for example, the first electronic device delivers its own device information to notify the second electronic device around, and the second electronic device can also notify its own device information to the first electronic device, there is no prompt window, or broadcast window, or notification bar, which pops up, so that the operation behavior of the user currently using the second electronic device is not interrupted, and the user experience is effectively improved.
In step S202, the system nerby responds to the device discovery broadcast.
As can be seen from the above description, through the Nearby service, the first electronic device and the second electronic device can perform information interaction, so that when responding to the received device discovery broadcast from the first electronic device, the system Nearby of the second electronic device generates response information, which carries device information of its own, such as a device name, a model, an identification number, and the like.
Illustratively, after the second electronic device generates the response information, the response information is returned to the first electronic device in a broadcast form through the Nearby service.
Step S104, receiving response information made according to the device discovery broadcast, the response information including device information of the second electronic device that received the device discovery broadcast.
It can be understood that the process of receiving the response information is opposite to the process of sending the device discovery broadcast, and specifically, after the bluetooth module receives the response information sent by each second electronic device around according to the device discovery broadcast, the response information is output to the bluetooth driver.
Correspondingly, after receiving the response information sent by the Bluetooth module, the Bluetooth driver sends the received response information to the system service manager.
Correspondingly, after receiving the response information sent by the bluetooth driver, the system service manager transmits the received response information to the bluetooth service instance in the system service, and then the bluetooth service instance in the system service transmits the received response information to the data migration application.
And step S105, displaying a second electronic device selection list on a second electronic device search page according to the device information.
As can be seen from the above description, each piece of response information, which is sent by the first electronic device and is sent by the second electronic device, includes device information identifying the uniqueness of the second electronic device, so that after the first electronic device receives the response information provided by each piece of second electronic device in the surrounding environment, the first electronic device displays the second electronic device selection list on the second electronic device search page according to the device information of the second electronic device carried in the response information.
For example, if in practical applications, response information provided by a plurality of different second electronic devices is received within a preset time, for example, within 30s, the first electronic device may update the second electronic device selection list once according to the device information of one second electronic device each time the first electronic device receives the response information of the second electronic device.
For better understanding, the following description is made in conjunction with fig. 14. Continuing with fig. 14, if the mobile phone a receives the response information sent by the mobile phone B and the mobile phone C respectively within the preset time, the found device mobile phone B and the found device mobile phone C are displayed in the page 50C (second electronic device search page) of the mobile phone a, and each second electronic device corresponds to one control for selection in the second electronic device selection list, as shown in fig. 14, the control 50C-4 is used to initiate an invitation to the mobile phone B, that is, send a data migration request to the mobile phone B, request the mobile phone B to establish a hot spot connection with the mobile phone a, provide backup data to the mobile phone a, and the control 50C-5 is used to initiate an invitation to the mobile phone C, that is, send a data migration request to the mobile phone C, request the mobile phone C to establish a hot spot connection with the mobile phone a, and provide backup data to the mobile phone a.
It should be understood that the above description is only an example for better understanding of the technical solution of the present embodiment, and is not intended to limit the present embodiment.
Step S106, when detecting a selection operation on any second electronic device in the second electronic device selection list, sending a data migration request (carrying hotspot information) to the selected second electronic device.
It can be understood that, in this embodiment, the data migration request is only sent to the second electronic device selected by the user, that is, the data migration request is sent point-to-point, so that in order to reduce the number of times of response to the request between the two devices, the first electronic device may directly carry the hotspot information of the first electronic device, such as a hotspot name and a hotspot password, when sending the data migration request to the selected second electronic device, so that the second electronic device receiving the data migration request may directly establish a hotspot connection with the first electronic device according to the hotspot information, without initiating a request for obtaining the hotspot information to the first electronic device.
Still taking the second electronic device shown on the page 50C in fig. 14, such as the mobile phone B and the mobile phone C, which can be selected by the user, as an example, after the user clicks the control 50C-4, the mobile phone a responds to the operation behavior of the user, and then sends a data migration request carrying the hotspot information to the mobile phone B.
For example, in some implementations, in order to remind the user to agree to the connection invitation initiated by the mobile phone a on the mobile phone B in time, after the user clicks the control 50c-4, the mobile phone a responds to the operation behavior of the user, and may also cancel the information and the corresponding controls of each second electronic device, such as the control 50c-4 and the control 50c-5, displayed in the second electronic device selection list.
In addition, it should be understood that since the user has clicked control 50c-4 to initiate a data migration request to handset B, indicating that an old device to which the surrounding environment can connect has been discovered, control 50c-3 may also be removed after the user has clicked control 50 c-4.
Illustratively, when a data migration request is initiated to the mobile phone B, the page 50c of the control 50c-3, the control 50c-4, and the control 50c-5 may be removed to display the control 50c-6 shown in fig. 19, so that the user may cancel the connection with the mobile phone B at any time through the control 50c-6 while waiting for the mobile phone B to agree with the invitation.
In addition, the page 50c may also display a control 50c-7, so that after the user cancels the connection invitation with the mobile phone B, the control 50c-7 may recall the device discovery interface provided by the bluetooth service to send out a device discovery broadcast to discover other second electronic devices in the surrounding environment.
It should be understood that the above description is only an example for better understanding of the technical solution of the present embodiment, and is not to be taken as the only limitation of the present embodiment.
Step S203, when receiving a data migration request sent by the first electronic device, displaying a data migration request window, where the data migration request window is provided with a first entry and a second entry.
According to the description of the Nearby service, the second electronic device of the system integrated with the Nearby service can perform popup prompt when a data migration request is received no matter whether the data migration application is installed or not or whether the data migration application is started or not.
It can be understood that since the data migration request is different from the device discovery broadcast, the device discovery broadcast is only used for discovering the second electronic device, and no prompt is required to be made to the user at the second electronic device, but the data migration request is a point-to-point connection request sent by the first electronic device, and a hotspot connection can be established with the first electronic device to perform data migration only by the user's consent. Therefore, the second electronic device that receives the device discovery broadcast does not need to perform a pop-up prompt, and the second electronic device that receives the data migration request needs to perform a pop-up prompt for the user.
For convenience of description, in this embodiment, the second electronic device that receives the data migration request sent by the mobile phone a is taken as an example, and the mobile phone B does not currently start the data migration application, as shown in the home page 60a shown in fig. 17.
Referring to fig. 17, for example, when receiving the data migration request sent by the mobile phone a, the mobile phone B may display a data migration request window 60a-1 on the main page 60a in response to the request.
With continued reference to fig. 17, the data migration request window 60a-1 may illustratively include information that guides the user in performing the operation, as well as one or more controls, such as a control 60a-11 (first entry) for rejecting the data migration request sent by cell phone a, and a control 60a-12 (second entry) for granting the data migration request sent by cell phone a.
It should be understood that the above description is only an example for better understanding of the technical solution of the present embodiment, and is not to be taken as the only limitation of the present embodiment.
And step S204, when the selected operation of the second entrance is detected, the data migration application providing the data migration function is invoked.
Still taking the data migration request window 60a-1 shown in fig. 17 as an example, with continuing reference to fig. 17, for example, after the user clicks the control 60a-12, the mobile phone B responds to the operation behavior of the user, if the data migration application is installed in the mobile phone B, the installed data migration application will be automatically pulled up (called up, or started), at this time, the display interface of the mobile phone B will be switched from 60a to 60B in fig. 17, that is, the start interface of the data migration application, and the data migration request window 60a-1 is cancelled.
Continuing with fig. 17, exemplarily, after the user clicks the control 60a-12, the mobile phone B responds to the operation behavior of the user, if the mobile phone B does not install the data migration application, a prompt window for prompting the user to download the installation data migration application is popped up on the page 60a, and in order to distinguish from the first prompt window and the second prompt window, which appear above, this embodiment is referred to as a third prompt window, so that the user may be prompted and guided to install the data migration application in the mobile phone B through the content displayed in the third prompt window.
It should be understood that this way of popping up the third prompt window on the display interface of the second electronic device in the case that the second electronic device does not have the data migration application installed is generally applicable to a scenario where the device type of the second electronic device is the same as that of the first electronic device, that is, the system integrates the Nearby service.
The style of the third prompt window may be, for example, as shown in fig. 18. Referring to fig. 18, for example, after the user clicks the control 60a-12, the cell phone B responds to the operation behavior of the user, and if the cell phone B does not install the data migration application, a third prompt window 60a-2 pops up on the page 60a of the cell phone B.
With continued reference to FIG. 18, the third prompt window 60a-2 may include information to guide the user in performing the operation, as well as one or more controls, such as a control 60a-21 for denying a jump to the application store to obtain an installation package for the data migration application, a control 60a-22 for agreeing to a jump to the application store to obtain an installation package for the data migration application, as examples.
For example, when the user clicks the controls 60a-22, the mobile phone B automatically jumps to an application store installed in the mobile phone B to start downloading the installation package of the data migration application in response to the operation behavior of the user, and automatically installs the data migration application after the downloading is completed.
Accordingly, after the data migration application installation package is installed, the data migration application is started, that is, the display page of the mobile phone B displays the page 60B shown in fig. 17.
Continuing with FIG. 17, illustratively, page 60b is a launch page for the data migration application, which includes a functional profile of the data migration application, along with the rights to acquire that are required to use the data migration application, as well as a control 60b-1 for denying the data migration application access and a control 60b-2 for agreeing to the data migration application access.
Understandably, if the user clicks on control 60b-1, page 60b will be exited and the data migration application will not be available.
It should be understood that the above description is only an example for better understanding of the technical solution of the present embodiment, and is not intended to limit the present embodiment.
And S205, establishing a hotspot information transmission channel according to the hotspot information.
Still taking the page 60B shown in fig. 17 as an example, and continuing with fig. 17, for example, after the user clicks the control 60B-2, the mobile phone B may jump from the page 60B to the page 60c being connected in response to the operation of the user.
Continuing with FIG. 17, page 60c may illustratively include one or more controls, such as control 60c-1 for exiting page 60c, and control 60c-2 for canceling the connection with cell phone A.
Continuing with fig. 17, for example, if the mobile phone B establishes the hotspot connection with the mobile phone a according to the hotspot information of the mobile phone a, the display interface of the mobile phone B is switched from the page 60c to the page 60d.
Continuing with FIG. 17, page 60d may illustratively include one or more controls, such as a control 60d-1 for exiting page 60d, a control 60d-2 for canceling the connection with cell phone A, and a control 60d-3 for selecting data that needs to be migrated.
Continuing with FIG. 17, for example, when the user clicks on control 60d-3, handset B responds to the user's action to switch the display from page 60d to page 60e of the selected data shown in FIG. 20.
Referring to fig. 20, for example, the page 60e may include one or more controls, such as a control 60e-1 for exiting the page 60e, a list 60e-2 of applications that need data migration is displayed, and a control 60e-3 for determining to send data of the selected application to the cell phone a.
Continuing with FIG. 20, exemplary list 60e-2 may include one or more controls, such as controls 60e-21 for selecting all applications in the list, controls 60e-22 for selecting contact applications individually, controls 60e-23 for selecting informational applications individually, controls 60e-24 for selecting call log applications individually, controls 60e-25 for selecting calendar applications individually, controls 60e-26 for selecting gallery applications individually, controls 60e-27 for selecting recording applications individually, controls 60e-28 for selecting applications and data individually (data for other applications installed in cell phone B), and so forth, which are not intended to be limiting.
Illustratively, after the user clicks 60e-21, the mobile phone B will select all the options displayed in the list 60e-2 in response to the operation behavior of the user, and after the user subsequently clicks 60e-3, will acquire the application data corresponding to all the options displayed in the list 60e-2 to generate corresponding backup data, and send the backup data of these applications to the mobile phone a through the established hotspot connection channel.
Illustratively, when the user clicks a control corresponding to any one of the applications in the list 60e-2, for example, the control 60e-22, and then the user clicks 60e-3, the data in the contact application is obtained to generate backup data, and the generated backup data is sent to the mobile phone a through the established hotspot connection channel.
It should be understood that the above description is only an example for better understanding of the technical solution of the present embodiment, and is not intended to limit the present embodiment.
In addition, it should be noted that, if the device type of the second electronic device selected by the user is different from the device type of the first electronic device, in order to ensure that the second electronic device can pop up a data migration request window on the display interface through the Nearby service, as shown in a window 60a-1 in fig. 17. Whether the native machine is provided with the data migration application integrated with the Nearby function needs to be detected, whether the data migration function is started needs to be detected, for example, whether the second electronic device receiving the data migration request starts the data migration application needs to be detected, and it is determined that the native machine is a data sending end for sending data through the controls 50a-c in the page 50a as shown in fig. 14.
Accordingly, the second electronic device may display a search waiting page upon detecting that the data migration function is turned on. Thus, if a data migration request is received under this page, a window pops up in the style 60a-1 in FIG. 17.
Further, it should be appreciated that the second electronic device appears on page 60b as shown in FIG. 17 when the data migration application is launched before the data migration request is received, and thus the user agrees to the rights required by the data migration application, i.e., the user enters page 50a as shown in FIG. 14 when clicking on control 60b-2. Therefore, under the condition that the data migration function is started, after the user clicks the control 60a-12, the mobile phone B responds to the operation behavior of the user, and establishes a hot connection with the mobile phone a directly according to the hot spot information of the mobile phone a carried in the data migration request sent by the mobile phone a, that is, enters the page 60c shown in fig. 17.
Correspondingly, after the display interface of the mobile phone B jumps from the page 60c to the page 60d, the mobile phone B establishes the hotspot connection with the mobile phone a at this time, so that the data to be migrated to the mobile phone a can be selected, and the backup data is sent to the mobile phone a through the established hotspot connection channel.
It should be understood that the above description is only an example for better understanding of the technical solution of the present embodiment, and is not to be taken as the only limitation of the present embodiment.
And step S107, establishing a hotspot information transmission channel.
It should be understood that, when the user clicks the control 60B-2 on the page 60B of the mobile phone B, the user agrees to the right that the data migration application needs to acquire, starts the data migration application, and enters the page 60c, and the display interface of the mobile phone a changes accordingly in the process of connecting with the mobile phone a.
Referring to fig. 19, for example, after the mobile phone B agrees to establish the hotspot with the mobile phone a, that is, after the control 60B-2 is clicked, the mobile phone a receives the feedback, the display interface is switched from the page 50c to the page 50d being connected.
Continuing with FIG. 19, the page 50d may illustratively include one or more controls, such as a control 50d-1 for exiting the page 50d, and a control 50d-2 for canceling the connection with the handset B.
Continuing with fig. 19, for example, if the hot spot connection channel between the mobile phone a and the mobile phone b is successfully established, that is, the hot spot connection is successful, the display interface of the mobile phone a is switched from the page 50d to the page 50e.
Continuing with FIG. 19, the page 50e may illustratively include one or more controls, such as a control 50e-1 for exiting the page 50e, and a control 50e-2 for canceling the connection with the handset B.
In addition, in order to remind the user that data to be migrated can be selected from the mobile phone B, a prompt message "please select data to be migrated at the mobile phone B" as shown in fig. 19 may be displayed in the page 50e of the mobile phone a.
It should be understood that the above description is only an example for better understanding of the technical solution of the present embodiment, and is not to be taken as the only limitation of the present embodiment.
In addition, it should be noted that, when the data migration application is not started or installed in the mobile phone B (the same device type as the mobile phone a), a specific flow for implementing data migration between the mobile phone a and the mobile phone B is shown in fig. 21, for example.
Referring to fig. 21, for example, after the data migration application of the mobile phone a is started, when the user clicks the control 50a-2 in fig. 14, the mobile phone a switches the display interface from the page 50a shown in fig. 14 to the page 50b in fig. 14 in response to the operation behavior of the user, that is, steps 1 and 2 in fig. 21 are completed.
Continuing to refer to fig. 21, exemplarily, after the display page of the mobile phone a is the page 50b, and after the user clicks the control 50b-2 in fig. 14, the mobile phone a responds to the operation behavior of the user, and the display interface is switched from the page 50b shown in fig. 14 to the page 50c shown in fig. 14, and at the same time, the device discovery interface provided by the bluetooth service of the mobile phone a is called, and the device discovery broadcast carrying the device information of the mobile phone a is sent out, that is, steps 3 to 5 in fig. 21 are completed.
Continuing with fig. 21, illustratively, the device discovery broadcast transmitted by handset a will be received by surrounding electronic devices, such as handset B. When receiving the device discovery broadcast sent by the mobile phone a, the mobile phone B responds to the device discovery broadcast, and if a response message carrying the device information of the mobile phone B is fed back to the mobile phone a, step 6 in fig. 21 is completed.
Continuing with fig. 21, for example, after the mobile phone a receives the response message of the mobile phone B, the old device selection list (the second electronic device selection list mentioned above) is displayed in the page 50c shown in fig. 14 according to the device information of the mobile phone B carried in the response message, that is, step 7 in fig. 21 is completed.
Continuing with fig. 21, for example, after the old device selection list is displayed in the page 50c of the mobile phone a, and after the user clicks a control in the old device selection list, such as the control 50c-4 shown in fig. 14, the mobile phone a sends a data migration request carrying the hot spot information of the mobile phone a to the mobile phone B in response to the operation behavior of the user, that is, steps 8 and 9 in fig. 21 are completed.
Continuing to refer to fig. 21, exemplarily, after the data migration request sent by the mobile phone a is received by the system Nearby service of the mobile phone B, the system Nearby service of the mobile phone B pulls up the system iconnect service of the mobile phone B through the callback interface, and sends the device information of the mobile phone a to the system iconnect service, so that the display interface of the mobile phone B displays which mobile phone the mobile phone B needs to establish a hot-spot connection with, that is, step 10 in fig. 21 is completed.
Still referring to fig. 21, before pulling up the data migration application, the system iconnect service of the mobile phone B detects whether the data migration application is installed in the mobile phone B, if the data migration application is installed in the mobile phone B, the window 60a-1 shown in fig. 17 is displayed in the display interface of the mobile phone B, and if the data migration application is not installed in the mobile phone B, the window 60a-2 shown in fig. 18 is displayed in the display interface of the mobile phone B, that is, steps 11 and 12 in fig. 21 are completed.
Continuing to refer to fig. 21, for the pop-up window 60a-2, for example, if the user clicks the control 602-22 in the window 60a-2, the mobile phone B responds to the operation behavior of the user, and the display interface is switched from the page 60a shown in fig. 17 to the page 60B shown in fig. 17; for the pop-up window 60a-1, if the user clicks the control 602-12 in the window 60a-1, the mobile phone B switches the display interface from the page 60a shown in fig. 17 to the page 60B shown in fig. 17 in response to the operation behavior of the user, that is, steps 13 and 14 in fig. 21 are completed.
Continuing to refer to fig. 21, for example, when the display interface of the mobile phone B is the page 60B shown in fig. 17, after the user clicks the control 60B-2 in the page 60B, the mobile phone B responds to the operation behavior of the user, and the system iconnect service of the mobile phone B pulls up the data migration application installed on the mobile phone B, so as to start the data migration application, that is, steps 15 and 16 in fig. 21 are completed.
Continuing with fig. 21, for example, after the data migration application of the mobile phone B is pulled up, the mobile phone B may establish a hot spot connection channel with the mobile phone a according to the hot spot information provided by the mobile phone a, that is, step 17 in fig. 21 is completed.
Correspondingly, after the mobile phone a and the mobile phone B establish the hotspot connection channel, the mobile phone B can transmit the backup data to the mobile phone B through the hotspot connection channel, thereby realizing migration of the data in the mobile phone B to the mobile phone a.
It should be understood that the above description is only an example for better understanding of the technical solution of the present embodiment, and is not to be taken as the only limitation of the present embodiment.
Therefore, when the surrounding second electronic devices are searched through the automatic discovery connection function, only the device discovery broadcast is sent, and the data migration request is not sent.
On the basis of the embodiment, in order to further simplify the user operation and enable the first electronic device and the second electronic device providing the backup data to quickly realize safe point-to-point connection, the first electronic device may further detect whether the local device supports the NFC function before calling a device discovery interface provided by the bluetooth service and sending a device discovery broadcast.
Accordingly, upon determining that the NFC functionality is natively supported, a second prompt window may be displayed on the display interface of the first electronic device.
Illustratively, the second prompt window is used to prompt the second electronic device providing the backup data to open the data migration application, and to touch the first electronic device and the second electronic device back to back.
For example, when a touch operation with a second electronic device that opens a data migration application is detected, a data migration request that carries device information and hotspot information of a first electronic device is sent to the second electronic device that opens the data migration application, so that which electronic device is to request to establish a hotspot connection can be displayed on a display interface of the second electronic device.
For example, after the connection is established with the second electronic device that opens the data migration application according to the hotspot information, the second electronic device may be operated to send the backup data to the first electronic device, and similarly, the first electronic device may receive the backup data sent by the second electronic device that opens the data migration application.
Furthermore, it should be understood that, in order to implement a peer-to-peer secure connection between the first electronic device and the second electronic device using the NFC function, the second electronic device also needs to support the NFC function.
In addition, if the mobile phone a does not support the NFC function, a step of calling a device discovery interface provided by the bluetooth service and transmitting a device discovery broadcast may be performed.
For better understanding of the scheme for implementing secure peer-to-peer connection with NFC spraying back-to-back, the following description is made with reference to fig. 22.
For example, referring to fig. 22, still regarding the first electronic device as a data receiving end and the second electronic device as a data transmitting end, the specific implementation steps of the embodiment of the present application may include steps S301 to S305 executed by the first electronic device, and steps S401 to S403 executed by the second electronic device. For convenience of description, the present embodiment takes the data migration operation starting from the first electronic device as an example.
Step S301, when detecting that the data migration function is turned on, displaying a device type selection list of the second electronic device providing the backup data.
Step S302, when the selection operation of any equipment type in the equipment type selection list is detected, displaying a second electronic equipment search page according to the selected equipment type.
It is to be understood that steps S301 and S302 are substantially the same as steps S101 and S102 in the embodiment shown in fig. 13, and specific implementation details may refer to the description of steps S101 and S102, which is not described herein again.
Step S303, whether NFC is supported.
Specifically, if the local computer is determined to support the NFC function, the local computer may collide with a second electronic device, which starts a data migration application and stays on a page to be searched, back to back; otherwise, the operations of steps S103 to S107 in fig. 13 are executed, and when the first electronic device executes the operations of steps S103 to S107 in fig. 13, the second electronic device correspondingly executes steps S201 to S205 in fig. 13.
For example, after determining that the NFC function is supported by the local device, if it is detected that the first electronic device and the second electronic device are collided back to back, the first electronic device may send the device information and the hotspot information of the first electronic device to the second electronic device.
Correspondingly, after the second electronic device currently on the page waiting for search receives the device information and the hotspot information sent by the first electronic device, a data migration request window pops up, that is, step S402 is executed.
Step S401, wait for a search page.
Step S402, popping up a data migration request window.
For example, the data migration request window waiting for the search page to pop up in the second electronic device in the present embodiment may be, for example, a window 60a-1 shown in fig. 17. Specifically, in this embodiment, after the user clicks the 60a-12 control in the window 60a-1, the display interface of the second electronic device is switched from the page waiting for search to the page 60c shown in fig. 17.
Step S304, the old device is waited for approval.
It will be appreciated that when the user clicks the 60a-12 control in the window 60a-1, the display interface of the first electronic device will switch from 50c shown in FIG. 14 to page 50d shown in FIG. 19.
Step S305, a hotspot information transmission channel is established.
Step S403, establishing a hotspot information transmission channel according to the hotspot information.
For example, after the first electronic device and the second electronic device establish the hot spot information transmission channel, the display page of the first electronic device is switched from the page 50d shown in fig. 19 to the page 50e, and the display page of the second electronic device is switched from the page 60c shown in fig. 17 to the page 60d.
In addition, it is easy to find that step S304 and step S305 are substantially the same as step S107 in the embodiment shown in fig. 13, and step S403 is substantially the same as step S205 in the embodiment shown in fig. 13, and specific implementation details may refer to the description of step S107, which is not described herein again.
Therefore, when the first electronic device and the second electronic device both support the NFC function, the user is directly prompted to realize point-to-point connection of the first electronic device and the second electronic device in a back-to-back touch-touch mode, and the NFC device is convenient and quick.
Furthermore, it is understood that the electronic device comprises corresponding hardware and/or software modules for performing the respective functions in order to implement the above-described functions. The present application is capable of being implemented in hardware or a combination of hardware and computer software in conjunction with the exemplary algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, with the embodiment described in connection with the particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In addition, it should be further noted that, in an actual application scenario, the data migration method provided by the foregoing embodiments implemented by the electronic device may also be executed by a chip system included in the electronic device, where the chip system may include a processor. The system-on-chip may be coupled to the memory, such that the computer program stored in the memory is called when the system-on-chip is run to implement the steps performed by the electronic device. The processor in the system on chip may be an application processor or a processor other than an application processor.
In addition, an embodiment of the present application further provides a computer-readable storage medium, where a computer instruction is stored in the computer-readable storage medium, and when the computer instruction runs on an electronic device, the electronic device is caused to execute the relevant method steps to implement the data migration method in the foregoing embodiment.
In addition, an embodiment of the present application further provides a computer program product, which, when running on an electronic device, causes the electronic device to execute the relevant steps described above, so as to implement the data migration method in the foregoing embodiment.
In addition, embodiments of the present application also provide a chip (which may also be a component or a module), which may include one or more processing circuits and one or more transceiver pins; the transceiver pin and the processing circuit communicate with each other through an internal connection path, and the processing circuit executes the related method steps to implement the data migration method in the above embodiment, so as to control the receiver pin to receive signals and control the transmitter pin to transmit signals.
In addition, as can be seen from the foregoing description, the electronic device, the computer readable storage medium, the computer program product, or the chip provided in the embodiments of the present application are all configured to execute the corresponding methods provided above, and therefore, the beneficial effects achieved by the electronic device, the computer readable storage medium, the computer program product, or the chip may refer to the beneficial effects in the corresponding methods provided above, which are not described herein again.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.
Claims (12)
1. A data migration method is applied to first electronic equipment, the first electronic equipment is provided with a data migration application providing a data migration function, the data migration application is integrated with a near function, and the method comprises the following steps:
when the data migration function is detected to be started, displaying a device type selection list of second electronic equipment providing backup data;
when the selection operation of any one device type in the device type selection list is detected, displaying a second electronic device search page according to the selected device type;
calling an equipment discovery interface provided by a Bluetooth service, and sending an equipment discovery broadcast;
receiving response information made according to the device discovery broadcast, wherein the response information includes device information of a second electronic device which receives the device discovery broadcast, a system of the second electronic device which receives the device discovery broadcast integrates a Nearby service, or installs the data migration application integrated with a Nearby function, and starts the data migration function, and the second electronic device which receives the device discovery broadcast does not establish communication connection with the first electronic device;
displaying a second electronic equipment selection list on the second electronic equipment search page according to the equipment information;
when detecting the selection operation of any second electronic device in the second electronic device selection list, sending a data migration request to the selected second electronic device, wherein the data migration request carries hotspot information of the first electronic device;
and after connection with the selected second electronic equipment is established according to the hotspot information, receiving backup data sent by the selected second electronic equipment.
2. The method of claim 1, wherein displaying a second electronic device search page according to the selected device type comprises:
when the selected device type is a first device type, displaying a search page of the second electronic device, wherein the first device type is the same as the device type of the first electronic device;
when the selected device type is a second device type, displaying a first prompt window, wherein the first prompt window is used for prompting that the data migration application is installed in a second electronic device which provides the backup data, and is provided with a page jump inlet which jumps to a search page of the second electronic device, and the second device type is different from the device type of the first electronic device;
and when the selected operation of the page jump inlet is detected, displaying the search page of the second electronic equipment.
3. The method according to claim 2, wherein the first prompt window is further provided with a first download inlet, and the first download inlet provides an obtaining manner for obtaining the installation package of the data migration application.
4. The method of claim 2, wherein prior to said invoking the device discovery interface of the bluetooth service offering, sending the device discovery broadcast, the method further comprises:
detecting whether a Near Field Communication (NFC) function is supported or not;
displaying a second prompt window when the NFC function is supported, wherein the second prompt window is used for prompting that the data migration application is opened in second electronic equipment providing the backup data, and the first electronic equipment and the second electronic equipment are in back-to-back collision;
when touch operation with the second electronic device which opens the data migration application is detected, sending a data migration request to the second electronic device which opens the data migration application, wherein the data migration request carries hotspot information of the first electronic device;
after connection is established with the second electronic equipment which opens the data migration application according to the hotspot information, receiving backup data sent by the second electronic equipment which opens the data migration application;
and when the NFC function is not supported, executing the step of calling a device discovery interface provided by the Bluetooth service and sending a device discovery broadcast.
5. The method according to any one of claims 1 to 4, wherein a second download portal is further provided in the second electronic device search page, and the second download portal provides a manner of obtaining the installation package of the data migration application.
6. The method according to any one of claims 1 to 4, wherein a non-auto discovery connection portal is further provided in the second electronic device search page, and the non-auto discovery connection portal provides a way to establish a connection with the second electronic device of the data migration application.
7. A data migration method, applied to a second electronic device, a system of which integrates a Nearby service, or installs a data migration application integrated with a Nearby function, and opens the data migration function, wherein the second electronic device does not establish a communication connection with a first electronic device, the method comprising:
when a data migration request sent by the first electronic device is received, displaying a data migration request window, wherein the data migration request window is provided with a first entrance and a second entrance, the first entrance is used for rejecting the data migration request, and the second entrance is used for agreeing to the data migration request;
when the selected operation on the second entrance is detected, the data migration application providing the data migration function is invoked;
establishing connection with the first electronic equipment according to the hotspot information of the first electronic equipment carried in the data migration request;
after connection with the first electronic equipment is established, sending backup data to the first electronic equipment;
the first electronic equipment is provided with a data migration application integrated with a Nearby function;
the data migration request sent by the first electronic device is realized based on the following modes:
the method comprises the steps that when the first electronic equipment detects that a data migration function is started, an equipment type selection list of second electronic equipment providing backup data is displayed;
when the first electronic equipment detects the selection operation of any equipment type in the equipment type selection list, displaying a second electronic equipment search page according to the selected equipment type;
the first electronic equipment calls an equipment discovery interface provided by a Bluetooth service and sends equipment discovery broadcast;
the first electronic device receiving response information made according to the device discovery broadcast, wherein the response information comprises device information of a second electronic device receiving the device discovery broadcast;
the first electronic equipment searches a page on the second electronic equipment according to the equipment information and displays a second electronic equipment selection list;
when the first electronic device detects the selection operation of any second electronic device in the second electronic device selection list, the first electronic device sends the data migration request to the selected second electronic device, wherein the data migration request carries the hotspot information of the first electronic device.
8. The method of claim 7, wherein prior to the displaying the data migration request window, the method further comprises:
detecting whether the data migration application is installed;
when the data migration application is detected, executing the step of displaying the data migration request window;
and when the data migration application is not detected, displaying a third prompt window, wherein the third prompt window is used for prompting that the data migration application is installed on the second electronic equipment.
9. The method of claim 7, wherein the device type of the second electronic device is a first device type, and wherein the first device type is the same as the device type of the first electronic device.
10. The method of claim 7, wherein the device type of the second electronic device is a second device type, and wherein the second device type is different from the device type of the first electronic device;
before receiving the data migration request sent by the first electronic device, the method further includes:
detecting whether a data migration function is started or not;
displaying a waiting search page when the data migration function is detected to be started;
when a data migration request sent by the first electronic equipment is received under the search waiting page, displaying a data migration request window;
when the selected operation of the second entrance is detected, establishing connection with the first electronic equipment according to the hotspot information of the first electronic equipment carried in the data migration request;
and after the connection with the first electronic equipment is established, sending backup data to the first electronic equipment.
11. An electronic device, characterized in that the electronic device comprises: a memory and a processor, the memory and the processor coupled; the memory stores program instructions that, when executed by the processor, cause the electronic device to perform the data migration method of any of claims 1 to 6, or the data migration method of any of claims 7 to 10.
12. A computer-readable storage medium, characterized by comprising a computer program which, when run on an electronic device, causes the electronic device to perform the data migration method of any one of claims 1 to 6, or the data migration method of any one of claims 7 to 10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210528399.5A CN114640974B (en) | 2022-05-16 | 2022-05-16 | Data migration method, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210528399.5A CN114640974B (en) | 2022-05-16 | 2022-05-16 | Data migration method, device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114640974A CN114640974A (en) | 2022-06-17 |
CN114640974B true CN114640974B (en) | 2022-10-21 |
Family
ID=81953208
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210528399.5A Active CN114640974B (en) | 2022-05-16 | 2022-05-16 | Data migration method, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114640974B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114845290B (en) * | 2022-06-30 | 2022-11-08 | 荣耀终端有限公司 | Data migration method, electronic device and computer-readable storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110737645A (en) * | 2019-10-15 | 2020-01-31 | 深圳金蝶账无忧网络科技有限公司 | data migration method between different systems, data migration system and related equipment |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8447735B2 (en) * | 2010-12-14 | 2013-05-21 | International Business Machines Corporation | Backing up data objects identified by search program and corresponding to search query |
CN107276888A (en) * | 2017-07-06 | 2017-10-20 | 广东欧珀移动通信有限公司 | Data sharing method and device, server, mobile terminal and storage medium |
CN114205364B (en) * | 2020-08-27 | 2023-09-22 | 华为技术有限公司 | Data backup method and equipment |
CN112346887A (en) * | 2020-11-03 | 2021-02-09 | 深圳Tcl新技术有限公司 | Data processing method, data processing device, display device and computer-readable storage medium |
CN113162997B (en) * | 2021-04-02 | 2022-04-12 | 深圳市网旭科技有限公司 | Data transmission method and device, electronic equipment and readable storage medium |
-
2022
- 2022-05-16 CN CN202210528399.5A patent/CN114640974B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110737645A (en) * | 2019-10-15 | 2020-01-31 | 深圳金蝶账无忧网络科技有限公司 | data migration method between different systems, data migration system and related equipment |
Also Published As
Publication number | Publication date |
---|---|
CN114640974A (en) | 2022-06-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108476060B (en) | Method for establishing classic Bluetooth connection between dual-mode Bluetooth devices and dual-mode Bluetooth device | |
CN108702414B (en) | Screen locking method and device and computer readable storage medium | |
EP3163803B1 (en) | Method and device for establishing connection | |
EP3096565B1 (en) | Method and apparatus for accessing wireless network by terminal device | |
CN104320774B (en) | Upgrading method, device and equipment | |
EP3116165B1 (en) | Method and device for testing a terminal | |
US20220350563A1 (en) | Preview Display Method Based on Multi-Angle and Communication System | |
KR102374740B1 (en) | Electronic apparatus and Method for operating bidirectional communication in the Electronic apparatus | |
CN110572508B (en) | Address book synchronization method and device, storage medium and electronic equipment | |
CN114845290B (en) | Data migration method, electronic device and computer-readable storage medium | |
CN110870353B (en) | WiFi connection method and terminal | |
CN114640974B (en) | Data migration method, device and storage medium | |
EP4106377A1 (en) | Verification information processing method and apparatus, terminal device and storage medium | |
CN106612149B (en) | Radio frequency circuit testing method, device and system and mobile terminal | |
CN113157368B (en) | Screen locking method and device | |
CN114930937B (en) | Wireless sensing resource coordination method, device and storage medium | |
KR20170138383A (en) | Method and apparatus for performing function in mobile terminal using short range communication | |
KR20110045154A (en) | Apparatus and method for connecting the access point in portable communication system | |
US11678391B2 (en) | Communication methods and electronic devices | |
CN111565388B (en) | Network registration method and electronic equipment | |
CN111656346B (en) | Display method and terminal | |
US20130252555A1 (en) | Apparatus and method for link setup using electric field | |
KR20120014957A (en) | Apparatus and method for improving capability of wi-fi in wireless communication system | |
CN112492575B (en) | Execution path setting method and device, storage medium and mobile terminal | |
CN111182141B (en) | Method, device and storage medium for acquiring state of terminal device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |