WiFi direct connection establishment method, device, terminal, system and storage medium

Through third-party applications, log in to the signaling system and monitor device information, and directly establish a WiFi direct connection with the target terminal, solving the problem of low WiFi direct connection efficiency in the existing technology, and achieving simplified connection process and improved connection efficiency.

CN119521453APending Publication Date: 2025-02-25GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311028999.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-15
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

In the prior art, the WiFi direct connection establishment process requires multiple manual operations by the user, resulting in low connection efficiency.

Method used

Log in to the signaling system through a third-party application, obtain the device information of the target terminal, and monitor the device information within the preset communication range. When the device information of the target terminal is detected, a direct WiFi connection is directly established with it.

Benefits of technology

The establishment of a direct WiFi connection can be achieved without frequent manual operations by users, simplifying the connection process and improving connection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119521453A_ABST
    Figure CN119521453A_ABST
Patent Text Reader

Abstract

The invention provides a WiFi direct connection establishment method and device, a terminal, a system and a storage medium, and the method comprises the steps that a first terminal logs in a signaling system through a third-party application, and obtains the equipment information of a second terminal from the signaling system; the first terminal monitors equipment information in a preset communication range; and when monitoring the equipment information of the second terminal, the first terminal establishes WiFi direct connection with the second terminal according to the equipment information of the second terminal. According to the technical scheme, the connection process can be simplified, and the WiFi direct connection efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method, device, terminal, system and storage medium for establishing a WiFi direct connection. Background Art

[0002] WiFi Direct is a communication technology that allows two or more devices to establish a connection and communicate directly through a WiFi network without an intermediate router or access point. This connection method is usually used for point-to-point communication, allowing devices to directly exchange data in a relatively independent network environment. Therefore, WiFi Direct enables terminals to establish communication within a relatively small range, thereby realizing data transmission and resource sharing. Compared with using a public wireless LAN or data traffic transmission, it has the advantages of fast transmission speed, high reliability, and free of charge. Currently, the way to establish a WiFi Direct connection is that the user at the sending end needs to discover the device and then manually select the device to connect. The user at the receiving end also needs to manually operate on the receiving end to respond to the sender's request for connection establishment. The whole process requires the user to operate multiple times, the process is very cumbersome, and the WiFi Direct connection efficiency is low. Summary of the invention

[0003] The present application provides a method, device, terminal, system and storage medium for establishing a WiFi direct connection to solve the technical problem in the prior art that the WiFi direct connection process requires the user to perform multiple operations, resulting in low WiFi direct connection efficiency.

[0004] In a first aspect, a method for establishing a WiFi direct connection is provided, which is applied to a first terminal, wherein the first terminal has a third-party application installed, the method comprising: logging into a signaling system through the third-party application, and obtaining device information of the second terminal from the signaling system; monitoring device information within a preset communication range; and when the device information of the second terminal is monitored, establishing a WiFi direct connection with the second terminal according to the device information of the second terminal.

[0005] In combination with the first aspect, in a possible implementation method, after logging into the signaling system through the third-party application and obtaining the device information of the second terminal from the signaling system, it also includes: determining whether there is device information of the first terminal in the signaling system; if not, storing the device information of the first terminal in the signaling system.

[0006] In combination with the first aspect, in a possible implementation manner, after establishing a WiFi direct connection with the second terminal according to the device information of the second terminal, it also includes: obtaining the network address information of the second terminal through the WiFi direct connection; and establishing a local area network connection with the second terminal based on the network address information of the second terminal and the device information of the second terminal.

[0007] In combination with the first aspect, in a possible implementation method, after establishing a local area network connection with the second terminal based on the network address information of the second terminal and the device information of the second terminal, it also includes: conducting target services with the second terminal through the local area network connection, and the target services include any one or more of screen projection, live broadcast, file transfer, and device control.

[0008] In combination with the first aspect, in a possible implementation, the method further includes: when receiving an instruction from a user to establish a public wireless LAN connection, establishing a public wireless LAN connection according to the wireless LAN pointed to by the instruction, and maintaining normal communication of the LAN connection.

[0009] In combination with the first aspect, in a possible implementation method, logging into the signaling system through the third-party application and obtaining the device information of the second terminal from the signaling system includes: receiving a user account login operation on the third-party application, and obtaining the identity information of the user account based on the user account login operation; obtaining the device information of all terminals that have logged in under the user account from the signaling system based on the identity information, and the device information of all terminals includes at least the device information of the second terminal.

