Wireless communication connection method, device, electronic device and storage medium

By receiving wireless communication signals and querying the connection list, the device priority is determined, which solves the problem that mobile phones cannot quickly recommend wireless communication devices in crowded places, improves connection efficiency, and especially improves Bluetooth and Wi-Fi using historical connection information Recommended priority for hot-spot equipment.

CN115086920BActive Publication Date: 2024-11-08GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210637372.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-07
Publication Date
2024-11-08
Estimated Expiration
2042-06-07

AI Technical Summary

Technical Problem

In crowded places, when a mobile phone connects multiple wireless communication devices, the prior art cannot quickly and accurately recommend the devices that need to be paired, resulting in a reduced connection efficiency.

Method used

By receiving wireless communication signals, a device that meets the connection conditions is determined, a device identification is obtained and a preset connection list is queried, and a connection information is obtained to determine the device priority, thereby establishing a wireless communication connection.

Benefits of technology

Improves the efficiency of wireless communication connections, making it easier for users to find devices that need to be paired, especially using historical connection information to increase the connection priority of Bluetooth and Wi-Fi hotspot devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115086920B_ABST
    Figure CN115086920B_ABST
Patent Text Reader

Abstract

The embodiments of the present application disclose a wireless communication connection method, device, electronic device and storage medium. When performing a first wireless communication connection, when at least two second electronic devices that meet the connection conditions are searched, a preset connection list is queried according to the device identification, and second connection information for performing a second wireless communication connection is obtained. The priority of the second electronic device when performing the first wireless communication connection is determined with reference to the second connection information, and the second electronic device that needs to be paired is quickly and accurately recommended to the user, thereby improving the connection efficiency of the wireless communication connection. For example, by utilizing the social attributes of Bluetooth connections, the priority of Wi‑Fi hotspot connections for electronic devices that have been paired with Bluetooth is increased, so that users can more easily find this electronic device for Wi‑Fi hotspot connections. By utilizing the social attributes of Wi‑Fi hotspot connections, the priority of Bluetooth connections for electronic devices that have been paired with Wi‑Fi is increased, so that users can more easily find this electronic device for Bluetooth connections.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to wireless communication technology, and in particular to a wireless communication connection method, device, electronic device and storage medium. Background Art

[0002] Currently, when a mobile phone is connected to short-range wireless communication devices (referred to as "wireless communication devices") such as Bluetooth (BT) and mobile hotspot (Wireless Fidelity, Wi-Fi), when there are many wireless communication devices that can be paired with the mobile phone in the usage scenario and none of them appear in the historical connection records of the mobile phone, the mobile phone can only sort the devices and recommend them to the user based on the signal strength of the wireless communication devices. This recommendation method is not suitable for crowded places such as subways and offices, and cannot quickly and accurately recommend wireless communication devices that need to be paired to users, which reduces the connection efficiency between the mobile phone and the wireless communication device and affects user experience. Summary of the invention

[0003] In order to solve the above technical problems, the embodiments of the present application hope to provide a wireless communication connection method, device, electronic device and storage medium.

[0004] The technical solution of this application is implemented as follows:

[0005] In a first aspect, a wireless communication connection method is provided, which is applied to a first electronic device, and includes:

[0006] receiving a first wireless communication signal;

[0007] Based on the first wireless communication signal, determining at least two second electronic devices that meet the connection condition, and acquiring device identifications of the at least two second electronic devices;

[0008] Querying a preset connection list based on the device identification to obtain connection information corresponding to the device identification, wherein the connection information includes: second connection information of a second wireless communication connection between the first electronic device and the second electronic device;

[0009] Determining priorities of the at least two second electronic devices based on the connection information;

[0010] Based on the priorities of the at least two second electronic devices, a target second electronic device is determined and a first wireless communication connection is established.

[0011] In a second aspect, a wireless communication connection device is provided, which is applied to a first electronic device, including:

[0012] A wireless communication module, configured to receive a first wireless communication signal; and based on the first wireless communication signal, determine device identifications of at least two second electronic devices that meet a connection condition;

[0013] a processing module, configured to query a preset connection list based on the device identification, and obtain connection information corresponding to the device identification, wherein the connection information includes: second connection information of a second wireless communication connection between the first electronic device and the second electronic device; and determine the priority of the at least two second electronic devices based on the connection information;

[0014] The wireless communication module is further used to determine the target second electronic device and establish a first wireless communication connection based on the priorities of the at least two second electronic devices.

[0015] According to a third aspect, an electronic device is provided, comprising: a processor and a memory configured to store a computer program that can be run on the processor,

[0016] Wherein, the processor is configured to execute the steps of the aforementioned method when running the computer program.

[0017] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, wherein the computer program implements the steps of the aforementioned method when executed by a processor.

