Network connection method, device, equipment and medium

When the electronic device connects to the wireless access access point, it determines a better wireless access access point based on the signal strength request and the receiving channel information, and solves the problems of network abnormalities caused by channel scanning and slow Internet access speed in the prior art, and achieves a more efficient network connection.

CN113676987BActive Publication Date: 2025-04-29VIVO MOBILE COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110918767.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-11
Publication Date
2025-04-29
Estimated Expiration
2041-08-11

AI Technical Summary

Technical Problem

In the prior art, when electronic devices connect to wireless access access points, it is necessary to scan all channels, resulting in network abnormalities and slow Internet access.

Method used

When the signal strength transmitted with the connected wireless access access point is lower than a threshold, the request channel information is sent to the wireless access access point, the response channel information is received, and a better wireless access access point is determined and connected based on the information to realize networking.

Benefits of technology

By reducing the number and range of channel scans, the time for network abnormalities and slow Internet access is shortened, and the efficiency of network connection is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113676987B_ABST
    Figure CN113676987B_ABST
Patent Text Reader

Abstract

The present application discloses a network connection method, device, equipment and medium, belonging to the field of communication technology. The network connection method applied to a first electronic device includes: when the signal strength of a first wireless signal is less than a first signal strength threshold, sending first information to a first wireless access point, wherein the first wireless signal is a signal sent by the first wireless access point received by the first electronic device, the first wireless access point is a wireless access point connected to the first electronic device, and the first information is used to request first channel information that meets a first condition; receiving the first channel information sent by the first wireless access point in response to the first information; determining a second wireless access point based on the first channel information; connecting to the second wireless access point, and connecting to the network through the second wireless access point.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to a network connection method, device, equipment and medium. Background Art

[0002] With the rapid popularization of electronic devices, Wi-Fi modules, as an indispensable module in electronic devices, are an important channel for electronic devices to interact with Internet data.

[0003] When an electronic device detects that the received signal strength indication (RSSI) value of the wireless access point (AP) to which it is connected is lower than a preset threshold, it triggers a channel scan. After scanning all channels corresponding to the wireless access frequency band, the number of available APs in the current Wi-Fi environment can be determined, and then the network can be connected through APs with higher quality.

[0004] However, during the above process, the electronic device needs to scan all channels, which may cause long-term network anomalies or slow Internet access speeds. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a network connection method, device, equipment and medium, which can solve the problems of network anomalies and long-term slow Internet access speed.

[0006] In a first aspect, an embodiment of the present application provides a network connection method, which is applied to a first electronic device, including:

[0007] When the signal strength of the first wireless signal is less than the first signal strength threshold, sending first information to the first wireless access point, wherein the first wireless signal is a signal sent by the first wireless access point and received by the first electronic device, the first wireless access point is a wireless access point to which the first electronic device is connected, and the first information is used to request channel information that meets the first condition;

[0008] receiving first channel information sent by the first wireless access point in response to the first information;

[0009] Determining a second wireless access point according to the first channel information;

[0010] Connect to a second wireless access point and access the Internet through the second wireless access point.

[0011] In a second aspect, an embodiment of the present application provides a network connection device, applied to a first electronic device, including:

[0012] a sending module, configured to send first information to a first wireless access point when the signal strength of the first wireless signal is less than a first signal strength threshold, wherein the first wireless signal is a signal sent by the first wireless access point and received by the first electronic device, the first wireless access point is a wireless access point to which the first electronic device is connected, and the first information is used to request first channel information that meets a first condition;

[0013] A receiving module, configured to receive first channel information sent by the first wireless access point in response to the first information;

[0014] A determination module, configured to determine a second wireless access point according to the first channel information;

[0015] The connection module is used to connect to the second wireless access point and connect to the network through the second wireless access point.

[0016] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.

[0017] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0018] 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 steps of the method described in the first aspect.

[0019] In an embodiment of the present application, when the signal strength of the first wireless signal sent by the first wireless access point connected to the first electronic device is less than the first signal strength threshold, the first electronic device sends a first message for requesting the first channel information that satisfies the first condition to the first wireless access point, receives the first channel information sent by the first wireless access point in response to the first message, and then determines the second wireless access point based on the first channel information, connects to the second wireless access point, and connects to the Internet through the second wireless access point. It is not necessary to scan all channels corresponding to the wireless access frequency band, and the wireless access point to be connected can be determined based on the channel corresponding to the first channel information that satisfies the first condition. Since the number of channels corresponding to the first channel information that satisfies the first condition is less than the total number of all channels corresponding to the wireless access frequency band, the channel scanning time can be reduced, thereby shortening the time of network abnormality and slow Internet access speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 is a flowchart of a network connection method applied to a first electronic device provided in an embodiment of the present application;

[0021] Figure 2 It is a schematic diagram of the format of the information element corresponding to the channel query frame provided in an embodiment of the present application;

[0022] Figure 3 It is a schematic diagram of the format of the information element corresponding to the channel response frame provided in an embodiment of the present application;

[0023] Figure 4 is a schematic diagram of the structure of a network connection device applied to a first electronic device provided in an embodiment of the present application;

[0024] Figure 5 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0025] Figure 6 It is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application. DETAILED DESCRIPTION

[0026] 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.

[0027] The terms "first", "second", etc. in the specification and claims 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 data 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 and claims 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.

[0028] The network connection method, device, equipment and medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0029] Figure 1 1 is a flow chart of a network connection method applied to a first electronic device provided in an embodiment of the present application. The network connection method applied to the first electronic device may include:

[0030] S101: When the signal strength of a first wireless signal is less than a first signal strength threshold, send first information to a first wireless access point, wherein the first wireless signal is a signal sent by the first wireless access point and received by the first electronic device, the first wireless access point is a wireless access point to which the first electronic device is connected, and the first information is used to request first channel information that meets a first condition;

[0031] S102: receiving first channel information sent by a first wireless access point in response to first information;

[0032] S103: Determine a second wireless access point according to the first channel information;

[0033] S104: Connect to a second wireless access point and connect to the Internet through the second wireless access point.

[0034] The specific implementation of the above steps will be described in detail below.

[0035] In an embodiment of the present application, when the signal strength of the first wireless signal sent by the first wireless access point connected to the first electronic device is less than the first signal strength threshold, the first electronic device sends a first message for requesting the first channel information that satisfies the first condition to the first wireless access point, receives the first channel information sent by the first wireless access point in response to the first message, and then determines the second wireless access point based on the first channel information, connects to the second wireless access point, and connects to the Internet through the second wireless access point. It is not necessary to scan all channels corresponding to the wireless access frequency band, and the wireless access point to be connected can be determined based on the channel corresponding to the first channel information that satisfies the first condition. Since the number of channels corresponding to the first channel information that satisfies the first condition is less than the total number of all channels corresponding to the wireless access frequency band, the channel scanning time can be reduced, thereby shortening the time of network abnormality and slow Internet access speed.

[0036] Exemplarily, wireless access frequency bands generally include 2.4 GHz band and 5 GHz band, wherein the 2.4 GHz band includes 14 channels, and the number of channels available for wireless Wi-Fi in the 5 GHz band varies in different countries, including 13 in China, 9 in the United States, and 4 in Japan.

[0037] There are three wireless access points in a public Wi-Fi network, namely, wireless access point A, wireless access point B, and wireless access point C. The first electronic device is currently connected to wireless access point B. When the first electronic device detects that the signal strength of the wireless signal sent to it by wireless access point B is less than a first signal strength threshold, the first electronic device sends first information for requesting first channel information that satisfies a first condition to wireless access point B; in response to the first information, wireless access point B sends first channel information to the first electronic device, wherein the number of channels corresponding to the first channel information sent by wireless access point B is less than the total number of all channels corresponding to the wireless access frequency band; after receiving the first channel information, the first electronic device determines a second wireless access point, and assuming that the determined second wireless access point is wireless access point C, connects to wireless access point C and connects to the network through wireless access point C.