[0010] In combination with the first aspect, in a possible implementation manner, the device information of the second terminal includes: any one or more of a device name, a hardware address, and a port to be monitored for establishing a local area network.

[0011] In a second aspect, a method for establishing a WiFi direct connection is provided, which is applied to a second terminal, and the second terminal has a third-party application installed. The method includes: logging in to a signaling system through the third-party application, and obtaining device information of a first terminal from the signaling system; when a WiFi direct connection request of the first terminal is received within a preset communication range, responding to the WiFi direct connection request according to the device information of the first terminal in the signaling system, and establishing a WiFi direct connection with the first terminal.

[0012] In combination with the second aspect, in a possible implementation, the method also includes: sending the network address information of the second terminal to the first terminal through the WIFI direct connection, so that the first terminal establishes a local area network connection with the second terminal based on the network address information of the second terminal and the device information of the second terminal.

[0013] According to a third aspect, a device for establishing a WiFi direct connection is provided, which is applied to a first terminal, wherein the first terminal has a third-party application installed, and the device includes: a first acquisition module, which is used to log in to a signaling system through the third-party application and obtain device information of the second terminal from the signaling system; a monitoring module, which is used to monitor device information within a preset communication range; a first connection module, which is used to establish a WiFi direct connection with the second terminal according to the device information of the second terminal when the device information of the second terminal is monitored within the preset communication range.

[0014] In a fourth aspect, a WiFi direct connection establishment device is provided, which is applied to a second terminal, and the second terminal installs a third-party application. The device includes: a second acquisition module, which is used to log in to the signaling system through the third-party application and obtain the device information of the first terminal from the signaling system; a second connection module, which is used to respond to the WiFi direct connection request when a WiFi direct connection request of the first terminal is received within a preset communication range, according to the device information of the first terminal in the signaling system, and establish a WiFi direct connection with the first terminal.

[0015] In a fifth aspect, a terminal is provided, comprising a memory, a processor and a transceiver, wherein the memory and the transceiver are connected to the processor, the transceiver is used to send and receive data, and the processor is used to execute one or more computer programs stored in the memory. When the processor executes the one or more computer programs, the terminal implements the method described in the first aspect or the second aspect.

[0016] In a sixth aspect, a computer-readable storage medium is provided, characterized in that the computer-readable storage medium stores a computer program, the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the method described in the first aspect or the second aspect.

[0017] In a seventh aspect, a WiFi direct connection establishment system is provided, comprising a first terminal and a second terminal, wherein the first terminal is used to execute the method as described in the first aspect, and the second terminal is used to execute the method as described in the second aspect.

[0018] The present application can achieve the following technical effects: the first terminal logs in to the signaling system through a third-party application, obtains the device information of the second terminal from the signaling system, and when the device information of the second terminal is monitored within the preset communication range, directly establishes a WiFi direct connection with the second terminal. Through this method, the user does not need to frequently perform manual operations on the first terminal and the second terminal to establish a WiFi direct connection, which simplifies the connection process and improves the efficiency of WiFi direct connection. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 A schematic diagram of the architecture of a WiFi direct connection establishment system provided in an embodiment of the present application;

[0020] Figure 2 A schematic diagram of a process for establishing a WiFi direct connection provided in an embodiment of the present application;

[0021] Figure 3 A schematic diagram of a flow chart of another method for establishing a WiFi direct connection provided in an embodiment of the present application;

[0022] Figure 4 A flowchart of another method for establishing a WiFi direct connection provided in an embodiment of the present application;

[0023] Figure 5 A schematic diagram of the structure of a WiFi direct connection establishment device provided in an embodiment of the present application;

[0024] Figure 6 A schematic diagram of the structure of another device for establishing a WiFi direct connection provided in an embodiment of the present application;

[0025] Figure 7 A schematic diagram of the structure of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0027] It should be noted that, if there is no conflict, the various features in the embodiments of the present invention can be combined with each other, and all are within the scope of protection of the present invention. In addition, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in a different order from the module division in the device or the flow chart. Furthermore, the words "first", "second", "third", etc. used in the present invention do not limit the data and execution order, but only distinguish the same items or similar items with basically the same functions and effects.

[0028] To describe the present application in more detail, a WiFi direct connection establishment system involved in the present application is first introduced. The WiFi direct connection establishment system is applicable to communication scenarios, and is particularly applicable to application scenarios where WiFi direct connections are established between terminals. For example, please refer to Figure 1 , is a WiFi direct connection establishment system 10 provided in an embodiment of the present application, and the WiFi direct connection establishment system 10 includes: a first terminal 101 and a second terminal 102.

