CN113473574A - Wireless local area network connection method, device, storage medium and electronic equipment - Google Patents
Wireless local area network connection method, device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN113473574A CN113473574A CN202110739322.8A CN202110739322A CN113473574A CN 113473574 A CN113473574 A CN 113473574A CN 202110739322 A CN202110739322 A CN 202110739322A CN 113473574 A CN113473574 A CN 113473574A
- Authority
- CN
- China
- Prior art keywords
- scene type
- access point
- wireless local
- local area
- area network
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 31
- 238000004590 computer program Methods 0.000 claims description 6
- 230000007613 environmental effect Effects 0.000 claims description 3
- 238000012360 testing method Methods 0.000 description 39
- 238000004891 communication Methods 0.000 description 13
- 238000012545 processing Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000001133 acceleration Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The method comprises the step of determining the scene type of an area where a mobile terminal is located, and further acquiring a wireless local area network form matched with the scene type, wherein effective access points detailed with the scene type and corresponding scores are recorded in the wireless local area network form. And then determining a target access point from the valid access points in the wireless local area network list so as to connect the target access point. The wireless local area network which can be connected by the mobile terminal under the scene type can be rapidly scanned according to the scene type of the environment where the mobile terminal is located, so that the scanning speed of the wireless local area network is improved, and the satisfaction degree of a user in connection with the wireless local area network is improved.
Description
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for connecting a wireless local area network, a storage medium, and an electronic device.
Background
With the development of wireless communication technology, wireless networks are becoming more popular. Generally, in an environment where there are WiFi hotspots, the user will prefer to connect to the WiFi hotspot. In the related art, when a terminal needs to access a WiFi hotspot, the terminal generally performs full channel scanning because there are a plurality of WiFi hotspots in the current environment, so that the time for the terminal to scan and connect the WiFi hotspot is longer, and the satisfaction degree of user experience is seriously reduced.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a wireless lan connection method, apparatus, storage medium, and electronic device to solve all or part of the above technical problems.
According to a first aspect of the embodiments of the present disclosure, there is provided a wireless local area network connection method, including:
determining the scene type of the area where the mobile terminal is located;
acquiring a wireless local area network form matched with the scene type according to the scene type, wherein at least one effective access point matched with the scene type and a corresponding score are recorded in the wireless local area network form;
and selecting the effective access point with the highest score from the wireless local area network list as a target access point and connecting to the target access point.
In some embodiments, the method further comprises:
acquiring related information of at least one historical access point of the mobile terminal, wherein the related information of each historical access point comprises environment information and parameter information;
determining a scene type corresponding to each historical access point according to the environment information; and
and selecting a preset number of historical access points from a plurality of historical access points corresponding to the same scene type as the effective access points according to the parameter information.
In some embodiments, the selecting, as the valid access point, a predetermined number of historical access points from a plurality of historical access points corresponding to the same scene type according to the parameter information includes:
determining the score of each historical access point according to the parameter information;
and selecting a preset number of historical access points from a plurality of historical access points corresponding to the same scene type as effective access points in the order of the scores from high to low.
In some embodiments, the method further comprises:
determining a new score of the target access point according to new parameter information of the target access point under the condition that the mobile terminal is disconnected from the target access point;
and selecting a preset number of access points as effective access points corresponding to the scene type according to the new scores and the scores of the historical access points corresponding to the target access point under the scene type and the sequence of the scores from high to low.
In some embodiments, the parameter information includes at least one of a frequency band, a frequency bandwidth, a signal strength, and a connection duration.
In some embodiments, the determining the scene type of the area where the mobile terminal is located includes:
when the mobile terminal is disconnected from a wireless local area network, current position information of the mobile terminal is obtained according to a preset time interval;
and determining the scene type of the area where the mobile terminal is located according to the current position information.
According to a second aspect of the embodiments of the present disclosure, there is provided a wireless local area network connection apparatus, including:
the mobile terminal comprises a scene determining module, a scene determining module and a scene determining module, wherein the scene determining module is configured to determine the scene type of an area where the mobile terminal is located;
the acquisition module is configured to acquire a wireless local area network form matched with the scene type according to the scene type, and the wireless local area network form records at least one effective access point matched with the scene type and a corresponding score;
and the connection module is configured to select the effective access point with the highest score from the wireless local area network list as a target access point and connect to the target access point.
In some embodiments, the apparatus further comprises:
the relevant information acquisition module is configured to acquire relevant information of at least one historical access point of the mobile terminal, wherein the relevant information of each historical access point comprises environmental information and parameter information;
the scene type determining module is configured to determine a scene type corresponding to each historical access point according to the environment information; and
a selection module configured to select a predetermined number of history access points from a plurality of history access points corresponding to the same scene type as the valid access points according to the parameter information.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute the instructions stored in the memory to implement the steps of the wireless local area network connection method provided by the first aspect of the present disclosure.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the steps of the wireless local area network connection method provided by the first aspect of the present disclosure.
Based on the technical scheme provided by the embodiment of the disclosure, the scene type of the area where the mobile terminal is located is determined, and then the wireless local area network form matched with the scene type is obtained, at least one effective access point and corresponding score are recorded in the wireless local area network form, and the target access point is determined from the wireless local area network form, so that the wireless local area network which can be connected by the mobile terminal under the scene type can be quickly scanned according to the scene type of the environment where the mobile terminal is located, the scanning speed of the wireless local area network is improved, and the satisfaction degree of a user in connecting the wireless local area network is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flow chart illustrating a method of wireless local area network connection in accordance with an example embodiment;
fig. 2 is a flow chart of determining a valid access point in accordance with an example embodiment;
FIG. 3 is a flow diagram of determining a valid access point among a plurality of historical access points in accordance with an exemplary embodiment;
fig. 4 is a flow diagram of updating a score of a wireless local area network, according to an example embodiment;
FIG. 5 is a flow chart for determining a scene type of an area in which a mobile terminal is located according to an example embodiment;
fig. 6 is a flow diagram illustrating connecting to a wireless local area network in accordance with an example embodiment;
fig. 7 is a block diagram illustrating a wireless local area network connection apparatus in accordance with an exemplary embodiment;
fig. 8 is a block diagram illustrating an electronic device 800 in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a wireless local area network connection method according to an exemplary embodiment, which may be applied to an electronic device, which may include a mobile terminal, as shown in fig. 1, and the method includes the following steps.
In step 110, the scene type of the area where the mobile terminal is located is determined.
Here, the mobile terminal may be a smart phone, a tablet computer, a portable computer, or the like. For example, when the current location of the mobile terminal is a home address of the user, the corresponding scene type may be "home", and when the current location of the mobile terminal is a work location of the user, the corresponding scene type may be "work".
In some examples, the mobile terminal may obtain current location information through the positioning module, and then determine a scene type of an area where the mobile terminal is located according to the current location information, where different location information corresponds to different scene types.
In step 120, according to the scene type, a wireless local area network form matching the scene type is obtained, and the wireless local area network form records at least one valid access point matching the scene type and a corresponding score.
Here, different scene types correspond to different wireless local area network forms, where the wireless local area network forms include at least one valid access point and a score corresponding to the valid access point. For each scene type, the valid access points included in the corresponding wireless local area network list may be learned according to the wireless local area networks which are historically connected by the user under the scene type, or may be multiple wireless local area networks set by the user.
In some embodiments, a wlan table corresponding to each scene type may be stored in the database, for example, for the scene type "home", it may set a wlan table including 5 valid access points, and for the scene type "work", it may set a wlan table including 5 valid access points.
It is worth mentioning that the wireless local area network may refer to WiFi or bluetooth, etc.
Table 1 is a wireless local area network table corresponding to the scenario type "home" proposed according to an exemplary embodiment.
TABLE 1
Table item | Name (R) | Cipher code | Frequency band | Bandwidth of | Scoring |
1 | Test 1 | 12345678 | 5G | 160 | 100 |
2 | Test 2 | 11223344 | 5G | 80 | 80 |
3 | Test 3 | 12123434 | 2.4G | 40 | 60 |
4 | Test 4 | 13131515 | 2.4G | 40 | 55 |
5 | Test 5 | 12121414 | 2.4G | 20 | 30 |
As shown in table 1, for the "home" scene type, a plurality of valid access points matching the "home" scene type and the scores of the valid access points may be set in the wireless local area network table, and of course, other information, such as the name, password, frequency band, and bandwidth of the valid access points, may also be set in the wireless local area network table. It should be understood that for each scene type, it may set the valid access points under the corresponding scene type through a wireless local area network table as shown in table 1.
In step 130, the valid access point with the highest score is selected from the wireless local area network list as the target access point and connected to the target access point.
Here, after obtaining the wireless local area network form matching the scene type, the mobile terminal scans the valid access points in the wireless local area network form to determine the target access point from the plurality of valid access points. After determining the target access point, a software architecture (farm work) of the mobile terminal connects to the target access point. The target access point is a valid access point with the highest score determined by the mobile terminal from a wireless local area network form matched with the scene type.
In some embodiments, the mobile terminal connects to the target access point, then detects whether the target access point has communication capability, if so, maintains the connection with the target access point, and if not, the mobile terminal selects a valid access point with the second highest score from the wireless local area network list as the target entry point for connection. For example, for the wlan table shown in table 1, the mobile terminal first selects "test 1" as the target access point, and if "test 1" cannot be connected to the internet due to a line or a loss, then "test 2" is selected as the target access point again, and if "test 2" can be connected to the internet, the mobile terminal uses a valid access point "test 2" and does not scan down, and if "test 2" cannot be connected to the internet, then it continues to scan down in the wlan table.
Therefore, by determining the scene type of the area where the mobile terminal is located, the wireless local area network form matched with the scene type is further obtained, and the target access point is determined from the wireless local area network form, the wireless local area network which can be connected with the mobile terminal under the scene type can be rapidly scanned according to the scene type of the environment where the mobile terminal is located, the scanning speed of the wireless local area network is improved, and the satisfaction degree of a user in connection with the wireless local area network is improved.
Fig. 2 is a flow chart of determining a valid access point according to an example embodiment. As shown in fig. 2, in some implementations, the wlan form can be obtained by:
in step 210, information related to at least one historical access point of the mobile terminal is obtained, wherein the information related to each historical access point includes environment information and parameter information.
Here, the history access point refers to a wireless local area network to which the mobile terminal has been historically connected, and for example, a WiFi hotspot to which the mobile terminal has been historically connected may be used as the history access point. The environment information may include location information, time information, and the like, and the parameter information may include information such as a name, a password, a frequency band, a frequency bandwidth, and a signal strength of a valid access point.
In step 220, the scene type corresponding to each historical access point is determined according to the environment information.
Here, when the environment information is location information, a specific geographical location may be set as one scene type.
For example, WiFi hotspots historically connected by the mobile terminal include a hotspot a, a hotspot B, a hotspot C, and a hotspot D, where the hotspot a corresponds to a scene type of "home", the hotspot B corresponds to a scene type of "work", the hotspot C corresponds to a scene type of "home", the hotspot D corresponds to a scene type of "other", then the WiFi hotspots matched with the scene type of "home" include the hotspot a and the hotspot C, the WiFi hotspots matched with the scene type of "work" include the hotspot B, and the WiFi hotspots matched with the scene type of "other" include the hotspot D.
In some examples, the mobile terminal may learn the scene type to which each location belongs according to the information about the historical access points to which the mobile terminal has historically connected. For example, the mobile terminal defines the location information acquired at a preset time as a scene type, for example, the location information acquired at 2 am is defined as a scene type of "home", and the location information acquired at 11 am and/or 17 am is defined as a scene type of "work". The scene type "other" may be defined for position information acquired at other time periods.
It is worth noting that one or more geographic locations may belong to a scene type, e.g., a scene type of "home" may correspond to one or more location information.
In step 230, a predetermined number of history access points are selected as the valid access points from a plurality of history access points corresponding to the same scene type according to the parameter information.
And selecting a preset number of historical access points from a plurality of historical access points belonging to the same scene type as effective access points of the scene type according to the parameter information of each historical access point, so that the habit of connecting the user with the wireless local area network is learned according to the related information of the historical access points of the mobile terminal, and the effective access points corresponding to each scene type are determined. The predetermined number may be set according to actual use conditions, such as setting 3 or 5 valid access points.
It should be appreciated that after determining the number of valid access points, the wireless local area network form is constructed based on the valid access points and the corresponding scores.
Fig. 3 is a flow diagram for determining a valid access point among a plurality of historical access points, according to an example embodiment. As shown in fig. 3, in some implementation embodiments, the step 230 of selecting a predetermined number of historical access points from a plurality of historical access points corresponding to the same scene type as valid access points according to the parameter information may include the following steps:
in step 231, determining a score for each historical access point according to the parameter information;
here, the parameter information includes at least one of a frequency band, a frequency bandwidth, a signal strength, and a connection duration. The score of the historical access point can be calculated according to at least one of the frequency band, the frequency bandwidth, the signal strength and the connection duration of the historical access point. For example, when the parameter information of the historical access point includes a frequency band, a frequency bandwidth, a signal strength, and a connection duration, the score of the historical access point may be obtained by performing a weighting calculation by setting different weight ratios. For example, the score of the historical access point is calculated by the following calculation:
P=40%*T+25%*K+20%*D+15%*R
wherein, P is the score of the historical access point, T is the connection duration, K is the bandwidth, D is the frequency band, and R is the signal strength.
It should be understood that the weight value of the connection duration is set to 40%, and the weight value is higher than the weight values of the bandwidth, the frequency band and the signal strength because a user can actively select a good-quality WiFi hotspot to connect in general, and therefore, the greater the connection duration of a WiFi hotspot is, the higher the quality of the WiFi hotspot is. The weighted values of the bandwidth, the frequency band and the signal intensity are set to be 25%, 20% and 15% respectively, which are weight ratios obtained after a large number of experiments.
It should be noted that the above-mentioned weight value is a preferred embodiment, and in the actual application process, different weight values may be set according to the actual situation.
In some examples, different values correspond to different connection durations. For example, for a history access point whose connection duration is longer than 4 hours, the connection duration may be 100, for a history access point whose connection duration is shorter than 1 hour, the connection duration may be 30, and for a history access point whose connection duration is longer than or equal to 1 hour and shorter than or equal to 4 hours, the connection duration may be 60. And aiming at different frequency bands, corresponding to different values. For example, the frequency band belonging to 5G has a value of 100, and the frequency band belonging to 2.4G has a value of 70. And aiming at different bandwidths, corresponding to different values. For example, the bandwidth of 160MHz is 100, the bandwidth of 80MHz is 50, the bandwidth of 40MHz is 25, and the bandwidth of 20MHz is 10. For different signal strengths (RSSI), corresponding to different values. For example, the signal strength value is 100 for a history access point equal to or greater than-40 dBm, 40 for a history access point equal to or less than-60 dBm, and 70 for a history access point less than-40 dBm and greater than-60 dBm.
For example, a historical ap has a connection duration of 6 hours, a frequency band of 5G, a bandwidth of 160, and a signal strength of-30 dBm. The score P of the historical access point is 40% × 100+ 25% × 100+ 20% × 100+ 15% × 100 is 100.
In step 232, a predetermined number of historical access points are selected as valid access points from a plurality of historical access points corresponding to the same scene type in order of higher scores to lower scores.
Here, after obtaining the scores of the historical access points in the same scene type, a valid access point corresponding to the scene type may be determined according to the scores. For example, the scores may be ranked in order from top to bottom, and then a predetermined number of historical access points may be selected as valid access points based on the ranking.
In some embodiments, historical access points under the same scene type may be ranked according to score. For example, the scores may be sorted from large to small according to their size. And then according to the sorting result, selecting the historical access point at the designated ranking position as an effective access point corresponding to the scene type. For example, the historical access point at the top 5 ranked bits is selected as the valid access point in the scene type.
Fig. 4 is a flow chart of updating a score of a wireless local area network, according to an example embodiment. As shown in fig. 4, in some implementations, the wlan connection method may further include the following steps:
in step 310, when the mobile terminal is disconnected from the target access point, a new score of the target access point is determined according to the new parameter information of the target access point.
Here, when the mobile terminal disconnects from the target access point, the mobile terminal recalculates a new score of the target access point according to the new parameter information of the target access point. For example, for the WiFi hotspot "test 1" in table 1, when the mobile terminal disconnects from "test 1", a new score of "test 1" is calculated according to the new parameter information of "test 1". It should be understood that the new parameter information of the target access point may refer to a new connection duration, a new frequency band, a new frequency bandwidth, and a new signal strength of the target access point. In general, the connection duration and signal strength of the target ap may vary, and the frequency band and bandwidth may not vary.
In step 320, according to the new scores and the scores of the plurality of historical access points under the scene type corresponding to the target access point, a predetermined number of access points are selected as effective access points corresponding to the scene type in the order from the highest scores to the lowest scores.
Here, after obtaining the new score of the target access point, the ranking of the valid access points included in the scene type corresponding to the target access point is updated. For example, the ranking of the valid access points for the "home" scenario type is shown in table 1, and when the new score of "test 1" is 65, the valid access points for the "home" scenario type are shown in table 2.
TABLE 2
Table item | Name (R) | Cipher code | Frequency band | Bandwidth of | Scoring |
1 | Test 2 | 11223344 | 5G | 80 | 80 |
2 | Test 1 | 12345678 | 5G | 160 | 65 |
3 | Test 3 | 12123434 | 2.4G | 40 | 60 |
4 | Test 4 | 13131515 | 2.4G | 40 | 55 |
5 | Test 5 | 12121414 | 2.4G | 20 | 30 |
It is worth noting that for each scene type a certain number of valid access points may be set, e.g. 5. After the history access points and the corresponding scores included in each scene type are calculated according to the related information of the history access points which are historically connected with the mobile terminal, if the number of the effective access points in the scene type is more than 5, the effective access points with the scores of the first 5 bits are reserved. For example, the scenario type "family" includes valid access points and scores: "test 1": 100. "test 2": 80. "test 3": 60. "test 4": 55. "test 5": 30. "test 6": 20, the effective access points included in the wireless lan list matching the scene type of "home" are: "test 1", "test 2", "test 3", "test 4", and "test 5".
After the mobile terminal is disconnected from the "test 1", and the score of the "test 1" is recalculated to be "15", then the valid access points included in the wireless local area network list corresponding to the scene type of "home" are: "test 2", "test 3", "test 4", "test 5", and "test 6".
Fig. 5 is a flow chart for determining a scene type of an area in which a mobile terminal is located according to an example embodiment. In some embodiments, as shown in fig. 5, the determining 110 of the scene type of the area where the mobile terminal is located includes the following steps:
in step 111, when the mobile terminal disconnects from the wlan, the current location information of the mobile terminal is obtained according to a preset time interval.
Here, when the mobile terminal disconnects from the wireless lan, the mobile terminal requests current location information of the mobile terminal according to a preset time interval. For example, when the mobile terminal disconnects the WiFi connection, the current location information of the mobile terminal may be acquired every 15 minutes.
In step 112, according to the current location information, a scene type of an area where the mobile terminal is located is determined.
Here, different scene types are corresponded to different position information. The mobile terminal obtains the current position information through the positioning module, and then determines the scene type of the area where the mobile terminal is located according to the current position information.
The above-described embodiment will be described in detail with reference to fig. 6.
Fig. 6 is a flow chart illustrating connecting to a wireless local area network according to an example embodiment. As shown in fig. 6, when the mobile terminal triggers scanning of the wireless lan, the mobile terminal determines whether to trigger a scene scanning mode, when the mobile terminal triggers the scene scanning mode, the mobile terminal determines whether a scene type where the mobile terminal is located is a "home" scene type according to the location information, and when the scene type is the "home" scene type, the mobile terminal scans a wireless lan form corresponding to the "home" to obtain a scanning result. And when the scene type of the mobile terminal is not the 'family' scene type, further judging whether the scene type is the 'working' scene type, if so, scanning the wireless local area network corresponding to the 'working', and acquiring a scanning result. And when the scene type is not the 'working' scene type, scanning the wireless local area network form corresponding to the 'other' scene type to obtain a scanning result. In addition, when the mobile terminal does not trigger the scene scanning mode, the mobile terminal performs full channel scanning to obtain a scanning result.
And when the scanning result is determined, the mobile terminal triggers network selection connection according to the scanning result, connects with the target access point and stops position acquisition for 15 minutes/time. And when the mobile terminal is disconnected from the target access point, the mobile terminal starts position acquisition for 15 minutes/time, so as to determine the scene type of the area where the mobile terminal is located according to the acquired position information. Meanwhile, the mobile terminal calculates the score of the currently disconnected target access point, judges whether the scene type of the currently disconnected target access point is a 'family' scene type, if so, updates a wireless local area network form corresponding to the 'family' according to the new score, if not, further judges whether the scene type of the currently disconnected target access point is a 'working' scene type, if so, updates the wireless local area network form corresponding to the 'working' according to the new score, and if not, updates the wireless local area network form corresponding to the 'other' according to the new score.
Fig. 7 is a block diagram illustrating a wireless local area network connection apparatus according to an example embodiment. Referring to fig. 7, the apparatus includes a scene determination module 121, an acquisition module 122, and a connection module 123.
The scene determining module 121 is configured to determine a scene type of an area where the mobile terminal is located;
the obtaining module 122 is configured to obtain a wireless local area network form matched with the scene type according to the scene type, where the wireless local area network form records at least one valid access point matched with the scene type and a corresponding score;
the connection module 123 is configured to select the valid access point with the highest score from the wireless local area network list as a target access point and connect to the target access point.
In some embodiments, the apparatus further comprises:
the relevant information acquisition module is configured to acquire relevant information of at least one historical access point of the mobile terminal, wherein the relevant information of each historical access point comprises environmental information and parameter information;
the scene type determining module is configured to determine a scene type corresponding to each historical access point according to the environment information; and
a selection module configured to select a predetermined number of history access points from a plurality of history access points corresponding to the same scene type as the valid access points according to the parameter information.
In some embodiments, the selection module comprises:
the scoring unit is configured to determine a score of each historical access point according to the parameter information;
and the selecting subunit is configured to select a preset number of historical access points from a plurality of historical access points corresponding to the same scene type as effective access points in the order of the scores from high to low.
In some embodiments, the apparatus further comprises:
the score correction module is configured to determine a new score of the target access point according to the new parameter information of the target access point under the condition that the mobile terminal is disconnected from the target access point;
and the updating module is configured to select a predetermined number of access points as effective access points corresponding to the scene type according to the new scores and the scores of the plurality of historical access points corresponding to the target access point under the scene type and in the order of the scores from high to low.
In some embodiments, the parameter information includes at least one of a frequency band, a frequency bandwidth, a signal strength, and a connection duration.
In some embodiments, the scenario determination module 121 includes:
the positioning unit is configured to acquire current position information of the mobile terminal according to a preset time interval when the mobile terminal is disconnected from a wireless local area network;
and the scene type determining unit is configured to determine the scene type of the area where the mobile terminal is located according to the current position information.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The present disclosure also provides a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the wireless local area network connection method provided by the present disclosure.
Fig. 8 is a block diagram illustrating an electronic device 800 in accordance with an example embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 8, electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the wireless local area network connection method described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, map data, scoring rules for wireless local area networks, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power components 806 provide power to the various components of the electronic device 800. Power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for electronic device 800.
The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 800 is in an operation mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the electronic device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described wireless local area network connection method.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the electronic device 800 to perform the wireless local area network connection method described above is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In another exemplary embodiment, a computer program product is also provided, which comprises a computer program executable by a programmable apparatus, the computer program having code portions for performing the above-mentioned wireless local area network connection method when executed by the programmable apparatus.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (10)
1. A wireless local area network connection method, comprising:
determining the scene type of the area where the mobile terminal is located;
acquiring a wireless local area network form matched with the scene type according to the scene type, wherein at least one effective access point matched with the scene type and a corresponding score are recorded in the wireless local area network form;
and selecting the effective access point with the highest score from the wireless local area network list as a target access point and connecting to the target access point.
2. The wireless local area network connection method of claim 1, further comprising:
acquiring related information of at least one historical access point of the mobile terminal, wherein the related information of each historical access point comprises environment information and parameter information;
determining a scene type corresponding to each historical access point according to the environment information; and
and selecting a preset number of historical access points from a plurality of historical access points corresponding to the same scene type as the effective access points according to the parameter information.
3. The wlan connection method according to claim 2, wherein the selecting a predetermined number of historical aps from a plurality of historical aps corresponding to the same scene type as valid aps according to the parameter information comprises:
determining the score of each historical access point according to the parameter information;
and selecting a preset number of historical access points from a plurality of historical access points corresponding to the same scene type as effective access points in the order of the scores from high to low.
4. The wireless local area network connection method of claim 3, further comprising:
determining a new score of the target access point according to new parameter information of the target access point under the condition that the mobile terminal is disconnected from the target access point;
and selecting a preset number of access points as effective access points corresponding to the scene type according to the new scores and the scores of the plurality of historical access points under the scene type corresponding to the target access point and the sequence of the scores from high to low.
5. The WLAN connection method according to any one of claims 2 to 4, wherein the parameter information comprises at least one of a frequency band, a bandwidth, a signal strength and a connection duration.
6. The wlan connection method according to claim 1, wherein the determining a scene type of an area where the mobile terminal is located includes:
when the mobile terminal is disconnected from a wireless local area network, current position information of the mobile terminal is obtained according to a preset time interval;
and determining the scene type of the area where the mobile terminal is located according to the current position information.
7. A wireless local area network connection apparatus, comprising:
the mobile terminal comprises a scene determining module, a scene determining module and a scene determining module, wherein the scene determining module is configured to determine the scene type of an area where the mobile terminal is located;
the acquisition module is configured to acquire a wireless local area network form matched with the scene type according to the scene type, and the wireless local area network form records at least one effective access point matched with the scene type and a corresponding score;
and the connection module is configured to select the effective access point with the highest score from the wireless local area network list as a target access point and connect to the target access point.
8. The wlan connection apparatus of claim 7, wherein the apparatus further comprises:
the relevant information acquisition module is configured to acquire relevant information of at least one historical access point of the mobile terminal, wherein the relevant information of each historical access point comprises environmental information and parameter information;
the scene type determining module is configured to determine a scene type corresponding to each historical access point according to the environment information; and
a selection module configured to select a predetermined number of history access points from a plurality of history access points corresponding to the same scene type as the valid access points according to the parameter information.
9. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute instructions stored in the memory to implement the steps of the wireless local area network connection method of any one of claims 1 to 6.
10. A computer readable storage medium having computer program instructions stored thereon, which when executed by a processor, perform the steps of the wireless local area network connection method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110739322.8A CN113473574B (en) | 2021-06-30 | 2021-06-30 | Wireless local area network connection method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110739322.8A CN113473574B (en) | 2021-06-30 | 2021-06-30 | Wireless local area network connection method and device, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113473574A true CN113473574A (en) | 2021-10-01 |
CN113473574B CN113473574B (en) | 2024-06-11 |
Family
ID=77876715
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110739322.8A Active CN113473574B (en) | 2021-06-30 | 2021-06-30 | Wireless local area network connection method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113473574B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114449618A (en) * | 2022-02-07 | 2022-05-06 | 上海市共进通信技术有限公司 | Fast and efficient sequencing display processing method, device and processor for WiFi 6E wireless access point and storage medium thereof |
CN115065958A (en) * | 2022-04-20 | 2022-09-16 | Oppo广东移动通信有限公司 | Device connection method, device, first device and computer readable storage medium |
Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004265174A (en) * | 2003-03-03 | 2004-09-24 | Nippon Telegr & Teleph Corp <Ntt> | Communication device, service control method, agent program of communication device and recording medium having agent program recorded thereon |
CN103248658A (en) * | 2012-02-10 | 2013-08-14 | 富士通株式会社 | Service recommendation device, service recommendation method and mobile device |
US20140199968A1 (en) * | 2013-01-11 | 2014-07-17 | Necati Canpolat | Techniques for establishing communications with a local wireless network |
CN106550400A (en) * | 2015-09-23 | 2017-03-29 | 上海无线通信研究中心 | Interference management method and the flow discharging method and device using the method |
CN106714244A (en) * | 2015-07-20 | 2017-05-24 | 小米科技有限责任公司 | Terminal and wireless access method and device thereof |
WO2017114096A1 (en) * | 2015-12-30 | 2017-07-06 | 深圳市金立通信设备有限公司 | Method and base station for configuring wireless access point |
WO2017114097A1 (en) * | 2015-12-30 | 2017-07-06 | 深圳市金立通信设备有限公司 | Wireless access point configuration method and system, base station and user terminal thereof |
CN108076469A (en) * | 2016-11-08 | 2018-05-25 | 上海掌门科技有限公司 | For the method and router of wireless access point bridge joint |
CN108112051A (en) * | 2016-11-24 | 2018-06-01 | 上海掌门科技有限公司 | A kind of method and apparatus for the access information that wireless access point is provided |
CN109561398A (en) * | 2019-02-12 | 2019-04-02 | 成都西加云杉科技有限公司 | AP neighbor table method for building up |
CN109640378A (en) * | 2019-01-21 | 2019-04-16 | 上海连尚网络科技有限公司 | A kind of wireless access point indication method and equipment |
CN111542074A (en) * | 2020-04-20 | 2020-08-14 | 贵州师范大学 | Intelligent heterogeneous wireless access method for mobile cloud computing learning |
CN111698742A (en) * | 2020-06-08 | 2020-09-22 | 锐捷网络股份有限公司 | Data communication method, terminal device, electronic device, and computer storage medium |
CN111800318A (en) * | 2020-06-18 | 2020-10-20 | 扬州大学 | SDN-based access point decision method under heaven and earth integrated network authentication architecture |
CN111953003A (en) * | 2020-08-19 | 2020-11-17 | 国网湖南省电力有限公司 | Site selection and capacity calculation method of flexible direct current access point |
US20200383045A1 (en) * | 2019-05-30 | 2020-12-03 | Qualcomm Incorporated | Access point selection from a set of candidates during connection with a station |
-
2021
- 2021-06-30 CN CN202110739322.8A patent/CN113473574B/en active Active
Patent Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004265174A (en) * | 2003-03-03 | 2004-09-24 | Nippon Telegr & Teleph Corp <Ntt> | Communication device, service control method, agent program of communication device and recording medium having agent program recorded thereon |
CN103248658A (en) * | 2012-02-10 | 2013-08-14 | 富士通株式会社 | Service recommendation device, service recommendation method and mobile device |
US20140199968A1 (en) * | 2013-01-11 | 2014-07-17 | Necati Canpolat | Techniques for establishing communications with a local wireless network |
CN106714244A (en) * | 2015-07-20 | 2017-05-24 | 小米科技有限责任公司 | Terminal and wireless access method and device thereof |
CN106550400A (en) * | 2015-09-23 | 2017-03-29 | 上海无线通信研究中心 | Interference management method and the flow discharging method and device using the method |
WO2017114096A1 (en) * | 2015-12-30 | 2017-07-06 | 深圳市金立通信设备有限公司 | Method and base station for configuring wireless access point |
WO2017114097A1 (en) * | 2015-12-30 | 2017-07-06 | 深圳市金立通信设备有限公司 | Wireless access point configuration method and system, base station and user terminal thereof |
CN108076469A (en) * | 2016-11-08 | 2018-05-25 | 上海掌门科技有限公司 | For the method and router of wireless access point bridge joint |
CN108112051A (en) * | 2016-11-24 | 2018-06-01 | 上海掌门科技有限公司 | A kind of method and apparatus for the access information that wireless access point is provided |
CN109640378A (en) * | 2019-01-21 | 2019-04-16 | 上海连尚网络科技有限公司 | A kind of wireless access point indication method and equipment |
CN109561398A (en) * | 2019-02-12 | 2019-04-02 | 成都西加云杉科技有限公司 | AP neighbor table method for building up |
US20200383045A1 (en) * | 2019-05-30 | 2020-12-03 | Qualcomm Incorporated | Access point selection from a set of candidates during connection with a station |
CN111542074A (en) * | 2020-04-20 | 2020-08-14 | 贵州师范大学 | Intelligent heterogeneous wireless access method for mobile cloud computing learning |
CN111698742A (en) * | 2020-06-08 | 2020-09-22 | 锐捷网络股份有限公司 | Data communication method, terminal device, electronic device, and computer storage medium |
CN111800318A (en) * | 2020-06-18 | 2020-10-20 | 扬州大学 | SDN-based access point decision method under heaven and earth integrated network authentication architecture |
CN111953003A (en) * | 2020-08-19 | 2020-11-17 | 国网湖南省电力有限公司 | Site selection and capacity calculation method of flexible direct current access point |
Non-Patent Citations (1)
Title |
---|
翁慧;朱瑞波;黄小光;吕吉贺;: "基于栅格化数据流量的WLAN选点", 通信技术, no. 08, 10 August 2013 (2013-08-10) * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114449618A (en) * | 2022-02-07 | 2022-05-06 | 上海市共进通信技术有限公司 | Fast and efficient sequencing display processing method, device and processor for WiFi 6E wireless access point and storage medium thereof |
CN114449618B (en) * | 2022-02-07 | 2023-09-15 | 上海市共进通信技术有限公司 | Ordering display processing method and device for WiFi 6E wireless access points |
CN115065958A (en) * | 2022-04-20 | 2022-09-16 | Oppo广东移动通信有限公司 | Device connection method, device, first device and computer readable storage medium |
WO2023202161A1 (en) * | 2022-04-20 | 2023-10-26 | Oppo广东移动通信有限公司 | Device connection method and apparatus, first device, and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN113473574B (en) | 2024-06-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111465078B (en) | Wireless network searching method and device and storage medium | |
KR101719365B1 (en) | Video call method and apparatus | |
CN106358189B (en) | Method and device for accessing wireless local area network | |
CN113473574B (en) | Wireless local area network connection method and device, storage medium and electronic equipment | |
CN108605085B (en) | Method for acquiring shooting reference data and mobile terminal | |
US20170135032A1 (en) | Network connecting method and apparatus, and storage medium | |
CN106376057A (en) | Wireless network access method and device | |
CN108307308B (en) | Positioning method, device and storage medium for wireless local area network equipment | |
CN109451838B (en) | Method, device and storage medium for obtaining access control parameters | |
CN105357735B (en) | Method and device for accessing cell | |
US11310721B2 (en) | Information broadcast method and device, service implementation method and device, and access point | |
CN111278084A (en) | Method and device for issuing network registration and network selection parameters of terminal | |
CN109451837B (en) | Cell reselection method, device and storage medium | |
CN112492521A (en) | WiFi roaming trigger condition determining method and device, mobile terminal and storage medium | |
CN110140367B (en) | Control method and device for terminal access | |
CN114302405B (en) | Network scanning method, device and storage medium | |
WO2023220980A1 (en) | Frequency sweeping method and apparatus, and storage medium | |
CN109451832B (en) | Wireless communication method, device and computer readable storage medium | |
CN116347543A (en) | Cell switching method and device and electronic equipment | |
CN111382242A (en) | Information providing method, device and readable medium | |
CN114449542B (en) | Cell registration method, device and medium | |
CN107889062B (en) | Offline positioning data learning method and device | |
CN113630850A (en) | Network searching method, mobile terminal and storage medium | |
CN114531712A (en) | Wireless communication method and apparatus, mobile terminal, and non-transitory readable storage medium | |
CN113873603A (en) | Network control method, device and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |