Hotspot creation method and device, hotspot connection method and device, electronic equipment, medium and computer program product
By scanning the QR code to obtain the working frequency band information supported by the target device, and directly create or connect to WiFi hotspots, solving the problems of long connection time and poor performance caused by multiple connections in the prior art, and improving the efficiency and stability of the connection.
Patent Information
- Application Number
- CN202411152349.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-12-10
AI Technical Summary
The prior art requires multiple connection processes when establishing hotspot connections, resulting in a long connection time, which in turn affects performance.
By scanning the target QR code, information on whether the second electronic device supports the first working frequency band, if supported, create or connect the first WiFi hotspot to simplify the connection process.
Reduces the steps of connection establishment, shortens the connection link, and improves the performance and stability of connection establishment.
Smart Images

Figure CN119110374A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to a hotspot creation, connection method, device, electronic device, medium and computer program product. Background Art
[0002] Currently, when the distance between two electronic devices is short, the two electronic devices can establish a Bluetooth connection or a hotspot connection to perform data transmission.
[0003] Taking establishing a hotspot connection as an example, usually, an electronic device can create a wireless fidelity (WiFi) hotspot with a working frequency band of 2.4G and generate a QR code, and then another electronic device scans the code to identify the hotspot information in the QR code of the electronic device and connect; after the connection is successful, through the exchange of device information, if the two electronic devices determine that both support 5G WiFi hotspot, the two electronic devices disconnect the existing connection and re-establish the 5G WiFi hotspot connection to obtain a faster data transmission rate.
[0004] However, during the above connection process, the electronic device needs to perform two connection processes to complete the negotiation of the hotspot connection working frequency and establish a hotspot connection of a certain working frequency, which results in a longer connection time and may lead to poor performance of the connection process. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a hotspot creation, connection method, device, electronic device, medium and computer program product, which can improve the performance of the electronic device connection process.
[0006] In a first aspect, an embodiment of the present application provides a hotspot creation method, which is applied to a first electronic device, the method comprising: scanning a target QR code, the target QR code comprising first indication information, the first indication information being used to indicate whether a second electronic device supports a first working frequency band; when the first indication information indicates that the second electronic device supports the first working frequency band and the first electronic device supports the first working frequency band, creating a first WiFi hotspot, the working frequency band of the first WiFi hotspot being the first working frequency band.
[0007] In a second aspect, an embodiment of the present application provides a hotspot connection method, which is applied to a second electronic device. The method includes: displaying a target QR code, the target QR code includes first indication information, and the first indication information is used to indicate whether the second electronic device supports a first working frequency band; when a first WiFi hotspot is scanned and the second electronic device supports the first working frequency band, connecting to the first WiFi hotspot, and the working frequency band of the first WiFi hotspot is the first working frequency band.
[0008] In a third aspect, an embodiment of the present application provides a hotspot creation device, which includes: a scanning module and a processing module; the scanning module is used to scan a target QR code, the target QR code includes first indication information, and the first indication information is used to indicate whether the second electronic device supports the first working frequency band; the processing module is used to create a first WiFi hotspot when the first indication information indicates that the second electronic device supports the first working frequency band and the first electronic device supports the first working frequency band, and the working frequency band of the first WiFi hotspot is the first working frequency band.
[0009] In a fourth aspect, an embodiment of the present application provides a hotspot connection device, which includes: a display module and a processing module; the display module is used to display a target QR code, the target QR code includes first indication information, and the first indication information is used to indicate whether the second electronic device supports a first working frequency band; the processing module is used to connect to the first WiFi hotspot when the first WiFi hotspot is scanned and the second electronic device supports the first working frequency band, and the working frequency band of the first WiFi hotspot is the first working frequency band.
[0010] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect or the second aspect are implemented.
[0011] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect or the second aspect are implemented.
[0012] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect or the second aspect.
[0013] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect or the second aspect.
[0014] In an embodiment of the present application, the first electronic device scans a target two-dimensional code, and the target two-dimensional code includes first indication information, and the first indication information is used to indicate whether the second electronic device supports the first working frequency band; when the first indication information indicates that the second electronic device supports the first working frequency band and the first electronic device supports the first working frequency band, a first WiFi hotspot is created, and the working frequency band of the first WiFi hotspot is the first working frequency band. Through this scheme, since the first electronic device can directly obtain information on whether the second electronic device supports the first working frequency band by scanning the target two-dimensional code, it is not necessary to first establish a connection between the first electronic device and the second electronic device, and then obtain information on whether the second electronic device supports the first working frequency band. Therefore, when the second electronic device supports the first working frequency band and the first electronic device supports the first working frequency band, the negotiation of whether a WiFi hotspot with a working frequency band of the first working frequency band can be completed only by scanning the target two-dimensional code, without having to establish connections multiple times to complete the negotiation of whether a WiFi hotspot with a working frequency band of the first working frequency band can be created. In this way, the steps of establishing a connection between the first electronic device and the second electronic device are reduced, the link for establishing a connection between the first electronic device and the second electronic device is shortened, and the performance and stability of the connection establishment process are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 This is one of the flow charts of a hotspot creation method provided in an embodiment of the present application;
[0016] Figure 2 This is the second flowchart of a hotspot creation method provided in an embodiment of the present application;
[0017] Figure 3 It is a schematic diagram of an interface for displaying a target QR code provided in an embodiment of the present application;
[0018] Figure 4 This is one of the flow charts of a hotspot connection method provided in an embodiment of the present application;
[0019] Figure 5 This is the second flowchart of a hotspot connection method provided in an embodiment of the present application;
[0020] Figure 6 This is the third flowchart of a hotspot connection method provided in an embodiment of the present application;
[0021] Figure 7 It is a structural schematic diagram of a hotspot creation device provided in an embodiment of the present application;
[0022] Figure 8 It is a structural schematic diagram of a hotspot connection device provided in an embodiment of the present application;
[0023] Fig. 9This is one of the hardware structure diagrams of an electronic device provided in an embodiment of the present application;
[0024] Fig.10 This is the second schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0026] The terms "first", "second", etc. in the specification of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0027] The terms "at least one (item)", "at least one of" and the like in the specification of the present application refer to any one, any two or a combination of more than two of the objects contained therein. For example, at least one (item) of a, b, and c can be represented by: "a", "b", "c", "a and b", "a and c", "b and c" and "a, b and c", where a, b, and c can be single or multiple. Similarly, "at least two (items)" refers to two or more, and its meaning is similar to that of "at least one (item)". The logo in the present application is text, symbol, image, etc. used to indicate information, and logos or other containers can be used as carriers for displaying information, including but not limited to text logos, image logos, symbol logos, etc.
[0028] The following, in conjunction with the accompanying drawings, describes in detail the hotspot creation, connection method, device, electronic device, medium and computer program product provided in the embodiments of the present application through specific embodiments and their application scenarios.
[0029] The hotspot creation and connection methods, devices, electronic devices, media and computer program products provided in the embodiments of the present application can be applicable to scenarios where two or more electronic devices perform data transmission, especially scenarios where two or more electronic devices perform data transmission in close proximity via wireless connection methods such as WiFi hotspots, Bluetooth, and ultra-wideband (Ultra Wide Band, UWB).
[0030] It is understandable that in order to obtain a faster data transmission rate, after two or more electronic devices have established a Bluetooth, UWB or WiFi hotspot connection with a working frequency band of 2.4G, they can exchange data. If it is determined that the two or more electronic devices both support the WiFi hotspot with a working frequency band of 5G, they can disconnect the currently established connection and re-establish the WiFi hotspot connection with a working frequency band of 5G.
[0031] In the hotspot creation and connection method, device, electronic device, medium and computer program product provided by the embodiments of the present application, since the first electronic device can directly obtain information on whether the second electronic device supports the first working frequency band by scanning the target two-dimensional code, there is no need to first establish a connection between the first electronic device and the second electronic device, and then obtain information on whether the second electronic device supports the first working frequency band. Therefore, in the case where the second electronic device supports the first working frequency band and the first electronic device supports the first working frequency band, the negotiation on whether a WiFi hotspot with a working frequency band of the first working frequency band can be completed only by scanning the target two-dimensional code, without having to establish connections multiple times to complete the negotiation on whether a WiFi hotspot with a working frequency band of the first working frequency band can be created. In this way, the steps for establishing a connection between the first electronic device and the second electronic device are reduced, the link for establishing a connection between the first electronic device and the second electronic device is shortened, and the performance and stability of the connection establishment process are improved.
[0032] The execution subject of the hotspot creation method provided in the embodiment of the present application may be a hotspot creation device, and the execution subject of the hotspot connection method provided in the embodiment of the present application may be a hotspot connection device. Exemplarily, the hotspot creation device or the hotspot connection device may be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The hotspot creation method or the hotspot connection method provided in the embodiment of the present application will be exemplarily described below using an electronic device as an example.
[0033] The present application embodiment provides a hotspot creation method. Figure 1 A flowchart of a hotspot creation method provided by an embodiment of the present application is shown, and the method can be applied to a first electronic device. Figure 1 As shown, the hotspot creation method provided in the embodiment of the present application may include the following steps 101 and 102.
[0034] Step 101: A first electronic device scans a target QR code.
[0035] The target two-dimensional code may include first indication information, and the first indication information is used to indicate whether the second electronic device supports the first working frequency band.
[0036] In some embodiments of the present application, the first electronic device and the second electronic device may be two electronic devices that need to establish a connection.
[0037] In some embodiments of the present application, the first electronic device may include but is not limited to: a mobile phone, a computer, and a wearable smart device.
[0038] In some embodiments of the present application, the second electronic device may include but is not limited to: a mobile phone, a computer, and a wearable smart device.
[0039] Exemplarily, the first electronic device may be a mobile phone, and the second electronic device may also be a mobile phone.
[0040] Exemplarily, the first electronic device may be a tablet computer, and the second electronic device may be a smart watch.
[0041] It is understandable that, when the first electronic device and the second electronic device need to establish a connection, the first electronic device can scan the target QR code to obtain relevant information of the second electronic device, thereby successfully establishing a connection with the second electronic device.
[0042] Exemplarily, the user of the first electronic device may manually trigger the first electronic device to scan the target QR code to establish a connection between the first electronic device and the second electronic device.
[0043] In some embodiments of the present application, the target QR code may be a QR code displayed by the second electronic device, so that the first electronic device can establish a WiFi hotspot connection with the second electronic device after scanning the target QR code.
[0044] In some embodiments of the present application, the target QR code may also be a QR code stored locally on the first electronic device, so that after the user of the first electronic device selects the target QR code for scanning, the first electronic device may establish a WiFi hotspot connection with the second electronic device.
[0045] In some embodiments of the present application, the above-mentioned target QR code can also be a QR code sent by other devices to the first electronic device, so that the first electronic device can scan the target QR code after receiving the target QR code and establish a WiFi hotspot connection with the second electronic device.
[0046] In some embodiments of the present application, the other device may be a second electronic device, or may be another device other than the first electronic device and the second electronic device storing the target QR code, or may be another device other than the first electronic device and the second electronic device storing the indication information of whether the second electronic device supports the first working frequency band. The embodiments of the present application are not specifically limited.
[0047] In some embodiments of the present application, the first working frequency band may be another working frequency band except a default working frequency band of a WiFi hotspot connection established between the first electronic device and the second electronic device.
[0048] Exemplarily, assuming that the default operating frequency band of the first electronic device and the second electronic device is 2.4G, the first operating frequency band may be a 5G operating frequency band.
[0049] Exemplarily, assuming that the default operating frequency band of the first electronic device and the second electronic device is 2.4G, the first operating frequency band may also be a 6G operating frequency band.
[0050] It is understandable that, under normal circumstances, the electronic device assumes that the other electronic device with which the WiFi hotspot connection is to be established supports the WiFi hotspot with a working frequency band of 2.4G, and it is necessary to exchange device capability information after establishing a connection with the other electronic device to determine whether the other electronic device supports the WiFi hotspot with a working frequency band of 5G or higher. Therefore, in the embodiment of the present application, the first electronic device can directly obtain the indication information of whether the second electronic device supports the first working frequency band by scanning the target QR code, thereby reducing the steps required to establish a connection.
[0051] Step 102: When the first indication information indicates that the second electronic device supports the first working frequency band and the first electronic device supports the first working frequency band, the first electronic device creates a first WiFi hotspot.
[0052] Among them, the working frequency band of the above-mentioned first WiFi hotspot is the first working frequency band.
[0053] In some embodiments of the present application, the above-mentioned first indication information indicating that the second electronic device supports the first working frequency band can be understood as: the second electronic device supports establishing a WiFi hotspot connection with the working frequency band being the first working frequency band; the above-mentioned first indication information indicating that the second electronic device does not support the first working frequency band can be understood as: the second electronic device does not support establishing a WiFi hotspot connection with the working frequency band being the first working frequency band.
[0054] In some embodiments of the present application, when the first indication information indicates that the second electronic device supports the first working frequency band and the first electronic device supports the first working frequency band, the first electronic device can determine that a WiFi hotspot with the working frequency band of the first working frequency band can be established between the first electronic device and the second electronic device. In this way, the first electronic device can create a first WiFi hotspot with the working frequency band of the first working frequency band.
[0055] The hotspot creation method provided in the embodiment of the present application is that the first electronic device can directly obtain information on whether the second electronic device supports the first working frequency band by scanning the target QR code, without first establishing a connection between the first electronic device and the second electronic device, and then obtaining information on whether the second electronic device supports the first working frequency band. Therefore, in the case where the second electronic device supports the first working frequency band and the first electronic device supports the first working frequency band, the negotiation on whether a WiFi hotspot with the working frequency band of the first working frequency band can be completed only by scanning the target QR code, without having to establish connections multiple times to complete the negotiation on whether a WiFi hotspot with the working frequency band of the first working frequency band can be created. In this way, the steps for establishing a connection between the first electronic device and the second electronic device are reduced, the link for establishing a connection between the first electronic device and the second electronic device is shortened, and the performance and stability of the connection establishment process are improved.
[0056] In some embodiments of the present application, Figure 1 ,like Figure 2 As shown, the above step 102 may include the following step 102a.
[0057] Step 102a: When the first indication information indicates that the second electronic device supports the first working frequency band and the first electronic device supports the first working frequency band, the first electronic device creates a first WiFi hotspot according to the first hotspot identifier and the first hotspot password.
[0058] In some embodiments of the present application, the first hotspot identifier may be used to identify the first WiFi hotspot. It is understood that the first hotspot identifier information may be used to indicate the first hotspot identifier.
[0059] In some embodiments of the present application, the first hotspot identifier may be a service set identifier (SSID) of the first WiFi hotspot. It is understandable that the content in the SSID field may be the name of the first WiFi hotspot.
[0060] In some embodiments of the present application, the first hotspot password may be authentication information required when connecting to the first WiFi hotspot. It is understood that the first hotspot password information may be used to indicate the first hotspot password (Password, PSWD).
[0061] It is understandable that when an electronic device connects to a WiFi hotspot, it is usually necessary to enter the correct hotspot password to successfully connect to the corresponding WiFi hotspot to protect the network security of the electronic device, prevent unauthorized access and data leakage, and thus protect the security and stability of the network.
[0062] In some embodiments of the present application, the first hotspot identifier and the first hotspot password may be preset or may be agreed upon by the first electronic device and the second electronic device.
[0063] Exemplarily, the first hotspot identifier and the first hotspot password may be set for the second electronic device, and the first electronic device may obtain the first hotspot identifier and the first hotspot password by scanning the target QR code.
[0064] In some embodiments of the present application, when the first hotspot identifier and the first hotspot password are set for the second electronic device, the target QR code may also include: first hotspot identifier information and first hotspot password information.
[0065] In some embodiments of the present application, after setting the first hotspot identifier and the first hotspot password, the second electronic device may include the first indication information, the first hotspot identifier information and the first hotspot password information in the target QR code.
[0066] For example, the first working frequency band is 5G, the first hotspot identifier is abc, and the first hotspot password is 123. Figure 3 As shown, the second electronic device can display the target QR code 31, which includes the first indication information of supporting the 5G working frequency band, the first hotspot identification information of the first hotspot identification being abc, and the first hotspot password information of the first hotspot password being 123.
[0067] It should be noted that Figure 3 In order to more clearly display the information contained in the target QR code 31, the first indication information, the first hotspot identification information and the first hotspot password information are displayed below the target QR code 31. In actual implementation, only the target QR code 31 can be displayed, and the first electronic device can obtain the corresponding information after scanning the target QR code 31.
[0068] In some embodiments of the present application, after scanning the target QR code, the first electronic device can obtain the corresponding information, thereby creating a first WiFi hotspot with a first working frequency band, whose hotspot identification and hotspot password are known to the second electronic device, and then the second electronic device can directly connect to the first WiFi hotspot without the need for the second electronic device to first create a WiFi hotspot with a lower working frequency band, establish a connection with the first electronic device, and then, when both the first electronic device and the second electronic device support a higher working frequency band, disconnect the current connection and create a WiFi hotspot with a higher working frequency band for connection.
[0069] In some embodiments of the present application, when the first hotspot identifier and the first hotspot password are set for the second electronic device, the first hotspot identifier and the first hotspot password may be set by the user of the second electronic device or may be set by default by the second electronic device. This embodiment of the present application does not specifically limit this.
[0070] In this way, since the first electronic device can create a WiFi hotspot through a preset hotspot identifier and hotspot password, the second electronic device does not need to obtain the hotspot identifier and hotspot password again, and can directly connect to the WiFi hotspot through the preset hotspot identifier and hotspot password, thereby reducing the steps for establishing a connection between the first electronic device and the second electronic device, shortening the link for establishing a connection between the first electronic device and the second electronic device, and improving the performance and stability of the connection establishment process.
[0071] In some embodiments of the present application, after the above step 101, the hotspot creation method provided in the embodiment of the present application may further include the following step 103.
[0072] Step 103: When the target condition is met, the first electronic device creates a second WiFi hotspot.
[0073] The working frequency band of the second WiFi hotspot may be a second working frequency band, and the second working frequency band does not overlap with the first working frequency band.
[0074] In some embodiments of the present application, the first working frequency band may be higher than the second working frequency band. In other words, the data transmission speed corresponding to the first working frequency band is higher than the data transmission speed corresponding to the second working frequency band.
[0075] It can be understood that the second operating frequency band is an operating frequency band supported by both the first electronic device and the second electronic device.
[0076] Exemplarily, the first operating frequency band may be 5G, and the second operating frequency band may be 2.4G which is supported by all electronic devices by default.
[0077] In some embodiments of the present application, the above-mentioned target condition may include at least one of the following: the first indication information indicates that the second electronic device does not support the first working frequency band; the first electronic device does not support the first working frequency band.
[0078] In some embodiments of the present application, the first indication information indicating that the second electronic device does not support the first working frequency band can be understood as: the second electronic device does not support establishing a WiFi hotspot connection with the working frequency band being the first working frequency band.
[0079] In some embodiments of the present application, the above-mentioned first electronic device not supporting the first working frequency band can be understood as: the first electronic device does not support establishing a WiFi hotspot connection with the working frequency band being the first working frequency band.
[0080] It can be understood that, when at least one of the second electronic device and the first electronic device does not support establishing a WiFi hotspot connection with the working frequency band being the first working frequency band, the first electronic device and the second electronic device cannot establish a WiFi hotspot connection with the working frequency band being the first working frequency band. Therefore, the first electronic device can create a first WiFi hotspot whose working frequency band does not overlap with the first working frequency band.
[0081] For example, taking the first working frequency band as 5G and the second working frequency band as 2.4G as an example, the first electronic device can create a second WiFi hotspot with a working frequency band of 2.4G when at least one of the first indication information indicates that the second electronic device does not support 5G and the first electronic device does not support 5G is satisfied.
[0082] In some embodiments of the present application, the first electronic device may create a second WiFi hotspot according to the first hotspot identifier and the first hotspot password, so that the second electronic device may directly connect to the first WiFi hotspot.
[0083] In this way, when the first indication information indicates that the second electronic device does not support the first working frequency band and the first electronic device does not support at least one of the first working frequency band, the first electronic device can directly create a WiFi hotspot in other working frequency bands, thereby completing the establishment of a WiFi hotspot connection between electronic devices at one time, simplifying the steps of establishing a connection between the first electronic device and the second electronic device.
[0084] The present application embodiment provides a hotspot creation method. Figure 4 A flowchart of a hotspot creation method provided by an embodiment of the present application is shown, and the method can be applied to a second electronic device. Figure 4 As shown, the hotspot creation method provided in the embodiment of the present application may include the following steps 201 and 202.
[0085] Step 201: The second electronic device displays a target QR code.
[0086] The target two-dimensional code may include first indication information, and the first indication information is used to indicate whether the second electronic device supports the first working frequency band.
[0087] It is understandable that when the first electronic device and the second electronic device need to establish a connection, the second electronic device can display the target QR code and start WiFi hotspot scanning to promptly scan the WiFi hotspot created by the first electronic device for connection.
[0088] Exemplarily, the user of the second electronic device can manually trigger the second electronic device to display the target QR code and start WiFi hotspot scanning to establish a connection between the second electronic device and the first electronic device.
[0089] It can be understood that, through the target QR code, the second electronic device can transmit the indication information of whether it supports the first working frequency band to the first electronic device that scans the target QR code, so that the first electronic device can directly create a first WiFi hotspot with the first working frequency band as the first working frequency band when the second electronic device supports the first working frequency band.
[0090] In some embodiments of the present application, Figure 4 ,like Figure 5 As shown, the above step 201 may include the following steps 201a and 201b.
[0091] Step 201a: The second electronic device obtains capability information of the second electronic device.
[0092] The capability information of the second electronic device is used to indicate whether the second electronic device supports the first working frequency band.
[0093] In some embodiments of the present application, the second electronic device may obtain capability information of the second electronic device when it is required to establish a connection with other electronic devices.
[0094] In some embodiments of the present application, the second electronic device may directly obtain the capability information of the second electronic device locally, or may obtain the capability information of the second electronic device from other devices. This embodiment of the present application does not specifically limit this.
[0095] Step 201b: When the capability information of the second electronic device indicates that the second electronic device supports the first operating frequency band, the second electronic device displays the target QR code.
[0096] In some embodiments of the present application, when the capability information of the second electronic device indicates that the second electronic device supports the first working frequency band, the second electronic device displays the target QR code and starts scanning for WiFi hotspots.
[0097] In some embodiments of the present application, the above-mentioned enabling of WiFi hotspot scanning can be understood as: the second electronic device listens to the beacon frame and broadcasts a detection request message with an empty SSID, and the second electronic device can obtain one or more WiFi hotspot information according to the intercepted Beacon frame and the received WiFi hotspot response message. In other words, after the second electronic device enables WiFi hotspot scanning, the obtained WiFi hotspot information can be obtained as the scanning result of the WiFi hotspot scanning.
[0098] Step 202: When a first WiFi hotspot is scanned and the second electronic device supports a first working frequency band, the second electronic device is connected to the first WiFi hotspot.
[0099] Among them, the working frequency band of the above-mentioned first WiFi hotspot is the first working frequency band.
[0100] In some embodiments of the present application, after the first electronic device creates a first WiFi hotspot, the second electronic device can scan the first WiFi hotspot. Since the operating frequency band of the first WiFi hotspot is 5G, the second electronic device can connect to the first WiFi hotspot if it supports the first operating frequency band.
[0101] It is understandable that after creating the first WiFi hotspot, the first electronic device can periodically broadcast Beacon frames and fill the identifier of the first WiFi hotspot into the SSID field. During the process of the second electronic device scanning the WiFi hotspot, the second electronic device can broadcast a detection request message with an empty SSID. If the second electronic device receives a detection response message replied by the first electronic device, and the SSID field in the detection response message is filled with the identification information of the first WiFi hotspot. In this way, the second electronic device can obtain the identification information of the first WiFi hotspot through the SSID field, thereby connecting to the first WiFi hotspot.
[0102] In the hotspot connection method provided by the embodiment of the present application, since the first electronic device can obtain the information of the working frequency band supported by the second electronic device by scanning the target QR code, the negotiation of whether the first working frequency band is supported can be completed without establishing a connection between the first electronic device and the second electronic device. In this way, the steps of establishing the connection between the first electronic device and the second electronic device are reduced, the link of establishing the connection between the first electronic device and the second electronic device is shortened, and the performance and stability of the connection establishment process are improved.
[0103] In some embodiments of the present application, Figure 4 ,like Figure 6 As shown, the above step 202 may include the following step 202a.
[0104] Step 202a: When the first WiFi hotspot is scanned and the second electronic device supports the first working frequency band, the second electronic device connects to the first WiFi hotspot according to the first hotspot identifier and the first hotspot password.
[0105] In some embodiments of the present application, the above-mentioned target QR code may also include: first hotspot identification information and first hotspot password information.
[0106] In some embodiments of the present application, when the target QR code further includes the first hotspot identification information and the first hotspot password information, the first electronic device can create the first WiFi hotspot according to the first hotspot identification information indicated by the first hotspot identification information and the first hotspot password indicated by the first hotspot password information. Thus, after scanning the first WiFi hotspot whose hotspot identification is the first hotspot identification, the second electronic device can directly connect to the first WiFi hotspot according to the first hotspot identification and the first hotspot password.
[0107] In some embodiments of the present application, when the first electronic device creates a second WiFi hotspot, the second electronic device may also connect to the second WiFi hotspot according to the first hotspot identifier and the first hotspot password to establish a connection between the first electronic device and the second electronic device.
[0108] It should be noted that, for other descriptions of the above steps 201 to 202, reference may be made to the relevant descriptions of the above steps 101 to 103. To avoid repetition, they will not be described again here.
[0109] In this way, since the first electronic device can directly obtain information on whether the second electronic device supports the first working frequency band by scanning the target QR code, there is no need to first establish a connection between the first electronic device and the second electronic device, and then obtain information on whether the second electronic device supports the first working frequency band. Therefore, when the second electronic device supports the first working frequency band and the first electronic device supports the first working frequency band, the negotiation on whether a WiFi hotspot with a working frequency band of the first working frequency band can be completed only by scanning the target QR code, without having to establish connections multiple times to complete the negotiation on whether a WiFi hotspot with a working frequency band of the first working frequency band can be created. In this way, the steps for establishing a connection between the first electronic device and the second electronic device are reduced, the link for establishing a connection between the first electronic device and the second electronic device is shortened, and the performance and stability of the connection establishment process are improved.
[0110] Each of the above-mentioned method embodiments, or various possible implementation methods in each method embodiment, can be executed separately, or any two or more of them can be executed in combination with each other. The specific implementation method can be determined according to actual usage requirements, and the embodiments of the present application do not limit this.
[0111] The embodiment of the present application provides a hotspot creation and connection method, which can be applied to a first electronic device and a second electronic device. The hotspot creation and connection method provided by the embodiment of the present application can include the following steps 301 to 304.
[0112] Step 301: The second electronic device displays a target QR code.
[0113] The target two-dimensional code includes first indication information, and the first indication information is used to indicate whether the second electronic device supports the first working frequency band.
[0114] Step 302: The first electronic device scans the target QR code.
[0115] Step 303: When the first indication information indicates that the second electronic device supports the first working frequency band and the first electronic device supports the first working frequency band, the first electronic device creates a first WiFi hotspot.
[0116] Among them, the working frequency band of the above-mentioned first WiFi hotspot is the first working frequency band.
[0117] Step 304: When the first WiFi hotspot is scanned and the second electronic device supports the first working frequency band, connect to the first WiFi hotspot.
[0118] It should be noted that for detailed descriptions of the above steps 301 to 304, reference may be made to the above steps 101 to 103, and the related descriptions in steps 201 and 202. To avoid repetition, they will not be described here.
[0119] The hotspot creation and connection method provided in the embodiment of the present application is that the first electronic device can directly obtain information on whether the second electronic device supports the first working frequency band by scanning the target QR code, without first establishing a connection between the first electronic device and the second electronic device, and then obtaining information on whether the second electronic device supports the first working frequency band. Therefore, in the case where the second electronic device supports the first working frequency band and the first electronic device supports the first working frequency band, the negotiation on whether a WiFi hotspot with a working frequency band of the first working frequency band can be completed only by scanning the target QR code, without the need to establish connections multiple times to complete the negotiation on whether a WiFi hotspot with a working frequency band of the first working frequency band can be created. In this way, the steps for establishing a connection between the first electronic device and the second electronic device are reduced, the link for establishing a connection between the first electronic device and the second electronic device is shortened, and the performance and stability of the connection establishment process are improved.
[0120] The following takes the first hotspot identifier as SSID, the first hotspot password as PSWD, the first working frequency band as 5G, and the second working frequency band as 2.4G as an example to exemplify the hotspot creation method and hotspot connection method provided in the embodiment of the present application. The hotspot creation method and hotspot connection method may include the following steps 401 to 404.
[0121] Step 401: The second electronic device displays a target QR code and starts scanning for WiFi hotspots.
[0122] Among them, the target QR code includes preset SSID information, preset PSWD information and indication information of whether the second electronic device supports 5G.
[0123] It is understandable that the second electronic device turns on the WiFi hotspot scan in order to scan the WiFi hotspot corresponding to the preset SSID.
[0124] Step 402: The first electronic device scans and identifies the target QR code, and saves the preset SSID and the preset PSWD in the target QR code.
[0125] Step 403: When both the first electronic device and the second electronic device support 5G, the first electronic device creates a 5G hotspot using a preset SSID and PSWD.
[0126] It is understandable that the first electronic device can also create a 2.4G hotspot using the preset SSID and PSWD when at least one of the first electronic device and the second electronic device does not support 5G.
[0127] Step 404: When the second electronic device scans a WiFi hotspot with a preset SSID, it uses the preset SSID and PSWD to connect.
[0128] In this way, since the first electronic device can directly obtain information on whether the second electronic device supports the first working frequency band by scanning the target QR code, there is no need to first establish a connection between the first electronic device and the second electronic device, and then obtain information on whether the second electronic device supports the first working frequency band. Therefore, when the second electronic device supports the first working frequency band and the first electronic device supports the first working frequency band, the negotiation on whether a WiFi hotspot with a working frequency band of the first working frequency band can be completed only by scanning the target QR code, without having to establish connections multiple times to complete the negotiation on whether a WiFi hotspot with a working frequency band of the first working frequency band can be created. In this way, the steps for establishing a connection between the first electronic device and the second electronic device are reduced, the link for establishing a connection between the first electronic device and the second electronic device is shortened, and the performance and stability of the connection establishment process are improved.
[0129] The hotspot creation method provided in the embodiment of the present application may be executed by a hotspot creation device, and the hotspot connection method provided in the embodiment of the present application may be executed by a hotspot connection device. In the embodiment of the present application, the hotspot creation method performed by a hotspot creation device and the hotspot connection method performed by a hotspot connection device are taken as examples to illustrate the hotspot creation device and the hotspot connection device provided in the embodiment of the present application.
[0130] Figure 7 A possible structural diagram of a hotspot creation device involved in an embodiment of the present application is shown. Figure 7 As shown, the hotspot creating device 70 may include: a scanning module 71 and a processing module 72 .
[0131] Among them, the scanning module 71 is used to scan the target QR code, the target QR code includes first indication information, and the first indication information is used to indicate whether the second electronic device supports the first working frequency band; the processing module 72 is used to create a first WiFi hotspot when the first indication information indicates that the second electronic device supports the first working frequency band and the first electronic device supports the first working frequency band, and the working frequency band of the first WiFi hotspot is the first working frequency band.
[0132] In a possible implementation, the target QR code further includes: first hotspot identification information and first hotspot password information;
[0133] The processing module 72 is specifically configured to create a first WiFi hotspot according to the first hotspot identifier and the first hotspot password.
[0134] In a possible implementation, the processing module 72 is further configured to create a second WiFi hotspot when the target condition is met, and the working frequency band of the second WiFi hotspot is a second working frequency band, and the second working frequency band does not overlap with the first working frequency band;
[0135] The target conditions include at least one of the following:
[0136] The first indication information indicates that the second electronic device does not support the first working frequency band;
[0137] The first electronic device does not support the first operating frequency band.
[0138] The embodiment of the present application provides a hotspot creation device, because the hotspot creation device can directly obtain information whether the second electronic device supports the first working frequency band by scanning a target QR code, without first establishing a connection between the hotspot creation device and the second electronic device, and then obtaining information whether the second electronic device supports the first working frequency band. Therefore, in the case where the second electronic device supports the first working frequency band and the hotspot creation device supports the first working frequency band, the negotiation of whether a WiFi hotspot with a working frequency band of the first working frequency band can be completed only by scanning the target QR code, without having to establish connections multiple times to complete the negotiation of whether a WiFi hotspot with a working frequency band of the first working frequency band can be created. In this way, the steps of establishing a connection between the hotspot creation device and the second electronic device are reduced, the link for establishing a connection between the hotspot creation device and the second electronic device is shortened, and the performance and stability of the connection establishment process are improved.
[0139] Figure 8 A possible structural diagram of a hotspot connection device involved in an embodiment of the present application is shown. Figure 8 As shown, the hotspot connection device 80 may include: a display module 81 and a processing module 82 .
[0140] Among them, the display module 81 is used to display the target QR code, the target QR code includes first indication information, and the first indication information is used to indicate whether the second electronic device supports the first working frequency band; the processing module 82 is used to connect to the first WiFi hotspot when the first WiFi hotspot is scanned and the second electronic device supports the first working frequency band, and the working frequency band of the first WiFi hotspot is the first working frequency band.
[0141] In a possible implementation, the display module 81 includes an acquisition submodule and a display submodule; the acquisition submodule is used to acquire capability information of the second electronic device, and the capability information of the second electronic device is used to indicate whether the second electronic device supports the first working frequency band;
[0142] The display submodule is used to display the target two-dimensional code when the capability information of the second electronic device indicates that the second electronic device supports the first working frequency band.
[0143] In a possible implementation, the processing module 82 is specifically configured to connect to the first WiFi hotspot according to the first hotspot identifier and the first hotspot password.
[0144] In a possible implementation, the target QR code further includes: first hotspot identification information and first hotspot password information.
[0145] The embodiment of the present application provides a hotspot connection device, because the first electronic device can directly obtain information whether the hotspot connection device supports the first working frequency band by scanning the target QR code, without first establishing a connection between the first electronic device and the hotspot connection device, and then obtaining information whether the hotspot connection device supports the first working frequency band. Therefore, in the case that the hotspot connection device supports the first working frequency band and the first electronic device supports the first working frequency band, the negotiation of whether a WiFi hotspot with the working frequency band of the first working frequency band can be completed only by scanning the target QR code, without establishing connections multiple times to complete the negotiation of whether a WiFi hotspot with the working frequency band of the first working frequency band can be created. In this way, the steps of establishing the connection between the first electronic device and the hotspot connection device are reduced, the link for establishing the connection between the first electronic device and the hotspot connection device is shortened, and the performance and stability of the connection establishment process are improved.
[0146] The hotspot creation device and the hotspot connection device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a car-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0147] The hotspot creation device and the hotspot connection device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0148] The hotspot creation device provided in the embodiment of the present application can implement the various processes implemented in the above-mentioned hotspot creation method embodiment, and the hotspot connection device provided in the embodiment of the present application can implement the various processes implemented in the above-mentioned hotspot connection method embodiment, achieving the same technical effect. To avoid repetition, it will not be repeated here.
[0149] Alternatively, if Fig. 9 As shown, an embodiment of the present application also provides an electronic device 900, including a processor 901 and a memory 902, wherein the memory 902 stores programs or instructions that can be executed on the processor 901, and when the program or instructions are executed by the processor 901, the various steps of the above-mentioned hotspot creation method and hotspot connection method embodiments are implemented, and the same technical effects can be achieved. To avoid repetition, they will not be described here.
[0150] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0151] Fig.10 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0152] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.
[0153] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.10 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0154] Among them, when the electronic device is a first electronic device, the input unit 1004 is used to scan a target QR code, the target QR code includes first indication information, and the first indication information is used to indicate whether the second electronic device supports the first working frequency band; the processor 1010 is used to create a first WiFi hotspot when the first indication information indicates that the second electronic device supports the first working frequency band and the first electronic device supports the first working frequency band, and the working frequency band of the first WiFi hotspot is the first working frequency band.
[0155] In a possible implementation, the target QR code further includes: first hotspot identification information and first hotspot password information;
[0156] The processor 1010 is specifically configured to create a first WiFi hotspot according to the first hotspot identifier and the first hotspot password.
[0157] In a possible implementation, the processor 1010 is further configured to create a second WiFi hotspot when the target condition is met, where the working frequency band of the second WiFi hotspot is a second working frequency band, and the second working frequency band does not overlap with the first working frequency band;
[0158] The target conditions include at least one of the following:
[0159] The first indication information indicates that the second electronic device does not support the first working frequency band;
[0160] The first electronic device does not support the first operating frequency band.
[0161] The embodiment of the present application provides an electronic device, and since the first electronic device can obtain information about the working frequency band supported by the second electronic device by scanning the target QR code, the negotiation of whether the first working frequency band is supported can be completed without establishing a connection between the first electronic device and the second electronic device. In this way, the steps of establishing a connection between the first electronic device and the second electronic device are reduced, the link for establishing a connection between the first electronic device and the second electronic device is shortened, and the performance and stability of the connection establishment process are improved.
[0162] Among them, when the electronic device is a second electronic device, the display unit 1006 is used to display a target QR code, the target QR code includes first indication information, and the first indication information is used to indicate whether the second electronic device supports the first working frequency band; the processor 1010 is used to connect to the first WiFi hotspot when the radio frequency unit 1001 scans the first WiFi hotspot and the second electronic device supports the first working frequency band, and the working frequency band of the first WiFi hotspot is the first working frequency band.
[0163] In one possible implementation, the display unit 1006 is specifically used to obtain capability information of the second electronic device, where the capability information of the second electronic device is used to indicate whether the second electronic device supports the first operating frequency band; and, when the capability information of the second electronic device indicates that the second electronic device supports the first operating frequency band, display the target QR code.
[0164] In a possible implementation, the processor 1010 is specifically configured to connect to the first WiFi hotspot according to the first hotspot identifier and the first hotspot password.
[0165] In a possible implementation, the target QR code further includes: first hotspot identification information and first hotspot password information.
[0166] The embodiment of the present application provides an electronic device, because the first electronic device can directly obtain information whether the second electronic device supports the first working frequency band by scanning the target two-dimensional code, without first establishing a connection between the first electronic device and the second electronic device, and then obtaining information whether the second electronic device supports the first working frequency band. Therefore, in the case where the second electronic device supports the first working frequency band and the first electronic device supports the first working frequency band, the negotiation of whether a WiFi hotspot with a working frequency band of the first working frequency band can be completed only by scanning the target two-dimensional code, without establishing connections multiple times to complete the negotiation of whether a WiFi hotspot with a working frequency band of the first working frequency band can be created. In this way, the steps of establishing a connection between the first electronic device and the second electronic device are reduced, the link for establishing a connection between the first electronic device and the second electronic device is shortened, and the performance and stability of the connection establishment process are improved.
[0167] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. Optionally, the input unit 1004 may also include an image capture device. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0168] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0169] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1010.
[0170] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned hotspot creation method and hotspot connection method embodiments are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0171] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0172] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned hotspot creation method and hotspot connection method embodiments, and can achieve the same technical effects. To avoid repetition, they will not be repeated here.
[0173] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0174] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned hotspot creation method and hotspot connection method embodiments, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0175] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0176] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0177] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A hotspot creation method, characterized in that: Applied to a first electronic device, the method includes: Scanning a target two-dimensional code, where the target two-dimensional code includes first indication information, where the first indication information is used to indicate whether the second electronic device supports the first working frequency band; When the first indication information indicates that the second electronic device supports the first working frequency band and the first electronic device supports the first working frequency band, a first Wireless Fidelity WiFi hotspot is created, and the working frequency band of the first WiFi hotspot is the first working frequency band.
2. The method according to claim 1, characterized in that: The target two-dimensional code also includes: the first hotspot identification information and the first hotspot password information; The step of creating a first WiFi hotspot includes: Create the first WiFi hotspot according to the first hotspot identifier and the first hotspot password.
3. The method according to claim 1 or 2, characterized in that: The method further comprises: If the target condition is met, create a second WiFi hotspot, where the operating frequency band of the second WiFi hotspot is the second operating frequency band, and the second operating frequency band does not overlap with the first operating frequency band; The target condition includes at least one of the following: The first indication information indicates that the second electronic device does not support the first working frequency band; The first electronic device does not support the first operating frequency band.
4. A hotspot connection method, characterized in that: Applied to a second electronic device, the method includes: Display a target two-dimensional code, where the target two-dimensional code includes first indication information, where the first indication information is used to indicate whether the second electronic device supports a first working frequency band; When the first WiFi hotspot is scanned and the second electronic device supports the first working frequency band, the second electronic device is connected to the first WiFi hotspot, and the working frequency band of the first WiFi hotspot is the first working frequency band.
5. The method according to claim 4, characterized in that The display target two-dimensional code includes: Acquire capability information of the second electronic device, where the capability information of the second electronic device is used to indicate whether the second electronic device supports the first working frequency band; When the capability information of the second electronic device indicates that the second electronic device supports the first operating frequency band, the target two-dimensional code is displayed.
6. The method according to claim 4 or 5, characterized in that: The target two-dimensional code also includes: the first hotspot identification information and the first hotspot password information; The connecting to the first WiFi hotspot comprises: Connect to the first WiFi hotspot according to the first hotspot identifier and the first hotspot password.
7. A hotspot creation device, characterized in that: Applied to a first electronic device, the device comprises: a scanning module and a processing module; The scanning module is used to scan a target two-dimensional code, where the target two-dimensional code includes first indication information, where the first indication information is used to indicate whether the second electronic device supports the first working frequency band; The processing module is used to create a first WiFi hotspot when the first indication information indicates that the second electronic device supports the first working frequency band and the first electronic device supports the first working frequency band, and the working frequency band of the first WiFi hotspot is the first working frequency band.
8. The device according to claim 7, characterized in that The target two-dimensional code also includes: the first hotspot identification information and the first hotspot password information; The processing module is specifically configured to create the first WiFi hotspot according to the first hotspot identifier and the first hotspot password.
9. The device according to claim 7 or 8, wherein the processing module is further configured to create a second WiFi hotspot when the target condition is met, wherein the operating frequency band of the second WiFi hotspot is the second operating frequency band, and the second operating frequency band does not overlap with the first operating frequency channel; in, The target condition includes at least one of the following: The first indication information indicates that the second electronic device does not support the first working frequency band; The first electronic device does not support the first operating frequency band.
10. A hotspot connection device, characterized in that: Applied to a second electronic device, the device comprises: a display module and a processing module; The display module is used to display a target two-dimensional code, where the target two-dimensional code includes first indication information, where the first indication information is used to indicate whether the second electronic device supports a first working frequency band; The processing module is used to connect to the first WiFi hotspot when the first WiFi hotspot is scanned and the second electronic device supports the first working frequency band, and the working frequency band of the first WiFi hotspot is the first working frequency band.
11. The device according to claim 10, characterized in that The display module includes an acquisition submodule and a display submodule; The acquisition submodule is used to acquire capability information of the second electronic device, where the capability information of the second electronic device is used to indicate whether the second electronic device supports the first working frequency band; The display submodule is configured to display the target two-dimensional code when the capability information of the second electronic device indicates that the second electronic device supports the first operating frequency band.
12. The device according to claim 10 or 11, characterized in that The target two-dimensional code also includes: the first hotspot identification information and the first hotspot password information; The processing module is specifically configured to connect to the first WiFi hotspot according to the first hotspot identifier and the first hotspot password.
13. An electronic device, characterized in that: It includes a processor and a memory, the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, it implements the hotspot creation method as described in any one of claims 1 to 3, or implements the steps of the hotspot connection method as described in any one of claims 4 to 6.
14. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, it implements the hotspot creation method as described in any one of claims 1 to 3, or implements the steps of the hotspot connection method as described in any one of claims 4 to 6.
