WO2013033999A1 - Method and apparatus for mobile device point-to-point data transmission - Google Patents

Method and apparatus for mobile device point-to-point data transmission Download PDF

Info

Publication number
WO2013033999A1
WO2013033999A1 PCT/CN2012/076043 CN2012076043W WO2013033999A1 WO 2013033999 A1 WO2013033999 A1 WO 2013033999A1 CN 2012076043 W CN2012076043 W CN 2012076043W WO 2013033999 A1 WO2013033999 A1 WO 2013033999A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile device
file
module
wifi connection
wifi
Prior art date
Application number
PCT/CN2012/076043
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 WO2013033999A1 publication Critical patent/WO2013033999A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals

Definitions

  • the present invention relates to the field of network communication technologies, and in particular, to a method and apparatus for point-to-point data transmission of a mobile terminal.
  • the in-memory file of the mobile device is a solidified form of data.
  • the most typical data transmission is file transmission.
  • the file transfer between existing mobile devices is mainly realized by Bluetooth technology, but the file transmission based on Bluetooth technology has the following defects:
  • the process of Bluetooth pairing is too cumbersome.
  • the Bluetooth pairing process one party needs to manually input the pairing code on the mobile device, and the other party inputs the same pairing code when connecting to establish a connection. This process requires manual intervention and is very inconvenient to use.
  • the effective distance of file transfer is short, and the connection is unstable.
  • the limitation of the effective distance of the Bluetooth signal is received.
  • the distance between the two mobile devices is within 10 meters and there is no solid occlusion in the middle.
  • Bluetooth transmission speed is generally KB level, and the performance can reach hundreds of KB, but such a speed to transmit large data files, such as audio and video files, will affect the performance of mobile devices for a long time.
  • the present invention provides a method and apparatus for point-to-point data transmission of a mobile device, thereby achieving the purpose of operation, increasing the effective distance, improving the stability of the connection, and increasing the data transmission speed.
  • the first mobile device sends, by using the WIFI connection, one or more files in the file discovery list to the second mobile device.
  • the default is in the client client mode
  • the second mobile device sends a pairing request carrying the authentication information to the first mobile device that is within the NFC effective distance.
  • a device for point-to-point data transmission of a mobile device comprising:
  • the flow control module is configured to be in the client client mode by default after the NFC module and the WIFI module are activated by the mobile device where the device is located; after being triggered by the user, enter the active master mode and wait for NFC pairing.
  • the device further includes: an authentication module and a file management module;
  • the mobile device receives, by the NFC module, a pairing request for carrying the authentication information sent by the another mobile device, and providing the authentication information to the authentication module, when triggered by the authentication module, to the another
  • the mobile device sends a WIFI connection parameter and a file discovery list
  • the authentication module is configured to perform authentication by using the authentication information, and if the authentication is passed, triggering the NFC module and the file management module;
  • the device further includes: a transmission control module
  • the transmission control module sends the one or more to the another mobile device a file transfer request of the file information, after receiving the file transfer confirmation response replied by the another mobile device, triggering the WIFI module to send the one or more files to the another mobile device by using the WIFI connection;
  • the WIFI connection parameters include: a WIFI network identifier and an IP base address.
  • the WIFI connection parameter further includes: a heartbeat detection interval; the device further includes: a heartbeat detection module, configured to perform heartbeat detection according to the heartbeat detection interval with the another mobile device during the file transmission process, and if the WIFI connection is detected to be disconnected, the file transmission is interrupted and triggered The WIFI module re-establishes the WIFI connection or terminates the file transfer.
  • a heartbeat detection module configured to perform heartbeat detection according to the heartbeat detection interval with the another mobile device during the file transmission process, and if the WIFI connection is detected to be disconnected, the file transmission is interrupted and triggered The WIFI module re-establishes the WIFI connection or terminates the file transfer.
  • a device for point-to-point data transmission of a mobile device comprising:
  • An NFC module configured to perform NFC pairing with another mobile device within an NFC effective distance, and receive the wireless broadband sent by the another mobile device during the NFC pairing process
  • a WIFI module configured to establish, by using the WIFI connection parameter with the another mobile device
  • a file transmission module configured to receive, by using the WIFI connection, one or more files in the file discovery list sent by the another mobile device.
  • the device further includes:
  • the process control module is configured to default to the client client mode after the mobile device where the device is located starts the NFC module and the WIFI module.
  • the NFC module sends a pairing request carrying the authentication information to the another mobile device, and receives a WIFI connection parameter and a file discovery list sent by the another mobile device.
  • the device further includes: a transmission control module
  • the transmission control module receives the inclusion device sent by the another mobile device. Transmitting, by the file transfer request of the one or more file information, the file response confirmation response to the another mobile device, triggering the WIFI module to receive the one or more of the another mobile device by using the WIFI connection Documents; or,
  • the transmission control module sends the one or the mobile device to the another mobile device a file transfer request of the plurality of file information, after receiving the file transfer confirmation response replied by the another mobile device, triggering the WIFI module to receive the one or more files sent by the another mobile device by using the WIFI connection .
  • the apparatus further includes: a permission transition module, configured to send a permission transition request including the permission transition information to the another mobile device after receiving the permission transition invitation sent by the another mobile device.
  • a permission transition module configured to send a permission transition request including the permission transition information to the another mobile device after receiving the permission transition invitation sent by the another mobile device.
  • the WIFI connection parameters include: a WIFI network identifier and an IP base address.
  • a heartbeat detection module configured to perform heartbeat detection according to the heartbeat detection interval with the another mobile device during the file transmission process, and if the WIFI connection is detected to be disconnected, the file transmission is interrupted and triggered The WIFI module re-establishes the WIFI connection or terminates the file transfer.
  • the present invention adopts the NFC technology to realize the pairing of two mobile terminals, and the entire pairing process does not require the user to input any pairing code, and the Bluetooth pairing is more convenient;
  • the WIFI connection is established after the NFC pairing is completed and based on WIFI connection for file transfer, the effective distance of WIFI connection is usually about 100 meters, and the connection is stable, and the transmission speed can reach 5 ⁇ 7MB/s, thus increasing the effective distance and improving the connection compared with the existing Bluetooth transmission. Stability and data transfer speed.
  • DRAWINGS 1 is a flowchart of a main method according to Embodiment 1 of the present invention.
  • FIG. 5 is a schematic structural diagram of an apparatus provided in a second mobile device according to Embodiment 4 of the present invention.
  • Figure 6 is a flow chart showing the execution of the device shown in Figure 5.
  • FIG. 1 is a flowchart of a main method according to Embodiment 1 of the present invention. As shown in FIG. 1, the method mainly includes the following steps:
  • Step 101 The first mobile device and the second mobile device perform NFC pairing when the NFC is within the effective distance, and the first mobile device sends the WIFI connection parameter and the file discovery list to the second mobile device during the NFC pairing process.
  • NFC is a short-range high-frequency wireless communication technology that allows non-contact point-to-point data transmission between electronic devices, which can be used for fast and active setting of wireless networks.
  • NFC is used to implement pairing between mobile devices.
  • the subsequent WIFI connection is actively set, that is, the WIFI connection parameters are exchanged.
  • the effective distance of the NFC is 10 cm. Within 10 cm, the NFC pairing can be done automatically without the user entering any pairing code.
  • an NFC pairing request can be sent by the second mobile device to the first mobile device. After receiving the NFC pairing request, the first mobile device sends a WIFI connection parameter to the second mobile device by using a pairing confirmation response.
  • the WIFI connection parameter includes at least: a WIFI network identifier (WIFI SSID) and an IP address information of the first mobile device, where the IP address information of the first mobile device may use an IP base address in the network segment, and may further include: channel information
  • WIFI SSID WIFI network identifier
  • channel information The heartbeat detection interval, the connection key, etc., will be described in detail in the subsequent embodiments.
  • Step 102 The first mobile device and the second mobile device establish a WIFI connection by using the WIFI connection parameter.
  • the second mobile device may send a WIFI connection request to the first mobile device, where the connection request may include: IP address information of the second mobile device, where the IP address information may be generally added by using the IP address.
  • the way to offset the address that is, the IP base address + offset.
  • the first mobile device After receiving the WIFI connection request, the first mobile device sends a WIFI connection confirmation response to the second mobile device.
  • Step 103 The first mobile device sends one or more files in the transmission file discovery list to the second mobile device by using the WIFI connection.
  • the effective range of WIFI connection is usually in the range of 100 meters.
  • the connection is stable and can fully meet the file transmission requirements between mobile devices.
  • mainstream WIFI chips support 802.11g, and the speed can reach 5 ⁇ 7MB/s, which is suitable for transmitting a large number of files.
  • the file transmission can be used but not limited to: WIFI ad-hoc technology or WIFI direct technology.
  • a heartbeat message is sent between the first mobile device and the second mobile device to determine whether the WIFI connection is disconnected. If the WIFI connection is disconnected, the file transmission may be terminated or the WIFI connection may be re-established.
  • Step 202 The mobile phone A receives the pairing request sent by the mobile phone B.
  • the mobile phone B in the client mode detects the mobile phone within the NFC effective distance for detection, that is, sends a pairing request. If phone A and phone B are within the NFC effective distance, then phone A will receive the pairing request sent by phone B.
  • the authentication mechanism can be pre-configured, and the identity of other mobile devices can be authenticated.
  • the whitelist or blacklist can be configured, or the account information or password information can be verified.
  • the process can be directly ended. If the user of the mobile phone A still wants to send the file to the user B, the user can manually change the configuration of the mobile phone A, for example, ⁇ ⁇ ⁇ white list or blacklist , making the mobile phone pass the authentication.
  • Step 204 The mobile phone generates a file discovery list, and sends a WIFI connection parameter and a file discovery list to the mobile phone B.
  • the mobile phone A can be triggered to perform a file discovery operation, and the file having the sharing authority can be found, and the file discovery list can be generated by the information of the file having the sharing permission, or the file with the sharing authority selected by the user can be selected. Information generation file discovery list.
  • the files are found in the prior art and will not be described here.
  • a file discovery list with different rights can be generated for different authentication identities.
  • the permission level can be pre-configured. After the authentication process is completed, the permission level of the mobile phone B can be determined, and then a file discovery list of the permission level is generated.
  • the WIFI connection parameters include at least: a WIFI network identifier and an IP address information of the mobile phone A.
  • the IP address information of the mobile phone A may be an IP base address in the network segment. It may further include at least one of the following: channel information, heartbeat detection interval, connection key, and the like.
  • Step 205 The mobile phone B sends a WIFI connection request to the mobile phone A.
  • the WIFI setup request includes the IP address information of the mobile phone B, and the IP address information may adopt the foregoing IP base address plus an offset address.
  • Step 207 The mobile phone B sends a file transfer request including one or more file information in the file discovery list to the mobile phone A.
  • Step 208 The mobile phone A determines whether the permission level of the mobile phone B matches one or more files included in the file transfer request. If yes, step 212 is performed; otherwise, step 209 is performed.
  • Step 211 The mobile phone A uses the permission transition information to determine whether the mobile phone B has transitioned successfully. If successful, proceed to step 212; otherwise, the process ends.
  • Step 212 The mobile phone A sends a file transmission confirmation response to the mobile phone B.
  • the user of the mobile phone B selects one or some files in the file discovery list, and may carry the selected file transmission request in step 207.
  • File information this way is the mobile phone B actively pulls the file from the mobile phone A.
  • the user of the mobile phone A selects to transfer one or some files in the file discovery list to the mobile phone B, and the above step 207 may be that the mobile phone A sends a file transmission request to the mobile phone B, and carries the selected file information; step 212 may be The mobile phone B sends a file transmission confirmation response to the mobile phone A. In this way, the mobile phone A actively pushes the file to the mobile phone B. In this case, it is not necessary to perform the permission transition process of steps 208 to 211.
  • the device structures provided in the first mobile device and the second mobile device will be described in detail below through Embodiment 3 and Embodiment 4, respectively.
  • FIG. 3 is a schematic structural diagram of an apparatus for setting a first mobile device according to Embodiment 3 of the present invention.
  • the device mainly includes: an NFC module 301, a WIFI module 302, and a file transmission module 303.
  • the NFC module 301 performs NFC pairing with another mobile device (i.e., the second mobile device in Embodiment 1) within the NFC effective distance, and transmits a WIFI connection parameter and a file discovery list to another mobile device during the NFC pairing process.
  • another mobile device i.e., the second mobile device in Embodiment 1
  • the WIFI module 302 establishes a WIFI connection with another mobile device using WIFI connection parameters.
  • File transfer module 303 sends a file discovery column to another mobile device using a WIFI connection One or more files in the table.
  • the device may further include: a flow control module 305.
  • the flow control module 305 is responsible for controlling the mode in which the mobile device is located. In particular, after the mobile device where the device is located, the NFC module 301 and the WIFI module 302 are activated, the default is in the client mode; after being triggered by the user, the process is entered into the master mode. , waiting for NFC pairing. Usually in client mode, it will actively send pairing requests to other mobile devices that are within the NFC effective distance, while in master mode, other mobile devices that are within the NFC effective distance will send pairing requests to them.
  • an authentication process may be introduced in the pairing process.
  • the device may further include: a file management module 304 and an authentication module 306.
  • the NFC module 301 receives the pairing request for carrying the authentication information sent by the other mobile device, and provides the authentication information to the authentication module 306. When triggered by the authentication module 306, the WIFI connection parameter and the file discovery are sent to another mobile device. List.
  • the authentication module 306 authenticates using the authentication information provided by the NFC module 301, and if the authentication passes, triggers the NFC module 301 and the file management module 304.
  • the file management module 304 when used to be triggered, generates a file discovery list. Specifically, after the authentication is passed, the file management module 304 may be triggered to perform a file discovery operation, discover files having sharing rights, and generate file discovery lists by using the file information with the sharing rights, or may share the user with the sharing rights. The file information generates a file discovery list.
  • the authentication mechanism may be configured in the authentication module 306 to perform identity authentication on the paired mobile devices, for example, by configuring a whitelist or a blacklist, or by verifying the account information or password.
  • the way information is.
  • the privilege level can be pre-configured. After the authentication process is completed, the privilege level of the mobile phone B can be determined, and then a file discovery list of the privilege level is generated.
  • the device further includes: a transmission control module 309, which is specifically as follows:
  • the transmission control module 309 sends a file transmission request including one or more file information to another mobile device, and receives another file. After a file transmission confirmation response replied by the mobile device, the trigger WIFI module 302 transmits one or more files to another mobile device using the WIFI connection.
  • the transmission control module 309 receives a file transfer request sent by another mobile device that includes one or more file information. After replying to the file transfer confirmation response to another mobile device, the trigger WIFI module 302 transmits one or more files to another mobile device using the WIFI connection.
  • the transmission control module 309 can be a module that uses wireless transmission technologies such as infrared and WIFI, and can be the WIFI module 302.
  • the device further includes: a permission transition module 307, configured to determine, after the transmission control module 309 receives the file transfer request including one or more file information, whether the permission level of the other mobile device matches one or more files, if Yes, the trigger transmission control module 309 replies to the other mobile device with a file transfer confirmation response; otherwise, sends the permission to another mobile device.
  • the transition invitation receives a permission transition request including permission transition information sent by another mobile device, and uses the permission transition information to determine whether the other mobile device transitions successfully. If yes, the trigger transmission control module 309 returns a file transmission confirmation response to another mobile device. .
  • Each file in the mobile device where the device is located may be configured with a privilege level requirement, and another mobile device can only obtain a file corresponding to its privilege level. If not, the privilege transition process is implemented.
  • the other mobile device After receiving the permission transition invitation, the other mobile device replies with a permission transition request including the permission transition information, wherein the permission transition information may be a PIN, an account number, or a password that is associated with the mobile device where the device is located.
  • the permission transition information may be a PIN, an account number, or a password that is associated with the mobile device where the device is located.
  • the above WIFI connection parameters include: WIFI network identifier and IP base address.
  • the IP base address is used to generate an IP address of a mobile device at both ends used to establish a WIFI connection, where the IP base address is used as the IP address of the mobile device where the device is located, and the IP address of another mobile device may be an IP address plus
  • the offset mode ensures that the IP addresses of mobile devices at both ends are on the same network segment.
  • the WIFI connection parameters may also include: a heartbeat detection interval.
  • the device may further include:
  • the heartbeat detection module 308 performs heartbeat detection according to the heartbeat detection interval with another mobile device during file transmission. If the WIFI connection is detected to be disconnected, the file transmission is interrupted and the WIFI module 302 is triggered to re-establish the WIFI connection or terminate the file transmission.
  • the flow control module 305 controls the mobile device where the device is located to return to the client mode.
  • FIG. 5 is a schematic structural diagram of an apparatus for setting a second mobile device according to Embodiment 4 of the present invention. As shown in FIG. 5, the device mainly includes: an NFC module 501, a WIFI module 502, and a file transmission module 503.
  • the NFC module 501 performs NFC pairing with another mobile device (the first mobile device described in Embodiment 1) within an NFC effective distance, and receives WIFI connection parameters and file discovery sent by another mobile device during the NFC pairing process. List.
  • the WIFI module 502 establishes a WIFI connection with another mobile device using WIFI connection parameters.
  • the file transfer module 503 utilizes a WIFI connection to receive one or more files in a file discovery list sent by another mobile device.
  • the apparatus may further include: a flow control module 504.
  • the flow control module 504 is in the client mode by default after the mobile device where the device is located starts the NFC module 501 and the WIFI module 502. Usually in the client mode, the pairing request is actively sent to other mobile devices that are within the NFC effective distance, and other mobile devices waiting for the NFC effective distance in the master mode send a pairing request to them.
  • the NFC module 501 sends a pairing request carrying authentication information to another mobile device, and receives a WIFI connection parameter and a file discovery list sent by another mobile device.
  • an authentication process can be introduced during the pairing process, which is performed in another mobile device (i.e., a mobile device in master mode).
  • the transmission control module 507 is specifically as follows:
  • the transmission control module 507 receives a file transfer request sent by another mobile device that includes one or more file information
  • the trigger WIFI module 502 receives one or more files sent by another mobile device using the WIFI connection.
  • the transmission control module 507 sends a file transfer request containing one or more file information to the other mobile device, After receiving the file transmission confirmation response replied by another mobile device, the trigger WIFI module 502 receives one or more files sent by another mobile device by using the WIFI connection.
  • the transmission control module 507 can be a module that uses wireless transmission technologies such as infrared and WIFI, and can be the WIFI module 502.
  • the device further includes: a permission transition module 505, configured to: after receiving the permission transition invitation sent by another mobile device, send a permission transition request including the permission transition information to another mobile device.
  • the above WIFI connection parameters include: WIFI network identifier and IP base address. In addition to this, it can include: Heartbeat detection interval. At this time, the device may further include: a heartbeat detection module 506.
  • the heartbeat detection module 506 performs heartbeat detection according to the heartbeat detection interval with another mobile device during file transmission. If the WIFI connection is detected to be disconnected, the file transmission is interrupted. The WIFI module 502 is triggered to re-establish the WIFI connection, or terminate the file transfer.
  • a mobile device may act as the initiator of the file transfer or as the recipient of the file transfer. Therefore, a mobile device can have the structure shown in Figures 3 and 5 at the same time, that is, Figure 3 and Figure 5 The illustrated device can typically be placed in a mobile device.
  • the invention adopts the NFC technology to realize the pairing of two mobile terminals, and the entire pairing process does not require the user to input any pairing code, which is more convenient than the Bluetooth pairing.
  • the WIFI connection is established and the file transmission is performed based on the WIFI connection.
  • the effective distance of the WIFI connection is usually about 100 meters, and the connection is stable, and the transmission speed can reach 5-7MB/s, so compared with the existing ones. Bluetooth transmission increases the effective distance, improves connection stability and data transfer speed.
  • the local mobile device simultaneously transmits the generated file discovery list to the peer mobile device in the NFC pairing process, so that the peer mobile device can learn the file discovery information, thereby not only realizing the active push file discovery list on the local mobile device.
  • One or more files in the file are sent to the peer mobile device, and the peer mobile device can also pull one or more files in the file discovery list from the local mobile device, so as to achieve more flexibility and meet more diverse user requirements.
  • WIFI connection supports multiple file encryption methods such as Wired Equivalent Privacy (WEP) and Wireless Protected Access (WPA) to provide superior wireless security transmission performance.
  • WEP Wired Equivalent Privacy
  • WPA Wireless Protected Access

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Provided are a method and apparatus used for mobile device point-to-point data transmission. The method includes: performing NFC pairing when a first mobile device and a second mobile device are within the effective distance for near field communication (NFC), with the first mobile device sending a wireless fidelity (WIFI) connection parameter and a file discovery list to the second mobile device during the NFC pairing; the first mobile device and second mobile device establish a WIFI connection using the WIFI connection parameter; and the first mobile device sends one or more files of the file discovery list to the second mobile device using the WIFI connection. The mobile device point-to-point data transmission realized in the present invention can achieve the purpose of easy operation, increasing the effective distance, improving connection stability and improving the speed of data transmission.

