CN107529124A - A kind of wireless direct-connected method for building up, device and system - Google Patents

A kind of wireless direct-connected method for building up, device and system Download PDF

Info

Publication number
CN107529124A
CN107529124A CN201610448912.4A CN201610448912A CN107529124A CN 107529124 A CN107529124 A CN 107529124A CN 201610448912 A CN201610448912 A CN 201610448912A CN 107529124 A CN107529124 A CN 107529124A
Authority
CN
China
Prior art keywords
connection
information
target
nfc
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610448912.4A
Other languages
Chinese (zh)
Inventor
邵平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610448912.4A priority Critical patent/CN107529124A/en
Priority to PCT/CN2017/070179 priority patent/WO2017219657A1/en
Publication of CN107529124A publication Critical patent/CN107529124A/en
Pending legal-status Critical Current

Links

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

Landscapes

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

Abstract

The invention discloses a kind of wireless direct-connected (WiFi Direct) method for building up, the network connection information of target attachment means is arranged to near-field communication (NFC) label information;Obtain the NFC tag information of the target attachment means;The network connection information is extracted from the NFC tag information, the target attachment means are connected according to the network connection information.The invention also discloses a kind of WiFi Direct to establish device and system.

Description

Wireless direct connection establishing method, device and system
Technical Field
The present invention relates to Wireless network management technologies, and in particular, to a method, an apparatus, and a system for establishing a Wireless Direct connection (WiFi Direct).
Background
The WiFi Direct standard allows devices in a wireless network to connect to each other without going through a wireless router. The wireless Display (WiFi Display) is a wireless Display technology based on WiFi Direct, and can Display audio and video contents of a terminal on a Display device through the WiFi Direct standard. The core functions of WiFi Display are: the video and audio data are shared among the devices through the WiFi wireless network. Taking a simple application scenario as an example: after WiFi Display exists, videos in the mobile terminal can be delivered to the television to be displayed by the television through WiFi directly between the mobile terminal and the television.
Miracast is an authentication name for a device supporting a WiFi Display function, and at present, a connection flow of Miracast mainly includes the following steps:
step 1, Device Discovery: the device A searches for nearby devices supporting WiFi P2P through wireless point-to-point (WiFi P2P, WiFi Peer to Peer);
step 2, Device Selection (Device Selection): after the device A finds the device B supporting the WiFi P2P, the device A needs to prompt a user, and the user can select whether to pair with the device B or not according to needs;
step 3, Connection configuration (Connection Setup): establishing connection between a Source (Source) and a Display (Display) device through WiFi P2P; according to the WiFi Direct specification, this step includes establishing a Group Owner (Group Owner) and a Client (Client); then, the two devices establish a Transmission Control Protocol (TCP) connection, and a port for Real Time Streaming Protocol (RTSP) is established for subsequent Session Control (Session) management and Control work;
step 4, device Capability communication (Capability Negotiation): before formally transmitting audio and video data, Source and Display equipment need to exchange some Miracast parameter information, such as audio and video formats supported by both sides; after the negotiation between the two is successful, the following process can be continued;
step 5, Session Establishment and streaming (Session Establishment and streaming): the Source and Display equipment establishes a Miracast Session to start transmitting video and audio data; video and audio data of the Source end are coded by a Moving Picture experts group 2 Transport Stream (MPEG 2-TS) and then transmitted to Display equipment through a Real-time Transport protocol (RTP) protocol; the Display device will decode the received data and finally Display it.
In the Miracast connection step, the Device Discovery phase policy is as follows: when scanning opposite-end equipment, the equipment at both ends sequentially performs hopping detection among three channels, namely a Channel 1(CH1, Channel 1), a Channel 6(CH6, Channel 6) and a Channel 11(CH11, Channel 11), and when the equipment at both ends simultaneously hops to the same Channel, the equipment at the opposite end can be scanned, which easily causes the problem that the time for scanning the equipment at the opposite end is too long or the equipment at the opposite end cannot be scanned; in the Device Selection stage, a user is required to initiate connection invitation at one end, and connection can be established only after the opposite end selects to accept the invitation; this makes the operation process relatively cumbersome, bringing great inconvenience to the user.
Therefore, how to simplify the connection of the WiFi Direct, shorten the connection time, facilitate the operation of the user, enhance the user experience is a problem to be solved urgently.
Disclosure of Invention
In view of this, embodiments of the present invention are expected to provide a method, an apparatus, and a system for establishing a WiFi Direct, which can simplify a connection procedure of the WiFi Direct, shorten connection time, facilitate user operation, and enhance user experience.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the embodiment of the invention provides a WiFi Direct establishing method, wherein network connection information of a target connecting device is set as Near Field Communication (NFC) label information; the method further comprises the following steps:
acquiring NFC label information of the target connection device;
and extracting the network connection information from the NFC label information, and connecting the target connection device according to the network connection information.
In the foregoing solution, the setting the network connection information of the target connection device as NFC tag information includes:
setting a network communication channel and a network address of a target connection device as NFC tag information;
the network address includes: the MAC address.
In the above solution, the connecting the target connection device according to the network connection information includes:
and sending a connection request to the network address through the network communication channel, and establishing connection.
In the foregoing solution, the setting the network connection information of the target connection device as NFC tag information includes:
and setting an NFC device in the target connecting device to be in a card mode, and setting network connection information of the target connecting device to be NFC label information borne by the NFC device in the card mode.
In the foregoing solution, after the obtaining of the NFC tag information of the target device, the method further includes: and after determining that the self NFC label information is read, the target device listens the connection request on the network communication channel.
The embodiment of the invention also provides a WiFi Direct establishing device, which comprises: the device comprises a setting module, an obtaining module and a connecting module; wherein,
the setting module is used for setting the network connection information of the target connection device as NFC label information;
the acquisition module is used for acquiring the NFC label information of the target connecting 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.
In the foregoing solution, the setting module is specifically configured to:
setting a network communication channel and a network address of a target connection device as NFC tag information;
the network address includes: the MAC address.
In the foregoing solution, the connection module is specifically configured to:
and sending a connection request to the network address through the network communication channel, and establishing connection.
In the foregoing solution, the setting module is further configured to:
and setting an NFC device in the target connecting device to be in a card mode, and setting network connection information of the target connecting device to be NFC label information borne by the NFC device in the card mode.
In the above scheme, the apparatus further comprises: and the interception module is used for intercepting the connection request in the network communication channel after the target device determines that the self NFC label information is read.
The embodiment of the invention also provides a WiFi Direct establishing system, which comprises: connecting an initiating device and a target connecting device; wherein,
the target connection device is used for setting the network connection information of the target connection device as NFC label information;
the connection initiating device is used for acquiring NFC label information of the target connection device; and extracting the network connection information from the NFC label information, and connecting the target connection device according to the network connection information.
According to the WiFi Direct establishing method, device and system provided by the embodiment of the invention, the network connection information of the target connection device is set as the NFC label information; acquiring NFC label information of the target connection device; extracting the network connection information from the NFC label information, and connecting the target connection device according to the network connection information; therefore, the step of scanning the target connecting device in each channel in the existing WiFi Direct establishing process can be omitted; the step of confirming the connection by the user is also saved; the WiFi Direct connection process is simplified, the connection time is shortened, the operation of a user is facilitated, and the user experience is enhanced.
Drawings
Fig. 1 is a flowchart illustrating a method for establishing wireless direct connection according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an NFC data exchange format according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an interaction between a connection initiator and a target connection device according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating a connection flow of a connection initiating device according to an embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating 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 wireless direct connection establishment apparatus according to an embodiment of the present invention.
Detailed Description
In the embodiment of the invention, the network connection information of the target connection device is set as NFC label information; acquiring NFC label information of the target connection device; and extracting the network connection information from the NFC label information, and connecting the target connection device according to the network connection information.
The present invention will be described in further detail with reference to examples.
As shown in fig. 1, the WiFi Direct establishing method provided in the embodiment of the present invention includes:
step 101: setting network connection information of a target connection device as NFC label information;
generally, the WiFi Direct device establishes connection through a group, including a one-to-one or one-to-many topology; wherein, the practical application condition of the one-to-one form is as follows: the two terminals are connected through WiFi Direct and P2P transmission is carried out, or one terminal is connected with one display device through WiFi Direct and transmits display pictures and the like; the one-to-many practical application cases are as follows: the plurality of terminals are connected with the same printing equipment and the like through WiFi Direct;
the WiFi Direct is usually initiated by a connection initiating device, which may be a terminal, a computer, etc., and attempts to initiate a connection to a target connection device, which may be a terminal, a computer, a display device, a printing device, etc.; in a Device Discovery stage, when a target connecting Device is scanned, equipment at two ends can jump and detect among three channels of CH1, CH6 and CH11 in sequence, and when the equipment at two ends jump to the same channel at the same time, the equipment at the opposite end can be scanned; in the Device Selection stage, a user is required to initiate connection invitation at one end, and connection can be established only after the opposite end selects to accept the invitation;
with the improvement of Near Field Communication (NFC) technology, there are more and more mobile terminals with NFC functionality, and NFC has become more and more popular due to its unique convenience of one-touch operation, such as one-touch payment. The equipment with the NFC device can acquire information in the NFC tag very quickly under the condition of not contacting the NFC tag;
here, the network connection information of the target connection apparatus may be added to the NFC tag information; the network connection information may include: media Access Control (MAC) address and communication channel information of the target connection device WiFi; the MAC address is unique to any network equipment, and each network equipment only aims at the 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, an NFC Data Exchange Format (NDEF). NDEF consists of various data records (records), and each record consists of a Header (Header) and a Payload (Payload), where the MAC address and communication channel information of WiFi can be stored in the Payload, such as WiFi: // mac 00: d0: d0: EF: a8: e6CH 6. The MAC address is only an example, and may be a MAC address of another legitimate P2P device, and the CH6 channel is only an example, and may also be another legitimate channel.
Further, the NFC tag information may be NFC tag information carried by a physical NFC card, or may be NFC tag information carried by an NFC device in the target connection device in a card mode; NFC devices typically have three modes of operation: card mode, card reader mode, and point-to-point mode; here, the NFC device may be set in a card mode and store network connection information of the target connection device.
The method for setting the network connection information as the NFC label information comprises the following steps: writing the network connection information into an NFC card by adopting an NFC label reader-writer; and directly writing the network connection information into a tag content cache of a control chip card mode of the NFC device through a user interface.
Step 102: acquiring NFC label information of the target connection device;
here, the connection initiator may read NFC tag information of the target connection device through its own NFC device in a card reader mode.
Step 103: extracting the network connection information from the NFC label information, and connecting the target connection device according to the network connection information;
here, the connection initiating device extracts the network connection information from the NFC tag information and initiates a connection to the target connection device;
specifically, the connection initiating device may extract the network connection information at a Payload position of the read NFC tag information in the NDEF data format, and actively send connection request information to the MAC address in the communication channel information according to the MAC address information after reading WiFi MAC address information and the communication channel information of a target connection device; the connection request information may be: a Probe Request frame (Probe Request) frame;
after the connection initiating device sends the connection request information, the existing WiFi Direct process can be adopted to establish WiFi Direct connection; the method comprises the following steps: after receiving the Probe Request frame, the target connection device responds to a Probe Response frame; after receiving the Probe Response frame, the connection initiating device sends a group owner Negotiation Request (GO Negotiation Request) frame; after receiving the GONegotiation Request frame, the target connection device responds to a group owner Negotiation Response (GO Negotiation Response) frame, etc.; until the connection is successful or failed.
Further, after the connection initiator acquires the NFC tag information of the target connection device, the method further includes: the connection initiating device determines whether the NFC tag information contains the network connection information, and starts to connect to the target connection device if the NFC tag information contains the network connection information. Because the NFC tag information on the target connection device is not necessarily set for establishing the WiFi Direct, and may be some other information, after acquiring the NFC tag information, the content of the NFC tag information needs to be checked, and if the NFC tag information is network connection information, a network connection procedure is started, otherwise, the network connection procedure is not performed.
Furthermore, the target connection device may monitor connection request information in a communication channel in the network connection information after detecting that its NFC tag information is read in the card mode, where the connection request information may be: a Probe Request frame.
The positive effects produced by the present invention will be described in further detail with reference to specific examples.
The embodiment provides an interaction step between a connection initiating device and a target connection device in WiFi Display quick connection based on WiFi Direct realized through NFC. As shown in fig. 3, device 1 is a connection initiator, and device 2 is a target connection device; the device 2 is used as a Sink end of the WiFi Display and connected with the device 1 used as a Source end of the WiFi Display;
the specific interaction steps of the device 1 and the device 2 are as follows:
step 301: the device 2 is set to an NFC card mode, stores the MAC address and the specific channel of WiFi, and provides the device 1 with reading in an NFC reader mode after sensing a radio frequency field.
Step 302: after detecting that the MAC address and the channel of the WiFi are read, the device 2 monitors a Probe Request frame in the channel;
after reading the MAC address and the channel of the WiFi, the equipment 1 sends a Probe Request frame in the channel according to the MAC address;
after receiving the Probe Request frame, the 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;
device 2 responds to the GO notification response frame after receiving the GO notification Request frame;
in the WiFi Direct group negotiation process, the device 2 may determine whether itself is in the NFC card simulation mode, and if so, set a decision value: the intent parameter is maximized to ensure a Group Owner role.
Step 304: after the device 1 and the device 2 establish a group, the device 1 initiates connection, and the connection process is based on a Wi-Fi Protected Setup (WPS) process and is not different from other WiFi Direct connection processes;
the device 2 can judge whether the device is in an NFC card simulation mode, and if the device is in the NFC card simulation mode, the device is configured as a Miracast Sink terminal and connected with a Source terminal;
the device 2 is a Miracast Sink end, and is connected with the Source end of the device 1, and the Miracast connection process can adopt a standard protocol for connection.
The workflow of the device 1 to connect the initiating apparatus, as shown in fig. 4, includes:
step 401: starting a card reader mode of the NFC block to enable the card reader to read the card normally;
step 402: reading data in the NFC tag when the NFC tag is induced to exist in the radio frequency field;
step 403: judging the read data in the NFC tag to see whether the data contain the MAC address information of WiFi, if so, entering a step 404, otherwise, entering a step 402;
step 404: starting a Miracast function;
step 405: opening WiFi Direct, and initiating a connection request to the equipment according to the MAC address information of WiFi read in step 402;
step 406: WiFi Direct connection is carried out with opposite terminal equipment, automatic negotiation is carried out in a WPS PBC mode in the connection process, if P2P connection is successful, step 407 is carried out, and otherwise, step 402 is carried out;
step 407: after receiving the WiFi Direct connection success message, triggering a Miracast Source terminal to initiate a connection request to a Sink terminal;
step 408: the Miracast connection is successful, and screen projection is achieved; if the Miracast connection fails, step 402 is entered.
The workflow of the target connection means of the device 2, as shown in fig. 5:
step 501: starting an NFC card simulation mode, reading the MAC address of the WiFi module of the NFC card, and storing the MAC address in an NDEF grid number so that the MAC address can be read normally;
step 502: when a radio frequency field is induced, according to the read data information, judging whether the read specific information contains a WiFi MAC address or not, entering a step 503, and if not, entering a step 501;
step 503: starting a Miracast function;
step 504: opening a WiFi Direct function, waiting for the opposite terminal equipment 1 to send a connection request, and negotiating with the opposite terminal equipment 1 to establish P2P connection;
the device 2 receives the WiFi Direct connection request sent by the device 1 and responds to the opposite terminal to receive the connection request;
the equipment 2 further triggers the WPS function to carry out WPS negotiation with the equipment 1;
step 505: after the P2P connection is established through negotiation, the Miracast Sink end is triggered to be connected with the Miracast Source end.
As shown in fig. 6, the WiFi Direct establishing apparatus provided in the embodiment of the present invention includes: a setting module 61, an obtaining module 62 and a connecting module 63; wherein,
the setting module 61 is configured to set the network connection information of the target connection device as NFC tag information;
generally, the WiFi Direct device establishes connection through a group, including a one-to-one or one-to-many topology; wherein, the practical application condition of the one-to-one form is as follows: the two terminals are connected through WiFi Direct and P2P transmission is carried out, or one terminal is connected with one display device through WiFi Direct and transmits display pictures and the like; the one-to-many practical application cases are as follows: the plurality of terminals are connected with the same printing equipment and the like through WiFi Direct;
the WiFi Direct is usually initiated by a connection initiating device, which may be a terminal, a computer, etc., and attempts to initiate a connection to a target connection device, which may be a terminal, a computer, a display device, a printing device, etc.; in a Device Discovery stage, when a target connecting Device is scanned, equipment at two ends sequentially jumps among three channels, namely CH1, CH6 and CH11, and can scan opposite-end equipment when the equipment at two ends simultaneously jumps to the same channel; in the Device Selection stage, a user is required to initiate connection invitation at one end, and connection can be established only after the opposite end selects to accept the invitation;
with the improvement of Near Field Communication (NFC) technology, there are more and more mobile terminals with NFC functionality, and NFC has become more and more popular due to its unique convenience of one-touch operation, such as one-touch payment. The equipment with the NFC device can acquire information in the NFC tag very quickly under the condition of not contacting the NFC tag;
here, the network connection information of the target connection apparatus may be added to the NFC tag information; the network connection information may include: the MAC address and communication channel information of the target connection device WiFi; the MAC address is unique to any network equipment, and each network equipment only aims at the 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, i.e., NDEF. NDEF consists of various data records and each record consists of Header and Payload, where the MAC address and communication channel information of WiFi can be stored in the Payload, such as WiFi: // mac 00: d0: d0: EF: a8: e6CH 6. The MAC address is only an example, and may be a MAC address of another legitimate P2P device, and the CH6 channel is only an example, and may also be another legitimate channel.
Further, the NFC tag information may be NFC tag information carried by a physical NFC card, or may be NFC tag information carried by an NFC device in the target connection device in a card mode; NFC devices typically have three modes of operation: card mode, card reader mode, and point-to-point mode; here, the NFC device may be set in a card mode and store network connection information of the target connection device.
The method for setting the network connection information as the NFC label information comprises the following steps: writing the network connection information into an NFC card by adopting an NFC label reader-writer; and directly writing the network connection information into a tag content cache of a control chip card mode of the NFC device through a user interface.
The obtaining module 62 is configured to obtain NFC tag information of the target connection device;
here, the obtaining module 62 may be an NFC device of the connection initiator, and operates in a card reader mode; the NFC tag information of the target connection device is read by the acquisition 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;
here, the connection initiating device extracts the network connection information from the NFC tag information and initiates a connection to the target connection device;
specifically, the connection initiating device may extract the network connection information at a Payload position of the read NFC tag information in the NDEF data format, and actively send connection request information to the MAC address in the communication channel information according to the MAC address information after reading WiFi MAC address information and the communication channel information of a target connection device; the connection request information may be: a Probe Request frame;
after the connection initiating device sends the connection request information, the existing WiFi Direct process can be adopted to establish WiFi Direct connection; the method comprises the following steps: after receiving the Probe Request frame, the target connection device responds to the Probe Response frame; after receiving the Probe Response frame, the connection initiating device sends a GONegotiation Request frame; the target connection device responds to the GO notification Response frame after receiving the GO notification Request frame; until the connection is successful or failed.
Further, after the connection initiator acquires the NFC tag information of the target connection device, the connection module 63 is further configured to determine whether the NFC tag information includes the network connection information, and if the NFC tag information includes the network connection information, start to connect to the target connection device. Because the NFC tag information on the target connection device is not necessarily set for establishing the WiFi Direct, and may be some other information, after acquiring the NFC tag information, the content of the NFC tag information needs to be checked, and if the NFC tag information is network connection information, a network connection procedure is started, otherwise, the network connection procedure is not performed.
Further, the WiFi Direct establishing apparatus provided in the embodiment of the present invention further includes that, after the target connection apparatus may detect that its NFC tag information is read in the card mode, the interception module 64 may intercept connection request information in a communication channel in the network connection information, where the connection request information may be: a Probe Request frame.
In practical application, the setting module 61 and the obtaining module 62 may be implemented by combining an NFC device, a Central Processing Unit (CPU), a microprocessor unit (MPU), a Digital Signal Processor (DSP), or a Field Programmable Gate Array (FPGA), etc. of a WiFi Direct device; the connection module 63 and the interception module 64 can be implemented by combining a WiFi device, a CPU, an MPU, a DSP, or an FPGA of the WiFi Direct device.
The WiFi Direct establishment system provided by the embodiment of the invention comprises the following components: connecting an initiating device and a target connecting device; wherein,
the target connection device is used for setting the network connection information of the target connection device as NFC label information;
generally, the WiFi Direct device establishes connection through a group, including a one-to-one or one-to-many topology; wherein, the practical application condition of the one-to-one form is as follows: the two terminals are connected through WiFi Direct and P2P transmission is carried out, or one terminal is connected with one display device through WiFi Direct and transmits display pictures and the like; the one-to-many practical application cases are as follows: and the plurality of terminals are connected with the same printing equipment through the WiFi Direct.
The WiFi Direct is usually initiated by a connection initiating device, which may be a terminal, a computer, etc., and attempts to initiate a connection to a target connection device, which may be a terminal, a computer, a display device, a printing device, etc.; in a Device Discovery stage, when a target connecting Device is scanned, equipment at two ends sequentially jumps among three channels, namely CH1, CH6 and CH11, and can scan opposite-end equipment when the equipment at two ends simultaneously jumps to the same channel; in the Device Selection stage, a user is required to initiate connection invitation at one end, and connection can be established only after the opposite end selects to accept the invitation;
with the improvement of Near Field Communication (NFC) technology, there are more and more mobile terminals with NFC functionality, and NFC has become more and more popular due to its unique convenience of one-touch operation, such as one-touch payment. The equipment with the NFC device can acquire information in the NFC tag very quickly under the condition of not contacting the NFC tag;
here, the network connection information of the target connection apparatus may be added to the NFC tag information; the network connection information may include: the MAC address and communication channel information of the target connection device WiFi; the MAC address is unique to any network device, and each network device is dedicated to 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, i.e., NDEF. NDEF consists of various data records and each record consists of Header and Payload, where the MAC address and communication channel information of WiFi can be stored in the Payload, such as WiFi: // mac 00: d0: d0: EF: a8: e6CH 6. The MAC address is only an example, and may be a MAC address of another legitimate P2P device, and the CH6 channel is only an example, and may also be another legitimate channel.
Further, the NFC tag information may be NFC tag information carried by a physical NFC card, or may be NFC tag information carried by an NFC device in the target connection device in a card mode; NFC devices typically have three modes of operation: card mode, card reader mode, and point-to-point mode; here, the NFC device may be set in a card mode and store network connection information of the target connection device.
The method for setting the network connection information as the NFC label information comprises the following steps: writing the network connection information into an NFC card by adopting an NFC label reader-writer; and directly writing the network connection information into a tag content cache of a control chip card mode of the NFC device through a user interface.
The connection initiating device is used for acquiring NFC label information of the target connection device; and extracting the network connection information from the NFC label information, and connecting the target connection device according to the network connection information.
Here, the NFC device in the connection initiation device operates in a card reader mode; and reading the NFC label information of the target connecting device. Extracting the network connection information according to the NFC label information, and initiating connection to the target connection device;
specifically, the connection initiating device may extract the network connection information at a Payload position of the read NFC tag information in the NDEF data format, and after reading WiFi MAC address information and the communication channel information of a target connection device, actively send connection request information to the MAC address in the communication channel information according to the MAC address information; the connection request information may be: a ProbeRequest frame.
After the connection initiating device sends the connection request information, the existing WiFi Direct process can be adopted to establish WiFi Direct connection; the method comprises the following steps: after receiving the Probe Request frame, the target connection device responds to the Probe Response frame; after receiving the Probe Response frame, the connection initiating device sends a GONegotiation Request frame; the target connection device responds to the GO notification Response frame after receiving the GO notification Request frame; until the connection is successful or failed.
Further, after the connection initiator extracts the network connection information from the NFC tag information, the connection initiator determines whether the NFC tag information includes the network connection information, and starts to connect to the target connection device if the NFC tag information includes the network connection information. Because the NFC tag information on the target connection device is not necessarily set for establishing the WiFi Direct, and may be some other information, after acquiring the NFC tag information, the content of the NFC tag information needs to be checked, and if the NFC tag information is network connection information, a network connection procedure is started, otherwise, the network connection procedure is not performed.
The target connection device may listen to connection request information on a communication channel in the network connection information after detecting that its NFC tag information is read in the card mode, where the connection request information may be: a Probe Request frame.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the scope of the present invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (11)

1. A wireless Direct connection WiFi Direct establishment method is characterized in that network connection information of a target connection device is set as Near Field Communication (NFC) label information; the method further comprises the following steps:
acquiring NFC label information of the target connection device;
and extracting the network connection information from the NFC label information, and connecting the target connection device according to the network connection information.
2. The method of claim 1, wherein setting the network connection information of the target connection device as NFC tag information comprises:
setting a network communication channel and a network address of a target connection device as NFC tag information;
the network address includes: a media access control MAC address.
3. The method of claim 2, wherein the connecting the target connection device according to the network connection information comprises:
and sending a connection request to the network address through the network communication channel, and establishing connection.
4. The method of claim 1, wherein setting the network connection information of the target connection device as NFC tag information comprises:
and setting an NFC device in the target connecting device to be in a card mode, and setting network connection information of the target connecting device to be NFC label information borne by the NFC device in the card mode.
5. The method of claim 2, wherein after obtaining the NFC tag information of the target device, the method further comprises: and after determining that the self NFC label information is read, the target device listens the connection request on the network communication channel.
6. An apparatus for WiFi Direct establishment, the apparatus comprising: the device comprises a setting module, an obtaining module and a connecting module; wherein,
the setting module is used for setting the network connection information of the target connection device as NFC label information;
the acquisition module is used for acquiring the NFC label information of the target connecting 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.
7. The apparatus according to claim 6, wherein the setting module is specifically configured to:
setting a network communication channel and a network address of a target connection device as NFC tag information;
the network address includes: the MAC address.
8. The apparatus according to claim 7, wherein the connection module is specifically configured to:
and sending a connection request to the network address through the network communication channel, and establishing connection.
9. The apparatus of claim 6, wherein the setup module is further configured to:
and setting an NFC device in the target connecting device to be in a card mode, and setting network connection information of the target connecting device to be NFC label information borne by the NFC device in the card mode.
10. The apparatus of claim 7, further comprising: and the interception module is used for intercepting the connection request in the network communication channel after the target device determines that the self NFC label information is read.
11. A WiFi Direct establishment system, comprising: connecting an initiating device and a target connecting device; wherein,
the target connection device is used for setting the network connection information of the target connection device as NFC label information;
the connection initiating device is used for acquiring NFC label information of the target connection device; and extracting the network connection information from the NFC label information, and connecting the target connection device according to the network connection information.
CN201610448912.4A 2016-06-21 2016-06-21 A kind of wireless direct-connected method for building up, device and system Pending CN107529124A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610448912.4A CN107529124A (en) 2016-06-21 2016-06-21 A kind of wireless direct-connected method for building up, device and system
PCT/CN2017/070179 WO2017219657A1 (en) 2016-06-21 2017-01-04 Method, apparatus, and system for establishing wifi direct

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610448912.4A CN107529124A (en) 2016-06-21 2016-06-21 A kind of wireless direct-connected method for building up, device and system

