WO2017219657A1 - 一种无线直连建立方法、装置和系统 - Google Patents

一种无线直连建立方法、装置和系统 Download PDF

Info

Publication number
WO2017219657A1
WO2017219657A1 PCT/CN2017/070179 CN2017070179W WO2017219657A1 WO 2017219657 A1 WO2017219657 A1 WO 2017219657A1 CN 2017070179 W CN2017070179 W CN 2017070179W WO 2017219657 A1 WO2017219657 A1 WO 2017219657A1
Authority
WO
WIPO (PCT)
Prior art keywords
connection
information
target
nfc tag
network
Prior art date
Application number
PCT/CN2017/070179
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 WO2017219657A1 publication Critical patent/WO2017219657A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Definitions

  • the embodiments of the present invention relate to a wireless network management technology, and in particular, to a wireless direct connection (WiFi Direct, Wireless Fidelity Direct) establishing method, apparatus, and system.
  • WiFi Direct Wireless Fidelity Direct
  • WiFi Display is a wireless display technology based on WiFi Direct, which can display the audio and video content of the terminal on the display device through the WiFi Direct standard.
  • the core function of WiFi Display is to let video and audio data be shared between devices via WiFi wireless network. Take a simple application scenario as an example: With WiFi Display, the video in the mobile terminal can be delivered to the TV for display by directly using the WiFi between the mobile terminal and the TV.
  • Miracast is the authentication name for devices that support WiFi Display.
  • Miracast's connection process mainly includes the following steps:
  • Step 1 Device Discovery: Device A uses a wireless peer-to-peer (WiFi P2P, WiFi Peer to Peer) to find nearby devices that support WiFi P2P.
  • WiFi P2P WiFi P2P, WiFi Peer to Peer
  • Step 2 Device Selection: After device A discovers device B that supports WiFi P2P, device A needs to prompt the user, and the user can select whether to pair with device B as needed.
  • Step 3 Connection Setup: The connection between the source (Source) and the display (Display) device is established through WiFi P2P; according to the WiFi Direct technical specification, this step includes establishing a group owner (Group Owner) and a client. (Client); after that, the two devices will establish a Transmission Control Protocol (TCP) connection, and a port for Real Time Streaming Protocol (RTSP) will be created for subsequent Session management and control work;
  • TCP Transmission Control Protocol
  • RTSP Real Time Streaming Protocol
  • Step 4 Capability Negotiation: The official transmission of video and audio Before the data, the Source and Display devices need to exchange some Miracast parameter information, such as the video and audio formats supported by both parties; after the negotiation is successful, the following processes can be continued;
  • Step 5 Session Establishment and streaming:
  • the Source and Display devices will create a Miracast Session to start transmitting video and audio data; the video and audio data on the Source will be transmitted via the Motion Picture Experts Group 2 (MPEG2-TS, Moving). Picture Experts Group-Transport Stream) is encoded and transmitted to the Display device through the Real-time Transport Protocol (RTP); the Display device will decode the received data and finally display it.
  • MPEG2-TS Motion Picture Experts Group 2
  • RTP Real-time Transport Protocol
  • the policy in the Device Discovery phase is: When scanning the peer device, both devices will be in channel 1 (CH1, Channel 1), channel 6 (CH6, Channel 6), and channel 11 (CH11, Channel 11).
  • CH1, Channel 1 channel 1
  • CH6, Channel 6 channel 6
  • CH11, Channel 11 channel 11
  • the hopping detection between the three channels can detect the peer device when the devices at both ends jump to the same channel at the same time, which may cause the problem that the scanning peer device takes too long or cannot scan the peer device;
  • the selection phase the user needs to initiate a connection invitation at one end, and the connection can be established after the peer selects to accept the invitation; this makes the operation process relatively cumbersome and brings great inconvenience to the user.
  • the embodiment of the present invention is to provide a method, an apparatus, and a system for establishing a WiFi Direct, so as to at least simplify the connection process of the WiFi Direct, shorten the connection time, facilitate user operations, and enhance the user experience.
  • a method for establishing a WiFi Direct is provided, and the network connection information of the target connection device is set to NFC (Near Field Communication) tag information.
  • the method further includes:
  • Extracting the network connection information from the NFC tag information, according to the network connection Information is connected to the target connection device.
  • the setting the network connection information of the target connection device to the NFC tag information includes:
  • the network address includes: a MAC address.
  • the connecting the target connection device according to the network connection information includes:
  • a connection request is sent to the network address through the network communication channel, and a connection is established.
  • the setting the network connection information of the target connection device to the NFC tag information includes:
  • the method further includes: after the target device determines that the NFC tag information is read, the network communication channel listens for the connection request.
  • a WiFi Direct establishing apparatus comprising: a setting module, an obtaining module, and a connecting module; wherein
  • the setting module is configured to set network connection information of the target connection device to NFC tag information
  • the acquiring module is configured to acquire NFC tag information of the target connection device
  • the connection module is configured to extract the network connection information from the NFC tag information, and connect the target connection device according to the network connection information.
  • the setting module is specifically configured to:
  • the network address includes: a MAC address.
  • connection module is specifically configured to:
  • a connection request is sent to the network address through the network communication channel, and a connection is established.
  • the setting module is further configured to:
  • the apparatus further includes: a listening module configured to listen to the connection request on the network communication channel after the target device determines that its NFC tag information is read.
  • a listening module configured to listen to the connection request on the network communication channel after the target device determines that its NFC tag information is read.
  • a WiFi Direct establishing system comprising: a connection initiating device and a target connecting device;
  • the target connection device is configured to set its own network connection information as NFC tag information
  • the connection initiation device is configured to acquire NFC tag information of the target connection device, extract the network connection information from the NFC tag information, and connect the target connection device according to the network connection information.
  • a storage medium is also provided.
  • the storage medium is arranged to store program code for performing the following steps:
  • the network connection information of the target connection device is set to NFC tag information; the NFC tag information of the target connection device is acquired; and the NFC tag information is extracted from the NFC tag information.
  • the network connection information is connected to the target connection device according to the network connection information; thus, the current WiFi Direct can be omitted.
  • the steps of scanning the target connection device in each channel; the steps of confirming the connection by the user are omitted; the connection process of the WiFi Direct is simplified, the connection time is shortened, the user operation is facilitated, and the user experience is enhanced.
  • FIG. 1 is a schematic flowchart of a method for establishing a wireless direct connection according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a structure of an NFC data exchange format according to an embodiment of the present invention
  • connection initiating device and a target connecting device according to an embodiment of the present invention
  • connection process of a connection initiation device according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of a connection process of a target connection device according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a structure of a wireless direct connection establishing apparatus according to an embodiment of the present invention.
  • the network connection information of the target connection device is set as NFC tag information; the NFC tag information of the target connection device is acquired; the network connection information is extracted from the NFC tag information, and the network connection is obtained according to the network connection. Information is connected to the target connection device.
  • the method for establishing a WiFi Direct provided by the embodiment of the present invention is as shown in FIG. 1 , and the method includes:
  • Step 101 Set network connection information of the target connection device to NFC tag information.
  • a WiFi Direct device establishes a connection through a group, including a one-to-one or one-to-many topology; wherein the one-to-one form of actual application is: two terminals are connected through a WiFi Direct and perform P2P transmission. Or a terminal connects to a display device through WiFi Direct and transmits a display screen, etc.; the one-to-many practical application situation is: multiple terminals connect to the same printing device through WiFi Direct;
  • WiFi Direct is usually initiated by a connection initiation device, and attempts to initiate a connection to the target connection device, wherein the connection initiation device may be a terminal, a computer, etc., and the target connection device may be a terminal, a computer, a display device, a printing device, etc.;
  • the Discovery phase when scanning the target connection device, the devices at both ends will hop between the three channels CH1, CH6, and CH11. When the devices at both ends jump to the same channel at the same time, the peer device can be scanned.
  • the Device Selection phase the user needs to initiate a connection invitation at one end, and the connection can be established after the peer chooses to accept the invitation.
  • NFC Near Field Communication
  • the network connection information of the target connection device may be added to the NFC tag information; the network connection information may include: a media access control (MAC) address and communication channel information of the target connection device WiFi; Each network device is unique. Each network device is only for a unique MAC address.
  • the network connection information of the NFC storage target connection device can adopt the data format agreed by the NFC organization, that is, NFC data exchange. Format (NDEF, NFC Data Exchange Format).
  • NDEF NFC Data Exchange Format
  • the NDEF is composed of various data records, and each record is composed of a header and a payload, wherein the MAC address and communication channel information of the WiFi can be stored in a payload, such as WiFi://mac 00. :D0:D0:EF:A8:E6CH6.
  • the MAC address is only an example, and may be other legal P2P device MAC addresses.
  • the CH6 channel is only an example, and may also be other legal channels.
  • the NFC tag information may be NFC tag information carried by the physical NFC card, or may be NFC tag information carried by the NFC device in the target connection device in the card mode; the NFC device generally has three working modes: Card mode, card reader mode and peer-to-peer mode; here, the NFC device can be set in the card mode and store the network connection information of the target connection device.
  • the method for setting the network connection information to the NFC tag information includes: writing the network connection information to the NFC card by using an NFC tag reader/writer; directly writing the network connection information to the control chip card of the NFC device directly through a user interface. Mode tag content cache, etc.
  • Step 102 Acquire NFC tag information of the target connection device.
  • connection initiating device can read the NFC tag information of the target connecting device in the card reader mode by its own NFC device.
  • Step 103 Extract the network connection information from the NFC tag information, and connect the target connection device according to the network connection information.
  • connection initiating device extracts the network connection information according to the NFC tag information, and initiates a connection to the target connection device;
  • the connection initiating device may extract the network connection information in a Payload location of the NFC tag information of the read NDEF data format, after reading the WiFi MAC address information of the target connection device and the communication channel information, And sending, according to the MAC address information, connection request information to the MAC address in the communication channel information;
  • the connection request information may be: a probe request frame (Probe Request) frame;
  • the WiFi Direct connection may be established by using the current WiFi Direct process.
  • the method includes: after receiving the Probe Request request frame, the target connection device responds to the Probe Response frame; the connection initiator receives the After the Probe Response frame, the group owner negotiation request (GO Negotiation Request) frame is sent; after the target connection device receives the GO Negotiation Request frame, the response group owner negotiates the response. (GO Negotiation Response) frames, etc.; until the connection succeeds or fails.
  • the method further includes: the connection initiating device determining whether the network connection information is included in the NFC tag information, if Referring to the network connection information, the connection to the target connection device is started. Since the NFC tag information on the target connection device is not necessarily set for establishing WiFi Direct, there may be some other information. Therefore, after obtaining the NFC tag information, the content needs to be checked, and if it is the network connection information, it is started. The network connection process, otherwise, the network connection process is not performed.
  • the connection request information can be monitored in the communication channel in the network connection information, and the connection request information can be: Probe Request frame.
  • This embodiment provides an interaction step between the connection initiating device and the target connecting device in the WiFi Direct quick connection based on WiFi Direct by using NFC.
  • the device 1 is a connection initiation device
  • the device 2 is a target connection device
  • the device 2 is connected as a Sink end of the WiFi Display and a device 1 as a Source end of the WiFi Display;
  • Step 301 The device 2 is set to the NFC card mode, and stores the MAC address of the WiFi and the specific channel. After sensing the RF field, the device 1 reads in the NFC reader mode.
  • Step 302 After detecting that the MAC address and channel of the WiFi are read, the device 2 monitors the Probe Request frame on the channel.
  • the device 1 After reading the MAC address and channel of the WiFi, the device 1 sends a Probe Request frame on the channel according to the MAC address;
  • Device 2 After receiving the Probe Request frame, Device 2 responds to the Probe Response frame.
  • Step 303 After receiving the Probe Response frame, the device 1 sends a GO Negotiation Request frame.
  • the device 2 After receiving the GO Negotiation Request request frame, the device 2 responds to the GO Negotiation Response frame;
  • device 2 can determine whether it is in the NFC card emulation mode. If yes, set the decision value: the intent parameter is the maximum value to ensure the role of the group owner (Group Owner).
  • Step 304 After the device 1 and the device 2 establish a group, the device 1 initiates a connection.
  • the connection process is based on a Wi-Fi Protected Setup (WPS) process, and there is no difference between the other WiFi Direct connection processes;
  • WPS Wi-Fi Protected Setup
  • Device 2 can determine whether it is in the NFC card emulation mode, and if so, configure it to be the most Miracast Sink end, and connect to the Source end;
  • Device 2 is the Miracast Sink end and is connected to the Source end of Device 1.
  • the Miracast connection process can be connected using standard protocols.
  • the workflow of the device 1 connecting the initiator device, as shown in FIG. 4, includes:
  • Step 401 Start the card reader mode of the NFC block, so that the card can be read normally;
  • Step 402 Read data in the NFC tag when it is sensed that the RF field has an NFC tag.
  • Step 403 Determine the data in the read NFC tag to see whether the MAC address information of the WiFi is included, if the MAC address information of the WiFi is included, proceed to step 404, otherwise, proceed to step 402;
  • Step 404 Start the Miracast function.
  • Step 405 Turn on the WiFi Direct, and initiate a connection request to the device according to the MAC address information of the WiFi read in step 402.
  • Step 406 Perform a WiFi Direct connection with the peer device, and use the WPS PBC mode to automatically negotiate during the connection. If the P2P connection is successful, proceed to step 407, otherwise proceed to step 402;
  • Step 407 After receiving the WiFi Direct connection success message, triggering the Miracast Source end to initiate a connection request to the Sink end;
  • Step 408 The Miracast connection is successful, and the screen is implemented; if the Miracast connection fails, the process proceeds to step 402.
  • Step 501 Start the NFC card emulation mode, read the MAC address of the WiFi module, and store it in the NDEF grid number so that it can be read normally.
  • Step 502 When the RF field is sensed, according to the read data information, it is determined that if the specific information read includes the WiFi MAC address, then proceeds to step 503, and if not, proceeds to step 501;
  • Step 503 Start the Miracast function.
  • Step 504 Turn on the WiFi Direct function, wait for the peer device 1 to send a connection request, and negotiate with the peer device 1 to establish a P2P connection.
  • the device 2 receives the WiFi Direct connection request sent by the device 1, and responds to the peer to accept the connection request;
  • Device 2 will further trigger the WPS function to make WPS negotiation with device 1;
  • Step 505 After the P2P connection is established through negotiation, the Miracast Sink is triggered to connect with the Miracast Source.
  • the device includes: a setting module 61, an obtaining module 62, and a connection module 63.
  • the setting module 61 is configured to set network connection information of the target connection device to NFC tag information
  • a WiFi Direct device establishes a connection through a group, including a one-to-one or one-to-many topology; wherein the one-to-one form of actual application is: two terminals are connected through a WiFi Direct and perform P2P transmission. Or a terminal connects to a display device through WiFi Direct and transmits a display screen, etc.; the one-to-many practical application situation is: multiple terminals connect to the same printing device through WiFi Direct;
  • WiFi Direct is usually initiated by a connection initiator, attempting to initiate to the target connection
  • the connection initiation device may be a terminal, a computer, or the like, and the target connection device may be a terminal, a computer, a display device, a printing device, etc.;
  • the Device Discovery phase when the target connection device is scanned, both devices are sequentially The hopping between the three channels of CH1, CH6, and CH11 is detected. When the devices at both ends jump to the same channel at the same time, the peer device can be scanned.
  • the user needs to initiate a connection invitation at one end. The connection can only be established after accepting the invitation;
  • NFC Near Field Communication
  • the network connection information of the target connection device may be added to the NFC tag information; the network connection information may include: a MAC address of the target connection device WiFi and communication channel information; the MAC address is unique to any network device.
  • Each network device is only for a unique MAC address; as shown in FIG. 2, the network connection information of the NFC storage target connection device may adopt a data format agreed by the NFC organization, that is, NDEF.
  • NDEF consists of various data records, and each record consists of Header and Payload.
  • the MAC address and communication channel information of WiFi can be stored in the payload, such as WiFi://mac 00:D0:D0:EF:A8:E6CH6 .
  • the MAC address is only an example, and may be another legal P2P device MAC address.
  • the CH6 channel is only an example, and may also be other legal channels.
  • the NFC tag information may be NFC tag information carried by the physical NFC card, or may be NFC tag information carried by the NFC device in the target connection device in the card mode; the NFC device generally has three working modes: Card mode, card reader mode and peer-to-peer mode; here, the NFC device can be set in the card mode and store the network connection information of the target connection device.
  • the method for setting the network connection information to NFC tag information includes: writing the network connection information to an NFC card by using an NFC tag reader/writer; and directly using the user interface to the network The connection information is directly written to the tag content cache of the control chip card mode of the NFC device.
  • the obtaining module 62 is configured to acquire NFC tag information of the target connecting device.
  • the obtaining module 62 may be an NFC device connected to the initiating device and operates in a card reader mode; the NFC tag information of the target connecting device is read by the obtaining module 62.
  • the connection module 63 is configured to extract the network connection information from the NFC tag information, and connect the target connection device according to the network connection information;
  • connection initiating device extracts the network connection information according to the NFC tag information, and initiates a connection to the target connection device;
  • the connection initiating device may extract the network connection information in a Payload location of the NFC tag information of the read NDEF data format, after reading the WiFi MAC address information of the target connection device and the communication channel information, And sending, according to the MAC address information, connection request information to the MAC address in the communication channel information;
  • the connection request information may be: a Probe Request frame;
  • the WiFi Direct connection may be established by using the current WiFi Direct process.
  • the target connection device responds to the Probe Response frame after receiving the Probe Request request frame, and the connection initiator receives the Probe Response frame. Sending a GO Negotiation Request frame; after receiving the GO Negotiation Request frame, the target connection device responds to the GO Negotiation Response frame, etc.; until the connection succeeds or fails.
  • the connecting module 63 is further configured to determine whether the network connection information is included in the NFC tag information, if the network connection is included Information, then the connection to the target connection device begins. Since the NFC tag information on the target connection device is not necessarily set for establishing WiFi Direct, there may be some other information. Therefore, after obtaining the NFC tag information, the content needs to be checked, and if it is the network connection information, it is started. The network connection process, otherwise, the network connection process is not performed.
  • the WiFi Direct establishing apparatus further includes: After the target connection device can detect that its NFC tag information is read in the card mode, the listening module 64 can listen for the connection request information in the communication channel in the network connection information, and the connection request information can be: Probe Request frame.
  • the setting module 61 and the obtaining module 62 may be an NFC device, a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field programmable gate of a WiFi Direct device.
  • the combination of the array (FPGA) and the like is implemented; the connection module 63 and the listening module 64 can be implemented by a combination of a WiFi device, a CPU, an MPU, a DSP, or an FPGA of the WiFi Direct device.
  • the WiFi Direct establishing system includes: a connection initiating device and a target connecting device; wherein
  • the target connection device is configured to set its own network connection information as NFC tag information
  • a WiFi Direct device establishes a connection through a group, including a one-to-one or one-to-many topology; wherein the one-to-one form of actual application is: two terminals are connected through a WiFi Direct and perform P2P transmission. Or a terminal connects to a display device through WiFi Direct and transmits a display screen, etc.; the one-to-many practical application situation is: multiple terminals connect to the same printing device through WiFi Direct.
  • WiFi Direct is usually initiated by a connection initiation device, and attempts to initiate a connection to the target connection device, wherein the connection initiation device may be a terminal, a computer, etc., and the target connection device may be a terminal, a computer, a display device, a printing device, etc.;
  • the Discovery phase when scanning the target connection device, the devices at both ends will hop between the three channels CH1, CH6 and CH11. When the devices at both ends jump to the same channel at the same time, the device can be scanned.
  • the Device Selection phase the user needs to initiate a connection invitation at one end, and the connection can be established after the peer chooses to accept the invitation.
  • NFC Near Field Communication
  • the network connection information of the target connection device may be added to the NFC tag information; the network connection information may include: a MAC address of the target connection device WiFi and communication channel information; the MAC address is unique to any network device. Each network device is only for a unique MAC address.
  • the network connection information of the NFC storage target connection device may adopt a data format agreed by the NFC organization, that is, NDEF.
  • NDEF consists of various data records, and each record consists of Header and Payload.
  • the MAC address and communication channel information of WiFi can be stored in the payload, such as WiFi://mac 00:D0:D0:EF:A8:E6CH6 .
  • the MAC address is only an example, and may be another legal P2P device MAC address.
  • the CH6 channel is only an example, and may also be other legal channels.
  • the NFC tag information may be NFC tag information carried by the physical NFC card, or may be NFC tag information carried by the NFC device in the target connection device in the card mode; the NFC device generally has three working modes: Card mode, card reader mode and peer-to-peer mode; here, the NFC device can be set in the card mode and store the network connection information of the target connection device.
  • the method for setting the network connection information to the NFC tag information includes: writing the network connection information to the NFC card by using an NFC tag reader/writer; directly writing the network connection information to the control chip card of the NFC device directly through a user interface. Mode tag content cache, etc.
  • the connection initiation device is configured to acquire NFC tag information of the target connection device, extract the network connection information from the NFC tag information, and connect the target connection device according to the network connection information.
  • the NFC device in the connection initiating device operates in a card reader mode; the NFC tag information of the target connecting device is read. And extracting the network connection information according to the NFC tag information, and initiating a connection to the target connection device;
  • the connection initiating device may extract the network connection information in a Payload location of the NFC tag information of the read NDEF data format, and read the target connection device. After the WiFi MAC address information and the communication channel information, the connection request information is actively sent to the MAC address in the communication channel information according to the MAC address information; the connection request information may be: a Probe Request frame.
  • the WiFi Direct connection may be established by using the current WiFi Direct process.
  • the target connection device responds to the Probe Response frame after receiving the Probe Request request frame, and the connection initiator receives the Probe Response frame. Sending a GO Negotiation Request frame; after receiving the GO Negotiation Request frame, the target connection device responds to the GO Negotiation Response frame, etc.; until the connection succeeds or fails.
  • connection initiating device extracts the network connection information from the NFC tag information
  • the connection initiating device determines whether the network connection information is included in the NFC tag information, if the network connection is included Information, then the connection to the target connection device begins. Since the NFC tag information on the target connection device is not necessarily set for establishing WiFi Direct, there may be some other information. Therefore, after obtaining the NFC tag information, the content needs to be checked, and if it is the network connection information, it is started. The network connection process, otherwise, the network connection process is not performed.
  • the target connection device After the target connection device can detect that its NFC tag information is read in the card mode, the target connection device can listen for the connection request information in the communication channel in the network connection information, and the connection request information can be: a Probe Request frame.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • Step 101 Set network connection information of the target connection device to NFC tag information.
  • Step 102 Acquire NFC tag information of the target connection device.
  • Step 103 Extract the network connection information from the NFC tag information, and connect the target connection device according to the network connection information.
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the method, device, and system for establishing a wireless direct connection provided by the embodiments of the present invention have the following beneficial effects: the steps of scanning the target connection device in each channel during the current WiFi Direct establishment process can be omitted; The user confirms the connection step; simplifies the connection process of WiFi Direct, shortens the connection time, facilitates user operation, and enhances the user experience.