Description

本申请要求了申请日为 2011年 09月 07日,申请号为 201110264441.9 发明名称为"用于移动设备点对点数据传输的方法和装置 "的中国专利申 请的优先权。  This application claims the priority of the Chinese patent application entitled "Method and Apparatus for Point-to-Point Data Transmission for Mobile Devices" on the application date of September 07, 2011, application number 201110264441.9.
技术领域 Technical field
本发明涉及网络通信技术领域, 特别涉及一种移动终端点对点数据 传输的方法和装置。  The present invention relates to the field of network communication technologies, and in particular, to a method and apparatus for point-to-point data transmission of a mobile terminal.
背景技术 Background technique
随着移动通信技术的不断发展, 用户对移动设备的依赖程度越来越 高, 移动设备之间的数据互传需求越来越大。 移动设备的内存中文件是 数据的一种固化形式, 最典型的数据传输就是文件传输, 现有移动设备 之间的文件互传主要通过蓝牙技术实现, 但基于蓝牙技术的文件传输存 在以下缺陷:  With the continuous development of mobile communication technologies, users are increasingly dependent on mobile devices, and data transmission requirements between mobile devices are increasing. The in-memory file of the mobile device is a solidified form of data. The most typical data transmission is file transmission. The file transfer between existing mobile devices is mainly realized by Bluetooth technology, but the file transmission based on Bluetooth technology has the following defects:
其一、 蓝牙配对的过程过于繁瑣。 在蓝牙配对过程中, 需要一方用 户手工在移动设备输入配对码, 另一方用户在连接时输入相同的配对码 才能配对建立连接, 这个过程需要人工干预, 使用起来十分不便。  First, the process of Bluetooth pairing is too cumbersome. In the Bluetooth pairing process, one party needs to manually input the pairing code on the mobile device, and the other party inputs the same pairing code when connecting to establish a connection. This process requires manual intervention and is very inconvenient to use.
其二、 文件传输的有效距离短, 连接不稳定。 收到蓝牙信号有效距 离的限制, 一般要求两移动设备之间的距离在 10米以内且中间不能存在 固体遮挡。  Second, the effective distance of file transfer is short, and the connection is unstable. The limitation of the effective distance of the Bluetooth signal is received. Generally, the distance between the two mobile devices is within 10 meters and there is no solid occlusion in the middle.
其三、 数据传输速度慢。 蓝牙的传输速度一般为 KB级别, 性能较好 的能达到上百 KB , 但这样的速度来传输大数据量的文件, 诸如音频和视 频文件时, 就会长时间的传输影响移动设备的性能。 发明内容 Third, the data transmission speed is slow. Bluetooth transmission speed is generally KB level, and the performance can reach hundreds of KB, but such a speed to transmit large data files, such as audio and video files, will affect the performance of mobile devices for a long time. Summary of the invention
有鉴于此, 本发明提供了一种用于移动设备点对点数据传输的方法 和装置, 从而达到筒便操作、 增大有效距离、 提高连接的稳定性和提高 数据传输速度的目的。  In view of this, the present invention provides a method and apparatus for point-to-point data transmission of a mobile device, thereby achieving the purpose of operation, increasing the effective distance, improving the stability of the connection, and increasing the data transmission speed.
具体技术方案如下:  The specific technical solutions are as follows:
一种用于移动设备点对点数据传输的方法, 该方法包括:  A method for point-to-point data transmission of a mobile device, the method comprising:
51、 第一移动设备和第二移动设备在近场通信 (NFC )有效距离内 时, 进行 NFC配对, 在所述 NFC配对过程中所述第一移动设备向所述第 二移动设备发送无线宽带 (WIFI ) 连接参数和文件发现列表;  The NFC pairing is performed when the first mobile device and the second mobile device are within a near field communication (NFC) effective distance, and the first mobile device sends the wireless broadband to the second mobile device during the NFC pairing process. (WIFI) connection parameters and file discovery list;
52、 所述第一移动设备和第二移动设备利用所述 WIFI连接参数建 立 WIFI连接;  52. The first mobile device and the second mobile device establish a WIFI connection by using the WIFI connection parameter.
53、 所述第一移动设备利用所述 WIFI连接向所述第二移动设备发 送所述文件发现列表中的一个或多个文件。  53. The first mobile device sends, by using the WIFI connection, one or more files in the file discovery list to the second mobile device.
更进一步地, 在所述步骤 S1之前还包括:  Further, before the step S1, the method further includes:
所述第一移动设备和所述第二移动设备启动 NFC功能和 WIFI功能 后默认处于客户端 client模式;  After the first mobile device and the second mobile device start the NFC function and the WIFI function, the default is in the client client mode;
所述第一移动设备受到用户触发后, 进入主用 master模式, 等待 NFC配对。  After the first mobile device is triggered by the user, it enters the active master mode and waits for NFC pairing.
具体地, 所述步骤 S1包括:  Specifically, the step S1 includes:
511、 所述第二移动设备向在 NFC有效距离内的所述第一移动设备 发送携带鉴权信息的配对请求;  511. The second mobile device sends a pairing request carrying the authentication information to the first mobile device that is within the NFC effective distance.
512、所述第一移动设备利用所述鉴权信息进行鉴权,如果鉴权通过, 执行步骤 S13; S13; 所述第一移动设备生成文件发现列表, 并向所述第二移动设备 发送 WIFI连接参数和文件发现列表。 512, the first mobile device uses the authentication information for authentication, if the authentication is passed, step S13 is performed; S13: The first mobile device generates a file discovery list, and sends a WIFI connection parameter and a file discovery list to the second mobile device.
具体地, 所述步骤 S3包括:  Specifically, the step S3 includes:
如果所述第一移动设备的用户选择所述文件发现列表中的一个或多 个文件给所述第二移动设备, 则所述第一移动设备向所述第二移动设备 发送包含所述一个或多个文件信息的文件传输请求, 所述第二移动设备 向所述第一移动设备发送文件传输确认响应, 所述第一移动设备利用所 述 WIFI连接向所述第二移动设备发送所述一个或多个文件; 或者, 如果所述第二移动设备的用户选择从所述第一移动设备拉取所述文 件发现列表中的一个或多个文件, 则所述第二移动设备向所述第一移动 设备发送包含所述一个或多个文件信息的文件传输请求, 所述第一移动 设备向所述第二移动设备发送文件传输确认响应, 所述第一移动设备利 用所述 WIFI连接向所述第二移动设备发送所述一个或多个文件。  And if the user of the first mobile device selects one or more files in the file discovery list to the second mobile device, the first mobile device sends the one or the mobile device to the second mobile device a file transfer request of the plurality of file information, the second mobile device transmitting a file transfer confirmation response to the first mobile device, the first mobile device transmitting the one to the second mobile device by using the WIFI connection Or a plurality of files; or, if the user of the second mobile device selects to pull one or more files in the file discovery list from the first mobile device, the second mobile device Transmitting, by the mobile device, a file transfer request including the one or more file information, the first mobile device sending a file transfer confirmation response to the second mobile device, where the first mobile device uses the WIFI connection The second mobile device sends the one or more files.
如果所述第二移动设备的用户选择从所述第一移动设备拉取所述文 件发现列表中的一个或多个文件, 则所述第一移动设备接收到包含所述 一个或多个文件信息的文件传输请求后, 判断所述第二移动设备的权限 级别是否与所述一个或多个文件匹配, 如果是, 执行向所述第二移动设 备发送文件传输确认响应的步骤; 否则, 向所述第二移动设备发送权限 跃迁邀请, 所述第二移动设备向所述第一移动设备发送包含权限跃迁信 息的权限跃迁请求, 所述第一移动设备利用所述权限跃迁信息判断所述 第二移动设备是否跃迁成功, 如果是, 执行向所述第二移动设备发送文 件传输确认响应的步骤。  If the user of the second mobile device chooses to pull one or more files in the file discovery list from the first mobile device, the first mobile device receives the one or more file information After the file transfer request, determining whether the permission level of the second mobile device matches the one or more files, and if yes, performing the step of sending a file transfer confirmation response to the second mobile device; otherwise, The second mobile device sends a permission transition request, the second mobile device sends a permission transition request including the permission transition information to the first mobile device, and the first mobile device determines the second by using the permission transition information. Whether the mobile device transitions successfully, and if so, performs the step of transmitting a file transfer confirmation response to the second mobile device.
其中, 所述 WIFI连接参数包括: WIFI网络标识和 IP基址。 更进一步地, 所述 WIFI连接参数还包括: 心跳检测间隔; 在所述文件传输过程中, 所述第一移动设备和所述第二移动设备按 照所述心跳检测间隔相互进行心跳检测, 如果检测到所述 WIFI连接断 开, 则所述文件传输中断并重新建立 WIFI连接, 或者终止文件传输。 The WIFI connection parameter includes: a WIFI network identifier and an IP base address. Further, the WIFI connection parameter further includes: a heartbeat detection interval; in the file transmission process, the first mobile device and the second mobile device perform heartbeat detection according to the heartbeat detection interval, if the detection When the WIFI connection is disconnected, the file transfer is interrupted and the WIFI connection is re-established, or the file transfer is terminated.
一种用于移动设备点对点数据传输的装置, 该装置包括:  A device for point-to-point data transmission of a mobile device, the device comprising:
近场通信 NFC模块, 用于与另一移动设备在 NFC有效距离内时, 进行 NFC配对, 在所述 NFC配对过程中向所述另一移动设备发送无线 宽带 WIFI连接参数和文件发现列表;  a near field communication NFC module, configured to perform NFC pairing with another mobile device within an NFC effective distance, and send a wireless broadband WIFI connection parameter and a file discovery list to the another mobile device during the NFC pairing process;
WIFI模块, 用于与所述另一移动设备利用所述 WIFI连接参数建立 a WIFI module, configured to establish, by using the WIFI connection parameter with the another mobile device
WIFI连接; WIFI connection;
文件传输模块, 用于利用所述 WIFI连接向所述另一移动设备发送 所述文件发现列表中的一个或多个文件。  And a file transmission module, configured to send, by using the WIFI connection, one or more files in the file discovery list to the another mobile device.
更进一步地, 该装置还包括:  Further, the device further includes:
流程控制模块,用于在该装置所在移动设备启动所述 NFC模块和所 述 WIFI模块后默认处于客户端 client模式; 受到用户触发后, 进入主用 master模式, 等待 NFC配对。  The flow control module is configured to be in the client client mode by default after the NFC module and the WIFI module are activated by the mobile device where the device is located; after being triggered by the user, enter the active master mode and wait for NFC pairing.
较优地, 该装置还包括: 鉴权模块和文件管理模块;  Preferably, the device further includes: an authentication module and a file management module;
所述 NFC模块接收所述另一移动设备发送的携带鉴权信息的配对 请求, 将所述鉴权信息提供给所述鉴权模块, 受到所述鉴权模块的触发 时, 向所述另一移动设备发送 WIFI连接参数和文件发现列表;  Receiving, by the NFC module, a pairing request for carrying the authentication information sent by the another mobile device, and providing the authentication information to the authentication module, when triggered by the authentication module, to the another The mobile device sends a WIFI connection parameter and a file discovery list;
所述鉴权模块, 用于利用所述鉴权信息进行鉴权, 如果鉴权通过, 则触发所述 NFC模块和所述文件管理模块;  The authentication module is configured to perform authentication by using the authentication information, and if the authentication is passed, triggering the NFC module and the file management module;
所述文件管理模块, 用于受到触发时, 生成文件发现列表, 并提供 给所述 NFC模块。 The file management module, configured to generate a file discovery list when triggered, and provide Give the NFC module.
更进一步地, 该装置还包括: 传输控制模块;  Further, the device further includes: a transmission control module;
如果该装置所在移动设备的用户选择所述文件发现列表中的一个或 多个文件给所述另一移动设备, 则所述传输控制模块向所述另一移动设 备发送包含所述一个或多个文件信息的文件传输请求, 接收所述另一移 动设备回复的文件传输确认响应后, 触发所述 WIFI模块利用所述 WIFI 连接向所述另一移动设备发送所述一个或多个文件; 或者,  And if the user of the mobile device where the device is located selects one or more files in the file discovery list to the another mobile device, the transmission control module sends the one or more to the another mobile device a file transfer request of the file information, after receiving the file transfer confirmation response replied by the another mobile device, triggering the WIFI module to send the one or more files to the another mobile device by using the WIFI connection; or
如果所述另一移动设备的用户选择从该装置所在移动设备拉取所述 文件发现列表中的一个或多个文件, 则所述无线传输模块接收所述另一 移动设备发送的包含所述一个或多个文件信息的文件传输请求, 向所述 另一移动设备回复文件传输确认响应后, 触发所述 WIFI模块利用所述 WIFI连接向所述另一移动设备发送所述一个或多个文件。  If the user of the other mobile device selects to pull one or more files in the file discovery list from the mobile device where the device is located, the wireless transmission module receives the one that is sent by the another mobile device and includes the one And the file transfer request of the plurality of file information, after replying the file transfer confirmation response to the another mobile device, triggering the WIFI module to send the one or more files to the another mobile device by using the WIFI connection.
更进一步地, 该装置还包括: 权限跃迁模块, 用于在所述传输控制 模块接收到包含所述一个或多个文件信息的文件传输请求后, 判断所述 另一移动设备的权限级别是否与所述一个或多个文件匹配, 如果是, 触 发所述传输控制模块向所述另一移动设备回复文件传输确认响应;否则, 向所述另一移动设备发送权限跃迁邀请, 接收所述另一移动设备发送的 包含权限跃迁信息的权限跃迁请求, 利用所述权限跃迁信息判断所述另 一移动设备是否跃迁成功, 如果是, 触发所述传输控制模块向所述另一 移动设备回复文件传输确认响应。  Further, the device further includes: a permission transition module, configured to determine, after the transmission control module receives the file transmission request that includes the one or more file information, whether the permission level of the another mobile device is The one or more files match, if yes, triggering the transmission control module to reply a file transmission confirmation response to the another mobile device; otherwise, transmitting a permission transition invitation to the another mobile device, receiving the another And a permission transition request sent by the mobile device, including the permission transition information, determining, by the permission transition information, whether the another mobile device is successfully transitioned, and if so, triggering the transmission control module to reply to the another mobile device for file transfer confirmation response.
其中, 所述 WIFI连接参数包括: WIFI网络标识和 IP基址。  The WIFI connection parameters include: a WIFI network identifier and an IP base address.
更进一步地, 所述 WIFI连接参数还包括: 心跳检测间隔; 该装置 还包括: 心跳检测模块, 用于在所述文件传输过程中, 与所述另一移动设备 按照所述心跳检测间隔进行心跳检测,如果检测到所述 WIFI连接断开, 则所述文件传输中断并触发所述 WIFI模块重新建立 WIFI连接,或者终 止文件传输。 Further, the WIFI connection parameter further includes: a heartbeat detection interval; the device further includes: a heartbeat detection module, configured to perform heartbeat detection according to the heartbeat detection interval with the another mobile device during the file transmission process, and if the WIFI connection is detected to be disconnected, the file transmission is interrupted and triggered The WIFI module re-establishes the WIFI connection or terminates the file transfer.
一种用于移动设备点对点数据传输的装置, 该装置包括:  A device for point-to-point data transmission of a mobile device, the device comprising:
NFC模块, 用于与另一移动设备在 NFC有效距离内时, 进行 NFC 配对, 在所述 NFC配对过程中接收所述另一移动设备发送的无线宽带 An NFC module, configured to perform NFC pairing with another mobile device within an NFC effective distance, and receive the wireless broadband sent by the another mobile device during the NFC pairing process
WIFI连接参数和文件发现列表; WIFI connection parameters and file discovery list;
WIFI模块, 用于与所述另一移动设备利用所述 WIFI连接参数建立 a WIFI module, configured to establish, by using the WIFI connection parameter with the another mobile device
WIFI连接; WIFI connection;
文件传输模块, 用于利用所述 WIFI连接接收所述另一移动设备发 送的所述文件发现列表中的一个或多个文件。  And a file transmission module, configured to receive, by using the WIFI connection, one or more files in the file discovery list sent by the another mobile device.
更进一步地, 该装置还包括:  Further, the device further includes:
流程控制模块,用于在该装置所在移动设备启动所述 NFC模块和所 述 WIFI模块后默认处于客户端 client模式。  The process control module is configured to default to the client client mode after the mobile device where the device is located starts the NFC module and the WIFI module.
所述 NFC模块向所述另一移动设备发送携带鉴权信息的配对请求, 接收所述另一移动设备发送的 WIFI连接参数和文件发现列表。  The NFC module sends a pairing request carrying the authentication information to the another mobile device, and receives a WIFI connection parameter and a file discovery list sent by the another mobile device.
更进一步地, 该装置还包括: 传输控制模块;  Further, the device further includes: a transmission control module;
具体地, 如果所述另一移动设备的用户选择所述文件发现列表中的 一个或多个文件给该装置所在的移动设备, 则所述传输控制模块接收所 述另一移动设备发送的包含所述一个或多个文件信息的文件传输请求, 向所述另一移动设备回复文件传输确认响应后, 触发所述 WIFI模块利 用所述 WIFI连接接收所述另一移动设备发送的所述一个或多个文件; 或者, Specifically, if the user of the another mobile device selects one or more files in the file discovery list to the mobile device where the device is located, the transmission control module receives the inclusion device sent by the another mobile device. Transmitting, by the file transfer request of the one or more file information, the file response confirmation response to the another mobile device, triggering the WIFI module to receive the one or more of the another mobile device by using the WIFI connection Documents; or,
如果该装置所在移动设备的用户选择从所述另一移动设备拉取所述 文件发现列表中的一个或多个文件, 则所述传输控制模块向所述另一移 动设备发送包含所述一个或多个文件信息的文件传输请求, 接收所述另 一移动设备回复的文件传输确认响应后, 触发所述 WIFI模块利用所述 WIFI连接接收所述另一移动设备发送的所述一个或多个文件。  And if the user of the mobile device where the device is located chooses to pull one or more files in the file discovery list from the another mobile device, the transmission control module sends the one or the mobile device to the another mobile device a file transfer request of the plurality of file information, after receiving the file transfer confirmation response replied by the another mobile device, triggering the WIFI module to receive the one or more files sent by the another mobile device by using the WIFI connection .
该装置还包括: 权限跃迁模块, 用于接收所述另一移动设备发送的 权限跃迁邀请后, 向所述另一移动设备发送包含权限跃迁信息的权限跃 迁请求。  The apparatus further includes: a permission transition module, configured to send a permission transition request including the permission transition information to the another mobile device after receiving the permission transition invitation sent by the another mobile device.
其中, 所述 WIFI连接参数包括: WIFI网络标识和 IP基址。  The WIFI connection parameters include: a WIFI network identifier and an IP base address.
更进一步地, 所述 WIFI连接参数还包括: 心跳检测间隔; 该装置 还包括:  Further, the WIFI connection parameter further includes: a heartbeat detection interval; the device further includes:
心跳检测模块, 用于在所述文件传输过程中, 与所述另一移动设备 按照所述心跳检测间隔进行心跳检测,如果检测到所述 WIFI连接断开, 则所述文件传输中断并触发所述 WIFI模块重新建立 WIFI连接,或者终 止文件传输。  a heartbeat detection module, configured to perform heartbeat detection according to the heartbeat detection interval with the another mobile device during the file transmission process, and if the WIFI connection is detected to be disconnected, the file transmission is interrupted and triggered The WIFI module re-establishes the WIFI connection or terminates the file transfer.
由以上技术方案可以看出,本发明采用了 NFC技术实现了两移动终 端的配对, 整个配对过程无需用户输入任何配对码, 相比较蓝牙配对更 加筒便; 在 NFC配对完成后建立 WIFI连接并基于 WIFI连接进行文件 传输, WIFI连接的有效距离通常在 100米左右, 且连接稳定, 且传输速 度能够达到 5~7MB/s, 因此相比较现有的蓝牙传输增大了有效距离、 提 高了连接的稳定性和数据传输速度。  It can be seen from the above technical solution that the present invention adopts the NFC technology to realize the pairing of two mobile terminals, and the entire pairing process does not require the user to input any pairing code, and the Bluetooth pairing is more convenient; the WIFI connection is established after the NFC pairing is completed and based on WIFI connection for file transfer, the effective distance of WIFI connection is usually about 100 meters, and the connection is stable, and the transmission speed can reach 5~7MB/s, thus increasing the effective distance and improving the connection compared with the existing Bluetooth transmission. Stability and data transfer speed.
附图说明 图 1为本发明实施例一提供的主要方法流程图; DRAWINGS 1 is a flowchart of a main method according to Embodiment 1 of the present invention;
图 2为本发明实施例二提供的详细方法流程图;  2 is a flowchart of a detailed method according to Embodiment 2 of the present invention;
图 3为本发明实施例三提供的设置在第一移动设备的装置结构示意 图;  3 is a schematic structural diagram of an apparatus provided in a first mobile device according to Embodiment 3 of the present invention;
图 4为图 3所示装置对应的执行流程图;  Figure 4 is a flow chart showing the execution of the device shown in Figure 3;
图 5为本发明实施例四提供的设置在第二移动设备的装置结构示意 图;  FIG. 5 is a schematic structural diagram of an apparatus provided in a second mobile device according to Embodiment 4 of the present invention; FIG.
图 6为图 5所示装置对应的执行流程图。  Figure 6 is a flow chart showing the execution of the device shown in Figure 5.
具体实施方式 detailed description
为了使本发明的目的、 技术方案和优点更加清楚, 下面结合附图和 具体实施例对本发明进行详细描述。  The present invention will be described in detail below with reference to the drawings and specific embodiments.
实施例一、  Embodiment 1
图 1为本发明实施例一提供的主要方法流程图, 如图 1所示, 该方 法主要包括以下步骤:  FIG. 1 is a flowchart of a main method according to Embodiment 1 of the present invention. As shown in FIG. 1, the method mainly includes the following steps:
步骤 101 : 第一移动设备和第二移动设备在 NFC有效距离内时, 进 行 NFC配对, 并在 NFC配对过程中第一移动设备向第二移动设备发送 WIFI连接参数和文件发现列表。  Step 101: The first mobile device and the second mobile device perform NFC pairing when the NFC is within the effective distance, and the first mobile device sends the WIFI connection parameter and the file discovery list to the second mobile device during the NFC pairing process.
NFC是一种短距离高频无线通信技术, 允许电子设备之间进行非接 触式点对点数据传输, 可以用于对无线网络进行快速、 主动设置, 在本 发明中采用 NFC实现移动设备间的配对, 对后续的 WIFI连接进行主动 设置, 即交换 WIFI连接参数。  NFC is a short-range high-frequency wireless communication technology that allows non-contact point-to-point data transmission between electronic devices, which can be used for fast and active setting of wireless networks. In the present invention, NFC is used to implement pairing between mobile devices. The subsequent WIFI connection is actively set, that is, the WIFI connection parameters are exchanged.
通常, NFC的有效距离为 10厘米, 在 10厘米之内, 无需用户输入 任何配对码即可自动完成 NFC配对。 配对时, 可以由第二移动设备向第一移动设备发送 NFC配对请求。 第一移动设备接收到该 NFC配对请求后,通过配对确认响应向第二移动 设备发送 WIFI连接参数。 Normally, the effective distance of the NFC is 10 cm. Within 10 cm, the NFC pairing can be done automatically without the user entering any pairing code. When paired, an NFC pairing request can be sent by the second mobile device to the first mobile device. After receiving the NFC pairing request, the first mobile device sends a WIFI connection parameter to the second mobile device by using a pairing confirmation response.
其中, WIFI连接参数至少包括: WIFI网络标识( WIFI SSID )和第 一移动设备的 IP地址信息, 第一移动设备的 IP地址信息可以采用网段 内的 IP基址, 还可以进一步包括: 信道信息、 心跳检测间隔、 连接密钥 等, 具体将在后续实施例中详细描述。  The WIFI connection parameter includes at least: a WIFI network identifier (WIFI SSID) and an IP address information of the first mobile device, where the IP address information of the first mobile device may use an IP base address in the network segment, and may further include: channel information The heartbeat detection interval, the connection key, etc., will be described in detail in the subsequent embodiments.
步骤 102:第一移动设备和第二移动设备利用上述 WIFI连接参数建 立 WIFI连接。  Step 102: The first mobile device and the second mobile device establish a WIFI connection by using the WIFI connection parameter.
WIFI是一种可以将笔记本、 手机、 掌上电脑(PDA )等移动设备以 无线方式互相连接的技术, 无需任何中间设备。 目前市场上流行的移动 设备普遍支持 NFC和 WIFI这两种功能,因此无需对移动设备进行改动, 具有较好的实现基础。  WIFI is a technology that wirelessly connects mobile devices such as laptops, mobile phones, and PDAs without any intermediate equipment. The popular mobile devices on the market generally support the two functions of NFC and WIFI, so there is no need to change the mobile device, and it has a good implementation basis.
在本步骤中, 具体可以由第二移动设备向第一移动设备发送 WIFI 连接请求, 该连接请求中可以包括: 第二移动设备的 IP地址信息, 该 IP 地址信息通常可以采用上述 IP基址加偏移地址的方式,即 IP基址 +offset。 第一移动设备接收到 WIFI连接请求后向第二移动设备发送 WIFI连接确 认响应。  In this step, the second mobile device may send a WIFI connection request to the first mobile device, where the connection request may include: IP address information of the second mobile device, where the IP address information may be generally added by using the IP address. The way to offset the address, that is, the IP base address + offset. After receiving the WIFI connection request, the first mobile device sends a WIFI connection confirmation response to the second mobile device.
步骤 103:第一移动设备利用上述 WIFI连接向第二移动设备发送传 输文件发现列表中的一个或多个文件。  Step 103: The first mobile device sends one or more files in the transmission file discovery list to the second mobile device by using the WIFI connection.
WIFI连接的有效范围通常在 100米范围, 连接稳定, 完全可以满足 移动设备之间的文件传输需求, 目前主流 WIFI芯片均支持 802.11g, 速 度能够达到 5~7MB/s, 适合传输大数量的文件。 其中, 在进行文件传输时可以采用但不限于: WIFI ad-hoc技术或者 WIFI direct技术。 The effective range of WIFI connection is usually in the range of 100 meters. The connection is stable and can fully meet the file transmission requirements between mobile devices. At present, mainstream WIFI chips support 802.11g, and the speed can reach 5~7MB/s, which is suitable for transmitting a large number of files. . Among them, the file transmission can be used but not limited to: WIFI ad-hoc technology or WIFI direct technology.
另外, 触发文件传输时, 可以由第一移动设备主动推送文件发现列 表中的一个或多个文件, 也可以由第二移动设备 "拉取" 文件发现列表 中的一个或多个文件, 具体将在后续实施例中描述。  In addition, when the file transfer is triggered, one or more files in the file discovery list may be actively pushed by the first mobile device, or one or more files in the file discovery list may be "pushed" by the second mobile device, specifically It is described in the subsequent embodiments.
在文件传输过程中第一移动设备和第二移动设备之间会发送心跳报 文来确定 WIFI连接是否断开,如果 WIFI连接断开则可以选择终止文件 传输或重新建立 WIFI连接。  During the file transmission process, a heartbeat message is sent between the first mobile device and the second mobile device to determine whether the WIFI connection is disconnected. If the WIFI connection is disconnected, the file transmission may be terminated or the WIFI connection may be re-established.
实施例二、  Embodiment 2
下面通过实施例二对本发明提供的方法进行详细描述。 在该实施例 中, 以手机为例, 假设要将手机 A上的文件传输至手机 B , 手机 A和手 机 B均处于待连接状态, 即手机 A和手机 B的 NFC功能和 WIFI功能 均已启动, 默认处于客户端(client )模式, 则对应的方法流程可以如图 2所示, 包括以下步骤:  The method provided by the present invention will be described in detail below through the second embodiment. In this embodiment, taking a mobile phone as an example, it is assumed that the file on the mobile phone A is transmitted to the mobile phone B, and both the mobile phone A and the mobile phone B are in a state to be connected, that is, the NFC function and the WIFI function of the mobile phone A and the mobile phone B are started. The default is in the client mode. The corresponding method flow can be as shown in Figure 2. The following steps are included:
步骤 201 : 当手机 A受到用户触发后, 进入主用 (master )模式。 如果手机 A的用户欲进行文件传输, 可以通过点选手机上的某个功 能按钮或者点选要传输的文件等方式触发手机 A进入 master模式,手机 A进入 master模式后等待其他手机的配对请求。  Step 201: When the mobile phone A is triggered by the user, enter the master mode. If the user of the mobile phone A wants to transfer the file, the mobile phone A can be triggered to enter the master mode by clicking a function button on the mobile phone or clicking the file to be transmitted, and the mobile phone A enters the master mode and waits for the pairing request of the other mobile phone.
步骤 202: 手机 A接收手机 B发送的配对请求。  Step 202: The mobile phone A receives the pairing request sent by the mobile phone B.
处于 client模式的手机 B会探测到处于 NFC有效距离内的手机进行 探测, 即发送配对请求。 如果手机 A和手机 B在 NFC有效距离内, 则 手机 A会收到手机 B发送的配对请求。  The mobile phone B in the client mode detects the mobile phone within the NFC effective distance for detection, that is, sends a pairing request. If phone A and phone B are within the NFC effective distance, then phone A will receive the pairing request sent by phone B.
该配对请求中可以包括手机 B的鉴权信息,例如手机 B的身份鉴别 ID、 账号信息或者密码信息等。 The pairing request may include authentication information of the mobile phone B, for example, identity identification of the mobile phone B. ID, account information or password information.
步骤 203: 手机 A利用配对请求中的鉴权信息进行鉴权, 如果鉴权 通过则执行步骤 204; 否则, 结束流程。  Step 203: The mobile phone A uses the authentication information in the pairing request to perform authentication, and if the authentication passes, step 204 is performed; otherwise, the process ends.
在手机 A端可以预先配置鉴权机制, 可以对配对的其他移动设备进 行身份的鉴权, 例如可以通过配置白名单或者黑名单的方式, 或者通过 验证账号信息或密码信息的方式。  On the A side of the mobile phone, the authentication mechanism can be pre-configured, and the identity of other mobile devices can be authenticated. For example, the whitelist or blacklist can be configured, or the account information or password information can be verified.
如果鉴权失败, 可以直接结束流程, 如果手机 A的用户仍欲发送文 件给用户 B , 则可以通过手工^ ίι爹改手机 A的配置的方式, 例如^ ίι爹改白名 单或黑名单的方式, 使得手机 Β通过鉴权。  If the authentication fails, the process can be directly ended. If the user of the mobile phone A still wants to send the file to the user B, the user can manually change the configuration of the mobile phone A, for example, ^ ίι 爹 white list or blacklist , making the mobile phone pass the authentication.
步骤 204: 手机 Α生成文件发现列表, 并向手机 B发送 WIFI连接 参数和文件发现列表。  Step 204: The mobile phone generates a file discovery list, and sends a WIFI connection parameter and a file discovery list to the mobile phone B.
当鉴权通过后, 可以触发手机 A进行文件发现操作, 发现具有共享 权限的文件,可以将这些具有共享权限的文件的信息生成文件发现列表, 也可以将用户点选的具有共享权限的文件的信息生成文件发现列表。 其 中文件发现为已有技术, 在此不再赘述。  After the authentication is passed, the mobile phone A can be triggered to perform a file discovery operation, and the file having the sharing authority can be found, and the file discovery list can be generated by the information of the file having the sharing permission, or the file with the sharing authority selected by the user can be selected. Information generation file discovery list. The files are found in the prior art and will not be described here.
另外, 在进行上述鉴权过程之后, 针对不同的鉴权身份, 可以生成 不同权限的文件发现列表。 例如, 可以预先配置权限等级, 在鉴权过程 完成后, 可以确定出手机 B的权限等级, 然后生成该权限等级的文件发 现列表。  In addition, after performing the above authentication process, a file discovery list with different rights can be generated for different authentication identities. For example, the permission level can be pre-configured. After the authentication process is completed, the permission level of the mobile phone B can be determined, and then a file discovery list of the permission level is generated.
WIFI连接参数至少包括: WIFI网络标识和手机 A的 IP地址信息。 其中手机 A的 IP地址信息可以为网段内的 IP基址。 还可以进一步包括 以下中的至少一种: 信道信息、 心跳检测间隔、 连接密钥等。  The WIFI connection parameters include at least: a WIFI network identifier and an IP address information of the mobile phone A. The IP address information of the mobile phone A may be an IP base address in the network segment. It may further include at least one of the following: channel information, heartbeat detection interval, connection key, and the like.
其中, 信道信息为建立 WIFI连接使用的信道; 心跳检测间隔为在 WIFI连接过程中进行心跳检测的间隔, 该心跳检测用于检测 WIFI连接 是否断开; 连接密钥是 WIFI连接所使用的密钥, 用于保证文件传输的 安全性, 可以采用已有的随机算法生成。 Wherein, the channel information is a channel used to establish a WIFI connection; the heartbeat detection interval is Heartbeat detection interval during WIFI connection. The heartbeat detection is used to detect whether the WIFI connection is disconnected. The connection key is the key used by the WIFI connection to ensure the security of file transmission. The existing random algorithm can be used. generate.
至此, NFC配对过程结束, 下面开始 WIFI连接的建立过程。  At this point, the NFC pairing process ends, and the process of establishing the WIFI connection begins.
步骤 205: 手机 B向手机 A发送 WIFI连接请求。  Step 205: The mobile phone B sends a WIFI connection request to the mobile phone A.
该 WIFI建立请求中包含手机 B的 IP地址信息, 该 IP地址信息可 以采用上述的 IP基址加偏移地址的方式。  The WIFI setup request includes the IP address information of the mobile phone B, and the IP address information may adopt the foregoing IP base address plus an offset address.
步骤 206: 手机 A向手机 B发送 WIFI连接确认响应。  Step 206: The mobile phone A sends a WIFI connection confirmation response to the mobile phone B.
至此, 利用上述的 IP基址和 IP基址加偏移地址完成了手机 A和手 机 B的 WIFI连接建立过程, 下面开始文件传输过程。  So far, the WIFI connection establishment process of the mobile phone A and the mobile phone B is completed by using the above IP base address and the IP base address plus the offset address, and the file transfer process is started below.
步骤 207: 手机 B向手机 A发送包含文件发现列表中一个或多个文 件信息的文件传输请求。  Step 207: The mobile phone B sends a file transfer request including one or more file information in the file discovery list to the mobile phone A.
步骤 208: 手机 A判断手机 B的权限级别是否与文件传输请求中包 含的一个或多个文件匹配,如果是,执行步骤 212;否则,执行步骤 209。  Step 208: The mobile phone A determines whether the permission level of the mobile phone B matches one or more files included in the file transfer request. If yes, step 212 is performed; otherwise, step 209 is performed.
在手机 A中各文件可以都配置有权限级别要求,手机 B仅能够获取 其权限级别所对应的文件,如果不满足,则可以通过步骤 209至步骤 211 的权限跃迁过程实现。  In the mobile phone A, each file can be configured with a permission level requirement. The mobile phone B can only obtain the file corresponding to the permission level. If not, the mobile phone B can perform the permission transition process from step 209 to step 211.
举一个实例,假设手机 A中的文件对应的权限级别要求如表 1所示。 表 1  As an example, assume that the permission level requirements for files in phone A are as shown in Table 1. Table 1
Figure imgf000014_0001
4 限制级
Figure imgf000014_0001
4 restricted level
5 访客  5 visitors
6 访客  6 visitors
7 限制级 假设手机 A生成的文件发现列表中包含文件 2、 3、 5、 6 , 如果手机 B的身份是访客, 则手机 B从文件发现列表中选择文件 3、 5、 6, 则权 限级别匹配, 无需进行权限跃迁; 如果手机 B从文件发现列表中选择文 件 1、 3和 4, 则由于文件 1只有超级用户才能访问, 因此, 需要手机 B 进行权限跃迁, 即执行以下步骤。  7 Restricted level Assume that the file discovery list generated by mobile phone A contains files 2, 3, 5, and 6. If the identity of mobile phone B is a visitor, then mobile phone B selects files 3, 5, and 6 from the file discovery list, and the permission level matches. If the mobile phone B selects files 1, 3 and 4 from the file discovery list, since the file 1 can only be accessed by the super user, the mobile phone B is required to perform the permission transition, that is, the following steps are performed.
步骤 209: 手机 A向手机 B发送权限跃迁邀请。  Step 209: The mobile phone A sends a permission transition invitation to the mobile phone B.
步骤 210:手机 B向手机 A发送包含权限跃迁信息的权限跃迁请求。 该权限跃迁信息可以为与手机 A约定好的个人识别号码 ( PIN ) 、 账号或密码等信息。  Step 210: The mobile phone B sends a permission transition request containing the permission transition information to the mobile phone A. The permission transition information may be a personal identification number (PIN), an account number or a password that is agreed with the mobile phone A.
步骤 211 : 手机 A利用权限跃迁信息判断手机 B是否跃迁成功, 如 果成功, 则继续执行步骤 212; 否则, 结束流程。  Step 211: The mobile phone A uses the permission transition information to determine whether the mobile phone B has transitioned successfully. If successful, proceed to step 212; otherwise, the process ends.
如果手机 B的权限跃迁到与选择的一个或多个文件匹配, 则确定跃 迁成功。 另外, 如果跃迁不成功, 除了直接流程之外, 还可以继续执行 步骤 212, 但在步骤 213中, 手机 A仅向手机 B传输与手机 B的权限级 别相匹配的文件。  If the permissions of phone B transition to match one or more selected files, then the transition is determined to be successful. In addition, if the transition is unsuccessful, in addition to the direct flow, step 212 can be continued, but in step 213, the mobile phone A transmits only the file matching the permission level of the mobile phone B to the mobile phone B.
步骤 212: 手机 A向手机 B发送文件传输确认响应。  Step 212: The mobile phone A sends a file transmission confirmation response to the mobile phone B.
在此存在两种可能性: 其一、 手机 B的用户选择文件发现列表中某 个或者某些文件, 则可以在步骤 207发送的文件传输请求中携带选择的 文件信息, 这种方式是由手机 B主动从手机 A "拉取" 文件。 其二、 手机 A的用户选择传输文件发现列表中的某个或某些文件给 手机 B , 则上述步骤 207可以是手机 A向手机 B发送文件传输请求, 携 带选择的文件信息;步骤 212可以是手机 B向手机 A发送文件传输确认 响应, 这种方式是由手机 A主动推送文件给手机 B。 这种情况下, 则不 必执行步骤 208至步骤 211的权限跃迁过程。 There are two possibilities here: First, the user of the mobile phone B selects one or some files in the file discovery list, and may carry the selected file transmission request in step 207. File information, this way is the mobile phone B actively pulls the file from the mobile phone A. Second, the user of the mobile phone A selects to transfer one or some files in the file discovery list to the mobile phone B, and the above step 207 may be that the mobile phone A sends a file transmission request to the mobile phone B, and carries the selected file information; step 212 may be The mobile phone B sends a file transmission confirmation response to the mobile phone A. In this way, the mobile phone A actively pushes the file to the mobile phone B. In this case, it is not necessary to perform the permission transition process of steps 208 to 211.
步骤 213:手机 A向手机 B传输文件发现列表中的一个或多个文件。 在文件传输结束后, 断开手机 A和手机 B之间的 WIFI连接, 重新 回到 client模式。  Step 213: The mobile phone A transmits one or more files in the file discovery list to the mobile phone B. After the file transfer is finished, disconnect the WIFI connection between mobile phone A and mobile phone B, and return to the client mode.
在手机 A向手机 B传输文件的过程中, 手机 A和手机 B之间按照 WIFI连接参数中的心跳检测间隔互相进行心跳检测, 如果检测到 WIFI 连接断开, 则文件传输中断重新建立 WIFI连接, 或者终止文件传输。  During the process of transmitting the file to the mobile phone B, the mobile phone A and the mobile phone B perform heartbeat detection according to the heartbeat detection interval in the WIFI connection parameter. If the WIFI connection is detected to be disconnected, the file transmission interruption re-establishes the WIFI connection. Or terminate the file transfer.
下面通过实施例三和实施例四分别对设置在第一移动设备和第二移 动设备的装置结构进行详细描述。  The device structures provided in the first mobile device and the second mobile device will be described in detail below through Embodiment 3 and Embodiment 4, respectively.
实施例三、  Embodiment 3
图 3为本发明实施例三提供的设置在第一移动设备的装置结构示意 图, 如图 3所示, 该装置主要包括: NFC模块 301、 WIFI模块 302和文 件传输模块 303。  FIG. 3 is a schematic structural diagram of an apparatus for setting a first mobile device according to Embodiment 3 of the present invention. As shown in FIG. 3, the device mainly includes: an NFC module 301, a WIFI module 302, and a file transmission module 303.
NFC模块 301与另一移动设备 (即实施例一中的第二移动设备)在 NFC有效距离内时, 进行 NFC配对, 在 NFC配对过程中向另一移动设 备发送 WIFI连接参数和文件发现列表。  The NFC module 301 performs NFC pairing with another mobile device (i.e., the second mobile device in Embodiment 1) within the NFC effective distance, and transmits a WIFI connection parameter and a file discovery list to another mobile device during the NFC pairing process.
WIFI模块 302与另一移动设备利用 WIFI连接参数建立 WIFI连接。 文件传输模块 303利用 WIFI连接向另一移动设备发送文件发现列 表中的一个或多个文件。 The WIFI module 302 establishes a WIFI connection with another mobile device using WIFI connection parameters. File transfer module 303 sends a file discovery column to another mobile device using a WIFI connection One or more files in the table.
在此基础之上, 该装置还可以包括: 流程控制模块 305。  Based on this, the device may further include: a flow control module 305.
流程控制模块 305负责对该装置所在移动设备所处的模式进行控制, 具体地, 在该装置所在移动设备启动 NFC模块 301和 WIFI模块 302后 默认处于 client模式; 在受到用户触发后, 进入 master模式, 等待 NFC 配对。 通常处于 client模式时会主动向处于 NFC有效距离内的其他移动 设备发送配对请求, 而处于 master模式时等待处于 NFC有效距离内的 其他移动设备向其发送配对请求。  The flow control module 305 is responsible for controlling the mode in which the mobile device is located. In particular, after the mobile device where the device is located, the NFC module 301 and the WIFI module 302 are activated, the default is in the client mode; after being triggered by the user, the process is entered into the master mode. , waiting for NFC pairing. Usually in client mode, it will actively send pairing requests to other mobile devices that are within the NFC effective distance, while in master mode, other mobile devices that are within the NFC effective distance will send pairing requests to them.
为了更进一步保证移动设备间的安全性, 在配对过程中可以引入鉴 权过程, 此时, 该装置还可以包括: 文件管理模块 304和鉴权模块 306。  In order to further ensure the security between mobile devices, an authentication process may be introduced in the pairing process. In this case, the device may further include: a file management module 304 and an authentication module 306.
NFC模块 301接收另一移动设备发送的携带鉴权信息的配对请求, 将鉴权信息提供给鉴权模块 306, 受到鉴权模块 306的触发时, 向另一 移动设备发送 WIFI连接参数和文件发现列表。  The NFC module 301 receives the pairing request for carrying the authentication information sent by the other mobile device, and provides the authentication information to the authentication module 306. When triggered by the authentication module 306, the WIFI connection parameter and the file discovery are sent to another mobile device. List.
鉴权模块 306利用 NFC模块 301提供的鉴权信息进行鉴权,如果鉴 权通过, 则触发 NFC模块 301和文件管理模块 304。  The authentication module 306 authenticates using the authentication information provided by the NFC module 301, and if the authentication passes, triggers the NFC module 301 and the file management module 304.
文件管理模块 304, 用于受到触发时, 生成文件发现列表。具体地, 鉴权通过后可以触发文件管理模块 304进行文件发现操作, 发现具有共 享权限的文件, 并将这些具有共享权限的文件信息生成文件发现列表, 也可以将用户点选的具有共享权限的文件信息生成文件发现列表。  The file management module 304, when used to be triggered, generates a file discovery list. Specifically, after the authentication is passed, the file management module 304 may be triggered to perform a file discovery operation, discover files having sharing rights, and generate file discovery lists by using the file information with the sharing rights, or may share the user with the sharing rights. The file information generates a file discovery list.
在本发明实施例中可以预先在鉴权模块 306中配置鉴权机制, 以对 配对的其他移动设备进行身份鉴权, 例如可以通过配置白名单或者黑名 单的方式, 或者通过验证账号信息或密码信息的方式。  In the embodiment of the present invention, the authentication mechanism may be configured in the authentication module 306 to perform identity authentication on the paired mobile devices, for example, by configuring a whitelist or a blacklist, or by verifying the account information or password. The way information is.
另外, 在进行上述鉴权过程之后, 针对不同的鉴权身份, 可以生成 不同权限的文件发现列表。 例如, 可以预先配置权限等级, 在鉴权过程 完成后, 可以确定出手机 B的权限等级, 然后生成该权限等级的文件发 现列表。 In addition, after performing the above authentication process, it may be generated for different authentication identities. A list of file discoveries with different permissions. For example, the privilege level can be pre-configured. After the authentication process is completed, the privilege level of the mobile phone B can be determined, and then a file discovery list of the privilege level is generated.
在触发文件传输时, 可以由该装置所在移动设备主动将文件发现列 表中的一个或多个文件推送给另一个移动设备, 也可以由另一移动设备 从文件发现列表中拉取一个或多个文件, 此时, 该装置还包括: 传输控 制模块 309, 具体如下:  When the file transfer is triggered, one or more files in the file discovery list may be actively pushed to another mobile device by the mobile device where the device is located, or one or more devices may be pulled from the file discovery list by another mobile device. The file, at this time, the device further includes: a transmission control module 309, which is specifically as follows:
如果该装置所在移动设备的用户选择文件发现列表中的一个或多个 文件给另一移动设备, 则传输控制模块 309向另一移动设备发送包含一 个或多个文件信息的文件传输请求, 接收另一移动设备回复的文件传输 确认响应后,触发 WIFI模块 302利用 WIFI连接向另一移动设备发送一 个或多个文件。  If the user of the mobile device where the device is located selects one or more files in the file discovery list to another mobile device, the transmission control module 309 sends a file transmission request including one or more file information to another mobile device, and receives another file. After a file transmission confirmation response replied by the mobile device, the trigger WIFI module 302 transmits one or more files to another mobile device using the WIFI connection.
如果另一移动设备的用户选择从该装置所在移动设备拉取文件发现 列表中的一个或多个文件, 则传输控制模块 309接收另一移动设备发送 的包含一个或多个文件信息的文件传输请求, 向另一移动设备回复文件 传输确认响应后,触发 WIFI模块 302利用 WIFI连接向另一移动设备发 送一个或多个文件。  If the user of another mobile device selects to pull one or more files in the file discovery list from the mobile device where the device is located, the transmission control module 309 receives a file transfer request sent by another mobile device that includes one or more file information. After replying to the file transfer confirmation response to another mobile device, the trigger WIFI module 302 transmits one or more files to another mobile device using the WIFI connection.
该传输控制模块 309可以是采用红外、 WIFI等无线传输技术的模块, 可以就是 WIFI模块 302。  The transmission control module 309 can be a module that uses wireless transmission technologies such as infrared and WIFI, and can be the WIFI module 302.
该装置还包括: 权限跃迁模块 307, 用于在传输控制模块 309接收 到包含一个或多个文件信息的文件传输请求后, 判断另一移动设备的权 限级别是否与一个或多个文件匹配, 如果是, 触发传输控制模块 309向 另一移动设备回复文件传输确认响应; 否则, 向另一移动设备发送权限 跃迁邀请,接收另一移动设备发送的包含权限跃迁信息的权限跃迁请求, 利用权限跃迁信息判断另一移动设备是否跃迁成功, 如果是, 触发传输 控制模块 309向另一移动设备回复文件传输确认响应。 The device further includes: a permission transition module 307, configured to determine, after the transmission control module 309 receives the file transfer request including one or more file information, whether the permission level of the other mobile device matches one or more files, if Yes, the trigger transmission control module 309 replies to the other mobile device with a file transfer confirmation response; otherwise, sends the permission to another mobile device. The transition invitation receives a permission transition request including permission transition information sent by another mobile device, and uses the permission transition information to determine whether the other mobile device transitions successfully. If yes, the trigger transmission control module 309 returns a file transmission confirmation response to another mobile device. .
在该装置所在移动设备中各文件可以都配置有权限级别要求, 另一 移动设备仅能够获取其权限级别所对应的文件, 如果不满足, 则通过权 限跃迁过程实现。  Each file in the mobile device where the device is located may be configured with a privilege level requirement, and another mobile device can only obtain a file corresponding to its privilege level. If not, the privilege transition process is implemented.
另一移动设备在接收到权限跃迁邀请后, 会回复包含权限跃迁信息 的权限跃迁请求, 其中该权限跃迁信息可以为与该装置所在移动设备约 定好的 PIN、 账号或密码等信息。  After receiving the permission transition invitation, the other mobile device replies with a permission transition request including the permission transition information, wherein the permission transition information may be a PIN, an account number, or a password that is associated with the mobile device where the device is located.
上述的 WIFI连接参数包括: WIFI网络标识和 IP基址。 上述 IP基 址用于生成建立 WIFI连接时所使用的两端移动设备的 IP地址, 其中该 IP基址作为该装置所在移动设备的 IP地址, 另一移动设备的 IP地址可 以采用 IP地址加上偏移量的方式, 从而保证两端移动设备的 IP地址在 同一网段。  The above WIFI connection parameters include: WIFI network identifier and IP base address. The IP base address is used to generate an IP address of a mobile device at both ends used to establish a WIFI connection, where the IP base address is used as the IP address of the mobile device where the device is located, and the IP address of another mobile device may be an IP address plus The offset mode ensures that the IP addresses of mobile devices at both ends are on the same network segment.
除此之外, WIFI连接参数还可以包括: 心跳检测间隔。 此时, 该装 置还可以包括:  In addition, the WIFI connection parameters may also include: a heartbeat detection interval. At this time, the device may further include:
心跳检测模块 308在文件传输过程中, 与另一移动设备按照心跳检 测间隔进行心跳检测, 如果检测到 WIFI连接断开, 则文件传输中断并 触发 WIFI模块 302重新建立 WIFI连接, 或者终止文件传输。  The heartbeat detection module 308 performs heartbeat detection according to the heartbeat detection interval with another mobile device during file transmission. If the WIFI connection is detected to be disconnected, the file transmission is interrupted and the WIFI module 302 is triggered to re-establish the WIFI connection or terminate the file transmission.
在终止文件传输后, 流程控制模块 305控制该装置所在移动设备回 到 client模式。  After terminating the file transfer, the flow control module 305 controls the mobile device where the device is located to return to the client mode.
图 3所示装置的执行流程可以如图 4所示。  The execution flow of the device shown in Figure 3 can be as shown in Figure 4.
实施例四、 图 5为本发明实施例四提供的设置在第二移动设备的装置结构示意 图, 如图 5所示, 该装置主要包括: NFC模块 501、 WIFI模块 502和文 件传输模块 503。 Embodiment 4 FIG. 5 is a schematic structural diagram of an apparatus for setting a second mobile device according to Embodiment 4 of the present invention. As shown in FIG. 5, the device mainly includes: an NFC module 501, a WIFI module 502, and a file transmission module 503.
NFC模块 501与另一移动设备(实施例一中所述的第一移动设备) 在 NFC有效距离内时, 进行 NFC配对, 在 NFC配对过程中接收另一移 动设备发送的 WIFI连接参数和文件发现列表。  The NFC module 501 performs NFC pairing with another mobile device (the first mobile device described in Embodiment 1) within an NFC effective distance, and receives WIFI connection parameters and file discovery sent by another mobile device during the NFC pairing process. List.
WIFI模块 502与另一移动设备利用 WIFI连接参数建立 WIFI连接。 文件传输模块 503利用 WIFI连接接收另一移动设备发送的文件发 现列表中的一个或多个文件。  The WIFI module 502 establishes a WIFI connection with another mobile device using WIFI connection parameters. The file transfer module 503 utilizes a WIFI connection to receive one or more files in a file discovery list sent by another mobile device.
更进一步地, 该装置还可以包括: 流程控制模块 504。  Further, the apparatus may further include: a flow control module 504.
流程控制模块 504在该装置所在移动设备启动 NFC模块 501和 WIFI 模块 502后默认处于 client模式。 通常处于 client模式时会主动向处于 NFC有效距离内的其他移动设备发送配对请求,而处于 master模式时等 待处于 NFC有效距离内的其他移动设备向其发送配对请求。  The flow control module 504 is in the client mode by default after the mobile device where the device is located starts the NFC module 501 and the WIFI module 502. Usually in the client mode, the pairing request is actively sent to other mobile devices that are within the NFC effective distance, and other mobile devices waiting for the NFC effective distance in the master mode send a pairing request to them.
在 NFC配对过程中, NFC模块 501向另一移动设备发送携带鉴权信 息的配对请求, 接收另一移动设备发送的 WIFI连接参数和文件发现列 表。  During the NFC pairing process, the NFC module 501 sends a pairing request carrying authentication information to another mobile device, and receives a WIFI connection parameter and a file discovery list sent by another mobile device.
为了更进一步保证移动设备间的安全性, 在配对过程中可以引入鉴 权过程, 该鉴权过程在另一移动设备(即处于 master模式的移动设备) 中执行。  In order to further ensure security between mobile devices, an authentication process can be introduced during the pairing process, which is performed in another mobile device (i.e., a mobile device in master mode).
同样, 在触发文件传输时, 可以由另一移动设备主动向该装置所在 移动设备推送文件发现列表中的一个或多个文件, 也可以由该装置所在 设备从文件发现列表中拉取一个或多个文件, 此时, 该装置还包括: 传 输控制模块 507, 具体如下: Similarly, when the file transfer is triggered, one or more files in the file discovery list may be actively pushed by the other mobile device to the mobile device where the device is located, or one or more files may be pulled from the file discovery list by the device where the device is located. Documents, at this time, the device also includes: The transmission control module 507 is specifically as follows:
如果另一移动设备的用户选择文件发现列表中的一个或多个文件给 该装置所在的移动设备, 则传输控制模块 507接收另一移动设备发送的 包含一个或多个文件信息的文件传输请求, 向另一移动设备回复文件传 输确认响应后,触发 WIFI模块 502利用 WIFI连接接收另一移动设备发 送的一个或多个文件。  If the user of another mobile device selects one or more files in the file discovery list to the mobile device where the device is located, the transmission control module 507 receives a file transfer request sent by another mobile device that includes one or more file information, After replying to the file transfer confirmation response to another mobile device, the trigger WIFI module 502 receives one or more files sent by another mobile device using the WIFI connection.
如果该装置所在移动设备的用户选择从另一移动设备拉取文件发现 列表中的一个或多个文件, 则传输控制模块 507向另一移动设备发送包 含一个或多个文件信息的文件传输请求, 接收另一移动设备回复的文件 传输确认响应后,触发 WIFI模块 502利用 WIFI连接接收另一移动设备 发送的一个或多个文件。  If the user of the mobile device where the device is located chooses to pull one or more files in the file discovery list from another mobile device, the transmission control module 507 sends a file transfer request containing one or more file information to the other mobile device, After receiving the file transmission confirmation response replied by another mobile device, the trigger WIFI module 502 receives one or more files sent by another mobile device by using the WIFI connection.
该传输控制模块 507可以是采用红外、 WIFI等无线传输技术的模块, 可以就是 WIFI模块 502。  The transmission control module 507 can be a module that uses wireless transmission technologies such as infrared and WIFI, and can be the WIFI module 502.
如果是该装置所在移动设备的用户选择从另一移动设备拉取文件发 现列表中的一个或多个文件, 则可能会存在该装置所在移动设备的权限 级别不满足所拉取文件的权限级别要求, 此时, 另一移动设备会向该装 置所在移动设备发送权限跃迁邀请。 此时, 该装置还包括: 权限跃迁模 块 505 , 用于接收另一移动设备发送的权限跃迁邀请后, 向另一移动设 备发送包含权限跃迁信息的权限跃迁请求。  If the user of the mobile device where the device is located chooses to pull one or more files in the file discovery list from another mobile device, there may be a permission level of the mobile device where the device is located does not meet the permission level requirement of the pulled file. At this point, another mobile device sends a permission transition invitation to the mobile device where the device is located. At this time, the device further includes: a permission transition module 505, configured to: after receiving the permission transition invitation sent by another mobile device, send a permission transition request including the permission transition information to another mobile device.
上述 WIFI连接参数包括: WIFI网络标识和 IP基址。 除此之外还可 以包括: 心跳检测间隔。 此时, 该装置还可以包括: 心跳检测模块 506。  The above WIFI connection parameters include: WIFI network identifier and IP base address. In addition to this, it can include: Heartbeat detection interval. At this time, the device may further include: a heartbeat detection module 506.
心跳检测模块 506在文件传输过程中, 与另一移动设备按照心跳检 测间隔进行心跳检测, 如果检测到 WIFI连接断开, 则文件传输中断并 触发 WIFI模块 502重新建立 WIFI连接, 或者终止文件传输。 The heartbeat detection module 506 performs heartbeat detection according to the heartbeat detection interval with another mobile device during file transmission. If the WIFI connection is detected to be disconnected, the file transmission is interrupted. The WIFI module 502 is triggered to re-establish the WIFI connection, or terminate the file transfer.
图 5所示装置的执行流程可以如图 6所示。  The execution flow of the device shown in Figure 5 can be as shown in Figure 6.
通常一个移动设备可能作为文件传输的发起者, 也可能作为文件传 输的接收者, 因此, 一个移动设备可以同时具有图 3和图 5中所示的结 构,也就是说,图 3和图 5所示的装置通常可以设置在一个移动设备中。  Usually a mobile device may act as the initiator of the file transfer or as the recipient of the file transfer. Therefore, a mobile device can have the structure shown in Figures 3 and 5 at the same time, that is, Figure 3 and Figure 5 The illustrated device can typically be placed in a mobile device.
由以上描述可以看出, 本发明实施例提供的方法和装置具备以下优 点:  It can be seen from the above description that the method and apparatus provided by the embodiments of the present invention have the following advantages:
1 ) 本发明采用了 NFC技术实现了两移动终端的配对, 整个配对过 程无需用户输入任何配对码, 相比较蓝牙配对更加筒便。  1) The invention adopts the NFC technology to realize the pairing of two mobile terminals, and the entire pairing process does not require the user to input any pairing code, which is more convenient than the Bluetooth pairing.
2 )在 NFC配对完成后建立 WIFI连接并基于 WIFI连接进行文件传 输, WIFI连接的有效距离通常在 100米左右, 且连接稳定, 且传输速度 能够达到 5~7MB/s, 因此相比较现有的蓝牙传输增大了有效距离、 提高 了连接的稳定性和数据传输速度。  2) After the NFC pairing is completed, the WIFI connection is established and the file transmission is performed based on the WIFI connection. The effective distance of the WIFI connection is usually about 100 meters, and the connection is stable, and the transmission speed can reach 5-7MB/s, so compared with the existing ones. Bluetooth transmission increases the effective distance, improves connection stability and data transfer speed.
3 ) 本端移动设备在 NFC配对过程中将生成的文件发现列表同时传 输给对端移动设备, 使得对端移动设备能够获知文件发现信息, 从而不 仅能够实现在本端移动设备主动推送文件发现列表中的一个或多个文件 给对端移动设备, 也可以实现对端移动设备从本端移动设备拉取文件发 现列表中的一个或多个文件,实现更加灵活,满足更加多样的用户需求。  3) The local mobile device simultaneously transmits the generated file discovery list to the peer mobile device in the NFC pairing process, so that the peer mobile device can learn the file discovery information, thereby not only realizing the active push file discovery list on the local mobile device. One or more files in the file are sent to the peer mobile device, and the peer mobile device can also pull one or more files in the file discovery list from the local mobile device, so as to achieve more flexibility and meet more diverse user requirements.
4 )WIFI连接支持诸如有线等效保密( WEP )、无线保护访问( WPA ) 等多种文件加密方式, 从而提供卓越的无线安全传输性能。  4) WIFI connection supports multiple file encryption methods such as Wired Equivalent Privacy (WEP) and Wireless Protected Access (WPA) to provide superior wireless security transmission performance.
以上所述仅为本发明的较佳实施例而已, 并不用以限制本发明, 凡 在本发明的精神和原则之内, 所做的任何修改、 等同替换、 改进等, 均 应包含在本发明保护的范围之内。  The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalents, improvements, etc., which are made within the spirit and principles of the present invention, should be included in the present invention. Within the scope of protection.

