CN113873685B - Method, device and equipment for establishing WiFi direct connection - Google Patents

Method, device and equipment for establishing WiFi direct connection Download PDF

Info

Publication number
CN113873685B
CN113873685B CN202111107181.4A CN202111107181A CN113873685B CN 113873685 B CN113873685 B CN 113873685B CN 202111107181 A CN202111107181 A CN 202111107181A CN 113873685 B CN113873685 B CN 113873685B
Authority
CN
China
Prior art keywords
direct connection
information
wifi direct
custom
wifi
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.)
Active
Application number
CN202111107181.4A
Other languages
Chinese (zh)
Other versions
CN113873685A (en
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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202111107181.4A priority Critical patent/CN113873685B/en
Publication of CN113873685A publication Critical patent/CN113873685A/en
Application granted granted Critical
Publication of CN113873685B publication Critical patent/CN113873685B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Landscapes

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

Abstract

The embodiment of the application provides a method for establishing WiFi direct connection, which is used for a first device and comprises the following steps: detecting a WiFi direct connection establishment instruction aiming at the second equipment, and sending a WiFi direct connection request to the second equipment, wherein the WiFi direct connection request comprises self-defined direct connection information, the self-defined direct connection information comprises indication information for indicating a WiFi direct connection role of the first equipment and/or the second equipment, and the WiFi direct connection role comprises a group owner and a group client; receiving request response information of the second equipment responding to the WiFi direct connection request, wherein the request response information comprises user-defined indication reply information; and establishing WiFi direct connection with the second equipment according to the self-defined direct connection information and the self-defined indication reply information. According to the embodiment of the application, when the WiFi direct connection request is sent to the second device, the indication information for indicating the WiFi direct connection role of the first device and/or the second device is carried, the GO negotiation flow is simplified, and the establishment speed of the WiFi direct connection is improved.

Description

Method, device and equipment for establishing WiFi direct connection
Technical Field
The application relates to the field of wireless fidelity (Wireless Fidelity, wiFi), in particular to a method, a device and equipment for establishing WiFi direct connection.
Background
Wireless fidelity Point-to-Point (WiFi P2P), also known as WiFi direct (direct), is a technology for directly establishing a WiFi connection between devices without an Access Point (AP), and is widely used for data transmission.
In the related art, when a WiFi P2P connection is established between devices, a GO negotiation phase is required to be performed, where the GO negotiation phase is used to determine a Group Owner (GO) and a Group Client (GC) in the devices, and the two devices need to perform request, response, confirmation three frame exchanges by exchanging respective GO intention (internet) parameters, so that the GO and GC in the WiFi direct connection are determined by comparing respective GO internet parameters in a negotiation manner, and this process takes a long time.
Accordingly, the prior art has drawbacks and needs to be improved and developed.
Disclosure of Invention
The embodiment of the application provides a method, a device and equipment for establishing WiFi direct connection, which are used for improving the establishment speed of WiFi direct connection by simplifying the GO negotiation process.
The embodiment of the application provides a method for establishing WiFi direct connection, which is applied to first equipment and comprises the following steps:
when a WiFi direct connection establishment instruction aiming at second equipment is detected, a WiFi direct connection request is sent to the second equipment, wherein the WiFi direct connection request comprises self-defined direct connection information, the self-defined direct connection information comprises indication information for indicating a WiFi direct connection role of the first equipment and/or the second equipment, and the WiFi direct connection role comprises a group owner and a group client;
Receiving request response information of the second device in response to the WiFi direct connection request, wherein the request response information comprises custom indication reply information, and the custom indication reply information is response information to the indication information;
and establishing WiFi direct connection with the second equipment according to the self-defined direct connection information and the self-defined indication reply information.
In the method for establishing WiFi direct connection of this embodiment, the custom indication reply message is rejection information to the indication message, and establishing WiFi direct connection with the second device according to the custom direct connection message and the custom indication reply message includes:
changing indication information of WiFi direct connection roles of the first equipment and/or the second equipment in the custom direct connection information;
and establishing WiFi direct connection with the second equipment according to the modified custom direct connection information.
In the method for establishing WiFi direct connection in this embodiment, the establishing WiFi direct connection with the second device according to the modified custom direct connection information includes:
generating a new WiFi direct connection request based on the modified user-defined direct connection information;
And sending the new WiFi direct connection request to the second equipment so as to establish WiFi direct connection with the second equipment.
In the method for establishing WiFi direct connection in this embodiment, the establishing WiFi direct connection with the second device according to the modified custom direct connection information includes:
if the first device is determined to be a group client based on the changed user-defined direct connection information, sending a detection request packet to the second device according to the identity of the group client;
receiving a detection reply packet sent by the second equipment in response to the detection request packet;
and establishing WiFi direct connection with the second equipment.
In the method for establishing WiFi direct connection in this embodiment, before sending a WiFi direct connection request to the second device, the method further includes:
determining a WiFi direct connection role of the first device and/or the second device;
generating a first role field based on a WiFi direct connection role of the first device;
generating a second role field based on the WiFi direct connection role of the second device;
and generating custom direct connection information based on the first role field and/or the second role field.
The embodiment of the application also provides a method for establishing the WiFi direct connection, which is applied to the second equipment and comprises the following steps:
Acquiring a WiFi direct connection request sent by first equipment, wherein the WiFi direct connection request comprises self-defined direct connection information, the self-defined direct connection information comprises indication information for indicating a WiFi direct connection role of the first equipment and/or second equipment, and the WiFi direct connection role comprises a group owner and a group client;
generating request response information of the WiFi direct connection request based on the WiFi direct connection request, wherein the request response information comprises custom indication reply information which is response information to the indication information;
and sending the request response information to the first equipment, and establishing WiFi direct connection with the first equipment.
In the method for establishing WiFi direct connection in this embodiment, the WiFi direct connection request includes a target working channel used by the WiFi direct connection, and after the request response information is sent to the first device, the method includes:
if the custom indication reply information in the request response information is the consent information to the indication information, switching the channel used by the second equipment to the target working channel;
and establishing WiFi direct connection with the first equipment based on the target working channel.
The embodiment of the application also provides a device for establishing the WiFi direct connection, which is applied to the first equipment and comprises:
the device comprises a sending module, a receiving module and a receiving module, wherein the sending module is used for sending a WiFi direct connection request to a second device when a WiFi direct connection establishment instruction aiming at the second device is detected, the WiFi direct connection request comprises self-defined direct connection information, the self-defined direct connection information comprises indication information for indicating a WiFi direct connection role of the first device and/or the second device, and the WiFi direct connection role comprises a group owner and a group client;
the receiving module is used for receiving request response information of the second equipment responding to the WiFi direct connection request, wherein the request response information comprises custom indication reply information, and the custom indication reply information is response information to the indication information;
and the establishing module is used for establishing WiFi direct connection with the second equipment according to the self-defined direct connection information and the self-defined indication reply information.
The embodiment of the application also provides a device for establishing the WiFi direct connection, which is applied to the second equipment, and comprises:
the system comprises an acquisition module, a first device and a second device, wherein the acquisition module is used for acquiring a WiFi direct connection request sent by the first device, the WiFi direct connection request comprises self-defined direct connection information, the self-defined direct connection information comprises indication information for indicating a WiFi direct connection role of the first device and/or the second device, and the WiFi direct connection role comprises a group owner and a group client;
The generating module is used for generating request response information of the WiFi direct connection request based on the WiFi direct connection request, wherein the request response information comprises user-defined indication reply information which is response information to the indication information;
and the establishing module is used for sending the request response information to the first equipment and establishing WiFi direct connection with the first equipment.
The embodiment of the application also provides equipment, which comprises a processor and a memory, wherein the memory stores a computer program, and the processor is used for executing the WiFi direct connection establishment method in any embodiment by calling the computer program stored in the memory.
According to the method and the device for establishing the WiFi direct connection, when the WiFi direct connection request is sent to the second device, the indication information for indicating the WiFi direct connection roles of the first device and/or the second device is carried in the request, the WiFi direct connection roles of the first device and the second device are determined through the indication information, and therefore the WiFi direct connection is established, namely, the group owner and the group client in the WiFi direct connection are rapidly determined through simplifying the GO negotiation flow, and therefore the establishment speed of the WiFi direct connection is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that are required to be used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained from these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for establishing a WiFi direct connection for a first device according to an embodiment of the present application.
Fig. 2 is a flowchart of a method for establishing a WiFi direct connection for a second device according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of an apparatus for establishing WiFi direct connection for a first device according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of an apparatus for establishing WiFi direct connection for a second device according to an embodiment of the present application.
Fig. 5 is another schematic structural diagram of an apparatus for establishing WiFi direct connection for a first device according to an embodiment of the present application.
Fig. 6 is another schematic structural diagram of a device for establishing WiFi direct connection for a second device according to an embodiment of the present application.
Fig. 7 is a schematic structural diagram of an apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The embodiment of the application provides a method for establishing WiFi direct connection, which can be applied to terminal equipment. The terminal equipment can be a smart phone, a tablet personal computer and other equipment.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for establishing a WiFi direct connection according to an embodiment of the present application. The method for establishing the WiFi direct connection is applied to first equipment, wherein the first equipment can be smart phones, tablet computers and other equipment, and the method can comprise the following steps:
step 101, when a WiFi direct connection establishment instruction for a second device is detected, a WiFi direct connection request is sent to the second device, wherein the WiFi direct connection request includes custom direct connection information, the custom direct connection information includes indication information indicating a WiFi direct connection role of the first device and/or the second device, and the WiFi direct connection role includes a group owner and a group client.
When the WiFi direct connection between the devices needs to be established, the WiFi direct connection establishment instruction can be triggered manually by a user. Wherein the group owner is Groupowner (GO) and the group client is Groupclient (GC).
The custom direct connection information may be indication information of a WiFi direct connection role of the first device, that is, wiFi direct connection role information of the first device may be GO or GC. If the GO is the GO, the first equipment is the GO, and the second equipment is the GC; if the GC is the GC, the first device is the GC and the second device is the GO.
In addition, the custom direct connection information may be indication information of a WiFi direct connection role of the second device, that is, wiFi direct connection role information of the second device may be GO or GC. If the GO is the GO, the second equipment is the GO, and the first equipment is the GC; if the GC is the GC, the second device is the GC, and the first device is the GO.
Finally, the custom direct connection information may be indication information of WiFi direct connection of the first device and the second device, that is, wiFi direct connection role information of the first device and the second device, for example, the first device is GC, and the second device is GO; alternatively, the first device is a GO and the second device is a GC.
It should be noted that the custom direct connection information is not limited to the above-mentioned types, but may be sent to the second device in a query manner, for example, when the custom direct connection information is the indication information of the WiFi direct connection role of the first device, if GO is, i.e. if GO is the query of the second device, you are GC ok? If GC, i.e. query the second device on behalf of you are GO ok? When the custom direct connection information is the indication information of the WiFi direct connection role of the second device, if GO is, i.e. if GO is available, you ask the second device? If GC, i.e. representative interrogates the second device, you are GC ok?
In some embodiments, before the sending the WiFi direct request to the second device, the method further includes:
determining a WiFi direct connection role of the first device and/or the second device;
generating a first role field based on a WiFi direct connection role of the first device;
generating a second role field based on the WiFi direct connection role of the second device;
and generating custom direct connection information based on the first role field and/or the second role field.
The first role field includes WiFi direct role information of the first device, and the second role field includes WiFi direct role information of the second device, for example, the first role field may be "the WiFi direct role of the first device is GO", and the second role field may be "the WiFi direct role of the second device is GC"; alternatively, the first persona field may be "the WiFi direct persona of the first device is GO? The second role field may be "the WiFi direct role of the second device is GC? ". It should be noted that the first role field and the second role field are not limited in this way, and those skilled in the art may set the first role field and the second role field according to the actual situation.
Step 102, receiving request response information of the second device in response to the WiFi direct connection request, where the request response information includes custom indication reply information, and the custom indication reply information is response information to the indication information.
The response information of the indication information means that the second device agrees with the custom direct-connection information in the WiFi direct-connection request sent by the first device, that is, agrees with the indication information of the WiFi direct-connection role of the first device and/or the second device in the custom direct-connection information. For example, the custom direct connection information is indication information of a WiFi direct connection role of the first device, that is, wiFi direct connection role information of the first device, for example, GO, and the response information of the indication information means that the second device agrees that the first device is GO, and the second device is GC.
In some embodiments, the custom indication reply message is a rejection message of the indication message, and the establishing WiFi direct connection with the second device according to the custom direct connection message and the custom indication reply message includes:
changing indication information of WiFi direct connection roles of the first equipment and/or the second equipment in the custom direct connection information;
And establishing WiFi direct connection with the second equipment according to the modified custom direct connection information.
The rejection information of the indication information means that the second device does not agree with the custom direct connection information in the WiFi direct connection request sent by the first device, that is, does not agree with the indication information of the WiFi direct connection role of the first device and/or the second device in the custom direct connection information. For example, the custom direct connection information is indication information of a WiFi direct connection role of the first device, that is, wiFi direct connection role information of the first device, for example, GO, and the rejection information of the indication information means that the second device does not agree that the first device is GO, but the second device is GC. Therefore, at this time, the first device needs to change the indication information of the WiFi direct connection role of the first device and/or the second device in the customized direct connection information, and then establishes WiFi direct connection with the second device according to the changed customized direct connection information. For example, in the original customized direct connection information, the first device is the GO, and the second device is the GC, and in the modified customized direct connection information, the first device is the GC, and the second device is the GO.
In some embodiments, the establishing a WiFi direct connection with the second device according to the modified custom direct connection information includes:
Generating a new WiFi direct connection request based on the modified user-defined direct connection information;
and sending the new WiFi direct connection request to the second equipment so as to establish WiFi direct connection with the second equipment.
After the first device changes the custom direct connection information, a new WiFi direct connection request is generated based on the changed custom direct connection information, the new WiFi direct connection request is sent to the second device, and the second device responds to the new WiFi direct connection request, so that WiFi direct connection between the first device and the second device is established.
In some embodiments, the establishing a WiFi direct connection with the second device according to the modified custom direct connection information includes:
if the first device is determined to be a group client based on the changed user-defined direct connection information, sending a detection request packet to the second device according to the identity of the group client;
receiving a detection reply packet sent by the second equipment in response to the detection request packet;
and establishing WiFi direct connection with the second equipment.
In the modified customized direct connection information, the first device may be the group client GC or the group owner GO, so if the first device in the modified customized direct connection information is the group client GC, the first device sends a detection request packet to the second device according to the identity of the group client, the second device replies a detection reply packet to the first device after receiving the detection request packet sent by the first device, and the first device establishes WiFi direct connection with the second device after receiving the detection reply packet replied by the second device.
In some embodiments, the custom direct connection information further includes a first shared key PSK, the custom indication reply information further includes a second shared key PSK, and the establishing WiFi direct connection with the second device according to the custom direct connection information and the custom indication reply information further includes:
comparing the second shared key PSK in the self-defined indication reply information with the first shared key PSK in the self-defined direct connection information to obtain a comparison result;
and if the comparison result is that the second shared key in the custom indication reply message is the same as the first shared key in the custom direct connection message, establishing WiFi direct connection with the second equipment.
In addition, the customized direct connection information further comprises information such as a service set identifier ssid and an operation channel of the first device.
And step 103, establishing WiFi direct connection with the second equipment according to the self-defined direct connection information and the self-defined indication reply information.
After determining the respective WiFi direct connection roles of the first device and the second device, the first device starts to establish a WiFi direct connection with the second device.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for establishing a WiFi direct connection according to an embodiment of the present application. The method for establishing the WiFi direct connection is applied to second equipment, wherein the second equipment can be smart phones, tablet computers and other equipment, and the method can comprise the following steps:
step 201, a WiFi direct connection request sent by a first device is obtained, where the WiFi direct connection request includes user-defined direct connection information, the user-defined direct connection information includes indication information indicating a WiFi direct connection role of the first device and/or a second device, and the WiFi direct connection role includes a group owner and a group client. When the WiFi direct connection between the devices needs to be established, the WiFi direct connection establishment instruction can be triggered manually by a user. Wherein the group owner is Groupowner (GO) and the group client is Groupclient (GC).
The custom direct connection information may be indication information of a WiFi direct connection role of the first device, that is, wiFi direct connection role information of the first device may be GO or GC. If the GO is the GO, the first equipment is the GO, and the second equipment is the GC; if the GC is the GC, the first device is the GC and the second device is the GO.
In addition, the custom direct connection information may be indication information of a WiFi direct connection role of the second device, that is, wiFi direct connection role information of the second device may be GO or GC. If the GO is the GO, the second equipment is the GO, and the first equipment is the GC; if the GC is the GC, the second device is the GC, and the first device is the GO.
Finally, the custom direct connection information may be indication information of WiFi direct connection of the first device and the second device, that is, wiFi direct connection role information of the first device and the second device, for example, the first device is GC, and the second device is GO; alternatively, the first device is a GO and the second device is a GC.
It should be noted that the custom direct connection information is not limited to the above-mentioned types, but may be sent to the second device in a query manner, for example, when the custom direct connection information is the indication information of the WiFi direct connection role of the first device, if GO is, i.e. if GO is the query of the second device, you are GC ok? If GC, i.e. query the second device on behalf of you are GO ok? When the custom direct connection information is the indication information of the WiFi direct connection role of the second device, if GO is, i.e. if GO is available, you ask the second device? If GC, i.e. representative interrogates the second device, you are GC ok?
In some embodiments, the WiFi direct connection request includes a target working channel used by the WiFi direct connection, and after the request response information is sent to the first device, the method includes:
if the custom indication reply information in the request response information is the consent information to the indication information, switching the channel used by the second equipment to the target working channel;
and establishing WiFi direct connection with the first equipment based on the target working channel.
Step 202, based on the WiFi direct connection request, generating request response information of the WiFi direct connection request, where the request response information includes custom indication reply information, and the custom indication reply information is response information to the indication information.
The response information of the indication information means that the second device agrees with the custom direct-connection information in the WiFi direct-connection request sent by the first device, that is, agrees with the indication information of the WiFi direct-connection role of the first device and/or the second device in the custom direct-connection information. For example, the custom direct connection information is indication information of a WiFi direct connection role of the first device, that is, wiFi direct connection role information of the first device, for example, GO, and the response information of the indication information means that the second device agrees that the first device is GO, and the second device is GC.
And step 203, sending the request response information to the first device, and establishing WiFi direct connection with the first device.
The request response information is sent to the first device, which means that the second device agrees with the custom direct connection information in the WiFi direct connection request sent by the first device, namely agrees with the indication information of the WiFi direct connection role of the first device and/or the second device in the custom direct connection information. Thus, at this point the second device establishes a WiFi direct connection with the first device.
Any combination of the above optional solutions may be adopted to form an optional embodiment of the present application, which is not described herein in detail.
In particular, the present application is not limited by the order of execution of the steps described, and certain steps may be performed in other orders or concurrently without conflict.
As can be seen from the foregoing, in the method for establishing WiFi direct connection provided by the embodiment of the present application, when a WiFi direct connection establishment instruction for a second device is detected, a WiFi direct connection request is sent to the second device, where the WiFi direct connection request includes self-defined direct connection information, the self-defined direct connection information includes indication information indicating a WiFi direct connection role of the first device and/or the second device, and the WiFi direct connection role includes a group owner and a group client; receiving request response information of the second device in response to the WiFi direct connection request, wherein the request response information comprises custom indication reply information, and the custom indication reply information is response information to the indication information; and establishing WiFi direct connection with the second equipment according to the self-defined direct connection information and the self-defined indication reply information. According to the method and the device for establishing the WiFi direct connection, when the WiFi direct connection request is sent to the second device, the indication information for indicating the WiFi direct connection roles of the first device and/or the second device is carried in the request, the WiFi direct connection roles of the first device and the second device are determined through the indication information, and therefore the WiFi direct connection is established, namely, the group owner and the group client in the WiFi direct connection are rapidly determined through simplifying the GO negotiation flow, and therefore the establishment speed of the WiFi direct connection is improved.
The embodiment of the application also provides a device for establishing the WiFi direct connection, which can be integrated in the terminal equipment. The terminal equipment can be a smart phone, a tablet personal computer and other equipment.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a device for establishing WiFi direct connection according to an embodiment of the present application, where the device is applied to a first apparatus. The establishing means 30 of the WiFi direct connection may include:
a sending module 31, configured to send a WiFi direct connection request to a second device when a WiFi direct connection establishment instruction for the second device is detected, where the WiFi direct connection request includes custom direct connection information, the custom direct connection information includes indication information indicating a WiFi direct connection role of the first device and/or the second device, and the WiFi direct connection role includes a group owner and a group client;
a receiving module 32, configured to receive request response information of the second device in response to the WiFi direct connection request, where the request response information includes custom indication reply information, and the custom indication reply information is response information to the indication information;
and the establishing module 33 is configured to establish a WiFi direct connection with the second device according to the custom direct connection information and the custom indication reply information.
In some embodiments, the establishing module 33 is configured to change, when the custom indication reply message is a rejection message of the indication message, indication information of a WiFi direct connection role of the first device and/or the second device in the custom direct connection message, and establish a WiFi direct connection with the second device according to the changed custom direct connection message.
In some embodiments, the establishing module 33 is configured to generate a new WiFi direct connection request based on the modified customized direct connection information, and send the new WiFi direct connection request to the second device to establish a WiFi direct connection with the second device.
In some embodiments, the establishing module 33 is configured to, if it is determined that the first device is a group client based on the modified customized direct connection information, send a detection request packet to the second device with an identity of the group client, receive a detection reply packet sent by the second device in response to the detection request packet, and establish a WiFi direct connection with the second device.
In specific implementation, each module may be implemented as a separate entity, or may be combined arbitrarily and implemented as the same entity or several entities.
As can be seen from the foregoing, when the WiFi direct connection establishment instruction for the second device is detected, the WiFi direct connection establishment apparatus 30 provided in the embodiment of the present application sends a WiFi direct connection request to the second device through the sending module 31, where the WiFi direct connection request includes self-defined direct connection information, the self-defined direct connection information includes indication information indicating a WiFi direct connection role of the first device and/or the second device, and the WiFi direct connection role includes a group owner and a group client; receiving, by the receiving module 32, request response information of the second device in response to the WiFi direct connection request, where the request response information includes custom indication reply information, and the custom indication reply information is response information to the indication information; the establishing module 33 establishes a WiFi direct connection with the second device according to the custom direct connection information and the custom indication reply information. According to the embodiment of the application, the establishment speed of the WiFi direct connection can be improved by simplifying the GO negotiation process.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a device for establishing WiFi direct connection according to an embodiment of the present application, where the device is applied to a second apparatus. The establishing means 40 of the WiFi direct connection may include:
The obtaining module 41 is configured to obtain a WiFi direct connection request sent by a first device, where the WiFi direct connection request includes custom direct connection information, the custom direct connection information includes indication information indicating a WiFi direct connection role of the first device and/or a second device, and the WiFi direct connection role includes a group owner and a group client;
the generating module 42 is configured to generate, based on the WiFi direct request, request response information of the WiFi direct request, where the request response information includes custom indication reply information, where the custom indication reply information is response information to the indication information;
and the establishing module 43 is configured to send the request response information to the first device, and establish WiFi direct connection with the first device.
In some embodiments, the establishing module 43 is configured to, when the WiFi direct connection request includes a target working channel used for WiFi direct connection, switch a channel used by the second device to the target working channel if the custom indication reply message in the request response message is the consent message for the indication message, and establish WiFi direct connection with the first device based on the target working channel.
In specific implementation, each module may be implemented as a separate entity, or may be combined arbitrarily and implemented as the same entity or several entities.
As can be seen from the foregoing, the device 40 for establishing WiFi direct connection provided in the embodiments of the present application acquires, through the acquisition module 41, a WiFi direct connection request sent by a first device, where the WiFi direct connection request includes user-defined direct connection information, the user-defined direct connection information includes indication information indicating a WiFi direct connection role of the first device and/or a second device, and the WiFi direct connection role includes a group owner and a group client; the generating module 42 generates request response information of the WiFi direct connection request based on the WiFi direct connection request, where the request response information includes custom indication reply information, and the custom indication reply information is response information to the indication information; the establishing module 43 sends the request response information to the first device, and establishes WiFi direct connection with the first device. According to the embodiment of the application, the establishment speed of the WiFi direct connection can be improved by simplifying the GO negotiation process.
Referring to fig. 5 and 6, fig. 5 and 6 are another schematic structural diagram of a WIFI direct connection device provided in an embodiment of the present application, where a WIFI direct connection establishing device 30 or a WIFI direct connection establishing device 40 includes a memory 120, one or more processors 180, and one or more application programs, where the one or more application programs are stored in the memory 120 and configured to be executed by the processor 180; the processor 180 may include a transmitting module 31, a receiving module 32, and a setup module 33, or the processor 180 may include an acquiring module 41, a generating module 42, and a setup module 43. For example, the structures and connection relationships of the above respective components may be as follows:
Memory 120 may be used to store applications and data. The memory 120 stores application programs including executable code. Applications may constitute various functional modules. The processor 180 executes various functional applications and data processing by running application programs stored in the memory 120. In addition, memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 120 may also include a memory controller to provide access to the memory 120 by the processor 180.
The processor 180 is a control center of the device, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the device and processes data by running or executing application programs stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring of the device. Optionally, the processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor primarily processes an operating system, user interfaces, application programs, and the like.
In particular, in this embodiment, the processor 180 loads executable codes corresponding to the processes of one or more application programs into the memory 120 according to the following instructions, and the processor 180 executes the application programs stored in the memory 120, so as to implement various functions:
a sending module 31, configured to send a WiFi direct connection request to a second device when a WiFi direct connection establishment instruction for the second device is detected, where the WiFi direct connection request includes custom direct connection information, the custom direct connection information includes indication information indicating a WiFi direct connection role of the first device and/or the second device, and the WiFi direct connection role includes a group owner and a group client;
a receiving module 32, configured to receive request response information of the second device in response to the WiFi direct connection request, where the request response information includes custom indication reply information, and the custom indication reply information is response information to the indication information;
and the establishing module 33 is configured to establish a WiFi direct connection with the second device according to the custom direct connection information and the custom indication reply information.
In some embodiments, the establishing module 33 is configured to change, when the custom indication reply message is a rejection message of the indication message, indication information of a WiFi direct connection role of the first device and/or the second device in the custom direct connection message, and establish a WiFi direct connection with the second device according to the changed custom direct connection message.
In some embodiments, the establishing module 33 is configured to generate a new WiFi direct connection request based on the modified customized direct connection information, and send the new WiFi direct connection request to the second device to establish a WiFi direct connection with the second device.
In some embodiments, the establishing module 33 is configured to, if it is determined that the first device is a group client based on the modified customized direct connection information, send a detection request packet to the second device with an identity of the group client, receive a detection reply packet sent by the second device in response to the detection request packet, and establish a WiFi direct connection with the second device. Or:
the obtaining module 41 is configured to obtain a WiFi direct connection request sent by a first device, where the WiFi direct connection request includes custom direct connection information, the custom direct connection information includes indication information indicating a WiFi direct connection role of the first device and/or a second device, and the WiFi direct connection role includes a group owner and a group client;
the generating module 42 is configured to generate, based on the WiFi direct request, request response information of the WiFi direct request, where the request response information includes custom indication reply information, where the custom indication reply information is response information to the indication information;
And the establishing module 43 is configured to send the request response information to the first device, and establish WiFi direct connection with the first device.
In some embodiments, the establishing module 43 is configured to, when the WiFi direct connection request includes a target working channel used for WiFi direct connection, switch a channel used by the second device to the target working channel if the custom indication reply message in the request response message is the consent message for the indication message, and establish WiFi direct connection with the first device based on the target working channel.
The embodiment of the application also provides a mobile terminal. The mobile terminal can be a smart phone, a tablet computer and other devices.
Referring to fig. 7, fig. 7 shows a schematic structural diagram of an apparatus provided in an embodiment of the present application, where the apparatus may be used to implement the method for establishing WiFi direct connection in the foregoing embodiment. The device 1200 may be a smart phone or tablet computer.
As shown in fig. 7, the apparatus 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more (only one is shown in the figure) computer readable storage mediums, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more (only one is shown in the figure) processing cores, and a power supply 190. Those skilled in the art will appreciate that the configuration of the device 1200 shown in fig. 7 is not limiting of the device 1200 and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
The RF circuit 110 is configured to receive and transmit electromagnetic waves, and to perform mutual conversion between the electromagnetic waves and the electrical signals, so as to communicate with a communication network or other devices. RF circuitry 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and the like. The RF circuitry 110 may communicate with various networks such as the internet, intranets, wireless networks, or other devices via wireless networks.
The memory 120 may be used to store software programs and modules, such as program instructions/modules corresponding to the vibration adjustment method in the above embodiments, and the processor 180 executes the software programs and modules stored in the memory 120 to perform various functional applications and data processing. Memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 120 may further include memory remotely located relative to the processor 180, which may be connected to the electronic device 1200 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 130 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may comprise a touch sensitive surface 131 and other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch-sensitive surface 131 or thereabout by using any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection means according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 180, and can receive commands from the processor 180 and execute them. In addition, the touch-sensitive surface 131 may be implemented in various types of resistive, capacitive, infrared, surface acoustic wave, and the like. In addition to the touch-sensitive surface 131, the input unit 130 may also comprise other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 140 may be used to display information entered by a user or provided to a user as well as various graphical user interfaces of the device 1200, which may be composed of graphics, text, icons, video, and any combination thereof. The display unit 140 may include a display panel 141, and alternatively, the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display ), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may overlay the display panel 141, and upon detection of a touch operation thereon or thereabout by the touch-sensitive surface 131, the touch-sensitive surface is transferred to the processor 180 to determine the type of touch event, and the processor 180 then provides a corresponding visual output on the display panel 141 based on the type of touch event. Although in fig. 7 the touch-sensitive surface 131 and the display panel 141 are implemented as two separate components for input and output functions, in some embodiments the touch-sensitive surface 131 may be integrated with the display panel 141 to implement the input and output functions.
The device 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. In particular, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the device 1200 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the mobile phone is stationary, and can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the device 1200 are not described in detail herein.
Audio circuitry 160, speaker 161, microphone 162 may provide an audio interface between a user and device 1200. The audio circuit 160 may transmit the received electrical signal converted from audio data to the speaker 161, and the electrical signal is converted into a sound signal by the speaker 161 to be output; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, receives the electrical signal from the audio circuit 160, converts the electrical signal into audio data, outputs the audio data to the processor 180 for processing, transmits the audio data to, for example, another terminal via the RF circuit 110, or outputs the audio data to the memory 120 for further processing. The audio circuit 160 may also include an ear bud jack to provide communication of the peripheral headphones with the device 1200.
The device 1200 may facilitate user email, web browsing, streaming media access, etc. via the transmission module 170 (e.g., wi-Fi module), which provides wireless broadband internet access to the user. Although fig. 7 shows the transmission module 170, it is understood that it does not belong to the essential constitution of the apparatus 1200, and can be omitted entirely as required within the scope not changing the essence of the invention.
The processor 180 is a control center of the device 1200, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the device 1200 and processes data by running or executing software programs and/or modules stored in the memory 120, and invoking data stored in the memory 120, thereby performing overall monitoring of the handset. Optionally, the processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor that primarily processes operating systems, user interfaces, applications, etc., with a modem processor that primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The device 1200 also includes a power supply 190 (e.g., a battery) that provides power to the various components, and in some embodiments, may be logically coupled to the processor 180 via a power management system to perform functions such as managing charging, discharging, and power consumption via the power management system. The power supply 190 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the device 1200 may also include cameras (e.g., front cameras, rear cameras), bluetooth modules, etc., which are not described in detail herein. In particular, in the present embodiment, the display unit 140 of the apparatus 1200 is a touch screen display, the apparatus 1200 further includes a memory 120, and one or more programs, wherein the one or more programs are stored in the memory 120 and configured to be executed by the one or more processors 180, the one or more programs include instructions (1) or instructions (2) for:
instruction (1): when a WiFi direct connection establishment instruction aiming at second equipment is detected, a WiFi direct connection request is sent to the second equipment, wherein the WiFi direct connection request comprises self-defined direct connection information, the self-defined direct connection information comprises indication information for indicating a WiFi direct connection role of the first equipment and/or the second equipment, and the WiFi direct connection role comprises a group owner and a group client;
Receiving request response information of the second device in response to the WiFi direct connection request, wherein the request response information comprises custom indication reply information, and the custom indication reply information is response information to the indication information;
and establishing WiFi direct connection with the second equipment according to the self-defined direct connection information and the self-defined indication reply information.
In some embodiments, the processor 180 is configured to set the custom indication reply message to be a rejection message of the indication message, and set up a WiFi direct connection with the second device according to the custom direct connection message and the custom indication reply message, including:
changing indication information of WiFi direct connection roles of the first equipment and/or the second equipment in the custom direct connection information;
and establishing WiFi direct connection with the second equipment according to the modified custom direct connection information.
In some embodiments, the processor 180 is configured to establish a WiFi direct connection with the second device according to the modified customized direct connection information, including:
generating a new WiFi direct connection request based on the modified user-defined direct connection information;
and sending the new WiFi direct connection request to the second equipment so as to establish WiFi direct connection with the second equipment.
In some embodiments, the processor 180 is configured to establish a WiFi direct connection with the second device according to the modified customized direct connection information, including:
if the first device is determined to be a group client based on the changed user-defined direct connection information, sending a detection request packet to the second device according to the identity of the group client;
receiving a detection reply packet sent by the second equipment in response to the detection request packet;
and establishing WiFi direct connection with the second equipment.
In some embodiments, before the processor 180 is configured to send the WiFi direct request to the second device, the method further includes:
determining a WiFi direct connection role of the first device and/or the second device;
generating a first role field based on a WiFi direct connection role of the first device;
generating a second role field based on the WiFi direct connection role of the second device;
and generating custom direct connection information based on the first role field and/or the second role field.
Instruction (2): acquiring a WiFi direct connection request sent by first equipment, wherein the WiFi direct connection request comprises self-defined direct connection information, the self-defined direct connection information comprises indication information for indicating a WiFi direct connection role of the first equipment and/or second equipment, and the WiFi direct connection role comprises a group owner and a group client;
Generating request response information of the WiFi direct connection request based on the WiFi direct connection request, wherein the request response information comprises custom indication reply information which is response information to the indication information;
and sending the request response information to the first equipment, and establishing WiFi direct connection with the first equipment.
In some embodiments, the processor 180 is configured to send the request response information to the first device, where the request response information includes:
if the custom indication reply information in the request response information is the consent information to the indication information, switching the channel used by the second equipment to the target working channel;
and establishing WiFi direct connection with the first equipment based on the target working channel.
From the foregoing, embodiments of the present application provide an apparatus 1200, where the apparatus 1200 performs the following steps: when a WiFi direct connection establishment instruction aiming at second equipment is detected, a WiFi direct connection request is sent to the second equipment, wherein the WiFi direct connection request comprises self-defined direct connection information, the self-defined direct connection information comprises indication information for indicating a WiFi direct connection role of the first equipment and/or the second equipment, and the WiFi direct connection role comprises a group owner and a group client; receiving request response information of the second device in response to the WiFi direct connection request, wherein the request response information comprises custom indication reply information, and the custom indication reply information is response information to the indication information; and establishing WiFi direct connection with the second equipment according to the self-defined direct connection information and the self-defined indication reply information. Or, acquiring a WiFi direct connection request sent by a first device, wherein the WiFi direct connection request comprises self-defined direct connection information, the self-defined direct connection information comprises indication information for indicating a WiFi direct connection role of the first device and/or a second device, and the WiFi direct connection role comprises a group owner and a group client; generating request response information of the WiFi direct connection request based on the WiFi direct connection request, wherein the request response information comprises custom indication reply information which is response information to the indication information; and sending the request response information to the first equipment, and establishing WiFi direct connection with the first equipment. According to the method and the device for establishing the WiFi direct connection, when the WiFi direct connection request is sent to the second device, the indication information for indicating the WiFi direct connection roles of the first device and/or the second device is carried in the request, the WiFi direct connection roles of the first device and the second device are determined through the indication information, and therefore the WiFi direct connection is established, namely, the group owner and the group client in the WiFi direct connection are rapidly determined through simplifying the GO negotiation flow, and therefore the establishment speed of the WiFi direct connection is improved.
The embodiment of the application also provides a storage medium, in which a computer program is stored, and when the computer program runs on a computer, the computer executes the method for establishing the WiFi direct connection according to any one of the embodiments.
It should be noted that, for the method for establishing a WiFi direct connection in the present application, it will be understood by those skilled in the art that all or part of the flow of implementing the method for establishing a WiFi direct connection in the embodiments of the present application may be implemented by controlling related hardware through a computer program, where the computer program may be stored in a computer readable storage medium, such as a memory of a mobile terminal, and executed by at least one processor in the mobile terminal, and the execution may include the flow of the embodiments of the vibration adjustment method. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a random access Memory (RAM, random Access Memory), or the like.
For the device for establishing WiFi direct connection in the embodiment of the present application, each functional module may be integrated in one processing chip, or each module may exist physically separately, or two or more modules may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated module, if implemented as a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium such as read-only memory, magnetic or optical disk, etc.
The method, the device, the storage medium and the equipment for establishing the WiFi direct connection provided by the embodiment of the application are described in detail. The principles and embodiments of the present application are described herein with specific examples, the above examples being provided only to assist in understanding the methods of the present application and their core ideas; meanwhile, those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, and the present description should not be construed as limiting the present application in view of the above.

Claims (9)

1. A method for establishing a WiFi direct connection, wherein the method is applied to a first device, the method comprising:
when a WiFi direct connection establishment instruction aiming at second equipment is detected, a WiFi direct connection request is sent to the second equipment, wherein the WiFi direct connection request comprises self-defined direct connection information, the self-defined direct connection information comprises indication information for indicating a WiFi direct connection role of the first equipment and/or the second equipment, and the WiFi direct connection role comprises a group owner and a group client;
receiving request response information of the second device in response to the WiFi direct connection request, wherein the request response information comprises custom indication reply information;
If the custom indication reply information is the response information to the indication information, establishing WiFi direct connection with the second equipment according to the custom direct connection information and the custom indication reply information;
if the custom indication reply information is the rejection information of the indication information, changing the indication information of the WiFi direct connection role of the first device and/or the second device in the custom direct connection information, and establishing WiFi direct connection with the second device according to the changed custom direct connection information.
2. The method for establishing WiFi direct connection according to claim 1, wherein the establishing WiFi direct connection with the second device according to the modified customized direct connection information includes:
generating a new WiFi direct connection request based on the modified custom direct connection information;
and sending the new WiFi direct connection request to the second equipment so as to establish WiFi direct connection with the second equipment.
3. The method for establishing WiFi direct connection according to claim 1, wherein the establishing WiFi direct connection with the second device according to the modified customized direct connection information includes:
If the first device is determined to be a group client based on the changed user-defined direct connection information, sending a detection request packet to the second device according to the identity of the group client;
receiving a detection reply packet sent by the second equipment in response to the detection request packet;
and establishing WiFi direct connection with the second equipment.
4. The method for establishing a WiFi direct connection according to any one of claims 1-3, wherein before sending a WiFi direct connection request to the second device, the method further includes:
determining a WiFi direct connection role of the first device and/or the second device;
generating a first role field based on a WiFi direct connection role of the first device;
generating a second role field based on the WiFi direct connection role of the second device;
and generating custom direct connection information based on the first role field and/or the second role field.
5. A method for establishing a WiFi direct connection, wherein the method is applied to a second device, the method comprising:
acquiring a WiFi direct connection request sent by first equipment, wherein the WiFi direct connection request comprises self-defined direct connection information, the self-defined direct connection information comprises indication information for indicating a WiFi direct connection role of the first equipment and/or second equipment, and the WiFi direct connection role comprises a group owner and a group client;
Based on the WiFi direct connection request, request response information of the WiFi direct connection request is generated, and the request response information comprises user-defined indication reply information;
and sending the custom indication reply information to the first equipment, so that when the first equipment receives the custom indication reply information, if the custom indication reply information is response information to the indication information, establishing WiFi direct connection with the second equipment according to the custom direct connection information and the custom indication reply information, and if the custom indication reply information is refusal information to the indication information, changing the indication information of the WiFi direct connection role of the first equipment and/or the second equipment in the custom direct connection information, and establishing WiFi direct connection with the second equipment according to the changed custom direct connection information.
6. The method for establishing a WiFi-direct connection according to claim 5, wherein the WiFi-direct connection request includes a target working channel used by the WiFi-direct connection, and after the request response information is sent to the first device, the method includes:
if the custom indication reply information in the request response information is the consent information to the indication information, switching the channel used by the second equipment to the target working channel;
And establishing WiFi direct connection with the first equipment based on the target working channel.
7. An apparatus for establishing a WiFi direct connection, wherein the apparatus is applied to a first device, the apparatus includes:
the device comprises a sending module, a receiving module and a receiving module, wherein the sending module is used for sending a WiFi direct connection request to a second device when a WiFi direct connection establishment instruction aiming at the second device is detected, the WiFi direct connection request comprises self-defined direct connection information, the self-defined direct connection information comprises indication information for indicating a WiFi direct connection role of the first device and/or the second device, and the WiFi direct connection role comprises a group owner and a group client;
the receiving module is used for receiving request response information of the second equipment responding to the WiFi direct connection request, wherein the request response information comprises user-defined indication reply information;
the establishing module is configured to establish WiFi direct connection with the second device according to the self-defined direct connection information and the self-defined instruction reply information if the self-defined instruction reply information is response information to the instruction information, and to change instruction information of WiFi direct connection roles of the first device and/or the second device in the self-defined direct connection information if the self-defined instruction reply information is rejection information to the instruction information, and to establish WiFi direct connection with the second device according to the changed self-defined direct connection information.
8. An apparatus for establishing a WiFi direct connection, wherein the apparatus is applied to a second device, the apparatus comprising:
the system comprises an acquisition module, a first device and a second device, wherein the acquisition module is used for acquiring a WiFi direct connection request sent by the first device, the WiFi direct connection request comprises self-defined direct connection information, the self-defined direct connection information comprises indication information for indicating a WiFi direct connection role of the first device and/or the second device, and the WiFi direct connection role comprises a group owner and a group client;
the generating module is used for generating request response information of the WiFi direct connection request based on the WiFi direct connection request, wherein the request response information comprises user-defined indication reply information;
the establishing module is used for sending the custom indication reply information to the first device, so that when the first device receives the custom indication reply information, if the custom indication reply information is response information to the indication information, establishing WiFi direct connection with the second device according to the custom direct connection information and the custom indication reply information, and if the custom indication reply information is refusal information to the indication information, changing indication information of WiFi direct connection roles of the first device and/or the second device in the custom direct connection information, and establishing WiFi direct connection with the second device according to the changed custom direct connection information.
9. An apparatus, characterized in that the apparatus comprises a processor and a memory, wherein the memory stores a computer program, and the processor is configured to execute the method for establishing a WiFi direct connection according to any one of claims 1 to 4 or implement the method for establishing a WiFi direct connection according to any one of claims 5 to 6 by calling the computer program stored in the memory.
CN202111107181.4A 2021-09-22 2021-09-22 Method, device and equipment for establishing WiFi direct connection Active CN113873685B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111107181.4A CN113873685B (en) 2021-09-22 2021-09-22 Method, device and equipment for establishing WiFi direct connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111107181.4A CN113873685B (en) 2021-09-22 2021-09-22 Method, device and equipment for establishing WiFi direct connection