[0029] It is agreed in this article that: the first terminal 101 refers to a terminal that searches and actively establishes a WiFi direct connection in a communication scenario, and the second terminal 102 refers to a terminal that waits to be searched and connected by the first terminal 101 in a communication scenario. Specifically, the first terminal 101 and the second terminal 102 can be terminals such as mobile phones, laptops, and tablet computers, and this application does not limit it. It should be understood that a terminal can initiate a WiFi direct connection as a first terminal, and can also receive a WiFi direct connection as a second terminal.

[0030] Based on the above system, a WiFi direct connection establishment method involved in this application can be implemented. Figure 2 , is a flow chart of a method for establishing a WiFi direct connection provided in an embodiment of the present application. Figure 2 The WiFi direct connection establishment method shown may include:

[0031] S201. A first terminal logs in to a signaling system through a third-party application, stores its own device information, and obtains device information of a second terminal.

[0032] In this step, the first terminal and the second terminal both install the third-party application and use the same user account to log in. After successful login, the first terminal will use the account identification (Identity, ID) and token of the user account to log in to the signaling system.

[0033] As a feasible implementation method, the signaling system is similar to the instant messaging system (IM), which can communicate with each other in real time and send and receive signals. The signaling system can store the device information of the terminals logged in under the same user account, so that different terminals logged in under the same user account can communicate with each other in real time.

[0034] S202: The second terminal logs in to the signaling system through the third-party application, stores its own device information, and obtains the device information of the first terminal.

[0035] Similar to step S201, the second terminal may also use the same user account as the first terminal to log in to the third-party application. The third-party application connects to the signaling system, stores the device information of the second terminal, and simultaneously obtains the device information of the first terminal.

[0036] As a feasible implementation manner, the signaling system may store a plurality of device information, and the device information of the first terminal and the device information of the second terminal are included in the plurality of device information.

[0037] S203: The first terminal turns on the WiFi direct connection function and monitors device information within a preset communication range.

[0038] As a feasible implementation manner, the method for the first terminal to enable the WiFi direct connection function may be: the first terminal is configured with a WiFi direct connection module, and the user can enable the WiFi direct connection function of the first terminal based on the WiFi direct connection module.

[0039] It should be noted that the preset communication range refers to the maximum communication range that the WiFi module of the first terminal can cover. In some feasible implementations, the size of the maximum communication range may depend on multiple factors, such as signal power, antenna type, device quality, interference in the environment, weather conditions, etc. The first terminal can adapt the WiFi coverage communication range according to the actual situation of the current environment to ensure that the WiFi signal of the first terminal can cover the maximum in the current environment to the greatest extent.

[0040] S204: The second terminal simultaneously turns on the WiFi direct connection function.

[0041] In this step, when the first terminal is searching for a device, the second terminal also needs to synchronize the WiFi direct connection function so that the first terminal can search for the second terminal.

[0042] As a feasible implementation method, after turning on the WiFi direct connection function, the first terminal monitors the device information corresponding to all devices with the WiFi direct connection function turned on within a preset communication range. At this time, when the WiFi direct connection function is turned on on the second terminal and is within the preset communication range, the first terminal can monitor the device information of the second terminal.

[0043] S205: The first terminal monitors the device information of the second terminal within the preset communication range, and when confirming that the device information is consistent with the device information obtained from the signaling system, initiates a WiFi direct connection establishment request to the second terminal.

[0044] In this step, the first terminal can obtain the device information of the second terminal from the signaling system in advance. When the device information is monitored within the preset communication range, it will be found that the device information is consistent with the device information of the second terminal obtained in the signaling system, and a WiFi direct connection establishment request can be initiated to the second terminal.

[0045] In some feasible implementations, the device information of multiple terminals within the preset communication range may be consistent with the device information stored in the signaling system, that is, the first terminal can search for the device information of multiple second terminals within the preset communication range. At this time, the first terminal can initiate a WiFi direct connection establishment request to each second terminal and establish the WiFi direct connection with each second terminal, or the user can also set the priority of each device information in the signaling system. When the first terminal searches for the device information of multiple second terminals within the preset communication range, the WiFi direct connection is established with the second terminal with the highest priority.