Claims

权 利 要 求 书 Claim
1、 一种用于移动设备点对点数据传输的方法, 其特征在于, 该方法 包括:  A method for point-to-point data transmission of a mobile device, the method comprising:
S 1、 第一移动设备和第二移动设备在近场通信 NFC有效距离内时, 进行 NFC配对, 在所述 NFC配对过程中所述第一移动设备向所述第二 移动设备发送无线宽带 WIFI连接参数和文件发现列表;  S1. The NFC pairing is performed when the first mobile device and the second mobile device are within the NFC effective distance of the near field communication, and the first mobile device sends the wireless broadband WIFI to the second mobile device during the NFC pairing process. Connection parameters and file discovery list;
52、 所述第一移动设备和第二移动设备利用所述 WIFI连接参数建 立 WIFI连接;  52. The first mobile device and the second mobile device establish a WIFI connection by using the WIFI connection parameter.
53、 所述第一移动设备利用所述 WIFI连接向所述第二移动设备发 送所述文件发现列表中的一个或多个文件。  53. The first mobile device sends, by using the WIFI connection, one or more files in the file discovery list to the second mobile device.
2、 根据权利要求 1所述的方法, 其特征在于, 在所述步骤 S1之前 还包括:  2. The method according to claim 1, wherein before the step S1, the method further comprises:
所述第一移动设备和所述第二移动设备启动 NFC功能和 WIFI功能 后默认处于客户端 client模式;  After the first mobile device and the second mobile device start the NFC function and the WIFI function, the default is in the client client mode;
所述第一移动设备受到用户触发后, 进入主用 master模式, 等待 NFC配对。  After the first mobile device is triggered by the user, it enters the active master mode and waits for NFC pairing.
3、 根据权利要求 1所述的方法, 其特征在于, 所述步骤 S1具体包 括:  The method according to claim 1, wherein the step S1 specifically includes:
511、 所述第二移动设备向在 NFC有效距离内的所述第一移动设备 发送携带鉴权信息的配对请求;  511. The second mobile device sends a pairing request carrying the authentication information to the first mobile device that is within the NFC effective distance.
512、所述第一移动设备利用所述鉴权信息进行鉴权,如果鉴权通过, 执行步骤 S13 ;  512. The first mobile device performs authentication by using the authentication information. If the authentication is passed, step S13 is performed;
S13; 所述第一移动设备生成文件发现列表, 并向所述第二移动设备 发送 WIFI连接参数和文件发现列表。 S13: the first mobile device generates a file discovery list, and sends the file to the second mobile device Send WIFI connection parameters and file discovery list.
4、 根据权利要求 1所述的方法, 其特征在于, 所述步骤 S3具体包 括:  The method according to claim 1, wherein the step S3 specifically includes:
如果所述第一移动设备的用户选择所述文件发现列表中的一个或多 个文件给所述第二移动设备, 则所述第一移动设备向所述第二移动设备 发送包含所述一个或多个文件信息的文件传输请求, 所述第二移动设备 向所述第一移动设备发送文件传输确认响应, 所述第一移动设备利用所 述 WIFI连接向所述第二移动设备发送所述一个或多个文件; 或者, 如果所述第二移动设备的用户选择从所述第一移动设备拉取所述文 件发现列表中的一个或多个文件, 则所述第二移动设备向所述第一移动 设备发送包含所述一个或多个文件信息的文件传输请求, 所述第一移动 设备向所述第二移动设备发送文件传输确认响应, 所述第一移动设备利 用所述 WIFI连接向所述第二移动设备发送所述一个或多个文件。  And if the user of the first mobile device selects one or more files in the file discovery list to the second mobile device, the first mobile device sends the one or the mobile device to the second mobile device a file transfer request of the plurality of file information, the second mobile device transmitting a file transfer confirmation response to the first mobile device, the first mobile device transmitting the one to the second mobile device by using the WIFI connection Or a plurality of files; or, if the user of the second mobile device selects to pull one or more files in the file discovery list from the first mobile device, the second mobile device Transmitting, by the mobile device, a file transfer request including the one or more file information, the first mobile device sending a file transfer confirmation response to the second mobile device, where the first mobile device uses the WIFI connection The second mobile device sends the one or more files.
5、 根据权利要求 4所述的方法, 其特征在于, 如果所述第二移动设 备的用户选择从所述第一移动设备拉取所述文件发现列表中的一个或多 个文件, 则所述第一移动设备接收到包含所述一个或多个文件信息的文 件传输请求后, 判断所述第二移动设备的权限级别是否与所述一个或多 个文件匹配, 如果是, 执行向所述第二移动设备发送文件传输确认响应 的步骤; 否则, 向所述第二移动设备发送权限跃迁邀请, 所述第二移动 设备向所述第一移动设备发送包含权限跃迁信息的权限跃迁请求, 所述 第一移动设备利用所述权限跃迁信息判断所述第二移动设备是否跃迁成 功, 如果是, 执行向所述第二移动设备发送文件传输确认响应的步骤。  5. The method according to claim 4, wherein if the user of the second mobile device selects to pull one or more files in the file discovery list from the first mobile device, After receiving the file transmission request that includes the one or more file information, determining, by the first mobile device, whether the permission level of the second mobile device matches the one or more files, and if yes, performing the a step of the mobile device transmitting a file transmission confirmation response; otherwise, transmitting a permission transition request to the second mobile device, the second mobile device transmitting a permission transition request including the permission transition information to the first mobile device, The first mobile device uses the permission transition information to determine whether the second mobile device transitions successfully, and if so, performs the step of transmitting a file transfer confirmation response to the second mobile device.
6、 根据权利要求 1所述的方法, 其特征在于, 所述 WIFI连接参数 包括: WIFI网络标识和 IP基址。 6. The method according to claim 1, wherein the WIFI connection parameter Including: WIFI network identification and IP base address.
7、 根据权利要求 6所述的方法, 其特征在于, 所述 WIFI连接参数 还包括: 心跳检测间隔;  The method according to claim 6, wherein the WIFI connection parameter further includes: a heartbeat detection interval;
在所述文件传输过程中, 所述第一移动设备和所述第二移动设备按 照所述心跳检测间隔相互进行心跳检测, 如果检测到所述 WIFI连接断 开, 则所述文件传输中断并重新建立 WIFI连接, 或者终止文件传输。  During the file transmission process, the first mobile device and the second mobile device perform heartbeat detection according to the heartbeat detection interval, and if the WIFI connection is detected to be disconnected, the file transmission is interrupted and restarted. Establish a WIFI connection, or terminate file transfer.
8、 一种用于移动设备点对点数据传输的装置, 其特征在于, 该装置 包括:  8. A device for point-to-point data transmission of a mobile device, the device comprising:
NFC模块, 用于与另一移动设备在 NFC有效距离内时, 进行 NFC 配对, 在所述 NFC配对过程中向所述另一移动设备发送无线宽带 WIFI 连接参数和文件发现列表;  An NFC module, configured to perform NFC pairing with another mobile device within an NFC effective distance, and send a wireless broadband WIFI connection parameter and a file discovery list to the another mobile device during the NFC pairing process;
WIFI模块, 用于与所述另一移动设备利用所述 WIFI连接参数建立 WIFI连接;  a WIFI module, configured to establish a WIFI connection with the another mobile device by using the WIFI connection parameter;
文件传输模块, 用于利用所述 WIFI连接向所述另一移动设备发送 所述文件发现列表中的一个或多个文件。  And a file transmission module, configured to send, by using the WIFI connection, one or more files in the file discovery list to the another mobile device.
9、 根据权利要求 8所述的装置, 其特征在于, 该装置还包括: 流程控制模块,用于在该装置所在移动设备启动所述 NFC模块和所 述 WIFI模块后默认处于客户端 client模式; 受到用户触发后, 进入主用 master模式, 等待 NFC配对。  The device according to claim 8, wherein the device further comprises: a flow control module, configured to default to a client client mode after the mobile device where the device is located starts the NFC module and the WIFI module; After being triggered by the user, enter the master master mode and wait for NFC pairing.
10、 根据权利要求 8所述的装置, 其特征在于, 该装置还包括: 鉴 权模块和文件管理模块;  The device according to claim 8, wherein the device further comprises: an authentication module and a file management module;
所述 NFC模块接收所述另一移动设备发送的携带鉴权信息的配对 请求, 将所述鉴权信息提供给所述鉴权模块, 受到所述鉴权模块的触发 时, 向所述另一移动设备发送 WIFI连接参数和文件发现列表; Receiving, by the NFC module, a pairing request for carrying the authentication information sent by the another mobile device, and providing the authentication information to the authentication module, triggered by the authentication module Sending a WIFI connection parameter and a file discovery list to the another mobile device;
所述鉴权模块, 用于利用所述鉴权信息进行鉴权, 如果鉴权通过, 则触发所述 NFC模块和所述文件管理模块;  The authentication module is configured to perform authentication by using the authentication information, and if the authentication is passed, triggering the NFC module and the file management module;
所述文件管理模块, 用于受到触发时, 生成文件发现列表, 并提供 给所述 NFC模块。  And the file management module is configured to generate a file discovery list and provide the NFC module to the NFC module.
11、 根据权利要求 8所述的装置, 其特征在于, 该装置还包括: 传 输控制模块;  11. The device according to claim 8, wherein the device further comprises: a transmission control module;
如果该装置所在移动设备的用户选择所述文件发现列表中的一个或 多个文件给所述另一移动设备, 则所述传输控制模块向所述另一移动设 备发送包含所述一个或多个文件信息的文件传输请求, 接收所述另一移 动设备回复的文件传输确认响应后, 触发所述 WIFI模块利用所述 WIFI 连接向所述另一移动设备发送所述一个或多个文件; 或者,  And if the user of the mobile device where the device is located selects one or more files in the file discovery list to the another mobile device, the transmission control module sends the one or more to the another mobile device a file transfer request of the file information, after receiving the file transfer confirmation response replied by the another mobile device, triggering the WIFI module to send the one or more files to the another mobile device by using the WIFI connection; or
如果所述另一移动设备的用户选择从该装置所在移动设备拉取所述 文件发现列表中的一个或多个文件, 则所述传输控制模块接收所述另一 移动设备发送的包含所述一个或多个文件信息的文件传输请求, 向所述 另一移动设备回复文件传输确认响应后, 触发所述 WIFI模块利用所述 WIFI连接向所述另一移动设备发送所述一个或多个文件。  If the user of the other mobile device selects to pull one or more files in the file discovery list from the mobile device where the device is located, the transmission control module receives the one of the ones sent by the other mobile device And the file transfer request of the plurality of file information, after replying the file transfer confirmation response to the another mobile device, triggering the WIFI module to send the one or more files to the another mobile device by using the WIFI connection.
12、 根据权利要求 11所述的装置, 其特征在于, 该装置还包括: 权 限跃迁模块, 用于在所述传输控制模块接收到包含所述一个或多个文件 信息的文件传输请求后, 判断所述另一移动设备的权限级别是否与所述 一个或多个文件匹配, 如果是, 触发所述传输控制模块向所述另一移动 设备回复文件传输确认响应; 否则, 向所述另一移动设备发送权限跃迁 邀请,接收所述另一移动设备发送的包含权限跃迁信息的权限跃迁请求, 利用所述权限跃迁信息判断所述另一移动设备是否跃迁成功, 如果是, 触发所述传输控制模块向所述另一移动设备回复文件传输确认响应。 The device according to claim 11, wherein the device further comprises: a permission transition module, configured to: after the transmission control module receives the file transmission request including the one or more file information, Whether the permission level of the another mobile device matches the one or more files, and if so, triggering the transmission control module to reply the file transmission confirmation response to the another mobile device; otherwise, moving to the other mobile The device sends a permission transition invitation, and receives a permission transition request that includes the permission transition information sent by the another mobile device, Determining, by the permission transition information, whether the another mobile device is successfully transitioned, and if so, triggering the transmission control module to reply the file transfer confirmation response to the another mobile device.
13、 根据权利要求 8所述的装置, 其特征在于, 所述 WIFI连接参 数包括: WIFI网络标识和 IP基址。  The device according to claim 8, wherein the WIFI connection parameter comprises: a WIFI network identifier and an IP base address.
14、 根据权利要求 13所述的装置, 其特征在于, 所述 WIFI连接参 数还包括: 心跳检测间隔; 该装置还包括:  The device according to claim 13, wherein the WIFI connection parameter further comprises: a heartbeat detection interval; the device further includes:
心跳检测模块, 用于在所述文件传输过程中, 与所述另一移动设备 按照所述心跳检测间隔进行心跳检测,如果检测到所述 WIFI连接断开, 则所述文件传输中断并触发所述 WIFI模块重新建立 WIFI连接,或者终 止文件传输。  a heartbeat detection module, configured to perform heartbeat detection according to the heartbeat detection interval with the another mobile device during the file transmission process, and if the WIFI connection is detected to be disconnected, the file transmission is interrupted and triggered The WIFI module re-establishes the WIFI connection or terminates the file transfer.
15、 一种用于移动设备点对点数据传输的装置, 其特征在于, 该装 置包括:  15. A device for point-to-point data transmission of a mobile device, the device comprising:
NFC模块, 用于与另一移动设备在 NFC有效距离内时, 进行 NFC 配对, 在所述 NFC配对过程中接收所述另一移动设备发送的无线宽带 WIFI连接参数和文件发现列表;  An NFC module, configured to perform NFC pairing with another mobile device within an NFC effective distance, and receive a wireless broadband WIFI connection parameter and a file discovery list sent by the another mobile device during the NFC pairing process;
WIFI模块, 用于与所述另一移动设备利用所述 WIFI连接参数建立 WIFI连接;  a WIFI module, configured to establish a WIFI connection with the another mobile device by using the WIFI connection parameter;
文件传输模块, 用于利用所述 WIFI连接接收所述另一移动设备发 送的所述文件发现列表中的一个或多个文件。  And a file transmission module, configured to receive, by using the WIFI connection, one or more files in the file discovery list sent by the another mobile device.
16、 根据权利要求 15所述的装置, 其特征在于, 该装置还包括: 流程控制模块,用于在该装置所在移动设备启动所述 NFC模块和所 述 WIFI模块后默认处于客户端 client模式。  The device according to claim 15, wherein the device further comprises: a flow control module, configured to default to a client client mode after the mobile device where the device is located starts the NFC module and the WIFI module.
17、 根据权利要求 15所述的装置, 其特征在于, 所述 NFC模块向 所述另一移动设备发送携带鉴权信息的配对请求, 接收所述另一移动设 备发送的 WIFI连接参数和文件发现列表。 17. The apparatus according to claim 15, wherein the NFC module is oriented The another mobile device sends a pairing request carrying the authentication information, and receives a WIFI connection parameter and a file discovery list sent by the another mobile device.
18、 根据权利要求 15所述的装置, 其特征在于, 该装置还包括: 传 输控制模块;  18. The apparatus according to claim 15, wherein the apparatus further comprises: a transmission control module;
如果所述另一移动设备的用户选择所述文件发现列表中的一个或多 个文件给该装置所在的移动设备, 则所述传输控制模块接收所述另一移 动设备发送的包含所述一个或多个文件信息的文件传输请求, 向所述另 一移动设备回复文件传输确认响应后, 触发所述 WIFI模块利用所述 WIFI连接接收所述另一移动设备发送的所述一个或多个文件; 或者, 如果该装置所在移动设备的用户选择从所述另一移动设备拉取所述 文件发现列表中的一个或多个文件, 则所述传输控制模块向所述另一移 动设备发送包含所述一个或多个文件信息的文件传输请求, 接收所述另 一移动设备回复的文件传输确认响应后, 触发所述 WIFI模块利用所述 WIFI连接接收所述另一移动设备发送的所述一个或多个文件。  And if the user of the another mobile device selects one or more files in the file discovery list to the mobile device where the device is located, the transmission control module receives the one or the transmission sent by the another mobile device a file transfer request of the plurality of file information, after replying the file transfer confirmation response to the another mobile device, triggering the WIFI module to receive the one or more files sent by the another mobile device by using the WIFI connection; Or, if the user of the mobile device where the device is located chooses to pull one or more files in the file discovery list from the another mobile device, the transmission control module sends the content to the another mobile device a file transfer request of one or more file information, after receiving a file transfer confirmation response replied by the another mobile device, triggering the WIFI module to receive the one or more sent by the another mobile device by using the WIFI connection Documents.
19、 根据权利要求 18所述的装置, 其特征在于, 该装置还包括: 权 限跃迁模块, 用于接收所述另一移动设备发送的权限跃迁邀请后, 向所 述另一移动设备发送包含权限跃迁信息的权限跃迁请求。  The device according to claim 18, further comprising: a permission transition module, configured to: after receiving the permission transition invitation sent by the another mobile device, send the permission to the another mobile device The permission transition request for the transition information.
20、 根据权利要求 15所述的装置, 其特征在于, 所述 WIFI连接参 数包括: WIFI网络标识和 IP基址。  The device according to claim 15, wherein the WIFI connection parameter comprises: a WIFI network identifier and an IP base address.
21、 根据权利要求 20所述的装置, 其特征在于, 所述 WIFI连接参 数还包括: 心跳检测间隔; 该装置还包括:  The device according to claim 20, wherein the WIFI connection parameter further comprises: a heartbeat detection interval; the device further comprises:
心跳检测模块, 用于在所述文件传输过程中, 与所述另一移动设备 按照所述心跳检测间隔进行心跳检测,如果检测到所述 WIFI连接断开, 则所述文件传输中断并触发所述 WIFI模块重新建立 WIFI连接,或者终 止文件传输。 a heartbeat detection module, configured to perform heartbeat detection according to the heartbeat detection interval with the another mobile device during the file transmission process, and if the WIFI connection is detected to be disconnected, The file transfer is interrupted and the WIFI module is triggered to re-establish a WIFI connection or terminate the file transfer.
PCT/CN2012/076043 2011-09-07 2012-05-25 Method and apparatus for mobile device point-to-point data transmission WO2013033999A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110264441.9A CN102315864B (en) 2011-09-07 2011-09-07 For the method and apparatus of mobile device Point-to-Point Data Transmission
CN201110264441.9 2011-09-07

