WO2014059813A1 - 数据传输方法及终端设备 - Google Patents

数据传输方法及终端设备 Download PDF

Info

Publication number
WO2014059813A1
WO2014059813A1 PCT/CN2013/080924 CN2013080924W WO2014059813A1 WO 2014059813 A1 WO2014059813 A1 WO 2014059813A1 CN 2013080924 W CN2013080924 W CN 2013080924W WO 2014059813 A1 WO2014059813 A1 WO 2014059813A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
terminal
connection
field communication
near field
Prior art date
Application number
PCT/CN2013/080924
Other languages
English (en)
French (fr)
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 WO2014059813A1 publication Critical patent/WO2014059813A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
    • H04B5/77Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for interrogation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present invention relates to the field of data transmission technologies, and in particular, to a data transmission method and a terminal device. Background technique
  • Bluetooth technology has the characteristics of high communication speed and long communication distance. However, it is necessary to perform operations such as searching for a device, answering a pair, and confirming the connection before the data is officially transmitted. Such operations are cumbersome and complicated to use, and the connection mechanisms provided are limited in security. If a higher level of security is required then a transport layer or application layer is required. And,
  • WIFI technology is relatively mature, with the characteristics of communication speed and communication distance, and provides a variety of optional access authentication modes to ensure connection security. However, compared to Bluetooth technology and NFC technology, WIFI technology is less secure. Moreover, WIFI technology is generally used for network access of mobile devices, and less for point-to-point data transmission.
  • NFC technology has the characteristics of establishing a fast connection because it does not require authentication during communication, but the communication distance is short, less than 10 cm. Although the communication distance is short, the safety of NFC technology is high. It is also widely used on mobile devices due to its low power consumption, low price and the ability to implement card readers in mobile payment applications.
  • each technology alone cannot meet the requirements of fast data transmission, simple operation and high security.
  • the object of the present invention is to provide a data transmission method and a device terminal, so as to meet the requirements of fast data transmission, simple operation, and high security.
  • the following technical solutions are used:
  • a data transmission method for a data receiving terminal comprising:
  • the transmission information is written to the near field communication tag in a near field communication data exchange format.
  • the near field communication tag further carries data information written in a near field communication data exchange format, where the data information includes a file name, a file suffix name, and a file size of the data;
  • the step of receiving the data sent by the data transmitting terminal by the established connection comprises: the data receiving terminal receiving the data sent by the data sending terminal according to the data information through the established connection.
  • the transmission information includes a Bluetooth device hardware address
  • the step of establishing a connection with the data transmitting terminal according to the transmission information includes: the data receiving terminal establishing a Bluetooth connection with the data sending terminal according to the hardware address of the Bluetooth device.
  • the transmission information includes WIFI information of the data sending terminal
  • the step of establishing a connection with the data transmitting terminal according to the transmission information includes: the data receiving terminal establishing a port connection with the data sending terminal according to the WIFI information of the data sending terminal.
  • the WIFI information of the data sending terminal includes a service set identifier of the wireless access point connected to the data sending terminal, an identity authentication key, and an IP address of the data sending terminal;
  • the step of the data receiving terminal establishing a port connection with the data sending terminal according to the WIFI information of the data sending terminal includes:
  • the data receiving terminal determines whether to access the same wireless access point with the data sending terminal according to the service set identifier of the wireless access point connected to the data sending terminal;
  • the data connection terminal When the data receiving terminal and the data transmitting terminal access the same wireless access point, the data connection terminal directly establishes a port connection according to the IP address of the data sending terminal.
  • the step of the data receiving terminal establishing a port connection with the data sending terminal according to the WIFI information of the data sending terminal further includes:
  • the data receiving terminal When the data receiving terminal and the data sending terminal access different wireless access points, the data receiving terminal is disconnected from its original wireless access point;
  • the data receiving terminal establishes a connection with the wireless access point connected to the data sending terminal according to the service set identifier and the identity authentication key of the wireless access point connected by the data sending terminal;
  • the data receiving terminal establishes a port connection according to an IP address of the sending terminal.
  • a terminal device is used for data transmission, and the terminal device comprises a near field communication unit and a connection unit, wherein:
  • the near field communication unit is configured to: receive a near field communication tag sent by the data transmitting terminal, and parse the near field communication tag to obtain transmission information, where the transmission information is written into the near field communication tag in a near field communication data exchange format;
  • the connecting unit is configured to: establish a connection with the data sending terminal according to the transmission information, and receive data sent by the data sending terminal by using the established connection.
  • the near field communication tag further carries data information written in a near field communication data exchange format, where the data information includes a file name, a file suffix name, and a file size of the data;
  • the connecting unit is configured to establish a connection with the data transmitting terminal according to the transmission information and receive data sent by the data sending terminal according to the established connection: establishing a connection with the data sending terminal according to the transmission information And receiving data sent by the data transmitting terminal according to the data information through the established connection.
  • the transmission information includes a Bluetooth device hardware address
  • the connection unit is a Bluetooth device unit, and is configured to establish a connection with the data sending terminal according to the transmission information according to the following manner: establishing a Bluetooth connection with the Bluetooth device unit of the data sending terminal according to the Bluetooth device hardware address.
  • the transmission information includes WIFI information of the data sending terminal
  • the connection unit is a WIFI connection unit, and is configured to transmit information according to the following manner Establishing a connection with the data sending terminal: establishing a port connection with the data sending terminal according to the WIFI information of the data sending terminal.
  • the WIFI information of the data sending terminal includes a service set identifier of the wireless access point connected to the data sending terminal, an identity authentication key, and an IP address of the data sending terminal;
  • the near field communication unit includes an obtaining module and a determining module, wherein:
  • the obtaining module is configured to: obtain a service set identifier of the wireless access point to which the terminal device is connected;
  • the determining module is configured to: determine, according to a service set identifier of the wireless access point connected to the data sending terminal, whether to access the same wireless access point with the data sending terminal;
  • the WIFI connection unit includes a port connection module and an access connection module, where: the port connection module is configured to: when the terminal device and the data transmission terminal access the same wireless access point, according to the data sending terminal The IP address establishes a port connection;
  • the access connection module is configured to: when the terminal device and the data sending terminal access different wireless access points, disconnect from the original wireless access point, and connect according to the wireless connection of the data sending terminal.
  • the service set identifier and the identity authentication key of the ingress establish a connection with the wireless access point to which the data transmitting terminal is connected.
  • a terminal device for data transmission comprising a near field communication unit and a connection unit, wherein:
  • the near field communication unit is configured to: write the transmission information into the near field communication tag in a near field communication data exchange format and send the data to the data receiving terminal, so that the data receiving terminal establishes a connection with the terminal device according to the transmission information;
  • the connection unit is configured to: establish a connection with the data receiving terminal and transmit data to the data receiving terminal through the established connection.
  • the near field communication tag further carries data information written by the near field communication data exchange format for the data receiving terminal to receive data sent by the terminal device, where the data information includes a file name and a file of the data. Suffix name and file size.
  • the transmission information is a Bluetooth device hardware address
  • the connection unit is a Bluetooth device unit.
  • the transmission information is WIFI information, where the WIFI information includes a service set identifier of the wireless access point connected to the terminal device, an identity authentication key, and an IP address of the terminal device; WIFI connection unit.
  • the above technical solution realizes authentication by using a near field communication method between devices, that is, a close proximity (within 10 cm) approaching in physical space, effectively avoiding the identity fraud problem of the traditional authentication mode of the network space, and ensuring the security of data transmission. .
  • the cumbersome click-and-click operation on the device that replaces the conventional device by the close proximity between the devices enables the user to quickly and easily perform data transmission with the device to be connected, thereby achieving the requirement of minimizing energy consumption.
  • data transmission is carried out through technologies such as Bluetooth and WIFI, thereby maintaining the characteristics of high transmission rate, and the efficiency of data exchange between mobile devices is relatively high.
  • FIG. 1 is a flowchart of a data transmission method according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of a NFC-based Bluetooth data transmission method according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a NFC-based WIFI data transmission method according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of another terminal device according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a data transmission method according to an embodiment of the present invention, which may be applied to a data receiving terminal to implement communication with a data transmitting terminal, the data receiving terminal and data transmission
  • the terminal can be two terminal devices in the same system, or two terminal devices in different systems.
  • the specific implementation method is as follows:
  • Step S101 Receive a near field communication label sent by the data sending terminal.
  • the data transmitting terminal selects the file to be sent and the application that enables the method of the embodiment, and then when the data receiving terminal reaches the NFC communication distance (within 10 cm), the near field communication unit of the data transmitting terminal sets the near field communication label.
  • the transmission information may be a Bluetooth device hardware address of the data transmission terminal, or may be a WIFI information of the data transmission terminal, and includes a service set identifier (SSID, Service Set) of the wireless access point (AP, Access Point) connected by the data sending terminal.
  • SSID service set identifier
  • AP Access Point
  • the near field communication tag further carries data information and application identification information written in a near field communication data exchange format, the data information includes a file name, a file suffix name and a file size of the data, and the application identification information identifier resolves the near field according to the near field communication data exchange format. Communication label.
  • Step S102 Parsing a near field communication tag to obtain transmission information.
  • the near field communication unit of the data receiving terminal parses the received near field communication tag to obtain transmission information.
  • the transmission data is the Bluetooth device hardware address of the data transmitting terminal
  • the near field communication unit of the data receiving terminal parses the hardware address of the Bluetooth device.
  • the transmission information is WIFI information
  • the near field communication unit of the data receiving terminal obtains the SSID of the AP connected to the data transmitting terminal, the identity authentication key and the IP address of the data transmitting terminal, and obtains the SSID of the connected AP, and It is judged whether the data transmitting terminal and the data receiving terminal are connected to the same AP.
  • Step S103 Establish a connection with the data sending terminal according to the transmission information.
  • connection unit of the data receiving terminal quickly establishes a Bluetooth connection by using the Bluetooth device hardware address of the data transmitting terminal.
  • the connecting unit of the data receiving terminal directly establishes a Socket connection with the data transmitting terminal by using the IP address of the data transmitting terminal.
  • the SSID and the identity authentication of the AP connected to the data transmitting terminal are used to establish a connection and connect with the new AP.
  • the near field communication mode between the devices is adopted, that is, the proximity in the physical space (within 10 cm) is implemented in a close manner, thereby effectively avoiding the identity fraud problem of the traditional authentication mode of the network space, and ensuring the security of data transmission.
  • the close proximity between the devices replaces the cumbersome click-and-click operation on the conventional device, so that the user can quickly and easily connect with the device to be connected to implement data transmission, thereby achieving the requirement of minimizing energy consumption.
  • the present invention performs data transmission through technologies such as Bluetooth and WIFI, thereby maintaining the characteristics of high transmission rate, and the efficiency of data exchange between mobile devices is high.
  • the near field communication tag may further carry data information written in a near field communication data exchange format, where the data information includes a file name, a file suffix name, and a file size of the data, and the data receiving terminal according to the The data information receives the data sent by the data transmitting terminal through the established connection.
  • NFC-based Bluetooth data transmission method is a flowchart of an NFC-based Bluetooth data transmission method according to an embodiment of the present invention, which may be applied between communication devices in the same system, and may also be applied between communication devices in different systems, the communication device It uses the Android operating system and has NFC units and Bluetooth devices and can be recognized and run normally by the Android operating system.
  • the specific implementation method is as follows:
  • Step S201 The communication sender selects the file to be sent through the communication device A, and selects the application using the method in the "Share" menu in the file manager. At this time, the sender's NFC unit and Bluetooth device can be turned on or off. If it is off, the application of this method will automatically turn on its NFC unit and Bluetooth device.
  • Step S202 The communication sender brings the communication device A close to the communication device B of the communication receiver to the communication range of the NFC. At this time, the NFC unit of the communication receiving communication device B needs to be in an on state.
  • Step S203 After the communication device A queries its own Bluetooth device hardware address, the NFC unit writes the file information, its own Bluetooth hardware address information, and the application identification information to the NFC tag according to the NDEF format, and pushes the communication device to the communication receiver by using the PUSH method.
  • the application identifier information indicates that the NFC tag received by the receiver should be parsed by the NFC unit using the application of the method.
  • File information includes file name, file suffix name, and file size.
  • Step S204 After receiving the NFC tag, the NFC unit of the communication device B automatically starts the parsing module by using the Android system, and the module parses the Bluetooth hardware address information and the file information of the communication sender from the NFC tag according to the NDEF format. At this time, if the Bluetooth unit of the receiver is not turned on, the application of the method is automatically turned on.
  • Step S205 The NFC unit of the communication device B quickly establishes a Bluetooth connection between the communication device A and the Bluetooth device of the communication device B by directly using the Bluetooth hardware address of the communication sender through the Android system.
  • Step S206 The communication sender transmits the selected file by using the established Bluetooth connection. During the transmission, if there is any change in the Bluetooth connection status, the communication system A and the Android device of the communication device B notify the communication sender and the receiver of the Bluetooth connection status change.
  • Step S207 After the file transmission is completed, the Bluetooth connection between the communication device A and the communication device B is disconnected, and the transmission of the communication sender and the receiver is prompted.
  • the connection establishment time is greatly shortened, the energy saving and the consumption are reduced, and the security and certainty of the communication are ensured.
  • the operation of the embodiment is simple and quick, and the user does not add other click-selection requests, etc., except that the user clicks the file operation for the first time, which greatly enhances the user's use feeling and integrates into the "share" menu of the Android system. And only use the push method, do not join the request process such as permission identification and transition, so that the user can quickly grasp the use of the method application.
  • the communication using Bluetooth in this embodiment makes the data transmission rate faster, and the transmission rate is also ensured on the basis of ensuring security.
  • the application of this embodiment is fully integrated into the Android system and is compatible with the existing Bluetooth hardware, and does not require any modification of the existing hardware.
  • FIG. 3 is a flowchart of an NFC-based WIFI data transmission method according to an embodiment of the present invention, which may be applied between communication devices in the same system, and may also be applied between communication devices in different systems, and the communication device It uses the Android operating system and has NFC unit and WIFI device and can be recognized and run by the Android operating system.
  • the specific implementation method is as follows:
  • Step S301 The communication sender selects the file to be sent through the communication device S, and selects the application using the method in the "Share" menu in the file manager. At this time, if the sender's NFC unit and WIFI device can be turned on or off, if it is in the off state, the application of the method will automatically turn on its NFC unit and WIFI device.
  • Step S302 The sender approaches the communication device S to the communication device R of the receiver. When the NFC communication distance is within, the communication device S pushes its own WIFI information, file information and application identification information to the communication device R by using NFC NDEF Push mode. . At the same time, the communication device S establishes a Socket listener for a specific port.
  • the application identification information indicates that the information pushed by the NDEF in this step is parsed by the application that the communication device S uses the method.
  • the WIFI information includes the SSID of the AP to which the communication device S is connected, the identity authentication key, and the IP address of the communication device S.
  • File information includes file name, file suffix name, and file size.
  • Step S303 After receiving the NDEF Push, the NFC unit of the communication device R automatically starts the parsing module through the Android system, and the module parses the WIFI information and the file information of the communication device S from the NDEF information, and obtains the connection of the communication device R itself.
  • the SSID of the AP checks whether the local R is connected to a wireless AP according to the WIFI information of the communication device S, or determines whether the communication device S is connected to the same AP when the AP is accessed. In this case, you need to obtain the SSID of the AP to which R itself is connected.
  • Step S304 determining whether the communication device R and the communication device S are connected to the same AP;
  • Step S305 If the communication device R and the communication device S are connected to the same wireless AP, the communication device
  • R directly establishes a Socket connection to the communication device S by using the IP address of the communication device S in the WIFI information;
  • Step S306 If the connection with the communication device S is not the same AP, disconnect the original AP and save the original connection information, and then try to use the SSID and key of the AP connected to the communication device S in the obtained WIFI information. Connect the AP and establish a Socket connection to the communication device S using the IP address of the communication device S after the connection is successful.
  • the port number used when establishing the Socket connection is the port number used by the Socket listener in step S302.
  • Step S307 The communication device S accepts the Socket connection request of the communication device R and establishes a connection; Step S308: The communication device S sends the selected file to the communication device R through the established Socket connection. If the WIFI connection status is changed (that is, after listening to WIFI-STATE-CHAGED-ACTION broadcast), the file transfer is suspended, and the WIFI management mechanism of the Android system is resumed to resume the connection after the connection is resumed.
  • Step S309 After the file transmission is completed, the Socket connection between the communication device S and the communication device R is disconnected, and the transmission of the communication sender and the receiver is prompted.
  • the identity verification in the NFC physical space is used, which avoids the identity forgery problem in the point-to-point file transmission in the traditional short-distance network space, and has high security.
  • the user By not adding multiple confirmation and authentication modules, the user only needs to perform one click operation and one device close action in the whole process, without any operation requiring user input, which greatly simplifies the user's operation.
  • Incorporating into the "Share" menu of Android devices, and using only the way to push files, without adding pull mode and multiple rights authentication and transition request process, can enable users to quickly understand and master the usage of this method.
  • WIFI technology communication distance is usually about 100 meters, and the connection is stable, and the speed is generally up to 2 ⁇ 7MB/S, so the communication distance, connection stability and data transmission rate are significantly increased compared with the traditional short-range communication methods such as Bluetooth.
  • WIFI connections already offer multiple authentication methods, thus ensuring the security of files during transmission.
  • FIG. 4 is a schematic structural diagram of a terminal device used for data transmission, for example, a communication device using an Android operating system according to an embodiment of the present invention.
  • the terminal device 400 includes:
  • the near field communication unit 410 is configured to: receive the near field communication tag pushed by the data transmitting terminal and analyze the near field communication tag to obtain transmission information, and the transmission information is written into the near field communication tag in a near field communication data exchange format;
  • the connecting unit 420 is configured to: establish a connection with the data transmitting terminal according to the transmission information and receive data transmitted by the data transmitting terminal.
  • the near field communication tag further carries data information and application identification information written in a near field communication data exchange format, and the data information includes a file name, a file suffix name, and a file size of the data, and the application identification information identifier is parsed according to the near field communication data exchange format.
  • Near field communication tag carries data information and application identification information written in a near field communication data exchange format, and the data information includes a file name, a file suffix name, and a file size of the data, and the application identification information identifier is parsed according to the near field communication data exchange format.
  • the transmission information is a Bluetooth device hardware address
  • the connection unit 420 is a Bluetooth device unit, and is configured to: establish a Bluetooth connection with the Bluetooth device unit of the data transmitting terminal according to the Bluetooth device hardware address.
  • the transmission information is WIFI information of the data transmission terminal
  • the connection unit 420 is a WIFI connection unit, and is configured to: establish a port connection with the data transmission terminal according to the WIFI information of the data transmission terminal.
  • the WIFI information of the data transmitting terminal The SSID of the AP connected to the data transmitting terminal, the identity authentication key, and the IP address of the data transmitting terminal.
  • the near field communication unit 410 includes: an obtaining module 411 configured to: obtain an SSID of the AP connected to the terminal device; the determining module 412 is configured to: determine whether to access the same AP with the data transmitting terminal according to the SSID of the AP connected to the data sending terminal.
  • the WIFI connection unit includes: a port connection module, configured to: when the terminal device and the data transmitting terminal access the same AP, establish a port connection according to the IP address of the data sending terminal; and access the connection module, which is used for accessing the terminal device and the data sending terminal When different APs are disconnected from the original AP, the SSID and the identity authentication key of the AP connected to the data sending terminal are connected to the AP connected to the data sending terminal.
  • the NFC unit is used to implement identity verification in the physical space, which avoids the problem of identity forgery in point-to-point file transmission in the traditional short-distance network space, and has high security.
  • identity verification in the physical space
  • the user only needs to perform one click operation and one device close action in the whole process, without any operation requiring user input, which greatly simplifies the user's operation.
  • NFC is used to push auxiliary information.
  • auxiliary information With the fast connection establishment feature of NFC technology, a small amount of auxiliary information is conveniently transmitted, and files are transmitted using Bluetooth devices and WIFI units, which increases communication distance, connection stability and data transmission rate.
  • FIG. 5 is a schematic structural diagram of another terminal device according to an embodiment of the present invention, which is used for data transmission, for example, a communication device using an Android operating system.
  • the terminal device 500 includes:
  • the near field communication unit 510 is configured to: write the transmission information into the near field communication tag in a near field communication data exchange format, and transmit the near field communication identifier to the data receiving terminal;
  • the connection unit 520 is configured to: establish a connection with the data receiving terminal and transmit a receipt.
  • the near field communication tag further carries data information and application identification information written in a near field communication data exchange format, and the data information includes a file name, a file suffix name, and a file size of the data, and the application identification information identifier is parsed according to the near field communication data exchange format.
  • Near field communication tag carries data information and application identification information written in a near field communication data exchange format, and the data information includes a file name, a file suffix name, and a file size of the data, and the application identification information identifier is parsed according to the near field communication data exchange format.
  • the transmission information is a Bluetooth device hardware address and the connection unit 520 is a Bluetooth device unit.
  • the transmission information is WIFI information, and the WIFI information includes a service set identifier of the wireless access point to which the terminal device is connected, an identity authentication key, and an IP address of the terminal device.
  • the connection unit 520 is a WIFI connection unit.
  • the NFC unit is used to implement identity verification in the physical space, which avoids the problem of identity forgery in point-to-point file transmission in the traditional short-distance network space, and has high security.
  • the user By not adding multiple confirmation and authentication modules, the user only needs to perform one click operation and one device close action in the whole process, without any operation requiring user input, which greatly simplifies the user's operation.
  • NFC is used to push auxiliary information. With the fast connection establishment feature of NFC technology, a small amount of auxiliary information is conveniently transmitted, and files are transmitted using Bluetooth devices and WIFI units, which increases communication distance, connection stability and data transmission rate.
  • the above technical solution realizes authentication by using a near field communication method between devices, that is, a close proximity (within 10 cm) approaching in physical space, effectively avoiding the identity fraud problem of the traditional authentication mode of the network space, and ensuring the security of data transmission. .
  • the cumbersome click-and-click operation on the device that replaces the conventional device by the close proximity between the devices enables the user to quickly and easily perform data transmission with the device to be connected, thereby achieving the requirement of minimizing energy consumption.
  • data transmission is carried out through technologies such as Bluetooth and WIFI, thereby maintaining the characteristics of high transmission rate, and the efficiency of data exchange between mobile devices is relatively high. Therefore, the present invention has strong industrial applicability.