[0046] S206. The second terminal receives the WiFi direct connection establishment request, and automatically responds to the WiFi direct connection establishment request when confirming that the device information of the first terminal corresponding to the WiFi direct connection establishment request is consistent with the device information of the first terminal obtained from the signaling system.

[0047] As a feasible implementation method, the first terminal initiates a request to establish a WiFi direct connection, the second terminal receives the request, and parses the device information of the first terminal from the request. When it is confirmed that the device information of the first terminal is consistent with the device information of the first terminal obtained in the signaling system, the second terminal can automatically respond to the request to establish a WiFi direct connection.

[0048] S207: The first terminal establishes a WiFi direct connection with the second terminal.

[0049] S208: The first terminal obtains network address information of the second terminal through a WiFi direct connection.

[0050] In this step, after the WiFi direct connection is successfully established, the first terminal can obtain the network address information (for example, the IP address) of the second terminal under the connection.

[0051] S209: The first terminal establishes a local area network connection with the second terminal based on the network address information of the second terminal and the device information of the second terminal.

[0052] In this step, after the first terminal obtains the network address information of the second terminal, combined with the previously obtained device information of the second device (specifically, the port information in the second device information), the first terminal can establish a LAN connection with the second terminal.

[0053] In one embodiment, the local area network connection is a socket connection.

[0054] S210: The first terminal performs a target service with the second terminal through the local area network connection.

[0055] In this step, when the LAN connection between the first terminal and the second terminal is successfully established, the first terminal and the second terminal can communicate in the LAN and realize related target services, which include any one or more of screen projection, live broadcast, file transfer, and device control.

[0056] It can be seen that by implementing the above-mentioned WiFi direct connection establishment method, with the help of a third-party application, the terminals logged in under the same user account can automatically achieve WiFi direct connection, without the user having to perform too many manual operations during the WiFi direct connection process, reducing the tediousness of WiFi direct connection and improving the efficiency of WiFi direct connection. At the same time, since the premise of WiFi direct automatic connection is that the two terminals must have logged in under the same user account, it ensures that the automatically connected terminals are all terminals confirmed by the user, avoiding misconnection during the WiFi direct connection process and improving the accuracy of WiFi direct connection.

[0057] The following will explain the WiFi direct connection establishment method involved in this application from the perspectives of the first terminal and the second terminal respectively. Figure 3 , is a flow chart of another method for establishing a WiFi direct connection provided in an embodiment of the present application.

[0058] S301. The first terminal logs in to a signaling system through the third-party application, and obtains device information of the second terminal from the signaling system.

[0059] It should be noted that the first terminal has the third-party application installed.

[0060] In one embodiment, the first terminal logs in to the signaling system through the third-party application and obtains the device information of the second terminal from the signaling system, including: receiving a user account login operation on the third-party application, and obtaining the identity information of the user account according to the user account login operation; the first terminal obtains the device information of all terminals that have logged in under the user account from the signaling system according to the identity information, and the device information of all terminals includes at least the device information of the second terminal.

[0061] For example, a user can log in to a user account through the third-party application. After successful login, the first terminal will use the account ID and token of the user account to log in to the signaling system, and the signaling system can store all device information that has logged in to the user account. The first terminal can obtain all device information under the user account.

[0062] In one embodiment, after the first terminal logs in to the signaling system through the third-party application and obtains the device information of the second terminal from the signaling system, it also includes: determining whether the device information of the first terminal is available in the signaling system; if not, storing the device information of the first terminal in the signaling system.

[0063] For example, if the first terminal logs into the signaling system through the third-party application for the first time, the device information of the first terminal is not stored in the signaling system, then the first terminal can store its own device information in the signaling system, at which point all terminals using the user account can update and obtain the device information of the first terminal from the signaling system. If the first terminal does not log into the signaling system through the third-party application for the first time, the device information of the first terminal may have been stored in the signaling system, and the first terminal confirms that its own device information exists in the signaling system, and then it may not repeatedly upload its own device information.

[0064] As a feasible implementation method, the second terminal can use the same user account as the first terminal to log in to a third-party application, connect to the signaling system through the third-party application, store the device information of the second terminal, and simultaneously obtain the device information of the first terminal.

[0065] In one embodiment, the device information of the second terminal includes: device name, hardware address, any one or more of the ports required to monitor the establishment of the local area network. It can be understood that the device information of the first terminal is similar to the device information of the second terminal, and will not be repeated here.

[0066] S302: The first terminal monitors device information within a preset communication range.

