WO2020044084A1 - 近场数据迁移方法及其装置 - Google Patents

近场数据迁移方法及其装置 Download PDF

Info

Publication number
WO2020044084A1
WO2020044084A1 PCT/IB2018/057144 IB2018057144W WO2020044084A1 WO 2020044084 A1 WO2020044084 A1 WO 2020044084A1 IB 2018057144 W IB2018057144 W IB 2018057144W WO 2020044084 A1 WO2020044084 A1 WO 2020044084A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
hotspot
data
ultrasonic signal
password
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/IB2018/057144
Other languages
English (en)
French (fr)
Inventor
邓方泉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ucweb Singapore Pte Ltd
Original Assignee
Ucweb Singapore Pte Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ucweb Singapore Pte Ltd filed Critical Ucweb Singapore Pte Ltd
Publication of WO2020044084A1 publication Critical patent/WO2020044084A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Definitions

  • the embodiments of the present application relate to the field of Internet technologies, and in particular, to a method, a device, a system, a device / terminal / server, and a computer-readable medium for near-field data migration. Background technique
  • a terminal device-based data migration is typically performed in a two-dimensional code manner, and a basic implementation process of the method is as follows: A user brings a terminal device (for example, a smart phone) near a two-dimensional code provider (for example, smart Mobile phone) provided the QR code and capture the image of the QR code via the camera of the terminal device, and then the related application in the terminal device parses the obtained QR code image to obtain the name and password of the hotspot of the QR code provider .
  • a terminal device for example, a smart phone
  • a two-dimensional code provider for example, smart Mobile phone
  • the above existing technical solutions have the following problems: Since the two-dimensional code is susceptible to interference by ambient light, the effective range is limited, and when the resolution of the camera of the terminal device is low, the two-dimensional code extracted by the two-dimensional code The sharpness of the image is low, which results in a reduction in the speed of parsing the two-dimensional code image. In addition, since the terminal device needs to be manually brought close to the target two-dimensional code, the operation is inconvenient. Summary of the invention
  • the purpose of this application is to propose a method, device, system, device / terminal / server, and computer-readable medium for migrating near-field data, which is used to solve the existing identification and identity of the old terminal device that cannot be reliably identified in the prior art. Furthermore, the connection cannot be established reliably.
  • an embodiment of the present application provides a near-field data migration method, which includes: in response to an operation of performing data migration in a local area network, a first terminal device triggers opening of a hot spot, and generates an ultrasonic signal according to the hot spot;
  • the first terminal device determines data to be migrated
  • the first terminal device migrates the data to be migrated to the second terminal device through the local area network.
  • an embodiment of the present application provides a near-field data migration device, including: a generating module configured to, in response to an operation of performing data migration in a local area network, trigger the opening of a hot spot, and generate an ultrasonic signal according to the hot spot ;
  • a first playback module configured to play the ultrasonic signal so that a second terminal device can access the hotspot by analyzing the ultrasonic signal
  • a determining module configured to determine data to be migrated if it is detected that the second terminal device accesses the hotspot
  • a migration module is configured to migrate the data to be migrated to the second terminal device through the local area network.
  • an embodiment of the present application provides a near-field data migration system, including: a first terminal device and a second terminal device, where the first terminal device and the second terminal device are located in a same local area network, and responding For the operation of data migration in a local area network, the first terminal device triggers the opening of a hot spot, generates an ultrasonic signal according to the hot spot, and plays the ultrasonic signal, so that the second terminal device can analyze the ultrasonic wave Signal access to the hotspot; if detected When it is detected that the second terminal device accesses the hotspot, the first terminal device determines data to be migrated, and migrates the data to be migrated to the second terminal device through the local area network.
  • an embodiment of the present application provides a device / terminal / server, including: one or more processors;
  • Computer-readable media configured to store one or more programs
  • the one or more processors When the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method as described in any one of the foregoing embodiments.
  • an embodiment of the present application provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, the method as described in any of the foregoing embodiments is implemented.
  • device, system, device / terminal / server, and computer-readable medium provided in this application, in response to an operation of performing data migration in a local area network, triggering the opening of a hot spot, and generating an ultrasonic signal according to the hot spot, and Playing an ultrasonic signal, so that the second terminal device accesses the hotspot by analyzing the ultrasonic signal; if it is detected that the second terminal device is connected to the hotspot, determining the data to be migrated, and migrating the data to be migrated to the second terminal device through the local area network, It can reliably identify the identity and identity of the old terminal equipment, and then reliably establish a connection and perform data migration. In addition, it has high scene applicability and is easy to use. BRIEF DESCRIPTION OF THE DRAWINGS
  • FIG. 1 is a schematic flowchart of a near-field data migration method in Embodiment 1 of this application;
  • FIG. 2 is a schematic flowchart of a near-field data migration method in Embodiment 2 of the present application
  • FIG. 3 is a schematic structural diagram of a near-field data migration device in Embodiment 3 of the present application.
  • FIG. 4 is a schematic structural diagram of a near-field data migration device in Embodiment 4 of the present application.
  • FIG. 5 is a schematic structural diagram of a near-field data migration system in Embodiment 5 of the present application.
  • FIG. 6 is a schematic structural diagram of a device / terminal / server in Embodiment 6 of the present application.
  • FIG. 7 is a hardware structure of a device / terminal / server in Embodiment 7 of the present application. detailed description
  • FIG. 1 a schematic flowchart of a near-field data migration method according to Embodiment 1 of the present application is shown.
  • step S101 in response to a data migration operation in a local area network, the first terminal device triggers the opening of a hotspot, and generates an ultrasonic signal according to the hotspot.
  • the local area network is established by self-built WIFI to implement near-field data migration.
  • the local area network may include multiple terminal devices, and the terminal devices may be smart phones, smart tablets, smart watches, PCs, and the like.
  • This scenario is preferably suitable for scenarios where the hardware infrastructure such as the Internet is poor, there is no traffic and the operator's WiFi, or there is no network or low network speed, and data transmission between different terminal devices in the same local area network is realized. That is, different terminal devices (such as two mobile phones) are directly connected and do not depend on other networks (such as the Internet) and devices (such as routers), and the transmission rate is fast, so it is convenient to implement data interaction between different terminal devices. Has been widely used.
  • the data includes, but is not limited to, audio and video data, application installation packages, and the like.
  • the first terminal device may include at least one of the following: in-vehicle equipment, entertainment equipment, advertising equipment, personal digital assistant (PDA), tablet computer, notebook computer, handheld game console, smart glasses, smart watch, wearable device , Virtual display devices or display enhancement devices (such as Google Glass, Oculus Rift, Hololens, Gear VR).
  • PDA personal digital assistant
  • the hotspot can be understood as a transmitting point providing WIFI Internet access.
  • the ultrasonic signals enable other terminal devices to access the hotspot of the first terminal device by analyzing the ultrasonic signals. It can be understood that the above description is only exemplary, and this embodiment of the present application does not limit this in any way.
  • the first terminal device in response to a user performing a data migration operation in a local area network through an interactive interface of the first terminal device, the first terminal device triggers the opening of a hotspot and generates an ultrasonic signal according to the hotspot.
  • the method before the activation of the hotspot is triggered by the first terminal device, the method further includes: the first terminal device prompts a user for information configuration of data migration in the local area network, so that the user Enter the name and password of the hotspot; in response to the input operation of the name and password of the hotspot, the first terminal device stores the name and password of the hotspot. With this, the hotspot name and password of the first terminal device input by the user can be obtained. It can be understood that the above description is only exemplary, and this embodiment of the present application does not limit this in any way.
  • the first terminal device prompts a user for information configuration of data migration in a local area network by using a voice prompt mode, a text prompt mode, or a vibration prompt mode, so that the user sets a name and a hotspot of the first terminal device. password.
  • the first terminal device stores the name and password of the hotspot.
  • the first terminal device when the first terminal device generates an ultrasonic signal according to the hotspot, convert the name and password of the hotspot into a byte array; for each byte in the byte array Performing encoding to obtain an ultrasonic frequency array; and generating an ultrasonic signal based on the ultrasonic frequencies in the ultrasonic frequency array.
  • an ultrasonic signal corresponding to a hot spot can be generated. It can be understood that any implementation manner of generating an ultrasonic signal according to the hot spot may be applicable to this, and this embodiment of the present application does not limit this in any way.
  • the first terminal device converts the name and password of the hotspot and a separator between the name and the password into corresponding bytes, respectively, to form a corresponding byte array. Then, each byte in the byte array is encoded to obtain an ultrasonic frequency corresponding to each byte, and a start frequency and an end frequency of the ultrasonic signal are set, thereby forming a corresponding ultrasonic frequency array. Finally, through frequency offset modulation, an ultrasonic signal corresponding to the hot spot is generated based on the ultrasonic frequencies in the ultrasonic frequency array. Understandably, the above description is only For example, this embodiment of the present application does not limit this.
  • step S102 the first terminal device plays the ultrasonic signal, so that the second terminal device accesses the hotspot by analyzing the ultrasonic signal.
  • the first terminal device continuously broadcasts an ultrasonic signal to the outside through its own speaker.
  • the second terminal device receives the ultrasonic signal played by the first terminal device through its own recording device, and analyzes the ultrasonic signal to obtain the name and password of the hotspot of the first terminal device, and then according to the name and hotspot of the first terminal device, The password accesses the hotspot of the first terminal device.
  • the ultrasonic signal obtained by recording is continuously separated into corresponding frequencies by Fourier transform, and the current frequency is determined as the starting frequency of the ultrasonic signal. Later, the subsequent separated frequencies use the frequency and byte correspondence rules when the ultrasonic signal is generated to find the corresponding bytes, and the bytes are continuously added to the byte array until the separated frequency is the end of the ultrasonic signal. Up to frequency.
  • the name and password of the hotspot of the first terminal device can be directly converted. Specifically, by converting the ASCII code of the bytes in the byte group into corresponding characters, the hotspot name and password of the first terminal device can be obtained. It can be understood that any implementation manner of analyzing received ultrasonic signals may be applicable to this, and this embodiment of the present application does not limit this in any way.
  • step S103 if it is detected that the second terminal device accesses the hotspot, the first terminal device determines data to be migrated.
  • the first terminal device when the first terminal device determines the data to be migrated, the first terminal device prompts the user to select the data to be migrated. Specifically, the first terminal device prompts the user to select data to be migrated in one or more ways of vibration, voice, ring tone, and picture frame.
  • the data to be migrated may be the same kind of directory data of the first terminal device, for example, music, video, short message, contact, call records, etc., and the data to be migrated may also be the same kind of directory data of the first terminal device.
  • Several data for example, several songs, several videos, several text messages, several contacts, several call records, etc. It can be understood that the above description is only exemplary, and this embodiment of the present application does not limit this in any way.
  • the first terminal device when detecting that the second terminal device accesses the hotspot of the first terminal device, the first terminal device obtains a list of stored files from a storage medium or a cloud server for the user to select data to be migrated,
  • the form of information recorded in this list can be the name and size of the data, for example, audio, 600M, and so on. It can be understood that the above description is only exemplary, and this embodiment of the present application does not limit this in any way.
  • step S104 the first terminal device migrates the data to be migrated to the second terminal device through the local area network.
  • the first terminal device before the first terminal device migrates the data to be migrated to the second terminal device through the local area network, the first terminal device is configured to use the data to be migrated selected by a user. Frequency generates a data transfer list. Specifically, the first terminal device determines the priority of the data to be migrated according to the frequency of use of the data to be migrated selected by the user, and determines the transmission of each piece of data to be migrated according to the priority of the data to be migrated In sequence, the first terminal device generates a data transmission list according to a transmission sequence of each piece of data to be migrated.
  • the first terminal device migrates the data to be migrated to the second terminal device through the local area network
  • the first terminal device migrates the data to be migrated to the first terminal device according to the data transmission list.
  • Two terminal equipment For example, when the most frequently used data selected by the user to be migrated is WeChat data, WeChat data is transmitted first. It can be understood that the above description is only exemplary, and the embodiment of the present application does not limit this in any way.
  • the near-field data migration method in response to the data migration operation in a local area network, triggering the opening of a hotspot, generating an ultrasonic signal according to the hotspot, and playing the ultrasonic signal, so that the second terminal device can analyze the ultrasonic wave Signal access to the hotspot; if it is detected that the second terminal device is connected to the hotspot, determining the data to be migrated, and migrating the data to be migrated to the second terminal device through the local area network, can reliably identify the identity and identity of the old terminal device, and further Reliably establish connections and migrate data. In addition, it has high scene applicability and is easy to use.
  • FIG. 2 a schematic flowchart of a method for migrating near-field data according to Embodiment 2 of the present application is shown.
  • the near-field data migration method of this embodiment includes the following steps: In step S201, in response to the data migration operation in the local area network, the first terminal device triggers the opening of the hotspot, and generates an ultrasonic signal according to the hotspot.
  • a connection message associated with the name and password of the hotspot is constructed for the name and password of the hotspot; Fourier transform to convert the connection message into an ultrasonic signal. With this, it is possible to generate an ultrasonic signal corresponding to the hot spot of the first terminal device. It can be understood that any implementation manner of generating an ultrasonic signal according to a hot spot may be applicable to this, and this embodiment of the present application does not limit this in any way.
  • the connection message includes a header field, a valid data field, and a check field, where the valid data field stores the name and password of the hotspot.
  • the valid data field further stores a separator between the name of the hotspot and the password. Therefore, it is convenient for the second terminal device to identify the name and password of the hotspot by analyzing the ultrasonic signal.
  • a header field of the connection message stores identification information of the first terminal device to distinguish connection messages of different terminal devices
  • a check field of the connection message stores CRC check data.
  • step S202 the first terminal device plays the ultrasonic signal every preset time period, so that the second terminal device accesses the hotspot by analyzing the ultrasonic signal.
  • the first terminal device plays an ultrasonic signal outward through a speaker of the first terminal device at a preset time period.
  • the second terminal device receives the ultrasonic signal played by the first terminal device through its own recording device, and analyzes the ultrasonic signal to obtain the name and password of the hotspot of the first terminal device, and then according to the name and hotspot of the first terminal device, The password accesses the hotspot of the first terminal device.
  • the preset time period can be set by a person skilled in the art according to actual needs, which is not limited in the embodiment of the present application. It can be understood that the above description is only exemplary, and this embodiment of the present application does not limit this in any way.
  • the second terminal device parses the received ultrasonic signal through a plug-in in its own application to obtain the name and password of the hotspot of the first terminal device.
  • the analysis method used by the plug-in in the application of the second terminal device is specifically a Fourier transform. Understandable It is to be noted that the above description is only exemplary, and this embodiment of the present application does not limit this in any way.
  • step S203 if it is detected that the second terminal device accesses the hotspot, the first terminal device determines data to be migrated.
  • the first terminal device may read the connection list to determine the identity of the second terminal device connected to the first terminal device.
  • the first terminal device sends a data selection prompt to the user to determine the data to be migrated.
  • step S204 the first terminal device migrates the data to be migrated to the second terminal device through the local area network.
  • the first terminal device before the first terminal device migrates the data to be migrated to the second terminal device through the local area network, the first terminal device is based on a type of data to be migrated selected by a user. Generate a data transfer list. Specifically, the first terminal device determines the priority of the data to be migrated according to the type of data to be migrated selected by the user, and the first terminal device determines the transmission order of each piece of data to be migrated according to the priority of the data to be migrated. The first terminal device generates a data transmission list according to a transmission sequence of each piece of data to be migrated.
  • the first terminal device migrates the data to be migrated to the second terminal device through the local area network
  • Two terminal equipment For example, when the data type selected by the user includes an application installation package, file data, and audiovisual data, the application installation package is transmitted first, followed by file data, and finally audiovisual data. It can be understood that the above description is only exemplary, and the embodiment of the present application does not limit this in any way.
  • the data transmission list may be generated according to the size of the data selected by the user. Specifically, the first terminal device determines a transmission order of data to be migrated according to a data capacity selected by a user, and the first terminal device generates a data transmission list according to the transmission order of each piece of data to be migrated. For example, when the data selected by the user includes 600M of word file, 400M of ring tone data, and 1G of audio and video data, the data transmission sequence is: ring tone data, word file, and audio and video data. It can be understood that the above description is only exemplary, and the embodiment of the present application does not limit this in any way.
  • the near-field data migration method provided by this embodiment has the following advantages: Waves are not susceptible to environmental interference and have long transmission distances, which can significantly enhance the reliability of data migration and scene applicability.
  • the terminal device can automatically receive and analyze ultrasonic signals without excessive manual intervention, it is convenient to operate.
  • FIG. 3 a schematic structural diagram of a near-field data migration device according to Embodiment 3 of the present application is shown.
  • the near-field data migration device of this embodiment includes: a generating module 301 configured to trigger the opening of a hot spot in response to an operation of data migration in a local area network and generate an ultrasonic signal according to the hot spot; a first playback module 302 configured to Playing the ultrasonic signal, so that the second terminal device accesses the hotspot by analyzing the ultrasonic signal; the determining module 303 is configured to, if it is detected that the second terminal device is connected to the hotspot, determine to be migrated Data; a migration module 304, configured to migrate the data to be migrated to the second terminal device through the local area network.
  • the near-field data migration device of this embodiment is configured to implement the corresponding near-field data migration method in the foregoing multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which are not described herein again.
  • FIG. 4 a schematic structural diagram of a near-field data migration device according to Embodiment 4 of the present application is shown.
  • the near-field data migration device of this embodiment includes: a generating module 403 configured to trigger the opening of a hot spot in response to an operation of data migration in a local area network and generate an ultrasonic signal according to the hot spot; a first playback module 404 is configured to Playing the ultrasonic signal, so that the second terminal device accesses the hotspot by analyzing the ultrasonic signal; the determining module 405 is configured to, if it is detected that the second terminal device accesses the hotspot, determine to be migrated Data; a migration module 406, configured to migrate the data to be migrated to the second terminal device through the local area network.
  • the generating module 403 is further configured to: for the name and password of the hotspot, construct a connection message associated with the name and password of the hotspot; and by using frequency offset modulation and Fourier transform, The connection message is converted into an ultrasonic signal.
  • connection message includes a header field, a valid data field, and a check field, wherein the valid data field stores the name and password of the hotspot.
  • the valid data field further stores a separation between a name of the hotspot and a password. 4.
  • the header field stores identification information of the first terminal device to distinguish connection messages of different terminal devices
  • the check field stores CRC check data
  • the generating module 403 is further configured to: convert the name and password of the hotspot into a byte array; encode each byte in the byte array to obtain an ultrasound frequency array; and The ultrasonic frequencies in the ultrasonic frequency array are used to generate ultrasonic signals.
  • the apparatus further includes: a prompting module 401 configured to prompt the user to perform information configuration of data migration in the local area network, so that the user enters the name and password of the hotspot;
  • the storage module 402 is configured to store the name and password of the hot spot in response to an input operation of the name and password of the hot spot.
  • the device further includes: a second playback module 407 configured to play the ultrasonic signal every preset time interval.
  • a second playback module 407 configured to play the ultrasonic signal every preset time interval.
  • the near-field data migration device of this embodiment is configured to implement the corresponding near-field data migration method in the foregoing multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which are not described herein again.
  • FIG. 5 is a schematic structural diagram of a near-field data migration system in Embodiment 5 of the present application; as shown in FIG. 5, it may include: a first terminal device 701 and a second terminal device 702, the first terminal device 701, and the The second terminal device 702 is located in the same local area network.
  • the first terminal device 701 In response to a data migration operation in the local area network, the first terminal device 701 triggers the opening of a hotspot, generates an ultrasonic signal according to the hotspot, and plays the ultrasonic signal to Enabling the second terminal device 702 to access the hotspot by analyzing the ultrasonic signal; if it is detected that the second terminal device 702 is connected to the hotspot, the first terminal device 701 determines data to be migrated, and the data migration to be migrated to the second terminal device via the local area network 702 o
  • the first terminal device 701 may also be referred to as a data center, which may specifically be a smart phone, and the other second terminal devices 702 may be smart phones, feature phones, network printers, and the like.
  • FIG. 6 is a schematic structural diagram of a device / terminal / server in Embodiment 6 of the present application; the device / terminal / server may include: One or more processors 1501;
  • Computer-readable medium 1502 which may be configured to store one or more programs
  • the one or more processors When the one or more programs are executed by the one or more processors, the one or more processors implement the near-field data migration method as described in any one of the foregoing embodiments.
  • FIG. 7 is a hardware structure of a device / terminal / server in Embodiment 7 of the present application.
  • the hardware structure of the device / terminal / server may include: a processor 1601, a communication interface 1602, a computer-readable medium 1603, and Communication bus 1604;
  • the processor 1601, the communication interface 1602, and the computer-readable medium 1603 complete communication with each other through the communication bus 1604;
  • the communication interface 1602 may be an interface of a communication module, such as an interface of a GSM module.
  • the processor 1601 may be specifically configured to: in response to an operation of performing data migration in a local area network, trigger the opening of a hotspot, and perform Generating a ultrasonic signal at a hotspot; playing the ultrasonic signal so that a second terminal device accesses the hotspot by analyzing the ultrasonic signal; if it is detected that the second terminal device is connected to the hotspot, determining data to be migrated ; Migrating the data to be migrated to the second terminal device through the local area network.
  • the processor 1601 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), and the like; it may also be a digital signal processor (DSP) and an application-specific integrated circuit (ASIC) ), Ready-made programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • CPU central processing unit
  • NP network processor
  • ASIC application-specific integrated circuit
  • FPGA Ready-made programmable gate array
  • a general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the computer-readable medium 1603 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), and a Programmable Read-Only Memory, PROM), Erasable Programmable Read-Only Memory (EPROM), Electric Erasable Programmable Read-Only Memory (EEPROM), etc.
  • RAM Random Access Memory
  • ROM Read Only Memory
  • PROM Programmable Read-Only Memory
  • EPROM Erasable Programmable Read-Only Memory
  • EEPROM Electric Erasable Programmable Read-Only Memory
  • the process described above with reference to the flowchart may be implemented as a computer software program.
  • embodiments of the present disclosure include a computer program product including a computer program borne on a computer-readable medium, the computer program containing program code configured to perform the method shown in the flowchart.
  • the computer program may be downloaded and installed from a network through a communication section, and / or installed from a removable medium.
  • CPU central processing unit
  • the aforementioned functions defined in the method of the present application are executed.
  • the computer-readable medium described in this application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the foregoing.
  • the computer-readable medium may be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access storage media (RAM), read-only storage media (ROM), erasable Type programmable read-only storage medium (EPROM or flash memory), optical fiber, portable compact disk read-only storage medium (CD-ROM), optical storage medium piece, magnetic storage medium piece, or any suitable combination of the foregoing.
  • RAM random access storage media
  • ROM read-only storage media
  • EPROM or flash memory erasable Type programmable read-only storage medium
  • CD-ROM portable compact disk read-only storage medium
  • magnetic storage medium piece or any suitable combination of the foregoing.
  • a computer-readable storage medium may be any tangible medium containing or storing a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal that is included in baseband or propagated as part of a carrier wave, and which carries computer-readable program code. Such a propagated data signal may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, and the computer-readable medium may send, propagate, or transmit a program configured to be used by or in combination with an instruction execution system, apparatus, or device .
  • Program code embodied on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
  • the computer program code configured to perform the operations of the present application may be written in one or more programming languages or a combination thereof, the programming languages including an object-oriented programming language such as Java, Smalltalk, C ++, and also conventional A procedural programming language such as "C" or a similar programming language.
  • the program code can be executed entirely on the user's computer, partly on the user's computer, as an independent software package, partly on the user's computer, partly on a remote computer, or entirely on the remote computer or server.
  • the remote computer can be connected to the user's computer through any kind of network: including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through the Internet using an Internet service provider) Connection).
  • LAN local area network
  • WAN wide area network
  • an external computer such as through the Internet using an Internet service provider
  • each block in the flowchart or block diagram may represent a module, a program segment, or a portion of a code, which module, program segment, or portion of the code contains one or more logic functions configured to implement a specified logic function.
  • Executable instructions In the above specific embodiments, there is a specific sequence relationship, but these sequence relationships are only exemplary. In specific implementation, these steps may be fewer, more or the execution order may be adjusted. That is, in some alternative implementations, the functions marked in the boxes may occur in a different order than those marked in the drawings.
  • each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts may be implemented in a dedicated hardware-based system that performs the specified function or operation. Or, it can be implemented by a combination of dedicated hardware and computer instructions.
  • the modules described in the embodiments of the present application may be implemented in a software manner, or may be implemented in a hardware manner.
  • the described unit may also be provided in a processor, for example, it may be described as:
  • a processor includes a first program unit, a second program unit, a third program unit, and a fourth program unit.
  • the names of these units do not in any way constitute a limitation on the unit itself.
  • the first program unit may also be described as "in response to an operation of performing data migration in a local area network, triggering the opening of a hotspot, and A unit for generating an ultrasonic signal according to the hot spot ".
  • the present application also provides a computer-readable medium having stored thereon a computer program that, when executed by a processor, implements a near-field data migration method as described in any of the above embodiments.
  • the present application also provides a computer-readable medium, which may be included in the device described in the foregoing embodiments; or may exist alone without being installed in the device.
  • the computer-readable medium carries one or more programs, and when the one or more programs are executed by the device, the device is caused to: in response to an operation of performing data migration in a local area network, trigger the opening of a hotspot, and according to the Generating a ultrasonic signal at a hotspot; playing the ultrasonic signal so that a second terminal device accesses the hotspot by analyzing the ultrasonic signal; if it is detected that the second terminal device is connected to the hotspot, determining data to be migrated ; Migrating the data to be migrated to the second terminal device through the local area network.
  • first, second, the first, or “the second” used in various embodiments of the present disclosure may modify various components with order and / or importance It is irrelevant, but these expressions do not limit the corresponding components.
  • the above expressions are only configured for the purpose of distinguishing elements from other elements.
  • the first user equipment and the second user equipment represent different user equipments, although both are user equipments.
  • a first element may be referred to as a second element, and similarly, a second element may be referred to as a first element.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请实施例提供了一种近场数据迁移方法、装置、系统、设备/终端/服务器、计算机可读介质,涉及互联网技术领域。其中,该方法的一具体实施方式包括:响应于在局域网中进行数据迁移的操作,第一终端设备触发热点的开启,并根据所述热点生成超声波信号;所述第一终端设备播放所述超声波信号,以使第二终端设备通过解析所述超声波信号接入所述热点;若检测到所述第二终端设备接入到所述热点时,所述第一终端设备确定待迁移数据;所述第一终端设备通过所述局域网将所述待迁移数据迁移至所述第二终端设备。通过本申请实施例,能够可靠地识别旧终端设备的标识和身份,然后可靠地建立连接并进行数据迁移。此外,具有高的场景适用性,并且使用便捷。

