CN106850862A - Method and device from transmitting terminal to receiving terminal migrating data - Google Patents

Method and device from transmitting terminal to receiving terminal migrating data Download PDF

Info

Publication number
CN106850862A
CN106850862A CN201710205373.6A CN201710205373A CN106850862A CN 106850862 A CN106850862 A CN 106850862A CN 201710205373 A CN201710205373 A CN 201710205373A CN 106850862 A CN106850862 A CN 106850862A
Authority
CN
China
Prior art keywords
network
receiving terminal
data
terminal
transmitting terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710205373.6A
Other languages
Chinese (zh)
Other versions
CN106850862B (en
Inventor
王双
宋亮
皮素梅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201710205373.6A priority Critical patent/CN106850862B/en
Publication of CN106850862A publication Critical patent/CN106850862A/en
Application granted granted Critical
Publication of CN106850862B publication Critical patent/CN106850862B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of transmitting terminal to the method and device of receiving terminal migrating data, belong to field of terminal technology.The method includes:If the network identity of the current connected network of transmitting terminal is consistent with the network identity of the current connected network of receiving terminal, network protocol IP address and port numbers that network is used currently are connected using receiving terminal, setting up FTP FTP with the receiving terminal is connected;Connected by the FTP and send to the receiving terminal target data to be migrated.In embodiments of the present invention, transmitting terminal is based on the IP address and port numbers of receiving terminal, FTP can be directly set up with the receiving terminal for being connected consolidated network to connect, and then migrating data, and migrated without other-end, so as to simplify data migration process, while by the risk of other-end leak data in reducing transition process.

Description

Method and device from transmitting terminal to receiving terminal migrating data
Technical field
The present invention relates to field of terminal technology, method from more particularly to a kind of transmitting terminal to receiving terminal migrating data and dress Put.
Background technology
With the fast development of terminal technology, the speed that terminal staging is regenerated is more and more faster, correspondingly, people's changes terminal Frequency also more and more higher, such as people may can eliminate old mobile phone, change new cell-phone every the time of 2 years or so.Work as people When changing new cell-phone, on some Data Migrations that will can be stored in old mobile phone to new cell-phone, it is continuing with new cell-phone These data, such as contact number, short message, application software, multimedia file etc..
For the ease of description, by old mobile phone etc. for sending the terminal referred to as transmitting terminal of data to be migrated, by new cell-phone etc. Terminal referred to as receiving terminal for receiving data to be migrated.At present, generally use side from transmitting terminal to receiving terminal migrating data Method is:Transmitting terminal by data wire by the terminals such as data copy to be migrated to computer, then again will be to be migrated by data wire Data is activation to receiving terminal, to realize Data Migration.
Realize it is of the invention during, inventor find prior art at least there is problems with:
During Data Migration, transmitting terminal is needed first by data is activation to be migrated to other-end, such as computer etc., Again by other-end by data is activation to be migrated to receiving terminal, data migration process is relatively complicated, and due to needing by other Terminal carrys out migrating data, therefore increased the risk of leak data in transition process.
The content of the invention
In order to solve problem of the prior art, a kind of transmitting terminal is the embodiment of the invention provides to receiving terminal migrating data Method and device.The technical scheme is as follows:
First aspect, there is provided method from a kind of transmitting terminal to receiving terminal migrating data, methods described includes:
If the network identity of the current connected network of transmitting terminal is consistent with the network identity of the current connected network of receiving terminal, Then currently connected using receiving terminal procotol IP (Internet Protocol, procotol) addresses that network used and Port numbers, set up FTP (File Transfer Protocol, FTP) and connect with the receiving terminal;
Connected by the FTP and send to the receiving terminal target data to be migrated.
Alternatively, obtain receiving terminal by following steps and currently connect network protocol IP address and the port that network is used Number, and the current connected network of the receiving terminal network identity:
The Quick Response Code that the receiving terminal shows is scanned, the Quick Response Code is currently to connect net based on the receiving terminal IP address and port numbers that network is used, and the network identity generation of the current connected network of the receiving terminal are obtained;
Quick Response Code to scanning is identified, obtain IP address that the current connection network of the receiving terminal used and Port numbers, and the current connected network of the receiving terminal network identity.
Alternatively, methods described also includes:
The size of data that will have been sent divided by the total size of the target data value as transmission progress, and send institute The transmission progress is shown during stating target data.
Second aspect, there is provided method from a kind of transmitting terminal to receiving terminal migrating data, methods described includes:
When Data Migration instruction is received, the IP address and port numbers and the hair used based on current connection network Sending end sets up FTP connections;
Connected by the FTP and receive the data that the transmitting terminal sends.
Alternatively, described connection by the FTP receives the data that the transmitting terminal sends, including:
The schedule file that the transmitting terminal sends is received, the schedule file includes transmitting terminal target to be migrated The total size of data;
The size of data that will have been received divided by the total size of the target data value as reception progress, and receive institute The reception progress is shown during stating target data.
The third aspect, there is provided device from a kind of transmitting terminal to receiving terminal migrating data, described device includes:
Connection establishment module, if for the network identity and the current connected net of receiving terminal of the current connected network of transmitting terminal The network identity of network is consistent, then IP address and port numbers that network is used currently are connected using receiving terminal, with the receiving terminal Set up FTP connections;
Data transmission blocks, are sent to the receiving terminal target data to be migrated for being connected by the FTP.
Alternatively, the connection establishment module is used to currently connect what network was used by following steps acquisition receiving terminal Network protocol IP address and port numbers, and the current connected network of the receiving terminal network identity:
The Quick Response Code that the receiving terminal shows is scanned, the Quick Response Code is currently to connect net based on the receiving terminal IP address and port numbers that network is used, and the network identity generation of the current connected network of the receiving terminal are obtained;
Quick Response Code to scanning is identified, obtain IP address that the current connection network of the receiving terminal used and Port numbers, and the current connected network of the receiving terminal network identity.
Alternatively, described device also includes:
Transmission progress display module, the size of data for that will send is made divided by the value of the total size of the target data To send progress, and the transmission progress is shown during the target data is sent.
Fourth aspect, there is provided device from a kind of transmitting terminal to receiving terminal migrating data, described device includes:
Connection establishment module, for when Data Migration instruction is received, based on the IP ground that current connection network is used Location and port numbers are set up FTP and are connected with the transmitting terminal;
Data reception module, the data that the transmitting terminal sends are received for being connected by the FTP.
Alternatively, the data reception module includes:
Receiving unit, for receiving the schedule file that the transmitting terminal sends, the schedule file includes the transmission The total size of end target data to be migrated;
Reception progress display unit, the size of data for that will receive is made divided by the value of the total size of the target data To receive progress, and the reception progress is shown during the target data is received.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:In embodiments of the present invention, if transmitting terminal The network identity of current connected network is consistent with the network identity of the current connected network of receiving terminal, it is determined that transmitting terminal with connect Receiving end is currently connected to consolidated network, at this point it is possible to FTP is directly set up with receiving terminal be connected, and will by the FTP connections set up Target data to be migrated is sent to receiving terminal, and carrys out migrating data without other-end, so as to simplify Data Migration Process, while by the risk of other-end leak data in reducing transition process.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to that will make needed for embodiment description Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is a kind of flow chart of method of the transmitting terminal provided in an embodiment of the present invention to receiving terminal migrating data;
Fig. 2 is the flow chart of method of another transmitting terminal provided in an embodiment of the present invention to receiving terminal migrating data;
Fig. 3 A are a kind of block diagrams of device of the transmitting terminal provided in an embodiment of the present invention to receiving terminal migrating data;
Fig. 3 B are the block diagrams of device of another transmitting terminal provided in an embodiment of the present invention to receiving terminal migrating data;
Fig. 4 A are a kind of block diagrams of device of the transmitting terminal provided in an embodiment of the present invention to receiving terminal migrating data;
Fig. 4 B are a kind of block diagrams of data reception module provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
A kind of method of transmitting terminal to receiving terminal migrating data is the embodiment of the invention provides, referring to Fig. 1, the method bag Include:
Step 101:If the network of the network identity of the current connected network of transmitting terminal and the current connected network of receiving terminal Mark is consistent, then IP address and port numbers that network is used currently are connected using receiving terminal, and setting up FTP with receiving terminal is connected.
Specifically, transmitting terminal can obtain the network identity of the current connected network of receiving terminal, and receiving terminal currently connects IP address and port numbers that network is used are connect, afterwards, the network identity of the current connected network of receiving terminal and transmitting terminal is worked as The network identity of preceding connected network is compared, if the network identity of the current connected network of transmitting terminal and the current institute of receiving terminal The network identity for connecting network is consistent, then IP address and port numbers that network is used currently are connected using receiving terminal, with reception FTP connections are set up at end.
Wherein, when Data Migration is carried out, receiving terminal can receive Data Migration instruction, and now, receiving terminal will can work as The network identity of preceding connected network, and IP address and port numbers that currently connection network is used generate Quick Response Code, and show Show the Quick Response Code.Afterwards, transmitting terminal can scan the Quick Response Code that receiving terminal shows, so as to get the current connected net of receiving terminal The network identity of network, and the IP address and port numbers that current connection network is used.
It should be noted that the network identity of the current connected network of receiving terminal is obtained by way of Quick Response Code, and The IP address and port numbers that current connection network is used are a kind of implementation, and in practical application, transmitting terminal can also lead to Cross other modes to obtain, such as, bluetooth connection can be set up with receiving terminal, the current institute of receiving terminal is obtained by way of bluetooth The network identity of network, and the IP address and port numbers that current connection network is used are connected, the embodiment of the present invention is obtained to this The mode of taking is not specifically limited.
Step 102:Transmitting terminal is connected by the FTP for setting up and sends to receiving terminal target data to be migrated.
When transmitting terminal and receiving terminal are set up after FTP is connected, can be sent to for target data to be migrated and connect by transmitting terminal Receiving end.Afterwards, the FTP that receiving terminal can pass through to set up connects the data that receiving end/sending end sends, to realize transmitting terminal to reception Hold the purpose of migrating data.
In embodiments of the present invention, if the network identity of the current connected network of transmitting terminal and the current connected net of receiving terminal The network identity of network is consistent, it is determined that transmitting terminal is currently connected to consolidated network with receiving terminal, at this point it is possible to direct with receiving terminal FTP connections are set up, and target data to be migrated is sent to by receiving terminal by the FTP connections set up, and without other Terminal carrys out migrating data, so as to simplify the process of Data Migration, while revealing number by other-end in reducing transition process According to risk.
A kind of method of transmitting terminal to receiving terminal migrating data is the embodiment of the invention provides, referring to Fig. 2, the method bag Include:
Step 201:When receiving terminal receives Data Migration to be instructed, the IP address that is used based on current connection network and Port numbers, and current connected network network identity, generate and two-dimensional code display.
Specifically, when receiving terminal receives Data Migration to be instructed, it can be determined that currently whether connected network.If worked as Preceding to have connected network, then receiving terminal is based on the IP address and port numbers that current connection network is used, and current connected net The network identity of network, generates and two-dimensional code display.
Due to needing to carry out Data Migration by network between receiving terminal and transmitting terminal, therefore, when receiving terminal receives number During according to migration instruction, it is necessary first to which whether judgement has currently connected network, when the currently attached network of receiving terminal, it is determined that receiving Data Migration can be carried out by network between end and transmitting terminal.Now, receiving terminal is based on the IP that current connection network is used Address and port numbers, and current connected network network identity, generate and two-dimensional code display.
It should be noted that the Data Migration is instructed for indicating transmitting terminal to receiving terminal migrating data, and the data are moved Moving instruction can in the receiving end be triggered by the user of currently used receiving terminal by assigned operation, and the assigned operation can be right Clicking operation, the slide of desired guiding trajectory, voice operating of the Data Migration option of receiving terminal etc..
In addition, can be installed in receiving terminal and transmitting terminal changed planes application with key one by one, key application of changing planes can lead to Cross File Transfer Protocol and FTP connections are set up between receiving terminal and transmitting terminal, receiving terminal and transmitting terminal can be by FTP connection migration numbers According to so as to be changed planes.Such as, when user is needed the Data Migration of old mobile phone to new cell-phone, that is to say user need into Row is when changing planes, and a key can be installed due to old mobile phone and new cell-phone and is changed planes application, and the application can provide the user it is new and old Handset-selected interface, therefore when user opens the new and old handset-selected interface of the application in new cell-phone, new hand can be selected Machine option, so as to new cell-phone is set into receiving terminal, when user opens the new and old handset-selected interface of the application in old mobile phone When, old mobile phone option can be selected, so as to old mobile phone is set into transmitting terminal.Afterwards as the new cell-phone of receiving terminal and as hair The old mobile phone of sending end can be changed planes using execution method of the transmitting terminal to receiving terminal migrating data by a key.
Wherein, receiving terminal can be by IP address that current connected network is receiving terminal distribution, port numbers and current The network identity of connected network, is combined with preset format, generates one group of character string, and the character string is passed through into SDK (Software Development Kit, SDK) interface conversion is the Quick Response Code of Bitmap forms and shows. Wherein, the network identity can be the SSID (Service Set Identifier, service set) of current connected network.
Such as, current connected network is that the IP address of receiving terminal distribution can be 192.168.225.46, port numbers Can be 8899, the network identity of current connected network can be the SSID of the network, the SSID can be abcd, preset lattice Formula can be " host-host protocol://IP address:Port numbers:Network SSID ", then the character string of receiving terminal generation can be ftp:// 192.168.225.46:8899:The character string can be converted to the Quick Response Code of Bitmap forms and shown by abcd, receiving terminal.
Further, before receiving terminal generation Quick Response Code, receiving terminal can also be generated and show transmitting terminal networking prompting Message, transmitting terminal networking prompting message is used to point out user that transmitting terminal is connected into the current connected network of receiving terminal.
When transmitting terminal is connected to the current connected network of receiving terminal, that is to say that receiving terminal is currently connected to transmitting terminal Consolidated network, afterwards when transmitting terminal and receiving terminal carry out Data Migration, transmitting terminal directly can send data to receiving terminal, and Carry out migrating data without other-end, such that it is able to simplify the process of Data Migration, while being let out in reducing transition process Reveal the risk of data.
Further, if receiving terminal is currently not connected with network, receiving terminal can be generated and show that network connection is pointed out Message, the network connection prompting message is used to point out user that receiving terminal is connected into network;In display, the connection network prompts disappear After breath, until detecting when having connected network, the IP address and port numbers used based on current connection network are performed, and The step of network identity of current connected network, generation and two-dimensional code display.Wherein, receiving terminal can be by ejecting prompting frame The connection network prompts message is shown etc. mode, receiving terminal can be connected to focus or WLAN (Wireless by user afterwards Local Area Network, WLAN) so that receiving terminal is connected to network, so as to continue executing with the transmitting terminal to connecing The method of receiving end migrating data.
Step 202:Transmitting terminal is scanned to the Quick Response Code that receiving terminal shows, and Quick Response Code to scanning is known , do not obtain receiving terminal and currently connect IP address and port numbers that network is used, and the current connected network of receiving terminal net Network is identified.
Wherein, transmitting terminal is identified by the Quick Response Code for scanning, and obtains the corresponding character string of the Quick Response Code, so that The character string can be parsed according to preset format, to obtain the IP address of receiving terminal, port numbers and current connected The network identity of network.
In embodiments of the present invention, receiving terminal can not only ensure that transmitting terminal can be obtained by way of Quick Response Code Currently connect IP address and port numbers that network is used to receiving terminal, and the current connected network of receiving terminal network mark Know, certainly, in practical application, can also determine that transmitting terminal can get receiving terminal and currently connect network by other method The IP address and port numbers for being used, and the current connected network of receiving terminal network identity, such as, and receiving terminal can will work as IP address and port numbers that preceding connection network is used, and the network identity of the current connected network of receiving terminal are broadcasted, And then transmitting terminal can obtain receiving terminal and currently connect IP address and port numbers that network is used by receiving broadcast message, And the network identity of the current connected network of receiving terminal.For another example, receiving terminal can show what current connection network was used IP address and port numbers, and the current connected network of receiving terminal network identity, see in the user of currently used transmitting terminal After IP address, port numbers and network identity that receiving terminal shows, IP address, the port numbers that can be shown receiving terminal by user With IP address input frame, port numbers input frame and the network identity input frame that network identity is manually entered into transmitting terminal so that Transmitting terminal gets receiving terminal and currently connects IP address and port numbers that network is used, and the current connected network of receiving terminal Network identity.
Step 203:If the network of the network identity of the current connected network of transmitting terminal and the current connected network of receiving terminal Mark is consistent, then IP address and port numbers that network is used currently are connected using receiving terminal, and setting up FTP with receiving terminal is connected.
Specifically, transmitting terminal may determine that the network identity of the current connected network of transmitting terminal is current connected with receiving terminal The network identity of network is consistent, if unanimously, it is determined that transmitting terminal and receiving terminal are currently connected to consolidated network.Afterwards, send End can utilize that receiving terminal currently connects IP address that network used and port numbers are set up FTP and are connected with receiving terminal.
Wherein, transmitting terminal sends connection request by current connected network to receiving terminal, is carried in the connection request Username and password needed for connection receiving terminal, when receiving terminal receives the connection request, by what is carried in the connection request Username and password is contrasted with the username and password of storage, when both are consistent, determines that transmitting terminal can be based on reception IP address and port numbers that the current connection network in end is used, set up FTP and are connected by File Transfer Protocol and receiving terminal.That is to say, send out The FTP that sending end is set up with receiving terminal is connected can be for FTP be connected.Can realize that receiving terminal is carried out to transmitting terminal by above-mentioned steps The process of authentication, afterwards transmitting terminal set up FTP with receiving terminal and be connected, so as to realize transmitting terminal log in receiving terminal process.Wherein, In the connection request carry username and password for transmitting terminal install a key change planes application in advance set user name and Password, the username and password is used to be connected and installed with the receiving terminal of application of being changed planes with key one by one, with distinguish be provided with other one Key is changed planes the receiving terminal of application.
Further, set up after FTP is connected in transmitting terminal and receiving terminal, receiving terminal can in real time monitor the behaviour of transmitting terminal Make, such as transmitting terminal connection or the operation of disconnection receiving terminal, and the operation such as transmitting file on transmitting terminal.
Further, when the network identity and the network of the current connected network of receiving terminal of the current connected network of transmitting terminal When identifying inconsistent, determine that transmitting terminal is not currently connected to consolidated network with receiving terminal, now, transmitting terminal can be generated and shown Network connection abnormal prompt message, the network connection abnormal prompt message is used to point out user's receiving terminal not connect currently with transmitting terminal Consolidated network is connected to, and points out user that transmitting terminal is connected into the current connected network of receiving terminal.
Step 204:Transmitting terminal is connected by the FTP for setting up and for target data to be migrated to be sent to receiving terminal.
Wherein, target data is compressed packing by transmitting terminal according to default file form, then will compress the number of packing According to by the FTP linkup transmits to receiving terminal.
Further, transmitting terminal is connected by the FTP, and before target data is sent into receiving terminal, transmitting terminal can be with Total size based on target data, generates schedule file, and the schedule file is sent into receiving terminal.Wherein, the schedule file Can be the file of txt forms, i.e. text, certainly, in practical application, the schedule file can also be the text of extended formatting Part.
Because target data can be the data file of multiple types, such as contact person, message registration, short message, multimedia message, day The data file of the system types such as journey, multimedia, and application software, alarm clock data, wireless network password, blue-teeth data and The data file of the application types such as desktop icons layout, therefore, before schedule file is sent to receiving terminal by transmitting terminal, may be used also It is added in the schedule file with by the title of each data file, type and size, is then sent to receiving terminal.
In addition, transmitting terminal can show the transmission aggregate scheduling of all data files, certainly, due to can be with schedule file Title, type and size including each data file, therefore for each data file in multiple data files, transmitting terminal The size of data that the data file has sent can also be determined, and the size of data that the data file has been sent is divided by the data The total size of file, obtains the transmission progress of the data file, therefore, the mistake of the data file is sent to receiving terminal in transmitting terminal Cheng Zhong, can also show the transmission progress of the data file, that is to say the process for sending data file to receiving terminal in transmitting terminal In, can simultaneously show the transmission aggregate scheduling of all data files and the transmission progress of the current data file for migrating.
Furthermore, before target data is sent to receiving terminal by transmitting terminal, transmitting terminal can also carry out target data standby Part, it is sent to after receiving terminal with by target data, transmitting terminal can be continuing with target data, from without influence transmitting terminal Target data is called.
During target data is sent to receiving terminal by transmitting terminal, when the FTP connections between transmitting terminal and receiving terminal During interruption, transmitting terminal can also determine current transmission progress and the data for having sent, with when between transmitting terminal and receiving terminal FTP connection recover when, the data is activation that transmitting terminal will directly can not send to receiving terminal, and without send whole targets Data, so as to save the Data Migration time, while avoiding receiving terminal from receiving repeated data, take the internal memory of receiving terminal.
Step 205:Receiving terminal is connected by the FTP for setting up, the data that receiving end/sending end sends.
Further, the schedule file that receiving terminal can be sent with receiving end/sending end, the schedule file includes transmitting terminal mesh Mark the total size of data.During receiving terminal connects the data that receiving end/sending end sends by the FTP, it is determined that received Size of data, the size of data that will have been received obtains reception progress divided by the total size of target data, and show this receive into Degree.
Further, receiving terminal can show the reception aggregate scheduling of all data files, certainly, because transmitting terminal sends Schedule file in can also include each data file waiting for transmission title, type and size, therefore, for multiple data Each data file in file, receiving terminal can determine the size of data that the data file has been received, and by the data file The size of data for having received obtains the reception progress of the data file divided by the total size of the data file, therefore, in receiving terminal During receiving the data file, the reception progress of the data file can also be shown, that is to say and receive data in receiving terminal During file, the reception aggregate scheduling of all data files and connecing for the current data file for migrating can be simultaneously shown Degree of takeing in.
Because the data that transmitting terminal sends can include answering for the application that the system data or transmitting terminal of transmitting terminal are installed With data, therefore, after the data that receiving terminal receiving end/sending end sends, when detecting data recovery and instructing, will can connect The data of receipts are decompressed with default file form, in being restored to system or each self-corresponding application, so that receiving terminal can be with Call the data of reception.That is to say, when receiving terminal is new cell-phone, and transmitting terminal is old mobile phone, by above-mentioned steps 201 to step 205 can realize that a key is changed planes.
It should be noted that the data recovery is instructed for the data convert that will be received to system or each self-corresponding application In, and data recovery instruction can be triggered by the user of currently used receiving terminal by assigned operation, the assigned operation can be with It is clicking operation, the slide of desired guiding trajectory, voice operating to the data recovery option of receiving terminal etc..
In embodiments of the present invention, when receiving terminal receives Data Migration instruction, and during currently attached network, Ke Yisheng Into the Quick Response Code of the network identity of IP address, port numbers and current connected network including receiving terminal, transmitting terminal is by sweeping Retouch and recognize that the Quick Response Code can obtain the IP address and port numbers of receiving terminal, so that when transmitting terminal is currently connected based on receiving terminal The network identity of network, it is determined that when being currently connected to consolidated network with receiving terminal, both can set up FTP connections, and directly lead to Crossing the FTP connections set up directly carries out Data Migration, and carrys out migrating data without other-end, is moved so as to simplify data The process of shifting, while by the risk of other-end leak data in reducing transition process.
Referring to Fig. 3 A, a kind of device 300 of transmitting terminal to receiving terminal migrating data, the device are the embodiment of the invention provides Including:Connection establishment module 301 and data transmission blocks 302.
Connection establishment module 301, if currently connecting for the network identity and receiving terminal of the current connected network of transmitting terminal The network identity for connecing network is consistent, then IP address and port numbers that network is used currently are connected using receiving terminal, with receiving terminal Set up FTP connections;
Data transmission blocks 302, are sent to receiving terminal target data to be migrated for being connected by the FTP.
Alternatively, connection establishment module 301 is used to currently connect what network was used by following steps acquisition receiving terminal IP address and port numbers, and the current connected network of receiving terminal network identity:
The Quick Response Code that receiving terminal shows is scanned, the Quick Response Code is currently connected network based on receiving terminal and used IP address and port numbers, and the network identity generation of the current connected network of receiving terminal are obtained;
Quick Response Code to scanning is identified, and obtains IP address and port that the current connection network of receiving terminal is used Number, and the current connected network of receiving terminal network identity.
Alternatively, referring to Fig. 3 B, the device also includes:
Transmission progress display module 303, the size of data for that will send is made divided by the value of the total size of target data To send progress, and the transmission progress is shown during target data is sent.
In embodiments of the present invention, if the network identity of the current connected network of transmitting terminal and the current connected net of receiving terminal The network identity of network is consistent, it is determined that transmitting terminal is currently connected to consolidated network with receiving terminal, at this point it is possible to direct with receiving terminal FTP connections are set up, and target data to be migrated is sent to by receiving terminal by the FTP connections set up, and without other Terminal carrys out migrating data, so as to simplify the process of Data Migration, while revealing number by other-end in reducing transition process According to risk.
Referring to Fig. 4 A, a kind of device 400 of transmitting terminal to receiving terminal migrating data, the device are the embodiment of the invention provides Including:Data set up module 401 and data reception module 402.
Connection establishment module 401, during for being instructed in the Data Migration for receiving transmitting terminal transmission, based on current connection net The IP address and port numbers that network is used are set up FTP and are connected with transmitting terminal;
Data reception module 402, for connecting the data that receiving end/sending end sends by the FTP.
Alternatively, referring to Fig. 4 B, data reception module 402 includes:
Receiving unit 4021, for the schedule file that receiving end/sending end sends, the schedule file includes that transmitting terminal is waited to move The total size of the target data of shifting;
Reception progress display unit 4022, the size of data for that will receive is made divided by the value of the total size of target data To receive progress, and the reception progress is shown during target data is received.
In sum, in embodiments of the present invention, if the network identity of the current connected network of transmitting terminal is worked as with receiving terminal The network identity of preceding connected network is consistent, it is determined that transmitting terminal is currently connected to consolidated network with receiving terminal, at this point it is possible to Receiving terminal directly sets up FTP connections, and is connected by the FTP for setting up and for target data to be migrated to be sent to receiving terminal, and nothing Migrating data need to be carried out by other-end, so as to simplify the process of Data Migration, while by other in reducing transition process The risk of terminal leak data.
It should be noted that:The transmitting terminal that above-described embodiment is provided is to the device of receiving terminal migrating data in migrating data When, only carried out with the division of above-mentioned each functional module for example, in practical application, as needed can divide above-mentioned functions With being completed by different functional module, will the internal structure of equipment be divided into different functional modules, to complete above description All or part of function.In addition, device and transmitting terminal of the transmitting terminal of above-described embodiment offer to receiving terminal migrating data Embodiment of the method to receiving terminal migrating data belongs to same design, and it implements process and refers to embodiment of the method, here not Repeat again.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can be by hardware To complete, it is also possible to instruct the hardware of correlation to complete by program, described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all it is of the invention spirit and Within principle, any modification, equivalent substitution and improvements made etc. should be included within the scope of the present invention.

Claims (10)

1. method from a kind of transmitting terminal to receiving terminal migrating data, it is characterised in that methods described includes:
If the network identity of the current connected network of transmitting terminal is consistent with the network identity of the current connected network of receiving terminal, profit Network protocol IP address and port numbers that network is used currently are connected with receiving terminal, file transmission association is set up with the receiving terminal View FTP connections;
Connected by the FTP and send to the receiving terminal target data to be migrated.
2. the method for claim 1, it is characterised in that obtaining receiving terminal by following steps and currently connecting network is made Network protocol IP address and port numbers, and the current connected network of the receiving terminal network identity:
The Quick Response Code that the receiving terminal shows is scanned, the Quick Response Code is currently to connect network institute based on the receiving terminal The IP address and port numbers for using, and the network identity generation of the current connected network of the receiving terminal are obtained;
Quick Response Code to scanning is identified, and obtains IP address and port that the current connection network of the receiving terminal is used Number, and the current connected network of the receiving terminal network identity.
3. the method for claim 1, it is characterised in that methods described also includes:
The size of data that will have been sent divided by the total size of the target data value as transmission progress, and sending the mesh The transmission progress is shown during mark data.
4. method from a kind of transmitting terminal to receiving terminal migrating data, it is characterised in that methods described includes:
When Data Migration instruction is received, network protocol IP address and port numbers and the institute that network is used are connected based on current State transmitting terminal and set up FTP FTP connections;
Connected by the FTP and receive the data that the transmitting terminal sends.
5. method as claimed in claim 4, it is characterised in that described connection by the FTP is received the transmitting terminal and send Data, including:
The schedule file that the transmitting terminal sends is received, the schedule file includes transmitting terminal target data to be migrated Total size;
The size of data that will have been received divided by the total size of the target data value as reception progress, and receiving the mesh The reception progress is shown during mark data.
6. device from a kind of transmitting terminal to receiving terminal migrating data, it is characterised in that described device includes:
Connection establishment module, if for the network identity and the current connected network of receiving terminal of the current connected network of transmitting terminal Network identity is consistent, then network protocol IP address and port numbers that network is used currently are connected using receiving terminal, is connect with described Receiving end sets up FTP FTP connections;
Data transmission blocks, are sent to the receiving terminal target data to be migrated for being connected by the FTP.
7. device as claimed in claim 6, it is characterised in that the connection establishment module is used to be connect by following steps acquisition Receiving end currently connects the network protocol IP address and port numbers that network is used, and the current connected network of the receiving terminal Network identity:
The Quick Response Code that the receiving terminal shows is scanned, the Quick Response Code is currently to connect network institute based on the receiving terminal The IP address and port numbers for using, and the network identity generation of the current connected network of the receiving terminal are obtained;
Quick Response Code to scanning is identified, and obtains IP address and port that the current connection network of the receiving terminal is used Number, and the current connected network of the receiving terminal network identity.
8. device as claimed in claim 6, it is characterised in that described device also includes:
Transmission progress display module, for the size of data that will send divided by the total size of the target data value as hair Feeding degree, and show the transmission progress during the target data is sent.
9. device from a kind of transmitting terminal to receiving terminal migrating data, it is characterised in that described device includes:
Connection establishment module, for when Data Migration instruction is received, based on the procotol that current connection network is used IP address and port numbers are set up FTP FTP and are connected with the transmitting terminal;
Data reception module, the data that the transmitting terminal sends are received for being connected by the FTP.
10. device as claimed in claim 9, it is characterised in that the data reception module includes:
Receiving unit, for receiving the schedule file that the transmitting terminal sends, the schedule file includes that the transmitting terminal is treated The total size of the target data of migration;
Reception progress display unit, for the size of data that will receive divided by the total size of the target data value as connecing Degree of takeing in, and show the reception progress during the target data is received.
CN201710205373.6A 2017-03-31 2017-03-31 Method and device for migrating data from sending end to receiving end Active CN106850862B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710205373.6A CN106850862B (en) 2017-03-31 2017-03-31 Method and device for migrating data from sending end to receiving end

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710205373.6A CN106850862B (en) 2017-03-31 2017-03-31 Method and device for migrating data from sending end to receiving end

Publications (2)

Publication Number Publication Date
CN106850862A true CN106850862A (en) 2017-06-13
CN106850862B CN106850862B (en) 2021-05-25

Family

ID=59141886

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710205373.6A Active CN106850862B (en) 2017-03-31 2017-03-31 Method and device for migrating data from sending end to receiving end

Country Status (1)

Country Link
CN (1) CN106850862B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115665470A (en) * 2022-10-21 2023-01-31 四川长虹电器股份有限公司 Method for rapidly changing machine through data migration of smart television

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100004267A1 (en) * 2006-07-31 2010-01-07 Asubio Pharma Co., Ltd. Liquid preparation
CN102148845A (en) * 2010-02-08 2011-08-10 中兴通讯股份有限公司 File transfer protocol (FTP) data transmission method and system
CN102789463A (en) * 2011-05-16 2012-11-21 洛阳磊石软件科技有限公司 Data sharing method between electronic devices and electronic devices
CN103648180A (en) * 2013-12-04 2014-03-19 北京奇虎科技有限公司 Method and device for sharing files between terminal devices
CN106454975A (en) * 2016-09-14 2017-02-22 广东欧珀移动通信有限公司 Hotspot network switching method and terminal equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100004267A1 (en) * 2006-07-31 2010-01-07 Asubio Pharma Co., Ltd. Liquid preparation
CN102148845A (en) * 2010-02-08 2011-08-10 中兴通讯股份有限公司 File transfer protocol (FTP) data transmission method and system
CN102789463A (en) * 2011-05-16 2012-11-21 洛阳磊石软件科技有限公司 Data sharing method between electronic devices and electronic devices
CN103648180A (en) * 2013-12-04 2014-03-19 北京奇虎科技有限公司 Method and device for sharing files between terminal devices
CN106454975A (en) * 2016-09-14 2017-02-22 广东欧珀移动通信有限公司 Hotspot network switching method and terminal equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115665470A (en) * 2022-10-21 2023-01-31 四川长虹电器股份有限公司 Method for rapidly changing machine through data migration of smart television

Also Published As

Publication number Publication date
CN106850862B (en) 2021-05-25

Similar Documents

Publication Publication Date Title
WO2019024604A1 (en) Method and device for associating application with network slice, and communication system
CN107360635B (en) Data transmission method, device, terminal and computer readable storage medium
CN105682081A (en) Terminal and communication method
CN110139322A (en) A kind of data transmission method and terminal
CN108632814A (en) A kind of terminal device network collocating method and system
CN105357240A (en) Remote assistance control method and device
CN104584490B (en) Data transmission method for uplink and device
CN108632808A (en) Core network control surface device selection method and device
CN108632056A (en) A kind of smart machine network collocating method and system
CN112566113B (en) Key generation and terminal network distribution method, device and equipment
CN107018189A (en) Migrate application data and receive the method and device of application data
CN103220283B (en) The method of network share, equipment and system
CN108712482A (en) Based on mobile terminal Quick Response Code rapid file sharing method
CN105554824B (en) A kind of method and device of radio frequency link control
CN106357814A (en) File processing method, agency server side end and client side
CN101494923A (en) Architecture for implementation of radio access bearer manager (rabm) and packet data convergence protocol (pdcp) process
CN107659999A (en) WIFI connection methods and equipment
CN106452828A (en) Provision protocol transmission-based terminal configuration method and system
CN106850862A (en) Method and device from transmitting terminal to receiving terminal migrating data
CN109040050A (en) Data interactive method and Related product
CN106332319A (en) Communication method and equipment thereof
CN102611783A (en) Mobile terminal and method for processing mobile internet communication service with the same
JP2004015692A (en) Method and system for sharing/processing status information between communication applications
CN104053132B (en) A kind of method and device of information number identification
CN106034048B (en) A kind of method and device of information configuration

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
CP01 Change in the name or title of a patent holder

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder