Determination method and device of wireless network, electronic equipment and storage medium

By receiving and analyzing the parameters of the wireless network, and utilizing the received signal strength threshold and network parameters, the terminal device can quickly select a wireless network with better network quality, thus solving the problems of long processing time and low efficiency in existing technologies.

CN114567910BActive Publication Date: 2025-12-12BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210170774.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-23
Publication Date
2025-12-12
Estimated Expiration
2042-02-23

AI Technical Summary

Technical Problem

When terminal devices connect to wireless networks, existing technologies require multiple attempts to determine which wireless network has better quality, resulting in a time-consuming and inefficient process.

Method used

By receiving the network parameters of the wireless network, using the preset received signal strength threshold and network parameters, the reference network rate of each wireless network is determined, and the target wireless network is selected based on the reference network rate and other parameters.

Benefits of technology

It improves the accuracy of target wireless network identification, avoids multiple attempts, saves time, and increases efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114567910B_ABST
    Figure CN114567910B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a determination method and device of a wireless network, an electronic device and a storage medium, wherein the method comprises: receiving network parameters sent by a network device of each wireless network currently in a non-connected state; determining a reference network rate of each wireless network according to a preset received signal strength threshold and each first parameter in the network parameters; and determining a current target wireless network according to the reference network rate of each wireless network and each second parameter in the network parameters. Thus, the terminal device can determine the corresponding reference network rate based on the first parameter in the network parameters of the wireless network, and determine the target wireless network with better network quality based on the reference network rate and the second parameter in the network parameters, thereby improving the accuracy of the target wireless network determination, avoiding the process of multiple attempts to determine the target wireless network, saving time and improving efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of communication, and particularly relates to a wireless network determination method and device, electronic equipment and storage medium. BACKGROUND

[0002] In the related art, after a terminal device connects to a certain wireless network, the terminal device can perform network detection. If it is determined through the detection that the network quality of the wireless network is poor and the wireless network cannot be normally used, the terminal device needs to select and connect to the wireless network again. That is, the terminal device may need to try multiple times to determine a wireless network with good network quality when determining a final available wireless network, and the determination process of the wireless network is time-consuming and inefficient. SUMMARY

[0003] The present disclosure aims to at least solve one of the technical problems in the related art to some extent.

[0004] A first aspect of the present disclosure provides a wireless network determination method applied to a terminal device, comprising:

[0005] receiving a network parameter sent by a network device of each wireless network currently in a non-connected state;

[0006] determining a reference network rate of each wireless network according to a preset received signal strength threshold and each first parameter in the network parameter;

[0007] determining a current target wireless network according to the reference network rate of each wireless network and each second parameter in the network parameter.

[0008] Optionally, after determining the current target wireless network, the method further comprises:

[0009] controlling the terminal device to connect to the target wireless network in a case where the terminal device is not in a connected state with any wireless network;

[0010] Alternatively,

[0011] controlling the terminal device to disconnect from a currently connected wireless network and connect to the target wireless network in a case where the network rate of the currently connected wireless network is less than the reference network rate of the target wireless network.

[0012] Optionally, after determining the reference network rate of each wireless network, the method further comprises:

[0013] displaying each wireless network and the corresponding reference network rate in a display interface in a descending order of the reference network rate.

[0014] Optionally, after the step of displaying each wireless network and the corresponding reference network rate in the display interface according to the reference network rate from high to low, the method further comprises:

[0015] In the case that the terminal device is in a connection state with any wireless network, determining an actual network rate of the any wireless network according to a data amount of data transmitted by the terminal device within a preset time period;

[0016] Updating the reference network rate corresponding to the any wireless network in the display interface based on the actual network rate of the any wireless network.

[0017] Optionally, the step of determining the reference network rate of each wireless network according to the preset received signal strength threshold and each first parameter in the network parameter comprises:

[0018] Determining a target transmission rate according to the uplink transmission rate and the downlink transmission rate in the first parameter;

[0019] Determining the reference network rate of each wireless network according to the preset received signal strength threshold, the target transmission rate, and the total bandwidth, the remaining available bandwidth, and the received signal strength in the first parameter.

[0020] Optionally, the step of determining the current target wireless network according to the reference network rate of each wireless network and each second parameter in the network parameter comprises:

[0021] Determining a score corresponding to the wireless network according to a first weight corresponding to the reference network rate and a second weight corresponding to each second parameter;

[0022] Determining the current target wireless network according to the score corresponding to each wireless network.

[0023] Optionally, the step of receiving the network parameter transmitted by the network device of each wireless network currently in a non-connection state comprises:

[0024] Receiving a broadcast data packet corresponding to each wireless network currently in a non-connection state, wherein the network parameter of the wireless network is contained in the data packet;

[0025] Analyzing each data packet to determine the network parameter of each wireless network.

[0026] Optionally, the step of receiving the network parameter transmitted by the network device of each wireless network currently in a non-connection state comprises:

[0027] Sending a probe request frame to each wireless network currently in a non-connection state;

[0028] receiving a probe response frame returned by a network device of each of the wireless networks;

[0029] parsing each of the probe response frames to determine network parameters of each of the wireless networks.

[0030] Optionally, the sending of the probe request frame to each of the wireless networks currently in the non-connected state comprises:

[0031] sending the probe request frame to each of the wireless networks currently in the non-connected state in a case where a network rate of the wireless network currently in the connected state is less than a threshold value.

[0032] A second aspect embodiment of the present disclosure provides a determination method of a wireless network, applied to a network device, comprising:

[0033] determining network parameters of the wireless network;

[0034] sending the network parameters to a terminal device, so that the terminal device determines a reference network rate of the wireless network according to the received network parameters, and determines a target wireless network according to the reference network rate and the network parameters.

[0035] Optionally, before the sending of the network parameters to the terminal device, the method further comprises:

[0036] receiving a probe request frame sent by the terminal device;

[0037] The sending of the network parameters to the terminal device comprises:

[0038] sending the network parameters to the terminal device through a probe response frame.

[0039] A third aspect embodiment of the present disclosure provides a determination apparatus of a wireless network, configured at a terminal device side, comprising:

[0040] a receiving module, configured to receive network parameters sent by a network device of each of the wireless networks currently in a non-connected state;

[0041] a first determining module, configured to determine a reference network rate of each of the wireless networks according to a preset received signal strength threshold and each first parameter in the network parameters;

[0042] a second determining module, configured to determine a current target wireless network according to the reference network rate of each of the wireless networks and each second parameter in the network parameters.

[0043] Optionally, the apparatus further comprises:

[0044] The display module is configured to display each of the wireless networks and the corresponding reference network rate on a display interface in a descending order of the reference network rates.

