WO2018049964A1 - Data transfer method and related product - Google Patents

Data transfer method and related product Download PDF

Info

Publication number
WO2018049964A1
WO2018049964A1 PCT/CN2017/098070 CN2017098070W WO2018049964A1 WO 2018049964 A1 WO2018049964 A1 WO 2018049964A1 CN 2017098070 W CN2017098070 W CN 2017098070W WO 2018049964 A1 WO2018049964 A1 WO 2018049964A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
file
address
transfer
storage
Prior art date
Application number
PCT/CN2017/098070
Other languages
French (fr)
Chinese (zh)
Inventor
陆天洋
Original Assignee
广东欧珀移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2018049964A1 publication Critical patent/WO2018049964A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • G06F9/4856Task life-cycle, e.g. stopping, restarting, resuming execution resumption being on a different machine, e.g. task migration, virtual machine migration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]

Definitions

  • the present invention claims the prior application priority of the application No. 201610826102.8, which is filed on September 14, 2016, entitled “A Method and Apparatus for Selecting a File Storage Path in a Terminal Relocation", the content of which is incorporated by reference. Into this text.
  • the present invention relates to the field of communications technologies, and in particular, to a data transfer method and related products.
  • Terminals in the communication field are devices commonly used by users. Since the devices all have their own operating systems, the terminals are also called smart terminals or smart phones, and smart phones (for: Smartphone). It is a collective title for mobile phones with more computing power and functions than traditional feature phones.
  • the most used operating systems for smartphones are Windows Phone, Android, IOS, and BlackBerry OS, but the applications between them are not compatible with each other. Because smartphones can install third-party software like a personal computer, they are feature-rich and can be expanded.
  • the embodiment of the invention provides a data transfer method and related products, which can improve the user experience.
  • a data transfer method comprising the steps of:
  • a communication request sent by the first terminal to the second terminal where the communication request includes: an indication of data transfer;
  • the first terminal receives the second terminal to send a communication response, where the communication response includes: an address used by the second terminal to store the file and a remaining space of the address;
  • the first terminal displays an address of the storage file and a remaining space corresponding to the address, and the first terminal receives the transfer file selected by the user and a storage address of the transfer file;
  • a data transfer apparatus configured in a first terminal, and the apparatus includes:
  • a sending unit configured to send a communication request to the second terminal, where the communication request includes: an indication of data transfer;
  • a receiving unit configured to receive, by the second terminal, a communication response, where the communication response includes: an address used by the second terminal to store the file and a remaining space of the address;
  • a processing unit configured to display an address of the storage file and a remaining space corresponding to the address
  • the first terminal receives the transfer file selected by the user and a storage address of the transfer file, and determines whether the transfer file is smaller than a storage address of the transfer file
  • the remaining space such as the transfer file being smaller than the remaining space of the storage address of the transfer file, sends the transfer file and the identifier of the storage address of the transfer file to the second terminal.
  • a third aspect of the embodiments of the present invention provides a terminal, where the terminal includes: a processor, a memory; the processor is connected to the memory, the memory is configured to store program code, and the processor is used to invoke a The program code stored in the memory performs the method provided by the first aspect.
  • an embodiment of the present invention provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform the implementation of the present invention.
  • an embodiment of the present invention provides a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to execute Some or all of the steps described in the first aspect of the invention.
  • the computer program product can be a software installation package.
  • FIG. 1 is a flow chart of a terminal moving method according to a preferred embodiment of the present invention.
  • FIG. 2 is a flow chart of a terminal moving method according to another preferred embodiment of the present invention.
  • FIG. 3 is a structural diagram of a terminal moving device provided in accordance with a next preferred embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of hardware of a terminal provided by the present invention.
  • Computer device also referred to as “computer” in the context, is meant an intelligent electronic device that can perform predetermined processing, such as numerical calculations and/or logical calculations, by running a predetermined program or instruction, which can include a processor and The memory is executed by the processor to execute a predetermined process pre-stored in the memory to execute a predetermined process, or is executed by hardware such as an ASIC, an FPGA, a DSP, or the like, or a combination of the two.
  • Computer devices include, but are not limited to, servers, personal computers, notebook computers, tablets, smart phones, and the like.
  • first first
  • second second
  • first first
  • second second
  • the terminals all have the function of file storage, such as photos, texts, videos, address books, etc.
  • file storage such as photos, texts, videos, address books, etc.
  • the data transfer is commonly referred to as “mobile phone moving”.
  • mobile phone moving For the existing mobile phone moving, how to transfer the old mobile phone files to the new mobile phone is a very headache. Taking the address book as an example, the existing solution passes.
  • Third-party software is implemented, such as synchronization assistant, cloud, etc. In the existing way, the user cannot know the storage location of the file after moving the mobile phone, and the user cannot select the storage location, resulting in low user experience.
  • the storage address specifically includes: a mobile phone storage address or an SD card storage address.
  • the method further includes:
  • the first terminal determines a backup policy according to the type of the transferred file, and sends the backup policy to the second terminal.
  • the first terminal determines, according to the type of the transfer file, a backup policy, including:
  • the first terminal determines, according to the type of the transfer file, a backup policy, including:
  • the first terminal displays to the user a list of all transferred files and the type of the transferred file, and receives the user The choice of the type of transfer file.
  • the indication of the data transfer is carried in an extension field of the communication request.
  • the communication request carries a special field of a set length indicating an indication of the data transfer.
  • the first terminal displays an address of the storage file and a remaining space corresponding to the address, including:
  • the first terminal displays the address of the storage file and the remaining space corresponding to the address in a list manner, a page manner, or a graphic manner.
  • the method further includes: receiving, by the first terminal, a transfer file selected by a user and a storage address of the transfer file, including:
  • the first terminal receives the voice file, and identifies the voice file to determine a moving file selected by the user and a storage address of the transferred file.
  • the storage address specifically includes: a mobile phone storage address or an SD card storage address.
  • the processing unit is further configured to determine a backup policy according to the type of the transfer file, and send the backup policy to the second terminal.
  • the processing unit is specifically configured to determine a type of the transfer file according to a frequency of use of the user.
  • the processing unit is configured to display a list of all transferred files and a type of the transferred file to the user, and receive a selection of the transfer file type by the user.
  • the sending unit the indication specifically for the data transfer, is carried in an extension field of the communication request.
  • the sending unit is specifically configured to indicate, in the communication request, a special field of a set length to indicate the data transfer.
  • the processing unit is specifically configured to display an address of the storage file and a remaining space corresponding to the address in a list manner, a page manner, or a graphic manner.
  • a terminal moving method is provided.
  • the method is applied to the terminal, and the terminal includes, but is not limited to, a server, a computer, a tablet computer, a smart phone, and the like.
  • the terminal includes, but is not limited to, a server, a computer, a tablet computer, a smart phone, and the like.
  • devices such as a smart watch or a smart bracelet can also be added.
  • the method for selecting a file storage path in the terminal relocation may be used in the terminal.
  • the terminal is only an example, and other existing or future network devices and user equipment may be applicable if applicable.
  • the invention is also intended to be included within the scope of the invention and is hereby incorporated by reference.
  • FIG. 1 is a schematic diagram of a terminal moving method according to a preferred embodiment of the present invention. The method is completed by a terminal. The method is as shown in FIG.
  • Step S101 The communication request sent by the first terminal to the second terminal, where the communication request includes: an indication of moving the home;
  • the communication request sent by the first terminal to the second terminal in the foregoing step S101 may be a plurality of communication requests.
  • the communication request sent by the first terminal to the second terminal may be For a communication request sent by the first terminal through Wireless Fidelity (WIFI), the structure and definition of the communication request can be referred to the specific definition in IEEE802.1, and details are not described herein again.
  • the communication request sent by the first terminal to the second terminal may be a communication request sent by the first terminal by using a Bluetooth, and of course, in an actual application, the communication may be sent by using another communication manner.
  • the communication request is, for example, a communication request sent by the first terminal through Long Term Evolution (LTE), and of course, the first terminal is sent by Code Division Multiple Access (CDMA). Communication request.
  • LTE Long Term Evolution
  • CDMA Code Division Multiple Access
  • the specific embodiments of the present invention are not limited to the specific manifestation of the communication request, nor to the specific standard protocol for compliance with the communication request.
  • the value of the above-mentioned moving instruction may specifically be: moving or not moving, and it may be represented by one bit in the extension field in the communication request, for example, setting 1 to move, setting 0 to not moving, of course, in practical application.
  • the above setting may be reversed.
  • setting 0 to move and setting 1 to not move and the specific embodiment of the present invention does not limit the specific meaning of the value indicated above.
  • other methods can also be used as an indication of moving, for example, carrying a special field of a set length, for example, 10 1, 10 0, 11 1 or 12 0, etc., only need the first The terminal and the second terminal can recognize each other.
  • Step S102 The first terminal receives the second terminal to send a communication response, where the communication response may include: an address used by the second terminal to store the file and a remaining space of the address;
  • the communication response sent by the second terminal received by the first terminal in the foregoing step S102 may be multiple communication responses.
  • the second terminal receives the communication sent by the second terminal.
  • the response may be a communication response sent by the second terminal through Wireless Fidelity (WIFI).
  • WIFI Wireless Fidelity
  • the structure and definition of the communication response may be referred to the specific definition in IEEE802.1, and details are not described herein.
  • the communication response sent by the second terminal received by the first terminal may be a communication response sent by the second terminal by using Bluetooth.
  • Bluetooth Bluetooth
  • the method sends the communication response, for example, the communication response sent by the first terminal through Long Term Evolution (LTE), and of course, the second terminal passes the code division multiple access (CDMA: Code Division Multiple Access, CDMA). )
  • LTE Long Term Evolution
  • CDMA Code Division Multiple Access
  • the specific embodiments of the present invention are not limited to the specific manifestation of the communication request, nor to the specific standard protocol for compliance with the communication request.
  • the address of the second terminal used to store the file and the remaining space of the address may be carried in the extension field of the communication response.
  • the payload may also be carried in the payload of the communication response.
  • Step S103 The first terminal displays the address of the storage file and the remaining space corresponding to the address, and the first terminal receives the moving file selected by the user and the storage address of the moving file.
  • the manner in which the first terminal in the foregoing step S103 displays the address of the storage file and the remaining space corresponding to the address may be various, for example, displaying the address of the storage file and the remaining corresponding to the address by means of a list.
  • the space can also be displayed by other means, for example, by a page, and of course, can also be displayed graphically.
  • the specific embodiment of the present invention does not limit the specific manner of the above display.
  • the manner in which the first terminal receives the moving file selected by the user and the storage address of the moving file may be various, for example, by receiving the voice file of the user, and then identifying the voice file to determine the moving file selected by the user and
  • the storage address of the moving file may of course be selected in other ways, for example, by receiving the user's click position on the touch screen to determine the moving file selected by the user and the storage address of the moving file.
  • Step S104 The first terminal determines whether the moving file is smaller than the remaining space of the storage address of the moving file, and if the moving file is smaller than the remaining space of the storage address of the moving file, sends the moving file and the moving file to the second terminal.
  • the identifier of the storage address The identifier of the storage address.
  • the technical solution provided by the present invention acquires a storage address of the second terminal (ie, a new mobile phone) by receiving a communication response sent by the second terminal (including but not limited to: a mobile phone storage, an SD1 card, an SD2 card), and a corresponding address of the storage address.
  • a storage address of the second terminal ie, a new mobile phone
  • a communication response sent by the second terminal including but not limited to: a mobile phone storage, an SD1 card, an SD2 card
  • a corresponding address of the storage address including but not limited to: a mobile phone storage, an SD1 card, an SD2 card
  • FIG. 2 is a schematic diagram of a terminal moving method according to another preferred embodiment of the present invention. The method is completed by a terminal. The method is as shown in FIG. 2, and includes the following steps:
  • Step S201 The communication request sent by the first terminal to the second terminal, where the communication request includes: an indication of moving;
  • the communication request sent by the first terminal to the second terminal in the foregoing step S201 may be a plurality of communication requests.
  • the communication request sent by the first terminal to the second terminal may be For a communication request sent by the first terminal through Wireless Fidelity (WIFI), the structure and definition of the communication request can be referred to the specific definition in IEEE802.1, and details are not described herein again.
  • the communication request sent by the first terminal to the second terminal may be a communication request sent by the first terminal by using a Bluetooth, and of course, in an actual application, the communication may be sent by using another communication manner.
  • the communication request is, for example, a communication request sent by the first terminal through Long Term Evolution (LTE), and of course, the first terminal is sent by Code Division Multiple Access (CDMA). Communication request.
  • LTE Long Term Evolution
  • CDMA Code Division Multiple Access
  • the specific embodiments of the present invention are not limited to the specific manifestation of the communication request, nor to the specific standard protocol for compliance with the communication request.
  • the value of the above-mentioned moving instruction may specifically be: moving or not moving, and it may be represented by one bit in the extension field in the communication request, for example, setting 1 to move, setting 0 to not moving, of course, in practical application.
  • the above setting may be reversed.
  • setting 0 to move and setting 1 to not move and the specific embodiment of the present invention does not limit the specific meaning of the value indicated above.
  • other methods can also be used as an indication of moving, for example, carrying a special field of a set length, for example, 10 1, 10 0, 11 1 or 12 0, etc., only need the first The terminal and the second terminal can recognize each other.
  • Step S202 The first terminal receives the second terminal to send a communication response, where the communication response may include: an address used by the second terminal to store the file and a remaining space of the address;
  • the communication response sent by the second terminal received by the first terminal in the foregoing step S202 may be multiple communication responses.
  • the second terminal receives the communication sent by the second terminal.
  • the response may be a communication response sent by the second terminal through Wireless Fidelity (WIFI).
  • WIFI Wireless Fidelity
  • the structure and definition of the communication response may be referred to the specific definition in IEEE802.1, and details are not described herein.
  • the communication response sent by the second terminal received by the first terminal may be a communication response sent by the second terminal by using Bluetooth.
  • Bluetooth Bluetooth
  • the method sends the communication response, for example, the communication response sent by the first terminal through Long Term Evolution (LTE), and of course, the second terminal passes the code division multiple access (CDMA: Code Division Multiple Access, CDMA). )
  • LTE Long Term Evolution
  • CDMA Code Division Multiple Access
  • the specific embodiments of the present invention are not limited to the specific manifestation of the communication request, nor to the specific standard protocol for compliance with the communication request.
  • the address of the second terminal used to store the file and the remaining space of the address may be carried in the extension field of the communication response.
  • the payload may also be carried in the payload of the communication response.
  • Step S203 The first terminal displays the address of the storage file and the remaining space corresponding to the address, and the first terminal receives the moving file selected by the user and the storage address of the moving file.
  • the manner in which the first terminal in the foregoing step S203 displays the address of the storage file and the remaining space corresponding to the address may be various, for example, displaying the address of the storage file and the remaining corresponding to the address by means of a list.
  • the space can also be displayed by other means, for example, by a page, and of course, can also be displayed graphically.
  • the specific embodiment of the present invention does not limit the specific manner of the above display.
  • the manner in which the first terminal receives the moving file selected by the user and the storage address of the moving file may be various, for example, by receiving the voice file of the user, and then identifying the voice file to determine the moving file selected by the user and
  • the storage address of the moving file may of course be selected in other ways, for example, by receiving the user's click position on the touch screen to determine the moving file selected by the user and the storage address of the moving file.
  • Step S204 The first terminal determines whether the moving file is smaller than the remaining space of the storage address of the moving file, and if the moving file is less than the remaining space of the storage address of the moving file, the moving file is sent to the second terminal and the moving The identifier of the storage address of the file.
  • Step S205 The first terminal determines a backup policy according to the type of the moving file, and sends the backup policy to the second terminal.
  • the type of the moving file in the above step S205 may specifically be: a necessary moving file, an important moving file, and an ordinary moving file.
  • Different types of moving files correspond to different backup strategies.
  • the corresponding backup policy may be At least one backup is required.
  • the corresponding backup strategy can be one, and one backup can be made.
  • the backup strategy for ordinary moving files can be, and can not be backed up.
  • the confirmation method of the type of the above moving file may specifically be:
  • the type of moving files is determined according to the frequency of use of the user. For example, a file that needs to be used every day, such as an address book, is a necessary moving file because it is used frequently. For files that are not commonly used, such as photos, due to Its use frequency is relatively low, it belongs to ordinary moving files, for files that will be used frequently, such as video files.
  • the type of the moving file can also be determined by other means.
  • the first terminal displays the list of all moving files and the type of the moving file to the user, and receives the user's selection of the moving file type.
  • the technical solution provided by the present invention acquires a storage address of the second terminal (ie, a new mobile phone) by receiving a communication response sent by the second terminal (including but not limited to: a mobile phone storage, an SD1 card, an SD2 card), and a corresponding address of the storage address.
  • a storage address of the second terminal ie, a new mobile phone
  • a communication response sent by the second terminal including but not limited to: a mobile phone storage, an SD1 card, an SD2 card
  • a corresponding address of the storage address including but not limited to: a mobile phone storage, an SD1 card, an SD2 card
  • FIG. 3 is a schematic diagram of a terminal moving device 300.
  • the device is configured in a first terminal, and the device includes:
  • the sending unit 301 is configured to send a communication request to the second terminal, where the communication request includes: an indication of moving the home;
  • the receiving unit 302 is configured to receive, by the second terminal, a communication response, where the communication response includes: an address used by the second terminal to store the file and a remaining space of the address;
  • the processing unit 303 is configured to display an address of the storage file and a remaining space corresponding to the address
  • the first terminal receives the moving file selected by the user and the storage address of the moving file; and determines whether the moving file is smaller than the remaining space of the storage address of the moving file, and if the moving file is smaller than the remaining space of the storage address of the moving file, Sending the moving file and the identification of the storage address of the moving file to the second terminal.
  • the storage address specifically includes: a mobile phone storage or an SD card storage.
  • the processing unit 303 is further configured to determine a backup policy according to the type of the moving file, and send the backup policy to the second terminal.
  • the processing unit 303 is specifically configured to determine a type of the moving file according to the frequency of use of the user.
  • the processing unit 303 is specifically configured to display to the user a list of all moving files and a type of the moving file, and receive the user's selection of the moving file type.
  • a specific embodiment of the present invention further provides a terminal, where the terminal includes the above-mentioned terminal moving file storage path selecting device 300.
  • each block of the flowchart or block diagram can represent a module, a program segment, or a portion of code that includes one or more of the Executable instructions.
  • the functions noted in the blocks may also occur in a different order than that illustrated in the drawings. For example, two consecutive blocks may be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending upon the functionality involved.
  • an embodiment of the present invention further provides a terminal 400, including but not limited to: a smart phone, a smart watch, a tablet computer, a personal computer, a notebook computer, or a computer group, as shown in FIG. 4, the terminal 400 includes a processor 401, a memory 402, a transceiver 403, and a bus 404.
  • the transceiver 403 is configured to transmit and receive data with and from an external device.
  • the number of processors 401 in device 400 may be one or more.
  • processor 401, memory 402, and transceiver 403 may be connected by a bus system or other means.
  • Apparatus 400 can be used to perform the method illustrated in FIG. For the meaning and examples of the terms involved in the embodiment, reference may be made to the corresponding description of FIG. 1. I will not repeat them here.
  • the program code is stored in the memory 402.
  • the processor 401 is configured to call program code stored in the memory 402 for performing the steps as shown in FIG.
  • the processor 401 herein may be a processing component or a collective name of multiple processing components.
  • the processing component may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
  • DSPs digital signal processors
  • FPGAs Field Programmable Gate Arrays
  • the memory 403 may be a storage device or a collective name of a plurality of storage elements, and is used to store executable program code or parameters, data, and the like required for the application running device to operate. And the memory 403 may include random access memory (RAM), and may also include non-volatile memory such as a magnetic disk memory, a flash memory, or the like.
  • RAM random access memory
  • the bus 404 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus.
  • ISA Industry Standard Architecture
  • PCI Peripheral Component
  • EISA Extended Industry Standard Architecture
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 4, but it does not mean that there is only one bus or one type of bus.
  • the user equipment may further include an input and output device connected to the bus 404 for passing through the bus.
  • the processor 401 and other parts are connected.
  • the input/output device can provide an input interface for the operator, so that the operator can select the control item through the input interface, and can also be other interfaces through which other devices can be externally connected.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some communication interface, device or unit, and may be electrical, mechanical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A data transfer method and a related product. The method comprises the following steps: a first terminal sends a communication request to a second terminal, the communication request comprising a transfer indication (S101); the first terminal receives a communication response sent by the second terminal (S102), the communication response comprising an address used by the second terminal for storing a file and a remaining space corresponding to the address; the first terminal displays the address of a storage file and a remaining space corresponding to the address, and the first terminal receives a transfer file selected by a user and a storage address of the transfer file (S103); the first terminal determines whether the transfer file is smaller than the remaining space of the storage address of the transfer file, and if the transfer file is smaller than the remaining space of the storage address of the transfer file, sends the transfer file and an identifier of the storage address of the transfer file to the second terminal (S104). The method achieves good user experience.