[0067] As a feasible implementation manner, the user may enable the WiFi direct connection function on the first terminal. After the WiFi direct connection function is enabled on the first terminal, the device information within a preset communication range may be monitored.

[0068] It should be noted that the preset communication range refers to the maximum communication range that the WiFi module of the first terminal can cover. In some feasible implementations, the size of the maximum communication range may depend on multiple factors, such as signal power, antenna type, device quality, interference in the environment, weather conditions, etc. The first terminal can adapt the WiFi coverage communication range according to the actual situation of the current environment to ensure that the WiFi signal of the first terminal can cover the maximum in the current environment to the greatest extent.

[0069] S303: When the device information of the second terminal is monitored, the first terminal establishes a WiFi direct connection with the second terminal according to the device information of the second terminal.

[0070] As a feasible implementation method, after turning on the WiFi direct connection function, the first terminal monitors the device information corresponding to all devices with the WiFi direct connection function turned on within a preset communication range. At this time, when the WiFi direct connection function is turned on on the second terminal and is within the preset communication range, the first terminal can monitor the device information of the second terminal.

[0071] In one embodiment, after the first terminal establishes a WiFi direct connection with the second terminal according to the device information of the second terminal, the method further includes: the first terminal obtains the network address information of the second terminal through the WiFi direct connection; and the first terminal establishes a local area network connection with the second terminal based on the network address information of the second terminal and the device information of the second terminal.

[0072] For example, after the WiFi direct connection between the first terminal and the second terminal is successfully established, the first terminal can obtain the network address information (such as the IP address) of the second terminal under the WiFi direct connection, and add the device information of the second device obtained previously (specifically, the port information in the second device information), the first terminal can establish a local area network connection with the second terminal.

[0073] In one embodiment, the local area network connection is a socket connection.

[0074] In one embodiment, after the first terminal establishes a local area network connection with the second terminal based on the network address information of the second terminal and the device information of the second terminal, it also includes: conducting target services with the second terminal through the local area network connection, and the target services include any one or more of screen projection, live broadcast, file transfer, and device control.

[0075] It should be noted that after the first terminal and the second terminal establish a LAN connection, the first terminal and the second terminal are in the same LAN. At this time, the first terminal and the second terminal can realize point-to-point communication and can carry out some target services such as screen projection, live broadcast, file transfer, device control, etc.

[0076] For example, after the first terminal establishes a local area network connection with the second terminal, the first terminal can transmit the video stream it is playing to the second terminal through the local area network connection for screen projection and playback.

[0077] In one embodiment, the method further includes: when the first terminal receives an instruction from a user to establish a public wireless LAN connection, establishing a public wireless LAN connection according to the public wireless LAN pointed to by the instruction, and maintaining normal communication of the LAN connection.

[0078] As a feasible implementation mode, the first terminal and the second terminal may be equipped with at least two WiFi connection modules, one of which is used to realize WiFi direct connection, and the remaining WiFi connection modules are used to realize connection to a public wireless local area network.

[0079] For example, after the first terminal establishes the above-mentioned point-to-point LAN connection with the second terminal, if the user turns on the WiFi public wireless LAN search function and selects one of the WiFis that can connect to the Internet to establish a public wireless LAN connection, the first terminal receives the user's instruction to establish a public wireless LAN connection, and responds to the instruction to connect the first terminal to the public wireless LAN selected by the user, while keeping the previously established point-to-point LAN connection from being disconnected, and normal communication can still be carried out.

[0080] It can be seen that by implementing the WiFi direct connection establishment method described in the embodiment of the present application, the first terminal can log in to the signaling system through a third-party application, obtain the device information of the second terminal from the signaling system, and when the device information of the second terminal is monitored within the preset communication range, directly establish a WiFi direct connection with the second terminal. There is no need for the user to frequently operate on the first terminal, which simplifies the WiFi direct connection process and improves the WiFi direct connection efficiency.

[0081] See below Figure 4, is a flow chart of another method for establishing a WiFi direct connection provided in an embodiment of the present application, Figure 4 The WiFi direct connection establishment method shown may include:

[0082] S401. The second terminal logs in to the signaling system through the third-party application and obtains device information of the first terminal from the signaling system.

[0083] It should be noted that the second terminal has the third-party application installed.