[0045] Optionally, the method further comprises:

[0046] The third determining module is configured to determine an actual network rate of any wireless network in a connected state according to a data amount of data transmitted by the terminal device within a preset time period.

[0047] The updating module is configured to update the reference network rate corresponding to the any wireless network in the display interface based on the actual network rate of the any wireless network.

[0048] Optionally, the method further comprises a connecting module configured to:

[0049] In a case where the terminal device is not in the connected state with any wireless network, the terminal device is controlled to connect to the target wireless network.

[0050] Alternatively,

[0051] In a case where the network rate of the wireless network currently connected by the terminal device is less than the reference network rate of the target wireless network, the terminal device is controlled to disconnect the connection with the currently connected wireless network and connect to the target wireless network.

[0052] The fourth aspect of the present disclosure provides a determining device of a wireless network, configured on a network device side, comprising:

[0053] The determining module is configured to determine a network parameter of a wireless network.

[0054] The sending module is configured to send the network parameter to a terminal device, so that the terminal device determines a reference network rate of the wireless network according to the received network parameter, and determines a target wireless network according to the reference network rate and the network parameter.

[0055] The fifth aspect of the present disclosure provides an electronic device, comprising: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured to invoke and execute the executable instructions stored in the memory to implement the determining method of the wireless network according to the first aspect of the present disclosure, or implement the determining method of the wireless network according to the second aspect of the present disclosure.

[0056] The sixth aspect of the present disclosure provides a non-transitory computer readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the wireless network determination method of the first aspect of the present disclosure, or perform the wireless network determination method of the second aspect of the present disclosure.

[0057] The seventh aspect of the present disclosure provides a computer program product, when the computer program is executed by a processor of an electronic device, the electronic device is enabled to perform the wireless network determination method of the first aspect of the present disclosure, or perform the wireless network determination method of the second aspect of the present disclosure.

[0058] The wireless network determination method, apparatus, electronic device and storage medium provided by the present disclosure can first receive the network parameters sent by the network device of each wireless network currently in a non-connected state, then determine the reference network rate of each wireless network according to the preset received signal strength threshold and each first parameter in the network parameters, and then determine the current target wireless network according to the reference network rate of each wireless network and each second parameter in the network parameters. Therefore, the terminal device can first determine the corresponding reference network rate based on the first parameter in the network parameters of the wireless network, and then determine the target wireless network with better network quality based on the reference network rate and the second parameter in the network parameters, thereby improving the accuracy of target wireless network determination, avoiding the process of multiple attempts to determine the target wireless network, saving time and improving efficiency.

[0059] Additional aspects and advantages of the present disclosure will be in part apparent and in part pointed out hereinafter. BRIEF DESCRIPTION OF DRAWINGS

[0060] Figure 1 is a flowchart of a wireless network determination method according to an embodiment of the present disclosure;

[0061] Figure 2 is a flowchart of a wireless network determination method according to an embodiment of the present disclosure;

[0062] Figure 2A is a schematic diagram of a display interface of a terminal device according to an embodiment of the present disclosure;

[0063] Figure 2B is a schematic diagram of a display interface of a terminal device according to an embodiment of the present disclosure;

[0064] Figure 3 is a flowchart of a wireless network determination method according to an embodiment of the present disclosure;

[0065] Figure 4 is a flowchart of a determination method of a wireless network according to an embodiment of the present disclosure;

[0066] Figure 4A is a schematic diagram of a determination process of a wireless network according to an embodiment of the present disclosure;

[0067] Figure 5 is a structural schematic diagram of a determination apparatus of a wireless network according to an embodiment of the present disclosure;

[0068] Figure 6 is a structural schematic diagram of a determination apparatus of a wireless network according to an embodiment of the present disclosure;

[0069] Figure 7 is a structural schematic diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0070] Embodiments of the present disclosure are described in detail below with reference to the accompanying drawings. The embodiments described below are exemplary and are intended to explain the present disclosure, and are not understood as limiting the present disclosure.

[0071] A determination method, apparatus, electronic device and storage medium of a wireless network according to an embodiment of the present disclosure are described below with reference to the accompanying drawings.

[0072] The determination method of a wireless network according to an embodiment of the present disclosure can be executed by a determination apparatus of a wireless network provided by an embodiment of the present disclosure, and the apparatus can be configured in an electronic device.

[0073] Figure 1 A flowchart of a determination method of a wireless network according to an embodiment of the present disclosure is provided, and the method can be executed by a terminal device.

[0074] As shown in the figure, the determination method of a wireless network can include the following steps: Figure 1

[0075] Step 101, receiving network parameters of each wireless network currently in a non-connected state.

[0076] The wireless network in a non-connected state can be any unconnected wireless network within a searchable range of the terminal device, and the like, which is not limited by the present disclosure.

[0077] ​In addition, the network parameter can be various, such as a parameter that can be used to represent the network performance of the wireless network, such as the uplink transmission rate (tx speed), the downlink transmission rate (rx speed), the total bandwidth, the remaining bandwidth, and the like of the wireless network, or can also be other parameters irrelevant to the network performance, such as the encryption mode, the received signal strength indicator (RSSI), and the like of the wireless network, that is, the network parameter can at least include one of the uplink rate, the downlink rate, the total bandwidth, the remaining bandwidth, and the received signal strength, and the present disclosure does not make any limitation in this regard.

[0078] It can be understood that the network parameter received by the terminal device can be determined by the network device of the wireless network after the network device performs the speed test on the wireless network, and then the network device can send the determined network parameter of the wireless network to the terminal device. Wherein, the network device can periodically broadcast the measured network parameter to the terminal device, or can also send the determined network parameter to the terminal device through the probe response frame after receiving the probe request frame sent by the terminal device, and the like, and the present disclosure does not make any limitation in this regard.

[0079] In step 102, the reference network rate of each wireless network is determined according to the preset received signal strength threshold and each first parameter in the network parameter.

[0080] Wherein, the first parameter in the network parameter can be one or multiple, and the present disclosure does not make any limitation in this regard.

[0081] For example, the first parameter in the network parameter can be one or more of the uplink transmission rate, the downlink transmission rate, the total bandwidth, the remaining bandwidth, and the received signal strength, and the present disclosure does not make any limitation in this regard.

[0082] It can be understood that after the network parameter of the wireless network in the non-connected state is obtained, the reference network rate of the wireless network can be determined according to the attenuation of the signal strength to the network quality.

[0083] Optionally, the target transmission rate can be determined according to the uplink transmission rate and the downlink transmission rate in the network parameter, and then the reference network rate of each wireless network can be determined according to the preset received signal strength threshold, the target transmission rate, and the total bandwidth, the remaining bandwidth, and the received signal strength in the network parameter.