[0018] By adopting the above technical solution, when an electronic device makes a first wireless communication connection, when at least two second electronic devices that meet the connection conditions are searched, the preset connection list is queried according to the device identification, and the second connection information of the electronic device making the second wireless communication connection is obtained. The priority of the second electronic device when making the first wireless communication connection is determined with reference to the second connection information, and the second electronic device that needs to be paired is quickly and accurately recommended to the user, thereby improving the connection efficiency of the wireless communication connection. For example, by utilizing the social attributes of having connected to Bluetooth, the priority of Wi-Fi hotspot connection of electronic devices that have been paired with Bluetooth is increased, so that users can more easily find this electronic device to connect to the Wi-Fi hotspot. By utilizing the social attributes of having connected to a Wi-Fi hotspot, the priority of Bluetooth connection of electronic devices that have been paired with Wi-Fi is increased, so that users can more easily find this electronic device to connect to the Bluetooth hotspot. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 A schematic diagram of the structure of a wireless communication system provided in an embodiment of the present application;

[0020] Figure 2 A schematic diagram of a flow chart of a wireless communication connection method in an embodiment of the present application;

[0021] Figure 3This is a flowchart of a Bluetooth connection method in an embodiment of the present application;

[0022] Figure 4 A schematic diagram of a flow chart of a Wi-Fi hotspot connection method in an embodiment of the present application;

[0023] Figure 5 This is a schematic diagram of the structure of the wireless communication connection device in the embodiment of the present application;

[0024] Figure 6 It is a schematic diagram of the composition structure of the electronic device in the embodiment of the present application. DETAILED DESCRIPTION

[0025] In order to enable a more detailed understanding of the features and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present application.

[0026] An embodiment of the present application discloses a wireless communication connection method, which is applied to a first electronic device and is used to achieve a wireless communication connection with a second electronic device. Figure 1 A schematic diagram of the structure of a wireless communication system provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the communication system 100 applied in the embodiment of the present application may include a first electronic device 110, which may be a device that establishes at least one wireless communication connection with a second electronic device 120. The first electronic device 110 can provide communication coverage for a specific geographical area and can communicate wirelessly with the second electronic device 120 located in the coverage area.

[0027] The communication system 100 may further include at least one second electronic device 120 located within the coverage of the first electronic device 110, and the wireless communication technology may include: BT, Wi-Fi, Zigbee and other short-range communication technologies.

[0028] The electronic device may be implemented in various forms. For example, the electronic device described in the present invention may include devices such as mobile phones, tablet computers, laptop computers, PDAs, portable media players (PMPs), vehicle-mounted devices, wearable devices, smart bracelets, digital TVs, desktop computers, mobile switching centers, relay stations, access points, hubs, switches, bridges, routers, and the like.

[0029] Figure 2 FIG. 1 is a flow chart of a wireless communication connection method in an embodiment of the present application. Figure 2 As shown, the method may specifically include:

[0030] Step 201: receiving a first wireless communication signal;

[0031] Step 202: determining at least two second electronic devices that meet a connection condition based on the first wireless communication signal, and obtaining device identifications of the at least two second electronic devices;

[0032] When the first electronic device establishes a first wireless communication connection with the second electronic device, the first electronic device detects the first wireless communication signal of the surrounding second electronic device to determine whether the second electronic device has the connection condition to establish the first wireless communication connection. Exemplarily, the connection condition may be that the signal strength of the first wireless communication signal is greater than a strength threshold.

[0033] When two or more second electronic devices are detected, the following steps of the embodiment of the present application are used to determine the priority of the second electronic devices, that is, to determine the connection order or recommended order of the second electronic devices to improve the connection efficiency of the first wireless communication connection.

[0034] Step 203: querying a preset connection list based on the device identifier to obtain connection information corresponding to the device identifier;

[0035] Wherein, the connection information includes: second connection information of the second wireless communication connection between the first electronic device and the second electronic device. Here, the second connection information represents the connection-related information obtained when the first electronic device and the second electronic device establish a second wireless communication connection, and is used to assist in establishing a first wireless communication connection between the first electronic device and the second electronic device, and improve the connection efficiency of the first communication connection. Exemplarily, if the first electronic device and the second electronic device have the second connection information, the priority of the second electronic device when making the first wireless communication connection is higher than that of other electronic devices that do not have the second connection information.

[0036] Furthermore, the connection information may also include: first connection information of a first wireless communication connection between the first electronic device and the second electronic device, wherein the first wireless communication connection is different from the second wireless communication connection. The first connection information represents connection-related information acquired when the first electronic device and the second electronic device establish a first wireless communication connection, and is used to assist in establishing a second wireless communication connection between the first electronic device and the second electronic device, thereby improving the connection efficiency of the second communication connection. Exemplarily, if the first electronic device and the second electronic device have the first connection information, the priority of the second electronic device when making the second wireless communication connection is higher than that of other electronic devices that do not have the first connection information.

