Method for establishing wireless communication connection, electronic device and access point device
Obtaining WiFi connection parameters through a wireless connection greater than the NFC communication distance solves the problem of automatic connection between terminal devices and access point devices, improving user experience and convenience.
Patent Information
- Application Number
- CN202211713053.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-29
- Publication Date
- 2025-09-12
- Estimated Expiration
- 2042-12-29
AI Technical Summary
In the prior art, a password needs to be manually entered when a terminal device establishes a WiFi connection with an access point device, and the NFC connection method is limited by the placement of the device, resulting in a poor user experience.
Automatic WiFi connection is achieved by establishing a first wireless communication connection that supports a distance greater than near field communication and obtaining connection parameters of an access point device.
Automatically connect to Wi-Fi within a comfortable distance, improving user experience, reducing restrictions on access point device locations, and simplifying the connection process.
Smart Images

Figure CN116056252B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of wireless communication technologies, and more specifically, to a method for establishing a wireless communication connection, an electronic device, and an access point device. Background Art
[0002] Wireless fidelity (WiFi) is a technology that allows devices to connect wirelessly to each other. Devices that bridge wireless to wired networks are called access points (APs). Currently, establishing a WiFi connection between a terminal and an AP typically requires manually entering a password. If the user forgets the password, the AP parameters must be reset, a cumbersome process.
[0003] To facilitate WiFi communication connections, related technologies have proposed a method for connecting to WiFi using near-field communication (NFC). A terminal device can obtain connection parameters such as the access point's service set identifier (SSID) and WiFi password by placing the NFC tag close to the access point, eliminating the need to manually enter the password. However, due to different home layouts, the AP may be placed low or high, making it difficult for users to access it, which poses certain limitations. Summary of the Invention
[0004] The embodiments of the present application provide a method for establishing a wireless communication connection, an electronic device, and an access point device. The following describes various aspects of the embodiments of the present application.
[0005] In a first aspect, a method for establishing a wireless communication connection is provided, which is applied to an electronic device, the method comprising: establishing a first wireless communication connection with an access point device, the communication distance supported by the first wireless communication connection being greater than the communication distance corresponding to near-field communication; receiving connection parameters sent by the access point device through the first wireless communication connection, the connection parameters being used to establish a second wireless communication connection based on Wireless Fidelity (WiFi) with the access point device; and establishing the second wireless communication connection with the access point device based on the connection parameters.
[0006] In a second aspect, a method for establishing a wireless communication connection is provided, which is applied to an access point device, the method comprising: establishing a first wireless communication connection with an electronic device, the communication distance supported by the first wireless communication connection being greater than the communication distance corresponding to near-field communication; sending connection parameters to the electronic device through the first wireless communication connection, the connection parameters being used to establish a second wireless communication connection based on Wireless Fidelity (WiFi) with the electronic device; and establishing the second wireless communication connection with the electronic device in response to the electronic device inputting the connection parameters.
[0007] According to a third aspect, an electronic device is provided, comprising: a first wireless communication module for establishing a first wireless communication connection, wherein the communication distance supported by the first wireless communication connection is greater than the communication distance corresponding to near-field communication; a second wireless communication module for establishing a second wireless communication connection based on Wireless Fidelity (WiFi); a processor for controlling the first wireless communication module and the second wireless communication module to perform the following operations: establishing a first wireless communication connection with an access point device; sending connection parameters to the access point device via the first wireless communication connection, wherein the connection parameters are used to establish the second wireless communication connection with the access point device; and establishing the second wireless communication connection with the access point device in response to the electronic device inputting the connection parameters.
[0008] In a fourth aspect, an access point device is proposed, comprising: a first wireless communication module, used to establish a first wireless communication connection, the communication distance supported by the first wireless communication connection being greater than the communication distance corresponding to near-field communication; a second wireless communication module, used to establish a second wireless communication connection based on wireless fidelity WiFi; a processor, used to control the first wireless communication module and the second wireless communication module to perform the following operations: establish a first wireless communication connection with an electronic device; send connection parameters to the electronic device through the first wireless communication connection, the connection parameters being used to establish the second wireless communication connection with the electronic device; and establish the second wireless communication connection with the electronic device in response to the electronic device inputting the connection parameters.
[0009] In a fifth aspect, a computer-readable storage medium is provided, on which executable code is stored. When the executable code is executed, the method described in the first aspect or the second aspect can be implemented.
[0010] An embodiment of the present application provides a method for establishing a wireless communication connection, applicable to an electronic device. The method comprises: establishing a first wireless communication connection with an access point device, wherein the first wireless communication connection supports a communication distance greater than the communication distance corresponding to near-field communication; receiving connection parameters sent by the access point device via the first wireless communication connection, wherein the connection parameters are used to establish a second wireless communication connection based on Wireless Fidelity (Wi-Fi) with the access point device; and establishing the second wireless communication connection with the access point device based on the connection parameters. By utilizing the first wireless communication connection, this solution can obtain Wi-Fi connection parameters from the access point device within a comfortable distance to achieve automatic Wi-Fi connection, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 This is a flowchart of a method for establishing a wireless communication connection provided in one embodiment of the present application.
[0012] Figure 2 It is a flowchart of a method for establishing a wireless communication connection provided by another embodiment of the present application.
[0013] Figure 3 yes Figure 2 A schematic flow chart of a method for establishing a wireless communication connection on an electronic device side is shown.
[0014] Figure 4 yes Figure 2 The figure shows a flow chart of a method for establishing a wireless communication connection on the access point device side.
[0015] Figure 5 It is a structural diagram of an electronic device provided in one embodiment of the present application.
[0016] Figure 6 This is a schematic diagram of the structure of an access point device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0017] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments.
[0018] It should be noted that the electronic device in the embodiment of the present application may also be referred to as user equipment (UE), access terminal, mobile terminal (MT), user terminal, wireless communication device, etc. The electronic device in the embodiment of the present application may be a handheld device with a wireless connection function, such as a mobile phone, a tablet computer (Pad), a laptop computer, a PDA, a mobile internet device (MID), or other handheld devices and devices such as watches, in-ear headphones, pendants, headphones, etc. The electronic device in the embodiment of the present application may also be a wearable electronic device, such as electronic glasses, electronic clothes, electronic bracelets, electronic necklaces, electronic tattoos, electronic devices, smart watches or head-mounted displays (HMD), etc. The embodiment of the present application does not impose specific restrictions on this.
[0019] WiFi is a technology that can connect terminal devices to each other wirelessly. Devices with wireless to wired bridging capabilities are called access point devices, such as wireless routers, wireless repeaters, and other access point devices.
[0020] In recent years, with the continuous development of wireless LAN technology, wireless LAN WiFi has covered most households, and more and more elderly people have their own smartphones, and the frequency of use of home WiFi has also increased.
[0021] Currently, when connecting to Wi-Fi, electronic devices such as smartphones and computers usually require manual password entry. Since current smartphones, computers, and other electronic devices all have the ability to remember connected networks, users can easily forget their home Wi-Fi passwords, causing inconvenience when new devices connect to the home Wi-Fi or when visitors attempt to access the network. Understandably, with manual password entry, if users set a relatively memorable password, the password will inevitably be simple and less secure. Furthermore, once a user forgets their password, they must reset the access point device parameters, a cumbersome process that creates a poor user experience.
[0022] In order to facilitate the establishment of WiFi communication connections, a method of connecting to WiFi using NFC has been proposed in the related art. Electronic devices can activate and use NFC for communication interaction by bringing the NFC tag close to the access point device. The access point device can transmit connection parameters such as the service set identifier SSID and the WiFi password to the electronic device through NFC, thereby achieving the purpose of not having to manually enter the password. It is understandable that the maximum communication distance supported by NFC communication is 10cm. Therefore, the method of connecting to WiFi via NFC requires the access point device to be placed in a place where the user can access it on a daily basis. However, due to different home layouts, the access point device may be placed in a lower or higher position, which is not convenient for users to access. There are certain limitations and the user experience is poor.
[0023] To address the above issues, embodiments of the present application provide a method for establishing a wireless communication connection, applicable to an electronic device. The method comprises: establishing a first wireless communication connection with an access point device, wherein the first wireless communication connection supports a communication distance greater than the communication distance corresponding to near-field communication; receiving connection parameters sent by the access point device via the first wireless communication connection, wherein the connection parameters are used to establish a second wireless communication connection based on Wireless Fidelity (Wi-Fi) with the access point device; and establishing the second wireless communication connection with the access point device based on the connection parameters. By utilizing the first wireless communication connection, this solution can obtain Wi-Fi connection parameters from the access point device within a comfortable distance to achieve automatic Wi-Fi connection, thereby improving the user experience.
[0024] Figure 1 A flow chart of a method for establishing a wireless communication connection provided in an embodiment of the present application. Figure 1 The method shown can be applied to an electronic device or an access point device. The electronic device can be any of the electronic devices mentioned above, such as a mobile phone, a tablet computer, etc. The access point device can be, for example, a wireless router. Figure 1 The method shown includes steps S120 to S160.
[0025] In step 120 , a first wireless communication connection is established between the electronic device and the access point device.
[0026] In the embodiment of the present application, the communication distance supported by the first wireless communication connection is greater than the communication distance corresponding to near-field communication NFC, so that the electronic device can establish a first communication connection with the access point device within a comfortable spatial distance range, thereby improving the user experience.
[0027] In some embodiments, the electronic device may scan the device association code of the access point device to obtain scanned code information; then, based on the scanned code information, establish a first wireless communication connection with the access point device. It is understood that the scanned code information may include device information of the access point device, such as the device name, device identification information, etc., and this application does not impose specific limitations on this.
[0028] In some embodiments, the first wireless communication connection may be a Bluetooth connection. The scan code information above may include the Bluetooth device name of the access point device. Establishing the first wireless communication connection with the access point device based on the scan code information may include: performing Bluetooth pairing with the access point device based on the Bluetooth device name of the access point device; and establishing the first wireless communication connection with the access point device in response to successful Bluetooth pairing.
[0029] In some embodiments, the electronic device may send multiple Bluetooth pairing requests to the access point device to establish a Bluetooth connection with the access point device. It is understood that if the number of Bluetooth pairing requests between the electronic device and the access point device exceeds a preset threshold, the Bluetooth connection between the electronic device and the access point device is disconnected. For example, the preset threshold for the number of Bluetooth pairing requests may be set to three times, and this application does not impose specific limitations on this.
[0030] In some embodiments, in response to the electronic device scanning the device association code, the electronic device may receive a prompt message, which may be used to prompt the electronic device to turn on the WiFi function. It is understandable that if the WiFi function of the electronic device is already turned on, the prompt message will not be received.
[0031] The embodiment of the present application does not impose any specific limitation on the type of the first wireless communication connection. For example, the first wireless communication connection may be a Bluetooth connection, an infrared connection, or a ZigBee connection.
[0032] The present embodiment does not impose any specific restrictions on the type of device association code for the access point device. For example, the device association code can be a QR code, barcode, etc. The device association code can be provided by the access point device manufacturer and can be posted in an open and convenient place in the home, such as on a coffee table or wall.
[0033] In step 140 , the access point device sends connection parameters to the electronic device through the first wireless communication connection.
[0034] After a first wireless communication connection is successfully established between the electronic device and the access point device, the access point device can send connection parameters to the electronic device via the first wireless communication connection. The connection parameters can be used to establish a second wireless communication connection between the electronic device and the access point device based on Wireless Fidelity (Wi-Fi). In other words, the connection parameters are Wi-Fi connection parameters, and the second wireless communication connection is a Wi-Fi connection.
[0035] In some embodiments, the scan code information mentioned above may include device identification information, and the access point device sends connection parameters to the electronic device through the first wireless communication connection, which may include: in response to the device identification information matching the access point device, the access point device then sends the connection parameters to the electronic device through the first wireless communication connection.
[0036] In some embodiments, the device identification information may be a unique identification number of the access point device. For example, the electronic device may first scan the device association code to obtain the identification number of the access point device; then, the identification number may be sent to the access point device via the first wireless communication connection; further, the access point device may match the received identification number with the identification number stored in the access point device. If the match is successful, the connection parameters may be sent to the electronic device. If the match fails, the connection parameters are not sent. This allows verification of the uniqueness of the access point device.
[0037] In some embodiments, to ensure data security, the electronic device may send encrypted device identification information to the access point device via the first wireless communication connection, and / or the access point device may send encrypted connection parameters to the electronic device via the first wireless communication connection. The present application does not specifically limit the data encryption method. For example, taking the first wireless communication connection as a Bluetooth connection, for example, the Bluetooth protocol may be used to encrypt data such as the connection parameters and device identification information.
[0038] In some embodiments, the device identification information in the access point device may be stored in a non-volatile memory (NVM). In this way, the device identification information will not be lost even if the access point device loses power.
[0039] In some embodiments, before receiving the connection parameters, the electronic device may also send device identification information to the access point device; further, in response to the time waiting for receiving the connection parameters timing out, the first wireless communication connection between the electronic device and the access point device is disconnected; in response to the time waiting for receiving the connection parameters not timing out and the electronic device not receiving the connection parameters sent by the access point device, it continues to wait for receiving the connection parameters.
[0040] In some embodiments, the connection parameters mentioned above may include parameters such as a service set identifier SSID and / or a WiFi password of the access point device.
[0041] In step 160 , a second wireless communication connection is established between the electronic device and the access point device.
[0042] After the electronic device inputs the WiFi connection parameters, a second wireless communication connection may be established between the electronic device and the access point device according to the WiFi connection parameters.
[0043] As can be seen from the above description, the communication distance supported by the first wireless communication connection is greater than the communication distance corresponding to the near-field communication NFC. By utilizing the first wireless communication connection, this solution can obtain WiFi connection parameters (for example, the service set identifier SSID and / or WiFi password) from the access point device within a comfortable distance space to achieve automatic WiFi connection, without the need for the user to manually enter password information, which is convenient and fast. In addition, compared with the traditional solution of connecting to Wi-Fi via NFC, the embodiment of the present application reduces the restrictions on the placement of the access point device. In other words, even if the access point device is placed too high or too low in the home, it can still quickly and easily achieve WiFi connection automatically, further improving the convenience and experience of users.
[0044] In order to further understand the method for establishing a wireless communication connection in the embodiment of the present application, the following takes the first wireless communication connection as a Bluetooth connection as an example. Figures 2 to 4 , and give detailed examples.
[0045] In some embodiments, the access point device may use a Wi-Fi / BT combo chip, which is configured with a unique identification number at the factory and written into the NVM area of the chip, thereby ensuring that the identification number is not lost even if the chip loses power.
[0046] like Figure 2 As shown, the method for establishing a wireless communication connection may include the following steps:
[0047] Step 2.1: When an electronic device needs to connect to Wi-Fi, it can first scan the QR code provided by the manufacturer to obtain the unique identification number of the access point device and the Bluetooth device name.
[0048] In some embodiments, when scanning the QR code, the electronic device will be prompted to turn on the WiFi function so that a WiFi connection can be made later. It is understandable that if the WiFi function of the electronic device is already turned on, no prompt message will be received.
[0049] Step 2.2: Based on the obtained Bluetooth device name, the electronic device may send a Bluetooth pairing request to the access point device.
[0050] Step 2.3: In response to the successful Bluetooth pairing, a Bluetooth connection may be established between the electronic device and the access point device. It is understood that if a Bluetooth pairing request is sent once and the pairing is not successful, multiple Bluetooth pairing requests may be sent to the access point device to establish a Bluetooth connection with the access point device.
[0051] It is understandable that if the number of Bluetooth pairings between the electronic device and the access point device exceeds a preset threshold, the Bluetooth connection between the electronic device and the access point device is disconnected. For example, the preset threshold of the number of Bluetooth pairings can be set to 3 times, and this application does not impose specific restrictions on this.
[0052] Step 2.4: After the Bluetooth connection is established, the electronic device may send the identification number of the access point device obtained by scanning the QR code to the access point device.
[0053] In some embodiments, to ensure data security, the electronic device may send encrypted identification number data to the access point device via a Bluetooth connection. For example, the identification number data may be encrypted using a Bluetooth protocol.
[0054] Step 2.5: After receiving the identification number sent by the electronic device, the access point device may compare and match the received identification number with the identification number stored in the access point device. If the two identification numbers are identical, the match is successful, and the access point device may send the access point device's service set identifier (SSID) and WiFi password to the electronic device. Of course, if the match fails, the access point device's service set identifier (SSID) and WiFi password are not sent to the electronic device.
[0055] In some embodiments, to ensure data security, the access point device sends the encrypted service set identifier SSID and WiFi password to the electronic device via a Bluetooth connection. For example, the service set identifier SSID and WiFi password data can be encrypted using the Bluetooth protocol.
[0056] Step 2.6: The electronic device receives the service set identifier SSID and WiFi password of the access point device sent by the access point device.
[0057] In some embodiments, if the electronic device times out while waiting for receiving the service set identifier SSID and the WiFi password from the access point device, the electronic device may disconnect the Bluetooth connection with the access point device.
[0058] Step 2.7: The electronic device may reply to the access point device with a confirmation message indicating that the reception is complete.
[0059] Step 2.8: The electronic device can automatically input the service set identifier SSID and WiFi password of the access point device and initiate a WiFi connection to the access point device.
[0060] like Figure 3 As shown, a method for establishing a wireless communication connection on an electronic device side may include the following steps:
[0061] Step 3.1: When an electronic device needs to connect to Wi-Fi, it can first scan the QR code provided by the manufacturer to obtain the unique identification number of the access point device and the Bluetooth device name.
[0062] In some embodiments, when scanning the QR code, the electronic device will be prompted to turn on the WiFi function so that a WiFi connection can be made later. It is understandable that if the WiFi function of the electronic device is already turned on, no prompt message will be received.
[0063] Step 3.2: Based on the obtained Bluetooth device name, the electronic device may send a Bluetooth pairing request to the access point device.
[0064] Step 3.3: If the Bluetooth pairing with the access point device is successful, skip to step 3.5; otherwise, skip to step 3.4.
[0065] Step 3.4: Determine whether the number of Bluetooth pairing attempts exceeds a threshold. In this embodiment, the pairing threshold can be set at three attempts. If the number of pairing attempts does not exceed the threshold, the process proceeds to step 3.2. If the pairing attempt still fails after exceeding this limit, the Bluetooth connection is disconnected and the process exits.
[0066] Step 3.5: In response to the successful Bluetooth pairing, it means that a Bluetooth connection has been established with the access point device. At the same time, the identification number of the access point device obtained by scanning the QR code is sent to the access point device.
[0067] In some embodiments, to ensure data security, the electronic device may send encrypted identification number data to the access point device via a Bluetooth connection. For example, the identification number data may be encrypted using a Bluetooth protocol.
[0068] Step 3.6: Wait for the SSID and Wi-Fi password to be sent from the access point. If the electronic device waits for the SSID and Wi-Fi password to be received for a timeout, the device can disconnect the Bluetooth connection with the access point and exit this process. If the wait time for the SSID and Wi-Fi password to be received has not timed out, the process proceeds to Step 3.7.
[0069] Step 3.7: Determine whether the service set identifier SSID and WiFi password have been received. If the service set identifier SSID and WiFi password have been received, jump to step 3.8; otherwise, jump to step 3.6 and continue waiting to receive connection parameters.
[0070] Step 3.8: The electronic device saves the service set identifier SSID and WiFi password to the device and sends a confirmation message indicating that the reception is complete to the access point device.
[0071] Step 3.9: The electronic device may automatically input the service set identifier SSID and WiFi password of the access point device and initiate a WiFi association to the access point device to establish a WiFi connection with the access point device.
[0072] like Figure 4 As shown, a method for establishing a wireless communication connection on an access point device side may include the following steps:
[0073] Step 4.1: After the access point device is started, wait for the Bluetooth pairing request sent by the electronic device.
[0074] Step 4.2: Determine whether the Bluetooth pairing is successful. If the Bluetooth pairing fails, jump to step 4.1; if the Bluetooth pairing is successful, jump to step 4.2.
[0075] Step 4.3: Wait to receive the identification number sent by the electronic device.
[0076] Step 4.4: After receiving the identification number sent by the electronic device, the access point device may compare and match the received identification number with the identification number stored in the access point device.
[0077] Step 4.5: If the two identification numbers are the same, it means the match is successful, jump to step 4.6, otherwise jump to step 4.3.
[0078] Step 4.6: Send the service set identifier SSID and WiFi password to the electronic device.
[0079] In some embodiments, to ensure data security, the access point device sends the encrypted service set identifier SSID and WiFi password to the electronic device via a Bluetooth connection. For example, the service set identifier SSID and WiFi password data can be encrypted using the Bluetooth protocol.
[0080] Step 4.7: Wait for the electronic device to send a confirmation message indicating that the reception is complete. The solution in this embodiment can stipulate that the number of waiting times is 3. If the confirmation message is not received after this limit, the Bluetooth connection with the electronic device is disconnected and the process is exited.
[0081] Step 4.8: Determine whether a confirmation message indicating completion of reception has been received from the electronic device. If a confirmation message has been received from the electronic device, disconnect the Bluetooth connection with the electronic device and proceed to step 4.9. If a confirmation message has not been received from the electronic device, proceed to step 4.6.
[0082] Step 4.9: Wait for WiFi association to establish a WiFi connection with the electronic device.
[0083] As can be seen from the above embodiments, this solution transmits the access point device's service set identifier SSID and WiFi password information via Bluetooth connection. This not only allows the access point device's service set identifier SSID and WiFi password information to be transmitted to the electronic device via Bluetooth encryption, ensuring the security and reliability of information transmission; it also simplifies the steps for users to connect electronic devices to the access point device. They only need to scan the QR code provided by the access point device manufacturer to automatically complete the Wi-Fi connection process, without having to manually enter the password information, which is convenient and fast. In addition, compared with the solution of connecting to Wi-Fi via NFC, this solution has no restrictions on the placement of the access point device. Even if the access point device is placed too high or too low, it can still be automatically connected to the access point device conveniently and quickly, further improving the convenience of user use.
[0084] Combined with the above Figures 1 to 4 The method embodiment of the present application is described in detail. Figures 5 and 6 The device embodiment of the present application is described in detail. It should be understood that the description of the method embodiment corresponds to the description of the device embodiment, so for parts not described in detail, reference can be made to the previous method embodiment.
[0085] Figure 5 FIG2 is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. The electronic device 500 includes a first wireless communication module 510 , a second wireless communication module 520 , and a processor 530 .
[0086] The first wireless communication module 510 may be used to establish a first wireless communication connection, where the communication distance supported by the first wireless communication connection is greater than the communication distance corresponding to near field communication.
[0087] The second wireless communication module 520 may be used to establish a second wireless communication connection based on Wireless Fidelity (WiFi).
[0088] The processor 530 may be configured to control the first wireless communication module and the second wireless communication module to perform the following operations: establish a first wireless communication connection with an access point device; send connection parameters to the access point device via the first wireless communication connection, where the connection parameters are used to establish the second wireless communication connection with the access point device; and establish the second wireless communication connection with the access point device in response to the electronic device inputting the connection parameters.
[0089] It can be understood that the first wireless communication module 510 and the second wireless communication module 520 in the embodiment of the present application can complete corresponding operations under the control of the processor 530.
[0090] The processor 530 may be a general-purpose processor or a special-purpose processor. For example, the processor 530 may be a central processing unit (CPU). Alternatively, the processor 530 may be another general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0091] It is understood that the electronic device 500 in the embodiments of the present application may further include one or more memories. The memories store programs that can be executed by the processor 530, causing the electronic device 500 to perform the electronic device-side methods described in the method embodiments above. The memories may be independent of the processor 530 or integrated into the processor 530.
[0092] It is understood that the processor 530 can communicate with other devices or chips through the transceiver. For example, the processor 530 can transmit and receive data with other devices or chips through the transceiver.
[0093] Figure 6 FIG2 is a schematic diagram of the structure of an access point device provided in an embodiment of the present application. The access point device 600 includes a first wireless communication module 610 , a second wireless communication module 620 , and a processor 630 .
[0094] A first wireless communication module 610, which can be used to establish a first wireless communication connection, wherein the communication distance supported by the first wireless communication connection is greater than the communication distance corresponding to near field communication;
[0095] The second wireless communication module 620 can be used to establish a second wireless communication connection based on Wireless Fidelity WiFi;
[0096] Processor 630 can be used to control the first wireless communication module and the second wireless communication module to perform the following operations: establish a first wireless communication connection with an electronic device; send connection parameters to the electronic device through the first wireless communication connection, and the connection parameters are used to establish the second wireless communication connection with the electronic device; in response to the electronic device inputting the connection parameters, establish the second wireless communication connection with the electronic device.
[0097] It can be understood that the first wireless communication module 610 and the second wireless communication module 620 in the embodiment of the present application can complete corresponding operations under the control of the processor 630.
[0098] The processor 630 may be a general-purpose processor or a special-purpose processor. For example, the processor 630 may be a central processing unit (CPU). Alternatively, the processor 630 may be another general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0099] It is understood that the access point device 600 in the embodiments of the present application may further include one or more memories. The memories may store programs that can be executed by the processor 630, causing the access point device 600 to perform the access point device-side methods described in the aforementioned method embodiments. The memories may be independent of the processor 630 or integrated within the processor 630.
[0100] It is understood that the processor 630 can communicate with other devices or chips through the transceiver. For example, the processor 630 can transmit and receive data with other devices or chips through the transceiver.
[0101] The present application also provides a machine-readable storage medium for storing a program, and the program enables a computer to execute the methods in various embodiments of the present application.
[0102] The present application also provides a computer program product. The computer program product includes a program that enables a computer to execute the methods of the various embodiments of the present application.
[0103] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present disclosure is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a machine-readable storage medium or transmitted from one machine-readable storage medium to another machine-readable storage medium. For example, the computer instructions can be transmitted from a website, computer, server or data center to another website, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The machine-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital video disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).
[0104] Those skilled in the art will appreciate that the units and algorithm steps of the various examples described in conjunction with the embodiments of the present disclosure can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this disclosure.
[0105] In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0106] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0107] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0108] The above description is merely a specific embodiment of the present disclosure, but the scope of protection of the present disclosure is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this disclosure should be included in the scope of protection of the present disclosure. Therefore, the scope of protection of the present disclosure should be based on the scope of protection of the claims.
Claims
1. A method for establishing a wireless communication connection, characterized in that: Applied to electronic equipment, the method includes: Establishing a first wireless communication connection with an access point device, where the communication distance supported by the first wireless communication connection is greater than the communication distance corresponding to near field communication; receiving, through the first wireless communication connection, connection parameters sent by the access point device, where the connection parameters are used to establish a second wireless communication connection based on Wireless Fidelity (WiFi) with the access point device; establishing the second wireless communication connection with the access point device according to the connection parameters; The establishing a first wireless communication connection with the access point device includes: Scan the device association code of the access point device to obtain scan code information; Establishing the first wireless communication connection with the access point device according to the scanned code information; The code scanning information includes device identification information of the access point device. Before receiving the connection parameters sent by the access point device through the first wireless communication connection, the method further includes: sending the device identification information to the access point device, so that the access point device matches the device identification information with an identification number of the access point device stored in the access point device; The receiving, through the first wireless communication connection, the connection parameter sent by the access point device includes: In response to a successful match between the device identification information and the identification number, the connection parameters sent by the access point device are received through the first wireless communication connection.
2. The method according to claim 1, characterized in that The first wireless communication connection is a Bluetooth connection, the code scanning information includes a Bluetooth device name, and establishing the first wireless communication connection with the access point device according to the code scanning information includes: Performing Bluetooth pairing with the access point device according to the Bluetooth device name; In response to the Bluetooth pairing being successful, establishing the first wireless communication connection with the access point device.
3. The method according to claim 1 or 2, characterized in that The method further comprises: In response to a timeout for waiting to receive the connection parameter, disconnecting the first wireless communication connection with the access point device; In response to the time for waiting for receiving the connection parameters not timing out and the connection parameters sent by the access point device not being received, continue waiting for receiving the connection parameters.
4. The method according to claim 1 or 2, characterized in that The method further comprises: In response to the scanning operation of the device association code, prompt information is received, where the prompt information is used to prompt to turn on the WiFi function of the electronic device.
5. The method according to claim 1 or 2, characterized in that The receiving, through the first wireless communication connection, the connection parameter sent by the access point device includes: The encrypted connection parameter sent by the access point device is received through the first wireless communication connection.
6. The method according to claim 1 or 2, characterized in that The connection parameters include a service set identifier SSID and / or a WiFi password of the access point device.
7. The method according to claim 1 or 2, characterized in that The first wireless communication connection is a Bluetooth connection, an infrared connection, or a Zigbee connection.
8. A method for establishing a wireless communication connection, characterized in that: Applied to an access point device, the method includes: Establishing a first wireless communication connection with an electronic device, wherein the first wireless communication connection supports a communication distance greater than a communication distance corresponding to near field communication; Sending connection parameters to the electronic device through the first wireless communication connection, where the connection parameters are used to establish a second wireless communication connection based on Wireless Fidelity (WiFi) with the electronic device; In response to the electronic device inputting the connection parameter, establishing the second wireless communication connection with the electronic device; Before sending the connection parameters to the electronic device through the first wireless communication connection, the method further includes: receiving device identification information of the access point device sent by the electronic device; The sending the connection parameter to the electronic device through the first wireless communication connection includes: matching the device identification information with an identification number of the access point device stored in the access point device; In response to a successful match between the device identification information and the identification number, the connection parameters are sent to the electronic device via the first wireless communication connection.
9. The method according to claim 8, characterized in that The first wireless communication connection is a Bluetooth connection, and establishing the first wireless communication connection with the electronic device includes: Receiving a Bluetooth pairing request sent by the electronic device; In response to the Bluetooth pairing being successful, establishing the Bluetooth connection with the electronic device.
10. The method according to claim 8 or 9, characterized in that The sending the connection parameter to the electronic device through the first wireless communication connection includes: The encrypted connection parameters are sent to the electronic device via the first wireless communication connection.
11. The method according to claim 8 or 9, characterized in that The connection parameters include a service set identifier SSID and / or a WiFi password of the access point device.
12. An electronic device, characterized in that: include: A first wireless communication module is configured to establish a first wireless communication connection, wherein the communication distance supported by the first wireless communication connection is greater than the communication distance corresponding to near field communication; A second wireless communication module is used to establish a second wireless communication connection based on Wireless Fidelity WiFi; a processor, configured to control the first wireless communication module and the second wireless communication module to perform the following operations: establishing a first wireless communication connection with an access point device; receiving, through the first wireless communication connection, connection parameters sent by the access point device, where the connection parameters are used to establish the second wireless communication connection with the access point device; In response to the electronic device inputting the connection parameter, establishing the second wireless communication connection with the access point device; The establishing a first wireless communication connection with the access point device includes: Scan the device association code of the access point device to obtain scan code information; Establishing the first wireless communication connection with the access point device according to the scanned code information; The code scanning information includes device identification information of the access point device, and the processor is further configured to perform the following operations: Before receiving the connection parameters sent by the access point device through the first wireless communication connection, sending the device identification information to the access point device, so that the access point device matches the device identification information with an identification number of the access point device stored in the access point device; The receiving, through the first wireless communication connection, the connection parameter sent by the access point device includes: In response to a successful match between the device identification information and the identification number, the connection parameters sent by the access point device are received through the first wireless communication connection.
13. An access point device, characterized in that: include: A first wireless communication module is configured to establish a first wireless communication connection, wherein the communication distance supported by the first wireless communication connection is greater than the communication distance corresponding to near field communication; A second wireless communication module is used to establish a second wireless communication connection based on Wireless Fidelity WiFi; a processor, configured to control the first wireless communication module and the second wireless communication module to perform the following operations: establishing a first wireless communication connection with an electronic device; sending connection parameters to the electronic device through the first wireless communication connection, where the connection parameters are used to establish the second wireless communication connection with the electronic device; In response to the electronic device inputting the connection parameter, establishing the second wireless communication connection with the electronic device; The processor is further configured to perform the following operations: Before sending the connection parameters to the electronic device through the first wireless communication connection, receiving device identification information of the access point device sent by the electronic device; The sending the connection parameter to the electronic device through the first wireless communication connection includes: matching the device identification information with an identification number of the access point device stored in the access point device; In response to a successful match between the device identification information and the identification number, the connection parameters are sent to the electronic device via the first wireless communication connection.
14. A computer-readable storage medium having executable code stored thereon, characterized in that: When the code is executed by a processor, it is used to implement the method according to any one of claims 1 to 11.
Citation Information
Patent Citations
Wireless high-speed data transmission method and system supporting multiple terminals
CN107222835A
Communication connection method and device, storage medium and electronic equipment
CN111918266A