Publications (2)

Publication Number Publication Date
CN113873685A CN113873685A (en) 2021-12-31
CN113873685B true CN113873685B (en) 2024-02-06

Family

ID=78992980

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111107181.4A Active CN113873685B (en) 2021-09-22 2021-09-22 Method, device and equipment for establishing WiFi direct connection

Country Status (1)

Country Link
CN (1) CN113873685B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014069868A1 (en) * 2012-10-29 2014-05-08 엘지전자 주식회사 Wi-fi direct service method using nfc and device therefor
KR101397018B1 (en) * 2012-12-27 2014-05-20 부산대학교 산학협력단 System and method for setting up a wi-fi direct connection among multiple device
CN103891396A (en) * 2011-08-18 2014-06-25 三星电子株式会社 Apparatus and method for determining group owner in establishment of wi-fi direct connection
WO2014189752A1 (en) * 2013-05-22 2014-11-27 Intel IP Corporation Systems and methods for enabling service interoperability functionality for wifi direct devices connected to a network via a wireless access point
CN104363590A (en) * 2014-10-24 2015-02-18 腾讯科技(深圳)有限公司 Access point connection method and device
CN104812101A (en) * 2009-04-22 2015-07-29 索尼公司 Wireless communication device, wireless communication system, wireless communication method, and program
CN104813735A (en) * 2013-03-12 2015-07-29 Lg电子株式会社 Method for peer-to-peer group formation in direct communication system and device therefor
CN105659689A (en) * 2013-08-20 2016-06-08 三星电子株式会社 Method and system for dual role handling in a wireless environment
WO2017068062A1 (en) * 2015-10-22 2017-04-27 Koninklijke Kpn N.V. Method for enabling establishment of a direct connection
CN109587667A (en) * 2018-11-23 2019-04-05 Oppo广东移动通信有限公司 A kind of connection method for building up and device, equipment, storage medium
CN112312586A (en) * 2019-08-02 2021-02-02 Oppo广东移动通信有限公司 WiFi direct connection establishing method, device, equipment and storage medium
EP3787328A1 (en) * 2019-08-29 2021-03-03 Brother Kogyo Kabushiki Kaisha First communication device and computer program for first communication device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8965283B2 (en) * 2009-08-10 2015-02-24 Qualcomm Incorporated Setting up a direct link in a peer to peer wireless network
KR101867089B1 (en) * 2011-09-14 2018-06-15 삼성전자주식회사 Method for using legacy wi-fi and wi-fi p2p simultaneously
KR102091605B1 (en) * 2012-09-27 2020-03-20 엘지전자 주식회사 Device and method for performing inter-device communication
CN104823517B (en) * 2012-11-29 2019-04-23 Lg电子株式会社 Method and device for the communication being arranged in the direct-connected service system of WI-FI
KR101489675B1 (en) * 2012-12-20 2015-02-04 주식회사 팬택 Method for scanning and connecting wi-fi direct device, terminal device for the same
US9100942B2 (en) * 2013-03-14 2015-08-04 Qualcomm Incorporated WiFi Direct connection using machine-readable labels
US20180007722A1 (en) * 2016-07-01 2018-01-04 Daniel Cohn Unauthorized Users Notification
KR102383383B1 (en) * 2017-08-08 2022-04-06 삼성전자 주식회사 Electronic device and method for forming wi-fi direct group thereof
KR102366312B1 (en) * 2017-09-20 2022-02-25 삼성전자주식회사 Electronic device for performing reconnection of near field communication and method for controlling thereof

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104812101A (en) * 2009-04-22 2015-07-29 索尼公司 Wireless communication device, wireless communication system, wireless communication method, and program
CN103891396A (en) * 2011-08-18 2014-06-25 三星电子株式会社 Apparatus and method for determining group owner in establishment of wi-fi direct connection
WO2014069868A1 (en) * 2012-10-29 2014-05-08 엘지전자 주식회사 Wi-fi direct service method using nfc and device therefor
KR101397018B1 (en) * 2012-12-27 2014-05-20 부산대학교 산학협력단 System and method for setting up a wi-fi direct connection among multiple device
CN104813735A (en) * 2013-03-12 2015-07-29 Lg电子株式会社 Method for peer-to-peer group formation in direct communication system and device therefor
WO2014189752A1 (en) * 2013-05-22 2014-11-27 Intel IP Corporation Systems and methods for enabling service interoperability functionality for wifi direct devices connected to a network via a wireless access point
CN105659689A (en) * 2013-08-20 2016-06-08 三星电子株式会社 Method and system for dual role handling in a wireless environment
CN104363590A (en) * 2014-10-24 2015-02-18 腾讯科技(深圳)有限公司 Access point connection method and device
WO2017068062A1 (en) * 2015-10-22 2017-04-27 Koninklijke Kpn N.V. Method for enabling establishment of a direct connection
CN109587667A (en) * 2018-11-23 2019-04-05 Oppo广东移动通信有限公司 A kind of connection method for building up and device, equipment, storage medium
CN112312586A (en) * 2019-08-02 2021-02-02 Oppo广东移动通信有限公司 WiFi direct connection establishing method, device, equipment and storage medium
EP3787328A1 (en) * 2019-08-29 2021-03-03 Brother Kogyo Kabushiki Kaisha First communication device and computer program for first communication device