[0037] It should be understood that although the terms first, second, third, etc. may be used in this application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other and are not necessarily used to describe a specific order or sequence.

[0038] Step 204: Determine the priorities of the at least two second electronic devices based on the connection information;

[0039] Exemplarily, in some embodiments, the second connection information includes: a current connection state and a historical connection state of the second wireless communication connection between the first electronic device and the second electronic device.

[0040] Correspondingly, the priority of the at least two second electronic devices is determined based on the connection information, including: when the current connection state of the second connection information is a connected state, determining the priority of the second electronic device to be a first priority; when the current connection state of the second connection information is an unconnected state and the historical connection state of the second connection information is a connected state, determining the priority of the second electronic device to be a second priority; wherein the first priority is higher than the second priority.

[0041] Here, the current connection state of the second connection information indicates whether a second wireless communication connection is established between the first electronic device and the second electronic device at the current moment. Exemplarily, the current connection state can be represented by a binary bit 0 or 1, where 0 represents a disconnected state and 1 represents a connected state by default.

[0042] The historical connection status of the second connection information indicates whether a second wireless communication connection is established between the first electronic device and the second electronic device at a historical moment. Exemplarily, the historical connection status can be represented by a binary bit 0 or 1, where 0 represents a disconnected state and 1 represents a connected state by default.

[0043] Exemplarily, in some embodiments, after determining the priorities of the at least two second electronic devices based on the connection information, the method further includes: sorting the at least two second electronic devices based on the priorities of the at least two second electronic devices to obtain a recommendation list; based on the connection information, displaying in the recommendation list a connection identifier for establishing the second wireless communication connection between the first electronic device and the second electronic device, and displaying a connection identifier for establishing the first wireless communication connection between the first electronic device and the second electronic device.

[0044] The connection mark is used to remind the user that the second electronic device has established a second communication connection or a first wireless communication connection with the first electronic device. Exemplarily, the connection mark can be an icon, and a Wi-Fi icon and a Bluetooth icon are displayed in the Bluetooth recommendation list to remind the user that this Bluetooth device is a Wi-Fi hotspot device and a Bluetooth device that have been connected or have been connected. The Wi-Fi icon and the Bluetooth icon are displayed in the Wi-Fi recommendation list to remind the user that this Wi-Fi device is a Wi-Fi hotspot device and a Bluetooth device that have been connected or have been connected.

[0045] Exemplarily, the connection identifiers of the current connection state and the historical connection state are the same or different.

[0046] Exemplarily, in some embodiments, the method further includes: querying a preset connection list based on the device identifier, and when it is determined that the connection list does not include the connection information corresponding to the device identifier, determining that the priority of the second electronic device is a fourth priority, wherein the fourth priority is lower than the second priority.

[0047] When making a first wireless communication connection, if the first electronic device and the second electronic device currently establish a second wireless communication connection, the priority of the second electronic device is higher than the priority of other electronic devices, and the other electronic devices include: a second electronic device whose current connection state is an unconnected state but whose historical connection state is a connected state, and a second electronic device that has not established a second wireless communication connection with the first electronic device.

[0048] Exemplarily, in some embodiments, the second connection information may further include connection information such as the number of historical connections, the time of historical connection, etc. Exemplarily, the more the number of historical connections, the higher the priority of the second electronic device, and vice versa. The closer the historical connection time is to the current time, the higher the priority of the second electronic device, and vice versa.

[0049] Step 205: Based on the priorities of the at least two second electronic devices, determine a target second electronic device and establish a first wireless communication connection.

[0050] Exemplarily, the connection information also includes: first connection information of the first wireless communication connection between the first electronic device and the second electronic device, and second connection information of the second wireless communication connection between the first electronic device and the second electronic device; the first wireless communication connection and the second wireless communication connection are different.

[0051] In practical applications, one connection list may be used to store the device identification, the first connection information, and the second connection information. Alternatively, two connection lists may be used to store the device identification and the first connection information, and the device identification and the second connection information, respectively.

[0052] Exemplarily, in some embodiments, the first connection information includes: the current connection status and historical connection status of the first wireless communication connection between the first electronic device and the second electronic device; the second connection information includes: the current connection status and historical connection status of the second wireless communication connection between the first electronic device and the second electronic device.

[0053] Correspondingly, the determining the priorities of the at least two second electronic devices based on the connection information includes: when the current connection state of the first connection information is an unconnected state and the historical connection state of the first connection information is a connected state, determining the priority of the second electronic device to be a third priority; when the current connection state of the second connection information is a connected state, determining the priority of the second electronic device to be a first priority; when the current connection state of the second connection information is an unconnected state and the historical connection state of the second connection information is a connected state, determining the priority of the second electronic device to be a second priority;