Description

近场数据迁移方法及其装置 本申请要求在 2018年 8月 27 日提交中国专利局、 申请号为
201 81 0979632. 5、 发明名称为 “近场数据迁移方法及其装置” 的中国专利申 请的优先权, 其全部内容通过引用结合在本申请中。 技术领域
本申请实施例涉及互联网技术领域, 尤其涉及一种近场数据迁移方法、 装置、 系统、 设备 /终端 /服务器、 计算机可读介质。 背景技术
目前, 随着计算机和网络应用的日益广泛以及不同领域的业务种类的日 益丰富, 使用终端设备并通过近场通信模式 (即通信距离在数百米之内的通 信模式) 实施数据的迁移变得越来越重要。 例如, 当用户入手一款新的终端 设备时, 往往为了方便使用, 就需要将旧终端设备中的数据导入到新终端设 备中。
在现有的技术方案中, 典型地采用二维码的方式进行基于终端设备的数 据迁移, 该方式的基本实施过程如下: 用户将终端设备 (例如智能手机) 靠 近二维码提供方 (例如智能手机) 提供的二维码并经由终端设备的摄像头拍 摄二维码的图像, 随后该终端设备中的相关应用解析所获取的二维码的图像 以获得二维码提供方的热点的名称和密码。
然而, 上述现有的技术方案存在如下问题: 由于二维码易受环境光线的 干扰, 故有效范围有限, 并且在终端设备的摄像头的解析度较低的情况下, 其所提取的二维码图像的清晰度较低, 由此导致对二维码图像的解析速度下 降。 此外, 由于需要人工地将终端设备靠近目标二维码, 故操作不便。 发明内容
本申请的目的在于提出一种近场数据迁移方法、 装置、 系统、 设备 /终端 /服务器、计算机可读介质, 用于解决现有技术中存在的不能可靠地识别旧终 端设备的标识和身份, 进而不能可靠地建立连接的问题。
第一方面, 本申请实施例提供了一种近场数据迁移方法, 其包括: 响应于在局域网中进行数据迁移的操作, 第一终端设备触发热点的开启, 并根据所述热点生成超声波信号;
所述第一终端设备播放所述超声波信号, 以使第二终端设备通过解析所 述超声波信号接入所述热点;
若检测到所述第二终端设备接入到所述热点时, 所述第一终端设备确定 待迁移数据;
所述第一终端设备通过所述局域网将所述待迁移数据迁移至所述第二终 端设备。
第二方面, 本申请实施例提供了一种近场数据迁移装置, 其包括: 生成模块, 配置为响应于在局域网中进行数据迁移的操作, 触发热点的 开启, 并根据所述热点生成超声波信号;
第一播放模块, 配置为播放所述超声波信号, 以使第二终端设备通过解 析所述超声波信号接入所述热点;
确定模块, 配置为若检测到所述第二终端设备接入到所述热点时, 确定 待迁移数据;
迁移模块, 配置为通过所述局域网将所述待迁移数据迁移至所述第二终 端设备。
第三方面, 本申请实施例提供了一种近场数据迁移系统, 其包括: 第一终端设备和第二终端设备, 所述第一终端设备和所述第二终端设备 位于同一局域网内, 响应于在局域网中进行数据迁移的操作, 所述第一终端 设备触发热点的开启, 并根据所述热点生成超声波信号, 及播放所述超声波 信号, 以使所述第二终端设备通过解析所述超声波信号接入所述热点; 若检 测到所述第二终端设备接入到所述热点时, 所述第一终端设备确定待迁移数 据, 并通过所述局域网将所述待迁移数据迁移至所述第二终端设备。
第四方面, 本申请实施例提供了一种设备 /终端 /服务器, 包括: 一个或多个处理器;
计算机可读介质, 配置为存储一个或多个程序,
当所述一个或多个程序被所述一个或多个处理器执行, 使得所述一个或 多个处理器实现如上述任一实施例中所述的方法。
第五方面, 本申请实施例提供了一种计算机可读介质, 其上存储有计算 机程序, 该程序被处理器执行时实现如上述任一实施例中所述的方法。
本申请提供的近场数据迁移方法、 装置、 系统、 设备 /终端 /服务器、 计 算机可读介质中,响应于在局域网中进行数据迁移的操作,触发热点的开启, 并根据热点生成超声波信号, 及播放超声波信号, 以使第二终端设备通过解 析超声波信号接入热点; 若检测到第二终端设备接入到热点时, 确定待迁移 数据, 并通过局域网将待迁移数据迁移至第二终端设备, 能够可靠地识别旧 终端设备的标识和身份, 进而可靠地建立连接并进行数据迁移。 此外, 具有 高的场景适用性, 并且使用便捷。 附图说明
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述, 本申 请的其它特征、 目的和优点将会变得更明显:
图 1为本申请实施例一中近场数据迁移方法流程示意图;
图 2为本申请实施例二中近场数据迁移方法流程示意图;
图 3为本申请实施例三中近场数据迁移装置的结构示意图;
图 4为本申请实施例四中近场数据迁移装置的结构示意图;
图 5为本申请实施例五中近场数据迁移系统的结构示意图;
图 6为本申请实施例六中设备 /终端 /服务器的结构示意图;
图 7为本申请实施例七中设备 /终端 /服务器的硬件结构。 具体实施方式
下面结合附图和实施例对本申请作进一步的详细说明。 可以理解的是, 此处所描述的具体实施例仅仅配置为解释相关发明, 而非对该发明的限定。 另外还需要说明的是, 为了便于描述, 附图中仅示出了与有关发明相关的部 分。
需要说明的是, 在不冲突的情况下, 本申请中的实施例及实施例中的特 征可以相互组合。 下面将参考附图并结合实施例来详细说明本申请。
参照图 1, 示出了根据本申请实施例一的一种近场数据迁移方法的流程 示意图。
本实施例的近场数据迁移方法包括以下步骤:
在步骤 S 101 中, 响应于在局域网中进行数据迁移的操作, 第一终端设 备触发热点的开启, 并根据所述热点生成超声波信号。
在本申请实施例中, 所述局域网通过自建 WIFI 搭建以实现近场数据迁 移。 所述局域网中可以包括多个终端设备, 该终端设备可以为智能手机、 智 能平板、 智能手表、 PC等。 这种场景优选适合于互联网等硬件设施的基础较 差、 没有流量和运营商 WiFi 的场景下, 或者无网或者低网速的状态, 实现 同一个局域网内不同终端设备之间的数据共享的传输, 即不同终端设备(如两 台手机)之间直连且不依赖于其它网络(如互联网)和设备(如路由器), 且传输 速率快, 故可方便的实现不同终端设备之间的数据交互, 获得了广泛应用。 该数据包括但不限于音视频数据、 应用程序安装包等。 所述第一终端设备可 包括以下中的至少一者:车载设备、娱乐设备、广告设备、个人数码助理(PDA)、 平板电脑、 笔记本电脑、 掌上游戏机、 智能眼镜、 智能手表、 可穿戴设备、 虚拟显示设备或显示增强设备(如 Google Glass、 Oculus Rift、 Hololens、 Gear VR) 。 所述热点可理解为提供 WIFI上网的发射点。 所述超声波信号使得其 他终端设备通过解析超声波信号接入第一终端设备的热点。 可以理解的是, 以上描述仅为示例性的, 本申请实施例对此不做任何限定。 在具体的实施方式中, 响应于用户通过第一终端设备的交互界面在局域 网中进行数据迁移的操作, 第一终端设备触发热点的开启, 并根据热点生成 超声波信号。 可以理解的是, 以上描述仅为示例性的, 本申请实施例对此不 做任何限定。
在一些可选实施例中, 在所述第一终端设备触发热点的开启之前, 所述 方法还包括: 所述第一终端设备提示用户在所述局域网中进行数据迁移的信 息配置, 以使用户输入所述热点的名称和密码; 响应于对所述热点的名称和 密码的输入操作, 所述第一终端设备存储所述热点的名称和密码。 籍此, 能 够获取用户输入的第一终端设备的热点的名称和密码。 可以理解的是, 以上 描述仅为示例性的, 本申请实施例对此不做任何限定。
在一个具体的例子中, 所述第一终端设备通过语音提示方式、 文字提示 方式或震动提示方式提示用户在局域网中进行数据迁移的信息配置, 以使用 户设置第一终端设备的热点的名称和密码。 响应于用户对第一终端设备的热 点的名称和密码的设置操作,所述第一终端设备存储所述热点的名称和密码。 可以理解的是, 以上描述仅为示例性的, 本申请实施例对此不做任何限定。
在一些可选实施例中, 在所述第一终端设备根据所述热点生成超声波信 号时, 将所述热点的名称和密码转换成字节数组; 对所述字节数组中的每个 字节进行编码, 获得超声波频率数组; 基于所述超声波频率数组中的超声波 频率, 生成超声波信号。 籍此, 能够生成与热点对应的超声波信号。 可以理 解的是, 任何根据所述热点生成超声波信号的实施方式均可适用于此, 本申 请实施例对此不做任何限定。
在一个具体的例子中, 所述第一终端设备将所述热点的名称和密码以及 所述名称与所述密码之间的分隔符分别转换成相应的字节, 构成相应的字节 数组。 然后, 对字节数组中的每个字节进行编码, 获得每个字节所对应的超 声波频率, 并且设置超声波信号的开始频率和结束频率, 从而构成相应的超 声波频率数组。 最后, 通过频率偏移调制, 基于所述超声波频率数组中的超 声波频率, 生成与所述热点对应的超声波信号。 可以理解的是, 以上描述仅 为示例性的, 本申请实施例对此不做任何限定。
在步骤 S 102 中, 所述第一终端设备播放所述超声波信号, 以使第二终 端设备通过解析所述超声波信号接入所述热点。
在本申请实施例中, 所述第一终端设备通过自身的扬声器不断地向外播 放超声波信号。 第二终端设备通过自身的录音设备接收第一终端设备播放的 超声波信号, 并对该超声波信号进行解析, 获得第一终端设备的热点的名称 和密码,再依据第一终端设备的热点的名称和密码接入第一终端设备的热点。 可以理解的是, 以上描述仅为示例性的, 本申请实施例对此不做任何限定。
在一些可选实施例中,在第二终端设备对接收的超声波信号进行解析时, 不断将录音得到的超声波信号通过傅里叶变换分离出相应的频率, 在确定当 前频率为超声波信号的开始频率后, 后续再分离出的频率则利用超声波信号 生成时频率和字节的对应规则找到相应的字节, 并将字节不断地添加到字节 数组中, 直到分离出的频率为超声波信号的结束频率为止。 最后, 根据字节 数组即可直接转换成第一终端设备的热点的名称和密码。 具体地, 将字节数 组中字节的 ASCII码转换成相应的字符, 便可获得第一终端设备的热点的名 称和密码。 可以理解的是, 任何对接收的超声波信号进行解析的实施方式均 可适用于此, 本申请实施例对此不做任何限定。
在步骤 S 103 中, 若检测到所述第二终端设备接入到所述热点时, 所述 第一终端设备确定待迁移数据。
在一些可选实施例中, 在第一终端设备确定待迁移数据时, 第一终端设 备提示用户选择待迁移数据。具体地, 第一终端设备通过震动、语音、铃音、 图框中的一种或几种方式提示用户选择待迁移数据。 其中, 待迁移数据可为 第一终端设备的相同种类的目录数据, 例如, 音乐、 视频、 短信、 联系人, 通话记录等, 待迁移数据还可为第一终端设备的相同种类的目录数据中的几 个数据, 例如, 几首歌, 几个视频, 几条短信, 几个联系人, 几条通话记录 等。 可以理解的是, 以上描述仅为示例性的, 本申请实施例对此不做任何限 定。 在一个具体的例子中, 当检测到第二终端设备接入到第一终端设备的热 点时, 第一终端设备从存储介质或者云服务器中获取一个已存储文件列表供 用户进行选择待迁移数据, 该列表中记录的信息的形式可以是数据的名称和 大小, 例如, 音频, 600M 等。 可以理解的是, 以上描述仅为示例性的, 本 申请实施例对此不做任何限定。
在步骤 S104 中, 所述第一终端设备通过所述局域网将所述待迁移数据 迁移至所述第二终端设备。
在一些可选实施例中, 在所述第一终端设备通过所述局域网将所述待迁 移数据迁移至所述第二终端设备之前, 所述第一终端设备根据用户选择的待 迁移数据的使用频率生成数据传输列表。 具体地, 所述第一终端设备根据用 户选择的待迁移数据的使用频率确定待迁移数据的优先级, 所述第一终端设 备根据所述待迁移数据的优先级确定每份待迁移数据的传输顺序, 所述第一 终端设备根据每份待迁移数据的传输顺序生成数据传输列表。 在所述第一终 端设备通过所述局域网将所述待迁移数据迁移至所述第二终端设备时, 所述 第一终端设备根据所述数据传输列表将所述待迁移数据迁移至所述第二终端 设备。 例如, 当用户选择的待迁移数据中使用频率最高的为微信数据, 则优 先传输微信数据。 可以理解的是, 以上描述仅为示例性的, 本申请实施例对 此不做任何限定。
通过本申请实施例提供的近场数据迁移方法, 响应于在局域网中进行数 据迁移的操作, 触发热点的开启, 并根据热点生成超声波信号, 及播放超声 波信号, 以使第二终端设备通过解析超声波信号接入热点; 若检测到第二终 端设备接入到热点时, 确定待迁移数据, 并通过局域网将待迁移数据迁移至 第二终端设备, 能够可靠地识别旧终端设备的标识和身份, 进而可靠地建立 连接并进行数据迁移。 此外, 具有高的场景适用性, 并且使用便捷。
参照图 2, 示出了根据本申请实施例二的一种近场数据迁移方法的流程 示意图。
本实施例的近场数据迁移方法包括以下步骤: 在步骤 S201 中, 响应于在局域网中进行数据迁移的操作, 第一终端设 备触发热点的开启, 并根据所述热点生成超声波信号。
在一些可选实施例中, 在第一终端设备根据热点生成超声波信号时, 针 对所述热点的名称和密码, 构建与所述热点的名称和密码关联的连接报文; 通过频率偏移调制和傅里叶变换,将所述连接报文转换成超声波信号。籍此, 能够生成与第一终端设备的热点对应的超声波信号。 可以理解的是, 任何根 据热点生成超声波信号的实施方式均可适用于此, 本申请实施例对此不做任 何限定。
在一个具体的例子中, 所述连接报文包括头部字段、 有效数据字段和校 验字段, 其中, 所述有效数据字段存放有所述热点的名称和密码。 可选地, 所述有效数据字段还存放有所述热点的名称与密码之间的分隔符。 籍此, 能 够方便于第二终端设备通过解析超声波信号识别出热点的名称和密码。此外, 所述连接报文的头部字段存放有所述第一终端设备的标识信息, 以区分不同 的终端设备的连接报文, 所述连接报文的校验字段存放有 CRC校验数据。 可 以理解的是, 以上描述仅为示例性的, 本申请实施例对此不做任何限定。
在步骤 S202 中, 所述第一终端设备每隔预设时间段播放所述超声波信 号, 以使第二终端设备通过解析所述超声波信号接入所述热点。
在本申请实施例中, 所述第一终端设备通过自身的扬声器每隔预设时间 段向外播放超声波信号。 第二终端设备通过自身的录音设备接收第一终端设 备播放的超声波信号, 并对该超声波信号进行解析, 获得第一终端设备的热 点的名称和密码, 再依据第一终端设备的热点的名称和密码接入第一终端设 备的热点。 其中, 所述预设时间段可由本领域技术人员根据实际需要进行设 定, 本申请实施例对此不做任何限定。 可以理解的是, 以上描述仅为示例性 的, 本申请实施例对此不做任何限定。
在一个具体的例子中, 第二终端设备通过自身的应用中的插件对接收到 的超声波信号进行解析, 获得第一终端设备的热点的名称和密码。 其中, 第 二终端设备的应用中的插件所采用的解析方法具体为傅里叶变换。 可以理解 的是, 以上描述仅为示例性的, 本申请实施例对此不做任何限定。 在步骤 S203 中, 若检测到所述第二终端设备接入到所述热点时, 所述 第一终端设备确定待迁移数据。
在一个具体的例子中, 第一终端设备可读取连接列表以确定接入第一终 端设备的第二终端设备的标识。 当存在第二终端设备的标识时, 所述第一终 端设备向用户发送数据选择提示, 以确定待迁移数据。 可以理解的是, 以上 描述仅为示例性, 本申请实施例对此不做任何限定。
在步骤 S204 中, 所述第一终端设备通过所述局域网将所述待迁移数据 迁移至所述第二终端设备。
在一些可选实施例中, 在所述第一终端设备通过所述局域网将所述待迁 移数据迁移至所述第二终端设备之前, 所述第一终端设备根据用户选择的待 迁移数据的类型生成数据传输列表。 具体地, 所述第一终端设备根据用户选 择的待迁移数据的类型确定待迁移数据的优先级, 所述第一终端设备根据所 述待迁移数据的优先级确定每份待迁移数据的传输顺序, 所述第一终端设备 根据每份待迁移数据的传输顺序生成数据传输列表。 在所述第一终端设备通 过所述局域网将所述待迁移数据迁移至所述第二终端设备时, 所述第一终端 设备根据所述数据传输列表将所述待迁移数据迁移至所述第二终端设备。 例 如, 当用户选择的数据类型有应用程序安装包, 文件资料, 影音资料, 则优 先传输应用程序安装包, 其次传输文件资料, 最后传输影音资料。 可以理解 的是, 以上描述仅为示例性的, 本申请实施例对此不做任何限定。
在一些可选实施例中,可根据用户选择的数据的大小生成数据传输列表。 具体地, 所述第一终端设备根据用户选择的数据容量确定待迁移数据的传输 顺序, 所述第一终端设备根据所述每份待迁移数据的传输顺序生成数据传输 列表。举例来说, 当用户选择的数据中有 word文档 600M, 铃音资料 400M, 影音资料 1G, 则数据的传送顺序为: 铃音资料、 word 文档及影音资料。 可 以理解的是, 以上描述仅为示例性的, 本申请实施例对此不做任何限定。
本实施例提供的近场数据迁移方法具有以下优点: 由于特定频率的超声 波不易受环境的干扰并且传输距离较长, 故能够显著地增强数据迁移可靠性 和场景适用性, 此外, 由于终端设备能够自动的接收并解析超声波信号无需 过多的人工干预, 故操作便捷。
参照图 3, 示出了根据本申请实施例三的一种近场数据迁移装置的结构 示意图。
本实施例的近场数据迁移装置包括: 生成模块 301, 配置为响应于在局 域网中进行数据迁移的操作, 触发热点的开启, 并根据所述热点生成超声波 信号; 第一播放模块 302, 配置为播放所述超声波信号, 以使第二终端设备 通过解析所述超声波信号接入所述热点; 确定模块 303, 配置为若检测到所 述第二终端设备接入到所述热点时, 确定待迁移数据; 迁移模块 304, 配置 为通过所述局域网将所述待迁移数据迁移至所述第二终端设备。
本实施例的近场数据迁移装置用于实现前述多个方法实施例中相应的近 场数据迁移方法, 并具有相应的方法实施例的有益效果, 在此不再赘述。
参照图 4, 示出了根据本申请实施例四的一种近场数据迁移装置的结构 示意图。
本实施例的近场数据迁移装置包括: 生成模块 403, 配置为响应于在局 域网中进行数据迁移的操作, 触发热点的开启, 并根据所述热点生成超声波 信号; 第一播放模块 404, 配置为播放所述超声波信号, 以使第二终端设备 通过解析所述超声波信号接入所述热点; 确定模块 405, 配置为若检测到所 述第二终端设备接入到所述热点时, 确定待迁移数据; 迁移模块 406, 配置 为通过所述局域网将所述待迁移数据迁移至所述第二终端设备。
可选地, 所述生成模块 403, 进一步配置为: 针对所述热点的名称和密 码, 构建与所述热点的名称和密码关联的连接报文; 通过频率偏移调制和傅 里叶变换, 将所述连接报文转换成超声波信号。
可选地,所述连接报文包括头部字段、有效数据字段和校验字段,其中, 所述有效数据字段存放有所述热点的名称和密码。
可选地, 所述有效数据字段还存放有所述热点的名称与密码之间的分隔 4 。
可选地, 所述头部字段存放有所述第一终端设备的标识信息, 以区分不 同的终端设备的连接报文, 所述校验字段存放有 CRC校验数据。
可选地, 所述生成模块 403, 进一步配置为: 将所述热点的名称和密码 转换成字节数组; 对所述字节数组中的每个字节进行编码, 获得超声波频率 数组; 基于所述超声波频率数组中的超声波频率, 生成超声波信号。
可选地, 在所述生成模块 403之前, 所述装置还包括: 提示模块 401, 配置为提示用户在所述局域网中进行数据迁移的信息配置, 以使用户输入所 述热点的名称和密码; 存储模块 402, 配置为响应于对所述热点的名称和密 码的输入操作, 存储所述热点的名称和密码。
可选地, 所述装置还包括: 第二播放模块 407, 配置为每间隔预设时间 段播放所述超声波信号。
本实施例的近场数据迁移装置用于实现前述多个方法实施例中相应的近 场数据迁移方法, 并具有相应的方法实施例的有益效果, 在此不再赘述。
图 5为本申请实施例五中近场数据迁移系统的结构示意图;如图 5所示, 其可以包括: 第一终端设备 701和第二终端设备 702, 所述第一终端设备 701 和所述第二终端设备 702位于同一局域网内, 响应于在局域网中进行数据迁 移的操作, 所述第一终端设备 701触发热点的开启, 并根据所述热点生成超 声波信号, 及播放所述超声波信号, 以使所述第二终端设备 702通过解析所 述超声波信号接入所述热点; 若检测到所述第二终端设备 702接入到所述热 点时, 所述第一终端设备 701确定待迁移数据, 并通过所述局域网将所述待 迁移数据迁移至所述第二终端设备 702 o
本实施例中, 第一终端设备 701 又可以称之为数据中心, 其具体可以为 一智能手机, 而且其他第二终端设备 702可以为智能手机、 功能机、 网络打 印机等。
图 6为本申请实施例六中设备 /终端 /服务器的结构示意图; 该设备 /终端 / 服务器可以包括: 一个或多个处理器 1501 ;
计算机可读介质 1502, 可以配置为存储一个或多个程序,
当所述一个或多个程序被所述一个或多个处理器执行, 使得所述一个或 多个处理器实现如上述任一实施例中所述的近场数据迁移方法。
图 7 为本申请实施例七中设备 /终端 /服务器的硬件结构; 如图 7所示, 该设备 /终端 /服务器的硬件结构可以包括: 处理器 1601, 通信接口 1602, 计 算机可读介质 1603和通信总线 1604 ;
其中处理器 1601、 通信接口 1602、 计算机可读介质 1603通过通信总线 1604完成相互间的通信;
可选的, 通信接口 1602可以为通信模块的接口, 如 GSM模块的接口; 其中, 处理器 1601具体可以配置为: 响应于在局域网中进行数据迁移的 操作, 触发热点的开启, 并根据所述热点生成超声波信号; 播放所述超声波 信号, 以使第二终端设备通过解析所述超声波信号接入所述热点; 若检测到 所述第二终端设备接入到所述热点时, 确定待迁移数据; 通过所述局域网将 所述待迁移数据迁移至所述第二终端设备。
处理器 1601可以是通用处理器,包括中央处理器 (Central Processing Unit, 简称 CPU)、 网络处理器 (Network Processor, 简称 NP)等; 还可以是数字信号 处理器 (DSP)、 专用集成电路 (ASIC)、 现成可编程门阵列 (FPGA)或者其它可 编程逻辑器件、 分立门或者晶体管逻辑器件、 分立硬件组件。 可以实现或者 执行本申请实施例中的公开的各方法、 步骤及逻辑框图。 通用处理器可以是 微处理器或者该处理器也可以是任何常规的处理器等。
计算机可读介质 1603 可以是, 但不限于, 随机存取存储介质 ( Random Access Memory, RAM) , 只读存储介质 ( Read Only Memory, ROM) , 可 编程只读存储介质 ( Programmable Read-Only Memory, PROM) , 可擦除只 读存储介质 ( Erasable Programmable Read-Only Memory, EPROM) , 电可擦 除只读存储介质 ( Electric Erasable Programmable Read-Only Memory , EEPROM) 等。 需要说明的是,上述实施例第一终端设备、第二终端设备只是相对概念, 当第二终端设备可向局域网中的其他终端设备迁移数据时, 其角色又可以变 为第一终端设备。
特别地, 根据本公开的实施例, 上文参考流程图描述的过程可以被实现 为计算机软件程序。 例如, 本公开的实施例包括一种计算机程序产品, 其包 括承载在计算机可读介质上的计算机程序, 该计算机程序包含配置为执行流 程图所示的方法的程序代码。 在这样的实施例中, 该计算机程序可以通过通 信部分从网络上被下载和安装, 和 /或从可拆卸介质被安装。 在该计算机程序 被中央处理单元 (CPU) 执行时, 执行本申请的方法中限定的上述功能。 需 要说明的是, 本申请所述的计算机可读介质可以是计算机可读信号介质或者 计算机可读存储介质或者是上述两者的任意组合。 计算机可读介质例如可以 但不限于是电、 磁、 光、 电磁、 红外线、 或半导体的系统、 装置或器件, 或 者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于: 具有一个或多个导线的电连接、 便携式计算机磁盘、 硬盘、 随机访问存储介 质 (RAM) 、 只读存储介质 (ROM) 、 可擦式可编程只读存储介质 (EPROM 或闪存) 、 光纤、 便携式紧凑磁盘只读存储介质 (CD-ROM) 、 光存储介质 件、 磁存储介质件、 或者上述的任意合适的组合。 在本申请中, 计算机可读 存储介质可以是任何包含或存储程序的有形介质, 该程序可以被指令执行系 统、 装置或者器件使用或者与其结合使用。 而在本申请中, 计算机可读的信 号介质可以包括在基带中或者作为载波一部分传播的数据信号, 其中承载了 计算机可读的程序代码。 这种传播的数据信号可以采用多种形式, 包括但不 限于电磁信号、 光信号或上述的任意合适的组合。 计算机可读的信号介质还 可以是计算机可读存储介质以外的任何计算机可读介质, 该计算机可读介质 可以发送、 传播或者传输配置为由指令执行系统、 装置或者器件使用或者与 其结合使用的程序。 计算机可读介质上包含的程序代码可以用任何适当的介 质传输, 包括但不限于: 无线、 电线、 光缆、 RF等等, 或者上述的任意合适 的组合。 可以以一种或多种程序设计语言或其组合来编写配置为执行本申请的操 作的计算机程序代码, 所述程序设计语言包括面向对象的程序设计语言一诸 如 Java、 Smalltalk、 C++, 还包括常规的过程式程序设计语言一诸如” C”语言 或类似的程序设计语言。 程序代码可以完全地在用户计算机上执行、 部分地 在用户计算机上执行、 作为一个独立的软件包执行、 部分在用户计算机上部 分在远程计算机上执行、 或者完全在远程计算机或服务器上执行。 在涉及远 程计算机的情形中,远程计算机可以通过任意种类的网络:包括局域网(LAN) 或广域网(WAN)—连接到用户计算机, 或者, 可以连接到外部计算机 (例如 利用因特网服务提供商来通过因特网连接) 。
附图中的流程图和框图, 图示了按照本申请各种实施例的系统、 方法和 计算机程序产品的可能实现的体系架构、 功能和操作。 在这点上, 流程图或 框图中的每个方框可以代表一个模块、 程序段、 或代码的一部分, 该模块、 程序段、 或代码的一部分包含一个或多个配置为实现规定的逻辑功能的可执 行指令。上述具体实施例中有特定先后关系,但这些先后关系只是示例性的, 在具体实现的时候, 这些步骤可能会更少、 更多或执行顺序有调整。 即在有 些作为替换的实现中, 方框中所标注的功能也可以以不同于附图中所标注的 顺序发生。 例如, 两个接连地表示的方框实际上可以基本并行地执行, 它们 有时也可以按相反的顺序执行, 这依所涉及的功能而定。 也要注意的是, 框 图和 /或流程图中的每个方框、 以及框图和 /或流程图中的方框的组合, 可以 用执行规定的功能或操作的专用的基于硬件的系统来实现, 或者可以用专用 硬件与计算机指令的组合来实现。
描述于本申请实施例中所涉及到的模块可以通过软件的方式实现, 也可 以通过硬件的方式来实现。 所描述的单元也可以设置在处理器中, 例如, 可 以描述为: 一种处理器包括第一程序单元、 第二程序单元、 第三程序单元、 第四程序单元。 其中, 这些单元的名称在某种情况下并不构成对该单元本身 的限定, 例如, 第一程序单元还可以被描述为“响应于在局域网中进行数据迁 移的操作, 触发热点的开启, 并根据所述热点生成超声波信号的单元”。 作为另一方面, 本申请还提供了一种计算机可读介质, 其上存储有计算 机程序, 该程序被处理器执行时实现如上述任一实施例中所描述的近场数据 迁移方法。
作为另一方面, 本申请还提供了一种计算机可读介质, 该计算机可读介 质可以是上述实施例中描述的装置中所包含的; 也可以是单独存在, 而未装 配入该装置中。 上述计算机可读介质承载有一个或者多个程序, 当上述一个 或者多个程序被该装置执行时, 使得该装置: 响应于在局域网中进行数据迁 移的操作, 触发热点的开启, 并根据所述热点生成超声波信号; 播放所述超 声波信号, 以使第二终端设备通过解析所述超声波信号接入所述热点; 若检 测到所述第二终端设备接入到所述热点时, 确定待迁移数据; 通过所述局域 网将所述待迁移数据迁移至所述第二终端设备。
在本公开的各种实施方式中所使用的表述“第一”、 “第二”、 “所述第一” 或“所述第二’’可修饰各种部件而与顺序和 /或重要性无关, 但是这些表述不限 制相应部件。 以上表述仅配置为将元件与其它元件区分开的目的。 例如, 第 一用户设备和第二用户设备表示不同的用户设备, 虽然两者均是用户设备。 例如,在不背离本公开的范围的前提下, 第一元件可称作第二元件, 类似地, 第二元件可称作第一元件。
当一个元件(例如, 第一元件)称为与另一元件(例如, 第二元件)“(可操作 地或可通信地)联接”或“(可操作地或可通信地)联接至’’另一元件(例如, 第二 元件)或“连接至”另一元件(例如, 第二元件)时, 应理解为该一个元件直接连 接至该另一元件或者该一个元件经由又一个元件(例如, 第三元件)间接连接 至该另一个元件。 相反, 可理解, 当元件(例如, 第一元件)称为“直接连接” 或“直接联接’’至另一元件(第二元件)时, 则没有元件(例如, 第三元件)插入在 这两者之间。
以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。 本领 域技术人员应当理解, 本申请中所涉及的发明范围, 并不限于上述技术特征 的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下, 由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。 例如上 述特征与本申请中公开的 (但不限于) 具有类似功能的技术特征进行互相替 换而形成的技术方案。

