Method for establishing wireless communication connection, electronic device and method for establishing wireless communication connection for electronic device

By using Bluetooth Low Energy to exchange connection information and session identification codes with electronic devices on the mobile phone, the Wi-Fi Direct pairing process is optimized, solving the problem of pairing failure on the mobile phone and realizing a direct and convenient Wi-Fi Direct connection.

CN119603793APending Publication Date: 2025-03-11ACER INC
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202311158346.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-08
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

In a Windows environment, when a mobile device initiates a Wi-Fi Direct pairing request, it often fails or takes too long, resulting in a poor user experience. Initiating the request using a computer requires multiple manual operations and identification processes.

Method used

By using Bluetooth Low Energy (BLE) on the mobile phone to establish a connection with electronic devices, transmitting and receiving connection information, and using session identification codes to optimize the pairing request process, a Wi-Fi Direct connection can be successfully established directly on the mobile phone.

Benefits of technology

The pairing process has been simplified, improving the user experience. Mobile devices can directly establish a Wi-Fi Direct connection with electronic devices, avoiding the multiple steps required on a computer.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119603793A_ABST
    Figure CN119603793A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a method for establishing wireless communication connection. The method comprises the following steps that: a mobile device establishes a Bluetooth low energy connection with an electronic device, and the electronic device transmits first connection information related to the electronic device to the mobile device through BLE (Bluetooth Low Energy); the mobile device sends a first Wi-Fi direct connection pairing request to the electronic device according to the first connection information; the electronic device obtains second connection information about the mobile device according to the first Wi-Fi direct pairing request, and cancels the first Wi-Fi direct pairing request. And the electronic device sends a second Wi-Fi direct connection pairing request to the mobile device according to the second connection information so as to establish the Wi-Fi direct connection. The invention also relates to an electronic device and a method for establishing wireless communication connection for the electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method for wireless communication, and more particularly to a method for using Bluetooth Low Energy (BLE) to assist in establishing a Wi-Fi Direct connection. Background Art

[0002] Wi-Fi Direct is a communication protocol that allows Wi-Fi devices to connect directly to another Wi-Fi device in a point-to-point manner for data transmission without going through a wireless network base station. However, in the pairing scenario between the Wi-Fi Direct API (Application Programming Interface) provided by the Windows environment and Android devices, pairing requests sent by the mobile phone often fail or wait too long. Although pairing can usually be successful and a connection can be established by sending a pairing request from the computer to the mobile phone, if the computer must be used to send a pairing request, it will result in a poor user experience.

[0003] Therefore, a method for establishing a wireless communication connection is needed, which can enable a mobile phone to initiate a Wi-Fi direct pairing request and successfully establish a connection. Summary of the invention

[0004] An embodiment of the present invention provides a method for establishing a wireless communication connection. The method includes: establishing a Bluetooth Low Energy (BLE) connection from a mobile device to an electronic device, and the electronic device transmits first connection information about the electronic device to the mobile device via BLE. The mobile device sends a first Wi-Fi Direct pairing request to the electronic device based on the first connection information. The electronic device obtains second connection information about the mobile device based on the first Wi-Fi Direct pairing request, and cancels the first Wi-Fi Direct pairing request. The electronic device sends a second Wi-Fi Direct pairing request to the mobile device based on the second connection information to establish a Wi-Fi Direct connection.

[0005] In some embodiments, the first connection information about the electronic device includes a Wi-Fi Direct media access control (MAC) address of the electronic device. In some embodiments, the second connection information about the mobile device includes a Wi-Fi Direct media access control (MAC) address of the mobile device.

[0006] In some embodiments, the method further includes: before transmitting the first connection information, the mobile device transmits a first session identification code to the electronic device via BLE. The electronic device further transmits the first session identification code and the first connection information to the mobile device via BLE. The electronic device further transmits the first session identification code and the second connection information to the mobile device.

[0007] In some embodiments, the method further includes: receiving the second connection information and the second session identification code by the mobile device, determining by the mobile device that the second session identification code is the same as the first session identification code transmitted to the electronic device, stopping waiting for the first Wi-Fi Direct pairing request, and starting to listen for other Wi-Fi Direct pairing requests.

