CN116056188A - WiFi connection method, device, equipment and storage medium - Google Patents

WiFi connection method, device, equipment and storage medium Download PDF

Info

Publication number
CN116056188A
CN116056188A CN202211436447.4A CN202211436447A CN116056188A CN 116056188 A CN116056188 A CN 116056188A CN 202211436447 A CN202211436447 A CN 202211436447A CN 116056188 A CN116056188 A CN 116056188A
Authority
CN
China
Prior art keywords
network
terminal
equipment
wifi
parameters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211436447.4A
Other languages
Chinese (zh)
Inventor
郝李兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hubei Xingji Shidai Technology Co Ltd
Original Assignee
Hubei Xingji Shidai Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hubei Xingji Shidai Technology Co Ltd filed Critical Hubei Xingji Shidai Technology Co Ltd
Priority to CN202211436447.4A priority Critical patent/CN116056188A/en
Publication of CN116056188A publication Critical patent/CN116056188A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application provides a WiFi connection method, a WiFi connection device, wiFi connection equipment and a WiFi connection storage medium, wherein the WiFi connection method comprises the steps that a terminal monitors network parameters of AP equipment corresponding to each AP identifier in a WiFi hotspot list; the terminal selects a first AP device based on network parameters of each AP device and network requirements of the terminal; under the condition that the currently connected AP equipment is not the first AP equipment, the terminal performs WiFi hot spot switching, so that the terminal can be ensured to be automatically switched to the first AP equipment with the optimal network quality state under the current network demand environment, and the user does not need to manually switch one by one to experience, thereby improving the WiFi automatic connection flexibility and further optimizing the user experience.

Description