Publications (1)

Publication Number Publication Date
WO2013033999A1 true WO2013033999A1 (en) 2013-03-14

Family

ID=45428722

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/076043 WO2013033999A1 (en) 2011-09-07 2012-05-25 Method and apparatus for mobile device point-to-point data transmission

Country Status (2)

Country Link
CN (1) CN102315864B (en)
WO (1) WO2013033999A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3007095A1 (en) * 2014-10-09 2016-04-13 Honeywell International Inc. System and method of pairing wireless sensors with an access point control panel
WO2019047208A1 (en) * 2017-09-11 2019-03-14 深圳传音通讯有限公司 File transmission method and system
US20200336877A1 (en) * 2013-11-29 2020-10-22 Huawei Device Co., Ltd. Method for sharing application between terminals, and terminal
US10966143B2 (en) 2017-03-21 2021-03-30 Ademco Inc. Systems and methods for detecting and avoiding radio interference in a wireless sensor network
US11004319B2 (en) * 2019-07-16 2021-05-11 Sensormatic Electronics, LLC Security camera systems and methods
US11265725B2 (en) 2019-02-15 2022-03-01 Ademco Inc. Systems and methods for allocating wireless communication channels

Families Citing this family (65)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246490B (en) * 2012-02-14 2018-08-10 联想(北京)有限公司 Data interactive method, device and the palm tablet computer of palm tablet computer
CN102315864B (en) * 2011-09-07 2015-11-25 百度在线网络技术(北京)有限公司 For the method and apparatus of mobile device Point-to-Point Data Transmission
WO2013097346A1 (en) * 2011-12-27 2013-07-04 中兴通讯股份有限公司 Method, terminal, and system for self-service acquisition of media resource
CN103220311A (en) * 2012-01-20 2013-07-24 华为终端有限公司 Information sending method, device and system
JP2013157736A (en) * 2012-01-27 2013-08-15 Canon Inc Communication device, and control method and program therefor
CN103249085A (en) * 2012-02-07 2013-08-14 中兴通讯股份有限公司 WiFi data transmission method and terminal
CN103378879A (en) * 2012-04-26 2013-10-30 蓝云科技股份有限公司 Wireless communication system
CN102710612B (en) * 2012-05-11 2016-06-29 张伟 Realize method and the device of interactive communication application in many ways
CN102711110A (en) * 2012-05-24 2012-10-03 中兴通讯股份有限公司 Wi-Fi (wireless fidelity) network management method and wireless router
CN103457643A (en) * 2012-05-29 2013-12-18 宏碁股份有限公司 System and method for sharing files of near-field communication devices
CN103517448B (en) * 2012-07-16 2016-12-21 Tcl集团股份有限公司 A kind of method for upgrading software based on WiFi Direct and system
JP5954024B2 (en) * 2012-07-27 2016-07-20 ブラザー工業株式会社 Communication device
CN203278811U (en) 2012-08-16 2013-11-06 北京播思软件技术有限公司 Mobile terminal using NFC to transfer WIFI hotspot secret key or certificate
CN102883315A (en) * 2012-08-28 2013-01-16 中兴通讯股份有限公司 Wireless fidelity (WiFi) authentication method and system, and terminal
CN102833345B (en) * 2012-09-05 2016-12-07 中兴通讯股份有限公司 A kind of equipment room shares the method for content, Apparatus and system
CN103684546B (en) * 2012-09-05 2017-10-13 努比亚技术有限公司 A kind of method and system of wireless user terminal pairing
CN103685718A (en) * 2012-09-14 2014-03-26 邻动网络科技有限公司 Method for conveying file from first mobile electronic device to second mobile electronic device
CN103687052A (en) * 2012-09-17 2014-03-26 联想(北京)有限公司 Data transmission method and electronic equipment
CN102843687B (en) * 2012-09-18 2016-01-27 惠州Tcl移动通信有限公司 The method and system of the portable focus secure accessing of smart mobile phone
CN103781187B (en) * 2012-10-19 2018-05-11 华为终端(东莞)有限公司 A kind of method and terminal for controlling file transmission
US9917881B2 (en) * 2012-10-22 2018-03-13 Samsung Electronics Co., Ltd. Apparatus, system, and method for transferring data across mobile terminals paired using near field communication (NFC)
KR20140052690A (en) * 2012-10-25 2014-05-07 삼성전자주식회사 Electronic apparatus and control method of system
CN104956761B (en) * 2012-10-29 2018-08-10 Lg电子株式会社 Use the direct-connected method of servicing of the WI-FI of NFC and its equipment
CN103796203A (en) * 2012-11-02 2014-05-14 鸿富锦精密工业(武汉)有限公司 Wi-Fi service and NFC mechanism application system and method
ITTO20121003A1 (en) * 2012-11-19 2014-05-20 Istituto Superiore Mario Boella Sulle Tecnologie APPARATUS FOR SHARING INFORMATION CONTENT THROUGH WIRELESS CONNECTION, AND ITS METHOD
CN103036950B (en) * 2012-11-29 2016-08-10 北京购阿购技术服务有限公司 Commercial information system
CN107360340A (en) * 2012-12-27 2017-11-17 松下电器产业株式会社 Electronic equipment and recording medium
JP6152947B2 (en) * 2012-12-27 2017-06-28 パナソニックIpマネジメント株式会社 Electronic devices that can communicate with other devices
CN103929720A (en) * 2013-01-16 2014-07-16 腾讯科技(深圳)有限公司 Method and system for information push and information sending end
CN103945565B (en) * 2013-01-18 2019-01-11 腾讯科技(深圳)有限公司 The method and apparatus for obtaining offline map
CN103987038A (en) * 2013-02-07 2014-08-13 深圳市快播科技有限公司 Radio communication method and system
CN103209009B (en) * 2013-02-28 2015-04-01 山东大学 Server wireless input device adopting near field communication (NFC) matching and working method thereof
US9537535B2 (en) 2013-03-29 2017-01-03 Intel Corporation Multi-radio wireless flash drive using NFC
CN103220822B (en) * 2013-04-08 2016-03-02 小米科技有限责任公司 Data transmission method, device and mobile terminal
CN103220351A (en) * 2013-04-15 2013-07-24 广东欧珀移动通信有限公司 Mobile terminal, file transmission method and system thereof and network system
CN103327644B (en) * 2013-05-24 2016-03-30 华为技术有限公司 A kind of method and apparatus of wireless connections
CN103281759A (en) * 2013-05-28 2013-09-04 北京推博信息技术有限公司 WIFI (wireless fidelity) network access method and device, electronic equipment and communication system
CN103402247A (en) * 2013-08-22 2013-11-20 深圳市金立通信设备有限公司 Terminal data transmission method and terminal
CN104424448B (en) * 2013-08-30 2018-02-27 联想(北京)有限公司 A kind of information processing method and electronic equipment
SG2013076898A (en) * 2013-10-16 2015-05-28 Certis Cisco Security Pte Ltd Method and system for controlling access to wireless apparatuses
CN103595775B (en) 2013-11-04 2018-01-19 惠州Tcl移动通信有限公司 The sharing method and system of media file
US9912415B2 (en) * 2013-11-12 2018-03-06 Qualcomm Incorporated Fast service discovery and pairing using ultrasonic communication
CN103780287A (en) * 2013-12-31 2014-05-07 苏州佳世达电通有限公司 Action device pairing method
CA2841371A1 (en) * 2014-01-31 2015-07-31 Usquare Soft Inc. Devices and methods for portable processing and application execution
CN103987040A (en) * 2014-05-07 2014-08-13 华晶科技股份有限公司 Bluetooth-assisting online connection establishment method and wireless access point device
CN105101113B (en) * 2014-05-15 2020-08-04 南京中兴软件有限责任公司 Information push management method and device
TWI510936B (en) * 2014-05-28 2015-12-01 Acer Inc Electronic device and data copy method between electronic devices
CN105228261B (en) * 2014-06-13 2019-11-26 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN104079645A (en) * 2014-06-27 2014-10-01 华为技术有限公司 Information sharing method and device
CN105323223B (en) * 2014-07-18 2018-09-21 中国电信股份有限公司 The method and system that mobile terminal passes through point-to-point mode transmission process transaction data
CN106162820A (en) * 2015-04-23 2016-11-23 北京数码视讯科技股份有限公司 A kind of method and device of terminal room transmission data
CN105407450A (en) * 2015-10-21 2016-03-16 珠海奔图电子有限公司 Intelligent equipment, electronic device, and network connection method based on near-field communication
JP6183445B2 (en) * 2015-12-17 2017-08-23 ブラザー工業株式会社 Communication device
CN107196983A (en) * 2016-03-15 2017-09-22 阿里巴巴集团控股有限公司 A kind of resource distribution method and device
CN105763229A (en) * 2016-04-28 2016-07-13 努比亚技术有限公司 Mobile terminal external equipment and file transmission method
CN105871936B (en) * 2016-06-23 2019-03-26 北京金山安全软件有限公司 File transmission method and device and electronic equipment
CN106790443A (en) * 2016-12-06 2017-05-31 厦门中控生物识别信息技术有限公司 The transmission method and device of a kind of attendance data
CN106686704B (en) * 2016-12-07 2020-03-03 Oppo广东移动通信有限公司 Terminal monitoring method and mobile terminal
CN108924807A (en) * 2016-12-27 2018-11-30 程桂平 A method of WIFI password is transmitted by NFC connection
CN106792485A (en) * 2017-02-06 2017-05-31 努比亚技术有限公司 A kind of information transferring method and mobile terminal
CN107342815B (en) * 2017-08-21 2023-07-25 重庆思柏高科技有限公司 Pairing system and method for visible light communication equipment
CN108092998A (en) * 2018-02-05 2018-05-29 广东司法警官职业学院 A kind of family WIFI cipher safe protecting methods and system
CN111448825B (en) 2018-06-13 2021-06-15 华为技术有限公司 Transmission control method and equipment
CN116033596A (en) * 2018-07-18 2023-04-28 北京小米松果电子有限公司 Point-to-point communication method and device, storage medium and electronic equipment
CN110312076B (en) * 2019-07-05 2021-11-16 桂林智神信息技术股份有限公司 Method and device for establishing wireless connection between holder and photographic equipment and holder

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202977A (en) * 2006-12-14 2008-06-18 英华达(上海)电子有限公司 Method and terminal for implementation of information sharing in mobile communication
WO2009058494A1 (en) * 2007-10-31 2009-05-07 Motorola, Inc. Negotiation of a short range wireless communication parameters using configuration data received through rfid
CN101491066A (en) * 2006-07-10 2009-07-22 索尼爱立信移动通讯有限公司 Method and system for data transfer from a hand held device
CN102171996A (en) * 2008-09-30 2011-08-31 苹果公司 System and method for simplified resource sharing
CN102315864A (en) * 2011-09-07 2012-01-11 百度在线网络技术(北京)有限公司 Method of point-to-point data transmission for mobile device and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101491066A (en) * 2006-07-10 2009-07-22 索尼爱立信移动通讯有限公司 Method and system for data transfer from a hand held device
CN101202977A (en) * 2006-12-14 2008-06-18 英华达(上海)电子有限公司 Method and terminal for implementation of information sharing in mobile communication
WO2009058494A1 (en) * 2007-10-31 2009-05-07 Motorola, Inc. Negotiation of a short range wireless communication parameters using configuration data received through rfid
CN102171996A (en) * 2008-09-30 2011-08-31 苹果公司 System and method for simplified resource sharing
CN102315864A (en) * 2011-09-07 2012-01-11 百度在线网络技术(北京)有限公司 Method of point-to-point data transmission for mobile device and device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200336877A1 (en) * 2013-11-29 2020-10-22 Huawei Device Co., Ltd. Method for sharing application between terminals, and terminal
US11606677B2 (en) * 2013-11-29 2023-03-14 Huawei Device Co., Ltd. Method for sharing application between terminals, and terminal
US11974204B2 (en) 2013-11-29 2024-04-30 Huawei Device Co., Ltd. Method for sharing application between terminals, and terminal
EP3007095A1 (en) * 2014-10-09 2016-04-13 Honeywell International Inc. System and method of pairing wireless sensors with an access point control panel
CN105517187A (en) * 2014-10-09 2016-04-20 霍尼韦尔国际公司 Systems and methods of pairing wireless sensors with access point control panel
US9426838B2 (en) 2014-10-09 2016-08-23 Honeywell International Inc. System and method of pairing wireless sensors with an access point control panel
US9820321B2 (en) 2014-10-09 2017-11-14 Honeywell International Inc. System and method of pairing wireless sensors with an access point control panel
CN105517187B (en) * 2014-10-09 2021-01-15 安定宝公司 System and method for pairing a wireless sensor with an access point control panel
US10966143B2 (en) 2017-03-21 2021-03-30 Ademco Inc. Systems and methods for detecting and avoiding radio interference in a wireless sensor network
WO2019047208A1 (en) * 2017-09-11 2019-03-14 深圳传音通讯有限公司 File transmission method and system
US11265725B2 (en) 2019-02-15 2022-03-01 Ademco Inc. Systems and methods for allocating wireless communication channels
US11004319B2 (en) * 2019-07-16 2021-05-11 Sensormatic Electronics, LLC Security camera systems and methods