[0084] For example, the uplink transmission rate and the downlink transmission rate in the network parameters can be compared first, and the maximum value of the two is determined as the target transmission rate. For example, if the uplink transmission rate in the network parameters is 2 megabits per second (M / s), and the downlink transmission rate is 0.8 M / s, the uplink transmission rate of 2 M / s can be determined as the target transmission rate. The present disclosure does not make any limitation on this.

[0085] For example, if the first parameter in the network parameters is the uplink transmission rate and the downlink transmission rate, the total bandwidth, the remaining available bandwidth, and the received signal strength, the target transmission rate can be determined according to the uplink transmission rate and the downlink transmission rate in the network parameters first, and then the reference network rate of each wireless network can be determined according to the preset received signal strength threshold, the target transmission rate, and the total bandwidth, the remaining available bandwidth, and the received signal strength in the network parameters. The above process can be represented by the following formula (1), and the reference network rate of the wireless network can be represented as:

[0086]

[0087] wherein predict speed is the reference network rate of the wireless network, tx speed is the uplink transmission rate of the wireless network, rx speed is the downlink transmission rate of the wireless network, bandwidth is the total bandwidth of the wireless network, remaining bandwidth is the remaining available bandwidth of the wireless network, RSSI is the received signal strength of the wireless network, RSSI max is the preset received signal strength threshold.

[0088] It can be understood that the value of RSSI max may be set in advance according to the communication standard or protocol, or may be adjusted according to the actual communication situation, and the present disclosure does not make any limitation on this.

[0089] It should be noted that the above examples are only illustrative and cannot be regarded as a limitation on the way of determining the reference network rate of the wireless network in the embodiments of the present disclosure.

[0090] Step 103, determining the current target wireless network according to the reference network rate of each wireless network and each second parameter in the network parameters.

[0091] The second parameter in the network parameters can be one or more, such as one or more of the received signal strength, the encryption mode of the wireless network, the uplink rate of the link layer, the downlink rate, etc., and the present disclosure does not make any limitation on this.

[0092] Optionally, the second parameter in the network parameters can be partially coincident with the first parameter in the network parameters, or can not be coincident, that is, the first parameter and the second parameter are not completely coincident. For example, each first parameter in the network parameters can be: uplink transmission rate, downlink transmission rate, and received signal strength; and each second parameter in the network parameters can be: encryption mode of the wireless network and received signal strength. The present disclosure does not limit this.

[0093] For example, in the case where the second parameter in the network parameters is: received signal strength and encryption mode of the wireless network, if the reference network rate of the wireless network 1 currently in the non-connected state is: 2.5 M / s, the reference network rate of the wireless network 2 is: 2.45 M / s; the received signal strength of the wireless network 1 is less than that of the wireless network 2; the encryption mode of the wireless network 1 is: wireless fidelity (WiFi) protected access (WPA), and the encryption mode of the wireless network 2 is: wired equivalent privacy (WEP). Since the cracking difficulty of WPA is higher than that of WEP, and the received signal strength of the wireless network 2 is greater than that of the wireless network 1, the reference network rate of the wireless network 1 is: 2.5 M / s, and the reference network rate of the wireless network 2 is: 2.45 M / s, the wireless network 2 can be determined as the current target wireless network.

[0094] It should be noted that the above examples are only illustrative and cannot be used as a limitation on the reference network rate, the second parameter in the network parameters, and the like in the embodiments of the present disclosure.

[0095] It can be understood that in the process of determining the target wireless network, the reference network rate and the second parameter of each wireless network are fully considered, so that the network quality of the determined target wireless network is good, the accuracy and reliability of the determination of the target wireless network are improved, and the time-consuming for determining the wireless network is saved. Optionally, when the current target wireless network is determined, the terminal device can also be controlled to connect to the target wireless network, so as to ensure that the terminal device can connect to the wireless network with good network quality, and further improve the quality of network communication of the terminal device.

[0096] The embodiment of the present disclosure can first receive the network parameters sent by the network device of each wireless network currently in a non-connected state, then determine the reference network rate of each wireless network according to the preset receiving signal strength threshold and each first parameter in the network parameters, and then determine the current target wireless network according to the reference network rate of each wireless network and each second parameter in the network parameters. Therefore, the terminal device can first determine the corresponding reference network rate based on the first parameter in the network parameters of the wireless network, and then determine the target wireless network with better network quality based on the reference network rate and the second parameter in the network parameters, thereby improving the accuracy of determining the target wireless network, avoiding the process of trying multiple times to determine the target wireless network, saving time, and improving efficiency.

[0097] Figure 2 A flowchart of a wireless network determination method is provided for the embodiment of the present disclosure, which can be executed by a terminal device. As shown in Figure 2 The wireless network determination method can include the following steps:

[0098] Step 201, receiving a broadcast data packet corresponding to each wireless network currently in a non-connected state, wherein the data packet contains network parameters of the wireless network.

[0099] The network parameters can include parameters for representing network performance.

[0100] Optionally, the network device of the wireless network can periodically broadcast the network parameters, so that the terminal device can listen to each wireless network currently in a non-connected state to obtain the broadcast data packet corresponding to the wireless network.

[0101] The type of the data packet can be configured for the network device, or can also be agreed in advance between the network device and the terminal device; for example, it can be a beacon frame, or it can also be other types of data packets, etc., which are not limited by the present disclosure.

[0102] For example, in the case of a data packet containing network parameters of a wireless network being a beacon frame, if the terminal device determines that the wireless networks currently in a non-connected state are wireless network 1, wireless network 2 and wireless network 3 respectively. Then the terminal device can listen to wireless network 1, wireless network 2 and wireless network 3 to obtain the beacon frame 1 broadcasted by wireless network 1, the beacon frame 2 broadcasted by wireless network 2 and the beacon frame 3 broadcasted by wireless network 3.

[0103] It should be noted that the above example is only illustrative and cannot be regarded as a limitation on the wireless network and data packet in the embodiment of the present disclosure.

[0104] At step 202, each data packet is parsed to determine the network parameters of each wireless network.

[0105] Optionally, the network device and the terminal device can agree in advance to add a new field in the data packet to represent the network parameters of the wireless network. Thus, after receiving the data packet broadcast by the wireless network, the terminal device can determine the network parameters of the wireless network by parsing the new field in the data packet.

[0106] For example, if the data packet is a beacon frame, it is agreed that the new field in the beacon frame is used to represent the network parameters of the wireless network. If the terminal device listens to the beacon frame of the wireless network 1 currently in the non-connected state, the terminal device can then parse the new field in the beacon frame to determine the network parameters of the wireless network 1, and the like. The present disclosure does not limit this.