[0038] In some possible implementations of the embodiments of the present application, the first electronic device first joins a channel in the channels corresponding to the first channel information and sends a probe (Probe request) frame. After the minimum channel time (MinChannelTime) has passed, if no probe response (Probe response) is received, it is considered that there is no wireless access point on the channel, and the next channel in the channel corresponding to the first channel information is scanned. Otherwise, the first electronic device continues to wait and receives the probe response returned by the wireless access point on this channel until the waiting time reaches the maximum channel time (MaxChannelTime), and then starts to scan the next channel in the channel corresponding to the first channel information. After scanning all channels corresponding to the first channel information, the number of available wireless access points corresponding to the channel corresponding to the first channel information can be calculated, and then a wireless access point with higher quality is selected.

[0039] In some possible implementations of the embodiments of the present application, the wireless access points in the public Wi-Fi network are managed and controlled by an access controller (AC), and the access controller can obtain the installation location of each wireless access point it manages, and then obtain the corresponding relationship between the installation location of each wireless access point and its basic service set identifier (BSSID). When the channel of a wireless access point changes, the wireless access point sends its changed channel information to the access controller, and at this time, the access controller can obtain the corresponding relationship between the channel information of the wireless access point and its BSSID. The access controller synchronizes the corresponding relationship between the installation location of each wireless access point and the BSSID and the corresponding relationship between the channel information of each wireless access point and the BSSID to each wireless access point it manages, and at this time, each wireless access point can obtain the corresponding relationship between the installation location of each wireless access point and the BSSID and the corresponding relationship between the channel information of each wireless access point and the BSSID. Among them, BSSID usually refers to the network card address of the wireless access point, which is used to identify the wireless access point.

[0040] When the first electronic device detects that the signal strength of the signal sent to it by the first wireless access point connected to it is less than the first signal strength threshold, the first electronic device sends the first information for requesting the first channel information that satisfies the first condition to the first wireless access point; after receiving the first information, the first wireless access point determines the distance between each wireless access point and the first wireless access point according to the installation position of the wireless access point, and then determines the wireless access point whose distance to the first wireless access point is less than the first distance threshold as the wireless access point to be accessed by the first electronic device, and then determines the channel information of the channel to which the wireless access point to be accessed by the first electronic device is located according to the corresponding relationship between the installation position of the wireless access point and the BSSID and the corresponding relationship between the channel information of the wireless access point and the BSSID.

[0041] Based on the above, the first channel information satisfying the first condition in S101 includes: channel information of a channel where a third wireless access point is located, wherein the third wireless access point is a wireless access point whose distance from the first electronic device is less than a first distance threshold.

[0042] In some possible implementations of the embodiments of the present application, S103 may include: determining a wireless access point that satisfies a second condition among the wireless access access points corresponding to the first channel information as a second wireless access access point, wherein the wireless access access point that satisfies the second condition is a wireless access access point that provides a wireless signal with the strongest signal strength to the first electronic device.

[0043] Exemplarily, there are 5 wireless access points in a public Wi-Fi network, and the 5 wireless access points are wireless access point A, wireless access point B, wireless access point C, wireless access point D, and wireless access point E. The first electronic device is currently connected to wireless access point B. When the first electronic device detects that the signal strength of the wireless signal sent to it by wireless access point B is less than a first signal strength threshold, the first electronic device sends first information for requesting channel information that meets the first condition to wireless access point B; wireless access point B sends channel information to the first electronic device in response to the first information; it is assumed that the channel information sent by wireless access point B is information about two channels in the 2.4 GHz frequency band and information about one channel in the 5 GHz frequency band, wherein one of the two channels in the 2.4 GHz frequency band corresponds to wireless access point C, and the other of the two channels in the 2.4 GHz frequency band corresponds to wireless access point C. Access point D, a channel in the 5 GHz frequency band corresponds to wireless access point E, and the signal strength of the wireless signal provided by the wireless access point C to the first electronic device is greater than the signal strength of the wireless signal provided by the wireless access point E to the first electronic device, the signal strength of the wireless signal provided by the wireless access point E to the first electronic device is greater than the signal strength of the wireless signal provided by the wireless access point D to the first electronic device, and the signal strength of the wireless signal provided by the wireless access point C to the first electronic device is the strongest, then the wireless access point C is determined as the second wireless access point, the wireless access point C is connected, and the network is connected through the wireless access point C.