[0054] The third priority is higher than the first priority, and the first priority is higher than the second priority.

[0055] That is to say, the second electronic device that established a first wireless communication connection with the first electronic device at a historical moment has a higher priority than the second electronic device that currently establishes a second wireless communication connection, and the second electronic device that currently establishes a second wireless communication connection has a higher priority than the second electronic device that historically established a second wireless communication connection.

[0056] Here, the current connection state of the first connection information indicates whether a first wireless communication connection is established between the first electronic device and the second electronic device at the current moment. Exemplarily, the current connection state can be represented by a binary bit 0 or 1, where 0 represents a disconnected state and 1 represents a connected state by default.

[0057] The historical connection status of the first connection information indicates whether a first wireless communication connection is established between the first electronic device and the second electronic device at a historical moment. Exemplarily, the historical connection status can be represented by a binary bit 0 or 1, where 0 represents a disconnected state and 1 represents a connected state by default.

[0058] Exemplarily, in some embodiments, after determining the priorities of the at least two second electronic devices based on the connection information, the method further includes: sorting the at least two second electronic devices based on the priorities of the at least two second electronic devices to obtain a recommendation list; and displaying a connection identifier for establishing the second wireless communication connection between the first electronic device and the second electronic device in the recommendation list based on the connection information.

[0059] The connection mark is used to remind the user that the second electronic device has established a second communication connection with the first electronic device. Exemplarily, the connection mark can be an icon, and a Wi-Fi icon is displayed in the Bluetooth recommendation list to remind the user that this Bluetooth device is a Wi-Fi hotspot device that has been connected or has been connected. The Bluetooth icon is displayed in the Wi-Fi recommendation list to remind the user that this Wi-Fi device is a Bluetooth device that has been connected or has been connected.

[0060] Exemplarily, the connection identifiers of the current connection state and the historical connection state are the same or different.

[0061] In some embodiments, the method further includes: querying a preset connection list based on the device identifier, and when it is determined that the connection list does not include the connection information corresponding to the device identifier, determining that the priority of the second electronic device is the fourth priority. The fourth priority is lower than the second priority, and the fourth priority is lower than the third priority, that is, the second electronic device not saved in the connection list has the lowest priority.

[0062] In some embodiments, the method further includes: when the current connection state of the first connection information is a connection state, determining that the first wireless communication connection has been established between the first electronic device and the second electronic device corresponding to the device identifier. That is, when the first electronic device and the second electronic device have established the first wireless communication connection, the connection ends without determining the priority of other electronic devices.

[0063] Exemplarily, in some embodiments, the method further includes: obtaining the current connection status between the first electronic device and the target second electronic device; and updating the first connection information corresponding to the device identification of the target second electronic device in the connection list based on the device identification and the current connection status of the target second electronic device.

[0064] If the device identification and the first connection information of the target second electronic device are not saved in the connection list, the device identification and the first connection information of the target second electronic device may be added to the connection list as connection reference information for subsequent first wireless communication connections and second wireless communication connections.

[0065] Exemplarily, in some embodiments, when the first wireless communication connection is a Bluetooth connection, the second wireless communication connection is a Wi-Fi hotspot connection; when the first wireless communication connection is a Wi-Fi hotspot connection, the second wireless communication connection is a Bluetooth connection.

[0066] In the upper layer of the electronic device, the identifier connect_index is set for each paired Bluetooth device and Wi-Fi device, and the identifier is [device identifier, current Bluetooth connection status, historical Bluetooth connection status, current Wi-Fi hotspot connection status, historical Wi-Fi hotspot connection status]. Among them:

[0067] The device identifier can be a device name. The device name can be a 64-bit string, which is defined as name here. It can be used to display the discovered Bluetooth / hotspot name. It can be freely configured. The string length needs to be greater than or equal to the maximum length of the device name that the user can enter.

[0068] Bluetooth current connection status / Bluetooth history connection status is a binary bit: 0 or 1, the default is 0; here it is defined as bluetooth_connect_status / bluetooth_connect_history_status;

[0069] The hotspot current connection status / hotspot history connection status is a binary bit: 0 or 1, the default is 0; here it is defined as hotpot_connect_status / hotpot_connect_history_status;

[0070] Set the Bluetooth name / hotspot name by which the first electronic device can be discovered to name. This variable can be modified by the user.

[0071] (1) Initialize and generate the connect_index list (i.e., the connection list), and the list elements are empty;