Publications (1)

Publication Number Publication Date
CN107529124A true CN107529124A (en) 2017-12-29

Family

ID=60734882

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610448912.4A Pending CN107529124A (en) 2016-06-21 2016-06-21 A kind of wireless direct-connected method for building up, device and system

Country Status (2)

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

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109195204A (en) * 2018-11-12 2019-01-11 Oppo广东移动通信有限公司 Wireless network access method and device, computer-readable medium, communication terminal
CN109548116A (en) * 2018-11-16 2019-03-29 深圳绿米联创科技有限公司 ZigBee gateway batch method of network entry, device and equipment based on NFC
CN110996404A (en) * 2019-12-16 2020-04-10 联想(北京)有限公司 Method, device and system for establishing wireless connection
CN111669735A (en) * 2020-04-16 2020-09-15 广州南方卫星导航仪器有限公司 RTK device, RTK system, terminal device and method for opening built-in webpage of RTK host
CN111836405A (en) * 2020-07-21 2020-10-27 深圳市炬力北方微电子有限公司 Wireless matching method and storage medium
CN113194445A (en) * 2021-04-15 2021-07-30 厦门亿联网络技术股份有限公司 Connection method and device
CN114615323A (en) * 2022-01-28 2022-06-10 福州汇思博信息技术有限公司 User approach pushing method and terminal

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111885582A (en) * 2020-08-14 2020-11-03 深圳市当智科技有限公司 Wireless network connection method and device, electronic equipment and readable storage medium
CN112565843A (en) * 2020-12-02 2021-03-26 广州朗国电子科技有限公司 Projection screen control method, device, all-in-one machine and storage medium based on DLNA
CN114697929A (en) * 2020-12-31 2022-07-01 华为技术有限公司 Connection establishing method and electronic equipment
CN116744276A (en) * 2022-03-03 2023-09-12 华为技术有限公司 Wi-Fi P2P connection method, device and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594578A (en) * 2008-05-30 2009-12-02 深圳华为通信技术有限公司 The method for building up of direct connected link, station equipment and communication system
CN103781068A (en) * 2012-10-18 2014-05-07 中兴通讯股份有限公司 Data transmission method and terminal device
CN103813473A (en) * 2014-01-17 2014-05-21 深圳市金立通信设备有限公司 Communication method, terminal and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103249085A (en) * 2012-02-07 2013-08-14 中兴通讯股份有限公司 WiFi data transmission method and terminal
CN104661230A (en) * 2013-11-18 2015-05-27 中兴通讯股份有限公司 Method and device for establishing wireless local area network based on near field communication
CN104617990B (en) * 2015-01-20 2018-06-15 广东欧珀移动通信有限公司 Document transmission method and device based on close range wireless communication
CN106162820A (en) * 2015-04-23 2016-11-23 北京数码视讯科技股份有限公司 A kind of method and device of terminal room transmission data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594578A (en) * 2008-05-30 2009-12-02 深圳华为通信技术有限公司 The method for building up of direct connected link, station equipment and communication system
CN103781068A (en) * 2012-10-18 2014-05-07 中兴通讯股份有限公司 Data transmission method and terminal device
CN103813473A (en) * 2014-01-17 2014-05-21 深圳市金立通信设备有限公司 Communication method, terminal and system

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109195204A (en) * 2018-11-12 2019-01-11 Oppo广东移动通信有限公司 Wireless network access method and device, computer-readable medium, communication terminal
CN109548116A (en) * 2018-11-16 2019-03-29 深圳绿米联创科技有限公司 ZigBee gateway batch method of network entry, device and equipment based on NFC
CN109548116B (en) * 2018-11-16 2021-06-29 深圳绿米联创科技有限公司 ZigBee gateway equipment batch network access method, device and equipment based on NFC
CN110996404A (en) * 2019-12-16 2020-04-10 联想(北京)有限公司 Method, device and system for establishing wireless connection
CN110996404B (en) * 2019-12-16 2022-06-28 联想(北京)有限公司 Method, device and system for establishing wireless connection
CN111669735A (en) * 2020-04-16 2020-09-15 广州南方卫星导航仪器有限公司 RTK device, RTK system, terminal device and method for opening built-in webpage of RTK host
CN111836405A (en) * 2020-07-21 2020-10-27 深圳市炬力北方微电子有限公司 Wireless matching method and storage medium
CN111836405B (en) * 2020-07-21 2022-11-29 深圳市炬力北方微电子有限公司 Wireless matching method and storage medium
CN113194445A (en) * 2021-04-15 2021-07-30 厦门亿联网络技术股份有限公司 Connection method and device
CN114615323A (en) * 2022-01-28 2022-06-10 福州汇思博信息技术有限公司 User approach pushing method and terminal
CN114615323B (en) * 2022-01-28 2024-08-20 福建汇思博数字科技有限公司 User approach pushing method and terminal