[0044] It should be noted that, although the channel information fed back by the wireless access point B includes a channel in the 5 GHz frequency band, the first electronic device does not connect to the wireless access point that uses a channel in the 5 GHz frequency band. The reason may be that there is an obstacle between the wireless access point and the first electronic device, so that the signal strength of the wireless signal received by the first electronic device from the wireless access point is weak.

[0045] In some possible implementations of the embodiments of the present application, the first information may be sent or the first channel information may be received via a first management frame of the wireless local area network standard, wherein the first management frame is an unused management frame in the management frame of the wireless local area network standard.

[0046] The MAC header of all management frames in the universal wireless LAN standard IEEE 802.11 is the same, regardless of the subtype of the frame. Management frames use information elements (data blocks with digital tags) to exchange data with other systems. Information elements are components of management frames and have variable lengths. Information elements usually contain an element ID bit and two length bits, one of which is a fixed length bit and the other is a variable length bit.

[0047] Exemplarily, according to the 802.11 protocol, management frames with element identification codes 43-49 in the management frame are not used, the first information can be sent through the management frame with element identification code 44, and the first channel information can be received through the management frame with element identification code 45.

[0048] In some possible implementations of the embodiments of the present application, the management frame with the element identification code number 44 may be referred to as a channel query (Channel Request) frame, and the management frame with the element identification code number 45 may be referred to as a channel response (Channel Response) frame.

[0049] Since the channel query frame is used to request the first channel information that meets the first condition, it can be represented by the element identification code of its information element. Therefore, the channel query frame does not need to carry other information, and the value of the fixed length bit in the information element of the channel query frame is 0. The format of the information element corresponding to the channel query frame is as follows: Figure 2 shown.

[0050] In some possible implementations of the embodiments of the present application, it may be specified that the channel response frame supports feedback of channel information of up to 8 channels, the fixed-length bits in the information elements of the channel response frame are 8, and the indefinite-length bits in the information elements of the channel response frame are the channel information of the 8 channels. When the first wireless access point determines that there are less than 8 channels, the indefinite-length bits in the information elements of the channel response frame are the channel information of these channels. In some possible implementations of the embodiments of the present application, when the first wireless access point determines that there are more than 8 channels, the above-mentioned 8 channels may be the channels of the 8 wireless access points that are closest to the first wireless access point. The format of the information element corresponding to the channel response frame is as follows: Figure 3 shown.

[0051] In the embodiment of the present application, the sending and receiving of the first information and the first channel information can be achieved through an unused management frame in the management frame of the wireless local area network standard.

[0052] It should be noted that the network connection method provided in the embodiment of the present application can be executed by a network connection device or a control module in the network connection device for executing the network connection method. In the embodiment of the present application, the network connection device provided in the embodiment of the present application is described by taking the network connection method executed by the network connection device as an example.

[0053] Figure 4 400 is a schematic diagram of a network connection device for a first electronic device provided in an embodiment of the present application. The network connection device 400 for a first electronic device may include:

[0054] a sending module 401, configured to send first information to a first wireless access point when the signal strength of the first wireless signal is less than a first signal strength threshold, wherein the first wireless signal is a signal sent by the first wireless access point and received by the first electronic device, the first wireless access point is a wireless access point to which the first electronic device is connected, and the first information is used to request first channel information that meets a first condition;

[0055] The receiving module 402 is configured to receive first channel information sent by the first wireless access point in response to the first information;

[0056] A determination module 403, configured to determine a second wireless access point according to the first channel information;

[0057] The connection module 404 is used to connect to a second wireless access point and connect to a network through the second wireless access point.

[0058] In an embodiment of the present application, when the signal strength of the first wireless signal sent by the first wireless access point connected to the first electronic device is less than the first signal strength threshold, the first electronic device sends a first message for requesting the first channel information that satisfies the first condition to the first wireless access point, receives the first channel information sent by the first wireless access point in response to the first message, and then determines the second wireless access point based on the first channel information, connects to the second wireless access point, and connects to the Internet through the second wireless access point. It is not necessary to scan all channels corresponding to the wireless access frequency band, and the wireless access point to be connected can be determined based on the channel corresponding to the first channel information that satisfies the first condition. Since the number of channels corresponding to the first channel information that satisfies the first condition is less than the total number of all channels corresponding to the wireless access frequency band, the channel scanning time can be reduced, thereby shortening the time of network abnormality and slow Internet access speed.