[0072] (2) When electronic device A (i.e., the first electronic device) connects to electronic device B (i.e., the second electronic device) via Bluetooth, a new connect_index element is inserted into the connect_index lists of electronic device A and electronic device B respectively, that is, when the two electronic devices establish a Bluetooth connection, their respective saved connect_index lists are updated simultaneously.

[0073] a) the name variable in the connect_index corresponding to electronic device A is the device name of electronic device B, and the name variable in the connect_index corresponding to the second electronic device is the device name of electronic device A;

[0074] b) When electronic device A is connected to electronic device B via Bluetooth, the variables bluetooth_connect_status and bluetooth_connect_history_status in the connect_index corresponding to electronic device A and electronic device B are set to 1 and 1, respectively.

[0075] c) When the Bluetooth connection between electronic device A and electronic device B is disconnected, the variable bluetooth_connect_status is set to 0.

[0076] (3) When electronic device A connects to electronic device C (the same as or different from electronic device B) via a Wi-Fi hotspot, a new connect_index element is inserted into the connect_index lists of electronic device A and electronic device C respectively, that is, when the two electronic devices establish a Wi-Fi hotspot connection, their respective saved connect_index lists are updated simultaneously.

[0077] a) The name variable in the connect_index corresponding to electronic device A is the device name of electronic device C, and the name variable in the connect_index corresponding to electronic device C is the device name of terminal A;

[0078] b. Set the variables hotpot_connect_status and hotpot_connect_history_status in the connect_index corresponding to electronic device A and electronic device C to 1 and 1 respectively.

[0079] c. When the hotspot connection between electronic device A and electronic device C is disconnected, the variable hotpot_connect_status is set to 0.

[0080] In order to better reflect the purpose of the present application, based on the above embodiments of the present application, further examples are given by taking Bluetooth connection and Wi-Fi hotspot connection as examples. Figure 3 Schematic diagram of the flow of the Bluetooth connection method in the embodiment of the present application. Figure 3 As shown, when the first electronic device is connected to the second electronic device through Bluetooth, the method specifically includes:

[0081] Step 301: Electronic device A turns on Bluetooth;

[0082] Here, electronic device A can be understood as the first electronic device.

[0083] Step 302: Search the list of available Bluetooth devices and store the names in name_list;

[0084] Here, the Bluetooth device can be understood as a second electronic device that establishes a Bluetooth connection with the first electronic device.

[0085] Step 303: Read the connect_index list stored in electronic device A;

[0086] Step 304: determine whether there is a name in name_list that is the same as the name in connect_index. If there is a same name, obtain the connection information corresponding to the name, and execute the judgment of steps 305 to 308 in sequence; if there is no same name, execute step 312;

[0087] Step 305: Determine whether the current Bluetooth connection status is 1, if not, execute step 306; if yes, execute step 314;

[0088] Step 306: Determine whether the Bluetooth history connection status is 1, if not, execute step 307; if yes, execute step 309;

[0089] Step 307: Determine whether the current Wi-Fi connection status is 1, if not, execute step 308; if yes, execute step 310;

[0090] Step 308: Determine whether the Wi-Fi history connection status is 1, if not, execute step 312; if yes, execute step 311;

[0091] Step 309: The priority of the Bluetooth device is 1;

[0092] Step 310: The priority of the Bluetooth device is 2;

[0093] Step 311: The priority of the Bluetooth device is 3;

[0094] Step 312: The priority of the Bluetooth device is 4;

[0095] Step 313: Sort the discovered Bluetooth devices according to their priorities, and select the Bluetooth device with the highest priority;

[0096] Step 314: Electronic device A connects to the Bluetooth device;

[0097] Step 315: Update the connect_index list.

[0098] Electronic device A is a Bluetooth-demanding device. Electronic device A has Bluetooth turned on and is in pairing state. There are a large number of electronic devices to be paired around electronic device A, all of which have Bluetooth turned on and are waiting for pairing. It is assumed that the Bluetooth signal strength received by electronic device A from all electronic devices is the same (with little difference), and no Bluetooth pairing connection has been made with electronic device A. If there is an electronic device B that is currently connected to electronic device A through Wi-Fi. Electronic device B exists in the connect_index list of electronic device A, and the corresponding element value is [electronic device B name, Bluetooth connection state = 0, Bluetooth history connection state = 0, hotspot connection state = 1, hotspot history connection state = 1].

[0099] Therefore Figure 3 It can be seen from the process that the Bluetooth priority of electronic device B is 2, which is higher than the priority 4 of electronic devices outside the connect_index list. The more electronic device A and electronic device B have been connected to a Wi-Fi hotspot, the higher the probability of A and B being socially paired. Electronic device B appears at the top of the Bluetooth discovery list of electronic device A, making it easier for users to find this device. Furthermore, the Wi-Fi hotspot icon can be displayed in the Bluetooth discovery list, prompting the user that this Bluetooth device is a Wi-Fi hotspot device that has been connected or is already connected. In this way, the social attributes of the Wi-Fi hotspot connection are utilized to increase the priority of Bluetooth connections for electronic devices that have been paired with Wi-Fi, making it easier for users to find this electronic device for Bluetooth connection.