Also Published As

Publication number Publication date
WO2017219657A1 (en) 2017-12-28

Similar Documents

Publication Publication Date Title
CN107529124A (en) A kind of wireless direct-connected method for building up, device and system
US8848106B2 (en) Communication device, communication system, communication method, control program, and television receiving system
US10849169B2 (en) Communication apparatus for connecting to a wireless network using a simple operation
US10356794B2 (en) Communication system and communication method, communication apparatus and control method for the same, and storage medium
US20240073688A1 (en) Communication apparatus, method of sharing, and program
US9769734B2 (en) Communication device, communication method, and storage medium
US10390223B2 (en) Communication apparatus, communication method, and storage medium
US20230030588A1 (en) Communication apparatus, control method, and computer-readable storage medium
US10555260B2 (en) Communication apparatus, control method for communication apparatus, and storage medium
US10425809B2 (en) Communication apparatus, method for controlling communication apparatus, and program
US11838753B2 (en) Communication apparatus, method of controlling the communication apparatus, and program
US11838116B2 (en) Communication apparatus, control method, and computer-readable storage medium
US10972782B2 (en) Communication apparatus, control method, and recording medium
US10966261B2 (en) Communication apparatus, communication method, and program
US20210195410A1 (en) Communication apparatus, communication method, and non-transitory computer-readable storage medium
US20180213585A1 (en) Communication apparatus, communication method, and program
WO2014183404A1 (en) Data transmission method, apparatus, system and terminal
CN108462953B (en) File transmission method and device, electronic equipment and storage medium
US10932314B2 (en) Communication apparatus, control method, and storage medium
US12069477B2 (en) Communication apparatus, communication method, and computer-readable storage medium
US10734031B2 (en) Communication apparatus, communication system, communication method, and storage medium
US20180034637A1 (en) Communication apparatus, method and program for controlling the apparatus, and storage medium storing the program
US20180317272A1 (en) Communication apparatus, control method, and recording medium
KR102107427B1 (en) Method for exchanging information using near field communication, computer readable medium for performing the method
JP2014022907A (en) Radio communication system, radio connection method, electronic apparatus, radio terminal and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20171229