Landscapes

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

Abstract

一种数据传输方法和终端设备。其中,所述方法包括:数据接收终端接收数据发送终端发送的近场通信标签;数据接收终端解析近场通信标签,得到传输信息;数据接收终端根据传输信息与数据发送终端建立连接;以及数据接收终端接收数据发送终端发送的数据;其中所述传输信息以近场通信数据交换格式写入所述近场通信标签。上述技术方案通过设备间采用近场通信方式实现认证,有效避免网络空间的传统认证方式的身份欺骗问题,确保数据传输的安全性。而且,通过设备间的近距离靠近取代传统的设备上繁琐的点选按操作,使得用户能简单快捷地与欲连接设备自动连接实施数据传输,达到能耗最小化的要求。

Description

数据传输方法及终端设备
技术领域
本发明涉及数据传输技术领域,尤其涉及一种数据传输方法和终端设备。 背景技术
随着移动设备各种功能的日益强大, 如多媒体功能, 用户在移动设备上 传递大数据的要求也越来越高, 希望数据传输过程具有速度快, 操作简单, 安全性高等特性。 目前, 常用的移动设备之间进行数据、 数据传输的技术包 括蓝牙技术、 WIFI技术和近场通信技术( NFC, Near Field Communication )。
蓝牙技术具有通信速率高和通信距离远的特点。 但是, 在正式传输数据 之前需要执行搜索设备, 应答配对, 连接确认等操作。 对于使用而言, 这样 的操作繁瑣复杂, 并且提供的连接机制安全性有限。 如果需要更高级别的安 全性则需要传输层或者应用层另外提供。 而且,
WIFI技术比较成熟, 具有通信速率和通信距离远的特点, 并且提供多种 可选的接入认证模式以确保连接安全性。但是,相对蓝牙技术和 NFC技术而 言, WIFI技术的安全性较低。 而且, WIFI技术一般用于移动设备的网络接 入, 而较少的用于点对点数据传输。
NFC技术由于通信时不需要认证, 具有建立连接迅速的特点, 但是通信 距离很短, 小于 10cm。 虽然通信距离很短, 但 NFC技术的安全性较高。 由 于其还具有低功耗、 低价格的特点以及能够实现移动支付应用中读卡器的功 能, 在移动设备上可以广泛应用。
根据上述三种技术的各自特点, 每种技术单独使用都不能同时满足数据 传输过程速度快, 操作简单, 安全性高的使用需求。
发明内容
有待于此,本发明实施例的目的在于提供一种数据传输方法及设备终端, 以同时满足数据传输过程速度快, 操作简单, 安全性高的使用需求。 为解决上述技术问题, 釆用如下技术方案:
一种数据传输方法, 用于一数据接收终端, 该方法包括:
接收数据发送终端发送的近场通信标签;
解析所述近场通信标签, 得到传输信息;
根据所述传输信息与所述数据发送终端建立连接; 以及
通过建立的连接接收所述数据发送终端发送的数据;
其中所述传输信息以近场通信数据交换格式写入所述近场通信标签。 可选地, 所述近场通信标签还携带以近场通信数据交换格式写入的数据 信息, 所述数据信息包括数据的文件名、 文件后缀名和文件大小;
通过建立的连接接收所述数据发送终端发送的数据的步骤包括: 所述数 据接收终端根据所述数据信息通过建立的连接接收所述数据发送终端发送的 数据。
可选地, 所述传输信息包括蓝牙设备硬件地址;
根据所述传输信息与所述数据发送终端建立连接的步骤包括: 所述数据 接收终端根据所述蓝牙设备硬件地址与所述数据发送终端建立蓝牙连接。
可选地, 所述传输信息包括所述数据发送终端的 WIFI信息;
根据所述传输信息与所述数据发送终端建立连接的步骤包括: 所述数据 接收终端根据所述数据发送终端的 WIFI信息与所述数据发送终端建立端口 连接。
可选地, 所述数据发送终端的 WIFI信息包括所述数据发送终端连接的无 线接入点的服务集标识, 身份认证密钥和所述数据发送终端的 IP地址;
所述数据接收终端根据所述数据发送终端的 WIFI信息与所述数据发送 终端建立端口连接的步骤包括:
所述数据接收终端根据所述数据发送终端连接的无线接入点的服务集标 识判断是否与所述数据发送终端接入同一无线接入点;
所述数据接收终端与所述数据发送终端接入同一无线接入点时, 直接根 据所述数据发送终端的 IP地址建立端口连接。 可选地, 所述数据接收终端根据所述数据发送终端的 WIFI信息与所述数 据发送终端建立端口连接的步骤还包括:
当所述数据接收终端与所述数据发送终端接入不同无线接入点时, 所述 数据接收终端与自身原有的无线接入点断开连接;
所述数据接收终端根据所述数据发送终端连接的无线接入点的服务集标 识和身份认证密钥与所述数据发送终端连接的无线接入点建立连接;
所述数据接收终端根据所述发送终端的 IP地址建立端口连接。
一种终端设备, 用于数据传输, 所述终端设备包括近场通信单元和连接 单元, 其中:
所述近场通信单元设置成: 接收数据发送终端发送的近场通信标签和解 析所述近场通信标签得到传输信息, 所述传输信息以近场通信数据交换格式 写入所述近场通信标签;
所述连接单元设置成: 根据所述传输信息与所述数据发送终端建立连接 并通过建立的连接接收所述数据发送终端发送的数据。
可选地, 所述近场通信标签还携带以近场通信数据交换格式写入的数据 信息, 所述数据信息包括数据的文件名、 文件后缀名和文件大小;
所述连接单元设置成按照如下方式根据所述传输信息与所述数据发送终 端建立连接并通过建立的连接接收所述数据发送终端发送的数据: 根据所述 传输信息与所述数据发送终端建立连接, 并通过建立的连接依据所述数据信 息接收所述数据发送终端发送的数据。
可选地, 所述传输信息包括蓝牙设备硬件地址;
所述连接单元为蓝牙设备单元, 设置成按照如下方式根据所述传输信息 与所述数据发送终端建立连接: 根据所述蓝牙设备硬件地址与所述数据发送 终端的蓝牙设备单元建立蓝牙连接。
可选地, 所述传输信息包括所述数据发送终端的 WIFI信息;
所述连接单元为 WIFI连接单元,设置成按照如下方式根据所述传输信息 与所述数据发送终端建立连接: 根据所述数据发送终端的 WIFI信息与所述数 据发送终端建立端口连接。
可选地, 所述数据发送终端的 WIFI信息包括所述数据发送终端连接的无 线接入点的服务集标识, 身份认证密钥和所述数据发送终端的 IP地址;
所述近场通信单元包括获得模块和判断模块, 其中:
所述获得模块设置成: 获得所述终端设备连接的无线接入点的服务集标 识;
所述判断模块设置成: 根据所述数据发送终端连接的无线接入点的服务 集标识判断是否与所述数据发送终端接入同一无线接入点;
所述 WIFI连接单元包括端口连接模块和接入连接模块, 其中: 所述端口连接模块设置成: 所述终端设备与所述数据发送终端接入同一 无线接入点时, 根据所述数据发送终端的 IP地址建立端口连接;
所述接入连接模块设置成: 所述终端设备与所述数据发送终端接入不同 无线接入点时, 与原有的无线接入点断开连接, 根据所述数据发送终端连接 的无线接入点的服务集标识和身份认证密钥与所述数据发送终端连接的无线 接入点建立连接。
一种终端设备, 用于数据传输, 所述设备包括近场通信单元和连接单元 , 其中:
所述近场通信单元设置成: 将传输信息以近场通信数据交换格式写入近 场通信标签并发送至数据接收终端, 使得所述数据接收终端根据所述传输信 息与所述终端设备建立连接;
所述连接单元设置成: 与所述数据接收终端建立连接并通过建立的连接 向所述数据接收终端发送数据。
可选地, 所述近场通信标签还携带以近场通信数据交换格式写入的用于 供数据接收终端接收所述终端设备发送的数据的数据信息, 所述数据信息包 括数据的文件名、 文件后缀名和文件大小。 可选地, 所述传输信息为蓝牙设备硬件地址, 所述连接单元为蓝牙设备 单元。
可选地, 所述传输信息为 WIFI信息, 所述 WIFI信息包括所述终端设备连 接的无线接入点的服务集标识, 身份认证密钥和所述终端设备的 IP地址; 所述连接单元为 WIFI连接单元。
上述技术方案, 通过设备间釆用近场通信方式, 即在物理空间上的近距 离( 10cm内)靠近方式实现认证, 有效避免网络空间的传统认证方式的身份 欺骗问题, 确保数据传输的安全性。 而且, 通过设备间的近距离靠近取代传 统的设备上繁瑣的点选按操作, 使得用户能简单快捷地与欲连接设备自动连 接实施数据传输, 达到能耗最小化的要求。 同时, 通过蓝牙、 WIFI等技术进 行数据传输, 从而保持了高传输速率的特点, 移动设备间数据交换的效率较 高。 附图概述
图 1为本发明实施例的一种数据传输方法的流程图;
图 2为本发明实施例的一种基于 NFC的蓝牙数据传输方法的流程图; 图 3为本发明实施例的一种基于 NFC的 WIFI数据传输方法的流程图; 图 4为本发明实施例的一种终端设备的结构示意图; 以及
图 5为本发明实施例的另一种终端设备的结构示意图。
本发明的较佳实施方式
为使本发明的目的、 技术方案和优点更加清楚, 下面将结合附图及具体 实施例对本发明进行详细描述。
实施例一
图 1是本发明实施例的一种数据传输方法的流程图, 该方法可以应用于 一数据接收终端, 实现与数据发送终端的通信, 该数据接收终端和数据发送 终端可以为同一***中的两终端设备, 也可以为不同***中的两终端设备。 具体实现方法如下:
步骤 S101 : 接收数据发送终端发送的近场通信标签;
在该步骤中 ,数据发送终端选择待发送文件和启用本实施例方法的应用, 然后被靠近数据接收终端达到 NFC通信距离内时 ( 10cm以内) , 数据发送 终端的近场通信单元将近场通信标签推送(Push )到数据接收单元, 使得数 据接收单元接收到该近场通信标签, 其中近场通信标签中携带以近场数据交 换格式(NDEF, NFC Data Exchange Fomat )写入的传输信息。 其中, 传输 信息可以是数据传输终端的蓝牙设备硬件地址, 也可以是数据传输终端的 WIFI信息, 包括数据发送终端连接的无线接入点 (AP, Access Point ) 的服 务集标识 (SSID, Service Set Identifier ) , 身份认证密钥和数据发送终端的 IP地址。 近场通信标签还携带以近场通信数据交换格式写入的数据信息和应 用标识信息, 数据信息包括数据的文件名、 文件后缀名和文件大小, 应用标 识信息标识根据近场通信数据交换格式解析近场通信标签。
步骤 S102: 解析近场通信标签, 得到传输信息;
在该步骤中,数据接收终端的近场通信单元解析接收到的近场通信标签, 得到传输信息。 当传输数据为数据发送终端的蓝牙设备硬件地址时, 数据接 收终端的近场通信单元解析得到该蓝牙设备硬件地址。 当传输信息为 WIFI 信息时, 数据接收终端的近场通信单元除解析得到数据发送终端连接的 AP 的 SSID, 身份认证密钥和数据发送终端的 IP地址外, 还获得自身连接 AP 的 SSID, 并判断数据发送终端和数据接收终端是否连接同一 AP。
步骤 S103: 根据所述传输信息与数据发送终端建立连接;
在该步骤中, 数据接收终端的连接单元利用数据发送终端的蓝牙设备硬 件地址快速建立蓝牙连接。 当与数据发送终端连接同一 AP时, 数据接收终 端的连接单元利用数据发送终端的 IP地址直接与数据发送终端建立一条端 口 (Socket )连接。 当与数据发送终端连接不同 AP时, 在断开与原有 AP的 连接后,使用数据发送终端连接的 AP的 SSID和身份认证与新 AP建立连接, 连接。 步骤 S104: 通过建立的连接接收数据发送终端发送的数据。 本实施例通过设备间釆用近场通信方式, 即在物理空间上的近距离 ( 10cm内)靠近方式实现认证,有效避免网络空间的传统认证方式的身份欺 骗问题, 确保数据传输的安全性。 而且, 通过设备间的近距离靠近取代传统 的设备上繁瑣的点选按操作, 使得用户能简单快捷地与欲连接设备自动连接 实施数据传输, 达到能耗最小化的要求。 同时, 本发明通过蓝牙、 WIFI等技 术进行数据传输, 从而保持了高传输速率的特点, 移动设备间数据交换的效 率较高。
本发明实施例中, 所述近场通信标签还可以携带以近场通信数据交换格 式写入的数据信息, 所述数据信息包括数据的文件名、 文件后缀名和文件大 小, 所述数据接收终端根据所述数据信息通过建立的连接接收所述数据发送 终端发送的数据。
实施例二
图 2是本发明实施例的基于 NFC的蓝牙数据传输方法的流程图,该方法 可以应用于同一***中的通信设备之间, 也可以应用于不同***中的通信设 备之间, 所述通信设备釆用 Android操作***, 并具有 NFC单元和蓝牙设备 并能被 Android操作***正常识别并运行。 具体实现方法如下:
步骤 S201 : 通信发送方通过通信设备 A选择待发送的文件, 在文件管 理器中的 "分享" 菜单中选择使用本方法的应用。 此时, 发送方的 NFC单元 及蓝牙设备可处于开启或关闭状态, 若处于关闭状态, 本方法的应用将自动 开启其 NFC单元及蓝牙设备。
步骤 S202: 通信发送方将通信设备 A靠近通信接收方的通信设备 B到 NFC的通信范围内。 此时, 通信接收方通信设备 B的 NFC单元需处于开启 状态。
步骤 S203: 通信设备 A查询自身的蓝牙设备硬件地址后, NFC单元将 文件信息、 自身的蓝牙硬件地址信息以及应用标识信息根据 NDEF格式写入 NFC标签, 并用 PUSH方式推送到通信接收方的通信设备 B。 其中, 应用标 识信息表明接收方接收到的 NFC标签应由 NFC单元使用本方法的应用进行 解析。 文件信息包括文件名、 文件后缀名和文件大小。 步骤 S204: 通信设备 B的 NFC单元接收到 NFC标签后利用 Android系 统自动启动解析模块, 该模块根据 NDEF格式从 NFC标签中解析出通信发 送方的蓝牙硬件地址信息和文件信息。 此时, 若接收方的蓝牙单元未开启, 则由本方法的应用自动开启。
步骤 S205: 通信设备 B的 NFC单元通过 Android***直接利用通信发 送方的蓝牙硬件地址,在通信设备 A和通信设备 B的蓝牙设备间快速建立蓝 牙连接。
步骤 S206: 通信发送方利用已建立的蓝牙连接传送选定文件。发送过程 中, 如发现蓝牙连接状态有任何变化, 则由通信设备 A和通信设备 B 的 Android***通知通信发送方和接收方蓝牙连接状态变化情况。
步骤 S207: 文件传输完毕, 断开通信设备 A和通信设备 B之间的蓝牙 连接, 提示通信发送方和接收方文件传输完毕。
本实施例通过使用 NFC技术,使得连接建立时间大大缩短,节能低耗且 通信的安全性和确定性得到保证。 此外, 本实施例操作简单快捷, 除用户第 一次点选文件操作外, 不加入其他的点选请求等操作, 极大的增强了用户的 使用感受, 融入到 Android***的 "分享"菜单中, 并且仅使用推送的方式, 不加入权限鉴别及跃迁等请求流程便于用户快速掌握该方法应用的使用。 本 实施例使用蓝牙进行通信又使得数据传输速率较快, 在保证了安全性的基础 上使得传输速率也有所保障。 本实施例的应用最大程度的融入 android *** 且兼容已有的蓝牙硬件, 不需要对已有的硬件进行任何修改。
实施例三
图 3是本发明实施例的基于 NFC的 WIFI数据传输方法的流程图, 该方 法可以应用于同一***中的通信设备之间, 也可以应用于不同***中的通信 设备之间, 所述通信设备釆用 Android操作***, 并具有 NFC单元和 WIFI 设备并能被 Android操作***正常识别并运行。 具体实现方法如下:
步骤 S301 : 通信发送方通过通信设备 S选择待发送的文件, 在文件管理 器中的 "分享" 菜单中选择使用本方法的应用。 此时, 若发送方的 NFC单元 及 WIFI设备可处于开启或关闭状态, 若处于关闭状态, 本方法的应用将自 动开启其 NFC单元及 WIFI设备。 步骤 S302: 发送方将通信设备 S靠近接收方的通信设备 R, 在 NFC通 信距离内时, 通信设备 S将自身 WIFI信息、 文件信息和应用标识信息, 用 NFC的 NDEF Push方式推送到通信设备 R。 同时,通信设备 S建立一个特定 端口的 Socket***。 其中,应用标识信息指明了该步骤中的 NDEF推送的 信息是应该被通信设备 S使用本方法的应用所解析。 WIFI信息包括通信设备 S所连接的 AP的 SSID、身份认证密钥和通信设备 S的 IP地址。文件信息包 括文件名、 文件后缀名和文件大小。
步骤 S303: 通信设备 R的 NFC单元收到 NDEF Push后, 通过 Android ***自动启动解析模块, 该模块从 NDEF信息中解析出通信设备 S的 WIFI 信息和文件信息, 同时获得通信设备 R自身所连接的 AP的 SSID,根据通信 设备 S的 WIFI信息检查本机 R是否接入某无线 AP, 或者在已接入某 AP情 况下判断是否与通信设备 S接入同一 AP。 此时, 需获得 R 自身所连接 AP 的 SSID。
步骤 S304: 判断通信设备 R与通信设备 S是否连接同一 AP;
步骤 S305: 若通信设备 R与通信设备 S连接同一无线 AP, 则通信设备
R直接用 WIFI信息中通信设备 S的 IP地址向通信设备 S建立一条 Socket 连接;
步骤 S306: 若与通信设备 S连接的不是同一 AP, 则先断开与原有 AP 的连接并保存原有连接信息, 随后使用得到的 WIFI信息中通信设备 S连接 的 AP的 SSID和密钥尝试连接该 AP, 并在连接成功后使用通信设备 S的 IP 地址向通信设备 S建立一条 Socket连接。 其中, 建立 Socket连接时, 使用的 端口号即是步骤 S302中 Socket***使用的端口号。
步骤 S307:通信设备 S接受通信设备 R的 Socket连接请求并建立连接; 步骤 S308: 通信设备 S通过建立的 Socket连接向通信设备 R发送选定 文 件 。 若 发 现 WIFI 连 接 状 态 变 化 ( 即 监 听 到 WIFI— STATE— CHAGED— ACTION广播后) , 暂停文件传输, 等待 Android ***的 WIFI管理机制恢复该连接后继续传输。
步骤 S309: 文件传输完毕,断开通信设备 S和通信设备 R之间的 Socket 连接, 提示通信发送方和接收方文件传输完毕。 本实施例釆用 NFC物理空间内的身份确认,避免了传统近距离网络空间 内点对点文件传输时的身份伪造问题, 具有较高安全性。 通过不加入多次确 认和鉴权模块, 整个过程中用户只需进行一次点选操作和一次设备靠近的动 作, 无任何需要用户输入的操作, 极大简化了用户的操作。 融入到 Android 设备的 "分享" 菜单中, 并且仅使用推送文件的方式, 不加入拉取方式和多 种权限鉴别和跃迁请求流程, 能够使用户快速理解并掌握本方法的用法。 使 用 NFC进行辅助信息的推送, 借助 NFC技术的快速建立连接特点, 便捷的 传输少量辅助信息, 使用 WIFI进行文件的传输, WIFI技术通信距离通常在 100米左右, 且连接稳定, 速度一般可达 2 ~ 7MB/S, 因此与传统的近距离通 信方式如蓝牙等显著增大了通信距离、 连接稳定性和数据传输速率。 此外, WIFI连接已经提供多种身份认证方式,因此能够确保文件在传输过程中的安 全。
实施例四
图 4为本发明实施例的一种终端设备的结构示意图, 用于数据传输, 例 如釆用 Android操作***的通信设备。 该终端设备 400包括:
近场通信单元 410设置成: 接收数据发送终端推送的近场通信标签和解 析近场通信标签得到传输信息, 所述传输信息以近场通信数据交换格式写入 近场通信标签;
连接单元 420设置成: 根据传输信息与数据发送终端建立连接和接收数 据发送终端发送的数据。
其中, 近场通信标签还携带以近场通信数据交换格式写入的数据信息和 应用标识信息, 数据信息包括数据的文件名、 文件后缀名和文件大小, 应用 标识信息标识根据近场通信数据交换格式解析近场通信标签。
在本发明的一个实施例中,传输信息为蓝牙设备硬件地址,连接单元 420 为蓝牙设备单元, 设置成: 根据蓝牙设备硬件地址与数据发送终端的蓝牙设 备单元建立蓝牙连接。
在本发明的另一实施例中, 传输信息为数据发送终端的 WIFI信息, 连 接单元 420为 WIFI连接单元,设置成: 根据数据发送终端的 WIFI信息与数 据发送终端建立端口连接。 在一具体实施例中, 数据发送终端的 WIFI信息 包括数据发送终端连接的 AP的 SSID, 身份认证密钥和数据发送终端的 IP 地址。 近场通信单元 410包括: 获得模块 411 , 设置成: 获得终端设备连接 的 AP的 SSID; 判断模块 412设置成: 根据数据发送终端连接的 AP的 SSID 判断是否与数据发送终端接入同一 AP。 WIFI连接单元包括:端口连接模块, 设置成: 终端设备与数据发送终端接入同一 AP时, 根据数据发送终端的 IP 地址建立端口连接; 接入连接模块, 用于终端设备与数据发送终端接入不同 AP时, 与原有的 AP断开连接, 根据数据发送终端连接的 AP的 SSID和身 份认证密钥与数据发送终端连接的 AP建立连接。
本实施例釆用 NFC单元实现物理空间内的身份确认,避免了传统近距离 网络空间内点对点文件传输时的身份伪造问题, 具有较高安全性。 通过不加 入多次确认和鉴权模块, 整个过程中用户只需进行一次点选操作和一次设备 靠近的动作, 无任何需要用户输入的操作, 极大简化了用户的操作。 融入到
Android设备的 "分享" 菜单中, 并且仅使用推送文件的方式, 不加入拉取 方式和多种权限鉴别和跃迁请求流程, 能够使用户快速理解并掌握本方法的 用法。使用 NFC进行辅助信息的推送,借助 NFC技术的快速建立连接特点, 便捷的传输少量辅助信息, 使用蓝牙设备和 WIFI单元进行文件的传输, 增 大了通信距离、 连接稳定性和数据传输速率。
实施例五
图 5为本发明实施例的另一种终端设备的结构示意图, 用于数据传输, 例如釆用 Android操作***的通信设备。 该终端设备 500包括:
近场通信单元 510设置成: 将传输信息以近场通信数据交换格式写入近 场通信标签, 及将近场通信标识发送到数据接收终端;
连接单元 520设置成: 与数据接收终端建立连接并发送收据。
其中, 近场通信标签还携带以近场通信数据交换格式写入的数据信息和 应用标识信息, 数据信息包括数据的文件名、 文件后缀名和文件大小, 应用 标识信息标识根据近场通信数据交换格式解析近场通信标签。
在本发明的一个实施例中,传输信息为蓝牙设备硬件地址,连接单元 520 为蓝牙设备单元。 在本发明的另一实施例中, 传输信息为 WIFI信息, WIFI信息包括终端 设备连接的无线接入点的服务集标识, 身份认证密钥和终端设备的 IP地址。 连接单元 520为 WIFI连接单元。
本实施例釆用 NFC单元实现物理空间内的身份确认,避免了传统近距离 网络空间内点对点文件传输时的身份伪造问题, 具有较高安全性。 通过不加 入多次确认和鉴权模块, 整个过程中用户只需进行一次点选操作和一次设备 靠近的动作, 无任何需要用户输入的操作, 极大简化了用户的操作。 融入到 Android设备的 "分享" 菜单中, 并且仅使用推送文件的方式, 不加入拉取 方式和多种权限鉴别和跃迁请求流程, 能够使用户快速理解并掌握本方法的 用法。使用 NFC进行辅助信息的推送,借助 NFC技术的快速建立连接特点, 便捷的传输少量辅助信息, 使用蓝牙设备和 WIFI单元进行文件的传输, 增 大了通信距离、 连接稳定性和数据传输速率。
最后应当说明的是,以上实施例仅用以说明本发明的技术方案而非限制, 本领域的普通技术人员应当理解, 可以对本发明的技术方案进行修改或者等 同替换, 而不脱离本发明技术方案的精神范围, 其均应涵盖在本发明的权利 要求范围当中。
工业实用性
上述技术方案, 通过设备间釆用近场通信方式, 即在物理空间上的近距 离( 10cm内)靠近方式实现认证, 有效避免网络空间的传统认证方式的身份 欺骗问题, 确保数据传输的安全性。 而且, 通过设备间的近距离靠近取代传 统的设备上繁瑣的点选按操作, 使得用户能简单快捷地与欲连接设备自动连 接实施数据传输, 达到能耗最小化的要求。 同时, 通过蓝牙、 WIFI等技术进 行数据传输, 从而保持了高传输速率的特点, 移动设备间数据交换的效率较 高。 因此本发明具有很强的工业实用性。