[0008] In some embodiments, the method further includes: the electronic device transmits the second connection information to the mobile device. After the mobile device receives the second connection information, the mobile device transmits the second connection information to the electronic device via BLE. The electronic device determines that the second connection information received via BLE is the same as the second connection information obtained according to the first Wi-Fi Direct pairing request, and decides to send a second Wi-Fi Direct pairing request to the mobile device.

[0009] In some embodiments, the method further includes: the electronic device transmits the second connection information to the mobile device. After the mobile device receives the second connection information, the mobile device stores the second connection information. When the connection is reestablished after the waiting time has passed: the mobile device transmits the second connection information to the electronic device via BLE. The electronic device sends a third Wi-Fi Direct pairing request to the mobile device based on the second connection information and establishes a Wi-Fi Direct connection.

[0010] An embodiment of the present invention further provides an electronic device including a processor. The processor is used to implement a wireless connection module. The wireless communication module is used to: respond to a low-power Bluetooth connection (BLE) from a mobile device, and transmit first connection information about the electronic device to the mobile device via BLE. Receive a first Wi-Fi direct pairing request issued by the mobile device to the electronic device based on the first connection information. Obtain second connection information about the mobile device based on the first Wi-Fi direct pairing request, and cancel the first Wi-Fi direct pairing request. Issue a second Wi-Fi direct pairing request to the mobile device based on the second connection information, and establish a Wi-Fi direct connection.

[0011] An embodiment of the present invention further provides a method for establishing a wireless communication connection for an electronic device, comprising: in response to a low-power Bluetooth connection (BLE) from a mobile device, the electronic device transmits first connection information about the electronic device to the mobile device via BLE. Receive a first Wi-Fi Direct pairing request from the mobile device, wherein the mobile device transmits the first Wi-Fi Direct pairing request according to the first connection information. Obtain second connection information about the mobile device according to the first Wi-Fi Direct pairing request, and cancel the first Wi-Fi Direct pairing request. Send a second Wi-Fi Direct pairing request to the mobile device according to the second connection information, and establish a Wi-Fi Direct connection. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1A , Figure 1B is a block diagram of a communication system according to an embodiment of the present invention.

[0013] Figure 2 The figure is a flow chart of a method for establishing a wireless communication connection according to an embodiment of the present invention.

[0014] Figure 3A , Figure 3B The figure is a flow chart of a method for establishing a wireless communication connection according to an embodiment of the present invention.

[0015] Figure 4 The figure is a flow chart of a method for establishing a wireless communication connection according to an embodiment of the present invention.

[0016] The reference numerals are described as follows:

[0017] 100: Communication System

[0018] 110: Mobile Devices

[0019] 111, 121: Processor

[0020] 112, 122: Memory

[0021] 113, 123: transceiver

[0022] 114: Low-power Bluetooth service module (BLE service module)

[0023] 115: Wi-Fi point-to-point management module

[0024] 120: Electronic devices

[0025] 124: Low-power Bluetooth broadcast management module (BLE broadcast management module)

[0026] 125: Wi-Fi Direct Broadcast Management Module

[0027] 126: Wi-Fi Direct connection management module

[0028] 200, 300, 400: Method

[0029] 210, 220, 230, 240, 250, 310, 320, 330, 340, 350, 360, 370, 380, 390, 410, 420, 430: Operation DETAILED DESCRIPTION

[0030] In order to make the purpose, features and advantages of the present invention more clearly understood, specific embodiments of the present invention are given below and described in detail with reference to the accompanying drawings.

[0031] Figure 1A 1 is a block diagram of a communication system 100 according to an embodiment of the present invention. The communication system 100 includes a mobile device 110 and an electronic device 120. The mobile device 110 is, for example, a smart phone, and the electronic device 120 is, for example, a desktop computer or a laptop computer, but the present invention is not limited thereto. The mobile device 110 includes a processor 111, a memory 112, and a transceiver 113. The electronic device 120 includes a processor 121, a memory 122, and a transceiver 123. The processor 111, the memory 112, and the transceiver 113 in the mobile device 110 are connected to each other via a bus. Similarly, the processor 121, the memory 122, and the transceiver 123 in the electronic device 120 are connected to each other via a bus.