Landscapes

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

Abstract

本发明实施例公开了一种无线直连(WiFi Direct)建立方法、装置和系统,该方法将目标连接装置的网络连接信息设置为近场通信(NFC)标签信息;获取所述目标连接装置的NFC标签信息;从所述NFC标签信息中提取所述网络连接信息,根据所述网络连接信息连接所述目标连接装置。

Description

一种无线直连建立方法、装置和系统 技术领域
本发明实施例涉及无线网络管理技术,尤其涉及一种无线直连(WiFi Direct,Wireless Fidelity Direct)建立方法、装置和系统。
背景技术
WiFi Direct标准允许无线网络中的设备无需通过无线路由器即可相互连接。无线显示(WiFi Display)是基于WiFi Direct一种无线显示技术,可以将终端的音视频内容通过WiFi Direct标准在显示装置上显示。WiFi Display的核心功能就是:让设备之间通过WiFi无线网络来分享视音频数据。以一个简单的应用场景为例:有了WiFi Display后,移动终端和电视机之间直接借助WiFi,就可以将移动终端中的视频投递到电视机上去显示。
Miracast是对支持WiFi Display功能的设备的认证名称,目前,Miracast的连接流程主要包括以下步骤:
步骤1、设备发现(Device Discovery):设备A通过无线点对点(WiFi P2P,WiFi Peer to Peer)来查找附近支持WiFi P2P的设备;
步骤2、设备选择(Device Selection):当设备A发现支持WiFi P2P的设备B后,设备A需要提示用户,用户可根据需要选择是否和设备B配对;
步骤3、连接配置(Connection Setup):源(Source)和显示(Display)设备之间通过WiFi P2P建立连接;根据WiFi Direct技术规范,这个步骤包括建立一个组所有者(Group Owner)和一个客户端(Client);此后,这两个设备将建立一个传输控制协议(TCP,Transmission Control Protocol)连接,同时一个用于实时流媒体协议(RTSP,Real Time Streaming Protocol)的端口将被创建用于后续的会话控制(Session)管理和控制工作;
步骤4、装置能力沟通(Capability Negotiation):在正式传输视音频 数据前,Source和Display设备需要交换一些Miracast参数信息,例如双方所支持的视音频格式等;二者协商成功后,才能继续后面的流程;
步骤5、会话建立和流(Session Establishment and streaming):Source和Display设备将建立一个Miracast Session,开始传输视音频数据;Source端的视音频数据将经由动态图像专家组2传输流(MPEG2-TS,Moving Picture Experts Group-Transport Stream)编码后通过实时传输协议(RTP,Real-time Transport Protocol)协议传给Display设备;Display设备将解码收到的数据,并最终显示出来。
Miracast连接步骤中,Device Discovery阶段的策略为:在扫描对端设备时,两端设备均会依次在通道1(CH1,Channel 1)、通道6(CH6,Channel6)和通道11(CH11,Channel 11)这三个信道之间跳变探测,当两端设备同时跳到同一信道时才可扫描到对端设备,容易造成扫描对端设备时间过长或扫描不到对端设备的问题;在Device Selection阶段,需要用户在一端发起连接邀请,在对端选择接受邀请后才能建立连接;这使得操作过程相对繁琐,给用户带来极大的不便。
因此,如何简化WiFi Direct的连接,缩短连接时间,方便用户的操作,增强了用户体验,是亟待解决的问题。
发明内容
有鉴于此,本发明实施例期望提供一种WiFi Direct建立方法、装置和系统,以至少能简化WiFi Direct的连接流程,缩短连接时间,方便用户操作,增强用户体验。
根据本发明的一个实施例,提供了一种WiFi Direct建立方法,将目标连接装置的网络连接信息设置为近场通信(NFC,Near Field Communication)标签信息;所述方法还包括:
获取所述目标连接装置的NFC标签信息;
从所述NFC标签信息中提取所述网络连接信息,根据所述网络连接 信息连接所述目标连接装置。
可选地,所述将目标连接装置的网络连接信息设置为NFC标签信息,包括:
将目标连接装置的网络通信信道和网络地址设置为NFC标签信息;
所述网络地址包括:MAC地址。
可选地,所述根据所述网络连接信息连接所述目标连接装置,包括:
通过所述网络通信信道,向所述网络地址发送连接请求,并建立连接。
可选地,所述将目标连接装置的网络连接信息设置为NFC标签信息,包括:
将所述目标连接装置中的NFC装置设置为卡模式,并将所述目标连接装置的网络连接信息设置为所述NFC装置在卡模式下承载的NFC标签信息。
可选地,所述获取目标装置的NFC标签信息之后,所述方法还包括:所述目标装置确定自身NFC标签信息被读取后,在所述网络通信信道侦听所述连接请求。
根据本发明的另一实施例,还提供了一种WiFi Direct建立装置,所述装置包括:设置模块、获取模块和连接模块;其中,
所述设置模块,设置为将目标连接装置的网络连接信息设置为NFC标签信息;
所述获取模块,设置为获取所述目标连接装置的NFC标签信息;
所述连接模块,设置为从所述NFC标签信息中提取所述网络连接信息,根据所述网络连接信息连接所述目标连接装置。
可选地,所述设置模块,具体设置为:
将目标连接装置的网络通信信道和网络地址设置为NFC标签信息;
所述网络地址包括:MAC地址。
可选地,所述连接模块,具体设置为:
通过所述网络通信信道,向所述网络地址发送连接请求,并建立连接。
可选地,所述设置模块,还设置为:
将所述目标连接装置中的NFC装置设置为卡模式,并将所述目标连接装置的网络连接信息设置为所述NFC装置在卡模式下承载的NFC标签信息。
可选地,所述装置还包括:侦听模块,设置为在所述目标装置确定自身NFC标签信息被读取后,在所述网络通信信道侦听所述连接请求。
根据本发明的再一实施例,还提供了一种WiFi Direct建立系统,所述系统包括:连接发起装置和目标连接装置;其中,
所述目标连接装置,设置为将自身的网络连接信息设置为NFC标签信息;
所述连接发起装置,设置为获取所述目标连接装置的NFC标签信息;从所述NFC标签信息中提取所述网络连接信息,根据所述网络连接信息连接所述目标连接装置。
根据本发明的又一个实施例,还提供了一种存储介质。该存储介质设置为存储用于执行以下步骤的程序代码:
将目标连接装置的网络连接信息设置为近场通信(NFC,Near Field Communication)标签信息;
获取所述目标连接装置的NFC标签信息;
从所述NFC标签信息中提取所述网络连接信息,根据所述网络连接信息连接所述目标连接装置。
本发明实施例所提供的WiFi Direct建立方法、装置和系统,将目标连接装置的网络连接信息设置为NFC标签信息;获取所述目标连接装置的NFC标签信息;从所述NFC标签信息中提取所述网络连接信息,根据所述网络连接信息连接所述目标连接装置;如此,可以省去目前WiFi Direct 建立过程中,在各通道扫描目标连接装置的步骤;也省去用户确认连接的步骤;简化WiFi Direct的连接流程,缩短连接时间,方便用户操作,增强用户体验。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1为本发明实施例无线直连建立方法的流程示意图;
图2为本发明实施例NFC数据交换格式的组成结构示意图;
图3为本发明实施例连接发起装置和目标连接装置之间的交互示意图;
图4为本发明实施例连接发起装置连接流程示意图;
图5为本发明实施例目标连接装置连接流程示意图;
图6为本发明实施例无线直连建立装置的组成结构示意图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
本发明实施例中,将目标连接装置的网络连接信息设置为NFC标签信息;获取所述目标连接装置的NFC标签信息;从所述NFC标签信息中提取所述网络连接信息,根据所述网络连接信息连接所述目标连接装置。
下面结合实施例对本发明实施例再作进一步详细的说明。
本发明实施例提供的WiFi Direct建立方法,如图1所示,所述方法包括:
步骤101:将目标连接装置的网络连接信息设置为NFC标签信息;
通常,WiFi Direct设备通过组建小组来建立连接,包括了一对一或一对多的拓扑形式;其中,所述一对一形式实际应用情况有:两台终端通过WiFi Direct连接并进行P2P传输,或一台终端通过WiFi Direct连接一台显示设备并传输显示画面等;所述一对多形式实际应用情况有:多台终端通过WiFi Direct连接同一台打印设备等;
WiFi Direct通常由一个连接发起装置发起,尝试向目标连接装置发起连接,其中,连接发起装置可以是终端、电脑等,所述目标连接装置可以是终端、电脑、显示设备、打印设备等;在Device Discovery阶段,扫描目标连接装置时,两端设备均会依次在CH1、CH6和CH11这三个信道之间跳变探测,当两端设备同时跳到同一信道时才可扫描到对端设备;在Device Selection阶段,需要用户在一端发起连接邀请,在对端选择接受邀请后才能建立连接;
随着近场通信(NFC,Near Field Communication)技术的完善,带有NFC功能的移动终端越来越多,NFC因其具有一键式操作的独特便捷性,如一键式付款等,使得NFC技术的应用已经越来越流行。带有NFC装置的设备可以在不接触NFC标签的情况下,非常快速地获取NFC标签中的信息;
这里,可以将目标连接装置的网络连接信息加入到NFC标签信息中;网络连接信息可以包括:目标连接装置WiFi的媒体访问控制(MAC,Media Access Control)地址和通信信道信息;MAC地址对任何一台网络设备来说都是唯一的,每个网络设备都只针对唯一的MAC地址;如图2所示,NFC存储目标连接装置的网络连接信息可以采用NFC组织约定的数据格式,即NFC数据交换格式(NDEF,NFC Data Exchange Format)。NDEF由各种数据记录(record)组成,而各个记录由报头(Header)和有效载荷(Payload)组成,其中WiFi的MAC地址和通信信道信息可以存储在有效载荷中,如WiFi://mac 00:D0:D0:EF:A8:E6CH6。其中,所 述MAC地址仅为示例,也可以是其他合法的P2P设备MAC地址,CH6信道仅为示例,也可以是其他合法的信道。
进一步的,所述NFC标签信息可以是物理NFC卡承载的NFC标签信息,也可以是所述目标连接装置中的NFC装置在卡模式下承载的NFC标签信息;NFC装置通常具有三种工作模式:卡模式、读卡器模式和点对点模式;这里,可以将NFC装置设置在卡模式下,并存储所述目标连接装置的网络连接信息。
所述网络连接信息设置为NFC标签信息的方法包括:将所述网络连接信息采用NFC标签读写器写入NFC卡;直接通过用户界面将所述网络连接信息直接写入NFC装置的控制芯片卡模式的标签内容缓存等。
步骤102:获取所述目标连接装置的NFC标签信息;
这里,连接发起装置可以通过自身的NFC装置在读卡器模式下读取所述目标连接装置的NFC标签信息。
步骤103:从所述NFC标签信息中提取所述网络连接信息,根据所述网络连接信息连接所述目标连接装置;
这里,所述连接发起装置根据NFC标签信息中提取所述网络连接信息,向所述目标连接装置发起连接;
具体的,所述连接发起装置可以在读取的NDEF数据格式的NFC标签信息的Payload位置提取所述网络连接信息,在读取到目标连接装置的WiFi MAC地址信息和所述通信信道信息后,依据所述MAC地址信息,主动在所述通信信道信息中向所述MAC地址发送连接请求信息;所述连接请求信息可以是:探测请求帧(Probe Request)帧;
所述连接发起装置发送连接请求信息后,可以采用目前的WiFi Direct流程建立WiFi Direct连接;包括:目标连接装置接收到Probe Request请求帧后,回应探测响应(Probe Response)帧;连接发起装置接收到Probe Response帧后,发送组所有者协商请求(GO Negotiation Request)帧;目标连接装置接收到GO Negotiation Request帧后,回应组所有者协商响应 (GO Negotiation Response)帧等;直至连接成功或失败。
进一步的,在所述连接发起装置获取所述目标连接装置的NFC标签信息之后,所述方法还包括:所述连接发起装置确定所述NFC标签信息中是否包含所述网络连接信息,如果包含所述网络连接信息,则开始连接所述目标连接装置。由于目标连接设备上的NFC标签信息不一定是为建立WiFi Direct设置的,有可能是一些其他信息,因此,在获取到NFC标签信息后需要对其内容进行检查,如果是网络连接信息,则启动网络连接流程,否则,不进行网络连接流程。
更进一步的,所述目标连接装置在卡模式下可以侦测到自身的NFC标签信息被读取后,可以在网络连接信息中的通信信道监听连接请求信息,所述连接请求信息可以是:Probe Request帧。
下面结合具体示例对本发明产生的积极效果作进一步详细的描述。
本实施例提供了通过NFC实现基于WiFi Direct的WiFi Display快速连接中连接发起装置和目标连接装置之间的交互步骤。如图3所示,设备1为连接发起装置,设备2为目标连接装置;设备2作为WiFi Display的Sink端与作为WiFi Display的Source端的设备1进行连接;
设备1和设备2具体的交互步骤为:
步骤301:设备2设置为NFC卡模式,并存储WiFi的MAC地址和特定信道,感应到射频场后,供设备1在NFC读取器模式下读取。
步骤302:设备2检测到WiFi的MAC地址和信道被读取后,在此信道监听Probe Request帧;
设备1读取WiFi的MAC地址和信道后,依据MAC地址,在此信道发送Probe Request帧;
设备2接收到Probe Request帧后,回应Probe Response帧。
步骤303:设备1接收到Probe Response帧后,发送GO Negotiation Request帧;
设备2接收到GO Negotiation Request请求帧后,回应GO Negotiation Response帧;
在WiFi Direct群组协商过程中,设备2可以判断自身是否处于NFC卡模拟方式,如果是,则设置决意值:intent参数为最大值,以确保成为组所有者(Group Owner)角色。
步骤304:设备1和设备2建立群组后,设备1发起连接,此连接过程基于Wi-Fi保护设置(WPS,Wi-Fi Protected Setup)过程,与其他WiFi Direct连接过程无差异;
设备2可以判断自身是否处于NFC卡模拟方式,如果是则,配置为最为Miracast Sink端,与Source端连接;
设备2为Miracast Sink端,与设备1的Source端连接,其Miracast连接过程可以采用标准协议连接。
设备1连接发起装置的工作流程,如图4所示,包括:
步骤401:启动NFC块的读卡器模式,使之可以正常读卡;
步骤402:当感应到射频场有NFC标签时读取NFC标签中的数据;
步骤403:对读取的NFC标签中的数据进行判断,看是否包含WiFi的MAC地址信息,如果包含WiFi的MAC地址信息,则进入步骤404,否则,进入步骤402;
步骤404:启动Miracast功能;
步骤405:打开WiFi Direct,依据步骤402所读取WiFi的MAC地址信息,向此设备发起连接请求;
步骤406:与对端设备进行WiFi Direct连接,连接过程中采用WPS PBC方式自动协商,如果P2P连接成功,则进入步骤407,否则进入步骤402;
步骤407:收到WiFi Direct连接成功消息后,触发Miracast Source端向Sink端发起连接请求;
步骤408:Miracast连接成功,实现投屏;如果Miracast连接失败,则进入步骤402。
设备2目标连接装置的工作流程,如图5所示:
步骤501:启动NFC卡模拟模式,读取自身WiFi模块的MAC地址,并以NDEF格数存储,使之可以正常被读取;
步骤502:当感应到射频场时,根据读取的数据信息,判断如果读取的特定信息包含WiFi MAC地址,则进入步骤503,如果不是则进入步骤501;
步骤503:启动Miracast功能;
步骤504:打开WiFi Direct功能,等待对端设备1发送连接请求,并和对端设备1协商建立P2P连接;
设备2会接收到设备1发送的WiFi Direct连接请求,并向对端回应接受连接请求;
设备2会进一步触发WPS功能,使之和设备1进行WPS协商;
步骤505:协商建立P2P连接后,触发Miracast Sink端,与Miracast Source端进行连接。
本发明实施例提供的WiFi Direct建立装置,如图6所示,所述装置包括:设置模块61、获取模块62和连接模块63;其中,
所述设置模块61,设置为将目标连接装置的网络连接信息设置为NFC标签信息;
通常,WiFi Direct设备通过组建小组来建立连接,包括了一对一或一对多的拓扑形式;其中,所述一对一形式实际应用情况有:两台终端通过WiFi Direct连接并进行P2P传输,或一台终端通过WiFi Direct连接一台显示设备并传输显示画面等;所述一对多形式实际应用情况有:多台终端通过WiFi Direct连接同一台打印设备等;
WiFi Direct通常由一个连接发起装置发起,尝试向目标连接装置发起 连接,其中,连接发起装置可以是终端、电脑等,所述目标连接装置可以是终端、电脑、显示设备、打印设备等;在Device Discovery阶段,扫描目标连接装置时,两端设备均会依次在CH1,CH6和CH11这三个信道之间跳变探测,当两端设备同时跳到同一信道时才可扫描到对端设备;在Device Selection阶段,需要用户在一端发起连接邀请,在对端选择接受邀请后才能建立连接;
随着近场通信(NFC,Near Field Communication)技术的完善,带有NFC功能的移动终端越来越多,NFC因其具有一键式操作的独特便捷性,如一键式付款等,使得NFC技术的应用已经越来越流行。带有NFC装置的设备可以在不接触NFC标签的情况下,非常快速地获取NFC标签中的信息;
这里,可以将目标连接装置的网络连接信息加入到NFC标签信息中;网络连接信息可以包括:目标连接装置WiFi的MAC地址和通信信道信息;MAC地址对任何一台网络设备来说都是唯一的,每个网络设备都只针对唯一的MAC地址;如图2所示,NFC存储目标连接装置的网络连接信息可以采用NFC组织约定的数据格式,即NDEF。NDEF由各种数据record组成,而各个记录由Header和Payload组成,其中WiFi的MAC地址和通信信道信息可以存储在有效载荷中,如WiFi://mac 00:D0:D0:EF:A8:E6CH6。其中,所述MAC地址仅为示例,也可以是其他合法的P2P设备MAC地址,CH6信道仅为示例,也可以是其他合法的信道。
进一步的,所述NFC标签信息可以是物理NFC卡承载的NFC标签信息,也可以是所述目标连接装置中的NFC装置在卡模式下承载的NFC标签信息;NFC装置通常具有三种工作模式:卡模式、读卡器模式和点对点模式;这里,可以将NFC装置设置在卡模式下,并存储所述目标连接装置的网络连接信息。
所述网络连接信息设置为NFC标签信息的方法包括:将所述网络连接信息采用NFC标签读写器写入NFC卡;直接通过用户界面将所述网络 连接信息直接写入NFC装置的控制芯片卡模式的标签内容缓存等。
所述获取模块62,设置为获取所述目标连接装置的NFC标签信息;
这里,所述获取模块62可以是连接发起装置的NFC装置,并且工作在读卡器模式下;由所述获取模块62读取所述目标连接装置的NFC标签信息。
所述连接模块63,设置为从所述NFC标签信息中提取所述网络连接信息,根据所述网络连接信息连接所述目标连接装置;
这里,所述连接发起装置根据NFC标签信息中提取所述网络连接信息,向所述目标连接装置发起连接;
具体的,所述连接发起装置可以在读取的NDEF数据格式的NFC标签信息的Payload位置提取所述网络连接信息,在读取到目标连接装置的WiFi MAC地址信息和所述通信信道信息后,依据所述MAC地址信息,主动在所述通信信道信息中向所述MAC地址发送连接请求信息;所述连接请求信息可以是:Probe Request帧;
所述连接发起装置发送连接请求信息后,可以采用目前的WiFi Direct流程建立WiFi Direct连接;包括:目标连接装置接收到Probe Request请求帧后,回应Probe Response帧;连接发起装置接收到Probe Response帧后,发送GO Negotiation Request帧;目标连接装置接收到GO Negotiation Request帧后,回应GO Negotiation Response帧等;直至连接成功或失败。
进一步的,在所述连接发起装置获取所述目标连接装置的NFC标签信息之后,所述连接模块63还设置为确定所述NFC标签信息中是否包含所述网络连接信息,如果包含所述网络连接信息,则开始连接所述目标连接装置。由于目标连接设备上的NFC标签信息不一定是为建立WiFi Direct设置的,有可能是一些其他信息,因此,在获取到NFC标签信息后需要对其内容进行检查,如果是网络连接信息,则启动网络连接流程,否则,不进行网络连接流程。
更进一步的,本发明实施例提供的WiFi Direct建立装置,还包括,所 述目标连接装置在卡模式下可以侦测到自身的NFC标签信息被读取后,侦听模块64可以在网络连接信息中的通信信道侦听连接请求信息,所述连接请求信息可以是:Probe Request帧。
在实际应用中,所述设置模块61、获取模块62可以由WiFi Direct设备的NFC装置、中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)、或现场可编程门阵列(FPGA)等组合实现;所述连接模块63和侦听模块64均可以由WiFi Direct设备的WiFi装置、CPU、MPU、DSP、或FPGA等组合实现。
本发明实施例提供的WiFi Direct建立系统,所述系统包括:连接发起装置和目标连接装置;其中,
所述目标连接装置,设置为将自身的网络连接信息设置为NFC标签信息;
通常,WiFi Direct设备通过组建小组来建立连接,包括了一对一或一对多的拓扑形式;其中,所述一对一形式实际应用情况有:两台终端通过WiFi Direct连接并进行P2P传输,或一台终端通过WiFi Direct连接一台显示设备并传输显示画面等;所述一对多形式实际应用情况有:多台终端通过WiFi Direct连接同一台打印设备等。
WiFi Direct通常由一个连接发起装置发起,尝试向目标连接装置发起连接,其中,连接发起装置可以是终端、电脑等,所述目标连接装置可以是终端、电脑、显示设备、打印设备等;在Device Discovery阶段,扫描目标连接装置时,两端设备均会依次在CH1,CH6和CH11这三个信道之间跳变探测,当两端设备同时跳到同一信道时才可扫描到对端设备;在Device Selection阶段,需要用户在一端发起连接邀请,在对端选择接受邀请后才能建立连接;
随着近场通信(NFC,Near Field Communication)技术的完善,带有NFC功能的移动终端越来越多,NFC因其具有一键式操作的独特便捷性,如一键式付款等,使得NFC技术的应用已经越来越流行。带有NFC装置 的设备可以在不接触NFC标签的情况下,非常快速地获取NFC标签中的信息;
这里,可以将目标连接装置的网络连接信息加入到NFC标签信息中;网络连接信息可以包括:目标连接装置WiFi的MAC地址和通信信道信息;MAC地址对任何一台网络设备来说都是唯一的,每个网络设备都只针对唯一的MAC地址。如图2所示,NFC存储目标连接装置的网络连接信息可以采用NFC组织约定的数据格式,即NDEF。NDEF由各种数据record组成,而各个记录由Header和Payload组成,其中WiFi的MAC地址和通信信道信息可以存储在有效载荷中,如WiFi://mac 00:D0:D0:EF:A8:E6CH6。其中,所述MAC地址仅为示例,也可以是其他合法的P2P设备MAC地址,CH6信道仅为示例,也可以是其他合法的信道。
进一步的,所述NFC标签信息可以是物理NFC卡承载的NFC标签信息,也可以是所述目标连接装置中的NFC装置在卡模式下承载的NFC标签信息;NFC装置通常具有三种工作模式:卡模式、读卡器模式和点对点模式;这里,可以将NFC装置设置在卡模式下,并存储所述目标连接装置的网络连接信息。
所述网络连接信息设置为NFC标签信息的方法包括:将所述网络连接信息采用NFC标签读写器写入NFC卡;直接通过用户界面将所述网络连接信息直接写入NFC装置的控制芯片卡模式的标签内容缓存等。
所述连接发起装置,设置为获取所述目标连接装置的NFC标签信息;从所述NFC标签信息中提取所述网络连接信息,根据所述网络连接信息连接所述目标连接装置。
这里,所述连接发起装置的中的NFC装置工作在读卡器模式下;读取所述目标连接装置的NFC标签信息。并根据NFC标签信息中提取所述网络连接信息,向所述目标连接装置发起连接;
具体的,所述连接发起装置可以在读取的NDEF数据格式的NFC标签信息的Payload位置提取所述网络连接信息在读取到目标连接装置的 WiFi MAC地址信息和所述通信信道信息后,依据所述MAC地址信息,主动在所述通信信道信息中向所述MAC地址发送连接请求信息;所述连接请求信息可以是:Probe Request帧。
所述连接发起装置发送连接请求信息后,可以采用目前的WiFi Direct流程建立WiFi Direct连接;包括:目标连接装置接收到Probe Request请求帧后,回应Probe Response帧;连接发起装置接收到Probe Response帧后,发送GO Negotiation Request帧;目标连接装置接收到GO Negotiation Request帧后,回应GO Negotiation Response帧等;直至连接成功或失败。
进一步的,在所述连接发起装置从所述NFC标签信息中提取所述网络连接信息之后,所述连接发起装置确定所述NFC标签信息中是否包含所述网络连接信息,如果包含所述网络连接信息,则开始连接所述目标连接装置。由于目标连接设备上的NFC标签信息不一定是为建立WiFi Direct设置的,有可能是一些其他信息,因此,在获取到NFC标签信息后需要对其内容进行检查,如果是网络连接信息,则启动网络连接流程,否则,不进行网络连接流程。
所述目标连接装置在卡模式下可以侦测到自身的NFC标签信息被读取后,可以在网络连接信息中的通信信道侦听连接请求信息,所述连接请求信息可以是:Probe Request帧。
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:
步骤101:将目标连接装置的网络连接信息设置为NFC标签信息;
步骤102:获取所述目标连接装置的NFC标签信息;
步骤103:从所述NFC标签信息中提取所述网络连接信息,根据所述网络连接信息连接所述目标连接装置。
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介 质。
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
工业实用性
如上所述,本发明实施例提供的一种无线直连建立方法、装置和系统,具有以下有益效果:可以省去目前WiFi Direct建立过程中,在各通道扫描目标连接装置的步骤;也省去用户确认连接的步骤;简化WiFi Direct的连接流程,缩短连接时间,方便用户操作,增强用户体验。