[0059] In some possible implementations of the embodiments of the present application, the first channel information that satisfies the first condition includes: channel information of a channel where a third wireless access point is located, wherein the third wireless access point is a wireless access point whose distance from the first electronic device is less than a first distance threshold.

[0060] In some possible implementations of the embodiment of the present application, the determination module 403 is specifically used to:

[0061] The wireless access point that satisfies the second condition among the wireless access points corresponding to the first channel information is determined as the second wireless access point, wherein the wireless access point that satisfies the second condition is the wireless access point that provides the first electronic device with the strongest signal strength of the wireless signal.

[0062] In some possible implementations of the embodiments of the present application, the first information may be sent or the first channel information may be received via a first management frame of the wireless local area network standard, wherein the first management frame is an unused management frame in the management frame of the wireless local area network standard.

[0063] The network connection device applied to the first electronic device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The first electronic device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, 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 the non-mobile electronic device can 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.

[0064] The first electronic device in the embodiment of the present application may be an electronic 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.

[0065] The network connection device applied to the first electronic device provided in the embodiment of the present application can achieve Figures 1 to 3 To avoid repetition, the various processes in the embodiment of the network connection method applied to the first electronic device are not described here.

[0066] Optional, such as Figure 5 As shown, an embodiment of the present application also provides an electronic device 500, including a processor 501, a memory 502, and a program or instruction stored in the memory 502 and executable on the processor 501. When the program or instruction is executed by the processor 501, the various processes of the above-mentioned network connection method embodiment applied to the first electronic device are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0067] 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.

[0068] In some possible implementations of the embodiments of the present application, the processor 501 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0069] In some possible implementations of the embodiments of the present application, the memory 502 may include a read-only memory (ROM), a random access memory (RAM), a disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the network connection method applied to the first electronic device according to the embodiments of the present application.

[0070] Figure 6 It is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.

[0071] The electronic device 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, and a processor 610.

[0072] Those skilled in the art will appreciate that the electronic device 600 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 610 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 6The 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.

[0073] The network module 602 is used to: send first information to the first wireless access point when the signal strength of the first wireless signal is less than the first signal strength threshold, wherein the first wireless signal is a signal sent by the first wireless access point received by the electronic device 600, the first wireless access point is a wireless access point connected to the electronic device 600, and the first information is used to request first channel information that meets the first condition; receive the first channel information sent by the first wireless access point in response to the first information;

[0074] The processor 610 is configured to: determine a second wireless access point according to the first channel information;

[0075] The network module 602 is further used to connect to a second wireless access point and connect to a network through the second wireless access point.

[0076] In the embodiment of the present application, when the signal strength of the first wireless signal sent by the first wireless access point connected to the electronic device 600 is less than the first signal strength threshold, the electronic device 600 sends a first message for requesting the first channel information that satisfies the first condition to the first wireless access point, receives the first channel information sent by the first wireless access point in response to the first message, and then determines the second wireless access point according to the first channel information, connects to the second wireless access point, and connects to the Internet through the second wireless access point. It is not necessary to scan all channels corresponding to the wireless access frequency band, and the wireless access point to be connected can be determined only according to the channel corresponding to the first channel information that satisfies the first condition. Since the number of channels corresponding to the first channel information that satisfies the first condition is less than the total number of all channels corresponding to the wireless access frequency band, the channel scanning time can be reduced, thereby shortening the time of network abnormality and slow Internet access speed.

[0077] In some possible implementations of the embodiment of the present application, the first channel information that satisfies the first condition includes:

[0078] Channel information of a channel where a third wireless access point is located, wherein the third wireless access point is a wireless access point whose distance from the first electronic device is less than a first distance threshold.

[0079] In some possible implementations of the embodiments of the present application, the processor 610 is specifically configured to:

[0080] The wireless access point that satisfies the second condition among the wireless access points corresponding to the first channel information is determined as the second wireless access point, wherein the wireless access point that satisfies the second condition is the wireless access point that provides the electronic device 600 with the strongest signal strength of the wireless signal.