[0032] The processor 111 and the processor 121 control the operation of the mobile device 110 and the electronic device 120, respectively. The processor 111 and the processor 121 provide the processing power required to execute the operating system, programs, software, modules, applications, and functions of the mobile device 110 and the electronic device 120. In some embodiments, the processor 111 and the processor 121 are used to implement a wireless connection module. The wireless connection module is a software module for performing operations related to wireless communication. In some embodiments, the wireless connection module is used to perform BLE and Wi-Fi direct functions of the mobile device 110 and the electronic device 120, including controlling the transceiver 113 and the transceiver 123 to transmit or receive data via the BLE or Wi-Fi direct communication protocol. In some embodiments, the mobile device 110 and the electronic device 120 may also include multiple processors 111 and processors 121 to jointly perform the required operations. For example, the processor 111 and the processor 121 may include a general-purpose microprocessor, a central processing unit, a combination of a general-purpose microprocessor and a special-purpose processor, and / or a related chipset.

[0033] The memory 112 and the memory 122 store data required for the operation of the processor 111 and the processor 121, respectively, and other data required by the mobile device 110 and the electronic device 120. The memory 112 and the memory 122 may include non-volatile memory, such as read-only memory (ROM), flash memory, etc. In some embodiments, the non-volatile memory (such as flash memory) in the memory 112 and the memory 122 stores firmware required for the operation of the mobile device 110 and the electronic device 120, and these firmware can be executed by the processors 111 and 121. The memory 112 and the memory 122 may also include volatile memory, such as dynamic random access memory and static random access memory, etc. In some embodiments, the memory 112 and the memory 122 store computer-readable instructions, such as program codes. These computer-readable instructions can be executed by the processors 111 and 121 to implement the wireless connection module.

[0034] The transceiver 113 and the transceiver 123 can transmit and receive data wirelessly. In some embodiments, the transceiver 113 and the transceiver 123 transmit or receive data via the BLE or Wi-Fi Direct communication protocol according to instructions from the wireless connection module implemented by the processors 111 and 121. In some embodiments, the transceiver 113 and the transceiver 123 are wireless communication chips including integrated circuits.

[0035] In addition, the mobile device 110 and the electronic device 120 may further include Figure 1A Other components not shown. For example, the mobile device 110 and the electronic device 120 may further include or be wired / wirelessly connected to at least one screen, touch screen, keyboard, mouse, microphone, speaker, etc. In some embodiments, the mobile device 110 may provide a telephone function.

[0036] Figure 1B 1 is a block diagram of a communication system 100 according to an embodiment of the present invention. In some embodiments, the wireless connection module (e.g., the first wireless connection module) implemented by the processor 111 of the mobile device 110 includes a low-power Bluetooth service module 114 (also referred to as the BLE service module 114) and a Wi-Fi point-to-point management module 115. The wireless connection module (e.g., the second wireless connection module) implemented by the processor 121 of the electronic device 120 includes a low-power Bluetooth broadcast management module 124 (also referred to as the BLE broadcast management module 124), a Wi-Fi direct broadcast management module 125, and a Wi-Fi direct connection management module 126.

[0037] The BLE service module 114 and the BLE broadcast management module 124 are respectively used to implement the BLE functions of the mobile device 110 and the electronic device 120, including but not limited to: searching for devices capable of establishing a BLE connection, broadcasting, issuing / accepting / rejecting a BLE connection request, establishing / terminating a BLE connection, and transmitting / receiving data via BLE, etc. The Wi-Fi point-to-point management module 115, the Wi-Fi direct broadcast management module 125, and the Wi-Fi direct connection management module 126 are respectively used to implement the Wi-Fi direct connection functions of the mobile device 110 and the electronic device 120, including but not limited to issuing a Wi-Fi direct connection request to a specific device, accepting / rejecting a Wi-Fi direct connection request, establishing / terminating a Wi-Fi direct connection request, and transmitting / receiving data via Wi-Fi direct, etc.