Claims (12)

  1. 一种无线直连WiFi Direct建立方法,将目标连接装置的网络连接信息设置为近场通信NFC标签信息;所述方法还包括:
    获取所述目标连接装置的NFC标签信息;
    从所述NFC标签信息中提取所述网络连接信息,根据所述网络连接信息连接所述目标连接装置。
  2. 根据权利要求1所述的方法,其中,所述将目标连接装置的网络连接信息设置为NFC标签信息,包括:
    将目标连接装置的网络通信信道和网络地址设置为NFC标签信息;
    所述网络地址包括:媒体访问控制MAC地址。
  3. 根据权利要求2所述的方法,其中,所述根据所述网络连接信息连接所述目标连接装置,包括:
    通过所述网络通信信道,向所述网络地址发送连接请求,并建立连接。
  4. 根据权利要求1所述的方法,其中,所述将目标连接装置的网络连接信息设置为NFC标签信息,包括:
    将所述目标连接装置中的NFC装置设置为卡模式,并将所述目标连接装置的网络连接信息设置为所述NFC装置在卡模式下承载的NFC标签信息。
  5. 根据权利要求2所述的方法,其中,所述获取目标装置的NFC标签信息之后,所述方法还包括:所述目标装置确定自身NFC标签信息被读取后,在所述网络通信信道侦听所述连接请求。
  6. 一种WiFi Direct建立装置,所述装置包括:设置模块、获取模块和连接模块;其中,
    所述设置模块,设置为将目标连接装置的网络连接信息设置为NFC标签信息;
    所述获取模块,设置为获取所述目标连接装置的NFC标签信息;
    所述连接模块,设置为从所述NFC标签信息中提取所述网络连接信息,根据所述网络连接信息连接所述目标连接装置。
  7. 根据权利要求6所述的装置,其中,所述设置模块,具体设置为:
    将目标连接装置的网络通信信道和网络地址设置为NFC标签信息;
    所述网络地址包括:MAC地址。
  8. 根据权利要求7所述的装置,其中,所述连接模块,具体设置为:
    通过所述网络通信信道,向所述网络地址发送连接请求,并建立连接。
  9. 根据权利要求6所述的装置,其中,所述设置模块,还设置为:
    将所述目标连接装置中的NFC装置设置为卡模式,并将所述目标连接装置的网络连接信息设置为所述NFC装置在卡模式下承载的NFC标签信息。
  10. 根据权利要求7所述的装置,其中,所述装置还包括:侦听模块,设置为在所述目标装置确定自身NFC标签信息被读取后,在所述网络通信信道侦听所述连接请求。
  11. 一种WiFi Direct建立系统,所述系统包括:连接发起装置和目标连接装置;其中,
    所述目标连接装置,设置为将自身的网络连接信息设置为NFC标签信息;
    所述连接发起装置,设置为获取所述目标连接装置的NFC标签信息;从所述NFC标签信息中提取所述网络连接信息,根据所述网络连接信息连接所述目标连接装置。
  12. 一种存储介质,设置为存储用于执行如权利要求1至5中任一项所述的无线直连WiFi Direct建立方法的计算机程序。