[0107] At step 203, the reference network rate of each wireless network is determined according to the preset receiving signal strength threshold and each first parameter in the network parameters.

[0108] It should be noted that the specific content and implementation of step 203 can refer to the description of other embodiments of the present disclosure, which will not be repeated here.

[0109] At step 204, each wireless network and the corresponding reference network rate are displayed on the display interface in the order of the reference network rate from high to low.

[0110] For example, the reference network rate of the wireless network 1 "AAA" is 1.5M / s, the reference network rate of the wireless network 2 "BBB" is 2.1M / s, and the reference network rate of the wireless network 3 "CCC" is 0.6M / s. Thus, each wireless network and the reference network rate can be displayed on the display interface in the order of the reference network rate from high to low, i.e., the wireless network 2 "BBB", 2.1M / s; the wireless network 1 "AAA", 1.5M / s; and the wireless network 3 "CCC", 0.6M / s. The schematic diagram of the display interface can be as shown in FIG. 2B. Figure 2A

[0111] It should be noted that the above example is only illustrative and cannot be regarded as a limitation on the wireless network and the reference network rate in the embodiments of the present disclosure.

[0112] It can be understood that by displaying the wireless network and the reference network rate, the network quality of each wireless network can be clearly and intuitively understood, which facilitates the user to independently switch and select the wireless network, improves the efficiency and accuracy of the user to switch the wireless network, saves the user time, and improves the user experience.

[0113] ​Step 205: Determine the current target wireless network based on the reference network rate of each wireless network and each of the second parameters in the network parameters.

[0114] It should be noted that the specific content and implementation method of step 205 can be referred to the descriptions of other embodiments of this disclosure, and will not be repeated here.

[0115] Optionally, when connected to any wireless network, the actual network speed of any wireless network can be determined based on the amount of data transmitted by the terminal device within a preset time period. Then, the reference network speed corresponding to any wireless network can be updated in the display interface based on the actual network speed of that wireless network.

[0116] The preset time period can be a pre-set duration, such as 60 seconds, 300 seconds, etc., and this disclosure does not limit it.

[0117] Understandably, after a terminal device successfully connects to any wireless network, it can update the reference network speed based on the actual network speed of that wireless network, so that the network speed displayed on the interface is more accurate and reliable.

[0118] For example, if a terminal device is connected to any wireless network "WWW", and the data volume of the terminal device within a preset time period T is N, then the actual network speed of that wireless network "WWW" can be expressed as: v = N / T. The reference network speed corresponding to that wireless network "WWW" can then be updated to v in the display interface. If v is 3.3 M / s, the updated display interface diagram can be as follows: Figure 2B As shown. By Figure 2B It can be seen that the network speed of the currently connected wireless network "WWW" is 3.3M / s, and the reference network speed of the nearby wireless network "BBB" which is in a disconnected state is 1.5M / s, and the reference network speed of the wireless network "CCC" is 0.6M / s.

[0119] It should be noted that the above examples are merely illustrative and should not be construed as limiting the methods for determining the actual network speed of the wireless network in the embodiments of this disclosure.

[0120] The embodiment of the present disclosure can first acquire the broadcast data packet corresponding to each wireless network currently in a non-connected state, then analyze each data packet to determine the network parameters of each wireless network, then determine the reference network rate of each wireless network according to the preset receiving signal strength threshold and each first parameter in the network parameters, and then display each wireless network and the corresponding reference network rate on the display interface in the order of the reference network rate from high to low. Thus, by analyzing the received data packet, the network parameters of each wireless network can be determined, and then the reference network rate corresponding to the wireless network can be determined according to the first parameter of the network parameters, and each wireless network is displayed based on the reference network rate, that is, in the process of determining the target wireless network, the network state of the wireless network is fully considered, and then the target wireless network with good network quality can be determined, thereby improving the accuracy of determining the target wireless network, avoiding the process of trying multiple times to determine the target wireless network, saving time, and improving efficiency.

[0121] Figure 3 A flowchart of a wireless network determination method provided by the embodiment of the present disclosure is provided. The method can be executed by a terminal device. As shown in the figure, Figure 3 The wireless network determination method can include the following steps:

[0122] Step 301: Send a probe request frame to each wireless network currently in a non-connected state.

[0123] The terminal device can periodically send a probe request frame to the network device of each wireless network currently in a non-connected state, or can send a probe request frame to the network device of each wireless network currently in a non-connected state as needed, etc., which is not limited by the present disclosure.

[0124] For example, the terminal device can send a probe request frame in the channel list it supports according to a set period to scan the wireless network. Or, in the case of the terminal device configuring a wireless network it wants to connect to or having successfully connected to a certain wireless network, a probe request frame can also be sent to actively scan the specified wireless network, etc., which is not limited by the present disclosure.

[0125] Optionally, in the case where the network rate of the wireless network currently in a connected state is less than a threshold value, a probe request frame is sent to each wireless network currently in a non-connected state.

[0126] The threshold value can be a value set in advance, such as 3.5M / s, 5M / s, etc., which is not limited by the present disclosure.

[0127] For example, the threshold is 2M / s, the terminal device is successfully connected with the wireless network 1, the network rate of the wireless network 1 is 0.65M / s, which is less than the threshold 2M / s, and it can be considered that the network quality of the wireless network 1 can be poor, at this time, the probe request frame can be sent to each wireless network currently in the non-connected state. For example, the current wireless network 2 is currently in the non-connected state, and the probe request frame can be sent to the network device of the wireless network 2, and the like.

[0128] It should be noted that the above examples are only illustrative and cannot be regarded as a limitation on the threshold, network rate, wireless network and the like in the embodiments of the present disclosure.

[0129] In step 302, the probe response frame returned by the network device of each wireless network is received.

[0130] It can be understood that after the terminal device sends the probe request frame to the network device of any wireless network, the terminal device can listen to the wireless network to receive the probe response frame returned by the network device of the wireless network.

[0131] Optionally, the network device in the embodiments of the present disclosure can be an entity for transmitting or receiving signals on the network side. For example, the network device can be an evolved NodeB (eNB), a transmission reception point (TRP), a next generation NodeB (gNB) in an NR system, a base station in other future mobile communication systems, or an access node in a wireless fidelity (WiFi) system. The embodiments of the present disclosure do not limit the specific technology and specific device form of the network device.