[0100] Figure 4 FIG. 1 is a flow chart of a Wi-Fi hotspot connection method in an embodiment of the present application. Figure 4 As shown, when the first electronic device and the second electronic device are connected to a Wi-Fi hotspot, the method specifically includes:

[0101] Step 401: Electronic device A turns on Wi-Fi;

[0102] Here, electronic device A can be understood as the first electronic device.

[0103] Step 402: Search the list of available Wi-Fi devices and store the names in name_list;

[0104] Here, the Wi-Fi device can be understood as a second electronic device that establishes a Wi-Fi hotspot connection with the first electronic device.

[0105] Step 403: Read the connect_index list stored in electronic device A;

[0106] Step 404: determine whether there is a name in name_list that is identical to the name in connect_index. If there is an identical name, obtain the connection information corresponding to the name, and execute the determinations of steps 405 to 408 in sequence; if there is no identical name, execute step 412.

[0107] Step 405: Determine whether the current Wi-Fi connection status is 1, if not, execute step 406; if yes, execute step 414;

[0108] Step 406: Determine whether the Wi-Fi history connection status is 1, if not, execute step 407; if yes, execute step 409;

[0109] Step 407: Determine whether the current Bluetooth connection status is 1, if not, execute step 408; if yes, execute step 410;

[0110] Step 408: Determine whether the Bluetooth history connection status is 1, if not, execute step 412; if yes, execute step 411;

[0111] Step 409: The Wi-Fi device priority is 1;

[0112] Step 410: The Wi-Fi device priority is 2;

[0113] Step 411: The Wi-Fi device priority is 3;

[0114] Step 412: The Wi-Fi device priority is 4;

[0115] Step 413: Sort the discovered Wi-Fi devices according to their priorities, and select the Wi-Fi device with the highest priority;

[0116] Step 414: Electronic device A connects to the Wi-Fi device;

[0117] Step 415: Update the connect_index list.

[0118] Electronic device A is a Wi-Fi demand device. Electronic device A turns on Wi-Fi and is in pairing state. There are a large number of electronic devices to be paired around electronic device A, all of which turn on Wi-Fi and wait for pairing. It is assumed that the Wi-Fi signal strength received by electronic device A from all electronic devices is the same (with little difference), and no Wi-Fi pairing connection has been performed with electronic device A. If there is an electronic device B that is currently connected to electronic device A via Bluetooth. Electronic device B exists in the connect_index list of electronic device A, and the corresponding element value is [electronic device B name, Bluetooth connection status = 1, Bluetooth history connection status = 1, hotspot connection status = 0, hotspot history connection status = 0].

[0119] Therefore Figure 4It can be seen from the process that the Wi-Fi priority of electronic device B is 2, which is higher than the priority 4 of electronic devices outside the connect_index list. The more electronic device A and electronic device B have had a Bluetooth connection, the higher the probability of A and B being socially paired. Electronic device B appears at the top of the Wi-Fi discovery list of electronic device A, making it easier for users to find this device. Furthermore, the Bluetooth icon can be displayed in the Wi-Fi discovery list, prompting the user that this Wi-Fi device is a Bluetooth device that has been connected or is already connected. In this way, the social attributes of the Bluetooth connection are utilized to increase the priority of discovering the Wi-Fi hotspot connection of electronic devices that have been paired with Bluetooth, making it easier for users to find this electronic device for a Wi-Fi hotspot connection.

[0120] To implement the method of the embodiment of the present application, based on the same inventive concept, the embodiment of the present application also provides a wireless communication connection device, which is applied to a first electronic device, such as Figure 5 As shown, the wireless communication connection device 50 includes:

[0121] The wireless communication module 501 is configured to receive a first wireless communication signal; and based on the first wireless communication signal, determine device identifiers of at least two second electronic devices that meet a connection condition;

[0122] The processing module 502 is configured to query a preset connection list based on the device identifier to obtain connection information corresponding to the device identifier, wherein the connection information includes: second connection information of a second wireless communication connection between the first electronic device and the second electronic device; and determine the priority of the at least two second electronic devices based on the connection information;

[0123] The wireless communication module 501 is further configured to determine a target second electronic device and establish a first wireless communication connection based on the priorities of the at least two second electronic devices.

[0124] Exemplarily, in some embodiments, the second connection information includes: a current connection state and a historical connection state of the second wireless communication connection between the first electronic device and the second electronic device;