PCT/CN2017/070179 2016-06-21 2017-01-04 一种无线直连建立方法、装置和系统 WO2017219657A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610448912.4 2016-06-21
CN201610448912.4A CN107529124A (zh) 2016-06-21 2016-06-21 一种无线直连建立方法、装置和系统

Publications (1)

Publication Number Publication Date
WO2017219657A1 true WO2017219657A1 (zh) 2017-12-28

Family

ID=60734882

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/070179 WO2017219657A1 (zh) 2016-06-21 2017-01-04 一种无线直连建立方法、装置和系统

Country Status (2)

Country Link
CN (1) CN107529124A (zh)
WO (1) WO2017219657A1 (zh)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111885582A (zh) * 2020-08-14 2020-11-03 深圳市当智科技有限公司 无线网络连接方法、装置、电子设备及可读存储介质
CN112565843A (zh) * 2020-12-02 2021-03-26 广州朗国电子科技有限公司 基于dlna的投屏控制方法、装置、一体机及存储介质
EP4075835A1 (en) * 2021-04-15 2022-10-19 Yealink (Xiamen) Network Technology Co., Ltd. Connection method and apparatus
WO2023165359A1 (zh) * 2022-03-03 2023-09-07 华为技术有限公司 一种Wi-Fi P2P连接的方法、装置以及系统
EP4271006A1 (en) * 2020-12-31 2023-11-01 Huawei Technologies Co., Ltd. Connection establishment method and electronic device

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109195204B (zh) * 2018-11-12 2021-02-12 Oppo广东移动通信有限公司 无线网络接入方法及装置、计算机可读介质、通信终端
CN109548116B (zh) * 2018-11-16 2021-06-29 深圳绿米联创科技有限公司 基于NFC的ZigBee网关设备批量入网方法、装置及设备
CN110996404B (zh) * 2019-12-16 2022-06-28 联想(北京)有限公司 用于建立无线连接的方法、装置及系统
CN111669735A (zh) * 2020-04-16 2020-09-15 广州南方卫星导航仪器有限公司 Rtk设备、系统、终端设备、打开rtk主机的内置网页的方法
CN111836405B (zh) * 2020-07-21 2022-11-29 深圳市炬力北方微电子有限公司 无线匹配方法和存储介质
CN114615323A (zh) * 2022-01-28 2022-06-10 福州汇思博信息技术有限公司 一种用户进场推送方法及终端

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594578A (zh) * 2008-05-30 2009-12-02 深圳华为通信技术有限公司 直连链路的建立方法、站设备及通信系统
CN103249085A (zh) * 2012-02-07 2013-08-14 中兴通讯股份有限公司 一种WiFi数据传输方法和终端
CN104617990A (zh) * 2015-01-20 2015-05-13 广东欧珀移动通信有限公司 基于近距离无线通讯的文件传输方法及装置
WO2015070580A1 (zh) * 2013-11-18 2015-05-21 中兴通讯股份有限公司 基于近场通信建立无线局域网的方法及装置
CN106162820A (zh) * 2015-04-23 2016-11-23 北京数码视讯科技股份有限公司 一种终端间传输数据的方法及装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103781068A (zh) * 2012-10-18 2014-05-07 中兴通讯股份有限公司 数据传输方法及终端设备
CN103813473B (zh) * 2014-01-17 2017-08-25 深圳市金立通信设备有限公司 一种通信方法、终端及系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594578A (zh) * 2008-05-30 2009-12-02 深圳华为通信技术有限公司 直连链路的建立方法、站设备及通信系统
CN103249085A (zh) * 2012-02-07 2013-08-14 中兴通讯股份有限公司 一种WiFi数据传输方法和终端
WO2015070580A1 (zh) * 2013-11-18 2015-05-21 中兴通讯股份有限公司 基于近场通信建立无线局域网的方法及装置
CN104617990A (zh) * 2015-01-20 2015-05-13 广东欧珀移动通信有限公司 基于近距离无线通讯的文件传输方法及装置
CN106162820A (zh) * 2015-04-23 2016-11-23 北京数码视讯科技股份有限公司 一种终端间传输数据的方法及装置

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111885582A (zh) * 2020-08-14 2020-11-03 深圳市当智科技有限公司 无线网络连接方法、装置、电子设备及可读存储介质
CN112565843A (zh) * 2020-12-02 2021-03-26 广州朗国电子科技有限公司 基于dlna的投屏控制方法、装置、一体机及存储介质
EP4271006A1 (en) * 2020-12-31 2023-11-01 Huawei Technologies Co., Ltd. Connection establishment method and electronic device
EP4271006A4 (en) * 2020-12-31 2024-05-15 Huawei Tech Co Ltd CONNECTION ESTABLISHMENT METHOD AND ELECTRONIC DEVICE
EP4075835A1 (en) * 2021-04-15 2022-10-19 Yealink (Xiamen) Network Technology Co., Ltd. Connection method and apparatus
WO2023165359A1 (zh) * 2022-03-03 2023-09-07 华为技术有限公司 一种Wi-Fi P2P连接的方法、装置以及系统