[0132] Optionally, the terminal device in the present disclosure can be an entity for receiving or transmitting signals on the user side, such as a mobile phone. It can be understood that the terminal device (terminal) can also be referred to as a user equipment (user equipment, UE), a mobile station (mobile station, MS), a mobile terminal (mobile terminal, MT), etc. The terminal device can be a car, a smart car, a mobile phone, a wearable device, a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (virtual reality, VR) terminal device, an augmented reality (augmented reality, AR) terminal device, a wireless terminal device in industrial control, a wireless terminal device in self-driving, a wireless terminal device in remote medical surgery, a wireless terminal device in smart grid, a wireless terminal device in transportation safety, a wireless terminal device in smart city, a wireless terminal device in smart home, etc. The embodiments of the present disclosure do not limit the specific technology and specific device form of the terminal device.

[0133] Step 303, parsing each probe response frame to determine the network parameters of each wireless network.

[0134] Optionally, a new field can be added in the probe response frame to represent the network parameters of the wireless network; or a specific field in the probe response frame can be used to represent the network parameters of the wireless network, etc. The above-mentioned specific field can be configured by the network device, or can be agreed by the network device and the terminal device, etc. The present disclosure does not limit this.

[0135] For example, the network device and the terminal device agree that a specific field in the probe response frame is used to represent the network parameters of the wireless network. Therefore, after the terminal device receives the probe response frame returned by the network device of the wireless network, the network parameters corresponding to the wireless network can be determined by parsing the specific field in the probe response frame, etc. The present disclosure does not limit this.

[0136] Step 304, determining the reference network rate of each wireless network according to the preset receiving signal strength threshold and each first parameter in the network parameters.

[0137] Step 305, determining the score corresponding to the wireless network according to the first weight corresponding to the reference network rate and the second weight corresponding to each second parameter.

[0138] The first weight corresponding to the reference network rate and the second weight corresponding to each second parameter can be set in advance or adjusted according to actual conditions, and the present disclosure does not limit this.

[0139] For example, in the case where the second parameter is the received signal strength, the first weight corresponding to the reference network rate can be set as 0.7, and the second weight of the received signal strength can be set as 0.3. If the received signal strength of the wireless network 1 currently in the non-connected state is a, the reference network rate is 3M / s, the received signal strength of the wireless network 2 is a, and the reference network rate is 1M / s, the score of the wireless network 1 can be determined as 3*0.7+0.3*a, and the score of the wireless network 2 can be determined as 1*0.7+0.3*a.

[0140] Alternatively, in the case where the second parameter is the received signal strength and the encryption mode of the wireless network, the first weight corresponding to the reference network rate can be set as 0.6, the second weight corresponding to the received signal strength can be set as 0.25, and the second weight corresponding to the encryption mode of the wireless network can be set as 0.15. Then, the reference network rate corresponding to the wireless network currently in the non-connected state, each second parameter, and the respective corresponding weight can be weighted and fused to determine the score corresponding to each wireless network.

[0141] It should be noted that the above examples are only illustrative and cannot be used as a limitation on the first weight of the reference network rate, the second weight of the second parameter, and the manner of determining the score corresponding to the wireless network in the embodiments of the present disclosure.

[0142] In step 306, the target wireless network is determined according to the score corresponding to each wireless network.

[0143] It can be understood that after determining the score corresponding to each wireless network, the target wireless network can be determined from the plurality of wireless networks according to the score corresponding to each wireless network.

[0144] Optionally, the wireless network with the highest score in the plurality of wireless networks can be determined as the target wireless network. Alternatively, a score threshold can be set in advance, and each wireless network with a score greater than the score threshold can be determined as a wireless network to be selected. Then, any wireless network can be selected from the wireless network to be selected as the target wireless network. Alternatively, the plurality of wireless networks can also be sorted according to the size of the score, and any wireless network can be selected from the first preset number of wireless networks as the target wireless network.

[0145] It should be noted that the above examples are only illustrative and cannot be used as a limitation on the manner of determining the target wireless network in the embodiments of the present disclosure.

[0146] In step 307, if the terminal device is not connected to any wireless network, the terminal device is controlled to connect to the target wireless network.

[0147] It can be understood that after the target wireless network is determined, if the terminal device is not connected to any wireless network, the terminal device is controlled to connect to the target wireless network, and the network quality of the target wireless network is better, so that if the terminal device is connected to the target wireless network, the network quality of the connection can be ensured to be better, and the process of selecting a wireless network by the terminal device can be reduced, and the accuracy and efficiency of the wireless network connection can be improved.

[0148] Optionally, if the network rate of the wireless network currently connected by the terminal device is less than the reference network rate of the target wireless network, the terminal device is controlled to disconnect from the currently connected wireless network and connect to the target wireless network.

[0149] For example, if the reference network rate of the target wireless network is 3.8 M / s, and the network rate of the wireless network 1 currently connected by the terminal device is 0.9 M / s, it can be determined that the network quality of the currently connected wireless network 1 can be poor, and the connected wireless network can be switched, for example, the connection with the wireless network 1 is disconnected, and the target wireless network is connected, so that the network quality of the wireless network connected to the terminal device can be better.

[0150] It should be noted that the above examples are only illustrative, and cannot be regarded as a limitation on the reference network rate, the network rate of any wireless network, and the like in the embodiments of the present disclosure.

[0151] The embodiment of the present disclosure can first send a probe request frame to each wireless network currently in a non-connected state, then receive a probe response frame returned by a network device of each wireless network, analyze each probe response frame to determine network parameters of each wireless network, then determine a reference network rate of each wireless network according to a preset receiving signal strength threshold and each first parameter in the network parameters, determine a score corresponding to the wireless network according to a first weight corresponding to the reference network rate and a second weight corresponding to each second parameter, then determine a current target wireless network according to the score corresponding to each wireless network, and then control the terminal device to connect to the target wireless network in the case that the terminal device is not in a connected state with any wireless network. Thus, by sending a probe request frame to a wireless network and analyzing a received probe response frame, the network parameters of each wireless network can be determined, then the reference network rate corresponding to the wireless network can be determined according to the first parameters in the network parameters, and the target wireless network with better network quality can be determined based on the weight of the reference network rate and the weight of the second parameters in the network parameters, and then connected, thereby improving the accuracy of target wireless network determination and connection, avoiding the process of trying to connect to the target wireless network multiple times, saving time and improving efficiency.

[0152] Figure 4 A flowchart of a wireless network determination method provided by the embodiment of the present disclosure is shown in the figure. The method can be executed by a network device. As shown in the figure, the wireless network determination method can include the following steps: Figure 4

[0153] Step 401, determining network parameters of a wireless network.

[0154] The network parameters can be various, such as parameters representing network performance of the wireless network, such as uplink transmission rate, downlink transmission rate, or total bandwidth, remaining available bandwidth, receiving signal strength, etc., which are not limited by the present disclosure.