[0125] Processing module 502 is used to determine that the priority of the second electronic device is a first priority when the current connection state of the second connection information is a connected state; when the current connection state of the second connection information is a disconnected state and the historical connection state of the second connection information is a connected state, determine that the priority of the second electronic device is a second priority; wherein the first priority is higher than the second priority.

[0126] Exemplarily, in some embodiments, the connection information further includes: first connection information of the first wireless communication connection between the first electronic device and the second electronic device, and the first wireless communication connection is different from the second wireless communication connection.

[0127] Exemplarily, in some embodiments, the first connection information includes: a current connection state and a historical connection state of the first wireless communication connection between the first electronic device and the second electronic device;

[0128] Processing module 502, configured to determine that the priority of the second electronic device is a third priority when the current connection state of the first connection information is an unconnected state and the historical connection state of the first connection information is a connected state;

[0129] The processing module 502 is configured to determine, when the current connection state of the first connection information is a connected state, that the first wireless communication connection has been established between the first electronic device and a second electronic device corresponding to the device identifier.

[0130] It should be noted that, when the connection information includes the first connection information and the second connection information, the third priority is higher than the first priority, and the first priority is higher than the second priority.

[0131] Exemplarily, in some embodiments, the processing module 502 is also used to obtain the current connection status between the first electronic device and the target second electronic device; based on the device identification and current connection status of the target second electronic device, update the first connection information corresponding to the device identification of the target second electronic device in the connection list.

[0132] Exemplarily, in some embodiments, the processing module 502 is further used to sort the at least two second electronic devices based on the priorities of the at least two second electronic devices to obtain a recommendation list; and based on the connection information, display in the recommendation list a connection identifier for establishing the second wireless communication connection between the first electronic device and the second electronic device.

[0133] Exemplarily, in some embodiments, the processing module 502 is further configured to query a preset connection list based on the device identifier, and when it is determined that the connection list does not include the connection information corresponding to the device identifier, determine that the priority of the second electronic device is the fourth priority. The fourth priority is lower than the second priority, and the fourth priority is lower than the third priority, that is, the second electronic device not saved in the connection list has the lowest priority.

[0134] Exemplarily, in some embodiments, when the first wireless communication connection is a Bluetooth connection, the second wireless communication connection is a Wi-Fi hotspot connection; when the first wireless communication connection is a Wi-Fi hotspot connection, the second wireless communication connection is a Bluetooth connection.

[0135] Based on the hardware implementation of each unit in the above wireless communication connection device, the embodiment of the present application also provides an electronic device, such as Figure 6 As shown, the electronic device 60 includes: a processor 601 and a memory 602 configured to store a computer program that can be run on the processor;

[0136] The processor 601 is configured to execute the method steps in the aforementioned embodiment when running a computer program.

[0137] Of course, in practical applications, Figure 6 As shown, the various components in the electronic device 60 are coupled together through a bus system 603. It can be understood that the bus system 603 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 603 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, various buses are marked as bus system 603 in the figure.

[0138] In practical applications, the processor may be at least one of an application-specific integrated circuit (ASIC), a digital signal processing device (DSPD), a programmable logic device (PLD), a field-programmable gate array (FPGA), a controller, a microcontroller, and a microprocessor. It is understandable that for different devices, the electronic device used to implement the functions of the processor may also be other, and the embodiments of the present application do not specifically limit this.

[0139] The above-mentioned memory can be a volatile memory (volatile memory), such as a random access memory (RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory (ROM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD); or a combination of the above-mentioned types of memory, and provide instructions and data to the processor.

[0140] In practical applications, the wireless communication connection device can be an electronic device or a chip used in an electronic device. In the present application, the device can implement the functions of multiple units by software, hardware, or a combination of software and hardware, so that the device can execute the wireless communication connection method provided in any of the above embodiments. The technical effects of each technical solution of the device can refer to the technical effects of the corresponding technical solution in the wireless communication connection method, and this application will not elaborate on this one by one.

[0141] In an exemplary embodiment, the embodiment of the present application further provides a computer-readable storage medium, such as a memory including a computer program, and the computer program can be executed by a processor of an electronic device to complete the steps of the aforementioned method.

[0142] An embodiment of the present application also provides a computer program product, including computer program instructions.

[0143] Optionally, the computer program product can be applied to the electronic device in the embodiments of the present application, and the computer program instructions enable the computer to execute the corresponding processes implemented by the electronic device in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.

[0144] The embodiment of the present application also provides a computer program.

[0145] Optionally, the computer program can be applied to the electronic device in the embodiments of the present application. When the computer program runs on a computer, the computer executes the corresponding processes implemented by the electronic device in the various methods of the embodiments of the present application. For the sake of brevity, they are not described here.

[0146] It should be understood that the terms used in the present application are only for the purpose of describing specific embodiments, but are not intended to limit the present application. The singular forms of "a", "said" and "the" used in the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this article refers to and includes any or all possible combinations of one or more associated listed items. The expressions "having", "may have", "include" and "include", or "may include" and "may include" in this application can be used to indicate the presence of corresponding features (e.g., elements such as numerical values, functions, operations or components), but the presence of additional features is not excluded.

[0147] It should be understood that although the terms first, second, third, etc. may be used in this application to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other and are not necessarily used to describe a specific order or sequence. For example, without departing from the scope of the present invention, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information.

[0148] The technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.

[0149] In the several embodiments provided in the present application, it should be understood that the disclosed methods, devices and equipment can be implemented in other ways. The embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0150] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment.