Also Published As

Publication number Publication date
CN107529124A (zh) 2017-12-29

Similar Documents

Publication Publication Date Title
WO2017219657A1 (zh) 一种无线直连建立方法、装置和系统
US9510162B2 (en) Method for establishing group based on Wi-Fi and Wi-Fi direct-connection apparatus
US11553349B2 (en) Communication apparatus, control method, and computer-readable storage medium
US8848106B2 (en) Communication device, communication system, communication method, control program, and television receiving system
US9769734B2 (en) Communication device, communication method, and storage medium
US9872129B2 (en) Communication apparatus, method for controlling the same, and storage medium
US10425809B2 (en) Communication apparatus, method for controlling communication apparatus, and program
US9999091B2 (en) System and method for negotiating group membership for audio controllers
JP2015528249A (ja) 無線通信システムにおけるトポロジ処理方法及び装置
US10966261B2 (en) Communication apparatus, communication method, and program
WO2015010335A1 (zh) 一种识别标签的方法及装置
WO2014183404A1 (zh) 数据传输方法、装置及系统、终端
US11838116B2 (en) Communication apparatus, control method, and computer-readable storage medium
US20210195410A1 (en) Communication apparatus, communication method, and non-transitory computer-readable storage medium
KR20140020179A (ko) 사용자 의향을 반영한 서비스 연결 장치 및 방법
US10104702B2 (en) Communication apparatus, control method thereof and storage medium
WO2022222299A1 (zh) wifi 设备的通信方法、设备和计算机可读存储介质
KR102036686B1 (ko) 무선 통신 시스템에서 채널을 선택하기 위한 방법 및 장치
US10734031B2 (en) Communication apparatus, communication system, communication method, and storage medium
WO2016029854A1 (zh) 一种无线网络连接方法、设备及系统
US10932314B2 (en) Communication apparatus, control method, and storage medium
US20210243825A1 (en) Communication apparatus, control method of communication apparatus, and non-transitory computer-readable storage medium
US20210195420A1 (en) Communication apparatus, communication method, and computer-readable storage medium
JP6666669B2 (ja) 通信装置及びその制御方法ならびにプログラム
US20180317272A1 (en) Communication apparatus, control method, and recording medium

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

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

Country of ref document: EP

Kind code of ref document: A1