Claims

权 利 要 求 书
1、 一种数据传输方法, 用于一数据接收终端, 该方法包括:
接收数据发送终端发送的近场通信标签;
解析所述近场通信标签, 得到传输信息;
根据所述传输信息与所述数据发送终端建立连接; 以及
通过建立的连接接收所述数据发送终端发送的数据;
其中所述传输信息以近场通信数据交换格式写入所述近场通信标签。
2、 根据权利要求 1所述的数据传输方法, 其中:
所述近场通信标签还携带以近场通信数据交换格式写入的数据信息, 所 述数据信息包括数据的文件名、 文件后缀名和文件大小;
通过建立的连接接收所述数据发送终端发送的数据的步骤包括: 所述数 据接收终端根据所述数据信息通过建立的连接接收所述数据发送终端发送的 数据。
3、 根据权利要求 1所述的数据传输方法, 其中:
所述传输信息包括蓝牙设备硬件地址;
根据所述传输信息与所述数据发送终端建立连接的步骤包括: 所述数据 接收终端根据所述蓝牙设备硬件地址与所述数据发送终端建立蓝牙连接。
4、 根据权利要求 1所述的数据传输方法, 其中:
所述传输信息包括所述数据发送终端的 WIFI信息;
根据所述传输信息与所述数据发送终端建立连接的步骤包括: 所述数据 接收终端根据所述数据发送终端的 WIFI信息与所述数据发送终端建立端口 连接。
5、 根据权利要求 4所述的数据传输方法, 其中:
所述数据发送终端的 WIFI信息包括所述数据发送终端连接的无线接入 点的服务集标识, 身份认证密钥和所述数据发送终端的 IP地址;
所述数据接收终端根据所述数据发送终端的 WIFI信息与所述数据发送 终端建立端口连接的步骤包括:
所述数据接收终端根据所述数据发送终端连接的无线接入点的服务集标 识判断是否与所述数据发送终端接入同一无线接入点;
所述数据接收终端与所述数据发送终端接入同一无线接入点时, 直接根 据所述数据发送终端的 IP地址建立端口连接。
6、 根据权利要求 5所述的数据传输方法, 其中, 所述数据接收终端根据 所述数据发送终端的 WIFI信息与所述数据发送终端建立端口连接的步骤还 包括:
当所述数据接收终端与所述数据发送终端接入不同无线接入点时, 所述 数据接收终端与自身原有的无线接入点断开连接;
所述数据接收终端根据所述数据发送终端连接的无线接入点的服务集标 识和身份认证密钥与所述数据发送终端连接的无线接入点建立连接;
所述数据接收终端根据所述发送终端的 IP地址建立端口连接。
7、 一种终端设备, 用于数据传输, 所述终端设备包括近场通信单元和连 接单元, 其中:
所述近场通信单元设置成: 接收数据发送终端发送的近场通信标签和解 析所述近场通信标签得到传输信息, 所述传输信息以近场通信数据交换格式 写入所述近场通信标签;
所述连接单元设置成: 根据所述传输信息与所述数据发送终端建立连接 并通过建立的连接接收所述数据发送终端发送的数据。
8、 根据权利要求 7所述的终端设备, 其中:
所述近场通信标签还携带以近场通信数据交换格式写入的数据信息, 所 述数据信息包括数据的文件名、 文件后缀名和文件大小;
所述连接单元设置成按照如下方式根据所述传输信息与所述数据发送终 端建立连接并通过建立的连接接收所述数据发送终端发送的数据: 根据所述 传输信息与所述数据发送终端建立连接, 并通过建立的连接依据所述数据信 息接收所述数据发送终端发送的数据。
9、 根据权利要求 7所述的终端设备, 其中:
所述传输信息包括蓝牙设备硬件地址;
所述连接单元为蓝牙设备单元, 设置成按照如下方式根据所述传输信息 与所述数据发送终端建立连接: 根据所述蓝牙设备硬件地址与所述数据发送 终端的蓝牙设备单元建立蓝牙连接。
10、 根据权利要求 7所述的终端设备, 其中:
所述传输信息包括所述数据发送终端的 WIFI信息;
所述连接单元为 WIFI连接单元,设置成按照如下方式根据所述传输信息 与所述数据发送终端建立连接: 根据所述数据发送终端的 WIFI信息与所述数 据发送终端建立端口连接。
11、 根据权利要求 10所述的终端设备, 其中:
所述数据发送终端的 WIFI信息包括所述数据发送终端连接的无线接入 点的服务集标识, 身份认证密钥和所述数据发送终端的 IP地址;
所述近场通信单元包括获得模块和判断模块, 其中:
所述获得模块设置成: 获得所述终端设备连接的无线接入点的服务集标 识;
所述判断模块设置成: 根据所述数据发送终端连接的无线接入点的服务 集标识判断是否与所述数据发送终端接入同一无线接入点;
所述 WIFI连接单元包括端口连接模块和接入连接模块, 其中: 所述端口连接模块设置成: 所述终端设备与所述数据发送终端接入同一 无线接入点时, 根据所述数据发送终端的 IP地址建立端口连接;
所述接入连接模块设置成: 所述终端设备与所述数据发送终端接入不同 无线接入点时, 与原有的无线接入点断开连接, 根据所述数据发送终端连接 的无线接入点的服务集标识和身份认证密钥与所述数据发送终端连接的无线 接入点建立连接。
12、 一种终端设备, 用于数据传输, 所述设备包括近场通信单元和连接 单元, 其中: 所述近场通信单元设置成: 将传输信息以近场通信数据交换格式写入近 场通信标签并发送至数据接收终端, 使得所述数据接收终端根据所述传输信 息与所述终端设备建立连接;
所述连接单元设置成: 与所述数据接收终端建立连接并通过建立的连接 向所述数据接收终端发送数据。
13、 根据权利要求 12所述的终端设备, 其中:
所述近场通信标签还携带以近场通信数据交换格式写入的用于供数据接 收终端接收所述终端设备发送的数据的数据信息, 所述数据信息包括数据的 文件名、 文件后缀名和文件大小。
14、 根据权利要求 12所述的终端设备, 其中:
所述传输信息为蓝牙设备硬件地址, 所述连接单元为蓝牙设备单元。
15、 根据权利要求 12所述的终端设备, 其中:
所述传输信息为 WIFI信息,所述 WIFI信息包括所述终端设备连接的无线 接入点的服务集标识, 身份认证密钥和所述终端设备的 IP地址;
所述连接单元为 WIFI连接单元。
PCT/CN2013/080924 2012-10-18 2013-08-06 数据传输方法及终端设备 WO2014059813A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210397751.2 2012-10-18
CN201210397751.2A CN103781068A (zh) 2012-10-18 2012-10-18 数据传输方法及终端设备