[0084] In one embodiment, the second terminal logs in to the signaling system through the third-party application and obtains the device information of the first terminal from the signaling system, including: receiving a user account login operation on the third-party application, and obtaining the identity information of the user account according to the user account login operation; obtaining the device information of all terminals that have logged in under the user account from the signaling system according to the identity information, and the device information of all terminals includes at least the device information of the first terminal.

[0085] For example, the second terminal may use the same user account as the first terminal to log in to a third-party application, connect to the signaling system through the third-party application, store the device information of the second terminal, and simultaneously obtain the device information of the first terminal.

[0086] In one embodiment, after the second terminal logs in to the signaling system through the third-party application and obtains the device information of the first terminal from the signaling system, it also includes: the second terminal determines whether there is the device information of the second terminal in the signaling system; if not, the device information of the second terminal is stored in the signaling system.

[0087] In one embodiment, the device information of the first terminal includes any one or more of a device name, a hardware address, and a port to be monitored for establishing a local area network.

[0088] S402: When the second terminal receives a WiFi direct connection request from the first terminal within a preset communication range, the second terminal responds to the WiFi direct connection request according to the device information of the first terminal in the signaling system, and establishes a WiFi direct connection with the first terminal.

[0089] As a feasible implementation method, when the first terminal initiates a request to establish a WiFi direct connection to the second terminal, the second terminal receives the request and parses the device information of the first terminal from the request. When it is confirmed that the device information of the first terminal is consistent with the device information of the first terminal obtained from the signaling system, the second terminal can automatically respond to the request to establish a WiFi direct connection and establish a WiFi direct connection with the first terminal.

[0090] In one embodiment, the method further includes: the second terminal sends the network address information of the second terminal to the first terminal through the WIFI direct connection, so that the first terminal establishes a local area network connection with the second terminal based on the network address information of the second terminal and the device information of the second terminal.

[0091] For example, the network address information of the second terminal may be the IP address of the second terminal.

[0092] In one embodiment, the method further includes: the second terminal conducts a target service with the first terminal through the local area network connection, and the target service includes any one or more of screen projection, live broadcast, file transfer, and device control.

[0093] In one embodiment, the method further includes: when the second terminal receives an instruction from a user to establish a public wireless LAN connection, establishing a public wireless LAN connection according to the public wireless LAN pointed to by the instruction, and maintaining normal communication of the LAN connection.

[0094] It can be seen that by implementing the WiFi direct connection establishment method described in the embodiment of the present application, the second terminal can log in to the signaling system through a third-party application and obtain the device information of the first terminal from the signaling system. When the WiFi direct connection request of the first terminal is received, the device information of the first terminal in the signaling system is consistent with the device information included in the WiFi direct connection request. The WiFi direct connection request can be automatically responded to and a WiFi direct connection can be established with the first terminal. There is no need for the user to frequently respond, confirm, and perform other operations on the second terminal, which simplifies the WiFi direct connection process and improves the WiFi direct connection efficiency.

[0095] It can be seen that by implementing the WiFi direct connection establishment method described in the embodiment of the present application, the second terminal can log in to the signaling system through a third-party application and obtain the device information of the first terminal from the signaling system. When the WiFi direct connection request of the first terminal is received, since the device information carried by the WiFi direct connection request is consistent with the device information of the first terminal, it can directly respond to the WiFi direct connection request and establish a WiFi direct connection with the first terminal. There is no need for the user to frequently operate on the second terminal, which simplifies the WiFi direct connection process and improves the WiFi direct connection efficiency.

[0096] The method of the present application is introduced above, and the device of the present application is introduced below.

[0097] See also Figure 5 , Figure 5The present invention provides a WiFi direct connection establishment device, which is applied to a first terminal, and the first terminal has a third-party application installed. The WiFi direct connection establishment device 50 includes:

[0098] The first acquisition module 501 is used to log in to the signaling system through the third-party application and obtain the device information of the second terminal from the signaling system.

[0099] The monitoring module 502 is used to monitor the device information within a preset communication range.

[0100] The first connection module 503 is configured to establish a WiFi direct connection with the second terminal according to the device information of the second terminal when the device information of the second terminal is monitored.

[0101] As a possible design, the WiFi direct connection establishing device 50 further includes:

[0102] Judgment module ( Figure 5 (not shown), determining whether there is device information of the first terminal in the signaling system;

[0103] Storage Module( Figure 5 (not shown) is used to store the device information of the first terminal in the signaling system when the judgment module determines that the device information of the first terminal is negative.

[0104] As a possible design, the first connection module 503 is also used to: obtain the network address information of the second terminal through the WiFi direct connection; and establish a local area network connection with the second terminal based on the network address information of the second terminal and the device information of the second terminal.

[0105] As a possible design, the WiFi direct connection establishment device 50 further includes: a processing module ( Figure 5 (not shown), used to carry out target business with the second terminal through the local area network connection, and the target business includes any one or more of screen projection, live broadcast, file transfer, and device control.

[0106] As a possible design, the first connection module 503 is also used to: when receiving an instruction from a user to establish a public wireless LAN connection, establish a public wireless LAN connection according to the wireless LAN pointed to by the instruction, and maintain normal communication of the LAN connection.

[0107] As a possible design, the first acquisition module 501 is used to log in to the signaling system through the third-party application and obtain the device information of the second terminal from the signaling system, and is specifically used to: receive a user account login operation on the third-party application, and obtain the identity information of the user account according to the user account login operation; obtain the device information of all terminals that have logged in under the user account from the signaling system according to the identity information, and the device information of all terminals includes at least the device information of the second terminal.

[0108] As a possible design, the device information of the second terminal includes: a device name, a hardware address, and any one or more of the ports to be monitored for establishing a local area network.

[0109] It can be seen that the WiFi direct connection establishment device described in the embodiment of the present application can log in to the signaling system through a third-party application, obtain the device information of the second terminal from the signaling system, and when the device information of the second terminal is monitored within the preset communication range, directly establish a WiFi direct connection with the second terminal. There is no need for the user to frequently operate on the first terminal, which simplifies the WiFi direct connection process and improves the WiFi direct connection efficiency.

[0110] See also Figure 6 , Figure 6 Another WiFi direct connection establishment device provided in an embodiment of the present application is applied to a second terminal, and the second terminal installs a third-party application. The WiFi direct connection establishment device 60 includes:

[0111] The second acquisition module 601 is used to log in to the signaling system through the third-party application and acquire the device information of the first terminal from the signaling system.

[0112] The second connection module 602 is used to respond to the WiFi direct connection request and establish a WiFi direct connection with the first terminal according to the device information of the first terminal in the signaling system when receiving the WiFi direct connection request of the first terminal within the preset communication range.

[0113] As a possible design, the second connection module 602 is also used to send the network address information of the second terminal to the first terminal through the WIFI direct connection, so that the first terminal establishes a local area network connection with the second terminal based on the network address information of the second terminal and the device information of the second terminal.

[0114] It can be seen that the WiFi direct connection establishment device described in the embodiment of the present application can log in to the signaling system through a third-party application and obtain the device information of the first terminal from the signaling system. When a WiFi direct connection request from the first terminal is received, since the device information carried by the WiFi direct connection request is consistent with the device information of the first terminal, it can directly respond to the WiFi direct connection request and establish a WiFi direct connection with the first terminal. There is no need for the user to frequently operate on the second terminal, which simplifies the WiFi direct connection process and improves the WiFi direct connection efficiency.

[0115] See also Figure 7 , Figure 7 70 is a schematic diagram of a terminal structure provided in an embodiment of the present application, the terminal 70 may be a first terminal or a second terminal, and the terminal 70 may include a processor 701, a memory 702, and a transceiver 703. The memory 702 is connected to the processor 701, for example, via a bus.

[0116] The processor 701 is configured to support the terminal 70 to execute the corresponding functions in the method in the above method embodiment. The processor 701 can be a central processing unit (CPU), a network processor (NP), a hardware chip or any combination thereof. The above hardware chip can be an application specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.

[0117] The memory 702 is used to store program codes, etc. The memory 702 may include a volatile memory (VM), such as a random access memory (RAM); the memory 702 may also include a non-volatile memory (NVM), such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); the memory 702 may also include a combination of the above-mentioned types of memories.

[0118] The transceiver 703 is used to send and receive data.

[0119] When the terminal 70 is a first terminal, the processor 701 may call the program code to perform the following operations:

[0120] Logging into the signaling system through the third-party application, and obtaining device information of the second terminal from the signaling system;

[0121] Monitor device information within the preset communication range;

[0122] When the device information of the second terminal is monitored, a WiFi direct connection is established with the second terminal according to the device information of the second terminal.

[0123] When the terminal 70 is a second terminal, the processor 701 may call the program code to perform the following operations:

[0124] Logging into the signaling system through the third-party application, and acquiring device information of the first terminal from the signaling system;

[0125] When a WiFi direct connection request of the first terminal is received within the preset communication range, the WiFi direct connection request is responded to according to the device information of the first terminal in the signaling system, and a WiFi direct connection is established with the first terminal.

[0126] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes the method described in the above embodiment.

[0127] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0128] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A method for establishing a WiFi direct connection, characterized in that: Applied to a first terminal, the first terminal installing a third-party application, the method includes: Logging into the signaling system through the third-party application, and obtaining device information of the second terminal from the signaling system; Monitor device information within the preset communication range; When the device information of the second terminal is monitored, a WiFi direct connection is established with the second terminal according to the device information of the second terminal.

2. The method according to claim 1, characterized in that After logging into the signaling system through the third-party application and acquiring the device information of the second terminal from the signaling system, the method further includes: Determine whether there is device information of the first terminal in the signaling system; If not, the device information of the first terminal is stored in the signaling system.

3. The method according to claim 1, characterized in that After establishing a WiFi direct connection with the second terminal according to the device information of the second terminal, the method further includes: Acquire the network address information of the second terminal through the WiFi direct connection; A local area network connection is established with the second terminal based on the network address information of the second terminal and the device information of the second terminal.

4. The method according to claim 3, characterized in that After establishing a local area network connection with the second terminal based on the network address information of the second terminal and the device information of the second terminal, the method further includes: The target business is carried out with the second terminal through the local area network connection, and the target business includes any one or more of screen projection, live broadcast, file transfer, and device control.

5. The method according to claim 3, characterized in that The method further comprises: When receiving an instruction from a user to establish a public wireless local area network connection, a public wireless local area network connection is established according to the public wireless local area network pointed to by the instruction, and the local area network connection is maintained for normal communication.

6. The method according to any one of claims 1 to 5, characterized in that: The step of logging into the signaling system through the third-party application and acquiring the device information of the second terminal from the signaling system includes: Receiving a user account login operation on the third-party application, and obtaining identity information of the user account according to the user account login operation; The device information of all terminals that have logged in under the user account is obtained from the signaling system according to the identity information, where the device information of all terminals includes at least the device information of the second terminal.

7. The method according to claim 1, characterized in that The device information of the second terminal includes: any one or more of a device name, a hardware address, and a port to be monitored for establishing a local area network.

8. A method for establishing a WiFi direct connection, characterized in that: Applied to a second terminal, the second terminal installing a third-party application, the method comprising: Logging into the signaling system through the third-party application, and acquiring device information of the first terminal from the signaling system; When a WiFi direct connection request of the first terminal is received within the preset communication range, the WiFi direct connection request is responded to according to the device information of the first terminal in the signaling system, and a WiFi direct connection is established with the first terminal.

9. The method of claim 8, wherein: The method further comprises: The network address information of the second terminal is sent to the first terminal through the WIFI direct connection, so that the first terminal establishes a local area network connection with the second terminal based on the network address information of the second terminal and the device information of the second terminal.

10. A WiFi direct connection establishment device, characterized in that: Applied to a first terminal, the first terminal installing a third-party application, the device includes: A first acquisition module, configured to log in to the signaling system through the third-party application and acquire device information of the second terminal from the signaling system; Monitoring module, used to monitor device information within the preset communication range The first connection module is used to establish a WiFi direct connection with the second terminal according to the device information of the second terminal when the device information of the second terminal is monitored within a preset communication range.

11. A WiFi direct connection establishment device, characterized in that: Applied to a second terminal, the second terminal installing a third-party application, the device includes: A second acquisition module is used to log in to the signaling system through the third-party application and obtain the device information of the first terminal from the signaling system; The second connection module is used to respond to the WiFi direct connection request and establish a WiFi direct connection with the first terminal according to the device information of the first terminal in the signaling system when receiving the WiFi direct connection request of the first terminal within a preset communication range.

12. A terminal, characterized in that: The terminal comprises a memory, a processor and a transceiver, wherein the memory and the transceiver are connected to the processor, the transceiver is used to send and receive data, and the processor is used to execute one or more computer programs stored in the memory. When the processor executes the one or more computer programs, the terminal implements the method according to any one of claims 1 to 7 or claims 8 and / or 9.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the method according to any one of claims 1 to 7 or claims 8 and / or 9.

14. A WiFi direct connection establishment system, characterized in that: The method comprises a first terminal and a second terminal, wherein the first terminal is used to execute the method according to any one of claims 1 to 7, and the second terminal is used to execute the method according to claim 8 and / or 9.