Claims

权利要求书
1、 一种近场数据迁移方法, 其特征在于, 所述方法包括:
响应于在局域网中进行数据迁移的操作,第一终端设备触发热点的开启, 并根据所述热点生成超声波信号;
所述第一终端设备播放所述超声波信号, 以使第二终端设备通过解析所 述超声波信号接入所述热点;
若检测到所述第二终端设备接入到所述热点时, 所述第一终端设备确定 待迁移数据;
所述第一终端设备通过所述局域网将所述待迁移数据迁移至所述第二终 端设备。
2、 根据权利要求 1所述的方法, 其特征在于, 所述第一终端设备根据所 述热点生成超声波信号, 包括:
针对所述热点的名称和密码, 构建与所述热点的名称和密码关联的连接 报文;
通过频率偏移调制和傅里叶变换, 将所述连接报文转换成超声波信号。
3、 根据权利要求 2所述的方法, 其特征在于, 所述连接报文包括头部字 段、 有效数据字段和校验字段, 其中, 所述有效数据字段存放有所述热点的 名称和密码。
4、 根据权利要求 3所述的方法, 其特征在于, 所述有效数据字段还存放 有所述热点的名称与密码之间的分隔符。
5、 根据权利要求 3所述的方法, 其特征在于, 所述头部字段存放有所述 第一终端设备的标识信息, 以区分不同的终端设备的连接报文, 所述校验字 段存放有 CRC校验数据。
6、 根据权利要求 1所述的方法, 其特征在于, 所述第一终端设备根据所 述热点生成超声波信号, 包括:
将所述热点的名称和密码转换成字节数组; 对所述字节数组中的每个字节进行编码, 获得超声波频率数组; 基于所述超声波频率数组中的超声波频率, 生成超声波信号。
7、 根据权利要求 1所述的方法, 其特征在于, 在所述第一终端设备触发 热点的开启之前, 所述方法还包括:
所述第一终端设备提示用户在所述局域网中进行数据迁移的信息配置, 以使用户输入所述热点的名称和密码;
响应于对所述热点的名称和密码的输入操作, 所述第一终端设备存储所 述热点的名称和密码。
8、 根据权利要求 1-7中任意一项权利要求所述的方法, 其特征在于, 所 述方法还包括:
所述第一终端设备每间隔预设时间段播放所述超声波信号。
9、 根据权利要求 1-7中任意一项权利要求所述的方法, 其特征在于, 所 述局域网通过自建 WIFI搭建以实现近场数据迁移。
10、 一种近场数据迁移装置, 其特征在于, 所述装置包括:
生成模块, 配置为响应于在局域网中进行数据迁移的操作, 触发热点的 开启, 并根据所述热点生成超声波信号;
第一播放模块, 配置为播放所述超声波信号, 以使第二终端设备通过解 析所述超声波信号接入所述热点;
确定模块, 配置为若检测到所述第二终端设备接入到所述热点时, 确定 待迁移数据;
迁移模块, 配置为通过所述局域网将所述待迁移数据迁移至所述第二终 端设备。
1 1、 根据权利要求 10所述的装置, 其特征在于, 所述生成模块, 进一步 配置为:
针对所述热点的名称和密码, 构建与所述热点的名称和密码关联的连接 报文;
通过频率偏移调制和傅里叶变换, 将所述连接报文转换成超声波信号。
12、 根据权利要求 1 1所述的装置, 其特征在于, 所述连接报文包括头部 字段、 有效数据字段和校验字段, 其中, 所述有效数据字段存放有所述热点 的名称和密码。
13、 根据权利要求 12所述的装置, 其特征在于, 所述有效数据字段还存 放有所述热点的名称与密码之间的分隔符。
14、 根据权利要求 12所述的装置, 其特征在于, 所述头部字段存放有所 述第一终端设备的标识信息, 以区分不同的终端设备的连接报文, 所述校验 字段存放有 CRC校验数据。
15、 根据权利要求 10所述的装置, 其特征在于, 所述生成模块, 进一步 配置为:
将所述热点的名称和密码转换成字节数组;
对所述字节数组中的每个字节进行编码, 获得超声波频率数组; 基于所述超声波频率数组中的超声波频率, 生成超声波信号。
16、 根据权利要求 10所述的装置, 其特征在于, 在所述生成模块之前, 所述装置还包括:
提示模块, 配置为提示用户在所述局域网中进行数据迁移的信息配置, 以使用户输入所述热点的名称和密码;
存储模块, 配置为响应于对所述热点的名称和密码的输入操作, 存储所 述热点的名称和密码。
17、根据权利要求 10- 16中任意一项权利要求所述的装置,其特征在于, 所述装置还包括:
第二播放模块, 配置为每间隔预设时间段播放所述超声波信号。
18、 一种近场数据迁移系统, 其特征在于, 所述系统包括:
第一终端设备和第二终端设备, 所述第一终端设备和所述第二终端设备 位于同一局域网内, 响应于在局域网中进行数据迁移的操作, 所述第一终端 设备触发热点的开启, 并根据所述热点生成超声波信号, 及播放所述超声波 信号, 以使所述第二终端设备通过解析所述超声波信号接入所述热点; 若检 测到所述第二终端设备接入到所述热点时, 所述第一终端设备确定待迁移数 据, 并通过所述局域网将所述待迁移数据迁移至所述第二终端设备。
19、 一种设备 /终端 /服务器, 包括:
一个或多个处理器;
计算机可读介质, 配置为存储一个或多个程序,
当所述一个或多个程序被所述一个或多个处理器执行, 使得所述一个或 多个处理器实现如权利要求 1-9中任意一项权利要求所述的方法。
20、 一种计算机可读介质, 其上存储有计算机程序, 其特征在于, 该程 序被处理器执行时实现如权利要求 1-9中任意一项权利要求所述的方法。
PCT/IB2018/057144 2018-08-27 2018-09-18 近场数据迁移方法及其装置 Ceased WO2020044084A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810979632.5A CN109302698A (zh) 2018-08-27 2018-08-27 近场数据迁移方法及其装置
CN201810979632.5 2018-08-27