[0038] Figure 2 2 is a flow chart of a method 200 for establishing a wireless communication connection according to an embodiment of the present invention. The method 200 may be Figure 1A The communication system 100 is executed by the processors 111 and 121. Figure 1A , Figure 1B The method 200 is described. The method 200 may start from operation 210. In operation 210, the mobile device 110 initiates a Bluetooth Low Energy (BLE) connection to the electronic device 120, and establishes a BLE connection with the electronic device 120. Thereafter, in response to receiving the BLE connection from the mobile device 110, in operation 220, the electronic device 120 transmits first connection information about the electronic device 120 to the mobile device 110 via BLE.

[0039] After the mobile device 110 (e.g., by means of the transceiver 113 and the wireless connection module) receives the first connection information of the electronic device 120, the method 200 proceeds to operation 230. In operation 230, the mobile device 110 sends a Wi-Fi Direct pairing request (e.g., a first Wi-Fi Direct pairing request) to the electronic device 120 according to the first connection information. After the electronic device 120 (e.g., by means of the transceiver 123 and the wireless connection module) receives the Wi-Fi Direct pairing request, the method 200 proceeds to operation 240. In operation 240, the electronic device 120 obtains the second connection information about the mobile device 110 according to the Wi-Fi Direct pairing request, and cancels the Wi-Fi Direct pairing request. Thereafter, the method 200 proceeds to operation 250. In operation 250, the electronic device 120 sends a Wi-Fi Direct pairing request (e.g., a second Wi-Fi Direct pairing request) to the mobile device 110 according to the second connection information to establish a Wi-Fi Direct connection.

[0040] As mentioned above, when a Wi-Fi direct pairing request is issued by a mobile phone, pairing often fails or the waiting time is too long. However, in the scenario where the request is issued by a computer, since the existing API on the mobile phone cannot obtain the Wi-Fi direct media access control (MAC) address of the mobile phone, the computer must execute a search process to list nearby Wi-Fi direct devices. The user then selects his or her device from the device list and presses a button to pair. This requires several manual actions to complete, and the user must identify the device and understand the pairing process. In contrast, in the scenario where a pairing request is initiated by a mobile phone, the user can obtain the Wi-Fi direct MAC address information of the computer through the mobile phone for pairing. The entire process only requires one action to start pairing and complete the connection. Therefore, this case uses the above process to solve the above problems. The method of an embodiment of the present invention can successfully establish a Wi-Fi direct connection while improving the user experience.

[0041] Figure 3A , Figure 3B Flow chart of method 300 for establishing a wireless communication connection according to an embodiment of the present invention. Method 300 may be Figure 1A The communication system 100 is executed by the processors 111 and 121. Figure 1A , Figure 1B Method 300 is described. Method 300 may start from operation 310. In operation 310, a BLE connection is initiated by mobile device 110 with electronic device 120, and mobile device 110 (using BLE service module 114) transmits its device name and a generated session identifier (session ID) (e.g., a first session identifier) ​​to electronic device 120 via BLE. The first session identifier is a set of numbers generated by processor 111 to identify this communication process. In some embodiments, a user activates an application in electronic device 120, so that electronic device 120 starts to listen for Wi-Fi Direct pairing requests and activates BLE service to wait for connection. In some embodiments, after the application is activated, electronic device 120 displays a QR code (QR code) on the screen. The user can scan the QR code displayed on the screen of electronic device 120 with mobile device 110 to obtain the information required to establish a BLE connection for BLE connection. In some embodiments, after scanning the QR code, mobile device 110 obtains the BLE service code of electronic device 120. The mobile device 110 adds the BLE service code to the filter condition of the search API, so as to search the connection location of the electronic device 120 and connect via the BLE service module 114 .