Also Published As

Publication number Publication date
CN102315864B (en) 2015-11-25
CN102315864A (en) 2012-01-11

Similar Documents

Publication Publication Date Title
WO2013033999A1 (en) Method and apparatus for mobile device point-to-point data transmission
US9769732B2 (en) Wireless network connection establishment method and terminal device
US10756964B2 (en) Internet of things configuration method and system for secure low-power-consumption proxy device
EP2617222B1 (en) Dynamic account creation with secured hotspot network
KR101481265B1 (en) Method, apparatus, and computer program product for controlling network access to guest apparatus based on presence of hosting apparatus
US7916663B2 (en) Establishment of ad-hoc networks between multiple devices
KR101915314B1 (en) Method and apparatus for wi-fi connecting using wi-fi protected setup in a portable terminal
EP2941855B1 (en) Authenticating a wireless dockee to a wireless docking service
EP2723137B1 (en) Apparatus for setting up network for ip communication in mobile terminal
EP2834965B1 (en) Push button configuration for hybrid network devices
US20140075523A1 (en) Method, apparatus, and computer program product for sharing wireless network credentials
US20140195654A1 (en) Method, apparatus, and computer program product for configuring a mobile wireless hotspot
WO2014029100A1 (en) Wireless local area network device configuration method, corresponding device and system
WO2015139179A1 (en) Method and terminal for content synchronization among terminals
JP2005252812A (en) Radio communications system
CN111050415B (en) Wireless data transmission method convenient to operate
KR102311514B1 (en) Method and system for establishing a connection between a seeker device and a target device
WO2011035614A1 (en) Method, mobile phone, computer, and network system for synchronizing mobile phone information to computer
WO2014169641A1 (en) Method and device for establishing convenient wireless connection
WO2014161277A1 (en) Method and system for connecting portable wlan hotspot
WO2015139401A1 (en) Establishment method and system for wireless network, and wireless routing device
WO2017000680A1 (en) Connection establishment method and apparatus
KR20180121457A (en) Method and apparatus for wi-fi connecting using wi-fi protected setup in a portable terminal
WO2013189323A2 (en) Network unlocking method for network locking mobile terminal and mobile terminal
WO2023240575A1 (en) Relay communication method, communication apparatus, and communication device

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

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

Country of ref document: EP

Kind code of ref document: A1