Also Published As

Publication number Publication date
CN113873685A (en) 2021-12-31

Similar Documents

Publication Publication Date Title
CN105024984B (en) Authority setting method, apparatus and system
US11184754B2 (en) Data sharing method and terminal
CN108256853B (en) Payment method and mobile terminal
CN106293308B (en) Screen unlocking method and device
CN108834132B (en) Data transmission method and equipment and related medium product
CN108668328B (en) Network switching method and mobile terminal
CN109739394B (en) SAR value processing method and mobile terminal
CN111641928A (en) Method for determining close contact person, terminal equipment and server
EP3585127B1 (en) Wireless communication-based connection method and terminal
CN113489630A (en) Network distribution method, device, storage medium and electronic terminal
CN108880751A (en) transmission rate adjusting method, device and electronic device
CN106470234B (en) Equipment discovery method and device
CN110958644A (en) Terminal equipment capability information processing method and related equipment
CN112243259A (en) Network disconnection method, device, storage medium and mobile terminal
CN105703808A (en) Method and device for transmitting data
CN109348425B (en) Positioning information updating method, device, equipment and storage medium
CN110933770A (en) Connection request sending method and device, storage medium and electronic equipment
CN113873685B (en) Method, device and equipment for establishing WiFi direct connection
CN116980851A (en) Method and device for sharing subroutines between locomotives, electronic equipment and storage medium
CN111966206B (en) Power saving control method and device for fingerprint sensor and mobile terminal
CN109799994B (en) Terminal component generation method and device
CN110012146B (en) Communication sharing method and terminal
CN106879046B (en) Network scanning method and terminal equipment
CN111565388A (en) Network registration method and electronic equipment
CN106657278B (en) Data transmission method and device and computer equipment

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
GR01 Patent grant
GR01 Patent grant