Publications (1)

Publication Number Publication Date
WO2014059813A1 true WO2014059813A1 (zh) 2014-04-24

Family

ID=50487530

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/080924 WO2014059813A1 (zh) 2012-10-18 2013-08-06 数据传输方法及终端设备

Country Status (2)

Country Link
CN (1) CN103781068A (zh)
WO (1) WO2014059813A1 (zh)

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104023016B (zh) * 2014-06-09 2018-03-06 天津三星通信技术研究有限公司 在通讯终端建立通讯连接的方法和设备
CN105376621A (zh) * 2014-08-20 2016-03-02 深圳Tcl新技术有限公司 显示控制方法、智能显示终端及便携控制终端
CN105592524A (zh) * 2014-10-23 2016-05-18 中兴通讯股份有限公司 一种终端连接无线接入点的方法及相应终端、无线接入点
CN104639975A (zh) * 2015-02-28 2015-05-20 乐视致新电子科技(天津)有限公司 一种无线高清连接建立方法和装置
CN104754514B (zh) * 2015-03-26 2019-04-09 Oppo广东移动通信有限公司 一种文件推送方法及装置、文件接收方法及装置
CN105025085B (zh) * 2015-06-11 2019-01-01 福建联迪商用设备有限公司 一种基于WiFi热点的信息推送方法、设备及***
CN105101055A (zh) * 2015-07-03 2015-11-25 惠州Tcl移动通信有限公司 文件传输的方法及智能设备
CN106375932A (zh) * 2015-07-24 2017-02-01 深圳市道通智能航空技术有限公司 无人机联网方法、装置和无人机控制***
CN105554062A (zh) * 2015-11-30 2016-05-04 东莞酷派软件技术有限公司 一种文件传输方法、相关设备和***
CN107529124A (zh) * 2016-06-21 2017-12-29 中兴通讯股份有限公司 一种无线直连建立方法、装置和***
CN106658360A (zh) * 2016-10-19 2017-05-10 广东欧珀移动通信有限公司 一种数据传输方法及设备
US10206083B2 (en) * 2016-12-30 2019-02-12 Intel Corporation Using wireless display docking technology over infrastructure networks
CN108319825B (zh) * 2017-01-17 2021-08-06 中兴通讯股份有限公司 一种数据传输方法及终端
CN108810863A (zh) * 2018-06-16 2018-11-13 江苏云之尚节能科技有限公司 一种在终端设备中发送内容的方法
AU2018443268B2 (en) * 2018-09-30 2022-12-01 Huawei Technologies Co., Ltd. File transfer method and electronic device
US20210400744A1 (en) * 2018-09-30 2021-12-23 Huawei Technologies Co., Ltd. Data Transfer Method and Electronic Device
CN111885567A (zh) * 2020-07-08 2020-11-03 上海金智晟东电力科技有限公司 配电终端的交互式运维方法及***
CN111882707B (zh) * 2020-07-15 2022-08-19 珠海优特电力科技股份有限公司 锁具控制方法和装置
CN112566083A (zh) * 2020-11-19 2021-03-26 歌尔光学科技有限公司 终端设备的唤醒方法、终端设备及存储介质
WO2024036532A1 (en) * 2022-08-17 2024-02-22 Stmicroelectronics (China) Investment Co., Ltd System and method for providing data to nfc device
CN116963062B (zh) * 2023-09-20 2024-03-29 深圳市爱玛森科技有限公司 一种基于近距通讯的移动设备交互方法及***

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101534505A (zh) * 2008-03-10 2009-09-16 索尼株式会社 通信装置和通信方法
CN102057374A (zh) * 2008-06-08 2011-05-11 苹果公司 用于简化数据传输的***和方法
WO2012037691A1 (en) * 2010-09-23 2012-03-29 Research In Motion Limited Communications system providing data transfer using selective wireless communications formats and related methods
CN102457849A (zh) * 2010-10-20 2012-05-16 诺基亚公司 具有带外启动的无线对接

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101534505A (zh) * 2008-03-10 2009-09-16 索尼株式会社 通信装置和通信方法
CN102057374A (zh) * 2008-06-08 2011-05-11 苹果公司 用于简化数据传输的***和方法
WO2012037691A1 (en) * 2010-09-23 2012-03-29 Research In Motion Limited Communications system providing data transfer using selective wireless communications formats and related methods
CN102457849A (zh) * 2010-10-20 2012-05-16 诺基亚公司 具有带外启动的无线对接