[0042] In operation 320, in response to a BLE connection from the mobile device 110 (e.g., in response to establishing a BLE connection with the mobile device using the BLE broadcast management module 124, and receiving the device name and session identifier of the mobile device 110 using the BLE broadcast management module 124), the electronic device 120 (using the BLE broadcast management module 124) transmits the first connection information about the electronic device 120 and the first session identifier to the mobile device 110 via BLE. In some embodiments, the first connection information includes the Wi-Fi Direct MAC address of the electronic device 120. In some embodiments, the electronic device 120 obtains its own first connection information through a Win32 API. After the mobile device 110 (e.g., via the transceiver 113 and the wireless connection module) receives the Wi-Fi Direct MAC address of the electronic device 120, the method 300 proceeds to operation 330. In operation 330, the mobile device 110 (using the Wi-Fi peer-to-peer management module 115) sends a Wi-Fi Direct pairing request (e.g., a first Wi-Fi Direct pairing request) to the electronic device 120 according to the first connection information. After the electronic device 120 (e.g., via the transceiver 123 and the wireless connection module) receives the Wi-Fi Direct pairing request, after the electronic device 120 receives the Wi-Fi Direct pairing request via the Wi-Fi Direct broadcast management module 125, the method 300 proceeds to operation 340. In operation 340, the electronic device 120 obtains the second connection information about the mobile device 110 and the device name of the mobile device 110 according to the Wi-Fi Direct pairing request, and cancels (e.g., rejects) the Wi-Fi Direct pairing request (using the Wi-Fi Direct broadcast management module 125). In some embodiments, the Wi-Fi Direct pairing request sent by the mobile device 110 includes the second connection information. In some embodiments, the second connection information includes the Wi-Fi Direct MAC address of the mobile device 110.

[0043] Afterwards, the method 300 proceeds to operation 350. In operation 350, the electronic device 120 transmits the second connection information of the mobile device 110 and the first session identification code (generated by the mobile device 110 in operation 310) to the mobile device 110. After the mobile device 110 receives the second connection information and the first session identification code, the method 300 proceeds to operation 360. For the sake of clarity, the session identification code received by the mobile device 110 from the electronic device 120 after operation 350 is referred to as the second session identification code. In operation 360, the processor 111 determines whether the second session identification code received from the electronic device 120 is the same as the first session identification code previously transmitted to the electronic device 120 in operation 310. When the processor 111 determines that the received second session identification code is the same as the first session identification code previously transmitted to the electronic device 120 in operation 310, the processor 111 confirms that the received second connection information belongs to the mobile device 110. Afterwards, the mobile device 110 stops waiting for a response to the Wi-Fi Direct pairing request (the first Wi-Fi Direct pairing request) and starts listening for other Wi-Fi Direct pairing requests. As described above, since the API in the mobile device 110 cannot obtain the Wi-Fi Direct MAC address of the mobile device 110, the above process enables the mobile device 110 to obtain its own Wi-Fi Direct MAC address. In some embodiments, the processor 111 stores the obtained second connection information in the memory 112. In this way, when a Wi-Fi Direct connection needs to be established later, the second connection information can be directly read from the memory 112.