WiFi connection method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a WiFi connection method, device, equipment, and storage medium.
Background
With the development of technology, the life of people is no time and no time away from wireless network WiFi, for example, mobile phones, computers, ipad, wearable devices and other terminal devices all have WiFi functions. However, as the demand increases, AP devices, such as routers, and other access point devices, need to meet the needs of people for network signals.
At present, in order to meet the requirement of users on network quality, some routers further have a multi-frequency integrated function to optimize part of connection problems, and the switching function of an automatic high-quality network is realized through the use distance range of the users, but the mode is limited to optimizing the connected WiFi hot spots with the same service setting identifiers, and the WiFi hot spots of other different service setting identification networks cannot be automatically switched and realized, and still the users still need to manually connect one by one.
Disclosure of Invention
The embodiment of the application provides a WiFi connection method, device, equipment and storage medium, which are used for solving the defects that in the prior art, wiFi switching can be automatically switched to high-quality WiFi hot spots with the same service setting identification only through the use distance range of a user, and automatic switching cannot be realized for the WiFi hot spots of other different service setting identification networks, so that WiFi connection is inflexible.
In a first aspect, an embodiment of the present application provides a WiFi connection method, applied to a terminal, including:
the terminal monitors network parameters of the AP equipment corresponding to each AP identifier in the WiFi hotspot list;
the terminal selects a first AP device based on network parameters of each AP device and network requirements of the terminal;
And under the condition that the currently connected AP equipment is not the first AP equipment, the terminal performs WiFi hot spot switching.
In some embodiments, the selecting, by the terminal, the best first AP device based on the network parameters of each AP device and the network requirements of the terminal device includes:
the terminal determines a plurality of index parameters under the network parameters based on the network requirements of the terminal;
and selecting a first AP device from the AP devices based on the index parameters.
In some embodiments, the network parameters include: network quality parameters and network signal status parameters;
the terminal selects a first AP device based on network parameters of each AP device and network requirements of the terminal, and the method comprises the following steps:
the terminal determines network quality based on the network quality parameters of the AP equipment and determines a network signal state based on the network signal state parameters of the AP equipment;
and the terminal selects the first AP equipment based on the network quality, the network signal state and the network requirement of the terminal.
In some embodiments, the terminal selects the first AP device based on the network quality, the network signal status, and the network requirements of the terminal, comprising:
Under the condition that the network requirement is that the network quality priority is higher than the network signal state priority, the terminal selects the AP equipment with the highest network quality as first target AP equipment;
and under the condition that the network signal state of the first target AP equipment is larger than or equal to the lowest network signal state, the terminal selects the first target AP equipment as the first AP equipment.
In some embodiments, in a case where the network signal state of the first target AP device is less than the lowest network signal state, the terminal removes the AP identifier corresponding to the first target AP device from the WiFi hotspot list.
In some embodiments, the terminal reselects the first AP device.
In some embodiments, the terminal selects the first AP device based on the network quality, the network signal status, and the network requirements of the terminal, further comprising:
under the condition that the network requirement is that the network signal state priority is higher than the network quality priority, the terminal selects the AP equipment with the highest network signal state as second target AP equipment;
and under the condition that the network quality of the second target AP equipment is greater than or equal to the lowest network quality, selecting the second target AP equipment as the first AP equipment.
In some embodiments, in a case where the network quality of the second target AP device is less than the minimum network quality, the terminal removes the AP identifier corresponding to the second target AP device from the WiFi hotspot list.
In some embodiments, the terminal reselects the first AP device.
In some embodiments, before the terminal monitors the network parameters of the AP device corresponding to each AP identifier in the WiFi hotspot list, the method further includes:
under the condition of receiving heartbeat detection initiated by the AP equipment, the terminal determines an AP identification of the AP equipment;
and under the condition that the AP mark is a white list, the terminal responds to the heartbeat detection of the AP equipment and records the network parameters of the AP equipment in real time.
In some embodiments, after the terminal responds to the heartbeat detection of the AP device, the method further includes:
the terminal judges whether the AP identification of the AP equipment is in a WiFi hot spot list or not;
and the terminal adds the AP identification of the AP equipment into the WiFi hotspot list under the condition that the AP identification of the AP equipment is not in the WiFi hotspot list.
In some embodiments, the terminal performs WiFi hotspot switching, including:
The terminal is switched from the currently connected AP equipment to the first AP equipment.
In a second aspect, an embodiment of the present application further provides a WiFi connection method, applied to an AP device, including:
under the condition that network connection is established with a terminal, the AP equipment determines the heartbeat detection interval period of other AP equipment of the terminal, wherein the other AP equipment is AP equipment corresponding to other AP identifications except the AP identification of the AP equipment in a WiFi hotspot list of the terminal;
the AP equipment initiates heartbeat detection to the terminal based on the heartbeat detection interval period of the other AP equipment so as to transmit network parameters of the AP equipment to the terminal;
the network parameters are used for the terminal to select the first AP equipment.
In a third aspect, an embodiment of the present application further provides a WiFi connection device, including:
the monitoring unit is used for monitoring network parameters of the AP equipment corresponding to each AP identifier in the WiFi hotspot list by the terminal;
the selecting unit is used for the terminal to select a first AP device based on the network parameters of each AP device and the network requirements of the terminal device;
and the switching unit is used for switching WiFi hot spots by the terminal under the condition that the currently connected AP equipment is not the first AP equipment.
In a fourth aspect, an embodiment of the present application further provides an electronic device, including a memory, a processor, and a computer program stored on the memory and capable of running on the processor, where the processor executes the program to implement any one of the WiFi connection methods described above.
In a fifth aspect, embodiments of the present application also provide a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a WiFi connection method as described in any of the above.
In a sixth aspect, embodiments of the present application further provide a computer program product comprising a computer program which, when executed by a processor, implements a WiFi connection method as described in any of the above.
Drawings
For a clearer description of the present application or of the prior art, the drawings that are used in the description of the embodiments or of the prior art will be briefly described, it being apparent that the drawings in the description below are some embodiments of the present application, and that other drawings may be obtained from these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic hardware architecture diagram of a WiFi connection method according to an embodiment of the present application;
fig. 2 is one of flow diagrams of a WiFi connection method according to an embodiment of the present application;
fig. 3 is an interaction schematic diagram of a WiFi connection method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a WiFi connection device according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of an electronic device according to one embodiment of the present application;
the attached drawings are identified:
110: a terminal A;120: an AP device.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the present application more apparent, the technical solutions in the present application will be clearly and completely described below with reference to the drawings in the present application, and it is apparent that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that, in the WiFi connection method provided in the embodiment of the present application, the execution body may be any terminal or a functional module in the terminal that can implement the WiFi connection method, and the terminal mentioned in the application includes, but is not limited to, a mobile phone, a tablet computer, a wearable device, and the like, where the execution body does not limit the application.
The AP device in the embodiments of the present application may also be referred to as an Access Point (AP) device, or may also be referred to as a radio Access Point or a hot spot. The wireless access point is an access point for a wireless terminal to enter a wired network, and is mainly used for broadband families, inside buildings, inside campuses, inside parks, places needing wireless monitoring such as warehouses and factories, and the like, and the wireless access point can be used for long-distance transmission, and can be used for long-distance transmission, wherein the distance is about 30KM at the most. The AP device acts as a bridge connecting the wired network and the wireless network, and is mainly used to connect the clients together and then access the wireless network to the ethernet. In particular, the AP device may be a network device with a WiFi chip. Alternatively, the AP device may be a device supporting the institute of electrical and electronics engineers (institute ofelectrical and electronics engineers, IEEE) 802.11 family of standards. Fig. 1 is a schematic hardware architecture diagram of a WiFi connection method provided in this embodiment of the present application, as shown in fig. 1, in a certain network environment, an AP device 120 in the network environment may continuously carry broadcast frames of service set identifiers SSID (Service Set Identifier, service set identifiers) to the outside, and after a terminal a110 scans and discovers a plurality of broadcast frames carrying service set identifiers SSID in the network environment under the condition of starting a WiFi function, the scanned service set identifiers SSID is added to a WiFi hotspot list of the terminal a110, and an AP device 120 corresponding to the service set identifiers SSID is selected from the WiFi hotspot list of the terminal a110 to connect.
The following describes a WiFi connection method according to the embodiments of the present application with reference to fig. 2, and fig. 2 is a schematic flow chart of the WiFi connection method provided by the embodiments of the present application, as shown in fig. 2, including:
in step 201, the terminal monitors network parameters of AP devices corresponding to each AP identifier in the WiFi hotspot list.
Specifically, the network parameter refers to a parameter for characterizing network quality of the AP device, where the network parameter may be a parameter obtained directly or may be a parameter obtained indirectly after a subsequent conversion operation, which is not limited.
The network parameters in this embodiment include, but are not limited to, beacon frame, transmission rate, signal strength, and network latency.
The Beacon frame, i.e. Beacon frame, is periodically sent by the AP device at a certain time interval, so as to tell the existence of the wireless network of the AP device, and in general, when the AP device sends the Beacon frame, the Beacon frame is used to inform the opposite terminal device of what performance the network of the AP device has, such as a transmission rate, a signal strength and a network delay, and in general, the shorter the sending period of the Beacon frame, the better the network quality of the AP device is represented.
The transmission rate, namely, data rate, refers to the Data transmission rate of the physical layer that the AP device can provide when the terminal device uses the AP device to perform network communication, and in general, the larger the transmission rate is, the better the network signal state of the AP device is represented.
The signal strength, i.e., (Received Signal Strength Indication, RSSI) received signal strength indication, which is used to determine link quality, typically the greater the signal strength, the better the network signal state characterizing the AP device, and the more stable the network.
The network delay is PING delay, which means that the test terminal sends out a test packet, receives the test packet and replies the test packet, and the larger the time period is called PING delay, the worse the network quality of the AP equipment is represented.
In practical application, the terminal device may continuously change its position with respect to each AP device, so as to change the network parameters of the AP device connected to the terminal device along with the change of the direction and distance of the terminal device, so that in this embodiment, the network parameters of the AP device are monitored in real time.
In addition, it should be noted that, the network requirement of the terminal device refers to the requirement of the terminal device on each network parameter under the current application scenario, for example, if the current terminal device needs to download a lot of files, the network signal state is better and more beneficial to the terminal device to complete the downloading faster, so the network requirement can be that a higher transmission rate and signal strength are needed, and if the current terminal device is in video call, the network quality is better and more beneficial to the video call of the terminal device not to be interrupted, so the network requirement can be that a smaller network delay is needed.
In some embodiments, the terminal may actively analyze the data characteristics of the transmission in the current network environment, and determine the network requirement of the current terminal according to the analysis result.
For example, the terminal device analyzes each task thread currently running, and when the data transmitted is analyzed to be data generated in real time, or encrypted data, or network link breakage affects a data transmission result, determines that the network demand of the current terminal device is higher than the network signal priority, and when the data transmitted is analyzed to be large-flow data, or data which can be continuously and normally transmitted after the network link breakage, determines that the network demand of the current terminal device is higher than the network signal priority.
In addition, the network requirements in this embodiment may be determined based on other preset determination rules, for example, the network parameter priority selection sub-interface is output in the operation interface of the terminal device, and the current network requirements are determined based on the result selected by the user in the network parameter priority selection sub-interface.
For example, in some embodiments, whether the network requirement set by the user is identified is determined, under the condition that the network requirement set by the user is not identified, the task thread started by the current terminal device is analyzed, and the network requirement is determined according to the analysis result, so that under the condition that the network requirement set by the user is identified, the subsequent switching can be performed to the optimal AP device which is more attached to the user requirement based on the network requirement set by the user, the use sense of the user is further ensured, under the condition that the network requirement set by the user is not identified, the network requirement is determined based on the task thread which is currently started, and therefore, when the network switching is performed subsequently, the switched network can be ensured to be more consistent with the current network application scene, and the experience sense of the user is further improved.
Step 202, the terminal selects a first AP device based on network parameters of each AP device and network requirements of the terminal.
In this step, the first AP device refers to a device with an optimal network state selected according to the network parameters of each AP device under the precondition of the network requirement of the current terminal device.
In this embodiment, the index parameter with a large influence factor may be selected from the network parameters according to the network requirement, for example, in the case that the network requirement is a network with a more stable requirement, the transmission rate and the signal strength are selected from the index parameters such as the beacon frame, the transmission rate, the signal strength, and the network delay as the index parameters with a large influence factor, so that the AP device with an optimal network state is selected based on the two index parameters such as the transmission rate and the signal strength.
In addition, in this embodiment, the AP devices may be ranked in descending order according to multiple index parameters of the network parameters, to obtain the ranking of the AP devices under each index parameter, then the weights of each index parameter are allocated based on the network requirement, and finally the comprehensive ranking of the AP devices is calculated according to the weights of each index parameter and the ranking of the AP devices under each index parameter, so that the AP device with the highest comprehensive ranking is selected as the AP device with the optimal network state.
Further, when calculating the score, the average value of all the values under each index parameter can be calculated first, then all the values under the index parameter are ordered according to the order of magnitude, the difference between the adjacent value intervals is calculated, the average difference between a plurality of differences is calculated, and finally a plurality of score intervals are divided based on the average difference and the average value, so that the score corresponding to each value is determined based on the score intervals.
For ease of understanding, the network latency is represented by the illustration:
under an application scenario, network delays of the AP devices corresponding to the AP identifications in the WiFi hotspot list are respectively: 200ms, 50ms, 400ms, 230ms, 120ms and 300ms, the average value of the 6 values is 217ms, the average difference value of the 6 values is 88ms, the score corresponding to the 217ms is 0 score, the score of the value in the interval of 218ms to 305ms is-1 score, the score of the value in the interval of 129ms to 216ms is 1 score, the score of the value in the interval of 306ms to 393ms is-2 score, the score of the value in the interval of 41ms to 128ms is 2 score, and so on, and are not described in detail herein.
In addition, the rule for selecting the first AP device in this embodiment may be other preset custom rules, which is not limited.
And 203, performing WiFi hot spot switching by the terminal under the condition that the currently connected AP equipment is not the first AP equipment.
For example, in one embodiment, the terminal performs WiFi hotspot switching, where the terminal does not switch back to the AP device after switching from the currently connected AP device to the first AP device.
For example, in one embodiment, the terminal may further switch to the currently connected AP device after the terminal switches from the currently connected AP device to the first AP device to execute the task thread corresponding to the current network requirement.
In this step, when performing WiFi hotspot switching, it may be first determined whether the AP device currently being connected meets the current network requirement of the terminal device, if so, the terminal device may perform switching after performing the task thread, and if not, the network switching may be performed immediately.
For example, in some application scenarios, when the terminal device is playing video, the relationship between the current video playing progress and the video buffering progress is determined, when the video playing progress is smaller than the video buffering progress, it is indicated that the AP device currently being connected meets the current network requirement of the terminal device, then network switching can be performed after the terminal device plays the current video, when the video playing progress is consistent with the video buffering progress, whether a manipulation action of dragging the video progress by the user exists is monitored, if yes, the manipulation action is not satisfied, in addition, whether a video clamping event occurs can be detected, if the video clamping event occurs, the manipulation action is not satisfied, and in this case, network switching can be performed immediately.
Fig. 3 is an interaction schematic diagram of a WiFi connection method provided in an embodiment of the present application, as shown in fig. 3, a WiFi hotspot list currently stored in a terminal a includes a plurality of AP identities corresponding to AP1 devices and AP2 devices … APn devices, where the AP device currently connected to the terminal a is AP1, N AP devices in the WiFi hotspot list periodically send a data packet carrying Beacon frames, data rates, rsisi and ping delays to the terminal a, and a bottom layer system of the terminal a counts Beacon frames, data rates, rsisi and ping delays of each AP device stored in a period, and selects an AP device currently intended to be connected according to a network requirement of the terminal a and the Beacon frames, data rates, rsisi and ping delays of each AP device stored, for example, the AP device currently intended to be connected is an APn device, and the terminal a device is disconnected from the AP1 device and switched to be connected to the APn device.
According to the WiFi connection method, the terminal monitors the network parameters of each AP device in the WiFi hotspot list to conduct AP device selection and hotspot switching, and users do not need to manually switch experiences one by one, so that the WiFi automatic connection flexibility is improved, and user experience is optimized.
In some embodiments, the terminal selects a first AP device based on network parameters of each AP device and network requirements of the terminal, including:
The terminal determines a plurality of index parameters under the network parameters based on the network requirements of the terminal equipment;
and selecting the first AP equipment from the AP equipment based on the index parameters.
For example, after obtaining a plurality of index parameters under the network parameters, an original score of the AP device under each index parameter may be determined according to a preset score determination rule, and then a conversion score under each index parameter is determined based on the original score under each index parameter and the weight of each index parameter, so as to determine a total score of each AP device according to the conversion score.
For example, the preset score judgment rule is that the values under the index parameters of the network parameters of the currently connected AP devices are used as references, that is, the total score of the network parameter matching of the currently connected AP devices is 0, the values under the index parameters of the AP devices are sorted in descending order from top to bottom, when the value ranking of the other AP devices in the WiFi hotspot list is greater than the value of the currently connected AP device, the score of the other AP devices in the WiFi hotspot list is positively assigned, and when the value ranking of the other AP devices in the WiFi hotspot list is less than the value of the currently connected AP device, the score of the other AP devices in the WiFi hotspot list is negatively assigned.
It should be noted that, the weights in this embodiment may be preset weights, and the weights are ordered according to the influence degree of each index parameter on the network requirement, and the preset weights are allocated to each index parameter based on the ordered result.
For the sake of understanding, in this example, the terminal device needs to be networked to perform real-time data interaction, that is, in the current situation, the network quality priority of the terminal device is higher than the network signal priority, the AP device currently being connected by the terminal device is AP1, the network parameters of AP1 are 500ms to send a beacon frame packet, the transmission rate is 100Mbps, the signal strength is-65 dBm, and the network delay is 200ms, the WiFi list in the current period further includes saved AP2 and AP3, where the network parameters of AP2 are 300ms to send a beacon frame packet, the transmission rate is 200Mbps, the signal strength is-70 dBm, the network delay is 50ms, and the network parameters of AP3 are 400ms to send a beacon frame packet, the transmission rate is 100Mbps, the signal strength is-50 dBm, and the network delay is 100ms.
Optionally, the ranks of the three AP devices under each index parameter are first downgraded and ordered, that is, under the beacon frame index, the ranks are respectively: AP2, AP3, AP1, respectively, are: AP2, AP1, AP3, respectively, are: the network delay indexes of the AP2, the AP1 and the AP3 are respectively as follows: AP2, AP3 and AP1.
In the preset rule, the weight of the index parameter with larger influence degree is 0.6, the weight of the index parameter with smaller influence degree is 0.4, the first name is 10 minutes, the second name is 8 minutes …, and so on, because the network quality priority of the terminal equipment is higher than the network signal priority in the current application scene, the weights given to the beacon frame index and the network delay index are both 0.6, the weights given to the transmission rate index and the signal strength index are both 0.4, the total score of the AP1 is 16.4, the total score of the AP2 is 20, the total score of the AP3 is 17.2, and the first AP access point equipment is the AP3.
In some embodiments, the first AP device may also be determined according to a priority order of the plurality of index parameters.
For example, the priority order of the four indexes of the beacon frame, the transmission rate, the signal strength and the network delay of the terminal is as follows from high to low: the transmission rate, the signal strength, the network delay and the beacon frame, when determining the first AP device, the AP device with the fastest transmission rate may be selected as the first AP device for the first time, and if the first AP device does not meet the network requirement of the terminal, the AP device with the fastest signal strength may be selected as the first AP device … for the second time, and so on.
In some embodiments, the network parameters include: network quality parameters and network signal status parameters; the terminal selects the first AP device based on the network parameters of each AP device and the network requirements of the terminal device, including:
the terminal determines network quality based on the network quality parameters of each AP device and determines a network signal state based on the network signal state parameters of each AP device;
and selecting the first AP equipment based on the network quality, the network signal state and the network requirement of the terminal.
In particular, the network quality parameter refers to parameters that affect the quality of the network, such as beacon frames and network delays.
Network signal status parameters refer to parameters that affect the quality of the network signal status, such as transmission rate and signal strength.
For example, the network quality may be determined by performing a score assignment on the value of each network quality parameter, or the network signal state may be determined by performing a score assignment on the value of each network signal state parameter, for example, the network quality may be a score sum of all index values under all network quality parameters, and the network signal state may be a score sum of all index values under all network signal state parameters, which is not limited.
The network requirements of the terminal equipment in some application scenarios can be networks which need to be more stable, such as video call or voice call, and the network requirements of the terminal equipment in some application scenarios can also be networks which need to be faster in network speed, such as transmitting large-flow data files, so that in the embodiment, when the first AP equipment is selected, the first AP equipment is selected according to three indexes of network quality, network signal state and network requirements of the terminal equipment, and therefore the selected first AP equipment can be ensured to be more fit with the requirements of users.
In some embodiments, the selecting the first AP device based on the network quality, the network signal status, and the network requirements of the terminal includes:
under the condition that the network requirement is that the network quality priority is higher than the network signal state priority, the terminal selects the AP equipment with the highest network quality as first target AP equipment;
and under the condition that the network signal state score of the first target AP equipment is larger than or equal to the lowest network signal state, the terminal selects the first target AP equipment as the first AP equipment.
The lowest network signal state refers to that when the transmission rate or the signal strength of the AP device is in the state, network disconnection frequently occurs in the terminal device based on the WiFi hot spot transmission data of the AP device, that is, the user is influenced by normal use of the terminal device.
In the step, when a first AP device is selected, a first target AP device with the best network quality is selected based on the network requirement of a user, and then whether the terminal device is stable in the network is judged according to the network signal state of the first target AP device, if so, the terminal device is indicated to be switched to the AP device without influencing the terminal.
In some embodiments, in a case where the network signal state of the first target AP device is less than the lowest network signal state, the terminal removes the AP identifier corresponding to the first target AP device from the WiFi hotspot list.
It can be understood that if the AP device is unstable, it indicates that the current AP device has an influence on the terminal, and in order to avoid the influence of the AP device on the terminal to automatically select the network, the AP identifier corresponding to the AP device may be removed from the WiFi hotspot list, thereby, on one hand, ensuring the network requirement of the user, and on the other hand, avoiding frequent network disconnection after switching the network, thereby affecting the internet surfing experience of the user.
In some embodiments, the terminal reselects the first AP device if the network signal state of the first target AP device is less than the lowest network signal state.
When the terminal reselects the first AP device, the terminal may monitor the network parameters of the AP devices corresponding to each AP identifier in the current WiFi hotspot list again, and then select the first AP device according to the network parameters of each AP device and the network requirements of the terminal device, or directly select the first AP device according to the network parameters of each AP device and the network requirements of the terminal device that are currently stored, which is not limited.
In some embodiments, the terminal selects the first AP device based on the network quality, the network signal status, and the network requirements of the terminal, further comprising:
under the condition that the network requirement is that the network signal state priority is higher than the network quality priority, the terminal selects the AP equipment with the highest network signal state as second target AP equipment;
and under the condition that the network quality of the second target AP equipment is greater than or equal to the lowest network quality, selecting the second target AP equipment as the first AP equipment.
The minimum network quality refers to that when a beacon frame or network delay of the AP device is in the quality state, the duration of data transmission by the terminal device based on the WiFi hotspot of the AP device exceeds the maximum duration acceptable to the user, that is, the user is influenced by normal use of the terminal device.
In the step, when a first AP device is selected, a second target AP device with the best network signal state is selected based on the network requirement of a user, then whether the time length of transmitting data by the terminal device in the network signal state exceeds the maximum time length acceptable by the user is judged according to the network quality of the second target AP device, and if the time length does not exceed the maximum time length, the switching to the AP device is indicated to have no influence on the terminal.
In some embodiments, when the network quality score of the second target AP device is less than the lowest network quality score limit value, the second target AP device is removed from the WiFi hotspot list, and the step of selecting the second target AP device with the highest network signal status score from the WiFi hotspot list is performed again until the best AP device is selected.
It can be understood that if the network identifier exceeds the predetermined value, the current AP device has an influence on the terminal, and in order to avoid the influence of the AP device on the terminal to automatically select the network, the AP identifier corresponding to the AP device may be removed from the WiFi hotspot list, thereby, on one hand, ensuring the network requirement of the user, and on the other hand, avoiding the overlong data transmission time after switching the network, thereby affecting the internet surfing experience of the user.
In some embodiments, the terminal reselects the first AP device if the network quality of the second target AP device is less than the minimum network quality.
When the terminal reselects the first AP device, the terminal may monitor the network parameters of the AP devices corresponding to each AP identifier in the current WiFi hotspot list again, and then select the first AP device according to the network parameters of each AP device and the network requirements of the terminal device, or directly select the first AP device according to the network parameters of each AP device and the network requirements of the terminal device that are currently stored, which is not limited.
In some embodiments, before the terminal monitors the network parameters of the AP device corresponding to each AP identifier in the WiFi hotspot list, the method further includes:
under the condition of receiving heartbeat detection initiated by the AP equipment, the terminal determines an AP identification of the AP equipment;
and under the condition that the AP mark is a white list, the terminal responds to the heartbeat detection of the AP equipment and records the network parameters of the AP equipment in real time.
In practical application, the AP device may periodically initiate heartbeat detection to a terminal device connected within its network communication range, so as to detect whether the connection between the AP device and the terminal device is normal.
Optionally, in this embodiment, description is made on the basis of the AP identifier of the AP device as the MAC address of the AP device, where the case that the MAC address of the AP device is a white list includes:
first, the MAC address pool includes the MAC address of the AP device;
secondly, if the MAC address pool does not include the MAC address of the AP equipment, network security detection is firstly carried out on the AP equipment, and under the condition that the AP equipment passes through the network security detection, the MAC address of the AP equipment is stored in the MAC address pool.
The MAC address of the connected AP device is stored in the MAC address pool.
In the step, when the AP device performs heartbeat detection, a data packet request is sent to the terminal device, where the header of the data packet includes MAC address information of the AP device, and information carried in the data packet includes a request type, a service setting identifier, a beacon frame timestamp, a beacon frame time interval, a transmission rate, a signal strength, a network delay, and network performance information.
It should be noted that, in this embodiment, network parameters between the AP device and the terminal device are recorded in real time based on a preset structured data table, where fields in the preset structured data table include, but are not limited to, a MAC address of the AP device, a beacon frame timestamp, a beacon frame time interval, a transmission rate, a signal strength, and a network delay.
Specifically, the MAC address is used to distinguish network parameters associated with each AP device, the beacon frame timestamp is used to characterize the real-time performance of the network parameters, and the beacon frame time interval, the transmission rate, the signal strength and the network delay are used to select the best AP device from the WiFi hotspot list.
In some embodiments, after the terminal responds to the heartbeat detection of the AP device, the method further includes:
the terminal judges whether the AP identification of the AP equipment is in a WiFi hot spot list or not;
and adding the AP identification of the AP equipment into the WiFi hotspot list under the condition that the AP identification of the AP equipment is not in the WiFi hotspot list.
And under the condition that the AP identification of the AP equipment which initiates heartbeat detection currently is not stored in the WiFi hotspot list, indicating that the current AP equipment is equipment which establishes connection newly, adding the AP identification into the WiFi hotspot list.
It should be noted that, the AP identifier stored in the WiFi hotspot list in the embodiment is an AP identifier of the AP device that has established a connection, in other words, the WiFi hotspot stored in the WiFi hotspot list in the embodiment does not need to send a key to the AP device to perform verification connection, so that automatic switching of the WiFi hotspot can be achieved.
Further, in another embodiment, after responding to the heartbeat detection of the AP device, a last beacon frame timestamp between each AP device and the terminal device may be further determined, and when the time difference between the beacon frame timestamp and the current time point exceeds the set maximum time limit, the AP identifier of the AP device is removed from the WiFi list, thereby avoiding that the AP device affects the automatic switching of the WiFi hotspot.
The embodiment also provides a WiFi connection method, applied to an AP device, including:
under the condition that network connection is established with a terminal device, the AP device determines the heartbeat detection interval period of other AP devices of the terminal, wherein the other AP devices are AP devices corresponding to other AP identifiers except the AP identifier of the AP device in a WiFi hotspot list of the terminal;
the AP equipment initiates heartbeat detection to the terminal based on the heartbeat detection interval period of the other AP equipment so as to transmit network parameters of the AP equipment to the terminal; the network parameters are used for the terminal to select the first AP equipment.
In this embodiment, in order to avoid frequent updating of network parameters of AP devices corresponding to each AP identifier in the WiFi hotspot list monitored by the terminal, so that the terminal frequently switches networks when selecting the first AP device, and the terminal cannot stably and automatically switch networks, all AP devices connected by the terminal adopt a uniform heartbeat detection interval period to report the states of the two devices.
For example, after the AP device establishes a network connection with one terminal, a heartbeat detection period request is sent to the terminal, and after receiving the heartbeat detection period request, the terminal determines a heartbeat detection period of the AP device currently being connected based on the heartbeat detection periods of other AP devices currently being connected.
According to the WiFi connection method provided by the embodiment, the network parameters of the AP equipment are periodically transmitted to the terminal by adopting the same heartbeat detection interval period by all the AP equipment corresponding to the AP identifications stored in the WiFi hotspot list of the terminal, so that the terminal can be stably switched to the first AP equipment with the best network quality state during automatic switching, and the user does not need to manually switch the experience one by one, thereby improving the WiFi automatic connection flexibility and further optimizing the user experience.
The description of the WiFi connection device provided in the embodiments of the present application is described below, and the WiFi connection device described below and the WiFi connection method described above may be referred to correspondingly.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a WiFi connection device provided in an embodiment of the present application, as shown in fig. 4, the WiFi connection device includes: a monitoring unit 410, configured to monitor, by the terminal, network parameters of AP devices corresponding to each AP identifier in the WiFi hotspot list; a selecting unit 420, configured to select, by the terminal, a first AP device based on network parameters of each AP device and network requirements of the terminal device; and the switching unit 430 is configured to perform WiFi hotspot switching on the terminal when the currently connected AP device is not the first AP device.
Further, the selecting unit 420 is further configured to determine a plurality of index parameters under the network parameters based on the network requirement of the terminal; and selecting the first AP equipment from the AP equipment based on the index parameters.
Further, the selecting unit 420 is further configured to determine network quality based on the network quality parameters of each AP device, and determine a network signal state based on the network signal state parameters of each AP device; and the terminal selects the first AP equipment based on the network quality, the network signal state and the network requirement of the terminal.
Further, the selecting unit 420 is further configured to, when the network requirement is that the network quality priority is higher than the network signal state priority, select, by the terminal, an AP device with the highest network quality as the first target AP device; and under the condition that the network signal state of the first target AP equipment is larger than or equal to the lowest network signal state, the terminal selects the first target AP equipment as the first AP equipment.
Further, the selecting unit 420 is further configured to, in a case where the network signal state of the first target AP device is less than the lowest network signal state, remove the AP identifier corresponding to the first target AP device from the WiFi hotspot list.
Further, the selecting unit 420 is further configured to reselect the first AP device by using the terminal.
Further, the selecting unit 420 is further configured to, when the network requirement is that the network signal state priority is higher than the network quality priority, select, by the terminal, an AP device with the highest network signal state as the second target AP device; and under the condition that the network quality of the second target AP equipment is greater than or equal to the lowest network quality, selecting the second target AP equipment as the first AP equipment.
Further, the selecting unit 420 is further configured to, in case the network quality of the second target AP device is less than the minimum network quality, remove the AP identifier corresponding to the second target AP device from the WiFi hotspot list.
Further, the selecting unit 420 is further configured to reselect the first AP device by using the terminal.
Further, the monitoring unit 410 is further configured to, in case of receiving a heartbeat detection initiated by an AP device, determine an AP identifier of the AP device by the terminal; and under the condition that the AP mark is a white list, the terminal responds to the heartbeat detection of the AP equipment and records the network parameters of the AP equipment in real time.
Further, the monitoring unit 410 is further configured to determine whether an AP identifier of the AP device is in a WiFi hotspot list by using the terminal; and the terminal adds the AP identification of the AP equipment into the WiFi hotspot list under the condition that the AP identification of the AP equipment is not in the WiFi hotspot list.
Further, the switching unit 430 is further configured to switch the terminal from the currently connected AP device to the first AP device.
In addition, the embodiment of the application also provides a structural schematic diagram of a WiFi connection device, where the WiFi connection device includes: the connection unit is used for determining the heartbeat detection interval period of other AP equipment of the terminal under the condition that network connection is established with the terminal, wherein the other AP equipment is AP equipment corresponding to other AP identifications except the AP identification of the AP equipment in a WiFi hotspot list of the terminal; the detection unit is used for the AP equipment to initiate heartbeat detection to the terminal based on the heartbeat detection interval period of the other AP equipment so as to transmit the network parameters of the AP equipment to the terminal equipment; the network parameters are used for the terminal to select the first AP equipment.
Fig. 5 illustrates a physical schematic diagram of an electronic device, as shown in fig. 5, which may include: processor 510, communication interface (Communications Interface) 520, memory 530, and communication bus 540, wherein processor 510, communication interface 520, memory 530 complete communication with each other through communication bus 540. Processor 510 may invoke logic instructions in memory 530 to perform a WiFi connection method comprising: the terminal monitors network parameters of the AP equipment corresponding to each AP identifier in the WiFi hotspot list; the terminal selects a first AP device based on network parameters of each AP device and network requirements of the terminal; and under the condition that the currently connected AP equipment is not the first AP equipment, the terminal performs WiFi hot spot switching.
Further, the logic instructions in the memory 530 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present application also provides a computer program product, the computer program product including a computer program, the computer program being storable on a non-transitory computer readable storage medium, the computer program, when executed by a processor, being capable of executing the WiFi connection method provided by the above methods, the method comprising: the terminal monitors network parameters of the AP equipment corresponding to each AP identifier in the WiFi hotspot list; the terminal selects a first AP device based on network parameters of each AP device and network requirements of the terminal; and under the condition that the currently connected AP equipment is not the first AP equipment, the terminal performs WiFi hot spot switching.
In yet another aspect, the present application further provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the WiFi connection method provided by the methods above, the method comprising: the terminal monitors network parameters of the AP equipment corresponding to each AP identifier in the WiFi hotspot list; the terminal selects a first AP device based on network parameters of each AP device and network requirements of the terminal; and under the condition that the currently connected AP equipment is not the first AP equipment, the terminal performs WiFi hot spot switching.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting thereof; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (16)