[0151] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0152] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. A wireless communication connection method, applied to a first electronic device, It is characterized in that The method comprises: receiving a first wireless communication signal; Based on the first wireless communication signal, determining at least two second electronic devices that meet the connection condition, and obtaining device identifications of the at least two second electronic devices; querying a preset connection list based on the device identifier to obtain connection information corresponding to the device identifier, wherein the connection information includes: second connection information of a second wireless communication connection between the first electronic device and the second electronic device; the second connection information includes: a current connection state and a historical connection state of the second wireless communication connection between the first electronic device and the second electronic device; the first wireless communication connection and the second wireless communication connection are different; Determining priorities of the at least two second electronic devices based on the connection information; Based on the priorities of the at least two second electronic devices, a target second electronic device is determined and a first wireless communication connection is established.

2. The method according to claim 1, It is characterized in that The determining, based on the connection information, the priorities of the at least two second electronic devices includes: When the current connection state of the second connection information is a connection state, determining that the priority of the second electronic device is a first priority; When the current connection state of the second connection information is a disconnected state and the historical connection state of the second connection information is a connected state, determining the priority of the second electronic device to be a second priority; The first priority is higher than the second priority.

3. The method according to claim 1, It is characterized in that The connection information further includes: first connection information of the first wireless communication connection between the first electronic device and the second electronic device.

4. The method according to claim 3, It is characterized in that The first connection information includes: a current connection state and a historical connection state of the first wireless communication connection between the first electronic device and the second electronic device; The determining, based on the connection information, the priorities of the at least two second electronic devices includes: When the current connection state of the first connection information is a disconnected state and the historical connection state of the first connection information is a connected state, determining the priority of the second electronic device to be a third priority; The method further includes: when the current connection state of the first connection information is a connection state, determining that the first wireless communication connection has been established between the first electronic device and a second electronic device corresponding to the device identifier.

5. The method according to claim 4, It is characterized in that After determining the target second electronic device based on the priorities of the at least two second electronic devices and establishing the first wireless communication connection, the method further includes: Acquire a current connection state between the first electronic device and the target second electronic device; Based on the device identification and the current connection status of the target second electronic device, the first connection information corresponding to the device identification of the target second electronic device in the connection list is updated.

6. The method according to claim 1, It is characterized in that After determining the priorities of the at least two second electronic devices based on the connection information, the method further includes: sorting the at least two second electronic devices based on the priorities of the at least two second electronic devices to obtain a recommendation list; Based on the connection information, a connection identifier for establishing the second wireless communication connection between the first electronic device and the second electronic device is displayed in the recommendation list.

7. The method according to any one of claims 1 to 6, It is characterized in that The method further comprises: When a preset connection list is queried based on the device identification and it is determined that the connection list does not include the connection information corresponding to the device identification, the priority of the second electronic device is determined to be the fourth priority.

8. A wireless communication connection device, applied to a first electronic device, It is characterized in that The wireless communication connection device comprises: A wireless communication module, configured to receive a first wireless communication signal; and based on the first wireless communication signal, determine device identifications of at least two second electronic devices that meet a connection condition; a processing module, configured to query a preset connection list based on the device identification, and obtain connection information corresponding to the device identification, wherein the connection information includes: second connection information of a second wireless communication connection between the first electronic device and the second electronic device; the second connection information includes: a current connection state and a historical connection state of the second wireless communication connection between the first electronic device and the second electronic device; the first wireless communication connection and the second wireless communication connection are different; and based on the connection information, determining the priority of the at least two second electronic devices; The wireless communication module is further used to determine the target second electronic device and establish a first wireless communication connection based on the priorities of the at least two second electronic devices.

9. An electronic device, It is characterized in that The electronic device comprises: a processor and a memory configured to store a computer program capable of running on the processor, Wherein, the processor is configured to execute the steps of the method according to any one of claims 1 to 7 when running the computer program.

10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.