[0044] Afterwards, the method 300 proceeds to operation 370. In operation 370, the mobile device 110 transmits the second connection information, the device name of the mobile device 110, and the second session identifier to the electronic device 120 via BLE. For the sake of clarity, the session identifier received by the electronic device 120 from the mobile device 110 after operation 370 is referred to as the third session identifier. After the electronic device 120 receives the second connection information, the method 300 proceeds to operation 380. In operation 380, the processor 121 determines whether the second connection information received via BLE is the same as the second connection information previously obtained in operation 340 according to the first Wi-Fi Direct pairing request. In some embodiments, the processor 121 further determines whether the third session identifier received via BLE is the same as the first session identifier previously received via BLE in operation 320. When the processor 121 determines that the second connection information received by BLE is the same as the second connection information previously obtained in operation 340 according to the first Wi-Fi Direct pairing request, the method 300 proceeds to operation 390. In some embodiments, when the processor 121 determines that the second connection information received by BLE is the same as the second connection information previously obtained in operation 340 according to the first Wi-Fi Direct pairing request, and the third session identifier received by BLE is the same as the first session identifier previously received by BLE in operation 320, the method 300 proceeds to operation 390. In operation 390, the electronic device 120 sends a Wi-Fi Direct pairing request (e.g., a second Wi-Fi Direct pairing request) to the mobile device 110 according to the second connection information. Therefore, the information transmitted by the mobile device 110 by BLE in operation 370 can be used to trigger the electronic device 120 to send a Wi-Fi Direct pairing request. In some embodiments, the Wi-Fi Direct broadcast management module 125 transmits the second connection information to the Wi-Fi Direct connection management module 126. The electronic device 120 sends a second Wi-Fi Direct pairing request via the Wi-Fi Direct connection management module 126. In some embodiments, when the processor 121 determines that the received second connection information is the same as the second connection information previously obtained in operation 340, the processor 121 starts the Wi-Fi Direct search process. In the Wi-Fi Direct search process, the processor 121 searches for nearby Wi-Fi Direct devices to find a device whose device name and second connection information match the mobile device 110. After searching for the mobile device 110 according to the device name and the second connection information, the electronic device 120 sends a Wi-Fi Direct pairing request (e.g., a second Wi-Fi Direct pairing request) to the mobile device 110. In some embodiments, after receiving the Wi-Fi Direct pairing request, the mobile device 110 displays a confirmation message on the screen.After the user confirms at least one confirmation message (eg, clicks an option), the mobile device 110 (via the Wi-Fi peer-to-peer management module 115 ) accepts the Wi-Fi Direct pairing request and establishes a Wi-Fi Direct connection with the electronic device 120 .

[0045] In some embodiments, in response to the user starting the H.264 image transmission service or application in the electronic device 120, the electronic device 120 (and the mobile device 110) begins to execute method 200 or method 300. In some embodiments, after the H.264 image transmission application is started, it causes the electronic device 120 to start the Wi-Fi Direct advertising mode to listen for pairing requests, and causes the electronic device 120 to start the BLE service to wait for connection. Then, operation 210 or operation 310 and subsequent operations are executed. In some embodiments, after operation 250 or operation 390, the mobile device 110 and the electronic device 120 establish a Wi-Fi Direct connection. The mobile device 110 and the electronic device 120 obtain each other's virtual Internet protocol (IP) addresses. The mobile device 110 transmits H.264 encoded data through the virtual IP address for image transmission.

[0046] Figure 4 4 is a flow chart of a method 400 for establishing a wireless communication connection according to an embodiment of the present invention. The method 400 may be Figure 1A The communication system 100 is executed by the processors 111 and 121. Figure 1A , Figure 1B Describe method 400. Method 400 describes a method for reestablishing a Wi-Fi Direct connection after a waiting period of time after the mobile device 110 has obtained and stored its own second connection information (operation 360). Method 400 is, for example, a situation where the mobile device 110 is disconnected, in sleep mode, or in an inaccessible state and wants to reconnect to the electronic device 120. Method 400 may start from operation 410. In operation 410, the mobile device 110 (using the BLE service module 114) initiates a BLE connection to the electronic device 120, and the mobile device 110 transmits its device name, the second connection information stored in the memory 112, and the generated session identification code to the electronic device 120 via BLE. In some embodiments, the second connection information includes the Wi-Fi Direct MAC address of the mobile device 110. The method for establishing a BLE connection may be the same as that described in operation 310.

[0047] After the electronic device 120 (using the BLE broadcast management module 114) receives the device name, the second connection information, and the session identifier of the mobile device 110, the method 400 proceeds to operation 420. In operation 420, the electronic device 120 transmits a notification message to the mobile device 110. The notification message indicates that the mobile device 110 does not need to transmit a Wi-Fi Direct pairing request and waits for a Wi-Fi Direct pairing request. Since the electronic device 120 has obtained the second connection information of the mobile device 110, it can directly perform Wi-Fi Direct pairing without performing multiple operations in methods 200 and 300. Afterwards, the method 400 proceeds to operation 430. In operation 430, the electronic device 120 (using the Wi-Fi Direct connection management module 126) sends a Wi-Fi Direct pairing request (e.g., a third Wi-Fi Direct pairing request) to the mobile device 110 according to the second connection information. In some embodiments, the processor 121 executes the Wi-Fi Direct search process described above with reference to FIG. 3A to issue a Wi-Fi Direct pairing request. In some embodiments, after receiving the Wi-Fi direct pairing request, the mobile device 110 (using the Wi-Fi peer-to-peer management module 115) displays a confirmation message on the screen. After the user confirms at least one confirmation message (e.g., clicks on an option), the mobile device 110 (using the Wi-Fi peer-to-peer management module 115) accepts the Wi-Fi direct pairing request and establishes a Wi-Fi direct connection with the electronic device 120.