Publications (1)

Publication Number Publication Date
WO2020044084A1 true WO2020044084A1 (zh) 2020-03-05

Family

ID=65165531

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/IB2018/057144 Ceased WO2020044084A1 (zh) 2018-08-27 2018-09-18 近场数据迁移方法及其装置

Country Status (2)

Country Link
CN (1) CN109302698A (zh)
WO (1) WO2020044084A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113259523B (zh) * 2021-05-31 2023-09-29 Oppo广东移动通信有限公司 连接方法、待迁入设备、待迁出设备、系统及介质
CN114845290B (zh) * 2022-06-30 2022-11-08 荣耀终端有限公司 数据迁移方法、电子设备及计算机可读存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220822A (zh) * 2013-04-08 2013-07-24 北京小米科技有限责任公司 数据传输方法、装置和移动终端
US20150131539A1 (en) * 2013-11-12 2015-05-14 Qualcomm Incorporated Fast service discovery and pairing using ultrasonic communication
CN106411621A (zh) * 2016-12-09 2017-02-15 中国科学院深圳先进技术研究院 物联网设备及其网络配置方法、装置、系统和终端
CN107222937A (zh) * 2017-06-30 2017-09-29 广东欧珀移动通信有限公司 一种数据传输方法、装置及终端
CN108243481A (zh) * 2018-01-19 2018-07-03 腾讯科技(深圳)有限公司 文件传输方法及装置

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10032036B2 (en) * 2011-09-14 2018-07-24 Shahab Khan Systems and methods of multidimensional encrypted data transfer
CN105814807A (zh) * 2013-12-31 2016-07-27 哈曼国际工业有限公司 无线连接配对
CN104796888A (zh) * 2015-03-19 2015-07-22 北京宇音天下科技有限公司 基于声波的智能硬件终端连接wi-fi网络的方法及实现所述方法的系统
CN105722183A (zh) * 2016-03-18 2016-06-29 深圳市轱辘软件开发有限公司 Wi-Fi链接信息分享方法及装置
CN106445739B (zh) * 2016-09-14 2020-01-14 Oppo广东移动通信有限公司 一种数据迁移方法及终端设备
CN106502837B (zh) * 2016-10-25 2019-06-14 Oppo广东移动通信有限公司 一种数据备份的方法、装置及系统
CN107145386B (zh) * 2017-04-28 2020-06-26 Oppo广东移动通信有限公司 数据迁移方法、终端设备及计算机可读存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220822A (zh) * 2013-04-08 2013-07-24 北京小米科技有限责任公司 数据传输方法、装置和移动终端
US20150131539A1 (en) * 2013-11-12 2015-05-14 Qualcomm Incorporated Fast service discovery and pairing using ultrasonic communication
CN106411621A (zh) * 2016-12-09 2017-02-15 中国科学院深圳先进技术研究院 物联网设备及其网络配置方法、装置、系统和终端
CN107222937A (zh) * 2017-06-30 2017-09-29 广东欧珀移动通信有限公司 一种数据传输方法、装置及终端
CN108243481A (zh) * 2018-01-19 2018-07-03 腾讯科技(深圳)有限公司 文件传输方法及装置