[0081] In some possible implementations of the embodiments of the present application, the first information may be sent or the first channel information may be received via a first management frame of the wireless local area network standard, wherein the first management frame is an unused management frame in the management frame of the wireless local area network standard.

[0082] It should be understood that in the embodiment of the present application, the input unit 604 may include a graphics processor (GPU) 6041 and a microphone 6042, and the graphics processor 6041 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. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 607 includes a touch panel 6071 and other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts: a touch detection device and a touch controller. Other input devices 6072 may include but are not limited to a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 609 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 610 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, the user interface, and the application program, and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 610.

[0083] 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, each process of the above-mentioned network connection method embodiment applied to the first electronic device is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0084] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer-readable storage medium, and examples of the computer-readable storage medium include non-transitory computer-readable storage media, such as ROM, RAM, magnetic disk or optical disk.

[0085] 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 network connection method embodiment applied to the first electronic device, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0086] 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.

[0087] 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.

[0088] 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 relevant technology, 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.

[0089] 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 network connection method, characterized in that: Applied to a first electronic device, the method includes: When the signal strength of the first wireless signal is less than the first signal strength threshold, sending first information to the first wireless access point through a channel query frame, wherein the first wireless signal is a signal sent by the first wireless access point and received by the first electronic device, the first wireless access point is a wireless access point connected to the first electronic device, the first information is used to request first channel information that meets the first condition, the channel query frame is a management frame with an unused element identification code of 44 in a management frame of a wireless local area network standard, and the value of a fixed length bit in an information element of the channel query frame is 0; receiving the first channel information sent by the first wireless access point in response to the first information through a channel response frame; the channel response frame is a management frame with an unused element identification code of 45 in a management frame of a wireless local area network standard; Determining a second wireless access point according to the first channel information; The second wireless access point is connected to the network through the second wireless access point.

2. The method according to claim 1, characterized in that The first channel information satisfying the first condition includes: Channel information of a channel where a third wireless access point is located, wherein the third wireless access point is a wireless access point whose distance from the first electronic device is less than a first distance threshold.

3. The method according to claim 1, characterized in that The determining a second wireless access point according to the first channel information includes: A wireless access point that satisfies a second condition among the wireless access points corresponding to the first channel information is determined as the second wireless access point, wherein the wireless access point that satisfies the second condition is a wireless access point that provides a wireless signal with the strongest signal strength to the first electronic device.

4. A network connection device, characterized in that: Applied to a first electronic device, the device comprises: a sending module, configured to send first information to a first wireless access point through a channel query frame when the signal strength of the first wireless signal is less than a first signal strength threshold, wherein the first wireless signal is a signal sent by the first wireless access point and received by the first electronic device, the first wireless access point is a wireless access point to which the first electronic device is connected, the first information is used to request first channel information that meets a first condition, the channel query frame is a management frame whose unused element identification code is 44 in a management frame of a wireless local area network standard, and the value of a fixed length bit in an information element of the channel query frame is 0; a receiving module, configured to receive the first channel information sent by the first wireless access point in response to the first information via a channel response frame; the channel response frame is a management frame whose unused element identification code is 45 in a management frame of a wireless local area network standard; A determination module, configured to determine a second wireless access point according to the first channel information; The connection module is used to connect to the second wireless access point and connect to the network through the second wireless access point.

5. The device according to claim 4, characterized in that The first channel information satisfying the first condition includes: Channel information of a channel where a third wireless access point is located, wherein the third wireless access point is a wireless access point whose distance from the first electronic device is less than a first distance threshold.

6. The device according to claim 4, characterized in that The determination module is specifically used for: A wireless access point that satisfies a second condition among the wireless access points corresponding to the first channel information is determined as the second wireless access point, wherein the wireless access point that satisfies the second condition is a wireless access point that provides a wireless signal with the strongest signal strength to the first electronic device.

7. An electronic device, characterized in that: The electronic device comprises: a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the network connection method according to any one of claims 1 to 3.

8. 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 a processor, the steps of the network connection method according to any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Wireless AP (access point) selection method and system

    CN103702398A

  • WiFi seamless switching method based on neighbor graph algorithm

    CN105657760A