1. The WiFi connection method is applied to a terminal and comprises the following steps:
the terminal monitors network parameters of the AP equipment corresponding to each AP identifier in the WiFi hotspot list;
the terminal selects a first AP device based on network parameters of each AP device and network requirements of the terminal;
and under the condition that the currently connected AP equipment is not the first AP equipment, the terminal performs WiFi hot spot switching.
2. The WiFi connection method of claim 1, wherein the terminal selects a first AP device based on network parameters of each AP device and network requirements of the terminal, comprising:
the terminal determines a plurality of index parameters under the network parameters based on the network requirements of the terminal;
And selecting the first AP equipment from the AP equipment based on the index parameters.
3. The WiFi connection method of claim 1, wherein the network parameters include: network quality parameters and network signal status parameters;
the terminal selects a first AP device based on network parameters of each AP device and network requirements of the terminal, and the method comprises the following steps:
the terminal determines network quality based on the network quality parameters of the AP equipment and determines a network signal state based on the network signal state parameters of the AP equipment;
and the terminal selects the first AP equipment based on the network quality, the network signal state and the network requirement of the terminal.
4. The WiFi connection method of claim 3, wherein the terminal selects the first AP network device based on the network quality, the network signal status, and network requirements of the terminal, comprising:
under the condition that the network requirement is that the network quality priority is higher than the network signal state priority, the terminal selects the AP equipment with the highest network quality as first target AP equipment;
and under the condition that the network signal state of the first target AP equipment is larger than or equal to the lowest network signal state, the terminal selects the first target AP equipment as the first AP equipment.
5. The WiFi connection method of claim 4, further comprising:
and under the condition that the network signal state of the first target AP equipment is smaller than the lowest network signal state, the terminal removes the AP identification corresponding to the first target AP equipment from the WiFi hotspot list.
6. The WiFi connection method of claim 5, further comprising: and the terminal reselects the first AP equipment.
7. The WiFi connection method of claim 3, wherein the terminal selects the first AP device based on the network quality, the network signal status, and network requirements of the terminal, further comprising:
under the condition that the network requirement is that the network signal state priority is higher than the network quality priority, the terminal selects the AP equipment with the highest network signal state as second target AP equipment;
and under the condition that the network quality of the second target AP equipment is greater than or equal to the lowest network quality, selecting the second target AP equipment as the first AP equipment.
8. The WiFi connection method of claim 7, further comprising:
and under the condition that the network quality of the second target AP equipment is smaller than the lowest network quality, the terminal removes the AP identification corresponding to the second target AP equipment from the WiFi hot spot list.
9. The WiFi connection method of claim 8, further comprising: and the terminal reselects the first AP equipment.
10. The WiFi connection method according to claims 1 to 9, wherein before the terminal monitors the network parameters of the AP device corresponding to each AP identifier in the WiFi hotspot list, the method further includes:
under the condition of receiving heartbeat detection initiated by the AP equipment, the terminal determines an AP identification of the AP equipment;
and under the condition that the AP mark is a white list, the terminal responds to the heartbeat detection of the AP equipment and records the network parameters of the AP equipment in real time.
11. The WiFi connection method of claim 10, wherein the terminal, after responding to the heartbeat detection of the AP device, further comprises:
the terminal judges whether the AP identification of the AP equipment is in a WiFi hot spot list or not;
and the terminal adds the AP identification of the AP equipment into the WiFi hotspot list under the condition that the AP identification of the AP equipment is not in the WiFi hotspot list.
12. The WiFi connection method of claim 1, wherein the terminal performs WiFi hotspot switching, including:
the terminal is switched from the currently connected AP equipment to the first AP equipment.
13. The WiFi connection method is applied to the AP equipment and comprises the following steps:
under the condition that network connection is established with a terminal, the AP equipment determines the heartbeat detection interval period of other AP equipment of the terminal, wherein the other AP equipment is AP equipment corresponding to other AP identifications except the AP identification of the AP equipment in a WiFi hotspot list of the terminal;
the AP equipment initiates heartbeat detection to the terminal based on the heartbeat detection interval period of the other AP equipment so as to transmit network parameters of the AP equipment to the terminal;
the network parameters are used for the terminal to select the first AP equipment.
14. A WiFi connection device, comprising:
the monitoring unit is used for monitoring network parameters of the AP equipment corresponding to each AP identifier in the WiFi hotspot list by the terminal;
the selecting unit is used for the terminal to select a first AP device based on the network parameters of each AP device and the network requirements of the terminal device;
and the switching unit is used for switching WiFi hot spots by the terminal under the condition that the currently connected AP equipment is not the first AP equipment.
15. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the WiFi connection method of any of claims 1 to 12 or the WiFi connection method of claim 13 when the program is executed.
16. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the WiFi connection method of any of claims 1 to 12 or the WiFi connection method of claim 13.
CN202211436447.4A 2022-11-16 2022-11-16 WiFi connection method, device, equipment and storage medium Pending CN116056188A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211436447.4A CN116056188A (en) 2022-11-16 2022-11-16 WiFi connection method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211436447.4A CN116056188A (en) 2022-11-16 2022-11-16 WiFi connection method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116056188A true CN116056188A (en) 2023-05-02