Also Published As

Publication number Publication date
CN109302698A (zh) 2019-02-01

Similar Documents

Publication Publication Date Title
TWI507063B (zh) 資訊共用方法、終端、伺服器及系統
WO2021077833A1 (zh) 信息推送方法、设备、电子设备及计算机可读存储介质
US11360737B2 (en) Method and apparatus for providing speech service
CN104244084B (zh) 一种控制音频文件播放的方法、系统及移动终端
CN107395742B (zh) 基于智能音箱的网络通信方法以及智能音箱
CN112786070B (zh) 音频数据处理方法、装置、存储介质与电子设备
WO2020044092A9 (zh) 数据传输方法及其装置
WO2022127523A1 (zh) 一种视频播放方法、装置、设备及介质
US12069332B2 (en) Video data processing method, electronic device and computer-readable medium
CN114827682B (zh) 投屏方法、系统、设备及存储介质
US20250039488A1 (en) Screen projection method, screen projection device, screen projection display device, screen projection system and medium
WO2016155633A1 (zh) 信息联动方法、装置、服务端和系统
WO2022194025A1 (zh) 互动视频连接方法、装置、电子设备及存储介质
WO2020044084A1 (zh) 近场数据迁移方法及其装置
WO2020044088A1 (zh) 一种文件传输的方法及其装置、设备/终端/服务器
WO2015165415A1 (en) Method and apparatus for playing audio data
CN116055763A (zh) 跨语言的视频处理方法、装置、设备、介质及产品
CN115022693A (zh) 一种视频投屏方法、装置、设备及存储介质
CN109388917B (zh) 硬件设备的鉴权方法、装置、设备及存储介质
CN113766278B (zh) 音频播放方法、音频播放装置和音频播放系统
CN104754400B (zh) 一种基于移动终端的封套信息共享方法及装置
CN115065852A (zh) 音画同步方法、装置、电子设备及可读存储介质
CN108831475B (zh) 一种文本消息提取方法及系统
CN115988277B (zh) 智能电视控制方法、电子设备及可读存储介质
WO2020044085A1 (zh) 近场传输中的文件处理方法及其装置

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: 18931815

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: 18931815

Country of ref document: EP

Kind code of ref document: A1