[0155] Optionally, the network device can first monitor the network state to obtain the total bandwidth and the used bandwidth of the wireless network, then subtract the used bandwidth from the total bandwidth, and the obtained value is the remaining available bandwidth, etc., which are not limited by the present disclosure.

[0156] Optionally, the network device can detect the network state according to a set period to obtain the network parameters of the wireless network, or can detect the network state as needed to obtain the network parameters of the wireless network, etc., which are not limited by the present disclosure.

[0157] ​At step 402, the network parameter is sent to the terminal device, so that the terminal device determines the reference network rate of the wireless network according to the received network parameter, and determines the target wireless network according to the reference network rate and the network parameter.

[0158] Wherein, after the network device determines the network parameter of the wireless network, the network device can send the network parameter to the terminal device, so that the terminal device can determine the reference network rate of the wireless network based on the received network parameter, and then determine the target wireless network to be connected according to the reference network rate of each wireless network and the network parameter, to connect the target wireless network. The present disclosure does not limit this.

[0159] Optionally, the network parameter can be sent to the terminal device according to the set period.

[0160] For example, if the set period is 3 minutes, the network device can detect the network state of the wireless network every 3 minutes to obtain the corresponding network parameter, and then send the network parameter to the terminal device. Alternatively, if the set period is 100 seconds, the network device can send the obtained network parameter to the terminal device every 100 seconds.

[0161] It should be noted that the above examples are only illustrative and cannot be regarded as a limitation on the set period and the like in the embodiments of the present disclosure.

[0162] Optionally, the network parameter can be sent to the terminal device through a broadcast data packet.

[0163] Wherein, the network device can be configured to add a field in the data packet to represent the network parameter of the wireless network, or the network device and the terminal device can agree in advance to represent the network parameter of the wireless network through a specific field in the data packet, and the like, which are not limited by the present disclosure.

[0164] Optionally, the data packet can be a beacon frame, or it can be another set data packet, and the like, which are not limited by the present disclosure.

[0165] For example, after the network device determines the network parameter of the wireless network, the network device can add a specific field in the beacon frame to represent the network parameter of the wireless network, and then broadcast the beacon frame, so that the terminal device listens to the data packet broadcast by the network device to obtain the network parameter of the wireless network, and the like, which are not limited by the present disclosure.

[0166] Optionally, after receiving the probe request frame sent by the terminal device, the network device can also determine the network parameter of the wireless network, and then send the network parameter to the terminal device through a probe response frame.

[0167] It can be understood that the network device can also add a field in the probe response frame to represent the network parameters of the wireless network, and the present disclosure does not limit this.

[0168] For example, after receiving the probe request frame sent by the terminal device, the network device can monitor the network status of the wireless network to determine the network parameters, then add a field in the probe response frame to represent the network parameters of the wireless network, and then send the probe response frame to the terminal device, so that the terminal device can obtain the network parameters of the wireless network by analyzing the probe response frame. The present disclosure does not limit this.

[0169] The determination method of the wireless network provided by the present disclosure can be applied to any wireless network connection scenario. The following will illustrate the determination process of the wireless network provided by the present disclosure with reference to the schematic diagram shown in FIG. 1. Figure 4A

[0170] Firstly, the network device can periodically monitor the network status of the wireless network, such as first performing the detection of the external network rate and the calculation of the remaining available bandwidth, then carrying the determined network parameters such as the uplink rate, the downlink rate, the total bandwidth and the remaining available bandwidth into the beacon or the probe response, and sending them to the terminal device. During the scanning and listening process, the terminal device can receive the beacon or the probe response sent by the network device, and then obtain the network parameters corresponding to the wireless network by analyzing them. Then, the terminal device can determine the reference network rate of the wireless network based on the network parameters and the attenuation of the signal strength of the network quality in the case of not being connected to the wireless network, and then display each wireless network and the reference network rate on the display interface in the order of the reference network rate from high to low. Then, the reference network rate can also be added to the automatic network selection algorithm according to a certain weight, so that when automatically switching the connection and roaming, the target wireless network can be determined according to the new automatic network selection algorithm, so as to select and connect to the target wireless network with the best network quality. After the terminal device is connected to the target wireless network, the actual network rate of the target wireless network can be further determined, and the reference network rate can be updated by using the actual network rate.

[0171] It should be noted that the above examples are only illustrative and cannot be regarded as a limitation on the determination process of the wireless network in the embodiments of the present disclosure.

[0172] ​The network device can determine the network parameters of the wireless networks first, and then send the network parameters to the terminal device, so that the terminal device can determine the reference network rates of the wireless networks based on the received network parameters, and thus the terminal device can fully consider the network states of the wireless networks when determining the target wireless network to be connected, so as to determine the target wireless network with better network quality, thereby providing conditions for improving the accuracy and efficiency of wireless network connection.

[0173] The embodiment of the present disclosure further provides a wireless network determination apparatus configured at the terminal device side, Figure 5 is a structural schematic diagram of the wireless network determination apparatus according to the embodiment of the present disclosure.

[0174] As Figure 5 shown, the wireless network determination apparatus 500 includes a receiving module 510, a first determination module 520 and a second determination module 530.

[0175] The obtaining module 510 is configured to receive the network parameters sent by the network device of each wireless network currently in a non-connected state.

[0176] The first determination module 520 is configured to determine the reference network rate of each wireless network according to a preset received signal strength threshold and each first parameter in the network parameters.

[0177] The second determination module 530 is configured to determine the current target wireless network according to the reference network rate of each wireless network and each second parameter in the network parameters.

[0178] Optionally, the apparatus further includes a connecting module configured to:

[0179] In the case that the terminal device is not in a connected state with any wireless network, the connecting module controls the terminal device to connect with the target wireless network.

[0180] Alternatively,

[0181] In the case that the network rate of the wireless network currently connected by the terminal device is less than the reference network rate of the target wireless network, the connecting module controls the terminal device to disconnect the connection with the wireless network currently connected and connect with the target wireless network.

[0182] Optionally, the apparatus further includes:

[0183] The display module is configured to display each wireless network and the corresponding reference network rate on a display interface in the order of reference network rate from high to low.

[0184] Optionally, the apparatus further includes:

[0185] a third determining module, configured to determine an actual network rate of any wireless network according to a data amount of data transmitted by a terminal device within a preset time period, in a case that the terminal device is in a connection state with the any wireless network;

[0186] an updating module, configured to update a reference network rate corresponding to the any wireless network in a display interface based on the actual network rate of the any wireless network.

[0187] Optionally, the first determining module 520 is specifically configured to:

[0188] determine a target transmission rate according to the uplink transmission rate and the downlink transmission rate in the first parameter;