[0048] The method of the embodiment of the present invention allows the user to establish a Wi-Fi direct connection with the computer by performing a simple operation (such as scanning a QR code). Therefore, the method of the embodiment of the present invention can solve the problem that the pairing request sent by the mobile phone often fails, and improve the user experience.

[0049] Although the present invention has been disclosed in the above embodiments, the above embodiments are not intended to limit the present invention. Anyone skilled in the art can make various changes and modifications based on the above embodiments without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention shall be determined by the following claims.

Claims

1. A method for establishing a wireless communication connection, comprising: A mobile device establishes a Bluetooth Low Energy (BLE) connection to an electronic device, and the electronic device transmits a first connection information related to the electronic device to the mobile device via the Bluetooth Low Energy; The mobile device sends a first Wi-Fi direct pairing request to the electronic device according to the first connection information; The electronic device obtains second connection information related to the mobile device according to the first Wi-Fi Direct pairing request, and cancels the Wi-Fi Direct pairing request; as well as The electronic device sends a second Wi-Fi direct pairing request to the mobile device according to the second connection information to establish a Wi-Fi direct connection.

2. The method for establishing a wireless communication connection as claimed in claim 1, wherein the first connection information about the electronic device includes a Wi-Fi Direct Media Access Control (MAC) address of the electronic device. 3 . The method for establishing a wireless communication connection as claimed in claim 1 , wherein the second connection information related to the mobile device comprises a Wi-Fi Direct Media Access Control (MAC) address of the mobile device.

4. The method for establishing a wireless communication connection as claimed in claim 1, further comprising: Before transmitting the first connection information, the mobile device transmits a first session identification code to the electronic device via low-power Bluetooth; The electronic device further transmits the first session identification code and the first connection information to the mobile device via Bluetooth low energy consumption; and The electronic device further transmits the first session identification code together with the second connection information to the mobile device.

5. The method for establishing a wireless communication connection as claimed in claim 4, further comprising: Receiving the second connection information and a second session identification code from the electronic device by the mobile device; The mobile device determines that the second session identification code is the same as the first session identification code transmitted to the electronic device; as well as The mobile device stops waiting for the first Wi-Fi Direct pairing request and starts listening for other Wi-Fi Direct pairing requests.

6. The method for establishing a wireless communication connection as claimed in claim 1, further comprising: The electronic device transmits the second connection information to the mobile device; After the mobile device receives the second connection information, the mobile device transmits the second connection information to the electronic device via low-power Bluetooth; The electronic device determines that the second connection information received via Bluetooth low energy is the same as the second connection information obtained according to the first Wi-Fi direct pairing request, and decides to send the second Wi-Fi direct pairing request to the mobile device.

7. The method for establishing a wireless communication connection as claimed in claim 1, further comprising: The electronic device transmits the second connection information to the mobile device; as well as After the mobile device receives the second connection information, the mobile device stores the second connection information; The method further comprises, when the connection is reestablished after a waiting period: The mobile device transmits the second connection information to the electronic device via Bluetooth low energy consumption; The electronic device sends a third Wi-Fi direct pairing request to the mobile device according to the second connection information, and establishes a Wi-Fi direct connection.