Also Published As

Publication number Publication date
CN103781068A (zh) 2014-05-07

Similar Documents

Publication Publication Date Title
WO2014059813A1 (zh) 数据传输方法及终端设备
EP3550888B1 (en) Wireless connection switching method and terminal
KR101619279B1 (ko) 무선 직렬 버스(wsb) 서비스에 대한 트랜스포트 모드
EP2489236B1 (en) Apparatus and method for establishing a personal network for providing a cpns service
EP3005822B1 (en) Mac layer transport for wi-fi direct services application service platform without internet protocol
US9535638B2 (en) Directly transferring data between devices
EP3005759A1 (en) Access control for wireless docking
KR20130142394A (ko) Wi-Fi P2P 네트워크에서 단말 간 연결 방법 및 그 단말
WO2014206321A1 (zh) 蓝牙通信方法及蓝牙通信设备
WO2014134787A1 (zh) 近场通信射频通信方法、装置和终端设备
WO2014189661A1 (en) Wireless docking architecture
WO2016090120A1 (en) Discovery and management of synchronous audio or video streaming service to multiple sinks in wireless display system
CN103067050B (zh) 一种通信***及方法
CN103716393A (zh) 资源共享的方法、装置及用于局域网通信的终端
EP3005762B1 (en) Wireless docking
CN104541569A (zh) 生成用于Wi-Fi直连服务的P2P群组的方法和装置
CN101807945A (zh) 无线数据传输***和采用该***的数据传输方法
TWI699107B (zh) 多登入認證用戶的群組建立方法及其切換裝置
SG194651A1 (en) Method and device for establishing conversation relation
CN102036240A (zh) 将手机信息同步到pc的方法、手机、计算机及网络***
WO2012149700A1 (zh) 基于nfc技术链接目标wlan设备的方法、设备及***
CN105451368B (zh) 一种通信方法及设备
WO2012174722A1 (en) Method and apparatus for providing a virtual sim for mobile communications
WO2015139401A1 (zh) 无线网络的建立方法、***及无线路由装置
KR101809317B1 (ko) 데이터 액세스 방법 및 장치

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

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

Country of ref document: EP

Kind code of ref document: A1