[0189] determine a reference network rate of each wireless network according to a preset received signal strength threshold, the target transmission rate, and the total bandwidth, the remaining available bandwidth, and the received signal strength in the first parameter.

[0190] Optionally, the second determining module 530 is specifically configured to:

[0191] determine a score corresponding to the wireless network according to a first weight corresponding to the reference network rate and a second weight corresponding to each second parameter;

[0192] determine a current target wireless network according to the score corresponding to each wireless network.

[0193] Optionally, the receiving module 510 is specifically configured to:

[0194] receive a broadcast data packet corresponding to each wireless network currently in a non-connection state, wherein the data packet contains network parameters of the wireless network;

[0195] analyze each data packet to determine the network parameters of each wireless network.

[0196] Optionally, the receiving module 510 comprises:

[0197] a sending unit, configured to send a probe request frame to each wireless network currently in a non-connection state;

[0198] a receiving unit, configured to receive a probe response frame returned by a network device of each wireless network;

[0199] a determining unit, configured to analyze each probe response frame to determine network parameters of each wireless network.

[0200] Optionally, the sending unit is specifically configured to:

[0201] In a case where a network rate of a wireless network currently in a connected state is less than a threshold value, a probe request frame is sent to each wireless network currently in a non-connected state.

[0202] The functions and specific implementation principles of the above modules in the embodiments of the present disclosure can be referred to the above method embodiments, which will not be described here.

[0203] The determining apparatus of the wireless network in the embodiments of the present disclosure can first receive the network parameters sent by the network device of each wireless network currently in a non-connected state, and then determine the reference network rate of each wireless network according to the preset received signal strength threshold and each first parameter in the network parameters, and then determine the current target wireless network according to the reference network rate of each wireless network and each second parameter in the network parameters. Thus, the terminal device can first determine the corresponding reference network rate based on the first parameter in the network parameters of the wireless network, and then determine the target wireless network with better network quality based on the reference network rate and the second parameter in the network parameters, thereby improving the accuracy of the target wireless network determination, avoiding the process of multiple attempts to determine the target wireless network, saving time, and improving efficiency.

[0204] Figure 6 is a structural schematic diagram of the determining apparatus of the wireless network according to the embodiments of the present disclosure, which is configured at the network device side.

[0205] As shown in Figure 6 the determining apparatus 600 of the wireless network includes a determining module 610 and a sending module 620.

[0206] The determining module 610 is configured to determine the network parameters of the wireless network.

[0207] The sending module 620 is configured to send the network parameters to the terminal device, so that the terminal device determines the reference network rate of the wireless network according to the received network parameters, and determines the target wireless network according to the reference network rate and the network parameters.

[0208] Optionally, the sending module 620 is specifically configured to:

[0209] send the network parameters to the terminal device according to a set period.

[0210] Optionally, the sending module 620 is further specifically configured to:

[0211] send the network parameters to the terminal device through a broadcast data packet.

[0212] Optionally, further comprising:

[0213] The receiving module is configured to receive a probe request frame sent by the terminal device.

[0214] The sending module 620 is specifically configured to send the network parameter to the terminal device through a probe response frame.

[0215] The functions and specific implementation principles of the above modules in the embodiments of the present disclosure can refer to the above method embodiments, which will not be described here.

[0216] The determination apparatus of the wireless network in the embodiments of the present disclosure, the network device can first determine the network parameter of the wireless network, and then can send the network parameter to the terminal device, so that the terminal device can determine the reference network rate of each wireless network based on the received network parameter, thereby making the terminal device fully consider the network state of each wireless network in the process of determining the target wireless network to be connected, so as to determine the target wireless network with better network quality, thereby providing conditions for improving the accuracy and efficiency of wireless network connection.

[0217] Figure 7 is a structural block diagram of an electronic device according to the embodiments of the present disclosure.

[0218] As shown in Figure 7 The electronic device 200 includes a memory 210 and a processor 220, and a bus 230 connecting different components including the memory 210 and the processor 220.

[0219] The memory 210 is configured to store executable instructions of the processor 220; the processor 201 is configured to invoke and execute the executable instructions stored in the memory 202 to implement the wireless network determination method proposed in the above embodiments of the present disclosure.

[0220] The bus 230 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to industry standard architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video electronics standards association (VESA) local bus, and peripheral component interconnect (PCI) bus.

[0221] The electronic device 200 typically includes a variety of electronic device readable media. These media can be any available media that can be accessed by the electronic device 200, including volatile and non-volatile media, removable and non-removable media.

[0222] Memory 210 can also include computer system readable media in the form of volatile memory, such as random access memory (RAM) 240 and / or cache memory 250. Electronic device 200 can further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 260 can be provided for reading from and writing to a non-removable, non-volatile magnetic media (not shown and typically called a "hard drive"). Figure 7 Although not shown, a magnetic disk drive can also be utilized for reading from and writing to a removable, non-volatile magnetic media (such as a "floppy disk"), and an optical disk drive can be utilized for reading from and / or writing to a removable, non-volatile optical media (such as a CD-ROM, DVD-ROM or other optical media). Figure 7 In such instances, each drive can be connected to the bus 230 by one or more data media interfaces. The memory 210 can include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the disclosure.

[0223] Program / utility 280, having a set (at least one) of program modules 270, can be stored in memory 210 by way of example, and not limitation, as well as an operating system, one or more application programs, other program modules, and program data, each or some combination thereof, can include implementation of the network environment. Program modules 270 generally carry out the functions and / or methodologies of embodiments of the disclosure as described herein.

[0224] Electronic device 200 can also communicate with one or more external devices 290 such as a keyboard or pointing device, a display 291, etc.; one or more devices that enable a user to interact with electronic device 200; and / or one or more devices that enable electronic device 200 to communicate with one or more other computing devices. Such communication can be via input / output (I / O) interfaces 292. Similarly, such communication can be via network adapter 293. Network adapter 293 can communicate with the other

[0225] Processor 220 can execute instructions for various functions and data processing by running programs stored in memory 210.

[0226] It should be noted that the implementation process of the electronic device of the embodiments of the present disclosure is described above in the method for determining the wireless network of the embodiments of the present disclosure, which will not be repeated here.

[0227] The electronic device of the embodiments of the present disclosure can first receive the network parameters sent by the network device of each wireless network currently in a non-connected state, and then determine the reference network rate of each wireless network according to the preset received signal strength threshold and each first parameter in the network parameters, and then determine the current target wireless network according to the reference network rate of each wireless network and each second parameter in the network parameters. Therefore, the terminal device can first determine the corresponding reference network rate based on the first parameter in the network parameters of the wireless network, and then determine the target wireless network with better network quality based on the reference network rate and the second parameter in the network parameters, thereby improving the accuracy of the target wireless network determination, avoiding the process of multiple attempts to determine the target wireless network, saving time and improving efficiency.