8. An electronic device comprising: A processor, used to implement a wireless connection module, the wireless communication module is used to: In response to a low-power Bluetooth connection (BLE) from a mobile device, transmitting a first connection information about the electronic device to the mobile device via the low-power Bluetooth; receiving a first Wi-Fi direct pairing request sent by the mobile device to the electronic device according to the first connection information; Acquire a second connection information related to the mobile device according to the first Wi-Fi Direct pairing request, and cancel the first Wi-Fi Direct pairing request; as well as A second Wi-Fi direct pairing request is sent to the mobile device according to the second connection information, and a Wi-Fi direct connection is established. 9 . The electronic device as claimed in claim 8 , wherein the first connection information about the electronic device comprises a Wi-Fi Direct Media Access Control (MAC) address of the electronic device. 10 . The electronic device as claimed in claim 8 , wherein the second connection information related to the mobile device comprises a Wi-Fi Direct Media Access Control (MAC) address of the mobile device.

11. The electronic device as claimed in claim 8, wherein the wireless connection module is further used for: Before transmitting the first connection information, receiving a session identification code from the mobile device via low power Bluetooth; transmitting the session identification code together with the first connection information to the mobile device via Bluetooth low energy; and The session identification code is transmitted to the mobile device together with the second connection information.

12. The electronic device as claimed in claim 8, wherein the electronic device is a personal computer or a notebook computer.

13. The electronic device as claimed in claim 8, wherein the wireless connection module is further used for: sending the second connection information to the mobile device; receiving the second connection information from the mobile device via Bluetooth low energy consumption; It is confirmed that the second connection information received through the low-power Bluetooth is the same as the second connection information obtained according to the first Wi-Fi Direct pairing request, and it is decided to send the second Wi-Fi Direct pairing request to the mobile device.

14. The electronic device as claimed in claim 8, wherein the wireless connection module is further used for: sending the second connection information to the mobile device; in, The mobile device receives and stores the second connection information; When the connection is reestablished after a waiting period, the wireless connection module is used to: receiving the second connection information from the mobile device via Bluetooth low energy consumption; A third Wi-Fi Direct pairing request is sent to the mobile device according to the second connection information, and a Wi-Fi Direct connection is established.

15. A method for establishing a wireless communication connection for an electronic device, comprising: In response to a low-power Bluetooth connection (BLE) from a mobile device, the electronic device transmits a first connection information about the electronic device to the mobile device via the low-power Bluetooth; receiving a first Wi-Fi Direct pairing request from the mobile device, wherein the mobile device sends the first Wi-Fi Direct pairing request according to the first connection information; Acquire a second connection information related to the mobile device according to the first Wi-Fi Direct pairing request, and cancel the first Wi-Fi Direct pairing request; as well as A second Wi-Fi direct pairing request is sent to the mobile device according to the second connection information, and a Wi-Fi direct connection is established. 16 . The method for establishing a wireless communication connection for an electronic device as claimed in claim 15 , wherein the first connection information related to the electronic device comprises a Wi-Fi Direct Media Access Control (MAC) address of the electronic device. 17 . The method for establishing a wireless communication connection for an electronic device as claimed in claim 15 , wherein the second connection information related to the mobile device comprises a Wi-Fi Direct Media Access Control (MAC) address of the mobile device.

18. The method for establishing a wireless communication connection for an electronic device as claimed in claim 15, further comprising: Before transmitting the first connection information, receiving a session identification code from the mobile device via Bluetooth low energy consumption; transmitting the session identification code together with the first connection information to the mobile device via Bluetooth low energy; and The session identification code is transmitted to the mobile device together with the second connection information.

19. The method for establishing a wireless communication connection for an electronic device as claimed in claim 15, further comprising: sending the second connection information to the mobile device; After the mobile device receives the second connection information, receiving the second connection information from the mobile device via low power Bluetooth; It is determined that the second connection information received via the Bluetooth low energy is the same as the second connection information obtained according to the first Wi-Fi direct pairing request, and it is determined to send the second Wi-Fi direct pairing request to the mobile device.

Citation Information

Cited By

  • Method of establishing a wireless communication connection, electronic device, and method of establishing a wireless communication connection for an electronic device

    US12598662B2

  • Method of establishing a wireless communication connection, electronic device, and method of establishing a wireless communication connection for an electronic device

    US20250081262A1