Family

ID=86118752

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211436447.4A Pending CN116056188A (en) 2022-11-16 2022-11-16 WiFi connection method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116056188A (en)

Similar Documents

Publication Publication Date Title
US11902848B2 (en) WLAN user quality of experience control in a multi-access point environment
US9807653B2 (en) Device and method for basic service set transition management
US10244418B2 (en) Systems and methods for quality of experience measurement and wireless network recommendation
CN105247911B (en) Management device, method of operating management device, and computer recordable medium
US9578573B2 (en) Handoffs between access points in a Wi-Fi environment
US9344908B2 (en) Systems and methods for quality of experience measurement and wireless network recommendation
EP2839610B1 (en) System and method for network detection and selection
EP1516454B1 (en) Load balancing in wireless communication network
US9191874B2 (en) Advanced network characterization and migration
CN107306429B (en) Method and device for connecting network access points
US10470093B2 (en) Connection attempt to alternative access upon connection attempt rejection
US20150043563A1 (en) Method and apparatus for discovering an access point
US9622137B2 (en) Apparatus and method for selecting HO triggers
EP2996396A1 (en) Method and device for interworking between access technology networks
US20150230165A1 (en) Communication apparatus, communication method, non-transitory computer readable medium, and distribution server
US9030997B2 (en) Load-adjustment factor notification method, data rate control (DRC)-pointing determination method, handover determination method and devices thereof
CN116056188A (en) WiFi connection method, device, equipment and storage medium
CN115053550B (en) Improved handoff between physical access points sharing the same virtual access point identifier
CN107306437B (en) Associated message processing device and method
CN116916387A (en) Load balancing method, device and equipment
JP2018056932A (en) Radio base station device, radio communication system, and radio base station device control method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: No. B1337, Chuanggu Initiation Zone, Taizihu Cultural Digital Creative Industry Park, No. 18 Shenlong Avenue, Wuhan Economic and Technological Development Zone, Wuhan, Hubei Province, 430058

Applicant after: Hubei Xingji Meizu Technology Co.,Ltd.

Address before: 430014 No. b1337, chuanggu startup area, taizihu cultural Digital Creative Industry Park, No. 18, Shenlong Avenue, Wuhan Economic and Technological Development Zone, Wuhan, Hubei Province

Applicant before: Hubei Xingji times Technology Co.,Ltd.

CB02 Change of applicant information