[0228] In order to realize the above-mentioned embodiments, the embodiments of the present disclosure also propose a non-transitory computer readable storage medium, the instructions in the storage medium are executed by the processor of the electronic device, so that the electronic device can execute the method for determining the wireless network as described above.

[0229] In order to realize the above-mentioned embodiments, the embodiments of the present disclosure also provide a computer program product, the computer program is executed by the processor of the electronic device, so that the electronic device can execute the method for determining the wireless network as described above.

[0230] Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the aspects of the present disclosure disclosed herein. It is intended that the present disclosure cover any and all variations of the present disclosure including those variations that are now deemed to fall within the general principles of the present disclosure and including those variations that are deemed to fall within the scope of the disclosure. The specification and examples given are intended as illustrative only and not restrictive of the true scope and spirit of the present disclosure.

[0231] It should be understood that the present disclosure is not limited to the precise construction that has been described above and shown in the accompanying drawings, and that various modifications and changes can be effected therein by those skilled in the art without departing from the scope of the application. The scope of the application should be limited only by the appended claims.

Claims

1. A method of determining a wireless network, the method comprising: Applied to a terminal device, comprising: receiving network parameters sent by network devices of each wireless network currently in a non-connected state, wherein a first parameter in the network parameters comprises an uplink transmission rate, a downlink transmission rate, a total bandwidth, a remaining available bandwidth, and a received signal strength; determining a target transmission rate according to the uplink transmission rate and the downlink transmission rate, and determining a reference network rate of each wireless network according to a preset received signal strength threshold, the target transmission rate, the total bandwidth, the remaining available bandwidth, and the received signal strength; determining a current target wireless network according to the reference network rate of each wireless network and each second parameter in the network parameters.

2. The method of claim 1, wherein, After determining the current target wireless network, further comprising: controlling the terminal device to connect to the target wireless network in a case that the terminal device is not in a connected state with any wireless network; or, controlling the terminal device to disconnect from a currently connected wireless network and connect to the target wireless network in a case that a network rate of the currently connected wireless network is less than the reference network rate of the target wireless network.

3. The method of claim 1, wherein, After determining the reference network rate of each wireless network, further comprising: displaying each wireless network and a corresponding reference network rate in a display interface in an order from high to low according to the reference network rate.

4. The method of claim 3, wherein, After displaying each wireless network and a corresponding reference network rate in a display interface in an order from high to low according to the reference network rate, further comprising: determining an actual network rate of any wireless network in a connected state according to a data amount of data transmitted by the terminal device within a preset time period; updating the reference network rate corresponding to the any wireless network in the display interface based on the actual network rate of the any wireless network.

5. The method of claim 1, wherein, The determining of the current target wireless network according to the reference network rate of each wireless network and each second parameter in the network parameters comprises: determining a score corresponding to the wireless network according to a first weight corresponding to the reference network rate and a second weight corresponding to each second parameter; determining the current target wireless network according to the score corresponding to each wireless network.

6. The method of claim 1, wherein, The receiving of the network parameters sent by the network devices of each wireless network currently in a non-connected state comprises: receiving a broadcast data packet corresponding to each wireless network currently in a non-connected state, wherein the data packet contains network parameters of the wireless network; parsing each data packet to determine the network parameters of each wireless network.

7. The method of claim 1, wherein, The receiving of the network parameters sent by the network devices of each wireless network currently in a non-connected state comprises: sending a probe request frame to each wireless network currently in a non-connected state; receiving a probe response frame returned by the network device of each wireless network; parsing each probe response frame to determine the network parameters of each wireless network.

8. The method of claim 7, wherein, The sending of the probe request frame to each wireless network currently in a non-connected state comprises: In a case where a network rate of a wireless network currently in a connected state is less than a threshold value, a probe request frame is sent to each wireless network currently in a non-connected state.

9. A method of determining a wireless network, the method comprising: Applied to a network device, comprising: Determining network parameters of a wireless network; Sending the network parameters to a terminal device to enable the terminal device to determine a target wireless network by using the method in any one of claims 1-8.

10. The method of claim 9, wherein, Before the sending, further comprising: Receiving a probe request frame sent by a terminal device; The sending, comprising: Sending the network parameters to a terminal device through a probe response frame.

11. A determining apparatus of a wireless network, characterized in that, Configured at a terminal device side, comprising: A receiving module, configured to receive network parameters sent by a network device of each wireless network currently in a non-connected state, wherein a first parameter in the network parameters comprises an uplink transmission rate, a downlink transmission rate, a total bandwidth, a remaining available bandwidth, and a received signal strength; A first determining module, configured to determine a target transmission rate according to the uplink transmission rate and the downlink transmission rate, and determine a reference network rate of each wireless network according to a preset received signal strength threshold, the target transmission rate, the total bandwidth, the remaining available bandwidth, and the received signal strength; A second determining module, configured to determine a current target wireless network according to the reference network rate of each wireless network and each second parameter in the network parameters.

12. The apparatus of claim 11, wherein, Further comprising a connecting module, configured to: In a case where the terminal device is not in a connected state with any wireless network, control the terminal device to connect to the target wireless network; Or, In a case where a network rate of a wireless network currently connected to the terminal device is less than a reference network rate of the target wireless network, control the terminal device to disconnect from the currently connected wireless network and connect to the target wireless network.

13. The apparatus of claim 11, wherein, Further comprising: A display module, configured to display each wireless network and a corresponding reference network rate on a display interface in an order from high to low according to the reference network rate.

14. The apparatus of claim 13, wherein, Further comprising: A third determining module, configured to, in a case where the terminal device is in a connected state with any wireless network, determine an actual network rate of the any wireless network according to a data amount of data transmitted by the terminal device within a preset time period; An updating module, configured to update the reference network rate corresponding to the any wireless network in the display interface based on the actual network rate of the any wireless network.

15. A determining apparatus of a wireless network, characterized in that, Configured at a network device side, comprising: A determining module, configured to determine network parameters of a wireless network; A sending module, configured to send the network parameters to a terminal device to enable the terminal device to determine a target wireless network by using the method in any one of claims 1-8.

16. An electronic device, comprising: Comprising: A processor; A memory for storing executable instructions of the processor; The processor is configured to invoke and execute the executable instructions stored in the memory to implement the method for determining a wireless network in any one of claims 1-10.

17. A non-transitory computer-readable storage medium, comprising: When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is enabled to perform the determination method of the wireless network as claimed in any one of claims 1-10.

Citation Information

Patent Citations

  • Network selection method, device, and mobile terminal

    WO2016183949A1