Description

数据转移方法及相关产品Data transfer method and related products
本发明要求2016年9月14日递交的发明名称为“一种终端搬家中文件存储路径选择方法及装置”的申请号201610826102.8的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。The present invention claims the prior application priority of the application No. 201610826102.8, which is filed on September 14, 2016, entitled "A Method and Apparatus for Selecting a File Storage Path in a Terminal Relocation", the content of which is incorporated by reference. Into this text.
技术领域Technical field
本发明涉及通信技术领域,具体涉及一种数据转移方法及相关产品。The present invention relates to the field of communications technologies, and in particular, to a data transfer method and related products.
背景技术Background technique
通信领域的终端,例如手机、平板电脑等设备是属于用户常用的设备,由于目前该设备均具有自身的操作系统,所以也将终端称为智能终端或智能手机,智能手机(用于:Smartphone)是对于那些运算能力及功能比传统功能手机更强的手机的集合性称谓。智能手机使用最多的操作系统有:Windows Phone、Android、IOS和BlackBerry OS,但他们之间的应用软件互不兼容。智能手机因为可以像个人电脑一样安装第三方软件,所以它们功能丰富,而且可以不断扩充。Terminals in the communication field, such as mobile phones and tablet computers, are devices commonly used by users. Since the devices all have their own operating systems, the terminals are also called smart terminals or smart phones, and smart phones (for: Smartphone). It is a collective title for mobile phones with more computing power and functions than traditional feature phones. The most used operating systems for smartphones are Windows Phone, Android, IOS, and BlackBerry OS, but the applications between them are not compatible with each other. Because smartphones can install third-party software like a personal computer, they are feature-rich and can be expanded.
发明内容Summary of the invention
本发明实施例提供了一种数据转移方法及相关产品,可以提升用户的体验度。The embodiment of the invention provides a data transfer method and related products, which can improve the user experience.
第一方面,提供一种数据转移方法,所述方法包括如下步骤:In a first aspect, a data transfer method is provided, the method comprising the steps of:
第一终端向第二终端发送的通信请求,所述通信请求中包括:数据转移的指示;a communication request sent by the first terminal to the second terminal, where the communication request includes: an indication of data transfer;
第一终端接收第二终端发送通信响应,所述通信响应包括:第二终端用于存储文件的地址以及该地址剩余空间;The first terminal receives the second terminal to send a communication response, where the communication response includes: an address used by the second terminal to store the file and a remaining space of the address;
第一终端显示所述存储文件的地址以及该地址对应的剩余空间,第一终端接收用户选择的转移文件以及该转移文件的存储地址; The first terminal displays an address of the storage file and a remaining space corresponding to the address, and the first terminal receives the transfer file selected by the user and a storage address of the transfer file;
第一终端判断所述转移文件是否小于该转移文件的存储地址的剩余空间,如转移文件小于该转移文件的存储地址的剩余空间,向所述第二终端发送所述转移文件以及所述转移文件的存储地址的标识。Determining, by the first terminal, whether the transfer file is smaller than a remaining space of a storage address of the transfer file, for example, if the transfer file is smaller than a remaining space of the storage address of the transfer file, sending the transfer file and the transfer file to the second terminal The identifier of the storage address.
第二方面,提供一种数据转移装置,所述装置配置于第一终端,所述装置包括:In a second aspect, a data transfer apparatus is provided, where the apparatus is configured in a first terminal, and the apparatus includes:
发送单元,用于向第二终端发送的通信请求,所述通信请求中包括:数据转移的指示;a sending unit, configured to send a communication request to the second terminal, where the communication request includes: an indication of data transfer;
接收单元,用于接收第二终端发送通信响应,所述通信响应包括:第二终端用于存储文件的地址以及该地址剩余空间;a receiving unit, configured to receive, by the second terminal, a communication response, where the communication response includes: an address used by the second terminal to store the file and a remaining space of the address;
处理单元,用于显示所述存储文件的地址以及该地址对应的剩余空间,第一终端接收用户选择的转移文件以及该转移文件的存储地址;判断所述转移文件是否小于该转移文件的存储地址的剩余空间,如转移文件小于该转移文件的存储地址的剩余空间,向所述第二终端发送所述转移文件以及所述转移文件的存储地址的标识。a processing unit, configured to display an address of the storage file and a remaining space corresponding to the address, the first terminal receives the transfer file selected by the user and a storage address of the transfer file, and determines whether the transfer file is smaller than a storage address of the transfer file The remaining space, such as the transfer file being smaller than the remaining space of the storage address of the transfer file, sends the transfer file and the identifier of the storage address of the transfer file to the second terminal.
本发明实施例第三方面提供了一种终端,所述终端包括:处理器、存储器;所述处理器与所述存储器连接,所述存储器,用于存储程序代码,所述处理器用于调用所述存储器中存储的程序代码执行第一方面提供的方法。A third aspect of the embodiments of the present invention provides a terminal, where the terminal includes: a processor, a memory; the processor is connected to the memory, the memory is configured to store program code, and the processor is used to invoke a The program code stored in the memory performs the method provided by the first aspect.
第四方面,本发明实施例提供了一种计算机可读存储介质,其中,所述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如本发明实施例第一方面中所描述的部分或全部步骤。In a fourth aspect, an embodiment of the present invention provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform the implementation of the present invention. Some or all of the steps described in the first aspect.
第五方面,本发明实施例提供了一种计算机程序产品,其中,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如本发明实施例第一方面中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。In a fifth aspect, an embodiment of the present invention provides a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to execute Some or all of the steps described in the first aspect of the invention. The computer program product can be a software installation package.
附图说明DRAWINGS
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本发明的其它特征、目的和优点将会变得更明显:Other features, objects, and advantages of the present invention will become more apparent from the Detailed Description of Description
图1为根据本发明一个优选实施例提供的终端搬家方法的流程图。 1 is a flow chart of a terminal moving method according to a preferred embodiment of the present invention.
图2为根据本发明另一个优选实施例提供的终端搬家方法的流程图。2 is a flow chart of a terminal moving method according to another preferred embodiment of the present invention.
图3为根据本发明下一优选实施例提供的终端搬家装置的结构图。3 is a structural diagram of a terminal moving device provided in accordance with a next preferred embodiment of the present invention.
图4为本发明提供的终端的硬件结构示意图。FIG. 4 is a schematic structural diagram of hardware of a terminal provided by the present invention.
具体实施方式detailed description
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各项操作描述成顺序的处理,但是其中的许多操作可以被并行地、并发地或者同时实施。此外,各项操作的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。Before discussing the exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as a process or method depicted as a flowchart. Although the flowcharts describe various operations as a sequential process, many of the operations can be implemented in parallel, concurrently or concurrently. In addition, the order of operations can be rearranged. The process may be terminated when its operation is completed, but may also have additional steps not included in the figures. The processing may correspond to methods, functions, procedures, subroutines, subroutines, and the like.
在上下文中所称“计算机设备”,也称为“电脑”,是指可以通过运行预定程序或指令来执行数值计算和/或逻辑计算等预定处理过程的智能电子设备,其可以包括处理器与存储器,由处理器执行在存储器中预存的存续指令来执行预定处理过程,或是由ASIC、FPGA、DSP等硬件执行预定处理过程,或是由上述二者组合来实现。计算机设备包括但不限于服务器、个人电脑、笔记本电脑、平板电脑、智能手机等。By "computer device", also referred to as "computer" in the context, is meant an intelligent electronic device that can perform predetermined processing, such as numerical calculations and/or logical calculations, by running a predetermined program or instruction, which can include a processor and The memory is executed by the processor to execute a predetermined process pre-stored in the memory to execute a predetermined process, or is executed by hardware such as an ASIC, an FPGA, a DSP, or the like, or a combination of the two. Computer devices include, but are not limited to, servers, personal computers, notebook computers, tablets, smart phones, and the like.
后面所讨论的方法(其中一些通过流程图示出)可以通过硬件、软件、固件、中间件、微代码、硬件描述语言或者其任意组合来实施。当用软件、固件、中间件或微代码来实施时,用以实施必要任务的程序代码或代码段可以被存储在机器或计算机可读介质(比如存储介质)中。(一个或多个)处理器可以实施必要的任务。The methods discussed below, some of which are illustrated by flowcharts, can be implemented in hardware, software, firmware, middleware, microcode, hardware description languages, or any combination thereof. When implemented in software, firmware, middleware or microcode, the program code or code segments to carry out the necessary tasks can be stored in a machine or computer readable medium, such as a storage medium. The processor(s) can perform the necessary tasks.
这里所公开的具体结构和功能细节仅仅是代表性的,并且是用于描述本发明的示例性实施例的目的。但是本发明可以通过许多替换形式来具体实现,并且不应当被解释成仅仅受限于这里所阐述的实施例。The specific structural and functional details disclosed are merely representative and are for the purpose of describing exemplary embodiments of the invention. The present invention may, however, be embodied in many alternative forms and should not be construed as being limited only to the embodiments set forth herein.
应当理解的是,虽然在这里可能使用了术语“第一”、“第二”等等来描述各个单元,但是这些单元不应当受这些术语限制。使用这些术语仅仅是为了将一个单元与另一个单元进行区分。举例来说,在不背离示例性实施例的范围的情况下,第一单元可以被称为第二单元,并且类似地第二单元可以被称为第一 单元。这里所使用的术语“和/或”包括其中一个或更多所列出的相关联项目的任意和所有组合。It should be understood that although the terms "first," "second," etc. may be used herein to describe the various elements, these elements should not be limited by these terms. These terms are used only to distinguish one unit from another. For example, a first unit may be referred to as a second unit without departing from the scope of the exemplary embodiments, and similarly the second unit may be referred to as a first unit. The term "and/or" used herein includes any and all combinations of one or more of the associated listed items.
这里所使用的术语仅仅是为了描述具体实施例而不意图限制示例性实施例。除非上下文明确地另有所指,否则这里所使用的单数形式“一个”、“一项”还意图包括复数。还应当理解的是,这里所使用的术语“包括”和/或“包含”规定所陈述的特征、整数、步骤、操作、单元和/或组件的存在,而不排除存在或添加一个或更多其他特征、整数、步骤、操作、单元、组件和/或其组合。The terminology used herein is for the purpose of describing the particular embodiments, The singular forms "a", "an", It is also to be understood that the terms "comprising" and """ Other features, integers, steps, operations, units, components, and/or combinations thereof.
还应当提到的是,在一些替换实现方式中,所提到的功能/动作可以按照不同于附图中标示的顺序发生。举例来说,取决于所涉及的功能/动作,相继示出的两幅图实际上可以基本上同时执行或者有时可以按照相反的顺序来执行。It should also be noted that, in some alternative implementations, the functions/acts noted may occur in a different order than that illustrated in the drawings. For example, two figures shown in succession may in fact be executed substantially concurrently or sometimes in the reverse order, depending on the function/acts involved.
终端均具有文件存储的功能,该文件例如:照片、文本、视频、通信录等等,随着目前智能手机的款式越来越多,手机更换的频率越来越高,本申请将手机更换后的数据转移俗称“手机搬家”,对于现有的手机搬家来说,如何将旧手机的文件转移到新手机中是一件非常让人头痛的问题,以通讯录为例,现有的方案通过第三方软件来实现,例如同步助手,云端等等方式,现有的方式在手机搬家中用户无法获知其文件在搬家后的存储位置,并且用户对该存储位置无法选择,导致用户体验度低。The terminals all have the function of file storage, such as photos, texts, videos, address books, etc. With the increasing number of smart phones, the frequency of mobile phone replacement is getting higher and higher. The data transfer is commonly referred to as “mobile phone moving”. For the existing mobile phone moving, how to transfer the old mobile phone files to the new mobile phone is a very headache. Taking the address book as an example, the existing solution passes. Third-party software is implemented, such as synchronization assistant, cloud, etc. In the existing way, the user cannot know the storage location of the file after moving the mobile phone, and the user cannot select the storage location, resulting in low user experience.
在第一方面提供的数据转移方法中,所述存储地址具体包括:手机存储地址或SD卡存储地址。In the data transfer method provided by the first aspect, the storage address specifically includes: a mobile phone storage address or an SD card storage address.
在第一方面提供的数据转移方法中,所述方法还包括:In the data transfer method provided by the first aspect, the method further includes:
第一终端依据所述转移文件的类型确定备份策略,并将该备份策略发送至第二终端。The first terminal determines a backup policy according to the type of the transferred file, and sends the backup policy to the second terminal.
在第一方面提供的数据转移方法中,所述第一终端依据所述转移文件的类型确定备份策略具体,包括:In the data transfer method provided by the first aspect, the first terminal determines, according to the type of the transfer file, a backup policy, including:
依据使用频率来确定转移文件的类型。Determine the type of transfer file based on the frequency of use.
在第一方面提供的数据转移方法中,所述第一终端依据所述转移文件的类型确定备份策略具体,包括:In the data transfer method provided by the first aspect, the first terminal determines, according to the type of the transfer file, a backup policy, including:
第一终端向用户显示所有转移文件的列表以及转移文件的类型,接收用户 对该转移文件类型的选择。The first terminal displays to the user a list of all transferred files and the type of the transferred file, and receives the user The choice of the type of transfer file.
在第一方面提供的数据转移方法中,所述数据转移的指示携带在所述通信请求的扩展字段中。In the data transfer method provided by the first aspect, the indication of the data transfer is carried in an extension field of the communication request.
在第一方面提供的数据转移方法中,所述通信请求携带一个设定长度的特殊字段表示所述数据转移的指示。In the data transfer method provided by the first aspect, the communication request carries a special field of a set length indicating an indication of the data transfer.
在第一方面提供的终端搬家方法中,所述第一终端显示所述存储文件的地址以及该地址对应的剩余空间,包括:In the terminal moving method provided by the first aspect, the first terminal displays an address of the storage file and a remaining space corresponding to the address, including:
所述第一终端以列表方式、页面方式或图形方式显示所述存储文件的地址以及该地址对应的剩余空间。The first terminal displays the address of the storage file and the remaining space corresponding to the address in a list manner, a page manner, or a graphic manner.
在第一方面提供的数据转移方法中,所述方法还包括:所述第一终端接收用户选择的转移文件以及该转移文件的存储地址,包括:In the data transfer method provided by the first aspect, the method further includes: receiving, by the first terminal, a transfer file selected by a user and a storage address of the transfer file, including:
所述第一终端接收语音文件,对所述语音文件进行识别来确定用户选择的搬家文件以及该转移文件的存储地址。The first terminal receives the voice file, and identifies the voice file to determine a moving file selected by the user and a storage address of the transferred file.
在第二方面提供的数据转移装置中,所述存储地址具体包括:手机存储地址或SD卡存储地址。In the data transfer apparatus provided in the second aspect, the storage address specifically includes: a mobile phone storage address or an SD card storage address.
在第二方面提供的数据转移装置中,所述处理单元,还用于依据所述转移文件的类型确定备份策略,并将该备份策略发送至第二终端。In the data transfer apparatus provided by the second aspect, the processing unit is further configured to determine a backup policy according to the type of the transfer file, and send the backup policy to the second terminal.
在第二方面提供的数据转移装置中,所述处理单元具体,用于依据用户的使用频率来确定转移文件的类型。In the data transfer apparatus provided in the second aspect, the processing unit is specifically configured to determine a type of the transfer file according to a frequency of use of the user.
在第二方面提供的数据转移装置中,所述处理单元具体,用于向用户显示所有转移文件的列表以及转移文件的类型,接收用户对该转移文件类型的选择。In the data transfer apparatus provided in the second aspect, the processing unit is configured to display a list of all transferred files and a type of the transferred file to the user, and receive a selection of the transfer file type by the user.
在第二方面提供的数据转移装置中,所述发送单元,具体用于所述数据转移的指示携带在所述通信请求的扩展字段中。In the data transfer apparatus provided by the second aspect, the sending unit, the indication specifically for the data transfer, is carried in an extension field of the communication request.
在第二方面提供的数据转移装置中,所述发送单元,具体用于在所述通信请求携带一个设定长度的特殊字段表示所述数据转移的指示。In the data transfer apparatus provided in the second aspect, the sending unit is specifically configured to indicate, in the communication request, a special field of a set length to indicate the data transfer.
在第二方面提供的数据转移装置中,所述处理单元,具体用于以列表方式、页面方式或图形方式显示所述存储文件的地址以及该地址对应的剩余空间。In the data transfer apparatus provided in the second aspect, the processing unit is specifically configured to display an address of the storage file and a remaining space corresponding to the address in a list manner, a page manner, or a graphic manner.
下面结合附图对本发明作进一步详细描述。 The invention is further described in detail below with reference to the accompanying drawings.
根据本发明的一个方面,提供了一种终端搬家方法。其中,该方法应用在终端中,该终端包括但不限于:服务器、计算机、平板电脑、智能手机等,当然在实际应用中,还可以增加例如智能手表或智能手环等设备。According to an aspect of the present invention, a terminal moving method is provided. The method is applied to the terminal, and the terminal includes, but is not limited to, a server, a computer, a tablet computer, a smart phone, and the like. Of course, in practical applications, devices such as a smart watch or a smart bracelet can also be added.
在一个实施例中,上述终端搬家中文件存储路径选择方法可以用于终端中,需要说明的是,所述终端仅为举例,其他现有的或今后可能出现的网络设备和用户设备如果适用于本发明,也应包含在本发明保护范围以内,并以引用方式包含于此。In an embodiment, the method for selecting a file storage path in the terminal relocation may be used in the terminal. It should be noted that the terminal is only an example, and other existing or future network devices and user equipment may be applicable if applicable. The invention is also intended to be included within the scope of the invention and is hereby incorporated by reference.
请参考图1,图1为根据本发明一个优选实施例的提供的终端搬家方法,该方法由终端完成,该方法如图1所示,包括如下步骤:Please refer to FIG. 1. FIG. 1 is a schematic diagram of a terminal moving method according to a preferred embodiment of the present invention. The method is completed by a terminal. The method is as shown in FIG.
步骤S101、第一终端向第二终端发送的通信请求,该通信请求中包括:搬家的指示;Step S101: The communication request sent by the first terminal to the second terminal, where the communication request includes: an indication of moving the home;
上述步骤S101中的第一终端向第二终端发送的通信请求可以是多种通信请求,例如在本发明一个优选实施例的一个具体方案中,上述第一终端向第二终端发送的通信请求可以为,第一终端通过无线保真(英文:Wireless Fidelity,WIFI)发送的一个通信请求,该通信请求的结构以及定义可以参见IEEE802.1中的具体定义,这里不再赘述,当然在发明一个优选实施例的另一个具体方案中,上述第一终端向第二终端发送的通信请求可以为,第一终端通过蓝牙发送的一个通信请求,当然在实际应用中,还可以采用其他的通信方式发送该通信请求,例如,第一终端通过长期演进(英文:Long Term Evolution,LTE)发送的通信请求,当然还可以为,第一终端通过码分多址(英文:Code Division Multiple Access,CDMA)发送的通信请求。本发明具体实施方式并不限于该通信请求的具体表现形式,也不限于该通信请求的遵守的具体的标准协议。The communication request sent by the first terminal to the second terminal in the foregoing step S101 may be a plurality of communication requests. For example, in a specific implementation of a preferred embodiment of the present invention, the communication request sent by the first terminal to the second terminal may be For a communication request sent by the first terminal through Wireless Fidelity (WIFI), the structure and definition of the communication request can be referred to the specific definition in IEEE802.1, and details are not described herein again. In another specific implementation of the embodiment, the communication request sent by the first terminal to the second terminal may be a communication request sent by the first terminal by using a Bluetooth, and of course, in an actual application, the communication may be sent by using another communication manner. The communication request is, for example, a communication request sent by the first terminal through Long Term Evolution (LTE), and of course, the first terminal is sent by Code Division Multiple Access (CDMA). Communication request. The specific embodiments of the present invention are not limited to the specific manifestation of the communication request, nor to the specific standard protocol for compliance with the communication request.
上述搬家的指示的值具体可以为:搬家或不搬家,其可以通过通信请求中扩展字段中个一个bit来体现,例如,设定1为搬家,设定0为不搬家,当然在实际应用中,上述设定也可以反过来,例如设定0为搬家,设定1为不搬家,本发明具体实施方式并不限定上述指示的值的具体含义。当然在实际应用中,还可以通过其他的方式作为搬家的指示,例如携带一个设定长度的特殊字段,例如10个1、10个0、11个1或12个0等方式,只需要第一终端和第二终端互相能够识别即可。 The value of the above-mentioned moving instruction may specifically be: moving or not moving, and it may be represented by one bit in the extension field in the communication request, for example, setting 1 to move, setting 0 to not moving, of course, in practical application. The above setting may be reversed. For example, setting 0 to move and setting 1 to not move, and the specific embodiment of the present invention does not limit the specific meaning of the value indicated above. Of course, in practical applications, other methods can also be used as an indication of moving, for example, carrying a special field of a set length, for example, 10 1, 10 0, 11 1 or 12 0, etc., only need the first The terminal and the second terminal can recognize each other.
步骤S102、第一终端接收第二终端发送通信响应,该通信响应可以包括:第二终端用于存储文件的地址以及该地址剩余空间;Step S102: The first terminal receives the second terminal to send a communication response, where the communication response may include: an address used by the second terminal to store the file and a remaining space of the address;
上述步骤S102中的第一终端接收的第二终端发送的通信响应可以是多种通信响应,例如在本发明一个优选实施例的一个具体方案中,上述第一终端接收的第二终端发送的通信响应可以为,第二终端通过无线保真(英文:Wireless Fidelity,WIFI)发送的一个通信响应,该通信响应的结构以及定义可以参见IEEE802.1中的具体定义,这里不再赘述,当然在发明一个优选实施例的另一个具体方案中,上述第一终端接收的第二终端发送的通信响应可以为,第二终端通过蓝牙发送的一个通信响应,当然在实际应用中,还可以采用其他的通信方式发送该通信响应,例如,第一终端通过长期演进(英文:Long Term Evolution,LTE)发送的通信响应,当然还可以为,第二终端通过码分多址(英文:Code Division Multiple Access,CDMA)发送的通信响应。本发明具体实施方式并不限于该通信请求的具体表现形式,也不限于该通信请求的遵守的具体的标准协议。The communication response sent by the second terminal received by the first terminal in the foregoing step S102 may be multiple communication responses. For example, in a specific implementation of a preferred embodiment of the present invention, the second terminal receives the communication sent by the second terminal. The response may be a communication response sent by the second terminal through Wireless Fidelity (WIFI). The structure and definition of the communication response may be referred to the specific definition in IEEE802.1, and details are not described herein. In another specific implementation of a preferred embodiment, the communication response sent by the second terminal received by the first terminal may be a communication response sent by the second terminal by using Bluetooth. Of course, in actual applications, other communications may also be used. The method sends the communication response, for example, the communication response sent by the first terminal through Long Term Evolution (LTE), and of course, the second terminal passes the code division multiple access (CDMA: Code Division Multiple Access, CDMA). ) The communication response sent. The specific embodiments of the present invention are not limited to the specific manifestation of the communication request, nor to the specific standard protocol for compliance with the communication request.
上述步骤S102中的第二终端用于存储文件的地址以及该地址剩余空间可以携带在该通信响应的扩展字段中,当然在实际应用中,也可以携带在通信响应的载荷内。The address of the second terminal used to store the file and the remaining space of the address may be carried in the extension field of the communication response. In actual applications, the payload may also be carried in the payload of the communication response.
步骤S103、第一终端显示该存储文件的地址以及该地址对应的剩余空间,第一终端接收用户选择的搬家文件以及该搬家文件的存储地址;Step S103: The first terminal displays the address of the storage file and the remaining space corresponding to the address, and the first terminal receives the moving file selected by the user and the storage address of the moving file.
上述步骤S103中的第一终端显示该存储文件的地址以及该地址对应的剩余空间的方式可以有多种,例如通过一个列表(list)的方式来显示该存储文件的地址以及该地址对应的剩余空间,当然其还可以通过其他的方式来显示,例如通过一个页面来显示,当然也可以通过图形的方式来显示,本发明具体实施方式并不限制上述显示的具体方式。The manner in which the first terminal in the foregoing step S103 displays the address of the storage file and the remaining space corresponding to the address may be various, for example, displaying the address of the storage file and the remaining corresponding to the address by means of a list. The space, of course, can also be displayed by other means, for example, by a page, and of course, can also be displayed graphically. The specific embodiment of the present invention does not limit the specific manner of the above display.
上述步骤S103中第一终端接收用户选择的搬家文件以及该搬家文件的存储地址的方式可以有多种,例如通过接收用户的语音文件,然后对该语音文件进行识别来确定用户选择的搬家文件以及该搬家文件的存储地址,当然在实际应用中,还可以通过其他的方式来选择,例如,通过接收用户对触摸屏的点击位置来确定用户选择的搬家文件以及该搬家文件的存储地址。 In the above step S103, the manner in which the first terminal receives the moving file selected by the user and the storage address of the moving file may be various, for example, by receiving the voice file of the user, and then identifying the voice file to determine the moving file selected by the user and The storage address of the moving file may of course be selected in other ways, for example, by receiving the user's click position on the touch screen to determine the moving file selected by the user and the storage address of the moving file.
步骤S104、第一终端判断该搬家文件是否小于该搬家文件的存储地址的剩余空间,如搬家文件小于该搬家文件的存储地址的剩余空间,向所述第二终端发送该搬家文件以及该搬家文件的存储地址的标识。Step S104: The first terminal determines whether the moving file is smaller than the remaining space of the storage address of the moving file, and if the moving file is smaller than the remaining space of the storage address of the moving file, sends the moving file and the moving file to the second terminal. The identifier of the storage address.
本发明提供的技术方案通过接收第二终端发送的通信响应来来获取第二终端(即新手机)的存储地址(包括但不限于:手机存储、SD1卡、SD2卡)以及该存储地址对应的剩余空间,从而为用户提供相应的选择,所以其具有方便用户选择存储文件的存储路径,提升用户体验度的优点。The technical solution provided by the present invention acquires a storage address of the second terminal (ie, a new mobile phone) by receiving a communication response sent by the second terminal (including but not limited to: a mobile phone storage, an SD1 card, an SD2 card), and a corresponding address of the storage address. The remaining space, so as to provide users with corresponding choices, so it has the advantage of facilitating the user to select the storage path of the storage file and improve the user experience.
请参考图2,图2为根据本发明另一个优选实施例的提供的终端搬家方法,该方法由终端完成,该方法如图2所示,包括如下步骤:Please refer to FIG. 2. FIG. 2 is a schematic diagram of a terminal moving method according to another preferred embodiment of the present invention. The method is completed by a terminal. The method is as shown in FIG. 2, and includes the following steps:
步骤S201、第一终端向第二终端发送的通信请求,该通信请求中包括:搬家的指示;Step S201: The communication request sent by the first terminal to the second terminal, where the communication request includes: an indication of moving;
上述步骤S201中的第一终端向第二终端发送的通信请求可以是多种通信请求,例如在本发明一个优选实施例的一个具体方案中,上述第一终端向第二终端发送的通信请求可以为,第一终端通过无线保真(英文:Wireless Fidelity,WIFI)发送的一个通信请求,该通信请求的结构以及定义可以参见IEEE802.1中的具体定义,这里不再赘述,当然在发明一个优选实施例的另一个具体方案中,上述第一终端向第二终端发送的通信请求可以为,第一终端通过蓝牙发送的一个通信请求,当然在实际应用中,还可以采用其他的通信方式发送该通信请求,例如,第一终端通过长期演进(英文:Long Term Evolution,LTE)发送的通信请求,当然还可以为,第一终端通过码分多址(英文:Code Division Multiple Access,CDMA)发送的通信请求。本发明具体实施方式并不限于该通信请求的具体表现形式,也不限于该通信请求的遵守的具体的标准协议。The communication request sent by the first terminal to the second terminal in the foregoing step S201 may be a plurality of communication requests. For example, in a specific implementation of a preferred embodiment of the present invention, the communication request sent by the first terminal to the second terminal may be For a communication request sent by the first terminal through Wireless Fidelity (WIFI), the structure and definition of the communication request can be referred to the specific definition in IEEE802.1, and details are not described herein again. In another specific implementation of the embodiment, the communication request sent by the first terminal to the second terminal may be a communication request sent by the first terminal by using a Bluetooth, and of course, in an actual application, the communication may be sent by using another communication manner. The communication request is, for example, a communication request sent by the first terminal through Long Term Evolution (LTE), and of course, the first terminal is sent by Code Division Multiple Access (CDMA). Communication request. The specific embodiments of the present invention are not limited to the specific manifestation of the communication request, nor to the specific standard protocol for compliance with the communication request.
上述搬家的指示的值具体可以为:搬家或不搬家,其可以通过通信请求中扩展字段中个一个bit来体现,例如,设定1为搬家,设定0为不搬家,当然在实际应用中,上述设定也可以反过来,例如设定0为搬家,设定1为不搬家,本发明具体实施方式并不限定上述指示的值的具体含义。当然在实际应用中,还可以通过其他的方式作为搬家的指示,例如携带一个设定长度的特殊字段,例如10个1、10个0、11个1或12个0等方式,只需要第一终端和第二终端互相能够识别即可。 The value of the above-mentioned moving instruction may specifically be: moving or not moving, and it may be represented by one bit in the extension field in the communication request, for example, setting 1 to move, setting 0 to not moving, of course, in practical application. The above setting may be reversed. For example, setting 0 to move and setting 1 to not move, and the specific embodiment of the present invention does not limit the specific meaning of the value indicated above. Of course, in practical applications, other methods can also be used as an indication of moving, for example, carrying a special field of a set length, for example, 10 1, 10 0, 11 1 or 12 0, etc., only need the first The terminal and the second terminal can recognize each other.
步骤S202、第一终端接收第二终端发送通信响应,该通信响应可以包括:第二终端用于存储文件的地址以及该地址剩余空间;Step S202: The first terminal receives the second terminal to send a communication response, where the communication response may include: an address used by the second terminal to store the file and a remaining space of the address;
上述步骤S202中的第一终端接收的第二终端发送的通信响应可以是多种通信响应,例如在本发明一个优选实施例的一个具体方案中,上述第一终端接收的第二终端发送的通信响应可以为,第二终端通过无线保真(英文:Wireless Fidelity,WIFI)发送的一个通信响应,该通信响应的结构以及定义可以参见IEEE802.1中的具体定义,这里不再赘述,当然在发明一个优选实施例的另一个具体方案中,上述第一终端接收的第二终端发送的通信响应可以为,第二终端通过蓝牙发送的一个通信响应,当然在实际应用中,还可以采用其他的通信方式发送该通信响应,例如,第一终端通过长期演进(英文:Long Term Evolution,LTE)发送的通信响应,当然还可以为,第二终端通过码分多址(英文:Code Division Multiple Access,CDMA)发送的通信响应。本发明具体实施方式并不限于该通信请求的具体表现形式,也不限于该通信请求的遵守的具体的标准协议。The communication response sent by the second terminal received by the first terminal in the foregoing step S202 may be multiple communication responses. For example, in a specific implementation of a preferred embodiment of the present invention, the second terminal receives the communication sent by the second terminal. The response may be a communication response sent by the second terminal through Wireless Fidelity (WIFI). The structure and definition of the communication response may be referred to the specific definition in IEEE802.1, and details are not described herein. In another specific implementation of a preferred embodiment, the communication response sent by the second terminal received by the first terminal may be a communication response sent by the second terminal by using Bluetooth. Of course, in actual applications, other communications may also be used. The method sends the communication response, for example, the communication response sent by the first terminal through Long Term Evolution (LTE), and of course, the second terminal passes the code division multiple access (CDMA: Code Division Multiple Access, CDMA). ) The communication response sent. The specific embodiments of the present invention are not limited to the specific manifestation of the communication request, nor to the specific standard protocol for compliance with the communication request.
上述步骤S202中的第二终端用于存储文件的地址以及该地址剩余空间可以携带在该通信响应的扩展字段中,当然在实际应用中,也可以携带在通信响应的载荷内。The address of the second terminal used to store the file and the remaining space of the address may be carried in the extension field of the communication response. In actual applications, the payload may also be carried in the payload of the communication response.
步骤S203、第一终端显示该存储文件的地址以及该地址对应的剩余空间,第一终端接收用户选择的搬家文件以及该搬家文件的存储地址;Step S203: The first terminal displays the address of the storage file and the remaining space corresponding to the address, and the first terminal receives the moving file selected by the user and the storage address of the moving file.
上述步骤S203中的第一终端显示该存储文件的地址以及该地址对应的剩余空间的方式可以有多种,例如通过一个列表(list)的方式来显示该存储文件的地址以及该地址对应的剩余空间,当然其还可以通过其他的方式来显示,例如通过一个页面来显示,当然也可以通过图形的方式来显示,本发明具体实施方式并不限制上述显示的具体方式。The manner in which the first terminal in the foregoing step S203 displays the address of the storage file and the remaining space corresponding to the address may be various, for example, displaying the address of the storage file and the remaining corresponding to the address by means of a list. The space, of course, can also be displayed by other means, for example, by a page, and of course, can also be displayed graphically. The specific embodiment of the present invention does not limit the specific manner of the above display.
上述步骤S203中第一终端接收用户选择的搬家文件以及该搬家文件的存储地址的方式可以有多种,例如通过接收用户的语音文件,然后对该语音文件进行识别来确定用户选择的搬家文件以及该搬家文件的存储地址,当然在实际应用中,还可以通过其他的方式来选择,例如,通过接收用户对触摸屏的点击位置来确定用户选择的搬家文件以及该搬家文件的存储地址。 In the above step S203, the manner in which the first terminal receives the moving file selected by the user and the storage address of the moving file may be various, for example, by receiving the voice file of the user, and then identifying the voice file to determine the moving file selected by the user and The storage address of the moving file may of course be selected in other ways, for example, by receiving the user's click position on the touch screen to determine the moving file selected by the user and the storage address of the moving file.
步骤S204、第一终端判断该搬家文件是否小于该搬家文件的存储地址的剩余空间,如搬家文件是小于该搬家文件的存储地址的剩余空间,向所述第二终端发送该搬家文件以及该搬家文件的存储地址的标识。Step S204: The first terminal determines whether the moving file is smaller than the remaining space of the storage address of the moving file, and if the moving file is less than the remaining space of the storage address of the moving file, the moving file is sent to the second terminal and the moving The identifier of the storage address of the file.
步骤S205、第一终端依据该搬家文件的类型确定备份策略,并将该备份策略发送至第二终端。Step S205: The first terminal determines a backup policy according to the type of the moving file, and sends the backup policy to the second terminal.
上述步骤S205中的搬家文件的类型具体可以为:必要搬家文件、重要搬家文件、普通搬家文件,不同类型的搬家文件对应不同的备份策略,例如,对于必要搬家文件,该对应的备份策略可以为,至少备份一份,对于重要搬家文件,该对应的备份策略可以为,可以备份一份,对于普通搬家文件的备份策略可以为,可以不备份。The type of the moving file in the above step S205 may specifically be: a necessary moving file, an important moving file, and an ordinary moving file. Different types of moving files correspond to different backup strategies. For example, for a necessary moving file, the corresponding backup policy may be At least one backup is required. For important moving files, the corresponding backup strategy can be one, and one backup can be made. The backup strategy for ordinary moving files can be, and can not be backed up.
上述搬家文件的类型的确认方式具体可以为:The confirmation method of the type of the above moving file may specifically be:
依据用户的使用频率来确定其搬家文件的类型,例如,对于通讯录这样的每天都需要使用的文件,由于其使用频率非常高,其属于必要搬家文件,对于不常用的文件,例如照片,由于其使用频率比较低,其属于普通搬家文件,对于将使用频率适中的文件,例如视频文件等。The type of moving files is determined according to the frequency of use of the user. For example, a file that needs to be used every day, such as an address book, is a necessary moving file because it is used frequently. For files that are not commonly used, such as photos, due to Its use frequency is relatively low, it belongs to ordinary moving files, for files that will be used frequently, such as video files.
当然在实际应用中,还可以通过其他的方式来确定搬家文件的类型,例如,第一终端向用户显示所有搬家文件的列表以及搬家文件的类型,接收用户对该搬家文件类型的选择。Of course, in practical applications, the type of the moving file can also be determined by other means. For example, the first terminal displays the list of all moving files and the type of the moving file to the user, and receives the user's selection of the moving file type.
本发明提供的技术方案通过接收第二终端发送的通信响应来来获取第二终端(即新手机)的存储地址(包括但不限于:手机存储、SD1卡、SD2卡)以及该存储地址对应的剩余空间,从而为用户提供相应的选择,所以其具有方便用户选择存储文件的存储路径,提升用户体验度的优点。The technical solution provided by the present invention acquires a storage address of the second terminal (ie, a new mobile phone) by receiving a communication response sent by the second terminal (including but not limited to: a mobile phone storage, an SD1 card, an SD2 card), and a corresponding address of the storage address. The remaining space, so as to provide users with corresponding choices, so it has the advantage of facilitating the user to select the storage path of the storage file and improve the user experience.
参阅图3,图3为本发明又一优选实施例提供一种终端搬家装置300,所述装置配置于第一终端,所述装置包括:Referring to FIG. 3, FIG. 3 is a schematic diagram of a terminal moving device 300. The device is configured in a first terminal, and the device includes:
发送单元301,用于向第二终端发送的通信请求,所述通信请求中包括:搬家的指示;The sending unit 301 is configured to send a communication request to the second terminal, where the communication request includes: an indication of moving the home;
接收单元302,用于接收第二终端发送通信响应,所述通信响应包括:第二终端用于存储文件的地址以及该地址剩余空间;The receiving unit 302 is configured to receive, by the second terminal, a communication response, where the communication response includes: an address used by the second terminal to store the file and a remaining space of the address;
处理单元303,用于显示所述存储文件的地址以及该地址对应的剩余空 间,第一终端接收用户选择的搬家文件以及该搬家文件的存储地址;判断所述搬家文件是否小于该搬家文件的存储地址的剩余空间,如搬家文件小于该搬家文件的存储地址的剩余空间,向所述第二终端发送所述搬家文件以及所述搬家文件的存储地址的标识。The processing unit 303 is configured to display an address of the storage file and a remaining space corresponding to the address The first terminal receives the moving file selected by the user and the storage address of the moving file; and determines whether the moving file is smaller than the remaining space of the storage address of the moving file, and if the moving file is smaller than the remaining space of the storage address of the moving file, Sending the moving file and the identification of the storage address of the moving file to the second terminal.
可选的,所述存储地址具体包括:手机存储或SD卡存储。Optionally, the storage address specifically includes: a mobile phone storage or an SD card storage.
可选的,处理单元303,还用于依据所述搬家文件的类型确定备份策略,并将该备份策略发送至第二终端。Optionally, the processing unit 303 is further configured to determine a backup policy according to the type of the moving file, and send the backup policy to the second terminal.
可选的,处理单元303具体,用于依据用户的使用频率来确定搬家文件的类型。Optionally, the processing unit 303 is specifically configured to determine a type of the moving file according to the frequency of use of the user.
可选的,处理单元303具体,用于向用户显示所有搬家文件的列表以及搬家文件的类型,接收用户对该搬家文件类型的选择。Optionally, the processing unit 303 is specifically configured to display to the user a list of all moving files and a type of the moving file, and receive the user's selection of the moving file type.
本发明具体实施方式还提供一种终端,所述终端包括上述的终端搬家中文件存储路径选择装置300。A specific embodiment of the present invention further provides a terminal, where the terminal includes the above-mentioned terminal moving file storage path selecting device 300.
对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本发明内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。系统权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第一,第二等词语用来表示名称,而并不表示任何特定的顺序。It is apparent to those skilled in the art that the present invention is not limited to the details of the above-described exemplary embodiments, and the present invention can be embodied in other specific forms without departing from the spirit or essential characteristics of the invention. Therefore, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the invention is defined by the appended claims instead All changes in the meaning and scope of equivalent elements are included in the present invention. Any reference signs in the claims should not be construed as limiting the claim. In addition, it is to be understood that the word "comprising" does not exclude other elements or steps. A plurality of units or devices recited in the system claims can also be implemented by a unit or device by software or hardware. The first, second, etc. words are used to denote names and do not denote any particular order.
附图中的流程图和框图显示了根据本发明的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框 图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the invention. In this regard, each block of the flowchart or block diagram can represent a module, a program segment, or a portion of code that includes one or more of the Executable instructions. It should also be noted that in some alternative implementations, the functions noted in the blocks may also occur in a different order than that illustrated in the drawings. For example, two consecutive blocks may be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending upon the functionality involved. Also note that the box Each block of the figures and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified function or function, or Implemented in combination with computer instructions.
参见图4,本发明实施例还提供一种终端400,该终端400包括但不限于:智能手机、智能手表、平板电脑、个人计算机、笔记本电脑或计算机群组,如图4所示,该终端400包括:处理器401、存储器402、收发器403和总线404。收发器403用于与外部设备之间收发数据。设备400中的处理器401的数量可以是一个或多个。本申请的一些实施例中,处理器401、存储器402和收发器403可通过总线系统或其他方式连接。设备400可以用于执行图1所示的方法。关于本实施例涉及的术语的含义以及举例,可以参考图1对应的说明。此处不再赘述。Referring to FIG. 4, an embodiment of the present invention further provides a terminal 400, including but not limited to: a smart phone, a smart watch, a tablet computer, a personal computer, a notebook computer, or a computer group, as shown in FIG. 4, the terminal 400 includes a processor 401, a memory 402, a transceiver 403, and a bus 404. The transceiver 403 is configured to transmit and receive data with and from an external device. The number of processors 401 in device 400 may be one or more. In some embodiments of the present application, processor 401, memory 402, and transceiver 403 may be connected by a bus system or other means. Apparatus 400 can be used to perform the method illustrated in FIG. For the meaning and examples of the terms involved in the embodiment, reference may be made to the corresponding description of FIG. 1. I will not repeat them here.
其中,存储器402中存储程序代码。处理器401用于调用存储器402中存储的程序代码,用于执行如图1所示的步骤。The program code is stored in the memory 402. The processor 401 is configured to call program code stored in the memory 402 for performing the steps as shown in FIG.
需要说明的是,这里的处理器401可以是一个处理元件,也可以是多个处理元件的统称。例如,该处理元件可以是中央处理器(Central Processing Unit,CPU),也可以是特定集成电路(Application Specific Integrated Circuit,ASIC),或者是被配置成实施本申请实施例的一个或多个集成电路,例如:一个或多个微处理器(digital signal processor,DSP),或,一个或者多个现场可编程门阵列(Field Programmable Gate Array,FPGA)。It should be noted that the processor 401 herein may be a processing component or a collective name of multiple processing components. For example, the processing component may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. For example, one or more digital signal processors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs).
存储器403可以是一个存储装置,也可以是多个存储元件的统称,且用于存储可执行程序代码或应用程序运行装置运行所需要参数、数据等。且存储器403可以包括随机存储器(RAM),也可以包括非易失性存储器(non-volatile memory),例如磁盘存储器,闪存(Flash)等。The memory 403 may be a storage device or a collective name of a plurality of storage elements, and is used to store executable program code or parameters, data, and the like required for the application running device to operate. And the memory 403 may include random access memory (RAM), and may also include non-volatile memory such as a magnetic disk memory, a flash memory, or the like.
总线404可以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外部设备互连(Peripheral Component,PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。为便于表示,图4中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The bus 404 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 4, but it does not mean that there is only one bus or one type of bus.
该用户设备还可以包括输入输出装置,连接于总线404,以通过总线与处 理器401等其它部分连接。该输入输出装置可以为操作人员提供一输入界面,以便操作人员通过该输入界面选择布控项,还可以是其它接口,可通过该接口外接其它设备。The user equipment may further include an input and output device connected to the bus 404 for passing through the bus. The processor 401 and other parts are connected. The input/output device can provide an input interface for the operator, so that the operator can select the control item through the input interface, and can also be other interfaces through which other devices can be externally connected.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some communication interface, device or unit, and may be electrical, mechanical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。 The functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围,其均应涵盖在本发明的权利要求和说明书的范围当中。 Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. The scope is intended to be included within the scope of the claims and the description of the invention.

Claims (20)

  1. 一种数据转移方法,其特征在于,所述方法包括如下步骤:A data transfer method, characterized in that the method comprises the following steps:
    第一终端向第二终端发送的通信请求,所述通信请求中包括:数据转移的指示;a communication request sent by the first terminal to the second terminal, where the communication request includes: an indication of data transfer;
    第一终端接收第二终端发送通信响应,所述通信响应包括:第二终端用于存储文件的地址以及该地址剩余空间;The first terminal receives the second terminal to send a communication response, where the communication response includes: an address used by the second terminal to store the file and a remaining space of the address;
    第一终端显示所述存储文件的地址以及该地址对应的剩余空间,第一终端接收用户选择的转移文件以及该转移文件的存储地址;The first terminal displays an address of the storage file and a remaining space corresponding to the address, and the first terminal receives the transfer file selected by the user and a storage address of the transfer file;
    第一终端判断所述转移文件是否小于该转移文件的存储地址的剩余空间,如转移文件小于该转移文件的存储地址的剩余空间,向所述第二终端发送所述转移文件以及所述转移文件的存储地址的标识。Determining, by the first terminal, whether the transfer file is smaller than a remaining space of a storage address of the transfer file, for example, if the transfer file is smaller than a remaining space of the storage address of the transfer file, sending the transfer file and the transfer file to the second terminal The identifier of the storage address.
  2. 根据权利要求1所述的方法,其特征在于,所述存储地址具体包括:手机存储地址或SD卡存储地址。The method according to claim 1, wherein the storage address comprises: a mobile phone storage address or an SD card storage address.
  3. 根据权利要安全1所述的方法,其特征在于,所述方法还包括:The method of claim 1, wherein the method further comprises:
    第一终端依据所述转移文件的类型确定备份策略,并将该备份策略发送至第二终端。The first terminal determines a backup policy according to the type of the transferred file, and sends the backup policy to the second terminal.
  4. 根据权利要求3所述的方法,其特征在于,所述第一终端依据所述转移文件的类型确定备份策略具体,包括:The method according to claim 3, wherein the determining, by the first terminal, the backup policy according to the type of the transfer file comprises:
    依据使用频率来确定转移文件的类型。Determine the type of transfer file based on the frequency of use.
  5. 根据权利要求3所述的方法,其特征在于,所述第一终端依据所述转移文件的类型确定备份策略具体,包括:The method according to claim 3, wherein the determining, by the first terminal, the backup policy according to the type of the transfer file comprises:
    第一终端向用户显示所有转移文件的列表以及转移文件的类型,接收用户对该转移文件类型的选择。The first terminal displays to the user a list of all transferred files and the type of the transferred file, and receives the user's selection of the type of the transferred file.
  6. 根据权利要求1所述的方法,其特征在于,所述数据转移的指示携带在所述通信请求的扩展字段中。The method of claim 1 wherein the indication of the data transfer is carried in an extension field of the communication request.
  7. 根据权利要求1所述的方法,其特征在于,所述通信请求携带一个设定长度的特殊字段表示所述数据转移的指示。The method of claim 1 wherein said communication request carries a special field of a set length to indicate an indication of said data transfer.
  8. 根据权利要求1所述的方法,其特征在于,所述第一终端显示所述存 储文件的地址以及该地址对应的剩余空间,包括:The method according to claim 1, wherein said first terminal displays said deposit The address of the stored file and the remaining space corresponding to the address, including:
    所述第一终端以列表方式、页面方式或图形方式显示所述存储文件的地址以及该地址对应的剩余空间。The first terminal displays the address of the storage file and the remaining space corresponding to the address in a list manner, a page manner, or a graphic manner.
  9. 根据权利要求1所述的方法,其特征在于,所述方法还包括:所述第一终端接收用户选择的转移文件以及该转移文件的存储地址,包括:The method according to claim 1, wherein the method further comprises: receiving, by the first terminal, a transfer file selected by a user and a storage address of the transfer file, including:
    所述第一终端接收语音文件,对所述语音文件进行识别来确定用户选择的转移文件以及该转移文件的存储地址。The first terminal receives the voice file, and identifies the voice file to determine a transfer file selected by the user and a storage address of the transfer file.
  10. 一种数据转移装置,其特征在于,所述装置配置于第一终端,所述装置包括:A data transfer device, wherein the device is configured in a first terminal, and the device includes:
    发送单元,用于向第二终端发送的通信请求,所述通信请求中包括:数据转移的指示;a sending unit, configured to send a communication request to the second terminal, where the communication request includes: an indication of data transfer;
    接收单元,用于接收第二终端发送通信响应,所述通信响应包括:第二终端用于存储文件的地址以及该地址剩余空间;a receiving unit, configured to receive, by the second terminal, a communication response, where the communication response includes: an address used by the second terminal to store the file and a remaining space of the address;
    处理单元,用于显示所述存储文件的地址以及该地址对应的剩余空间,第一终端接收用户选择的转移文件以及该转移文件的存储地址;判断所述转移文件是否小于该转移文件的存储地址的剩余空间,如转移文件小于该转移文件的存储地址的剩余空间,向所述第二终端发送所述转移文件以及所述转移文件的存储地址的标识。a processing unit, configured to display an address of the storage file and a remaining space corresponding to the address, the first terminal receives the transfer file selected by the user and a storage address of the transfer file, and determines whether the transfer file is smaller than a storage address of the transfer file The remaining space, such as the transfer file being smaller than the remaining space of the storage address of the transfer file, sends the transfer file and the identifier of the storage address of the transfer file to the second terminal.
  11. 根据权利要求10所述的装置,其特征在于,所述存储地址具体包括:手机存储地址或SD卡存储地址。The device according to claim 10, wherein the storage address comprises: a mobile phone storage address or an SD card storage address.
  12. 根据权利要安全10所述的装置,其特征在于,所述处理单元,还用于依据所述转移文件的类型确定备份策略,并将该备份策略发送至第二终端。The device of claim 10, wherein the processing unit is further configured to determine a backup policy according to the type of the transferred file, and send the backup policy to the second terminal.
  13. 根据权利要求12所述的装置,其特征在于,所述处理单元具体,用于依据用户的使用频率来确定转移文件的类型。The apparatus according to claim 12, wherein the processing unit is specifically configured to determine a type of the transfer file according to a frequency of use of the user.
  14. 根据权利要求12所述的装置,其特征在于,所述处理单元具体,用于向用户显示所有转移文件的列表以及转移文件的类型,接收用户对该转移文件类型的选择。The apparatus according to claim 12, wherein the processing unit is configured to display a list of all transferred files and a type of the transferred file to the user, and receive a user selection of the type of the transferred file.
  15. 根据权利要求8所述的装置,其特征在于,The device of claim 8 wherein:
    所述发送单元,具体用于所述数据转移的指示携带在所述通信请求的扩展 字段中。The sending unit, specifically for the indication of the data transfer, carries an extension in the communication request In the field.
  16. 根据权利要求8所述的装置,其特征在于,The device of claim 8 wherein:
    所述发送单元,具体用于在所述通信请求携带一个设定长度的特殊字段表示所述数据转移的指示。The sending unit is specifically configured to indicate that the data transfer is performed by a special field carrying a set length in the communication request.
  17. 根据权利要求8所述的装置,其特征在于,The device of claim 8 wherein:
    所述处理单元,具体用于以列表方式、页面方式或图形方式显示所述存储文件的地址以及该地址对应的剩余空间。The processing unit is specifically configured to display an address of the storage file and a remaining space corresponding to the address in a list manner, a page manner, or a graphic manner.
  18. 一种终端,其特征在于,所述终端包括:处理器、存储器;所述处理器与所述存储器连接,所述存储器用于存储程序代码,所述处理器用于调用所述存储器中存储的程序代码执行如权利要求1-9任一项所述的方法。A terminal, comprising: a processor, a memory; the processor is connected to the memory, the memory is used to store program code, and the processor is configured to invoke a program stored in the memory The code performs the method of any of claims 1-9.
  19. 一种计算机存储介质,其特征在于,其用于存储计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-9任一项所述的方法。A computer storage medium for storing a computer program, wherein the computer program causes a computer to perform the method of any one of claims 1-9.
  20. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如权利要求1-9任一项所述的方法。 A computer program product, comprising: a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to perform as claimed in any one of claims 1-9 The method described.
PCT/CN2017/098070 2016-09-14 2017-08-18 Data transfer method and related product WO2018049964A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610826102.8A CN106484506B (en) 2016-09-14 2016-09-14 File storage path selection method and device in terminal moving
CN201610826102.8 2016-09-14

Publications (1)

Publication Number Publication Date
WO2018049964A1 true WO2018049964A1 (en) 2018-03-22

Family

ID=58267267

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/098070 WO2018049964A1 (en) 2016-09-14 2017-08-18 Data transfer method and related product

Country Status (2)

Country Link
CN (1) CN106484506B (en)
WO (1) WO2018049964A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106484506B (en) * 2016-09-14 2020-01-14 Oppo广东移动通信有限公司 File storage path selection method and device in terminal moving

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102215268A (en) * 2011-07-14 2011-10-12 北京飞杰信息技术有限公司 Method and device for transferring file data
CN103703439A (en) * 2012-10-23 2014-04-02 华为终端有限公司 Method and apparatus for expanding storage space
CN105224676A (en) * 2015-10-13 2016-01-06 北京奇虎科技有限公司 The method of mobile terminal file migration and device
CN106231544A (en) * 2016-09-14 2016-12-14 广东欧珀移动通信有限公司 The removal of home of a kind of terminal is transmitted the method and device that path storage selects
CN106484506A (en) * 2016-09-14 2017-03-08 广东欧珀移动通信有限公司 File store path system of selection and device in a kind of terminal removal of home

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104426952A (en) * 2013-08-28 2015-03-18 华为技术有限公司 Data migration method, device and system
CN104168536B (en) * 2014-08-29 2017-11-07 广东欧珀移动通信有限公司 Data copy method and system between a kind of mobile terminal
CN105491113B (en) * 2015-11-25 2019-03-12 小米科技有限责任公司 Moving method, device and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102215268A (en) * 2011-07-14 2011-10-12 北京飞杰信息技术有限公司 Method and device for transferring file data
CN103703439A (en) * 2012-10-23 2014-04-02 华为终端有限公司 Method and apparatus for expanding storage space
CN105224676A (en) * 2015-10-13 2016-01-06 北京奇虎科技有限公司 The method of mobile terminal file migration and device
CN106231544A (en) * 2016-09-14 2016-12-14 广东欧珀移动通信有限公司 The removal of home of a kind of terminal is transmitted the method and device that path storage selects
CN106484506A (en) * 2016-09-14 2017-03-08 广东欧珀移动通信有限公司 File store path system of selection and device in a kind of terminal removal of home

Also Published As

Publication number Publication date
CN106484506B (en) 2020-01-14
CN106484506A (en) 2017-03-08

Similar Documents

Publication Publication Date Title
EP2836937B1 (en) Method and apparatus for facilitating switching between devices
JP6362761B2 (en) Roaming network access method and apparatus
WO2018103451A1 (en) Fast wireless fidelity connection method and apparatus
WO2018103405A1 (en) Method for identifying access point and hotspot, and related product
WO2018049933A1 (en) Data migration method and related product
WO2018103466A1 (en) Method for applying wireless fidelity country code, apparatus, intelligent terminal and storage medium
WO2017071102A1 (en) A calling method, system and smart terminal
US11231836B2 (en) Multi-window displaying apparatus and method and mobile electronic equipment
US20150242076A1 (en) Method of editing one or more objects and apparatus for same
US20180248947A1 (en) Metered Network Synchronization
WO2018049939A1 (en) Data migration method and related product
CN104168536A (en) Method and system for copying data between mobile terminals
JP2015012443A (en) Information processing terminal and radio connection control program
CN104468499A (en) Determining format compatibility across a data processing device and another data processing device prior to transfer of a multimedia file therebetween
WO2018049975A1 (en) Data transfer method and related product
WO2018049964A1 (en) Data transfer method and related product
US20150189498A1 (en) Interactive Remote Windows Between Applications Operating Within Heterogeneous Operating Systems on Mobile and Stationary Devices
WO2019010799A1 (en) Internet of things terminal migration method and gateway
US10805472B2 (en) Terminal apparatus, information processing system, and information transmission method
WO2015074569A1 (en) Method and apparatus for displaying transmission status of cloud documents
CN106507268B (en) Method and device for dynamic verification in mobile phone carriers
WO2017185693A1 (en) Electronic device and method for copying data from another directly connected electronic device
US9736250B2 (en) Non-network controller communication
US20130290549A1 (en) Method for managing network connection information and electronic device thereof
CN107535013B (en) Service processing method and terminal

Legal Events

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

Ref document number: 17850166

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17850166

Country of ref document: EP

Kind code of ref document: A1